Barotrauma Client Doc
|
Public Member Functions | |
Serialize (object defaultValue, IsPropertySaveable isSaveable, string description="", string translationTextTag="", bool alwaysUseInstanceValues=false) | |
Makes the property serializable to/from XML More... | |
Public Attributes | |
readonly object | DefaultValue |
readonly IsPropertySaveable | IsSaveable |
readonly Identifier | TranslationTextTag |
bool | AlwaysUseInstanceValues |
If set to true, the instance values saved in a submarine file will always override the prefab values, even if using a mod that normally overrides instance values. More... | |
string | Description |
Definition at line 25 of file SerializableProperty.cs.
Barotrauma.Serialize.Serialize | ( | object | defaultValue, |
IsPropertySaveable | isSaveable, | ||
string | description = "" , |
||
string | translationTextTag = "" , |
||
bool | alwaysUseInstanceValues = false |
||
) |
Makes the property serializable to/from XML
defaultValue | The property is set to this value during deserialization if the value is not defined in XML. | ||
isSaveable | Is the value saved to XML when serializing. | ||
translationTextTag | If set to anything else than null, SerializableEntityEditors will show what the text gets translated to or warn if the text is not found in the language files.
|
Definition at line 46 of file SerializableProperty.cs.
bool Barotrauma.Serialize.AlwaysUseInstanceValues |
If set to true, the instance values saved in a submarine file will always override the prefab values, even if using a mod that normally overrides instance values.
Definition at line 34 of file SerializableProperty.cs.
readonly object Barotrauma.Serialize.DefaultValue |
Definition at line 27 of file SerializableProperty.cs.
string Barotrauma.Serialize.Description |
Definition at line 36 of file SerializableProperty.cs.
readonly IsPropertySaveable Barotrauma.Serialize.IsSaveable |
Definition at line 28 of file SerializableProperty.cs.
readonly Identifier Barotrauma.Serialize.TranslationTextTag |
Definition at line 29 of file SerializableProperty.cs.