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:
parent
3858c77817
commit
6aba03e1ca
@ -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;
|
||||
|
@ -52,7 +52,6 @@ namespace osu.Game
|
||||
|
||||
private void Beatmap_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
|
Loading…
Reference in New Issue
Block a user