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; } }
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; } }
public void DelHandle(string name, Network.PtoHandle handle) { m_Client.Net.DelHandle(name, handle); }