Group -> Stage

This commit is contained in:
smoogipoo 2018-01-03 19:13:42 +09:00
parent 6d253fd33c
commit b68daaeb4b
4 changed files with 12 additions and 12 deletions

View File

@ -12,22 +12,22 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
public class ManiaBeatmap : Beatmap<ManiaHitObject> public class ManiaBeatmap : Beatmap<ManiaHitObject>
{ {
/// <summary> /// <summary>
/// The definitions for each grouping in a <see cref="ManiaPlayfield"/>. /// The definitions for each stage in a <see cref="ManiaPlayfield"/>.
/// </summary> /// </summary>
public readonly List<GroupDefinition> Groups = new List<GroupDefinition>(); public readonly List<StageDefinition> Stages = new List<StageDefinition>();
/// <summary> /// <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> /// </summary>
public int TotalColumns => Groups.Sum(g => g.Columns); public int TotalColumns => Stages.Sum(g => g.Columns);
/// <summary> /// <summary>
/// Creates a new <see cref="ManiaBeatmap"/>. /// Creates a new <see cref="ManiaBeatmap"/>.
/// </summary> /// </summary>
/// <param name="initialGroup">The initial grouping of columns.</param> /// <param name="initialStage">The initial stage.</param>
public ManiaBeatmap(GroupDefinition initialGroup) public ManiaBeatmap(StageDefinition initialStage)
{ {
Groups.Add(initialGroup); Stages.Add(initialStage);
} }
} }
} }

View File

@ -64,7 +64,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
return base.ConvertBeatmap(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) protected override IEnumerable<ManiaHitObject> ConvertHitObject(HitObject original, Beatmap beatmap)
{ {

View File

@ -6,12 +6,12 @@ using osu.Game.Rulesets.Mania.UI;
namespace osu.Game.Rulesets.Mania.Beatmaps namespace osu.Game.Rulesets.Mania.Beatmaps
{ {
/// <summary> /// <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> /// </summary>
public struct GroupDefinition public struct StageDefinition
{ {
/// <summary> /// <summary>
/// The number of <see cref="Column"/>s which this grouping contains. /// The number of <see cref="Column"/>s which this stage contains.
/// </summary> /// </summary>
public int Columns; public int Columns;
} }

View File

@ -48,7 +48,7 @@
<Reference Include="System.Core" /> <Reference Include="System.Core" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Beatmaps\GroupDefinition.cs" /> <Compile Include="Beatmaps\StageDefinition.cs" />
<Compile Include="Beatmaps\ManiaBeatmap.cs" /> <Compile Include="Beatmaps\ManiaBeatmap.cs" />
<Compile Include="Beatmaps\Patterns\Legacy\EndTimeObjectPatternGenerator.cs" /> <Compile Include="Beatmaps\Patterns\Legacy\EndTimeObjectPatternGenerator.cs" />
<Compile Include="Beatmaps\Patterns\Legacy\DistanceObjectPatternGenerator.cs" /> <Compile Include="Beatmaps\Patterns\Legacy\DistanceObjectPatternGenerator.cs" />