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:
parent
aad5c6a44d
commit
ac66c08991
@ -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();
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user