Пример #1
0
        public void Read(ClientWrapper state, MSGBuffer buffer, object[] Arguments)
        {
            float Yaw      = buffer.ReadFloat();
            float Pitch    = buffer.ReadFloat();
            bool  OnGround = buffer.ReadBool();

            state.Player.Yaw   = Yaw;
            state.Player.Pitch = Pitch;
        }
Пример #2
0
        public void Read(ClientWrapper state, MSGBuffer buffer, object[] Arguments)
        {
            double X        = buffer.ReadDouble();
            double FeetY    = buffer.ReadDouble();
            double Z        = buffer.ReadDouble();
            float  Yaw      = buffer.ReadFloat();
            float  Pitch    = buffer.ReadFloat();
            bool   OnGround = buffer.ReadBool();

            state.Player.OnGround    = OnGround;
            state.Player.Yaw         = Yaw;
            state.Player.Pitch       = Pitch;
            state.Player.Coordinates = new Vector3(X, FeetY, Z);
        }