1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Make converter instance per-convert.

This commit is contained in:
Huo Yaoyuan 2016-10-14 17:48:07 +08:00
parent ac66c08991
commit cb54d33c6e
4 changed files with 4 additions and 5 deletions

View File

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

View File

@ -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<ManiaBaseHit> Converter { get; }
protected override HitObjectConverter<ManiaBaseHit> Converter => new ManiaConverter(columns);
protected override Playfield CreatePlayfield() => new ManiaPlayfield(columns);

View File

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

View File

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