mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Enforce readonly private members where possible.
This commit is contained in:
@ -106,7 +106,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public class Receptor : Drawable
|
||||
{
|
||||
private KeyCounterCollection target;
|
||||
private readonly KeyCounterCollection target;
|
||||
|
||||
public Receptor(KeyCounterCollection target)
|
||||
{
|
||||
|
@ -13,10 +13,10 @@ namespace osu.Game.Screens.Play.Pause
|
||||
{
|
||||
public class PauseProgressBar : Container
|
||||
{
|
||||
private Color4 fillColour = new Color4(221, 255, 255, 255);
|
||||
private Color4 glowColour = new Color4(221, 255, 255, 150);
|
||||
private readonly Color4 fillColour = new Color4(221, 255, 255, 255);
|
||||
private readonly Color4 glowColour = new Color4(221, 255, 255, 150);
|
||||
|
||||
private Container fill;
|
||||
private readonly Container fill;
|
||||
private WorkingBeatmap current;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
@ -42,7 +42,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public int RestartCount;
|
||||
|
||||
private double pauseCooldown = 1000;
|
||||
private readonly double pauseCooldown = 1000;
|
||||
private double lastPauseActionTime;
|
||||
|
||||
private bool canPause => Time.Current >= lastPauseActionTime + pauseCooldown;
|
||||
|
@ -9,7 +9,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
public class PlayerInputManager : PassThroughInputManager
|
||||
{
|
||||
private ManualClock clock = new ManualClock();
|
||||
private readonly ManualClock clock = new ManualClock();
|
||||
private IFrameBasedClock parentClock;
|
||||
|
||||
private ReplayInputHandler replayInputHandler;
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Screens.Play
|
||||
public class PlayerLoader : OsuScreen
|
||||
{
|
||||
private readonly Player player;
|
||||
private OsuLogo logo;
|
||||
private readonly OsuLogo logo;
|
||||
private BeatmapMetadataDisplay info;
|
||||
|
||||
protected override BackgroundScreen CreateBackground() => new BackgroundScreenBeatmap(Beatmap);
|
||||
|
Reference in New Issue
Block a user