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:
parent
ca93fdc94b
commit
8375dd72d6
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user