mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 11:42:55 +08:00
Resolve CA1805 inspections
"Member is explicitly initialized to its default value"
This commit is contained in:
parent
6ff13e399a
commit
2b0bea535e
@ -26,7 +26,7 @@ namespace osu.Game.Database
|
|||||||
/// Whether this write usage will commit a transaction on completion.
|
/// Whether this write usage will commit a transaction on completion.
|
||||||
/// If false, there is a parent usage responsible for transaction commit.
|
/// If false, there is a parent usage responsible for transaction commit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsTransactionLeader = false;
|
public bool IsTransactionLeader;
|
||||||
|
|
||||||
protected void Dispose(bool disposing)
|
protected void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
/// Allows controlling the scroll bar from any position in the container using the right mouse button.
|
/// Allows controlling the scroll bar from any position in the container using the right mouse button.
|
||||||
/// Uses the value of <see cref="DistanceDecayOnRightMouseScrollbar"/> to smoothly scroll to the dragged location.
|
/// Uses the value of <see cref="DistanceDecayOnRightMouseScrollbar"/> to smoothly scroll to the dragged location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool RightMouseScrollbar = false;
|
public bool RightMouseScrollbar;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controls the rate with which the target position is approached when performing a relative drag. Default is 0.02.
|
/// Controls the rate with which the target position is approached when performing a relative drag. Default is 0.02.
|
||||||
|
@ -80,7 +80,7 @@ namespace osu.Game.Rulesets.Replays
|
|||||||
/// 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.
|
||||||
/// Disabling this can make replay playback smoother (useful for autoplay, currently).
|
/// Disabling this can make replay playback smoother (useful for autoplay, currently).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool FrameAccuratePlayback = false;
|
public bool FrameAccuratePlayback;
|
||||||
|
|
||||||
protected bool HasFrames => Frames.Count > 0;
|
protected bool HasFrames => Frames.Count > 0;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether custom test steps are provided. Custom tests should invoke <see cref="CreateTest"/> to create the test steps.
|
/// Whether custom test steps are provided. Custom tests should invoke <see cref="CreateTest"/> to create the test steps.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual bool HasCustomSteps { get; } = false;
|
protected virtual bool HasCustomSteps => false;
|
||||||
|
|
||||||
protected TestPlayer Player;
|
protected TestPlayer Player;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user