mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
22 lines
864 B
C#
22 lines
864 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.
|
|
|
|
using System;
|
|
using System.Linq;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Framework.Localisation;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Mods
|
|
{
|
|
public class OsuModAlternate : InputBlockingMod
|
|
{
|
|
public override string Name => @"Alternate";
|
|
public override string Acronym => @"AL";
|
|
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;
|
|
}
|
|
}
|