public void ReadFromStream(IPacketCodec content)
        {
            Position = content.ReadVector3d();
            Rotation = content.ReadRotation();
            var flags = content.ReadSByte();

            XKind           = (CoordKind)(flags & 0x01);
            YKind           = (CoordKind)(flags >> 1 & 0x01);
            ZKind           = (CoordKind)(flags >> 2 & 0x01);
            YRotKind        = (CoordKind)(flags >> 3 & 0x01);
            XRotKind        = (CoordKind)(flags >> 4 & 0x01);
            TeleportId      = content.ReadVarInt();
            DismountVehicle = content.ReadBoolean();
        }
 public void ReadFromStream(IPacketCodec content)
 {
     Rotation = content.ReadRotation();
     OnGround = content.ReadBoolean();
 }
Exemple #3
0
 public void ReadFromStream(IPacketCodec content)
 {
     Position = content.ReadVector3d();
     Rotation = content.ReadRotation();
 }