mirror of
https://github.com/ppy/osu.git
synced 2025-02-28 01:22:55 +08:00
Instantiate convertible hitobjects for beatmap info wedge
This commit is contained in:
parent
251bdfdee8
commit
6a9f139d9b
@ -13,6 +13,7 @@ using osu.Game.Beatmaps;
|
|||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
|
using osu.Game.Rulesets.Objects.Types;
|
||||||
using osu.Game.Rulesets.Osu;
|
using osu.Game.Rulesets.Osu;
|
||||||
using osu.Game.Screens.Select;
|
using osu.Game.Screens.Select;
|
||||||
using osu.Game.Tests.Beatmaps;
|
using osu.Game.Tests.Beatmaps;
|
||||||
@ -138,7 +139,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
List<HitObject> objects = new List<HitObject>();
|
List<HitObject> objects = new List<HitObject>();
|
||||||
for (double i = 0; i < 50000; i += 1000)
|
for (double i = 0; i < 50000; i += 1000)
|
||||||
objects.Add(new HitObject { StartTime = i });
|
objects.Add(new TestHitObject { StartTime = i });
|
||||||
|
|
||||||
return new Beatmap
|
return new Beatmap
|
||||||
{
|
{
|
||||||
@ -153,7 +154,8 @@ namespace osu.Game.Tests.Visual
|
|||||||
},
|
},
|
||||||
Ruleset = ruleset,
|
Ruleset = ruleset,
|
||||||
StarDifficulty = 6,
|
StarDifficulty = 6,
|
||||||
Version = $"{ruleset.ShortName}Version"
|
Version = $"{ruleset.ShortName}Version",
|
||||||
|
BaseDifficulty = new BeatmapDifficulty()
|
||||||
},
|
},
|
||||||
HitObjects = objects
|
HitObjects = objects
|
||||||
};
|
};
|
||||||
@ -163,5 +165,12 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
public new BufferedWedgeInfo Info => base.Info;
|
public new BufferedWedgeInfo Info => base.Info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class TestHitObject : HitObject, IHasPosition
|
||||||
|
{
|
||||||
|
public float X { get; } = 0;
|
||||||
|
public float Y { get; } = 0;
|
||||||
|
public Vector2 Position { get; } = Vector2.Zero;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user