-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14241 from smoogipoo/fix-osu-editor-exception
Fix out-of-order hits in editor causing exceptions
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Game.Rulesets.Objects.Drawables; | ||
using osu.Game.Rulesets.UI; | ||
|
||
namespace osu.Game.Rulesets.Osu.UI | ||
{ | ||
/// <summary> | ||
/// An <see cref="IHitPolicy"/> which allows hitobjects to be hit in any order. | ||
/// </summary> | ||
public class AnyOrderHitPolicy : IHitPolicy | ||
{ | ||
public IHitObjectContainer HitObjectContainer { get; set; } | ||
|
||
public bool IsHittable(DrawableHitObject hitObject, double time) => true; | ||
|
||
public void HandleHit(DrawableHitObject hitObject) | ||
{ | ||
} | ||
} | ||
} |