/// <inheritdoc />
 public override void Reset()
 {
     base.Reset();
     Pitch      = Yaw = HeadYaw = 0f;
     MoveVector = Vector2.Zero;
     Position   = Vector3.Zero;
     InputFlags = 0;
     InputMode  = PlayerInputMode.Mouse;
     PlayMode   = PlayerPlayMode.Normal;
     Tick       = 0;
     Delta      = Vector3.Zero;
 }
    partial void AfterDecode()
    {
        Pitch      = ReadFloat();
        Yaw        = ReadFloat();
        Position   = ReadVector3();
        MoveVector = ReadVector2();
        HeadYaw    = ReadFloat();
        InputFlags = (AuthInputFlags)ReadUnsignedVarLong();
        InputMode  = (PlayerInputMode)ReadUnsignedVarInt();
        PlayMode   = (PlayerPlayMode)ReadUnsignedVarInt();
        //IF VR.
        if (PlayMode == PlayerPlayMode.VR)
        {
            GazeDirection = ReadVector3();
        }

        Tick  = ReadUnsignedVarLong();
        Delta = ReadVector3();

        if ((InputFlags & AuthInputFlags.PerformItemInteraction) != 0)
        {
        }
    }