1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Set object list to read-only

This commit is contained in:
apollo-dw 2022-05-23 13:10:42 +01:00
parent 40f560d7d0
commit d054e404da

View File

@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Difficulty.Preprocessing
/// </summary>
public class DifficultyHitObject
{
private readonly List<DifficultyHitObject> difficultyHitObjects;
private readonly IReadOnlyList<DifficultyHitObject> difficultyHitObjects;
/// <summary>
/// The position of this <see cref="DifficultyHitObject"/> in the <see cref="difficultyHitObjects"/> list.