Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

PartsProvider

From Kerbal Space Program 2 Modding Wiki
Revision as of 23:48, 21 May 2023 by Spacewarp>LuxStice (Created page with "== KSP.Game.'''PartProvider''' == === '''GameManager.Instance.Game.Parts''' === This class is the main provider for anything related to parts definitions and data. ==== AddPartData(''KSP.Sim.Definitions.''PartCore jsonData, System.string rawJson) ==== This method is used to add parts to the '''PartProvider'''. It asks for a PartCore and a raw json (from the same part core provided). * '''jsonData -''' This argument requires a part core which is a class defining ''almo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

KSP.Game.PartProvider

GameManager.Instance.Game.Parts

This class is the main provider for anything related to parts definitions and data.

AddPartData(KSP.Sim.Definitions.PartCore jsonData, System.string rawJson)

This method is used to add parts to the PartProvider. It asks for a PartCore and a raw json (from the same part core provided).

  • jsonData - This argument requires a part core which is a class defining almost all the part's data. Including all modules.
  • rawJson - This argument requires a json equivalent to the jsonData provided. It should match exactly what you provide on the first argument.

Tips and Tricks: