From bc5912eab5374f37f28fcda45a93c4acb8933207 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Tue, 14 Mar 2017 12:32:31 +0900 Subject: [PATCH] Applyable -> Applicable. --- osu.Game/Modes/Mods/{IApplyableMod.cs => IApplicableMod.cs} | 2 +- osu.Game/Modes/Mods/Mod.cs | 2 +- osu.Game/Modes/UI/HitRenderer.cs | 2 +- osu.Game/osu.Game.csproj | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename osu.Game/Modes/Mods/{IApplyableMod.cs => IApplicableMod.cs} (91%) diff --git a/osu.Game/Modes/Mods/IApplyableMod.cs b/osu.Game/Modes/Mods/IApplicableMod.cs similarity index 91% rename from osu.Game/Modes/Mods/IApplyableMod.cs rename to osu.Game/Modes/Mods/IApplicableMod.cs index 5db952a4db..25d0f8d701 100644 --- a/osu.Game/Modes/Mods/IApplyableMod.cs +++ b/osu.Game/Modes/Mods/IApplicableMod.cs @@ -11,7 +11,7 @@ namespace osu.Game.Modes.Mods /// An interface for mods that are applied to a HitRenderer. /// /// The type of HitObject the HitRenderer contains. - public interface IApplyableMod + public interface IApplicableMod where TObject : HitObject { /// diff --git a/osu.Game/Modes/Mods/Mod.cs b/osu.Game/Modes/Mods/Mod.cs index 40940e9690..6a720a3574 100644 --- a/osu.Game/Modes/Mods/Mod.cs +++ b/osu.Game/Modes/Mods/Mod.cs @@ -149,7 +149,7 @@ namespace osu.Game.Modes.Mods public override Type[] IncompatibleMods => new[] { typeof(ModRelax), typeof(ModSuddenDeath), typeof(ModNoFail) }; } - public abstract class ModAutoplay : ModAutoplay, IApplyableMod + public abstract class ModAutoplay : ModAutoplay, IApplicableMod where T : HitObject { protected abstract Score CreateReplayScore(Beatmap beatmap); diff --git a/osu.Game/Modes/UI/HitRenderer.cs b/osu.Game/Modes/UI/HitRenderer.cs index f124dd24ed..b7775a8f96 100644 --- a/osu.Game/Modes/UI/HitRenderer.cs +++ b/osu.Game/Modes/UI/HitRenderer.cs @@ -104,7 +104,7 @@ namespace osu.Game.Modes.UI foreach (var mod in mods) { - var applyable = mod as IApplyableMod; + var applyable = mod as IApplicableMod; applyable?.Apply(this); } diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index 0ae1e049c8..df74ca6b5e 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -91,7 +91,7 @@ - +