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:
Bartłomiej Dach 2023-02-20 20:33:54 +01:00
parent c9999bdeb1
commit 86a7f4dfd0
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ public class SkinLayoutInfo
{
private const string global_identifier = @"global";
[JsonIgnore]
public IEnumerable<SerialisedDrawableInfo> AllDrawables => DrawableInfo.Values.SelectMany(v => v);
[JsonProperty]