2022-07-12 23:07:26 +01: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-07-13 07:35:53 +01:00
|
|
|
using System;
|
|
|
|
using System.Linq;
|
2022-08-10 16:09:11 -04:00
|
|
|
using osu.Framework.Localisation;
|
2022-07-12 23:07:26 +01:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Mods
|
|
|
|
{
|
|
|
|
public class OsuModSingleTap : InputBlockingMod
|
|
|
|
{
|
|
|
|
public override string Name => @"Single Tap";
|
2022-07-16 17:07:55 +09:00
|
|
|
public override string Acronym => @"SG";
|
2022-08-10 16:09:11 -04:00
|
|
|
public override LocalisableString Description => @"You must only use one key!";
|
2022-07-13 07:35:53 +01:00
|
|
|
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModAlternate) }).ToArray();
|
2022-07-12 23:07:26 +01:00
|
|
|
|
2022-07-14 01:40:44 +09:00
|
|
|
protected override bool CheckValidNewAction(OsuAction action) => LastAcceptedAction == null || LastAcceptedAction == action;
|
2022-07-12 23:07:26 +01:00
|
|
|
}
|
|
|
|
}
|