From ac66c0899144e7a46f30bd4d55b90e581f5b9b9b Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Thu, 13 Oct 2016 21:55:49 +0800 Subject: [PATCH] Make converter per-instance. --- osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs | 4 +--- osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs | 4 +--- osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs b/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs index 6862759035..d086c78956 100644 --- a/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs +++ b/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs @@ -10,9 +10,7 @@ namespace osu.Game.GameModes.Play.Catch { public class CatchHitRenderer : HitRenderer { - private static readonly CatchConverter converter = new CatchConverter(); - - protected override HitObjectConverter Converter => converter; + protected override HitObjectConverter Converter { get; } = new CatchConverter(); protected override Playfield CreatePlayfield() => new CatchPlayfield(); diff --git a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs index 78532b8f25..005bcba6c3 100644 --- a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs +++ b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs @@ -10,9 +10,7 @@ namespace osu.Game.GameModes.Play.Osu { public class OsuHitRenderer : HitRenderer { - private static readonly OsuConverter converter = new OsuConverter(); - - protected override HitObjectConverter Converter => converter; + protected override HitObjectConverter Converter { get; } = new OsuConverter(); protected override Playfield CreatePlayfield() => new OsuPlayfield(); diff --git a/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs b/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs index 54d1eefab1..1818cb1695 100644 --- a/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs +++ b/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs @@ -10,9 +10,7 @@ namespace osu.Game.GameModes.Play.Taiko { public class TaikoHitRenderer : HitRenderer { - private static readonly TaikoConverter converter = new TaikoConverter(); - - protected override HitObjectConverter Converter => converter; + protected override HitObjectConverter Converter { get; } = new TaikoConverter(); protected override Playfield CreatePlayfield() => new TaikoPlayfield();