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); } } }
public void Register(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc) { if (m_callbackMap.ContainsKey(type)) { m_callbackMap[type] += callBackFunc; } else { m_callbackMap[type] = callBackFunc; } }
public bool Register(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc) { if (m_callbackMap.ContainsKey(type)) { m_callbackMap[type] += callBackFunc; } else { m_callbackMap[type] = callBackFunc; } return(true); }
public void Unregister(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc) { throw new System.NotImplementedException(); }
void INetworkService.Register(NetWorkCommandType type, ReigsterCallBackFunc callBackFunc) { throw new System.NotImplementedException(); }