OsuGameMode<-WorkingBeatMap->OsuGameBase.

This commit is contained in:
Huo Yaoyuan 2016-10-28 21:03:59 +08:00
parent 3858c77817
commit 6aba03e1ca
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using osu.Framework;
using osu.Framework.Configuration;
using osu.Framework.GameModes;
using osu.Framework.Graphics.Containers;
@ -68,6 +69,12 @@ private void beatmap_ValueChanged(object sender, EventArgs e)
OnBeatmapChanged(beatmap.Value);
}
public override void Load(BaseGame game)
{
base.Load(game);
beatmap = (game as OsuGameBase)?.Beatmap;
}
public override bool Push(GameMode mode)
{
OsuGameMode nextOsu = mode as OsuGameMode;

View File

@ -52,7 +52,6 @@ public OsuGameBase()
private void Beatmap_ValueChanged(object sender, EventArgs e)
{
throw new NotImplementedException();
}
public override void Load(BaseGame game)