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
|
|
|
|
{
|
2022-03-29 16:27:42 +09:00
|
|
|
public abstract class ModAutoplay : Mod, IApplicableFailOverride, 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
|
|
|
|
2020-05-12 20:08:35 +09:00
|
|
|
public bool PerformFail() => false;
|
|
|
|
|
2018-10-30 07:12:06 -04:00
|
|
|
public bool RestartOnFail => false;
|
2019-09-19 01:45:42 +09:00
|
|
|
|
2022-05-05 14:37:38 +03:00
|
|
|
public override bool UserPlayable => false;
|
|
|
|
public override bool ValidForMultiplayer => false;
|
|
|
|
public override bool ValidForMultiplayerAsFreeMod => false;
|
2021-06-09 14:17:01 +09:00
|
|
|
|
2022-07-18 00:09:31 +08:00
|
|
|
public override Type[] IncompatibleMods => new[] { typeof(ModCinema), typeof(ModRelax), typeof(ModFailCondition), typeof(ModNoFail), typeof(ModAdaptiveSpeed) };
|
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
|
|
|
}
|
|
|
|
}
|