Difference between revisions of "API:PluginConfigNode"
From Kerbal Space Program Wiki
(Created page with "{{Namespace:KSP.IO}} == PluginConfigNode == :''See PluginConfiguration for a full description. A node full of configuration values. {{PropertiesStart}} {{ThisProperty |t...") |
|||
Line 14: | Line 14: | ||
{{PropertiesEnd}} | {{PropertiesEnd}} | ||
{{MethodsStart}} | {{MethodsStart}} | ||
+ | {{Method | ||
+ | |returntype=void | ||
+ | |returndesc= | ||
+ | |name=SetValue | ||
+ | |args=string key, object value | ||
+ | |desc=Set the value of a configuration key | ||
+ | }} | ||
{{Method | {{Method | ||
|returntype=PluginConfigNode | |returntype=PluginConfigNode | ||
Line 19: | Line 26: | ||
|name=GetParent | |name=GetParent | ||
|args= | |args= | ||
− | |desc= | + | |desc=Gets the parent of this node. |
}} | }} | ||
{{Method | {{Method | ||
Line 26: | Line 33: | ||
|name=GetValue<T> | |name=GetValue<T> | ||
|args=string key | |args=string key | ||
− | |desc=Get the | + | |desc=Get the value of a configuration key. |
}} | }} | ||
{{Method | {{Method | ||
Line 33: | Line 40: | ||
|name=GetValue<T> | |name=GetValue<T> | ||
|args=string key, T _default | |args=string key, T _default | ||
− | |desc=Get the | + | |desc=Get the value of a configuration key. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
{{MethodsEnd}} | {{MethodsEnd}} |
Revision as of 06:26, 23 August 2012
KSP.IO Namespace
BinaryReader ·
BinaryWriter ·
File ·
FileInfo ·
FileStream ·
IOException ·
IOTools ·
IOUtils ·
MemoryStream ·
PluginConfigNode ·
PluginConfiguration ·
TextReader ·
TextWriter
PluginConfigNode
- See PluginConfiguration for a full description.
A node full of configuration values.
Properties
The following are public properties available in PluginConfigNode.
Signature | Description |
---|---|
object this[string key] | Get or set a named value within the node. |
Methods
The following are methods included in PluginConfigNode.
Signature | Description |
---|---|
void SetValue(string key, object value) | Set the value of a configuration key |
PluginConfigNode GetParent() | Gets the parent of this node. |
T GetValue<T>(string key) | Get the value of a configuration key. |
T GetValue<T>(string key, T _default) | Get the value of a configuration key. |