mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove all non-load Game access.
This commit is contained in:
@ -16,6 +16,7 @@ using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Game.Online.Chat.Display.osu.Online.Social;
|
||||
using osu.Framework;
|
||||
|
||||
namespace osu.Desktop.Tests
|
||||
{
|
||||
@ -31,10 +32,17 @@ namespace osu.Desktop.Tests
|
||||
|
||||
private Scheduler scheduler = new Scheduler();
|
||||
|
||||
private APIAccess api => ((OsuGameBase)Game).API;
|
||||
private APIAccess api;
|
||||
|
||||
private long? lastMessageId;
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
{
|
||||
base.Load(game);
|
||||
|
||||
api = ((OsuGameBase)game).API;
|
||||
}
|
||||
|
||||
public override void Reset()
|
||||
{
|
||||
base.Reset();
|
||||
|
Reference in New Issue
Block a user