mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Send ScoreProcessor statistics in SpectatorState
This commit is contained in:
@ -172,6 +172,9 @@ namespace osu.Game.Online.Spectator
|
||||
currentState.RulesetID = score.ScoreInfo.RulesetID;
|
||||
currentState.Mods = score.ScoreInfo.Mods.Select(m => new APIMod(m)).ToArray();
|
||||
currentState.State = SpectatedUserState.Playing;
|
||||
currentState.MaxAchievableCombo = state.ScoreProcessor.MaxAchievableCombo;
|
||||
currentState.MaxAchievableBaseScore = state.ScoreProcessor.MaxAchievableBaseScore;
|
||||
currentState.TotalBasicHitObjects = state.ScoreProcessor.TotalBasicHitObjects;
|
||||
|
||||
currentBeatmap = state.Beatmap;
|
||||
currentScore = score;
|
||||
|
@ -27,6 +27,24 @@ namespace osu.Game.Online.Spectator
|
||||
[Key(3)]
|
||||
public SpectatedUserState State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum achievable combo, if everything is hit perfectly.
|
||||
/// </summary>
|
||||
[Key(4)]
|
||||
public int MaxAchievableCombo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum achievable base score, if everything is hit perfectly.
|
||||
/// </summary>
|
||||
[Key(5)]
|
||||
public double MaxAchievableBaseScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The total number of basic (non-tick and non-bonus) hitobjects that can be hit.
|
||||
/// </summary>
|
||||
[Key(6)]
|
||||
public int TotalBasicHitObjects { get; set; }
|
||||
|
||||
public bool Equals(SpectatorState other)
|
||||
{
|
||||
if (ReferenceEquals(null, other)) return false;
|
||||
|
Reference in New Issue
Block a user