mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Replace pragma with add/remove => throw
This commit is contained in:
parent
f528488aa2
commit
b723975767
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user