예제 #1
0
 public void DelHandle(string name, Network.PtoHandle handle)
 {
     if (!m_Handlers.ContainsKey(name))
     {
         return;
     }
     if (handle == null)
     {
         m_Handlers.Remove(name);
     }
     else
     {
         m_Handlers[name] -= handle;
     }
 }
예제 #2
0
 public void AddHandle(string name, Network.PtoHandle handle)
 {
     if (!m_Protocol.m_Name2ID.ContainsKey(name))
     {
         return;
     }
     if (m_Handlers.ContainsKey(name))
     {
         m_Handlers[name] += handle;
     }
     else
     {
         m_Handlers[name] = handle;
     }
 }
예제 #3
0
파일: NetMgr.cs 프로젝트: leecrest/mgf
 public void DelHandle(string name, Network.PtoHandle handle)
 {
     m_Client.Net.DelHandle(name, handle);
 }