mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +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;
|
||||
|
||||
@ -201,11 +201,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private struct BarsInfo
|
||||
private readonly struct BarsInfo
|
||||
{
|
||||
private List<float> initialLengths;
|
||||
private List<float> finalLengths;
|
||||
private List<float> instantaneousLengths;
|
||||
private readonly List<float> initialLengths;
|
||||
private readonly List<float> finalLengths;
|
||||
private readonly List<float> instantaneousLengths;
|
||||
|
||||
public bool Any => initialLengths.Any();
|
||||
|
||||
|
Reference in New Issue
Block a user