|
Real World Terrain
v4.1
|
Inherits IEnumerable.
Public Member Functions | |
| RealWorldTerrainXML () | |
| Creates an empty element. More... | |
| RealWorldTerrainXML (string nodeName) | |
| Creates a new element with the specified name. More... | |
| RealWorldTerrainXML (XmlElement xmlElement) | |
| Creates a new element based on the XmlElement. More... | |
| string | A (string attributeName) |
| Get an attribute by name. More... | |
| T | A< T > (string attributeName) |
| Get an attribute by name, and return as the specified type. More... | |
| void | A (string attributeName, object value) |
| Set an named attribute. More... | |
| void | A (string attributeName, Color32 value) |
| Sets the color attribute as hex value. More... | |
| void | AppendChild (XmlElement newChild) |
| Append a child element. More... | |
| void | AppendChild (RealWorldTerrainXML newChild) |
| Append a child element. More... | |
| void | AppendChilds (IEnumerable< XmlNode > list) |
| Append a child elements. More... | |
| void | AppendChilds (IEnumerable< RealWorldTerrainXML > list) |
| Append a child elements. More... | |
| void | AppendChilds (XmlNodeList list) |
| Append a child elements. More... | |
| void | AppendChilds (RealWorldTerrainXMLList list) |
| Append a child elements. More... | |
| RealWorldTerrainXML | Create (string nodeName) |
| Creates a child element with the specified name. More... | |
| RealWorldTerrainXML | Create (string nodeName, bool value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, Color32 value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, float value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, double value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, int value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, Object value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, string value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, Vector2 value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Create (string nodeName, Vector3 value) |
| Creates a child element with the specified name and value. More... | |
| RealWorldTerrainXML | Find (string xpath, System.Xml.XmlNamespaceManager nsmgr=null) |
| Find a child at the specified XPath. More... | |
| T | Find< T > (string xpath, System.Xml.XmlNamespaceManager nsmgr=null) |
| Find a child at the specified XPath, and return value as the specified type. More... | |
| RealWorldTerrainXMLList | FindAll (string xpath, System.Xml.XmlNamespaceManager nsmgr=null) |
| Finds all childs at the specified XPath. More... | |
| string | Get (string childName) |
| Get the value of element as string. More... | |
| T | Get< T > (XmlElement el) |
| Get the value of element as the specified type. More... | |
| T | Get< T > (XmlElement el, T defaultValue) |
| Get the value of element as the specified type or default value if the child is not found. More... | |
| T | Get< T > (string childName) |
| Get the value of child element as the specified type. More... | |
| T | Get< T > (string childName, T defaultValue) |
| Get the value of child element as the specified type or default value if the child is not found. More... | |
| RealWorldTerrainXMLNamespaceManager | GetNamespaceManager (string prefix=null) |
| Get NamespaceManager for current xml node. More... | |
| void | Remove () |
| Removes this element from the XML. More... | |
| void | Remove (string childName) |
| Removes child element from the XML. More... | |
| void | Remove (int childIndex) |
| Removes child element from the XML. More... | |
| string | Value () |
| Gets the value of the element as string. More... | |
| T | Value< T > () |
| Gets the value of the element as the specified type. More... | |
Static Public Member Functions | |
| static Vector2 | GetVector2FromNode (RealWorldTerrainXML node) |
| Converts XMLNode coordinates from Google Maps into Vector2. More... | |
| static RealWorldTerrainXML | Load (string xmlString) |
| Loads the XML from a string. More... | |
Properties | |
| string? | name [get] |
| Name of the node. More... | |
| int? | count [get] |
| The number of child nodes. More... | |
| bool | isNull [get] |
| Checks whether the contents of the node. More... | |
| XmlDocument | document [get] |
| Reference to XmlDocument. More... | |
| XmlElement | element [get] |
| Reference to XmlElement. More... | |
| bool | hasAttributes [get] |
| Gets a value indicating whether the current node has any attributes. More... | |
| bool | hasChildNodes [get] |
| Gets a value indicating the presence of the child nodes from the current node. More... | |
| string? | outerXml [get] |
| Content of node as string. More... | |
| RealWorldTerrainXML | this[int index] [get] |
| Get the child element by index. More... | |
| RealWorldTerrainXML | this[string childName] [get] |
| Get the child element by name. More... | |
Wrapper for XML.
| InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.RealWorldTerrainXML | ( | ) |
Creates an empty element.
| InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.RealWorldTerrainXML | ( | string | nodeName | ) |
Creates a new element with the specified name.
| nodeName | Name of element. |
| InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.RealWorldTerrainXML | ( | XmlElement | xmlElement | ) |
Creates a new element based on the XmlElement.
| xmlElement | XmlElement for which will create the wrapper. |
| string InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.A | ( | string | attributeName | ) |
Get an attribute by name.
| attributeName | Name of attribute. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.A | ( | string | attributeName, |
| object | value | ||
| ) |
Set an named attribute.
| attributeName | Name of attribute. |
| value | Value of attribute. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.A | ( | string | attributeName, |
| Color32 | value | ||
| ) |
Sets the color attribute as hex value.
| attributeName | Name of attribute. |
| value | Color |
| T InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.A< T > | ( | string | attributeName | ) |
Get an attribute by name, and return as the specified type.
| T | Type of attribute. |
| attributeName | Name of attribute. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.AppendChild | ( | XmlElement | newChild | ) |
Append a child element.
| newChild | Element. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.AppendChild | ( | RealWorldTerrainXML | newChild | ) |
Append a child element.
| newChild | Element. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.AppendChilds | ( | IEnumerable< XmlNode > | list | ) |
Append a child elements.
| list | List of elements. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.AppendChilds | ( | IEnumerable< RealWorldTerrainXML > | list | ) |
Append a child elements.
| list | List of elements. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.AppendChilds | ( | XmlNodeList | list | ) |
Append a child elements.
| list | List of elements. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.AppendChilds | ( | RealWorldTerrainXMLList | list | ) |
Append a child elements.
| list | List of elements. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName | ) |
Creates a child element with the specified name.
| nodeName | Name of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| bool | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| Color32 | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| float | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| double | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| int | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| Object | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| string | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| Vector2 | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Create | ( | string | nodeName, |
| Vector3 | value | ||
| ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| RealWorldTerrainXML InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Find | ( | string | xpath, |
| System.Xml.XmlNamespaceManager | nsmgr = null |
||
| ) |
Find a child at the specified XPath.
| xpath | XPath string. |
| nsmgr | An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression. |
| T InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Find< T > | ( | string | xpath, |
| System.Xml.XmlNamespaceManager | nsmgr = null |
||
| ) |
Find a child at the specified XPath, and return value as the specified type.
| T | Type of child element. |
| xpath | XPath string. |
| nsmgr | An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression. |
| RealWorldTerrainXMLList InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.FindAll | ( | string | xpath, |
| System.Xml.XmlNamespaceManager | nsmgr = null |
||
| ) |
Finds all childs at the specified XPath.
| xpath | XPath string. |
| nsmgr | An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression. |
| string InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Get | ( | string | childName | ) |
Get the value of element as string.
| childName | Name of child. |
| T InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Get< T > | ( | XmlElement | el | ) |
Get the value of element as the specified type.
| T | Type of element |
| el | Element |
| T InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Get< T > | ( | XmlElement | el, |
| T | defaultValue | ||
| ) |
Get the value of element as the specified type or default value if the child is not found.
| T | Type of element |
| el | Element |
| defaultValue | Default value |
| T InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Get< T > | ( | string | childName | ) |
Get the value of child element as the specified type.
| T | Type of child element. |
| childName | Name of child. |
| T InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Get< T > | ( | string | childName, |
| T | defaultValue | ||
| ) |
Get the value of child element as the specified type or default value if the child is not found.
| T | Type of child element. |
| childName | Name of child. |
| defaultValue | Default value. |
| RealWorldTerrainXMLNamespaceManager InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.GetNamespaceManager | ( | string | prefix = null | ) |
Get NamespaceManager for current xml node.
| prefix | Namespace prefix. |
|
static |
Converts XMLNode coordinates from Google Maps into Vector2.
| node | XMLNode coordinates from Google Maps. |
|
static |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Remove | ( | ) |
Removes this element from the XML.
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Remove | ( | string | childName | ) |
Removes child element from the XML.
| childName | Name of child element. |
| void InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Remove | ( | int | childIndex | ) |
Removes child element from the XML.
| childIndex | Index of child element. |
| string InfinityCode.RealWorldTerrain.XML.RealWorldTerrainXML.Value | ( | ) |
Gets the value of the element as string.
Gets the value of the element as the specified type.
| T | Type of element. |
|
get |
The number of child nodes.
|
get |
Reference to XmlDocument.
|
get |
Reference to XmlElement.
|
get |
Gets a value indicating whether the current node has any attributes.
|
get |
Gets a value indicating the presence of the child nodes from the current node.
|
get |
Checks whether the contents of the node.
|
get |
Name of the node.
|
get |
Content of node as string.
|
get |
Get the child element by index.
| index | Index of child element. |
|
get |
Get the child element by name.
| childName | Name of child element. |