mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 02:32:59 +08:00
Populate rulesets with their replay frames
This commit is contained in:
parent
a02eaf0e94
commit
222ae70062
@ -10,6 +10,8 @@ using osu.Game.Rulesets.UI;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Input.Bindings;
|
||||
using osu.Game.Rulesets.Catch.Replays;
|
||||
using osu.Game.Rulesets.Replays;
|
||||
|
||||
namespace osu.Game.Rulesets.Catch
|
||||
{
|
||||
@ -101,6 +103,8 @@ namespace osu.Game.Rulesets.Catch
|
||||
|
||||
public override int LegacyID => 2;
|
||||
|
||||
public override ReplayFrame CreateReplayFrame() => new CatchReplayFrame();
|
||||
|
||||
public CatchRuleset(RulesetInfo rulesetInfo = null)
|
||||
: base(rulesetInfo)
|
||||
{
|
||||
|
@ -14,6 +14,10 @@ namespace osu.Game.Rulesets.Catch.Replays
|
||||
public float X;
|
||||
public bool Dashing;
|
||||
|
||||
public CatchReplayFrame()
|
||||
{
|
||||
}
|
||||
|
||||
public CatchReplayFrame(double time, float? x = null, bool dashing = false)
|
||||
: base(time)
|
||||
{
|
||||
|
@ -12,6 +12,8 @@ using System.Linq;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Input.Bindings;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Rulesets.Mania.Replays;
|
||||
using osu.Game.Rulesets.Replays;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania
|
||||
{
|
||||
@ -114,6 +116,8 @@ namespace osu.Game.Rulesets.Mania
|
||||
|
||||
public override int LegacyID => 3;
|
||||
|
||||
public override ReplayFrame CreateReplayFrame() => new ManiaReplayFrame();
|
||||
|
||||
public ManiaRuleset(RulesetInfo rulesetInfo = null)
|
||||
: base(rulesetInfo)
|
||||
{
|
||||
|
@ -15,6 +15,10 @@ namespace osu.Game.Rulesets.Mania.Replays
|
||||
{
|
||||
public List<ManiaAction> Actions = new List<ManiaAction>();
|
||||
|
||||
public ManiaReplayFrame()
|
||||
{
|
||||
}
|
||||
|
||||
public ManiaReplayFrame(double time, params ManiaAction[] actions)
|
||||
: base(time)
|
||||
{
|
||||
|
@ -17,7 +17,6 @@ namespace osu.Game.Rulesets.Osu.Replays
|
||||
public List<OsuAction> Actions = new List<OsuAction>();
|
||||
|
||||
public OsuReplayFrame()
|
||||
: base(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,10 @@ namespace osu.Game.Rulesets.Taiko.Replays
|
||||
{
|
||||
public List<TaikoAction> Actions = new List<TaikoAction>();
|
||||
|
||||
public TaikoReplayFrame()
|
||||
{
|
||||
}
|
||||
|
||||
public TaikoReplayFrame(double time, params TaikoAction[] actions)
|
||||
: base(time)
|
||||
{
|
||||
|
@ -10,6 +10,8 @@ using osu.Game.Rulesets.UI;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Input.Bindings;
|
||||
using osu.Game.Rulesets.Replays;
|
||||
using osu.Game.Rulesets.Taiko.Replays;
|
||||
|
||||
namespace osu.Game.Rulesets.Taiko
|
||||
{
|
||||
@ -103,6 +105,8 @@ namespace osu.Game.Rulesets.Taiko
|
||||
|
||||
public override int LegacyID => 1;
|
||||
|
||||
public override ReplayFrame CreateReplayFrame() => new TaikoReplayFrame();
|
||||
|
||||
public TaikoRuleset(RulesetInfo rulesetInfo = null)
|
||||
: base(rulesetInfo)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user