mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Make GetNextObject() a virtual method
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Replays;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
|
||||
namespace osu.Game.Rulesets.Replays
|
||||
{
|
||||
@ -34,5 +35,13 @@ namespace osu.Game.Rulesets.Replays
|
||||
protected const double KEY_UP_DELAY = 50;
|
||||
|
||||
#endregion
|
||||
|
||||
protected virtual HitObject GetNextObject(int currentIndex)
|
||||
{
|
||||
if (currentIndex >= Beatmap.HitObjects.Count - 1)
|
||||
return null;
|
||||
|
||||
return Beatmap.HitObjects[currentIndex + 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user