1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 12:30:17 +08:00

OsuGameMode<-WorkingBeatMap->OsuGameBase.

This commit is contained in:
Huo Yaoyuan
2016-10-28 21:03:59 +08:00
Unverified
parent 3858c77817
commit 6aba03e1ca
2 changed files with 7 additions and 1 deletions
+7
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;
-1
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)