Esempio n. 1
0
 public void AddPacketHandler(FamilyActionPair key, PacketHandler handlerFunction, bool inGameOnly)
 {
     if (m_handlers.ContainsKey(key))
     {
         m_handlers[key] = new LockedHandlerMethod(handlerFunction, inGameOnly);
     }
     else
     {
         m_handlers.Add(key, new LockedHandlerMethod(handlerFunction, inGameOnly));
     }
 }
Esempio n. 2
0
 public void AddPacketHandler(FamilyActionPair key, PacketHandler handlerFunction, bool inGameOnly)
 {
     if (m_handlers.ContainsKey(key))
         m_handlers[key] = new LockedHandlerMethod(handlerFunction, inGameOnly);
     else
         m_handlers.Add(key, new LockedHandlerMethod(handlerFunction, inGameOnly));
 }