From 6aba03e1cacffc11c5c57357f3e680da34bf7faf Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Fri, 28 Oct 2016 21:03:59 +0800 Subject: [PATCH] OsuGameMode<-WorkingBeatMap->OsuGameBase. --- osu.Game/GameModes/OsuGameMode.cs | 7 +++++++ osu.Game/OsuGameBase.cs | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/osu.Game/GameModes/OsuGameMode.cs b/osu.Game/GameModes/OsuGameMode.cs index d8b73f5f07..05a98d0623 100644 --- a/osu.Game/GameModes/OsuGameMode.cs +++ b/osu.Game/GameModes/OsuGameMode.cs @@ -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; diff --git a/osu.Game/OsuGameBase.cs b/osu.Game/OsuGameBase.cs index bfa07d72c8..ccd3026841 100644 --- a/osu.Game/OsuGameBase.cs +++ b/osu.Game/OsuGameBase.cs @@ -52,7 +52,6 @@ namespace osu.Game private void Beatmap_ValueChanged(object sender, EventArgs e) { - throw new NotImplementedException(); } public override void Load(BaseGame game)