RegisterHandler() public method

public RegisterHandler ( Api id, MsgHandler handler ) : bool
id Api
handler MsgHandler
return bool
Ejemplo n.º 1
0
 // 注册收到消息后的数据处理
 public void RegisterHandler(NetProto.Api.ENetMsgId opc, NetProto.Dispatcher.MsgHandler handler)
 {
     dispatcher.RegisterHandler(opc, handler);
 }