1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:43:01 +08:00

Add xmldoc to new AllowFail method

This commit is contained in:
Dean Herbert 2023-11-23 10:01:59 +09:00
parent ca93fdc94b
commit 8375dd72d6
No known key found for this signature in database
2 changed files with 13 additions and 2 deletions

View File

@ -894,6 +894,13 @@ namespace osu.Game.Screens.Play
#region Fail Logic
/// <summary>
/// Invoked when gameplay has permanently failed.
/// </summary>
protected virtual void OnFail()
{
}
protected FailOverlay FailOverlay { get; private set; }
private FailAnimationContainer failAnimationContainer;

View File

@ -68,6 +68,12 @@ namespace osu.Game.Screens.Play
}, true);
}
/// <summary>
/// Should be called when it is apparent that the player being spectated has failed.
/// This will subsequently stop blocking the fail screen from displaying (usually done out of safety).
/// </summary>
public void AllowFail() => allowFail = true;
protected override void StartGameplay()
{
base.StartGameplay();
@ -131,7 +137,5 @@ namespace osu.Game.Screens.Play
if (SpectatorClient != null)
SpectatorClient.OnNewFrames -= userSentFrames;
}
public void AllowFail() => allowFail = true;
}
}