Mercury Messaging
Documentation for the Mercury Messaging Framework
MercuryMessaging.MmResponder Class Referenceabstract

Base implmentation of IMmResponder. More...

Inheritance diagram for MercuryMessaging.MmResponder:
MercuryMessaging.IMmResponder MercuryMessaging.MmBaseResponder MercuryMessaging.MmRelayNode HandController InvocationComparison LightGUIResponder LightSwitchResponder MercuryMessaging.AppState.MmAppStateResponder MercuryMessaging.MmSwitchResponder MercuryMessaging.MmTransformResponder MercuryMessaging.Support.GUI.MmGuiResponder MercuryMessaging.Task.MmTaskManager< U > MercuryMessaging.Task.MmTaskResponder< T > MercuryMessaging.Tutorials.Tutorial1.Sphere1Controller MercuryMessaging.Tutorials.Tutorial1.TestScript SpeechRecognitionResponder MercuryMessaging.AppState.MmRelayAppStateNode MercuryMessaging.MmQuickNode MercuryMessaging.MmRelaySwitchNode

Public Member Functions

virtual void Awake ()
 Awake: Invokes MmOnAwakeComplete More...
 
virtual void Start ()
 Start: Invokes MmOnStartComplete More...
 
virtual void Update ()
 Base Update of MmResponder Derived classes should always override. More...
 
virtual void MmOnAwakeComplete ()
 Post Awake callback used between objects implementing this interface. This allows for initialization steps that must occur before one instance's Awake and its Start. More...
 
virtual void MmOnStartComplete ()
 Post Start callback used between objects implementing this interface This allows for initialization steps that must occur before one instance's Start and its first Update. More...
 
virtual void MmRegisterAwakeCompleteCallback (IMmCallback callback)
 It is possible that certain handles are not going to be in-place when registration of the OnAwakeComplete callback is invoked. The is especially true in scenarios where MmRelayNodes are networked. This allows for a deferred registration, eliminating most instances where the Awake callback invocations fail. More...
 
virtual void MmRegisterStartCompleteCallback (IMmCallback callback)
 It is possible that certain handles are not going to be in-place when registration of the OnStartComplete callback is invoked. The is especially true in scenarios where MmRelayNodes are networked. This allows for a deferred registration, eliminating most instances where the Start callback invocations fail. More...
 
abstract MmRelayNode GetRelayNode ()
 Get a handle to a IMmResponder's MmRelayNode, if one is present. More...
 
virtual void MmInvoke (MmMessageType msgType, MmMessage message)
 Invoke an MmMethod. More...
 

Properties

GameObject MmGameObject [get]
 Handle to an instance's GameObject. More...
 
MmTag Tag [get, set]
 MmTags allow you to specify filters for execution in Mercury XM graphs. More...
 
bool TagCheckEnabled [get, set]
 Determines whether tag checking is enabled for this IMmResponder More...
 
- Properties inherited from MercuryMessaging.IMmResponder
MmTag Tag [get, set]
 MmTags allow you to specify filters for execution in MercuryMessaging Hierarchies. MmTag More...
 
GameObject MmGameObject [get]
 Handle to an instance's GameObject. More...
 
bool TagCheckEnabled [get, set]
 Determines whether tag checking is enabled for this IMmResponder More...
 

Detailed Description

Base implmentation of IMmResponder.

Member Function Documentation

◆ Awake()

◆ GetRelayNode()

abstract MmRelayNode MercuryMessaging.MmResponder.GetRelayNode ( )
pure virtual

Get a handle to a IMmResponder's MmRelayNode, if one is present.

Returns
an MmRelayNode sharing the GameObject with the instance.

Implements MercuryMessaging.IMmResponder.

Implemented in MercuryMessaging.MmRelayNode, and MercuryMessaging.MmBaseResponder.

◆ MmInvoke()

virtual void MercuryMessaging.MmResponder.MmInvoke ( MmMessageType  msgType,
MmMessage  message 
)
virtual

Invoke an MmMethod.

Parameters
msgTypeType of message. This specifies the type of the payload. This is important in networked scenarios, when proper deseriaization into the correct type requires knowing what was used to serialize the object originally.
messageThe message to send. This class builds on UNET's MessageBase so it is Auto [de]serialized by UNET.

Implements MercuryMessaging.IMmResponder.

Reimplemented in MercuryMessaging.MmRelayNode, InvocationComparison, MercuryMessaging.MmBaseResponder, and MercuryMessaging.MmQuickNode.

◆ MmOnAwakeComplete()

virtual void MercuryMessaging.MmResponder.MmOnAwakeComplete ( )
virtual

Post Awake callback used between objects implementing this interface. This allows for initialization steps that must occur before one instance's Awake and its Start.

Implements MercuryMessaging.IMmResponder.

◆ MmOnStartComplete()

virtual void MercuryMessaging.MmResponder.MmOnStartComplete ( )
virtual

Post Start callback used between objects implementing this interface This allows for initialization steps that must occur before one instance's Start and its first Update.

Implements MercuryMessaging.IMmResponder.

◆ MmRegisterAwakeCompleteCallback()

virtual void MercuryMessaging.MmResponder.MmRegisterAwakeCompleteCallback ( IMmCallback  callback)
virtual

It is possible that certain handles are not going to be in-place when registration of the OnAwakeComplete callback is invoked. The is especially true in scenarios where MmRelayNodes are networked. This allows for a deferred registration, eliminating most instances where the Awake callback invocations fail.

Parameters
callbackCallback to be registered.

Implements MercuryMessaging.IMmResponder.

◆ MmRegisterStartCompleteCallback()

virtual void MercuryMessaging.MmResponder.MmRegisterStartCompleteCallback ( IMmCallback  callback)
virtual

It is possible that certain handles are not going to be in-place when registration of the OnStartComplete callback is invoked. The is especially true in scenarios where MmRelayNodes are networked. This allows for a deferred registration, eliminating most instances where the Start callback invocations fail.

Parameters
callbackCallback to be registered.

Implements MercuryMessaging.IMmResponder.

◆ Start()

◆ Update()

virtual void MercuryMessaging.MmResponder.Update ( )
virtual

Base Update of MmResponder Derived classes should always override.

Reimplemented in MercuryMessaging.Task.MmTaskResponder< T >, InvocationComparison, and MercuryMessaging.MmTransformResponder.

Property Documentation

◆ MmGameObject

GameObject MercuryMessaging.MmResponder.MmGameObject
get

Handle to an instance's GameObject.

◆ Tag

MmTag MercuryMessaging.MmResponder.Tag
getset

MmTags allow you to specify filters for execution in Mercury XM graphs.

◆ TagCheckEnabled

bool MercuryMessaging.MmResponder.TagCheckEnabled
getset

Determines whether tag checking is enabled for this IMmResponder


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