Use explicit cast to OsuGame rather than in-between derived classes.

# Conflicts:
#	osu.Game/GameModes/Menu/MainMenu.cs
This commit is contained in:
Dean Herbert
2016-10-01 15:02:38 +09:00
parent 40e5a449bf
commit 5afb038025
8 changed files with 12 additions and 47 deletions

View File

@ -1,12 +0,0 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics.Containers;
namespace osu.Game.Graphics.Containers
{
class OsuContainer : AutoSizeContainer
{
public new OsuGameBase Game => base.Game as OsuGameBase;
}
}

View File

@ -1,12 +0,0 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.GameModes;
namespace osu.Game.Graphics.Containers
{
public class OsuGameMode : GameMode
{
public new OsuGame Game => base.Game as OsuGame;
}
}

View File

@ -1,12 +0,0 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics.Containers;
namespace osu.Game.Graphics.Containers
{
public class OsuLargeContainer : LargeContainer
{
public new OsuGameBase Game => base.Game as OsuGameBase;
}
}