Difference between revisions of "API:ConfigNode"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (stub)
 
Line 5: Line 5:
 
|type=int
 
|type=int
 
|name=CountNodes
 
|name=CountNodes
 +
|desc=The number of ConfigNodes in the nodes property.
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=int
 +
|name=CountValues
 +
|desc=The number ConfigNode.Value in the values property.
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=bools
 +
|name=hasData
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{Property
 +
|type=ConfigNode.ConfigNodeList
 +
|name=nodes
 
|desc=
 
|desc=
 
|hasget=1
 
|hasget=1
 
|hasset=
 
|hasset=
 
}}
 
}}
 +
{{Property
 +
|type=ConfigNode.ValueList
 +
|name=values
 +
|desc=
 +
|hasget=1
 +
|hasset=
 +
}}
 +
{{PropertiesEnd}}
 +
  
{{PropertiesEnd}}
 
 
{{FieldsStart}}
 
{{FieldsStart}}
 
{{Field
 
{{Field
 
|type=string
 
|type=string
 
|name=id
 
|name=id
 +
|desc=
 +
}}
 +
{{Field
 +
|type=string
 +
|name=name
 
|desc=
 
|desc=
 
}}
 
}}
 
{{FieldsEnd}}
 
{{FieldsEnd}}
 +
 +
 
{{MethodsStart}}
 
{{MethodsStart}}
 
{{Method
 
{{Method

Latest revision as of 22:38, 22 May 2014

This article is a stub. You can help KSP Wiki by expanding it.

Properties

The following are public properties available in ConfigNode.

Signature Description
int CountNodes { get; } The number of ConfigNodes in the nodes property.
int CountValues { get; } The number ConfigNode.Value in the values property.
bools hasData { get; }
ConfigNode.ConfigNodeList nodes { get; }
ConfigNode.ValueList values { get; }


Fields

The following is a list of publically-accessible fields in ConfigNode. This includes protected items, which can be accessed by subclasses.

Signature Description
string id
string name


Methods

The following are methods included in ConfigNode.

Signature Description
ConfigNode AddNode(ConfigNode node)
ConfigNode AddNode(string name)