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

Add some xmldocs

This commit is contained in:
smoogipoo 2021-04-09 18:29:02 +09:00
parent e73f3f52d7
commit 7cbc8f2695

View File

@ -121,8 +121,21 @@ namespace osu.Game.Screens.Play.HUD
OnIncomingFrames(userId, bundle);
});
/// <summary>
/// Invoked when new frames have arrived for a user.
/// </summary>
/// <remarks>
/// By default, this immediately sets the current frame to be displayed for the user.
/// </remarks>
/// <param name="userId">The user which the frames arrived for.</param>
/// <param name="bundle">The bundle of frames.</param>
protected virtual void OnIncomingFrames(int userId, FrameDataBundle bundle) => SetCurrentFrame(userId, bundle.Header);
/// <summary>
/// Sets the current frame to be displayed for a user.
/// </summary>
/// <param name="userId">The user to set the frame of.</param>
/// <param name="header">The frame to set.</param>
protected void SetCurrentFrame(int userId, FrameHeader header)
{
var trackedScore = userScores[userId];