mirror of https://github.com/ppy/osu
Use container instead of array for field
This commit is contained in:
parent
3428056113
commit
672108edcf
|
@ -44,7 +44,7 @@ public class Column : ScrollingPlayfield, IKeyBindingHandler<ManiaAction>, IHasA
|
|||
internal readonly Container TopLevelContainer;
|
||||
private readonly DrawablePool<PoolableHitExplosion> hitExplosionPool;
|
||||
private readonly OrderedHitPolicy hitPolicy;
|
||||
private readonly SkinnableSound[] hitSounds;
|
||||
private readonly Container<SkinnableSound> hitSounds;
|
||||
|
||||
public Container UnderlayElements => HitObjectArea.UnderlayElements;
|
||||
|
||||
|
@ -71,11 +71,11 @@ public Column(int index)
|
|||
RelativeSizeAxes = Axes.Both
|
||||
},
|
||||
background,
|
||||
new Container
|
||||
hitSounds = new Container<SkinnableSound>
|
||||
{
|
||||
Name = "Column samples pool",
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Children = hitSounds = Enumerable.Range(0, max_concurrent_hitsounds).Select(_ => new SkinnableSound()).ToArray()
|
||||
Children = Enumerable.Range(0, max_concurrent_hitsounds).Select(_ => new SkinnableSound()).ToArray()
|
||||
},
|
||||
TopLevelContainer = new Container { RelativeSizeAxes = Axes.Both }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue