mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Renamings + refactorings to Pattern.
This commit is contained in:
parent
9de18d45a5
commit
8c260e3364
@ -21,16 +21,16 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns
|
|||||||
public IEnumerable<ManiaHitObject> HitObjects => hitObjects;
|
public IEnumerable<ManiaHitObject> HitObjects => hitObjects;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether this pattern already contains a hit object in a code.
|
/// Check whether a column of this patterns contains a hit object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="column">The column index.</param>
|
/// <param name="column">The column index.</param>
|
||||||
/// <returns>Whether this pattern already contains a hit object in <paramref name="column"/></returns>
|
/// <returns>Whether the column with index <paramref name="column"/> contains a hit object.</returns>
|
||||||
public bool IsFilled(int column) => hitObjects.Exists(h => h.Column == column);
|
public bool ColumnHasObject(int column) => hitObjects.Exists(h => h.Column == column);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Amount of columns taken up by hit objects in this pattern.
|
/// Amount of columns taken up by hit objects in this pattern.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ColumnsFilled => HitObjects.GroupBy(h => h.Column).Count();
|
public int ColumnWithObjects => HitObjects.GroupBy(h => h.Column).Count();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds a hit object to this pattern.
|
/// Adds a hit object to this pattern.
|
||||||
@ -42,10 +42,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns
|
|||||||
/// Copies hit object from another pattern to this one.
|
/// Copies hit object from another pattern to this one.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">The other pattern.</param>
|
/// <param name="other">The other pattern.</param>
|
||||||
public void Add(Pattern other)
|
public void Add(Pattern other) => hitObjects.AddRange(other.HitObjects);
|
||||||
{
|
|
||||||
other.HitObjects.ForEach(Add);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clears this pattern, removing all hit objects.
|
/// Clears this pattern, removing all hit objects.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user