Add readonly attributes.

This commit is contained in:
Dean Herbert 2017-03-23 14:37:00 +09:00
parent d441114011
commit 9a3fd8bcf1
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
3 changed files with 13 additions and 13 deletions

View File

@ -19,8 +19,8 @@ namespace osu.Game.Modes.Taiko.UI
/// </summary>
internal class HitExplosion : CircularContainer
{
private TaikoJudgementInfo judgement;
private Box innerFill;
private readonly TaikoJudgementInfo judgement;
private readonly Box innerFill;
public HitExplosion(TaikoJudgementInfo judgement)
{

View File

@ -62,10 +62,10 @@ private class TaikoHalfDrum : Container
/// </summary>
public Key CentreKey;
private Sprite rim;
private Sprite rimHit;
private Sprite centre;
private Sprite centreHit;
private readonly Sprite rim;
private readonly Sprite rimHit;
private readonly Sprite centre;
private readonly Sprite centreHit;
public TaikoHalfDrum(bool flipped)
{

View File

@ -46,16 +46,16 @@ public class TaikoPlayfield : Playfield<TaikoHitObject, TaikoJudgementInfo>
protected override Container<Drawable> Content => hitObjectContainer;
private Container<HitExplosion> hitExplosionContainer;
private readonly Container<HitExplosion> hitExplosionContainer;
//private Container<DrawableBarLine> barLineContainer;
private Container<JudgementText> judgementContainer;
private readonly Container<JudgementText> judgementContainer;
private Container hitObjectContainer;
private readonly Container hitObjectContainer;
//private Container topLevelHitContainer;
private Container leftBackgroundContainer;
private Container rightBackgroundContainer;
private Box leftBackground;
private Box rightBackground;
private readonly Container leftBackgroundContainer;
private readonly Container rightBackgroundContainer;
private readonly Box leftBackground;
private readonly Box rightBackground;
public TaikoPlayfield()
{