1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +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 NUnit.Framework;
using osu.Framework.Testing;
using osu.Framework.Timing;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.UI;
@ -19,7 +20,14 @@ namespace osu.Game.Tests.Gameplay
[SetUp]
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]