예제 #1
0
        public override void Write(Vector3F value)
        {
            var mcfloat = new MinecraftFloat(Stream);

            mcfloat.Write(value.X);
            mcfloat.Write(value.Y);
            mcfloat.Write(value.Z);
        }
예제 #2
0
        public override void Write(Rotation value)
        {
            var v = new MinecraftFloat(Stream);

            v.Write(value.Yaw);
            v.Write(value.Pitch);
            v.Write(value.Roll);
        }
예제 #3
0
        public override Vector3F Read()
        {
            var mcfloat = new MinecraftFloat(Stream);

            return(new Vector3F(mcfloat.Read(), mcfloat.Read(), mcfloat.Read()));
        }
예제 #4
0
        public override Rotation Read()
        {
            var v = new MinecraftFloat(Stream);

            return(new Rotation(v.Read(), v.Read(), v.Read()));
        }