diff --git a/osu.Desktop.VisualTests/Tests/TestCaseReplay.cs b/osu.Desktop.VisualTests/Tests/TestCaseReplay.cs index 64b33a78c9..c8c7e86fdd 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseReplay.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseReplay.cs @@ -13,7 +13,7 @@ namespace osu.Desktop.VisualTests.Tests { - class TestCaseReplay : TestCasePlayer + internal class TestCaseReplay : TestCasePlayer { private WorkingBeatmap beatmap; diff --git a/osu.Desktop/OsuGameDesktop.cs b/osu.Desktop/OsuGameDesktop.cs index 6d5cab14d6..d5858b4b2a 100644 --- a/osu.Desktop/OsuGameDesktop.cs +++ b/osu.Desktop/OsuGameDesktop.cs @@ -67,7 +67,7 @@ private void dragDrop(DragEventArgs e) }); } - static readonly string[] allowed_extensions = { @".osz", @".osr" }; + private static readonly string[] allowed_extensions = { @".osz", @".osr" }; private void dragEnter(DragEventArgs e) { diff --git a/osu.Game.Modes.Osu/OsuAutoReplay.cs b/osu.Game.Modes.Osu/OsuAutoReplay.cs index a0fa0904af..674ee10c19 100644 --- a/osu.Game.Modes.Osu/OsuAutoReplay.cs +++ b/osu.Game.Modes.Osu/OsuAutoReplay.cs @@ -15,9 +15,9 @@ namespace osu.Game.Modes.Osu { public class OsuAutoReplay : LegacyReplay { - static readonly Vector2 spinner_centre = new Vector2(256, 192); + private static readonly Vector2 spinner_centre = new Vector2(256, 192); - const float spin_radius = 50; + private const float spin_radius = 50; private Beatmap beatmap; diff --git a/osu.Game/IO/Legacy/SerializationReader.cs b/osu.Game/IO/Legacy/SerializationReader.cs index 5c10efd698..79a293a91e 100644 --- a/osu.Game/IO/Legacy/SerializationReader.cs +++ b/osu.Game/IO/Legacy/SerializationReader.cs @@ -17,7 +17,7 @@ namespace osu.Game.IO.Legacy /// handle null strings and simplify use with ISerializable. public class SerializationReader : BinaryReader { - Stream stream; + private Stream stream; public SerializationReader(Stream s) : base(s, Encoding.UTF8) diff --git a/osu.Game/Modes/LegacyReplay.cs b/osu.Game/Modes/LegacyReplay.cs index 0c9fb6ffca..c7ae0fe31c 100644 --- a/osu.Game/Modes/LegacyReplay.cs +++ b/osu.Game/Modes/LegacyReplay.cs @@ -58,7 +58,7 @@ public class LegacyReplayInputHandler : ReplayInputHandler public LegacyReplayFrame CurrentFrame => !hasFrames ? null : replayContent[currentFrameIndex]; public LegacyReplayFrame NextFrame => !hasFrames ? null : replayContent[nextFrameIndex]; - int currentFrameIndex; + private int currentFrameIndex; private int nextFrameIndex => MathHelper.Clamp(currentFrameIndex + (currentDirection > 0 ? 1 : -1), 0, replayContent.Count - 1); @@ -125,8 +125,8 @@ public override List GetPendingStates() private const double sixty_frame_time = 1000.0 / 60; - double currentTime; - int currentDirection; + private double currentTime; + private int currentDirection; /// /// When set, we will ensure frames executed by nested drawables are frame-accurate to replay data. @@ -136,7 +136,7 @@ public override List GetPendingStates() private bool hasFrames => replayContent.Count > 0; - bool inImportantSection => + private bool inImportantSection => FrameAccuratePlayback && //a button is in a pressed state (currentDirection > 0 ? CurrentFrame : NextFrame)?.ButtonState > LegacyButtonState.None &&