KerbalData Create Method (String, String) KerbalData - KSP Data Unlocked!
Allows easy creation of KerbalData model instance with configuration.

Namespace: KerbalData
Assembly: KerbalData (in KerbalData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static KerbalData Create(
	string installPath,
	string configSectionName = "kerbalData"
)

Parameters

installPath
Type: OnlineSystem String
root path of KSP installation
configSectionName (Optional)
Type: OnlineSystem String
application configuration section name

Return Value

properly configured KerbalData instance
Remarks

This method has a hard wired default configuration should no configuration be available. The types used in the hard-wired configuration are static and will always be part of the KerbalData API and mainly represent the initial serializer and converters created for the API and serve as a starting point for all future configurations. TODO: Add sample .NET config to show current default config If another configuration section name is provided it will be used. This is the recommended way to quickly start using the API with minimal configuration/setup.
Examples

var kd = KerbalData.Create(@"C:\KSP");
See Also