KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Properties | List of all members
KSP.IO.PluginConfigNode Class Reference

A node full of configuration values. More...

Public Member Functions

 PluginConfigNode ()
 
 PluginConfigNode (PluginConfigNode parent)
 
PluginConfigNode GetParent ()
 Gets the parent of this node. More...
 
GetValue< T > (string key)
 Get the value of a configuration key. More...
 
GetValue< T > (string key, T _default)
 Get the value of a configuration key. More...
 
void SetValue (string key, object value)
 Set the value of a configuration key More...
 

Properties

object this[string key] [get, set]
 Get or set the value of a configuration key More...
 

Detailed Description

A node full of configuration values.

Constructor & Destructor Documentation

KSP.IO.PluginConfigNode.PluginConfigNode ( )
KSP.IO.PluginConfigNode.PluginConfigNode ( PluginConfigNode  parent)

Member Function Documentation

PluginConfigNode KSP.IO.PluginConfigNode.GetParent ( )

Gets the parent of this node.

Returns
T KSP.IO.PluginConfigNode.GetValue< T > ( string  key)

Get the value of a configuration key.

Template Parameters
T
Parameters
key
Returns
T KSP.IO.PluginConfigNode.GetValue< T > ( string  key,
_default 
)

Get the value of a configuration key.

Template Parameters
T
Parameters
key
_default
Returns
void KSP.IO.PluginConfigNode.SetValue ( string  key,
object  value 
)

Set the value of a configuration key

Parameters
key
value

Property Documentation

object KSP.IO.PluginConfigNode.this[string key]
getset

Get or set the value of a configuration key

Parameters
key
Returns

The documentation for this class was generated from the following file: