Difference between revisions of "API:PluginConfigNode"
From Kerbal Space Program Wiki
Line 7: | Line 7: | ||
{{Property | {{Property | ||
|type=Object | |type=Object | ||
− | |name=this[{{ | + | |name=this[{{arg|string|key}}] |
|desc=Get or set the value of a configuration key | |desc=Get or set the value of a configuration key | ||
− | |hasget= | + | |hasget=1 |
|hasset=1 | |hasset=1 | ||
}} | }} |
Latest revision as of 22:39, 12 October 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; set; } | Get or set the value of a configuration key |
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. |