mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Don't use osu! mode parser for other game modes for now (convert still works).
This commit is contained in:
parent
f2b0fd4de0
commit
580584a015
@ -24,6 +24,6 @@ namespace osu.Game.Modes.Catch
|
|||||||
|
|
||||||
public override ScoreProcessor CreateScoreProcessor(int hitObjectCount) => null;
|
public override ScoreProcessor CreateScoreProcessor(int hitObjectCount) => null;
|
||||||
|
|
||||||
public override HitObjectParser CreateHitObjectParser() => new OsuHitObjectParser();
|
public override HitObjectParser CreateHitObjectParser() => new NullHitObjectParser();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ namespace osu.Game.Modes.Mania
|
|||||||
|
|
||||||
public override ScoreProcessor CreateScoreProcessor(int hitObjectCount) => null;
|
public override ScoreProcessor CreateScoreProcessor(int hitObjectCount) => null;
|
||||||
|
|
||||||
public override HitObjectParser CreateHitObjectParser() => new OsuHitObjectParser();
|
public override HitObjectParser CreateHitObjectParser() => new NullHitObjectParser();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ namespace osu.Game.Modes.Taiko
|
|||||||
|
|
||||||
public override ScoreProcessor CreateScoreProcessor(int hitObjectCount) => null;
|
public override ScoreProcessor CreateScoreProcessor(int hitObjectCount) => null;
|
||||||
|
|
||||||
public override HitObjectParser CreateHitObjectParser() => new OsuHitObjectParser();
|
public override HitObjectParser CreateHitObjectParser() => new NullHitObjectParser();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
14
osu.Game/Modes/Objects/NullHitObjectParser.cs
Normal file
14
osu.Game/Modes/Objects/NullHitObjectParser.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
|
||||||
|
namespace osu.Game.Modes.Objects
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Returns null HitObjects but at least allows us to run.
|
||||||
|
/// </summary>
|
||||||
|
public class NullHitObjectParser : HitObjectParser
|
||||||
|
{
|
||||||
|
public override HitObject Parse(string text) => null;
|
||||||
|
}
|
||||||
|
}
|
@ -77,6 +77,7 @@
|
|||||||
<Compile Include="Graphics\UserInterface\TwoLayerButton.cs" />
|
<Compile Include="Graphics\UserInterface\TwoLayerButton.cs" />
|
||||||
<Compile Include="Modes\Objects\Drawables\IDrawableHitObjectWithProxiedApproach.cs" />
|
<Compile Include="Modes\Objects\Drawables\IDrawableHitObjectWithProxiedApproach.cs" />
|
||||||
<Compile Include="Modes\Objects\HitObjectParser.cs" />
|
<Compile Include="Modes\Objects\HitObjectParser.cs" />
|
||||||
|
<Compile Include="Modes\Objects\NullHitObjectParser.cs" />
|
||||||
<Compile Include="Modes\Score.cs" />
|
<Compile Include="Modes\Score.cs" />
|
||||||
<Compile Include="Modes\ScoreProcesssor.cs" />
|
<Compile Include="Modes\ScoreProcesssor.cs" />
|
||||||
<Compile Include="Modes\UI\HealthDisplay.cs" />
|
<Compile Include="Modes\UI\HealthDisplay.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user