mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 03:02:55 +08:00
Add missing access modifiers.
This commit is contained in:
parent
9772f2a042
commit
dc5ac6e88f
@ -13,7 +13,7 @@ using osu.Game.Screens.Play;
|
|||||||
|
|
||||||
namespace osu.Desktop.VisualTests.Tests
|
namespace osu.Desktop.VisualTests.Tests
|
||||||
{
|
{
|
||||||
class TestCaseReplay : TestCasePlayer
|
internal class TestCaseReplay : TestCasePlayer
|
||||||
{
|
{
|
||||||
private WorkingBeatmap beatmap;
|
private WorkingBeatmap beatmap;
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ namespace osu.Desktop
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static readonly string[] allowed_extensions = { @".osz", @".osr" };
|
private static readonly string[] allowed_extensions = { @".osz", @".osr" };
|
||||||
|
|
||||||
private void dragEnter(DragEventArgs e)
|
private void dragEnter(DragEventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -15,9 +15,9 @@ namespace osu.Game.Modes.Osu
|
|||||||
{
|
{
|
||||||
public class OsuAutoReplay : LegacyReplay
|
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;
|
private Beatmap beatmap;
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ namespace osu.Game.IO.Legacy
|
|||||||
/// handle null strings and simplify use with ISerializable. </summary>
|
/// handle null strings and simplify use with ISerializable. </summary>
|
||||||
public class SerializationReader : BinaryReader
|
public class SerializationReader : BinaryReader
|
||||||
{
|
{
|
||||||
Stream stream;
|
private Stream stream;
|
||||||
|
|
||||||
public SerializationReader(Stream s)
|
public SerializationReader(Stream s)
|
||||||
: base(s, Encoding.UTF8)
|
: base(s, Encoding.UTF8)
|
||||||
|
@ -58,7 +58,7 @@ namespace osu.Game.Modes
|
|||||||
public LegacyReplayFrame CurrentFrame => !hasFrames ? null : replayContent[currentFrameIndex];
|
public LegacyReplayFrame CurrentFrame => !hasFrames ? null : replayContent[currentFrameIndex];
|
||||||
public LegacyReplayFrame NextFrame => !hasFrames ? null : replayContent[nextFrameIndex];
|
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);
|
private int nextFrameIndex => MathHelper.Clamp(currentFrameIndex + (currentDirection > 0 ? 1 : -1), 0, replayContent.Count - 1);
|
||||||
|
|
||||||
@ -125,8 +125,8 @@ namespace osu.Game.Modes
|
|||||||
|
|
||||||
private const double sixty_frame_time = 1000.0 / 60;
|
private const double sixty_frame_time = 1000.0 / 60;
|
||||||
|
|
||||||
double currentTime;
|
private double currentTime;
|
||||||
int currentDirection;
|
private int currentDirection;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// When set, we will ensure frames executed by nested drawables are frame-accurate to replay data.
|
/// When set, we will ensure frames executed by nested drawables are frame-accurate to replay data.
|
||||||
@ -136,7 +136,7 @@ namespace osu.Game.Modes
|
|||||||
|
|
||||||
private bool hasFrames => replayContent.Count > 0;
|
private bool hasFrames => replayContent.Count > 0;
|
||||||
|
|
||||||
bool inImportantSection =>
|
private bool inImportantSection =>
|
||||||
FrameAccuratePlayback &&
|
FrameAccuratePlayback &&
|
||||||
//a button is in a pressed state
|
//a button is in a pressed state
|
||||||
(currentDirection > 0 ? CurrentFrame : NextFrame)?.ButtonState > LegacyButtonState.None &&
|
(currentDirection > 0 ? CurrentFrame : NextFrame)?.ButtonState > LegacyButtonState.None &&
|
||||||
|
Loading…
Reference in New Issue
Block a user