CrabUI
Loading...
Searching...
No Matches
Serialization Props.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Reflection;
5using System.Diagnostics;
6using System.Runtime.CompilerServices;
7using System.IO;
8
9using Barotrauma;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Input;
12using Microsoft.Xna.Framework.Graphics;
13
14using System.Xml;
15using System.Xml.Linq;
16
17namespace CrabUI
18{
19 public partial class CUIComponent
20 {
21 /// <summary>
22 /// If false then this component and its children won't be serialized
23 /// </summary>
24 [CUISerializable] public bool Serializable { get; set; } = true;
25 /// <summary>
26 /// Is this a serialization cutoff point
27 /// Parent will serialize children down to this component and stop
28 /// </summary>
29 [CUISerializable] public bool SerializeChildren { get; set; } = true;
30 /// <summary>
31 /// If true it won't be deserialized,
32 /// Instead its children will be detached and attached to the component
33 /// with matching AKA on the parent
34 /// </summary>
35 [CUISerializable] public bool MergeSerialization { get; set; } = false;
36 /// <summary>
37 /// If true, deserialized component will replace existing component with the
38 /// same AKA instead of creating a duplicate
39 /// </summary>
40 [CUISerializable] public bool ReplaceSerialization { get; set; } = false;
41 [CUISerializable] public static bool ForceSaveAllProps { get; set; } = false;
42 }
43}
Base class for all components.
bool ReplaceSerialization
If true, deserialized component will replace existing component with the same AKA instead of creating...
bool SerializeChildren
Is this a serialization cutoff point Parent will serialize children down to this component and stop...
bool MergeSerialization
If true it won't be deserialized, Instead its children will be detached and attached to the compone...
bool Serializable
If false then this component and its children won't be serialized.