示例#1
0
 public void Unregister(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc)
 {
     if (m_callbackMap.ContainsKey(type))
     {
         m_callbackMap[type] -= callBackFunc;
         if (m_callbackMap[type] is null)
         {
             m_callbackMap.Remove(type);
         }
     }
 }
示例#2
0
 public void Register(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc)
 {
     if (m_callbackMap.ContainsKey(type))
     {
         m_callbackMap[type] += callBackFunc;
     }
     else
     {
         m_callbackMap[type] = callBackFunc;
     }
 }
示例#3
0
    public bool Register(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc)
    {
        if (m_callbackMap.ContainsKey(type))
        {
            m_callbackMap[type] += callBackFunc;
        }
        else
        {
            m_callbackMap[type] = callBackFunc;
        }

        return(true);
    }
示例#4
0
 public void Unregister(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc)
 {
     throw new System.NotImplementedException();
 }
示例#5
0
 void INetworkService.Register(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc)
 {
     throw new System.NotImplementedException();
 }