Kerbal Space Program
1.12.4
|
Singleton class which contains compiles various game objects. More...
Public Member Functions | |
void | AddPartReplacement (string oldName, string newName) |
Adds a part replacement entry, relating the old part and the new part names More... | |
List< AvailablePart > | GetAvailableAndPurchaseableCargoParts () |
Returns a list of the currently available (unlocked, not purchased) Cargo Parts. More... | |
List< string > | GetAvailableCargoInventoryPartNames () |
Returns a list of the currently available (unlocked, purchased) Cargo Parts Names. More... | |
List< AvailablePart > | GetAvailableCargoInventoryParts () |
Returns a list of the currently available (unlocked, purchased) Cargo Parts. More... | |
List< string > | GetAvailableCargoPartNames () |
Returns a list of the currently available (unlocked, purchased) Cargo Parts Names. More... | |
List< AvailablePart > | GetAvailableCargoParts () |
Returns a list of the currently available (unlocked, purchased) Cargo Parts. More... | |
List< AvailablePart > | GetAvailableDeployedScienceExpParts () |
Returns a list of the currently available (unlocked, purchased) Deployed Science Experiment Parts. More... | |
List< AvailablePart > | GetAvailableRobotArmScannerParts () |
Returns a list of the currently available (unlocked, purchased) robot arm scanner Parts. More... | |
ConfigNode | GetDatabaseConfig (Part p) |
Finds a config in the part database for the given part More... | |
ConfigNode | GetDatabaseConfig (Part p, string nodeName) |
Finds a config in the part database for the given part with a given subnode name More... | |
override bool | IsReady () |
override float | ProgressFraction () |
override string | ProgressTitle () |
void | SetDatabaseConfig (Part p, ConfigNode newNode) |
Sets a config node for the given part. If the part's database entry already contains a node of that name it will get replaced. More... | |
override void | StartLoad () |
Public Member Functions inherited from LoadingSystem | |
virtual float | LoadWeight () |
Static Public Member Functions | |
static bool | ApplyPartValue (Part part, ConfigNode.Value nodeValue) |
static bool | DoesPartExist (string name) |
Search for an part reference by part name to see if it exists More... | |
static bool | DoesPartHaveReplacement (string name) |
Search for a part replacement for the given part More... | |
static InternalModel | GetInternalPart (string name) |
Returns an InternalModel by name, null if not found More... | |
static InternalProp | GetInternalProp (string name) |
Returns an InternalProp by name, null if not found More... | |
static AvailablePart | getPartInfoByIconPrefab (GameObject iconPrefab) |
Search for an AvailablePart reference by icon prefab More... | |
static AvailablePart | getPartInfoByName (string name) |
Search for an AvailablePart reference by part name More... | |
static AvailablePart | getPartInfoByPartPrefab (GameObject partPrefab) |
Search for an AvailablePart reference by part prefab More... | |
static string | GetPartReplacementName (string oldName) |
Returns the new part name for a replaced part More... | |
static AvailableVariantTheme | GetVariantInfoByName (string variantName) |
static void | StripComponent< T > (GameObject part) |
static void | StripComponent< T > (GameObject part, string tag, bool parseChildren=false) |
static void | StripGameObject< T > (GameObject part, string name) |
static void | StripTaggedTransforms (Transform root, string tag) |
Public Attributes | |
List< InternalModel > | internalParts |
List of loaded internal models More... | |
List< InternalProp > | internalProps = new List<InternalProp>() |
List of loaded internal props More... | |
List< AvailablePart > | loadedParts |
The list of loaded parts More... | |
List< AvailableVariantTheme > | loadedVariantThemes |
The list of possible variants - keyed by name More... | |
List< AvailablePart > | parts |
Properties | |
bool | CargoPartsLoaded [get] |
True if at least one cargo part was loaded and is present in the game session. Which will affect the default Cargo tab display in editor and Kerbal Inventories display in the PAW. More... | |
static PartLoader | Instance [get, set] |
Singleton instance More... | |
static List< AvailablePart > | LoadedPartsList [get] |
static List < AvailableVariantTheme > | LoadedVariantThemesList [get] |
The list of variant themse loaded from CFGs More... | |
bool | Recompile [get, set] |
Singleton class which contains compiles various game objects.
|
inline |
Adds a part replacement entry, relating the old part and the new part names
|
inlinestatic |
< parse everything else
< parse fx node definitions
< apply sound effects on fx groups
< apply type-parseable parameters
|
inlinestatic |
Search for an part reference by part name to see if it exists
name | the name of the part you're looking for |
|
inlinestatic |
Search for a part replacement for the given part
name | the name of the part you're looking to replace |
|
inline |
Returns a list of the currently available (unlocked, not purchased) Cargo Parts.
|
inline |
Returns a list of the currently available (unlocked, purchased) Cargo Parts Names.
|
inline |
Returns a list of the currently available (unlocked, purchased) Cargo Parts.
|
inline |
Returns a list of the currently available (unlocked, purchased) Cargo Parts Names.
|
inline |
Returns a list of the currently available (unlocked, purchased) Cargo Parts.
|
inline |
Returns a list of the currently available (unlocked, purchased) Deployed Science Experiment Parts.
|
inline |
Returns a list of the currently available (unlocked, purchased) robot arm scanner Parts.
|
inline |
Finds a config in the part database for the given part
|
inline |
Finds a config in the part database for the given part with a given subnode name
|
inlinestatic |
|
inlinestatic |
Returns an InternalProp by name, null if not found
|
inlinestatic |
Search for an AvailablePart reference by icon prefab
iconPrefab | the icon prefab on your end |
|
inlinestatic |
Search for an AvailablePart reference by part name
name | the name of the part you're looking for |
|
inlinestatic |
Search for an AvailablePart reference by part prefab
partPrefab | the part prefab on your end |
|
inlinestatic |
Returns the new part name for a replaced part
oldName | the name of the part you're looking to replace |
|
inlinestatic |
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inline |
Sets a config node for the given part. If the part's database entry already contains a node of that name it will get replaced.
|
inlinevirtual |
Reimplemented from LoadingSystem.
|
inlinestatic |
T | : | Component |
|
inlinestatic |
T | : | Component |
|
inlinestatic |
T | : | Component |
|
inlinestatic |
List<InternalModel> PartLoader.internalParts |
List of loaded internal models
List<InternalProp> PartLoader.internalProps = new List<InternalProp>() |
List of loaded internal props
List<AvailablePart> PartLoader.loadedParts |
The list of loaded parts
List<AvailableVariantTheme> PartLoader.loadedVariantThemes |
The list of possible variants - keyed by name
List<AvailablePart> PartLoader.parts |
|
get |
True if at least one cargo part was loaded and is present in the game session. Which will affect the default Cargo tab display in editor and Kerbal Inventories display in the PAW.
|
staticgetset |
Singleton instance
|
staticget |
|
staticget |
The list of variant themse loaded from CFGs
ThemeNames with no cfg data are recorded as the name of the theme with an unknown description
|
getset |