mirror of https://github.com/ppy/osu
Add xmldoc
This commit is contained in:
parent
db12fafc2c
commit
ff3928465c
|
@ -87,8 +87,17 @@ public Column GetColumnByPosition(Vector2 screenSpacePosition)
|
|||
return found;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a <see cref="Column"/> by index.
|
||||
/// </summary>
|
||||
/// <param name="index">The index of the column.</param>
|
||||
/// <returns>The <see cref="Column"/> corresponding to the given index.</returns>
|
||||
/// <exception cref="ArgumentOutOfRangeException">If <paramref name="index"/> is less than 0 or greater than <see cref="TotalColumns"/>.</exception>
|
||||
public Column GetColumn(int index)
|
||||
{
|
||||
if (index < 0 || index > TotalColumns - 1)
|
||||
throw new ArgumentOutOfRangeException(nameof(index));
|
||||
|
||||
foreach (var stage in stages)
|
||||
{
|
||||
if (index >= stage.Columns.Count)
|
||||
|
|
Loading…
Reference in New Issue