mirror of
https://github.com/ppy/osu.git
synced 2025-02-25 02:25:16 +08:00
Pass mod class that cause fail
This commit is contained in:
parent
2aeda54865
commit
7e1ee6151f
@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
public virtual bool RestartOnFail => Restart.Value;
|
public virtual bool RestartOnFail => Restart.Value;
|
||||||
|
|
||||||
private Action? triggerFailureDelegate;
|
private Action<object>? triggerFailureDelegate;
|
||||||
|
|
||||||
public void ApplyToHealthProcessor(HealthProcessor healthProcessor)
|
public void ApplyToHealthProcessor(HealthProcessor healthProcessor)
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Immediately triggers a failure on the loaded <see cref="HealthProcessor"/>.
|
/// Immediately triggers a failure on the loaded <see cref="HealthProcessor"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected void TriggerFailure() => triggerFailureDelegate?.Invoke();
|
protected void TriggerFailure() => triggerFailureDelegate?.Invoke(this);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether <paramref name="result"/> should trigger a failure. Called every time a
|
/// Determines whether <paramref name="result"/> should trigger a failure. Called every time a
|
||||||
|
Loading…
Reference in New Issue
Block a user