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

Replace pragma with add/remove => throw

This commit is contained in:
Salman Ahmed 2021-11-05 09:10:38 +03:00
parent f528488aa2
commit b723975767
2 changed files with 22 additions and 8 deletions

View File

@ -79,10 +79,17 @@ namespace osu.Game.Tests.NonVisual
public List<HitObject> HitObjects; public List<HitObject> HitObjects;
public override IEnumerable<HitObject> Objects => HitObjects; public override IEnumerable<HitObject> Objects => HitObjects;
#pragma warning disable 67 public override event Action<JudgementResult> NewResult
public override event Action<JudgementResult> NewResult; {
public override event Action<JudgementResult> RevertResult; add => throw new InvalidOperationException();
#pragma warning restore 67 remove => throw new InvalidOperationException();
}
public override event Action<JudgementResult> RevertResult
{
add => throw new InvalidOperationException();
remove => throw new InvalidOperationException();
}
public override Playfield Playfield { get; } public override Playfield Playfield { get; }
public override Container Overlays { get; } public override Container Overlays { get; }

View File

@ -235,10 +235,17 @@ namespace osu.Game.Tests.Visual.Gameplay
public override IEnumerable<HitObject> Objects => new[] { new HitCircle { HitWindows = HitWindows } }; public override IEnumerable<HitObject> Objects => new[] { new HitCircle { HitWindows = HitWindows } };
#pragma warning disable 67 public override event Action<JudgementResult> NewResult
public override event Action<JudgementResult> NewResult; {
public override event Action<JudgementResult> RevertResult; add => throw new InvalidOperationException();
#pragma warning restore 67 remove => throw new InvalidOperationException();
}
public override event Action<JudgementResult> RevertResult
{
add => throw new InvalidOperationException();
remove => throw new InvalidOperationException();
}
public override Playfield Playfield { get; } public override Playfield Playfield { get; }
public override Container Overlays { get; } public override Container Overlays { get; }