1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +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>
{
private static readonly CatchConverter converter = new CatchConverter();
protected override HitObjectConverter<CatchBaseHit> Converter => converter;
protected override HitObjectConverter<CatchBaseHit> Converter { get; } = new CatchConverter();
protected override Playfield CreatePlayfield() => new CatchPlayfield();

View File

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

View File

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