mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Integrate with dependency injection
This commit is contained in:
@ -17,9 +17,16 @@ namespace osu.Game.Tests.Visual
|
||||
typeof(BeatSnapVisualiser)
|
||||
};
|
||||
|
||||
private DependencyContainer dependencies;
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateLocalDependencies(IReadOnlyDependencyContainer parent)
|
||||
=> dependencies = new DependencyContainer(parent);
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
dependencies.Cache(new BindableBeatDivisor());
|
||||
|
||||
Child = new BeatSnapVisualiser
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
|
Reference in New Issue
Block a user