KerbalData Class KerbalData - KSP Data Unlocked!
Top level consumer API class used for accessing and loading KSP data.
Inheritance Hierarchy

Online System Object
  KerbalData KerbalDataManager
    KerbalData KerbalData

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

public class KerbalData : KerbalDataManager
Remarks

Classes starting with the word "Kerbal" are "top level" consumer API's. For most development, this is the easiest way to use KerbalData. The top level API provides the following features:

  • KSP Install Aware
  • Specialized Models with extended properties to translate KSP data to standard formats (TimeSpan for game and mission time for example)
  • Utilizes configured repos allowing for easy integration with multiple data stores
  • Provides lazy loading of data
  • Maintains data used to initialize the object and state can be restored to time of load or last save
  • All operations with the top level API start with a KerbalData instance. This class will maintain all the references necessary. The constructor accepts the root path for a KSP install. Once initialized KerbalData will scan the KSP install and load initial meta-data (currently only names) but not the actual files into memory. KSP files are only serilized and loaded on initial access of pariticular named data. Once loaded the data will be maintained and no additional calls will be made to the data until Save() is called.

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
See Also