mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Add clarifying xmldoc for RotationAbsolute
This commit is contained in:
parent
213dfac344
commit
4cd874280c
@ -73,6 +73,19 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The total rotation performed on the spinner disc, disregarding the spin direction.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This value is always non-negative and is monotonically increasing with time
|
||||||
|
/// (i.e. will only increase if time is passing forward, but can decrease during rewind).
|
||||||
|
/// </remarks>
|
||||||
|
/// <example>
|
||||||
|
/// If the spinner is spun 360 degrees clockwise and then 360 degrees counter-clockwise,
|
||||||
|
/// this property will return the value of 720 (as opposed to 0 for <see cref="Drawable.Rotation"/>).
|
||||||
|
/// </example>
|
||||||
|
public float RotationAbsolute;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether currently in the correct time range to allow spinning.
|
/// Whether currently in the correct time range to allow spinning.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -88,7 +101,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
|
|
||||||
private float lastAngle;
|
private float lastAngle;
|
||||||
private float currentRotation;
|
private float currentRotation;
|
||||||
public float RotationAbsolute;
|
|
||||||
private int completeTick;
|
private int completeTick;
|
||||||
|
|
||||||
private bool updateCompleteTick() => completeTick != (completeTick = (int)(RotationAbsolute / 360));
|
private bool updateCompleteTick() => completeTick != (completeTick = (int)(RotationAbsolute / 360));
|
||||||
|
Loading…
Reference in New Issue
Block a user