public override bool Inspect() { inspected = this; var changed = false; if (data.CountForInspector() > 0) { if (data.HasNestedData) { (name + " " + data.GetNameForInspector()).foldout(ref foldedOut); } DecodeOrInspectJson(ref data, foldedOut, name).changes(ref changed); } else { (name + " " + data.GetNameForInspector()).write(); } pegi.nl(); inspected = null; return(changed); }
public string NameForDisplayPEGI() => name + (data.HasNestedData ? "{}" : data.GetNameForInspector());