mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:03:11 +08:00
Move playfield constant to top of file and make internal
This commit is contained in:
parent
fffe0d2e57
commit
443058f879
@ -28,6 +28,12 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class JuiceStreamPath
|
public class JuiceStreamPath
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The height of legacy osu!standard playfield.
|
||||||
|
/// The sliders converted by <see cref="ConvertToSliderPath"/> are vertically contained in this height.
|
||||||
|
/// </summary>
|
||||||
|
internal const float OSU_PLAYFIELD_HEIGHT = 384;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The list of vertices of the path, which is represented as a polyline connecting the vertices.
|
/// The list of vertices of the path, which is represented as a polyline connecting the vertices.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -211,12 +217,6 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The height of legacy osu!standard playfield.
|
|
||||||
/// The sliders converted by <see cref="ConvertToSliderPath"/> are vertically contained in this height.
|
|
||||||
/// </summary>
|
|
||||||
public const float OSU_PLAYFIELD_HEIGHT = 384;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert the path of this <see cref="JuiceStreamPath"/> to a <see cref="SliderPath"/> and write the result to <paramref name="sliderPath"/>.
|
/// Convert the path of this <see cref="JuiceStreamPath"/> to a <see cref="SliderPath"/> and write the result to <paramref name="sliderPath"/>.
|
||||||
/// The resulting slider is "folded" to make it vertically contained in the playfield `(0..<see cref="OSU_PLAYFIELD_HEIGHT"/>)` assuming the slider start position is <paramref name="sliderStartY"/>.
|
/// The resulting slider is "folded" to make it vertically contained in the playfield `(0..<see cref="OSU_PLAYFIELD_HEIGHT"/>)` assuming the slider start position is <paramref name="sliderStartY"/>.
|
||||||
|
Loading…
Reference in New Issue
Block a user