예제 #1
0
    public static MsgHandle getHandle(EMessageID msgId_)
    {
        MsgHandle handle = null;

        s_msgDict.TryGetValue(msgId_, out handle);
        return(handle);
    }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public Msg(EMessageID MessageID, params object[] Params)
 {
     this.MessageID = MessageID;
     this.Params    = Params;
 }