1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 15:53:21 +08:00

Add some commenting.

This commit is contained in:
Dean Herbert 2017-03-31 16:01:48 +09:00
parent cf87330f80
commit 3f080ab424
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -72,6 +72,10 @@ namespace osu.Game.Modes.UI
protected virtual FramedReplayInputHandler CreateReplayInputHandler(Replay replay) => new FramedReplayInputHandler(replay);
/// <summary>
/// Sets a replay to be used, overriding local input.
/// </summary>
/// <param name="replay">The replay, null for local input.</param>
public void SetReplay(Replay replay) => InputManager.ReplayInputHandler = replay != null ? CreateReplayInputHandler(replay) : null;
}