C# Class SSTUTools.SSTUModInterop

Afficher le fichier Open project: shadowmage45/SSTULabs Class Usage Examples

Méthodes publiques

Méthode Description
addContainerUpdatedCallback ( Action cb ) : void
getModuleFuelTanks ( Part part ) : PartModule
hasModuleEngineConfigs ( Part part ) : bool
hasModuleFuelTanks ( Part part ) : bool
isFARInstalled ( ) : bool
isKISInstalled ( ) : bool
isMFTInstalled ( ) : bool
isRFInstalled ( ) : bool
onContainerUpdated ( SSTUVolumeContainer container ) : void
onEngineConfigChange ( Part part, String config, float scale ) : void
onPartFuelVolumeUpdate ( Part part, float liters ) : bool
onPartGeometryUpdate ( Part part, bool createDefaultCube ) : void

Updates part highlight renderer list, sends message to SSTUFlagDecal to update its renderer, sends message to FAR to update voxels, or if createDefaultCube==true will re-render the 'default' stock drag cube for the part Should be called anytime the model geometry in a part is changed -- either models added/deleted, procedural meshes updated. Other methods exist for pure drag-cube updating in SSTUStockInterop.

onPartKISInventoryVolumeChanged ( Part part, float liters ) : void
removeContainerUpdatedCallback ( Action cb ) : void
updatePartResourceDisplay ( Part part ) : void

Private Methods

Méthode Description
FARdebug ( Part part ) : void
isAssemblyLoaded ( String name ) : bool
locateAirlock ( Part part ) : Transform

Method Details

addContainerUpdatedCallback() public static méthode

public static addContainerUpdatedCallback ( Action cb ) : void
cb Action
Résultat void

getModuleFuelTanks() public static méthode

public static getModuleFuelTanks ( Part part ) : PartModule
part Part
Résultat PartModule

hasModuleEngineConfigs() public static méthode

public static hasModuleEngineConfigs ( Part part ) : bool
part Part
Résultat bool

hasModuleFuelTanks() public static méthode

public static hasModuleFuelTanks ( Part part ) : bool
part Part
Résultat bool

isFARInstalled() public static méthode

public static isFARInstalled ( ) : bool
Résultat bool

isKISInstalled() public static méthode

public static isKISInstalled ( ) : bool
Résultat bool

isMFTInstalled() public static méthode

public static isMFTInstalled ( ) : bool
Résultat bool

isRFInstalled() public static méthode

public static isRFInstalled ( ) : bool
Résultat bool

onContainerUpdated() public static méthode

public static onContainerUpdated ( SSTUVolumeContainer container ) : void
container SSTUVolumeContainer
Résultat void

onEngineConfigChange() public static méthode

public static onEngineConfigChange ( Part part, String config, float scale ) : void
part Part
config String
scale float
Résultat void

onPartFuelVolumeUpdate() public static méthode

public static onPartFuelVolumeUpdate ( Part part, float liters ) : bool
part Part
liters float
Résultat bool

onPartGeometryUpdate() public static méthode

Updates part highlight renderer list, sends message to SSTUFlagDecal to update its renderer, sends message to FAR to update voxels, or if createDefaultCube==true will re-render the 'default' stock drag cube for the part Should be called anytime the model geometry in a part is changed -- either models added/deleted, procedural meshes updated. Other methods exist for pure drag-cube updating in SSTUStockInterop.
public static onPartGeometryUpdate ( Part part, bool createDefaultCube ) : void
part Part
createDefaultCube bool
Résultat void

onPartKISInventoryVolumeChanged() public static méthode

public static onPartKISInventoryVolumeChanged ( Part part, float liters ) : void
part Part
liters float
Résultat void

removeContainerUpdatedCallback() public static méthode

public static removeContainerUpdatedCallback ( Action cb ) : void
cb Action
Résultat void

updatePartResourceDisplay() public static méthode

public static updatePartResourceDisplay ( Part part ) : void
part Part
Résultat void