C# Class IMessage.MsgDispatcher

ファイルを表示 Open project: royhuang94/GloryFantasy Class Usage Examples

Public Methods

Method Description
RegisterMsg ( MsgReceiver self, int msgName, Condition condition, Action action, string TriggerName = "NoDefine" ) : void
SendMsg ( int msgName, MsgReceiver targetReceiver = null ) : void

发送消息

Method Details

RegisterMsg() public static method

public static RegisterMsg ( MsgReceiver self, int msgName, Condition condition, Action action, string TriggerName = "NoDefine" ) : void
self MsgReceiver
msgName int
condition Condition
action Action
TriggerName string
return void

SendMsg() public static method

发送消息
public static SendMsg ( int msgName, MsgReceiver targetReceiver = null ) : void
msgName int
targetReceiver MsgReceiver 目标接收者,不填或null为广域广播
return void