mirror of https://github.com/ppy/osu
Group -> Stage
This commit is contained in:
parent
6d253fd33c
commit
b68daaeb4b
|
@ -12,22 +12,22 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
|||
public class ManiaBeatmap : Beatmap<ManiaHitObject>
|
||||
{
|
||||
/// <summary>
|
||||
/// The definitions for each grouping in a <see cref="ManiaPlayfield"/>.
|
||||
/// The definitions for each stage in a <see cref="ManiaPlayfield"/>.
|
||||
/// </summary>
|
||||
public readonly List<GroupDefinition> Groups = new List<GroupDefinition>();
|
||||
public readonly List<StageDefinition> Stages = new List<StageDefinition>();
|
||||
|
||||
/// <summary>
|
||||
/// Total number of columns represented by all groups in this <see cref="ManiaBeatmap"/>.
|
||||
/// Total number of columns represented by all stages in this <see cref="ManiaBeatmap"/>.
|
||||
/// </summary>
|
||||
public int TotalColumns => Groups.Sum(g => g.Columns);
|
||||
public int TotalColumns => Stages.Sum(g => g.Columns);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ManiaBeatmap"/>.
|
||||
/// </summary>
|
||||
/// <param name="initialGroup">The initial grouping of columns.</param>
|
||||
public ManiaBeatmap(GroupDefinition initialGroup)
|
||||
/// <param name="initialStage">The initial stage.</param>
|
||||
public ManiaBeatmap(StageDefinition initialStage)
|
||||
{
|
||||
Groups.Add(initialGroup);
|
||||
Stages.Add(initialStage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ protected override Beatmap<ManiaHitObject> ConvertBeatmap(Beatmap original)
|
|||
return base.ConvertBeatmap(original);
|
||||
}
|
||||
|
||||
protected override Beatmap<ManiaHitObject> CreateBeatmap() => beatmap = new ManiaBeatmap(new GroupDefinition { Columns = TargetColumns });
|
||||
protected override Beatmap<ManiaHitObject> CreateBeatmap() => beatmap = new ManiaBeatmap(new StageDefinition { Columns = TargetColumns });
|
||||
|
||||
protected override IEnumerable<ManiaHitObject> ConvertHitObject(HitObject original, Beatmap beatmap)
|
||||
{
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
namespace osu.Game.Rulesets.Mania.Beatmaps
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines properties for each grouping of <see cref="Column"/>s in a <see cref="ManiaPlayfield"/>.
|
||||
/// Defines properties for each stage in a <see cref="ManiaPlayfield"/>.
|
||||
/// </summary>
|
||||
public struct GroupDefinition
|
||||
public struct StageDefinition
|
||||
{
|
||||
/// <summary>
|
||||
/// The number of <see cref="Column"/>s which this grouping contains.
|
||||
/// The number of <see cref="Column"/>s which this stage contains.
|
||||
/// </summary>
|
||||
public int Columns;
|
||||
}
|
|
@ -48,7 +48,7 @@
|
|||
<Reference Include="System.Core" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Beatmaps\GroupDefinition.cs" />
|
||||
<Compile Include="Beatmaps\StageDefinition.cs" />
|
||||
<Compile Include="Beatmaps\ManiaBeatmap.cs" />
|
||||
<Compile Include="Beatmaps\Patterns\Legacy\EndTimeObjectPatternGenerator.cs" />
|
||||
<Compile Include="Beatmaps\Patterns\Legacy\DistanceObjectPatternGenerator.cs" />
|
||||
|
|
Loading…
Reference in New Issue