mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 06:42:54 +08:00
29 lines
817 B
C#
29 lines
817 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
namespace osu.Game.Screens.Multi.Match.Components
|
|
{
|
|
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";
|
|
}
|
|
}
|