2020-03-23 11:09:30 +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.
|
|
|
|
|
2021-06-04 00:16:11 +08:00
|
|
|
using osu.Framework.Bindables;
|
2020-03-23 11:09:30 +08:00
|
|
|
using osu.Framework.Graphics.Sprites;
|
2021-06-04 00:16:11 +08:00
|
|
|
using osu.Game.Configuration;
|
2020-03-23 11:09:30 +08:00
|
|
|
using osu.Game.Graphics;
|
2021-06-28 11:00:07 +08:00
|
|
|
using osu.Game.Overlays.Settings;
|
2020-03-23 11:09:30 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
{
|
2021-06-10 15:31:20 +08:00
|
|
|
public abstract class ModRandom : Mod, IHasSeed
|
2020-03-23 11:09:30 +08:00
|
|
|
{
|
|
|
|
public override string Name => "Random";
|
|
|
|
public override string Acronym => "RD";
|
|
|
|
public override ModType Type => ModType.Conversion;
|
|
|
|
public override IconUsage? Icon => OsuIcon.Dice;
|
|
|
|
public override double ScoreMultiplier => 1;
|
2021-06-04 00:16:11 +08:00
|
|
|
|
2021-06-28 11:00:07 +08:00
|
|
|
[SettingSource("Seed", "Use a custom seed instead of a random one", SettingControlType = typeof(SettingsNumberBox))]
|
2022-09-26 03:49:22 +08:00
|
|
|
public Bindable<int?> Seed { get; } = new Bindable<int?>();
|
2020-03-23 11:09:30 +08:00
|
|
|
}
|
|
|
|
}
|