Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 监视网关
 /// </summary>
 public void ListenGateway(KG2C_Protocol protocolId, ProtocolHandler handler, Type type)
 {
     m_GatewayProtocolMapping.AddProtocolHandler((int)protocolId, handler, type);
 }