osu/osu.Game.Rulesets.Osu/Mods/OsuModAlternate.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
864 B
C#
Raw Normal View History

2022-01-29 12:38:12 +00: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.
using System;
using System.Linq;
using osu.Framework.Graphics.Sprites;
2022-08-10 20:09:11 +00:00
using osu.Framework.Localisation;
2022-01-29 12:38:12 +00:00
namespace osu.Game.Rulesets.Osu.Mods
{
public class OsuModAlternate : InputBlockingMod
2022-01-29 12:38:12 +00:00
{
public override string Name => @"Alternate";
public override string Acronym => @"AL";
2022-08-10 20:09:11 +00:00
public override LocalisableString Description => @"Don't use the same key twice in a row!";
public override IconUsage? Icon => FontAwesome.Solid.Keyboard;
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModSingleTap) }).ToArray();
protected override bool CheckValidNewAction(OsuAction action) => LastAcceptedAction != action;
2022-01-29 12:38:12 +00:00
}
}