mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 10:12:53 +08:00
Remove redundant setter
This commit is contained in:
parent
f84d98223f
commit
145ac8e0b5
@ -11,7 +11,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the list of combo colours for presentation only.
|
/// Retrieves the list of combo colours for presentation only.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
IReadOnlyList<Color4> ComboColours { get; set; }
|
IReadOnlyList<Color4> ComboColours { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds combo colours to the list.
|
/// Adds combo colours to the list.
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using osu.Game.Beatmaps.Formats;
|
using osu.Game.Beatmaps.Formats;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
@ -28,7 +27,7 @@ namespace osu.Game.Skinning
|
|||||||
new Color4(242, 24, 57, 255),
|
new Color4(242, 24, 57, 255),
|
||||||
};
|
};
|
||||||
|
|
||||||
private List<Color4> comboColours = new List<Color4>();
|
private readonly List<Color4> comboColours = new List<Color4>();
|
||||||
|
|
||||||
public IReadOnlyList<Color4> ComboColours
|
public IReadOnlyList<Color4> ComboColours
|
||||||
{
|
{
|
||||||
@ -42,7 +41,6 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
set => comboColours = value.ToList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddComboColours(params Color4[] colours) => comboColours.AddRange(colours);
|
public void AddComboColours(params Color4[] colours) => comboColours.AddRange(colours);
|
||||||
|
Loading…
Reference in New Issue
Block a user