C# Class IMessage.MsgDispatcher

Afficher le fichier Open project: royhuang94/GloryFantasy Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat void

SendMsg() public static méthode

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