Exemplo n.º 1
0
 void DisableProcessor()
 {
     foreach (NetMsgProcessorPair Pair in m_ProcessorList)
     {
         NetMsgMap.UnRegistMsgProcessor(Pair.getMsgType(), Pair.getProcessor());
     }
 }
Exemplo n.º 2
0
 public void ClearNetMsgProcessor()
 {
     foreach (NetMsgProcessorPair Pair in m_ProcessorList)
     {
         NetMsgMap.UnRegistMsgProcessor(Pair.getMsgType(), Pair.getProcessor());
     }
     m_ProcessorList.Clear();
 }
Exemplo n.º 3
0
 public void AddNetMsgProcessor(GameMsgType nMsgType, NetMsgProcessor Porcessor)
 {
     m_ProcessorList.Add(new NetMsgProcessorPair(nMsgType, Porcessor));
     if (m_bEnable)
     {
         NetMsgMap.RegistMsgProcessor(nMsgType, Porcessor);
     }
 }