2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2018-01-03 17:44:25 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
|
|
|
using osu.Game.Rulesets.Mania.UI;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
public class ManiaBeatmap : Beatmap<ManiaHitObject>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-01-03 18:13:42 +08:00
|
|
|
|
/// The definitions for each stage in a <see cref="ManiaPlayfield"/>.
|
2018-01-03 17:44:25 +08:00
|
|
|
|
/// </summary>
|
2018-01-03 18:13:42 +08:00
|
|
|
|
public readonly List<StageDefinition> Stages = new List<StageDefinition>();
|
2018-01-03 17:44:25 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-01-03 18:13:42 +08:00
|
|
|
|
/// Total number of columns represented by all stages in this <see cref="ManiaBeatmap"/>.
|
2018-01-03 17:44:25 +08:00
|
|
|
|
/// </summary>
|
2018-01-03 18:13:42 +08:00
|
|
|
|
public int TotalColumns => Stages.Sum(g => g.Columns);
|
2018-01-03 17:44:25 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new <see cref="ManiaBeatmap"/>.
|
|
|
|
|
/// </summary>
|
2018-01-03 18:13:42 +08:00
|
|
|
|
/// <param name="initialStage">The initial stage.</param>
|
|
|
|
|
public ManiaBeatmap(StageDefinition initialStage)
|
2018-01-03 17:44:25 +08:00
|
|
|
|
{
|
2018-01-03 18:13:42 +08:00
|
|
|
|
Stages.Add(initialStage);
|
2018-01-03 17:44:25 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|