mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:47:52 +08:00
Make converter instance per-convert.
This commit is contained in:
parent
ac66c08991
commit
cb54d33c6e
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user