mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Convert everything to DI pattern
This commit is contained in:
@ -16,6 +16,7 @@ using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Online.Chat;
|
||||
using osu.Game.Online.Chat.Display;
|
||||
using OpenTK;
|
||||
using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
@ -34,11 +35,10 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
|
||||
private ChannelDisplay channelDisplay;
|
||||
|
||||
protected override void Load(BaseGame game)
|
||||
[Initializer]
|
||||
private void Load(APIAccess api)
|
||||
{
|
||||
base.Load(game);
|
||||
|
||||
api = ((OsuGameBase)game).API;
|
||||
this.api = api;
|
||||
}
|
||||
|
||||
public override void Reset()
|
||||
|
Reference in New Issue
Block a user