Example #1
0
 void EnableProcessor()
 {
     foreach (NetMsgProcessorPair Pair in m_ProcessorList)
     {
         NetMsgMap.RegistMsgProcessor(Pair.getMsgType(), Pair.getProcessor());
     }
 }
Example #2
0
 public void AddNetMsgProcessor(GameMsgType nMsgType, NetMsgProcessor Porcessor)
 {
     m_ProcessorList.Add(new NetMsgProcessorPair(nMsgType, Porcessor));
     if (m_bEnable)
     {
         NetMsgMap.RegistMsgProcessor(nMsgType, Porcessor);
     }
 }