mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 10:17:19 +08:00
Merge pull request #703 from smoogipooo/taiko-fixes
Fix taiko auto replay generation not working.
This commit is contained in:
commit
8da5686007
@ -72,7 +72,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
protected override Score CreateReplayScore(Beatmap<TaikoHitObject> beatmap) => new Score
|
protected override Score CreateReplayScore(Beatmap<TaikoHitObject> beatmap) => new Score
|
||||||
{
|
{
|
||||||
User = new User { Username = "mekkadosu!" },
|
User = new User { Username = "mekkadosu!" },
|
||||||
Replay = new TaikoAutoReplay(beatmap).Generate(),
|
Replay = new TaikoAutoGenerator(beatmap).Generate(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,16 +7,24 @@ using osu.Game.Beatmaps;
|
|||||||
using osu.Game.Rulesets.Objects.Types;
|
using osu.Game.Rulesets.Objects.Types;
|
||||||
using osu.Game.Rulesets.Taiko.Objects;
|
using osu.Game.Rulesets.Taiko.Objects;
|
||||||
using osu.Game.Rulesets.Replays;
|
using osu.Game.Rulesets.Replays;
|
||||||
|
using osu.Game.Users;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Taiko.Replays
|
namespace osu.Game.Rulesets.Taiko.Replays
|
||||||
{
|
{
|
||||||
public class TaikoAutoReplay : AutoGenerator<TaikoHitObject>
|
public class TaikoAutoGenerator : AutoGenerator<TaikoHitObject>
|
||||||
{
|
{
|
||||||
private const double swell_hit_speed = 50;
|
private const double swell_hit_speed = 50;
|
||||||
|
|
||||||
public TaikoAutoReplay(Beatmap<TaikoHitObject> beatmap)
|
public TaikoAutoGenerator(Beatmap<TaikoHitObject> beatmap)
|
||||||
: base(beatmap)
|
: base(beatmap)
|
||||||
{
|
{
|
||||||
|
Replay = new Replay
|
||||||
|
{
|
||||||
|
User = new User
|
||||||
|
{
|
||||||
|
Username = @"Autoplay",
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Replay Replay;
|
protected Replay Replay;
|
@ -79,7 +79,7 @@
|
|||||||
<Compile Include="Objects\RimHit.cs" />
|
<Compile Include="Objects\RimHit.cs" />
|
||||||
<Compile Include="Objects\Swell.cs" />
|
<Compile Include="Objects\Swell.cs" />
|
||||||
<Compile Include="Replays\TaikoFramedReplayInputHandler.cs" />
|
<Compile Include="Replays\TaikoFramedReplayInputHandler.cs" />
|
||||||
<Compile Include="Replays\TaikoAutoReplay.cs" />
|
<Compile Include="Replays\TaikoAutoGenerator.cs" />
|
||||||
<Compile Include="Objects\TaikoHitObject.cs" />
|
<Compile Include="Objects\TaikoHitObject.cs" />
|
||||||
<Compile Include="Objects\TaikoHitObjectDifficulty.cs" />
|
<Compile Include="Objects\TaikoHitObjectDifficulty.cs" />
|
||||||
<Compile Include="TaikoDifficultyCalculator.cs" />
|
<Compile Include="TaikoDifficultyCalculator.cs" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user