1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:28:00 +08:00

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.Diagnostics;
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 @@ namespace osu.Game.GameModes
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 @@ namespace osu.Game
private void Beatmap_ValueChanged(object sender, EventArgs e)
{
throw new NotImplementedException();
}
public override void Load(BaseGame game)