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 confiiguration section name
Return Value
properly cofigured 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 inital serializer and converters created for the API and serve as a starting point
for all future configuratiions.
TODO: Add sample .NET config to show current default config
If another configuration section name is provided it will be used.
This is the reccomeded way to qucickly start using the API with minimal configuration/setup.
var kd = KerbalData.Create(@"C:\KSP");
var kd = KerbalData.Create(@"C:\KSP");