2019-01-24 17:43:03 +09: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.
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
|
|
using System;
|
2021-01-31 17:19:07 +01:00
|
|
|
using System.Collections.Generic;
|
2019-03-27 19:29:27 +09:00
|
|
|
using osu.Framework.Graphics.Sprites;
|
2022-08-10 15:54:48 -04:00
|
|
|
using osu.Framework.Localisation;
|
2018-04-13 18:19:50 +09:00
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Graphics;
|
2018-11-28 17:20:37 +09:00
|
|
|
using osu.Game.Replays;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
{
|
2023-07-13 13:41:35 +09:00
|
|
|
public abstract class ModAutoplay : Mod, ICreateReplayData
|
2018-04-13 18:19:50 +09:00
|
|
|
{
|
|
|
|
public override string Name => "Autoplay";
|
2018-11-30 17:16:00 +09:00
|
|
|
public override string Acronym => "AT";
|
2020-01-14 21:22:00 +08:00
|
|
|
public override IconUsage? Icon => OsuIcon.ModAuto;
|
2018-07-31 18:00:42 +09:00
|
|
|
public override ModType Type => ModType.Automation;
|
2022-08-10 15:54:48 -04:00
|
|
|
public override LocalisableString Description => "Watch a perfect automated play through the song.";
|
2018-05-31 12:36:37 +09:00
|
|
|
public override double ScoreMultiplier => 1;
|
2019-09-19 01:45:42 +09:00
|
|
|
|
2023-10-31 16:15:10 +01:00
|
|
|
public sealed override bool UserPlayable => false;
|
|
|
|
public sealed override bool ValidForMultiplayer => false;
|
|
|
|
public sealed override bool ValidForMultiplayerAsFreeMod => false;
|
2021-06-09 14:17:01 +09:00
|
|
|
|
2023-11-02 22:20:17 +01:00
|
|
|
public override Type[] IncompatibleMods => new[] { typeof(ModCinema), typeof(ModRelax), typeof(ModAdaptiveSpeed), typeof(ModTouchDevice) };
|
2019-03-07 18:30:31 +09:00
|
|
|
|
|
|
|
public override bool HasImplementation => GetType().GenericTypeArguments.Length == 0;
|
|
|
|
|
2022-10-28 13:07:47 +09:00
|
|
|
public virtual ModReplayData CreateReplayData(IBeatmap beatmap, IReadOnlyList<Mod> mods) => new ModReplayData(new Replay(), new ModCreatedUser { Username = @"autoplay" });
|
2018-04-13 18:19:50 +09:00
|
|
|
}
|
|
|
|
}
|