public static MsgHandle getHandle(EMessageID msgId_) { MsgHandle handle = null; s_msgDict.TryGetValue(msgId_, out handle); return(handle); }
public static void Register(EMessageID msg_id, OnMessageEvent e) { if (!m_Dict_EventRegister.ContainsKey(msg_id)) { m_Dict_EventRegister.Add(msg_id, new List <OnMessageEvent>()); } if (!m_Dict_EventRegister[msg_id].Contains(e)) { m_Dict_EventRegister[msg_id].Add(e); } }
public Msg(EMessageID MessageID, params object[] Params) { this.MessageID = MessageID; this.Params = Params; }