internal bool RegClientMsgHandler(RoomMessageDefine msg, ClientMsgHandler handler) { if (client_msg_handlers_.ContainsKey((int)msg)) { return false; } client_msg_handlers_.Add((int)msg, handler); return true; }
public bool RegClientMsgHandler(RoomMessageDefine msg, ClientMsgHandler handler) { if (client_msg_handlers_.ContainsKey((int)msg)) { return(false); } client_msg_handlers_.Add((int)msg, handler); return(true); }
internal bool RegClientMsgHandler(Type msg, ClientMsgHandler handler) { if (client_msg_handlers_.ContainsKey(msg)) { return(false); } client_msg_handlers_.Add(msg, handler); return(true); }
public void SetClientDefaultHandler(ClientMsgHandler handler) { client_default_handler_ = handler; }
internal void SetClientDefaultHandler(ClientMsgHandler handler) { client_default_handler_ = handler; }