예제 #1
0
 /// <summary>
 /// 监视GameServer
 /// </summary>
 /// <param name="protocolId"></param>
 /// <param name="handler"></param>
 /// <param name="type"></param>
 public void ListenGameServer(KS2C_Protocol protocolId, ProtocolHandler handler, Type type)
 {
     m_GameServerProtocolMapping.AddProtocolHandler((int)protocolId, handler, type);
 }
예제 #2
0
 protected void RegistSocketListener(KS2C_Protocol protocolId, ProtocolHandler handler, Type type)
 {
     gameSocket.RegisterProtocol((int)protocolId, handler, type);
 }
예제 #3
0
 protected void RegistProctect(KS2C_Protocol protocolId, Type type)
 {
     gameSocket.RegisterProtocol((int)protocolId, null, type);
 }