mirror of https://github.com/ppy/osu
OsuGameMode<-WorkingBeatMap->OsuGameBase.
This commit is contained in:
parent
3858c77817
commit
6aba03e1ca
|
@ -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;
|
||||
|
|
|
@ -52,7 +52,6 @@ public OsuGameBase()
|
|||
|
||||
private void Beatmap_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
|
|
Loading…
Reference in New Issue