mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Adopt HitObjectContainer change in a test
Non-pooled objects are attached as children only while alive
This commit is contained in:
parent
d262956146
commit
f55aa016be
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user