2018-12-10 17:00:57 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using osu.Framework.Configuration;
|
|
|
|
|
2018-12-10 18:20:41 +08:00
|
|
|
namespace osu.Game.Screens.Multi.Match.Components
|
2018-12-10 17:00:57 +08:00
|
|
|
{
|
|
|
|
public abstract class MatchPage
|
|
|
|
{
|
|
|
|
public abstract string Name { get; }
|
|
|
|
|
|
|
|
public readonly BindableBool Enabled = new BindableBool(true);
|
|
|
|
|
|
|
|
public override string ToString() => Name;
|
|
|
|
public override int GetHashCode() => GetType().GetHashCode();
|
|
|
|
public override bool Equals(object obj) => GetType() == obj?.GetType();
|
|
|
|
}
|
|
|
|
|
|
|
|
public class SettingsMatchPage : MatchPage
|
|
|
|
{
|
|
|
|
public override string Name => "Settings";
|
|
|
|
}
|
|
|
|
|
|
|
|
public class RoomMatchPage : MatchPage
|
|
|
|
{
|
|
|
|
public override string Name => "Room";
|
|
|
|
}
|
|
|
|
}
|