mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 02:22:56 +08:00
20 lines
774 B
C#
20 lines
774 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.Localisation;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Mods
|
|
{
|
|
public class OsuModSingleTap : InputBlockingMod
|
|
{
|
|
public override string Name => @"Single Tap";
|
|
public override string Acronym => @"SG";
|
|
public override LocalisableString Description => @"You must only use one key!";
|
|
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModAlternate) }).ToArray();
|
|
|
|
protected override bool CheckValidNewAction(OsuAction action) => LastAcceptedAction == null || LastAcceptedAction == action;
|
|
}
|
|
}
|