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; }
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; }
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; }
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); }
public void Read(ClientWrapper state, MSGBuffer buffer, object[] Arguments) { bool OnGround = buffer.ReadBool(); state.Player.OnGround = OnGround; }