Allows easy creation of KerbalData model instance with configuration.
Namespace: KerbalDataAssembly: KerbalData (in KerbalData.dll) Version: 1.0.0.0 (1.0.0.0)
public static KerbalData Create(
string installPath,
string configSectionName = "kerbalData"
)
public:
static KerbalData^ Create(
String^ installPath,
String^ configSectionName = L"kerbalData"
)
Parameters
- installPath
- Type:
System String
root path of KSP installation
- configSectionName (Optional)
- Type:
System String
application configuration section name
Return Value
properly configured KerbalData instance
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.
var kd = KerbalData.Create(@"C:\KSP");
var kd = KerbalData.Create(@"C:\KSP");