1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:02:58 +08:00

Make converter per-instance.

This commit is contained in:
Huo Yaoyuan 2016-10-13 21:55:49 +08:00
parent aad5c6a44d
commit ac66c08991
3 changed files with 3 additions and 9 deletions

View File

@ -10,9 +10,7 @@ namespace osu.Game.GameModes.Play.Catch
{ {
public class CatchHitRenderer : HitRenderer<CatchBaseHit> public class CatchHitRenderer : HitRenderer<CatchBaseHit>
{ {
private static readonly CatchConverter converter = new CatchConverter(); protected override HitObjectConverter<CatchBaseHit> Converter { get; } = new CatchConverter();
protected override HitObjectConverter<CatchBaseHit> Converter => converter;
protected override Playfield CreatePlayfield() => new CatchPlayfield(); protected override Playfield CreatePlayfield() => new CatchPlayfield();

View File

@ -10,9 +10,7 @@ namespace osu.Game.GameModes.Play.Osu
{ {
public class OsuHitRenderer : HitRenderer<OsuBaseHit> public class OsuHitRenderer : HitRenderer<OsuBaseHit>
{ {
private static readonly OsuConverter converter = new OsuConverter(); protected override HitObjectConverter<OsuBaseHit> Converter { get; } = new OsuConverter();
protected override HitObjectConverter<OsuBaseHit> Converter => converter;
protected override Playfield CreatePlayfield() => new OsuPlayfield(); protected override Playfield CreatePlayfield() => new OsuPlayfield();

View File

@ -10,9 +10,7 @@ namespace osu.Game.GameModes.Play.Taiko
{ {
public class TaikoHitRenderer : HitRenderer<TaikoBaseHit> public class TaikoHitRenderer : HitRenderer<TaikoBaseHit>
{ {
private static readonly TaikoConverter converter = new TaikoConverter(); protected override HitObjectConverter<TaikoBaseHit> Converter { get; } = new TaikoConverter();
protected override HitObjectConverter<TaikoBaseHit> Converter => converter;
protected override Playfield CreatePlayfield() => new TaikoPlayfield(); protected override Playfield CreatePlayfield() => new TaikoPlayfield();