Skip to content

Latest commit

 

History

History
44 lines (39 loc) · 3.88 KB

KSP.md

File metadata and controls

44 lines (39 loc) · 3.88 KB

[Unsafe] KSP

Unsafe KSP API - see CommonScriptApi

Types:

  • Time: Time - UnityEngine.Time
  • Random: Random - UnityEngine.Random
  • Mathf: Mathf - UnityEngine.Mathf
  • Vessel: Vessel - KSP API: Vessel (class).
  • VesselType: VesselType - KSP API: Vessel Type (enum).
  • FlightCtrlState: FlightCtrlState - KSP API: Flight Control State (class for fly-by-wire/autopilot).
  • StageManager: StageManager - KSP API: Staging logic.
  • GameScenes: GameScenes - KSP API: Game scenes (enum).
  • EditorLogic: EditorLogic - KSP API: For use in editor (VAB/SPH).
  • EditorPanels: EditorPanels - KSP API
  • ShipConstruction: ShipConstruction - KSP API
  • PartLoader: PartLoader - KSP API
  • InputLockManager: InputLockManager - KSP API: For locking input.
  • InputLock: InputLockManager - Alias to InputLockManager.
  • GameSettings: GameSettings - KSP API: Various KSP settings.
  • GameEvents: GameEvents - KSP API: Various KSP events.
  • AssemblyLoader: AssemblyLoader - KSP API: Assembly loader, list of assemblies and types.
  • ScienceUtil: ScienceUtil - KSP API: Science utilities.
  • ExperimentSituations: ExperimentSituations - KSP API: Experiment situation flags.

Static Fields:

  • Scalar: Scalar - Math utilities.
  • Vec: Vec - Vector utilities.

Static Properties:

  • bodies: BodiesDictionary - A map of planet names to planet bodies. (Unsafe API)
  • FlightGlobals: FlightGlobals - KSP API: Flight Globals (for autopilot).
  • FlightControl: FlightControl - Custom autopilot.
  • FlightDriver: FlightDriver - KSP API
  • HighLogic: HighLogic - KSP API: LoadedScene indicator and other global state.
  • CurrentGame: Game - KSP API: State of the game.
  • GameParameters: GameParameters - KSP API: Parameters of the game.
  • Career: CareerParams - KSP API: Career parameters.
  • PartResourceLibrary: PartResourceLibrary - KSP API
  • GameVariables: GameVariables - KSP API: Various KSP variables.
  • GameDatabase: GameDatabase - KSP API
  • ResearchAndDevelopment: ResearchAndDevelopment - KSP API: Science stuff.
  • RnD: ResearchAndDevelopment - KSP API: Science stuff.