mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Make BarsInfo a readonly struct
This commit is contained in:
@ -42,7 +42,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly BarsInfo bars = new BarsInfo(0);
|
private BarsInfo bars = new BarsInfo(0);
|
||||||
|
|
||||||
private float barBreadth;
|
private float barBreadth;
|
||||||
|
|
||||||
@ -201,11 +201,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private struct BarsInfo
|
private readonly struct BarsInfo
|
||||||
{
|
{
|
||||||
private List<float> initialLengths;
|
private readonly List<float> initialLengths;
|
||||||
private List<float> finalLengths;
|
private readonly List<float> finalLengths;
|
||||||
private List<float> instantaneousLengths;
|
private readonly List<float> instantaneousLengths;
|
||||||
|
|
||||||
public bool Any => initialLengths.Any();
|
public bool Any => initialLengths.Any();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user