Sites

Menu

MessageTypeUnion Struct

Namespace: Improbable.Gdk.Core.NetworkStats
GDK package: Core
Source

Describes a type of a message.

Inheritance

IEquatable<MessageTypeUnion>

Notes

  • Implemented as a C-style union. Can be thought of as a sum type where the discriminants are: Update, CommandRequest, CommandResponse, WorldCommandRequest, WorldCommandResponse


Fields

CommandInfo Source
uint CommandInfo


Static Methods

Update Source
MessageTypeUnion Update(uint componentId)

Parameters
  • uint componentId :
CommandRequest Source
MessageTypeUnion CommandRequest(uint componentId, uint commandIndex)

Parameters
  • uint componentId :
  • uint commandIndex :
CommandResponse Source
MessageTypeUnion CommandResponse(uint componentId, uint commandIndex)

Parameters
  • uint componentId :
  • uint commandIndex :
WorldCommandRequest Source
MessageTypeUnion WorldCommandRequest(WorldCommand worldCommand)

Parameters
WorldCommandResponse Source
MessageTypeUnion WorldCommandResponse(WorldCommand worldCommand)

Parameters


Methods

Equals Source
bool Equals(MessageTypeUnion other)

Parameters


Overrides

Equals Source
override bool Equals(object obj)

Parameters
  • object obj :
GetHashCode Source
override int GetHashCode()


Operators

operator== Source
bool operator==(MessageTypeUnion left, MessageTypeUnion right)

Parameters
operator!= Source
bool operator!=(MessageTypeUnion left, MessageTypeUnion right)

Parameters

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums