2021-10-01 05:34:11 +00:00
|
|
|
// 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.
|
|
|
|
|
2021-12-03 09:01:29 +00:00
|
|
|
using System;
|
2021-10-01 07:31:11 +00:00
|
|
|
using osu.Game.Database;
|
2021-10-01 05:34:11 +00:00
|
|
|
|
|
|
|
#nullable enable
|
|
|
|
|
2021-10-01 07:31:11 +00:00
|
|
|
namespace osu.Game.Rulesets
|
2021-10-01 05:34:11 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// A representation of a ruleset's metadata.
|
|
|
|
/// </summary>
|
2022-02-11 01:00:40 +00:00
|
|
|
public interface IRulesetInfo : IHasOnlineID<int>, IEquatable<IRulesetInfo>, IComparable<IRulesetInfo>
|
2021-10-01 05:34:11 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The user-exposed name of this ruleset.
|
|
|
|
/// </summary>
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// An acronym defined by the ruleset that can be used as a permanent identifier.
|
|
|
|
/// </summary>
|
|
|
|
string ShortName { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// A string representation of this ruleset, to be used with reflection to instantiate the ruleset represented by this metadata.
|
|
|
|
/// </summary>
|
|
|
|
string InstantiationInfo { get; }
|
|
|
|
|
2021-11-23 11:17:07 +00:00
|
|
|
Ruleset CreateInstance();
|
2021-10-01 05:34:11 +00:00
|
|
|
}
|
|
|
|
}
|