Remove all non-load Game access.

This commit is contained in:
Dean Herbert
2016-10-10 17:17:26 +09:00
parent 48bd998f46
commit 4052a665bf
34 changed files with 129 additions and 100 deletions

View File

@ -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();