Add received timestamp and basic xmldoc for header class

This commit is contained in:
Dean Herbert 2020-12-16 16:19:53 +09:00
parent 84a0770789
commit 72d296f412

View File

@ -14,12 +14,26 @@ namespace osu.Game.Online.Spectator
[Serializable]
public class FrameHeader
{
/// <summary>
/// The current combo of the score.
/// </summary>
public int Combo { get; set; }
/// <summary>
/// The maximum combo achieved up to the current point in time.
/// </summary>
public int MaxCombo { get; set; }
/// <summary>
/// Cumulative hit statistics.
/// </summary>
public Dictionary<HitResult, int> Statistics { get; set; }
/// <summary>
/// The time at which this frame was received by the server.
/// </summary>
public DateTimeOffset ReceivedTime { get; set; }
/// <summary>
/// Construct header summary information from a point-in-time reference to a score which is actively being played.
/// </summary>
@ -34,11 +48,12 @@ namespace osu.Game.Online.Spectator
}
[JsonConstructor]
public FrameHeader(int combo, int maxCombo, Dictionary<HitResult, int> statistics)
public FrameHeader(int combo, int maxCombo, Dictionary<HitResult, int> statistics, DateTimeOffset receivedTime)
{
Combo = combo;
MaxCombo = maxCombo;
Statistics = statistics;
ReceivedTime = receivedTime;
}
}
}