Enforce readonly private members where possible.

This commit is contained in:
Dean Herbert
2017-03-23 13:41:50 +09:00
parent 5138890530
commit 54e1b24fe9
115 changed files with 278 additions and 259 deletions

View File

@ -23,8 +23,8 @@ namespace osu.Game.Overlays.Mods
public class ModButton : FillFlowContainer
{
private ModIcon foregroundIcon { get; set; }
private SpriteText text;
private Container<ModIcon> iconsContainer;
private readonly SpriteText text;
private readonly Container<ModIcon> iconsContainer;
private SampleChannel sampleOn, sampleOff;
public Action<Mod> Action; // Passed the selected mod or null if none