mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 21:57:24 +09:00
26 lines
895 B
C#
26 lines
895 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Rulesets.Mania.UI;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Beatmaps
|
|
{
|
|
/// <summary>
|
|
/// Defines properties for each stage in a <see cref="ManiaPlayfield"/>.
|
|
/// </summary>
|
|
public struct StageDefinition
|
|
{
|
|
/// <summary>
|
|
/// The number of <see cref="Column"/>s which this stage contains.
|
|
/// </summary>
|
|
public int Columns;
|
|
|
|
/// <summary>
|
|
/// Whether the column index is a special column for this stage.
|
|
/// </summary>
|
|
/// <param name="column">The 0-based column index.</param>
|
|
/// <returns>Whether the column is a special column.</returns>
|
|
public bool IsSpecialColumn(int column) => Columns % 2 == 1 && column == Columns / 2;
|
|
}
|
|
}
|