Move BackgroundModes to their own files.

This commit is contained in:
Dean Herbert
2016-10-06 23:32:35 +09:00
parent d6042bd689
commit d1dfa120d1
15 changed files with 70 additions and 32 deletions

View File

@ -8,7 +8,6 @@ using System.Text;
using System.Threading.Tasks;
using osu.Framework.GameModes;
using osu.Framework.Graphics.Transformations;
using osu.Game.Graphics.Background;
using OpenTK;
namespace osu.Game.GameModes
@ -61,35 +60,4 @@ namespace osu.Game.GameModes
base.OnResuming(last);
}
}
public class BackgroundModeDefault : BackgroundMode
{
public override void Load()
{
base.Load();
Add(new Background());
}
}
public class BackgroundModeCustom : BackgroundMode
{
private readonly string textureName;
public BackgroundModeCustom(string textureName)
{
this.textureName = textureName;
}
public override void Load()
{
base.Load();
Add(new Background(textureName));
}
public override bool Equals(BackgroundMode other)
{
return base.Equals(other) && textureName == ((BackgroundModeCustom)other).textureName;
}
}
}