Ejemplo n.º 1
0
        public byte[] ToPacket()
        {
            DataWriter dataWriter = new DataWriter();

            dataWriter.Put(PacketId);
            dataWriter.Put((byte)playerInputs);
            return(dataWriter.CopyData());
        }
Ejemplo n.º 2
0
        public byte[] ToPacket()
        {
            DataWriter dataWriter = new DataWriter();

            dataWriter.Put(PacketId);
            dataWriter.Put(playerPos.ToBytes());
            return(dataWriter.CopyData());
        }
Ejemplo n.º 3
0
        public byte[] ToPacket()
        {
            DataWriter dataWriter = new DataWriter();

            dataWriter.Put(PacketId);
            dataWriter.Put(message);

            return(dataWriter.CopyData());
        }
Ejemplo n.º 4
0
        public byte[] ToPacket()
        {
            DataWriter dataWriter = new DataWriter();

            dataWriter.Put(PacketId);

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

            return(dataWriter.CopyData());
        }