public void RegisterHandeler(short id, IJHSInterface handler) { if (!m_MessageHandlersDict.ContainsKey(id)) { m_MessageHandlersDict[id] = handler; } else { LOG.Error("Network Handler " + (object)id + " already exist."); } }
public void RegisterHandeler(short id, IJHSInterface handler) { if (!m_MessageHandlersDict.ContainsKey(id)) { JHSNetworkServer.RegisterHandler(id, OnNetworkReceive); m_MessageHandlersDict[id] = handler; } else { LOG.Error("Network Handler " + id + " already exist."); } }