// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using osu.Game.Rulesets.Mania.UI; namespace osu.Game.Rulesets.Mania.Beatmaps { /// /// Defines properties for each stage in a . /// public class StageDefinition { /// /// The number of s which this stage contains. /// public readonly int Columns; public StageDefinition(int columns) { if (columns < 1) throw new ArgumentException("Column count must be above zero.", nameof(columns)); Columns = columns; } /// /// Whether the column index is a special column for this stage. /// /// The 0-based column index. /// Whether the column is a special column. public bool IsSpecialColumn(int column) => Columns % 2 == 1 && column == Columns / 2; } }