Difference between revisions of "API:PluginConfigNode"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "{{Namespace:KSP.IO}} == PluginConfigNode == :''See PluginConfiguration for a full description. A node full of configuration values. {{PropertiesStart}} {{ThisProperty |t...")
(No difference)

Revision as of 03:01, 18 May 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
PluginConfigNode GetParent() Get the parent of this configuration node, or a null (if it has none).
T GetValue<T>(string key) Get the requested item from the node, or null if it isn't present
T GetValue<T>(string key, T _default) Get the requested item from the node, or the default if it isn't present
void SetValue(string key, object value) Set the requested item in the node.