コード例 #1
0
ファイル: PositionHandler.cs プロジェクト: cvanherk/3d-engine
        public void HandlePacket(Connection 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.SendPacket(p);
        }