2021-04-05 10:41:40 +08: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.
|
|
|
|
|
|
2022-06-15 23:28:31 +08:00
|
|
|
|
using System;
|
2021-04-05 10:41:40 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Input.Bindings;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Difficulty;
|
|
|
|
|
using osu.Game.Rulesets.Mods;
|
|
|
|
|
using osu.Game.Rulesets.Pippidon.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Pippidon.Mods;
|
|
|
|
|
using osu.Game.Rulesets.Pippidon.UI;
|
|
|
|
|
using osu.Game.Rulesets.UI;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Pippidon
|
|
|
|
|
{
|
|
|
|
|
public class PippidonRuleset : Ruleset
|
|
|
|
|
{
|
|
|
|
|
public override string Description => "gather the osu!coins";
|
|
|
|
|
|
|
|
|
|
public override DrawableRuleset CreateDrawableRulesetWith(IBeatmap beatmap, IReadOnlyList<Mod> mods = null) =>
|
|
|
|
|
new DrawablePippidonRuleset(this, beatmap, mods);
|
|
|
|
|
|
|
|
|
|
public override IBeatmapConverter CreateBeatmapConverter(IBeatmap beatmap) =>
|
|
|
|
|
new PippidonBeatmapConverter(beatmap, this);
|
|
|
|
|
|
2021-11-15 17:19:23 +08:00
|
|
|
|
public override DifficultyCalculator CreateDifficultyCalculator(IWorkingBeatmap beatmap) =>
|
2021-11-15 17:23:03 +08:00
|
|
|
|
new PippidonDifficultyCalculator(RulesetInfo, beatmap);
|
2021-04-05 10:41:40 +08:00
|
|
|
|
|
|
|
|
|
public override IEnumerable<Mod> GetModsFor(ModType type)
|
|
|
|
|
{
|
|
|
|
|
switch (type)
|
|
|
|
|
{
|
|
|
|
|
case ModType.Automation:
|
|
|
|
|
return new[] { new PippidonModAutoplay() };
|
|
|
|
|
|
|
|
|
|
default:
|
2022-06-15 23:28:31 +08:00
|
|
|
|
return Array.Empty<Mod>();
|
2021-04-05 10:41:40 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ShortName => "pippidon";
|
|
|
|
|
|
|
|
|
|
public override IEnumerable<KeyBinding> GetDefaultKeyBindings(int variant = 0) => new[]
|
|
|
|
|
{
|
|
|
|
|
new KeyBinding(InputKey.Z, PippidonAction.Button1),
|
|
|
|
|
new KeyBinding(InputKey.X, PippidonAction.Button2),
|
|
|
|
|
};
|
|
|
|
|
|
2022-08-02 18:50:57 +08:00
|
|
|
|
public override Drawable CreateIcon() => new PippidonRulesetIcon(this);
|
2022-08-29 15:32:41 +08:00
|
|
|
|
|
|
|
|
|
// Leave this line intact. It will bake the correct version into the ruleset on each build/release.
|
|
|
|
|
public override string RulesetAPIVersionSupported => CURRENT_RULESET_API_VERSION;
|
2021-04-05 10:41:40 +08:00
|
|
|
|
}
|
|
|
|
|
}
|