Пример #1
0
        public byte[] ToPacket()
        {
            DataWriter dataWriter = new DataWriter();

            dataWriter.Put(PacketId);
            dataWriter.Put(playerPos.ToBytes());
            return(dataWriter.CopyData());
        }
Пример #2
0
        public byte[] ToPacket()
        {
            DataWriter dataWriter = new DataWriter();

            dataWriter.Put(PacketId);

            dataWriter.Put(position.ToBytes());
            dataWriter.Put(name);

            return(dataWriter.CopyData());
        }