示例#1
0
 public unsafe bool HandlePacket(ENetPeer* peer, byte[] data, Game game)
 {
     var world = new WorldSendGameNumber(1, game.getPeerInfo(peer).getName());
     return PacketHandlerManager.getInstace().sendPacket(peer, world, Channel.CHL_S2C);
 }
示例#2
0
 unsafe bool handleGameNumber(ClientInfo client, ENetPeer* peer, ENetPacket* packet)
 {
     var world = new WorldSendGameNumber(1, client.getName());
     return PacketHandlerManager.getInstace().sendPacket(peer, world, Channel.CHL_S2C);
 }