![]() |
Mercury Messaging
Documentation for the Mercury Messaging Framework
|
Base class for messages passed through MmInvoke Built on Unity's Message Base, allowing usage of serialize/deserialize More...
Public Member Functions | |
| MmMessage () | |
| Creates a basic MmMessage with a default control block More... | |
| MmMessage (MmMetadataBlock metadataBlock) | |
| Creates a basic MmMessage with the passed control block. More... | |
| MmMessage (MmMethod mmMethod, MmMetadataBlock metadataBlock=null) | |
| Create an MmMessage, with defined control block and MmMethod More... | |
| MmMessage (MmMethod mmMethod, MmLevelFilter levelFilter, MmActiveFilter activeFilter, MmSelectedFilter selectedFilter, MmNetworkFilter networkFilter) | |
| Create an MmMessage, with filters defined directly More... | |
| MmMessage (MmMessage message) | |
| Duplicate an MmMessage More... | |
| virtual MmMessage | Copy () |
| Message copy method More... | |
| override void | Deserialize (NetworkReader reader) |
| Deserialize the MmMessage More... | |
| override void | Serialize (NetworkWriter writer) |
| Serialize the MmMessage More... | |
Public Attributes | |
| MmMethod | MmMethod |
| The MmMethod invoked by the calling object. More... | |
| MmMetadataBlock | MetadataBlock |
| Control parameters designating how a message should traverse an MercuryMessaging Hierarchy. More... | |
| uint | NetId |
| Network identifier of sender/recipient objects. More... | |
| bool | root = true |
| Deprecated - remove in next version More... | |
| string | TimeStamp |
| Message timestamp, assists in collision avoidance More... | |
Properties | |
| bool | IsDeserialized [get] |
| Utilized by Mercury serialization/deserialization systems. More... | |
Base class for messages passed through MmInvoke Built on Unity's Message Base, allowing usage of serialize/deserialize
| MercuryMessaging.MmMessage.MmMessage | ( | ) |
Creates a basic MmMessage with a default control block
| MercuryMessaging.MmMessage.MmMessage | ( | MmMetadataBlock | metadataBlock | ) |
Creates a basic MmMessage with the passed control block.
| metadataBlock | Object defining the routing of messages. |
| MercuryMessaging.MmMessage.MmMessage | ( | MmMethod | mmMethod, |
| MmMetadataBlock | metadataBlock = null |
||
| ) |
Create an MmMessage, with defined control block and MmMethod
| mmMethod | Identifier of target MmMethod |
| metadataBlock | Object defining the routing of messages through MercuryMessaging Hierarchys. |
| MercuryMessaging.MmMessage.MmMessage | ( | MmMethod | mmMethod, |
| MmLevelFilter | levelFilter, | ||
| MmActiveFilter | activeFilter, | ||
| MmSelectedFilter | selectedFilter, | ||
| MmNetworkFilter | networkFilter | ||
| ) |
Create an MmMessage, with filters defined directly
| mmMethod | Identifier of target MmMethod |
| levelFilter | Determines direction of messages |
| activeFilter | Determines whether message sent to active and/or inactive objects |
| selectedFilter | Determines whether message sent to objects "selected" as defined by MmRelayNode implementation |
| networkFilter | Determines whether message will remain local or can be sent over the network |
| MercuryMessaging.MmMessage.MmMessage | ( | MmMessage | message | ) |
Duplicate an MmMessage
| message | Item to duplicate |
|
virtual |
Message copy method
Reimplemented in MercuryMessaging.MmMessageSerializable, MercuryMessaging.MmMessageTransformList, MercuryMessaging.MmMessageByteArray, MercuryMessaging.MmMessageVector4, MercuryMessaging.MmMessageTransform, MercuryMessaging.MmMessageVector3, MercuryMessaging.MmMessageFloat, MercuryMessaging.MmMessageInt, MercuryMessaging.MmMessageString, and MercuryMessaging.MmMessageBool.
| override void MercuryMessaging.MmMessage.Deserialize | ( | NetworkReader | reader | ) |
Deserialize the MmMessage
| reader | UNET based deserializer object |
| override void MercuryMessaging.MmMessage.Serialize | ( | NetworkWriter | writer | ) |
Serialize the MmMessage
| writer | UNET based serializer |
| MmMetadataBlock MercuryMessaging.MmMessage.MetadataBlock |
Control parameters designating how a message should traverse an MercuryMessaging Hierarchy.
| MmMethod MercuryMessaging.MmMessage.MmMethod |
The MmMethod invoked by the calling object.
| uint MercuryMessaging.MmMessage.NetId |
Network identifier of sender/recipient objects.
| bool MercuryMessaging.MmMessage.root = true |
Deprecated - remove in next version
| string MercuryMessaging.MmMessage.TimeStamp |
Message timestamp, assists in collision avoidance
|
get |
Utilized by Mercury serialization/deserialization systems.