mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
Do not serialise SkinLayoutInfo.AllDrawables
- It is entirely derived from `SkinLayoutInfo.DrawableInfo`, which is the actual primary thing we want to serialise. - It will never get read out from any serialised files anyway (corollary of the previous point - it is a get-only property derived from another). - It is only used in tests. All of the three reasons above make serialising the property out to skin files nothing more than a waste of space.
This commit is contained in:
parent
c9999bdeb1
commit
86a7f4dfd0
@ -19,6 +19,7 @@ namespace osu.Game.Skinning
|
|||||||
{
|
{
|
||||||
private const string global_identifier = @"global";
|
private const string global_identifier = @"global";
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public IEnumerable<SerialisedDrawableInfo> AllDrawables => DrawableInfo.Values.SelectMany(v => v);
|
public IEnumerable<SerialisedDrawableInfo> AllDrawables => DrawableInfo.Values.SelectMany(v => v);
|
||||||
|
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user