1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:02:55 +08:00

Add xmldoc for new ResetFromReplayFrame method

This commit is contained in:
Dean Herbert 2022-02-01 16:52:53 +09:00
parent 0641264a11
commit 0f83f77d2b

View File

@ -108,6 +108,14 @@ namespace osu.Game.Rulesets.Scoring
JudgedHits = 0; JudgedHits = 0;
} }
/// <summary>
/// Reset all statistics based on header information contained within a replay frame.
/// </summary>
/// <remarks>
/// If the provided replay frame does not have any header information, this will be a noop.
/// </remarks>
/// <param name="ruleset">The ruleset to be used for retrieving statistics.</param>
/// <param name="frame">The replay frame to read header statistics from.</param>
public virtual void ResetFromReplayFrame(Ruleset ruleset, ReplayFrame frame) public virtual void ResetFromReplayFrame(Ruleset ruleset, ReplayFrame frame)
{ {
if (frame.Header == null) if (frame.Header == null)