Skip to content

Commit

Permalink
Add Invalidated bool to LevelCompletionResults
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-r-elp committed Jul 27, 2024
1 parent dc4d1b4 commit cbe1fd0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public sealed class LevelCompletionResults : INetSerializable
public float AverageCutScoreForNotesWithFullScoreScoringType { get; set; }
public int MaxCombo { get; set; }
public float EndSongTime { get; set; }
public bool Invalidated { get; set; }

public void ReadFrom(ref SpanBuffer reader)
{
Expand Down Expand Up @@ -58,6 +59,7 @@ public void ReadFrom(ref SpanBuffer reader)
AverageCutScoreForNotesWithFullScoreScoringType = reader.ReadFloat32();
MaxCombo = reader.ReadVarInt();
EndSongTime = reader.ReadFloat32();
Invalidated = reader.ReadBool(); // Added in 1.37.1
}

public void WriteTo(ref SpanBuffer writer)
Expand Down Expand Up @@ -86,6 +88,7 @@ public void WriteTo(ref SpanBuffer writer)
writer.WriteFloat32(AverageCutScoreForNotesWithFullScoreScoringType);
writer.WriteVarInt(MaxCombo);
writer.WriteFloat32(EndSongTime);
writer.WriteBool(Invalidated); // Added in 1.37.1
}
}
}

0 comments on commit cbe1fd0

Please sign in to comment.