Mercury Messaging
Documentation for the Mercury Messaging Framework
MercuryMessaging.MmMessage Class Reference

Base class for messages passed through MmInvoke Built on Unity's Message Base, allowing usage of serialize/deserialize More...

Inheritance diagram for MercuryMessaging.MmMessage:
MercuryMessaging.MmMessageBool MercuryMessaging.MmMessageByteArray MercuryMessaging.MmMessageFloat MercuryMessaging.MmMessageInt MercuryMessaging.MmMessageSerializable MercuryMessaging.MmMessageString MercuryMessaging.MmMessageTransform MercuryMessaging.MmMessageTransformList MercuryMessaging.MmMessageVector3 MercuryMessaging.MmMessageVector4

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...
 

Detailed Description

Base class for messages passed through MmInvoke Built on Unity's Message Base, allowing usage of serialize/deserialize

Constructor & Destructor Documentation

◆ MmMessage() [1/5]

MercuryMessaging.MmMessage.MmMessage ( )

Creates a basic MmMessage with a default control block

◆ MmMessage() [2/5]

MercuryMessaging.MmMessage.MmMessage ( MmMetadataBlock  metadataBlock)

Creates a basic MmMessage with the passed control block.

Parameters
metadataBlockObject defining the routing of messages.

◆ MmMessage() [3/5]

MercuryMessaging.MmMessage.MmMessage ( MmMethod  mmMethod,
MmMetadataBlock  metadataBlock = null 
)

Create an MmMessage, with defined control block and MmMethod

Parameters
mmMethodIdentifier of target MmMethod
metadataBlockObject defining the routing of messages through MercuryMessaging Hierarchys.

◆ MmMessage() [4/5]

MercuryMessaging.MmMessage.MmMessage ( MmMethod  mmMethod,
MmLevelFilter  levelFilter,
MmActiveFilter  activeFilter,
MmSelectedFilter  selectedFilter,
MmNetworkFilter  networkFilter 
)

Create an MmMessage, with filters defined directly

Parameters
mmMethodIdentifier of target MmMethod
levelFilterDetermines direction of messages
activeFilterDetermines whether message sent to active and/or inactive objects
selectedFilterDetermines whether message sent to objects "selected" as defined by MmRelayNode implementation
networkFilterDetermines whether message will remain local or can be sent over the network

◆ MmMessage() [5/5]

MercuryMessaging.MmMessage.MmMessage ( MmMessage  message)

Duplicate an MmMessage

Parameters
messageItem to duplicate

Member Function Documentation

◆ Copy()

◆ Deserialize()

override void MercuryMessaging.MmMessage.Deserialize ( NetworkReader  reader)

Deserialize the MmMessage

Parameters
readerUNET based deserializer object

◆ Serialize()

override void MercuryMessaging.MmMessage.Serialize ( NetworkWriter  writer)

Serialize the MmMessage

Parameters
writerUNET based serializer

Member Data Documentation

◆ MetadataBlock

MmMetadataBlock MercuryMessaging.MmMessage.MetadataBlock

Control parameters designating how a message should traverse an MercuryMessaging Hierarchy.

◆ MmMethod

MmMethod MercuryMessaging.MmMessage.MmMethod

The MmMethod invoked by the calling object.

◆ NetId

uint MercuryMessaging.MmMessage.NetId

Network identifier of sender/recipient objects.

◆ root

bool MercuryMessaging.MmMessage.root = true

Deprecated - remove in next version

◆ TimeStamp

string MercuryMessaging.MmMessage.TimeStamp

Message timestamp, assists in collision avoidance

Property Documentation

◆ IsDeserialized

bool MercuryMessaging.MmMessage.IsDeserialized
get

Utilized by Mercury serialization/deserialization systems.


The documentation for this class was generated from the following file: