mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Add accuracy to frame bundle header
This commit is contained in:
@ -14,6 +14,11 @@ namespace osu.Game.Online.Spectator
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public class FrameHeader
|
public class FrameHeader
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The current accuracy of the score.
|
||||||
|
/// </summary>
|
||||||
|
public double Accuracy { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The current combo of the score.
|
/// The current combo of the score.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -42,16 +47,18 @@ namespace osu.Game.Online.Spectator
|
|||||||
{
|
{
|
||||||
Combo = score.Combo;
|
Combo = score.Combo;
|
||||||
MaxCombo = score.MaxCombo;
|
MaxCombo = score.MaxCombo;
|
||||||
|
Accuracy = score.Accuracy;
|
||||||
|
|
||||||
// copy for safety
|
// copy for safety
|
||||||
Statistics = new Dictionary<HitResult, int>(score.Statistics);
|
Statistics = new Dictionary<HitResult, int>(score.Statistics);
|
||||||
}
|
}
|
||||||
|
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public FrameHeader(int combo, int maxCombo, Dictionary<HitResult, int> statistics, DateTimeOffset receivedTime)
|
public FrameHeader(int combo, int maxCombo, double accuracy, Dictionary<HitResult, int> statistics, DateTimeOffset receivedTime)
|
||||||
{
|
{
|
||||||
Combo = combo;
|
Combo = combo;
|
||||||
MaxCombo = maxCombo;
|
MaxCombo = maxCombo;
|
||||||
|
Accuracy = accuracy;
|
||||||
Statistics = statistics;
|
Statistics = statistics;
|
||||||
ReceivedTime = receivedTime;
|
ReceivedTime = receivedTime;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user