From cb54d33c6e99694ca1ac36c77a6e4b6ab39c49b8 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Fri, 14 Oct 2016 17:48:07 +0800 Subject: [PATCH] Make converter instance per-convert. --- osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs | 2 +- osu.Game/GameModes/Play/Mania/ManiaHitRenderer.cs | 3 +-- osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs | 2 +- osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs b/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs index d086c78956..3de1c34915 100644 --- a/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs +++ b/osu.Game/GameModes/Play/Catch/CatchHitRenderer.cs @@ -10,7 +10,7 @@ namespace osu.Game.GameModes.Play.Catch { public class CatchHitRenderer : HitRenderer { - protected override HitObjectConverter Converter { get; } = new CatchConverter(); + protected override HitObjectConverter Converter => new CatchConverter(); protected override Playfield CreatePlayfield() => new CatchPlayfield(); diff --git a/osu.Game/GameModes/Play/Mania/ManiaHitRenderer.cs b/osu.Game/GameModes/Play/Mania/ManiaHitRenderer.cs index ef74fd4a7a..93b9a58822 100644 --- a/osu.Game/GameModes/Play/Mania/ManiaHitRenderer.cs +++ b/osu.Game/GameModes/Play/Mania/ManiaHitRenderer.cs @@ -16,10 +16,9 @@ namespace osu.Game.GameModes.Play.Mania public ManiaHitRenderer(int columns = 5) { this.columns = columns; - Converter = new ManiaConverter(columns); } - protected override HitObjectConverter Converter { get; } + protected override HitObjectConverter Converter => new ManiaConverter(columns); protected override Playfield CreatePlayfield() => new ManiaPlayfield(columns); diff --git a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs index 005bcba6c3..331882da73 100644 --- a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs +++ b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs @@ -10,7 +10,7 @@ namespace osu.Game.GameModes.Play.Osu { public class OsuHitRenderer : HitRenderer { - protected override HitObjectConverter Converter { get; } = new OsuConverter(); + protected override HitObjectConverter Converter => 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 1818cb1695..bee74d5451 100644 --- a/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs +++ b/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs @@ -10,7 +10,7 @@ namespace osu.Game.GameModes.Play.Taiko { public class TaikoHitRenderer : HitRenderer { - protected override HitObjectConverter Converter { get; } = new TaikoConverter(); + protected override HitObjectConverter Converter => new TaikoConverter(); protected override Playfield CreatePlayfield() => new TaikoPlayfield();