Beispiel #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;
        }
Beispiel #2
0
        public void Read(ClientWrapper state, MSGBuffer buffer, object[] Arguments)
        {
            Player targetplayer = state.Player;
            double X            = buffer.ReadDouble();
            double FeetY        = buffer.ReadDouble();
            double Z            = buffer.ReadDouble();
            bool   OnGround     = buffer.ReadBool();

            targetplayer.Coordinates = new Vector3(X, FeetY, Z);
            state.Player.OnGround    = OnGround;
        }
Beispiel #3
0
        public void Read(ClientWrapper state, MSGBuffer buffer, object[] Arguments)
        {
            string Locale       = buffer.ReadString();
            byte   ViewDistance = (byte)buffer.ReadByte();
            byte   ChatFlags    = (byte)buffer.ReadByte();
            bool   ChatColours  = buffer.ReadBool();
            byte   SkinParts    = (byte)buffer.ReadByte();

            state.Player.Locale       = Locale;
            state.Player.ViewDistance = ViewDistance;
            state.Player.ChatColours  = ChatColours;
            state.Player.ChatFlags    = ChatFlags;
            state.Player.SkinParts    = SkinParts;
        }
Beispiel #4
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);
        }
Beispiel #5
0
        public void Read(ClientWrapper state, MSGBuffer buffer, object[] Arguments)
        {
            bool OnGround = buffer.ReadBool();

            state.Player.OnGround = OnGround;
        }