Exemplo n.º 1
0
 public Connection(Game game)
 {
     _game = game;
     queuedPackets = new Queue<Packet>();
     ChuckedRawPacket = new List<Byte>();
     IsConnected = false;
 }
Exemplo n.º 2
0
        public void HandlePacket(Game connection, Packet packet)
        {
            var packetBuilderGet = new PacketBuilder(packet);

            Console.WriteLine("packet postion : " + packetBuilderGet.ReadInt32());

            var p = new Packet(PacketId.Position);
            var packetBuilder = new PacketBuilder(p);

            packetBuilder.WriteInt32(12);

            p = packetBuilder.ToPacket();

           connection.Connection.SendPacket(p);
        }
Exemplo n.º 3
0
 public void HandlePacket(Game connection, Packet packet)
 {
     
 }