mirror of
https://github.com/ppy/osu
synced 2024-12-11 09:27:08 +00:00
69c2c0e427
Mostly matters for web, so that it doesn't permit creation of playlist items with touch device inside.
25 lines
1.1 KiB
C#
25 lines
1.1 KiB
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 osu.Framework.Graphics.Sprites;
|
|
using osu.Framework.Localisation;
|
|
using osu.Game.Graphics;
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
{
|
|
public class ModTouchDevice : Mod, IApplicableMod
|
|
{
|
|
public sealed override string Name => "Touch Device";
|
|
public sealed override string Acronym => "TD";
|
|
public sealed override IconUsage? Icon => OsuIcon.PlayStyleTouch;
|
|
public sealed override LocalisableString Description => "Automatically applied to plays on devices with a touchscreen.";
|
|
public sealed override double ScoreMultiplier => 1;
|
|
public sealed override ModType Type => ModType.System;
|
|
public sealed override bool ValidForMultiplayer => false;
|
|
public sealed override bool ValidForMultiplayerAsFreeMod => false;
|
|
public sealed override bool AlwaysValidForSubmission => true;
|
|
public override Type[] IncompatibleMods => new[] { typeof(ICreateReplayData) };
|
|
}
|
|
}
|