Kerbal Space Program
1.12.4
|
Acts as a config file reader and writer. Contains a list of values and sub nodes. Can read or write itself or objects to files. More...
Classes | |
class | ConfigNodeList |
class | Value |
A value contained in a config node. string value name and string value More... | |
class | ValueList |
Public Member Functions | |
void | AddData (ConfigNode node) |
ConfigNode | AddNode (string name) |
Adds a ConfigNode to this node's node list More... | |
ConfigNode | AddNode (string name, string vcomment) |
Adds a ConfigNode to this node's node list More... | |
ConfigNode | AddNode (ConfigNode node) |
Adds a ConfigNode to this node's node list More... | |
ConfigNode | AddNode (string name, ConfigNode node) |
Adds a ConfigNode to this node's node list More... | |
void | AddValue (string name, object value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, string value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, object value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, string value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, bool value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, bool value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, byte value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, byte value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, sbyte value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, sbyte value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, char value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, char value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, decimal value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, decimal value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, double value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, double value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, float value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, float value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, int value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, int value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, uint value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, uint value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, long value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, long value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, ulong value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, ulong value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, short value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, short value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, ushort value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, ushort value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector2 value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector2 value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector3 value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector3 value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector3d value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector3d value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector4 value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Vector4 value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Quaternion value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Quaternion value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, QuaternionD value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, QuaternionD value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Matrix4x4 value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Matrix4x4 value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Color value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Color value) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Color32 value, string vcomment) |
Adds a value of given name to values list More... | |
void | AddValue (string name, Color32 value) |
Adds a value of given name to values list More... | |
void | ClearData () |
Clear all data that this node has More... | |
void | ClearNodes () |
Clears the list of nodes More... | |
void | ClearValues () |
Clears the list of values More... | |
ConfigNode (string name) | |
Create a new ConfigNode of given name More... | |
ConfigNode (string name, string vcomment) | |
Create a new ConfigNode of given name More... | |
ConfigNode () | |
Creates a new ConfigNode More... | |
void | CopyTo (ConfigNode node) |
Copies this ConfigNode into another ConfigNode recursivly More... | |
void | CopyTo (ConfigNode node, bool overwrite) |
Copies this ConfigNode into another ConfgNode recursively, overwriting nodes/values if specified. More... | |
void | CopyTo (ConfigNode node, string newName) |
Copies this ConfigNode into another ConfigNode recursivly More... | |
ConfigNode | CreateCopy () |
Creates a copy of this confignode More... | |
ConfigNode | GetNode (string name) |
Gets a node of the given name More... | |
ConfigNode | GetNode (string name, string valueName, string value) |
Gets a node of the given name and has a value of value value More... | |
ConfigNode | GetNode (string name, int index) |
Gets a node of the given name More... | |
ConfigNode | GetNodeID (string id) |
Gets a node of the given ID More... | |
ConfigNode[] | GetNodes (string name) |
Gets an array of nodes that share the given name More... | |
ConfigNode[] | GetNodes (string name, string valueName, string value) |
Gets an array of nodes that share the given name and have a value of name valueName and value value More... | |
ConfigNode[] | GetNodes () |
Gets an array of all nodes within this node More... | |
string | GetValue (string name) |
Gets a value by name More... | |
string | GetValue (string name, int index) |
Gets a value by name More... | |
string[] | GetValues () |
Gets an array of all values on the node More... | |
string[] | GetValues (string name) |
Gets an array of values sharing the same name More... | |
List< string > | GetValuesList (string name) |
Gets an array of values sharing the same name More... | |
string[] | GetValuesStartsWith (string name) |
Gets an array of values sharing the same name More... | |
bool | HasNode (string name) |
Does this node contain a node of the given name? More... | |
bool | HasNode () |
Does this config node contain any nodes More... | |
bool | HasNodeID (string id) |
Does this node contain a node of the given name? More... | |
bool | HasValue (string name) |
Does this config node contain a value of given name More... | |
bool | HasValue () |
Does this config node contain any values More... | |
bool | HasValues (params string[] values) |
Returns true if the ConfigNode contains all the specified values passed as parameters More... | |
void | RemoveNode (string name) |
Removes the first node of given name from the node list More... | |
void | RemoveNode (ConfigNode node) |
Removes the first node of given name from the node list More... | |
void | RemoveNodes (string name) |
Removes all nodes of given name from the node list More... | |
void | RemoveNodesStartWith (string startsWith) |
Removes all nodes of given name from the node list More... | |
void | RemoveValue (string name) |
Removes the first value of given name from the value list More... | |
void | RemoveValues (params string[] names) |
Removes all values of given names from the value list More... | |
void | RemoveValues (string startsWith) |
Removes all values of given name from the value list More... | |
void | RemoveValuesStartWith (string startsWith) |
Removes all values that start with the given string form the values list More... | |
bool | Save (string fileFullName) |
Saves this node to a file More... | |
bool | Save (string fileFullName, string header) |
Saves this node to a file More... | |
bool | SetNode (string name, ConfigNode newNode, bool createIfNotFound=false) |
Sets a node by name More... | |
bool | SetNode (string name, ConfigNode newNode, int index, bool createIfNotFound=false) |
Sets a node by name. index being the nth occurance of the value name More... | |
bool | SetValue (string name, string newValue, bool createIfNotFound=false) |
Sets a value by name More... | |
bool | SetValue (string name, string newValue, int index, bool createIfNotFound=false) |
Sets a value by name. index being the nth occurance of the value name More... | |
bool | SetValue (string name, string newValue, string vcomment, bool createIfNotFound=false) |
Sets a value by name More... | |
bool | SetValue (string name, string newValue, string vcomment, int index, bool createIfNotFound=false) |
Sets a value by name. index being the nth occurance of the value name More... | |
bool | SetValue (string name, bool newValue, bool createIfNotFound=false) |
bool | SetValue (string name, bool newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, bool newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, bool newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, byte newValue, bool createIfNotFound=false) |
bool | SetValue (string name, byte newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, byte newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, byte newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, sbyte newValue, bool createIfNotFound=false) |
bool | SetValue (string name, sbyte newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, sbyte newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, sbyte newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, char newValue, bool createIfNotFound=false) |
bool | SetValue (string name, char newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, char newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, char newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, decimal newValue, bool createIfNotFound=false) |
bool | SetValue (string name, decimal newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, decimal newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, decimal newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, double newValue, bool createIfNotFound=false) |
bool | SetValue (string name, double newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, double newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, double newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, float newValue, bool createIfNotFound=false) |
bool | SetValue (string name, float newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, float newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, float newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, int newValue, bool createIfNotFound=false) |
bool | SetValue (string name, int newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, int newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, int newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, uint newValue, bool createIfNotFound=false) |
bool | SetValue (string name, uint newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, uint newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, uint newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, long newValue, bool createIfNotFound=false) |
bool | SetValue (string name, long newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, long newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, long newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, ulong newValue, bool createIfNotFound=false) |
bool | SetValue (string name, ulong newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, ulong newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, ulong newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, short newValue, bool createIfNotFound=false) |
bool | SetValue (string name, short newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, short newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, short newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, ushort newValue, bool createIfNotFound=false) |
bool | SetValue (string name, ushort newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, ushort newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, ushort newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector2 newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Vector2 newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector2 newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Vector2 newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3 newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3 newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3 newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3 newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3d newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3d newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3d newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Vector3d newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector4 newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Vector4 newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Vector4 newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Vector4 newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Quaternion newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Quaternion newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Quaternion newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Quaternion newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, QuaternionD newValue, bool createIfNotFound=false) |
bool | SetValue (string name, QuaternionD newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, QuaternionD newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, QuaternionD newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Matrix4x4 newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Matrix4x4 newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Matrix4x4 newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Matrix4x4 newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Color newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Color newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Color newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Color newValue, string vcomment, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Color32 newValue, bool createIfNotFound=false) |
bool | SetValue (string name, Color32 newValue, int index, bool createIfNotFound=false) |
bool | SetValue (string name, Color32 newValue, string vcomment, bool createIfNotFound=false) |
bool | SetValue (string name, Color32 newValue, string vcomment, int index, bool createIfNotFound=false) |
override string | ToString () |
Gets string representation of this node recursivly More... | |
bool | TryGetEnum (string name, Type enumType, ref Enum value) |
Get an enum from a node, and a default value if it fails More... | |
bool | TryGetEnum< T > (string name, ref T value, T defaultValue) |
Get an enum from a node, and a default value if it fails More... | |
bool | TryGetNode (string name, ref ConfigNode node) |
Returns true if the ConfigNode contains a node of the given name, and stores it in the ref value More... | |
bool | TryGetValue (string name, ref string value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a string More... | |
bool | TryGetValue (string name, ref string[] value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a string array More... | |
bool | TryGetValue (string name, ref float value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a float More... | |
bool | TryGetValue (string name, ref double value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a double More... | |
bool | TryGetValue (string name, ref int value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as an int More... | |
bool | TryGetValue (string name, ref uint value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as an uint More... | |
bool | TryGetValue (string name, ref long value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a long More... | |
bool | TryGetValue (string name, ref ulong value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a ulong More... | |
bool | TryGetValue (string name, ref bool value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a bool More... | |
bool | TryGetValue (string name, ref Vector3 value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector3 More... | |
bool | TryGetValue (string name, ref Vector3d value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector3d More... | |
bool | TryGetValue (string name, ref Vector2 value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector2 More... | |
bool | TryGetValue (string name, ref Vector2d value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector2d More... | |
bool | TryGetValue (string name, ref Vector4 value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector4 More... | |
bool | TryGetValue (string name, ref Vector4d value) |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector4d More... | |
bool | TryGetValue (string name, ref Quaternion value) |
bool | TryGetValue (string name, ref QuaternionD value) |
bool | TryGetValue (string name, ref Rect value) |
bool | TryGetValue (string name, ref Color value) |
bool | TryGetValue (string name, ref Color32 value) |
bool | TryGetValue (string name, ref Guid value) |
Tries to get Guid value. This one is courtesy of JPL. More... | |
Static Public Member Functions | |
static bool | CheckAndParseColor (string colorString, out Color color) |
static void | CompileConfig (ConfigNode node) |
static ConfigNode | CreateConfigFromObject (object obj) |
Creates a ConfigNode from any object. Uses reflection. More... | |
static ConfigNode | CreateConfigFromObject (object obj, ConfigNode node) |
Creates a ConfigNode from any object. Uses reflection. More... | |
static ConfigNode | CreateConfigFromObject (object obj, int pass) |
Creates a ConfigNode from any object. Uses reflection. More... | |
static ConfigNode | CreateConfigFromObject (object obj, int pass, ConfigNode node) |
Creates a ConfigNode from any object. Uses reflection. More... | |
static object | CreateObjectFromConfig (string typeName, ConfigNode node) |
Creates an object from the ConfigNode of the given type name and loads the values into it. DO NOT USE ON MONOBEHAVIOURS! More... | |
static object | CreateObjectFromConfig (ConfigNode node) |
Creates an object from the ConfigNode, the class name being the node name and loads the values into it. DO NOT USE ON MONOBEHAVIOURS! More... | |
static T | CreateObjectFromConfig< T > (ConfigNode node) |
Creates an object from the ConfigNode, the class name being the node name and loads the values into it. DO NOT USE ON MONOBEHAVIOURS! More... | |
static ConfigNode | Load (string fileFullName) |
Loads a file into a ConfigNode More... | |
static ConfigNode | Load (string fileFullName, bool bypassLocalization) |
Loads a file into a ConfigNode More... | |
static ConfigNode | LoadFromTextAssetResource (string resourcePath) |
Loads a text asset in resoruces into a ConfigNode, splits the file using the standard line brakes. More... | |
static bool | LoadObjectFromConfig (object obj, ConfigNode node, int pass, bool removeAfterUse) |
Loads values from a ConfigNode into an object More... | |
static bool | LoadObjectFromConfig (object obj, ConfigNode node, int pass) |
static bool | LoadObjectFromConfig (object obj, ConfigNode node) |
static void | Merge (ConfigNode mergeTo, ConfigNode mergeFrom) |
static ConfigNode | Parse (string s) |
Creates a ConfigNode from a string More... | |
static Color | ParseColor (string vectorString) |
Parses a Color from a comma-separated string of XYZ values More... | |
static Color32 | ParseColor32 (string vectorString) |
Parses a Color from a comma-separated string of XYZ values More... | |
static System.Enum | ParseEnum (Type enumType, string vectorString) |
Parses a Color from a comma-separated string of XYZ values More... | |
static Matrix4x4 | ParseMatrix4x4 (string quaternionString) |
Parses a Matrix4x4 from a comma-separated string of values More... | |
static Quaternion | ParseQuaternion (string quaternionString) |
Parses a Quaternion from a comma-separated string of XYZW values More... | |
static QuaternionD | ParseQuaternionD (string quaternionString) |
Parses a QuaternionD from a comma-separated string of XYZW values More... | |
static Vector2 | ParseVector2 (string vectorString) |
Parses a Vector2 from a comma-separated string of XYZ values More... | |
static Vector3 | ParseVector3 (string vectorString) |
Parses a Vector3 from a comma-separated string of XYZ values More... | |
static Vector3d | ParseVector3D (string vectorString) |
Parses a Vector3 from a comma-separated string of XYZ values More... | |
static Vector4 | ParseVector4 (string vectorString) |
Parses a Vector4 from a comma-separated string of XYZ values More... | |
static string | WriteBoolArray (bool[]flags) |
Returns a comma-separated string for the given bools More... | |
static string | WriteColor (Color color) |
Returns a comma-separated string for the given color More... | |
static string | WriteColor (Color32 color) |
Returns a comma-separated string for the given color More... | |
static string | WriteEnum (System.Enum en) |
Returns a comma-separated string for the given color More... | |
static string | WriteEnumIntArray< T > (T[]flags) |
Returns a comma-separated string for the given enums as ints More... | |
static string | WriteMatrix4x4 (Matrix4x4 matrix) |
Returns a comma-separated string for the given Matrix4x4 More... | |
static string | WriteQuaternion (Quaternion quaternion) |
Returns a comma-separated string for the given quaternion More... | |
static string | WriteQuaternion (QuaternionD quaternion) |
Returns a comma-separated string for the given quaternion More... | |
static string | WriteStringArray (string[]strings) |
Returns a comma-separated string for the given strings More... | |
static string | WriteVector (Vector2 vector) |
Returns a comma-separated string for the given vector More... | |
static string | WriteVector (Vector3 vector) |
Returns a comma-separated string for the given vector More... | |
static string | WriteVector (Vector3d vector) |
Returns a comma-separated string for the given vector More... | |
static string | WriteVector (Vector4 vector) |
Returns a comma-separated string for the given vector More... | |
Public Attributes | |
string | comment = null |
The comment, if any, for this node More... | |
const string | configTabIndent = "\t" |
Default config indent character More... | |
string | id = "" |
ID of this node if given More... | |
string | name = "" |
Name of this node More... | |
Properties | |
int | CountNodes [get] |
Returns number of nodes in this node More... | |
int | CountValues [get] |
Returns number of values in this node More... | |
bool | HasData [get] |
Has this config node any data (values or nodes) assigned More... | |
ConfigNodeList | nodes [get] |
ValueList | values [get] |
Acts as a config file reader and writer. Contains a list of values and sub nodes. Can read or write itself or objects to files.
|
inline |
Create a new ConfigNode of given name
name |
|
inline |
Create a new ConfigNode of given name
name |
|
inline |
Creates a new ConfigNode
name |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment | (defaults to null) |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment | (defaults to null) |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inline |
Adds a value of given name to values list
name | |
value | |
commment |
|
inline |
Adds a value of given name to values list
name | |
value |
|
inlinestatic |
|
inline |
Clear all data that this node has
|
inline |
Clears the list of nodes
|
inline |
Clears the list of values
|
inlinestatic |
|
inline |
Copies this ConfigNode into another ConfigNode recursivly
node | Node to copy into |
|
inline |
Copies this ConfigNode into another ConfgNode recursively, overwriting nodes/values if specified.
node | |
overwrite |
|
inline |
Copies this ConfigNode into another ConfigNode recursivly
node | Node to copy into |
|
inlinestatic |
Creates a ConfigNode from any object. Uses reflection.
obj | Object to create ConfigNode from |
|
inlinestatic |
Creates a ConfigNode from any object. Uses reflection.
obj | Object to create ConfigNode from |
node | ConfigNode to create data into |
|
inlinestatic |
Creates a ConfigNode from any object. Uses reflection.
obj | Object to create ConfigNode from |
|
inlinestatic |
Creates a ConfigNode from any object. Uses reflection.
obj | Object to create ConfigNode from |
node | ConfigNode to create data into |
|
inline |
Creates a copy of this confignode
|
inlinestatic |
Creates an object from the ConfigNode of the given type name and loads the values into it. DO NOT USE ON MONOBEHAVIOURS!
typeName | Name of type to create |
node | ConfigNode to load from |
|
inlinestatic |
Creates an object from the ConfigNode, the class name being the node name and loads the values into it. DO NOT USE ON MONOBEHAVIOURS!
node | ConfigNode to load from |
|
inlinestatic |
Creates an object from the ConfigNode, the class name being the node name and loads the values into it. DO NOT USE ON MONOBEHAVIOURS!
T | Generic type parameter |
node | ConfigNode to load from |
|
inline |
Gets a node of the given name
name |
|
inline |
Gets a node of the given name and has a value of value value
name | |
valueName | |
value |
|
inline |
Gets a node of the given name
name | |
index |
|
inline |
Gets a node of the given ID
name |
|
inline |
Gets an array of nodes that share the given name
name |
|
inline |
Gets an array of nodes that share the given name and have a value of name valueName and value value
name | |
valueName | |
value |
|
inline |
Gets an array of all nodes within this node
name |
|
inline |
Gets a value by name
name |
|
inline |
Gets a value by name
name | |
index |
|
inline |
Gets an array of all values on the node
|
inline |
Gets an array of values sharing the same name
name |
|
inline |
Gets an array of values sharing the same name
name |
|
inline |
Gets an array of values sharing the same name
name |
|
inline |
Does this node contain a node of the given name?
name |
|
inline |
Does this config node contain any nodes
name |
|
inline |
Does this node contain a node of the given name?
name |
|
inline |
Does this config node contain a value of given name
name |
|
inline |
Does this config node contain any values
name |
|
inline |
Returns true if the ConfigNode contains all the specified values passed as parameters
values | List of values to find in the ConfigNode |
|
inlinestatic |
Loads a file into a ConfigNode
fileFullName | Full file path of file to load |
|
inlinestatic |
Loads a file into a ConfigNode
fileFullName | Full file path of file to load |
bypassLocalization | Set to true to skip the localization of values |
|
inlinestatic |
Loads a text asset in resoruces into a ConfigNode, splits the file using the standard line brakes.
cfgData | Path in resources for the TextAsset |
|
inlinestatic |
Loads values from a ConfigNode into an object
obj | Object to load node into |
node | ConfigNode to load from |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Parses a Color from a comma-separated string of XYZ values
|
inlinestatic |
Parses a Color from a comma-separated string of XYZ values
|
inlinestatic |
Parses a Color from a comma-separated string of XYZ values
|
inlinestatic |
Parses a Matrix4x4 from a comma-separated string of values
|
inlinestatic |
Parses a Quaternion from a comma-separated string of XYZW values
|
inlinestatic |
Parses a QuaternionD from a comma-separated string of XYZW values
|
inlinestatic |
Parses a Vector2 from a comma-separated string of XYZ values
|
inlinestatic |
Parses a Vector3 from a comma-separated string of XYZ values
|
inlinestatic |
Parses a Vector3 from a comma-separated string of XYZ values
|
inlinestatic |
Parses a Vector4 from a comma-separated string of XYZ values
|
inline |
Removes the first node of given name from the node list
name | Name of node to remove |
|
inline |
Removes the first node of given name from the node list
name | Name of node to remove |
|
inline |
Removes all nodes of given name from the node list
name | Name of nodes to remove |
|
inline |
Removes all nodes of given name from the node list
startsWith | Name of nodes to remove |
|
inline |
Removes the first value of given name from the value list
name | Name of value to remove |
|
inline |
Removes all values of given names from the value list
names | Names of values to remove |
|
inline |
Removes all values of given name from the value list
startsWith | Name of values to remove |
|
inline |
Removes all values that start with the given string form the values list
name | Name of values to remove |
|
inline |
Saves this node to a file
fileFullName | Full file path of file to load |
|
inline |
Saves this node to a file
fileFullName | Full file path of file to load |
header | Helpful header text |
|
inline |
Sets a node by name
name |
|
inline |
Sets a node by name. index being the nth occurance of the value name
name |
|
inline |
Sets a value by name
name |
|
inline |
Sets a value by name. index being the nth occurance of the value name
name |
|
inline |
Sets a value by name
name |
|
inline |
Sets a value by name. index being the nth occurance of the value name
name |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets string representation of this node recursivly
|
inline |
Get an enum from a node, and a default value if it fails
T | Enum Type |
name | name of the field in the config node |
enumType | type of the enum to be converted |
value | where to set the value back |
|
inline |
Get an enum from a node, and a default value if it fails
T | Enum Type |
name | name of the field in the config node |
value | where to set the value back |
defaultValue | what to set it to if we fail |
T | : | IComparable | |
T | : | IFormattable | |
T | : | IConvertible |
|
inline |
Returns true if the ConfigNode contains a node of the given name, and stores it in the ref value
name | Name of the node to find |
node | Value to store the result in |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a string
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a string array
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a float
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a double
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as an int
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as an uint
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a long
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a ulong
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a bool
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector3
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector3d
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector2
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector2d
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector4
name | Name of the value searched for |
value | Value to assign |
|
inline |
Returns true if the ConfigNode has the specified value and stores it within the ref as a Vector4d
name | Name of the value searched for |
value | Value to assign |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tries to get Guid value. This one is courtesy of JPL.
name | |
value |
|
inlinestatic |
Returns a comma-separated string for the given bools
|
inlinestatic |
Returns a comma-separated string for the given color
|
inlinestatic |
Returns a comma-separated string for the given color
|
inlinestatic |
Returns a comma-separated string for the given color
|
inlinestatic |
Returns a comma-separated string for the given enums as ints
T | : | struct |
|
inlinestatic |
Returns a comma-separated string for the given Matrix4x4
|
inlinestatic |
Returns a comma-separated string for the given quaternion
|
inlinestatic |
Returns a comma-separated string for the given quaternion
|
inlinestatic |
Returns a comma-separated string for the given strings
|
inlinestatic |
Returns a comma-separated string for the given vector
|
inlinestatic |
Returns a comma-separated string for the given vector
|
inlinestatic |
Returns a comma-separated string for the given vector
|
inlinestatic |
Returns a comma-separated string for the given vector
string ConfigNode.comment = null |
The comment, if any, for this node
const string ConfigNode.configTabIndent = "\t" |
Default config indent character
************************************* Constructors, ToString, CopyTo *************************************
string ConfigNode.id = "" |
ID of this node if given
string ConfigNode.name = "" |
Name of this node
|
get |
Returns number of nodes in this node
|
get |
Returns number of values in this node
|
get |
Has this config node any data (values or nodes) assigned
|
get |
|
get |