1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:33:02 +08:00

Adopt HitObjectContainer change in a test

Non-pooled objects are attached as children only while alive
This commit is contained in:
ekrctb 2021-04-26 15:53:07 +09:00
parent d262956146
commit f55aa016be

View File

@ -4,6 +4,7 @@
using JetBrains.Annotations; using JetBrains.Annotations;
using NUnit.Framework; using NUnit.Framework;
using osu.Framework.Testing; using osu.Framework.Testing;
using osu.Framework.Timing;
using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables; using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.UI; using osu.Game.Rulesets.UI;
@ -19,7 +20,14 @@ namespace osu.Game.Tests.Gameplay
[SetUp] [SetUp]
public void Setup() => Schedule(() => public void Setup() => Schedule(() =>
{ {
Child = container = new HitObjectContainer(); Child = container = new HitObjectContainer
{
Clock = new FramedClock(new ManualClock
{
// Make sure hit objects with `StartTime == 0` are alive
CurrentTime = -1
})
};
}); });
[Test] [Test]