C# Class MessengerAM, tf_client

Class to manage updating components when certain game events happen
Inheritance: System.Object
ファイルを表示 Open project: wids-eria/tf_client

Public Properties

Property Type Description
listenTypeCollectItem string
listenTypeConfig string
listenTypeInput string
listenTypePlayer string

Public Methods

Method Description
ClearAll ( ) : void

Clears all registered listeners. Should be called when a new scene is loaded, etc.

Listen ( string listenerType, Component component ) : void

Register implicitly with this instead of gameObject.

Listen ( string listenerType, GameObject go ) : void

Adds a listener for a particular type of message.

Send ( MessageAM, msg ) : void

Sends a message (calls the function denoted by methodName) to all registered listeners for the given message type.

StopListen ( string listenerType, GameObject go ) : void

Removes a listener for the specified type of message.

Method Details

ClearAll() public static method

Clears all registered listeners. Should be called when a new scene is loaded, etc.
public static ClearAll ( ) : void
return void

Listen() public static method

Register implicitly with this instead of gameObject.
public static Listen ( string listenerType, Component component ) : void
listenerType string /// A ///
component Component /// A ///
return void

Listen() public static method

Adds a listener for a particular type of message.
public static Listen ( string listenerType, GameObject go ) : void
listenerType string /// A ///
go GameObject /// A ///
return void

Send() public static method

Sends a message (calls the function denoted by methodName) to all registered listeners for the given message type.
public static Send ( MessageAM, msg ) : void
msg MessageAM, /// A ///
return void

StopListen() public static method

Removes a listener for the specified type of message.
public static StopListen ( string listenerType, GameObject go ) : void
listenerType string /// A ///
go GameObject /// A ///
return void

Property Details

listenTypeCollectItem public_oe static_oe property

A listener type for item collection events.
public static string listenTypeCollectItem
return string

listenTypeConfig public_oe static_oe property

A listener type for configuration-related events (quality, resolution, etc.)
public static string listenTypeConfig
return string

listenTypeInput public_oe static_oe property

A listener type for input-related events.
public static string listenTypeInput
return string

listenTypePlayer public_oe static_oe property

A listener type for player-related events.
public static string listenTypePlayer
return string