예제 #1
0
 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.");
     }
 }
예제 #2
0
 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.");
     }
 }