mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
More general refactorings.
This commit is contained in:
@ -21,13 +21,10 @@ namespace osu.Game.Modes
|
||||
|
||||
public abstract class Ruleset
|
||||
{
|
||||
public abstract KeyCounter[] CreateGameplayKeys { get; }
|
||||
|
||||
private static ConcurrentDictionary<PlayMode, Type> availableRulesets = new ConcurrentDictionary<PlayMode, Type>();
|
||||
|
||||
public static IEnumerable<PlayMode> PlayModes => availableRulesets.Keys;
|
||||
|
||||
|
||||
public virtual IEnumerable<BeatmapStatistic> GetBeatmapStatistics(WorkingBeatmap beatmap) => new BeatmapStatistic[] { };
|
||||
|
||||
public abstract IEnumerable<Mod> GetModsFor(ModType type);
|
||||
@ -48,6 +45,8 @@ namespace osu.Game.Modes
|
||||
|
||||
public abstract string Description { get; }
|
||||
|
||||
public abstract IEnumerable<KeyCounter> CreateGameplayKeys();
|
||||
|
||||
public virtual Score CreateAutoplayScore(Beatmap beatmap) => null;
|
||||
|
||||
public static Ruleset GetRuleset(PlayMode mode)
|
||||
|
Reference in New Issue
Block a user