コード例 #1
0
ファイル: NetMsgObserver.cs プロジェクト: happylays/tbb2
 void EnableProcessor()
 {
     foreach (NetMsgProcessorPair Pair in m_ProcessorList)
     {
         NetMsgMap.RegistMsgProcessor(Pair.getMsgType(), Pair.getProcessor());
     }
 }
コード例 #2
0
ファイル: NetMsgObserver.cs プロジェクト: happylays/tbb2
 public void AddNetMsgProcessor(GameMsgType nMsgType, NetMsgProcessor Porcessor)
 {
     m_ProcessorList.Add(new NetMsgProcessorPair(nMsgType, Porcessor));
     if (m_bEnable)
     {
         NetMsgMap.RegistMsgProcessor(nMsgType, Porcessor);
     }
 }