mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 15:17:28 +08:00
30 lines
961 B
C#
30 lines
961 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Framework.Bindables;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Game.Configuration;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Overlays.Settings;
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
{
|
|
public abstract class ModRandom : Mod, IHasSeed
|
|
{
|
|
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;
|
|
|
|
[SettingSource("Seed", "Use a custom seed instead of a random one", SettingControlType = typeof(SettingsNumberBox))]
|
|
public Bindable<int?> Seed { get; } = new Bindable<int?>
|
|
{
|
|
Default = null,
|
|
Value = null
|
|
};
|
|
}
|
|
}
|