C# 클래스 SSTUTools.SSTUModInterop

파일 보기 프로젝트 열기: shadowmage45/SSTULabs 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
FARdebug ( Part part ) : void
isAssemblyLoaded ( String name ) : bool
locateAirlock ( Part part ) : Transform

메소드 상세

addContainerUpdatedCallback() 공개 정적인 메소드

public static addContainerUpdatedCallback ( Action cb ) : void
cb Action
리턴 void

getModuleFuelTanks() 공개 정적인 메소드

public static getModuleFuelTanks ( Part part ) : PartModule
part Part
리턴 PartModule

hasModuleEngineConfigs() 공개 정적인 메소드

public static hasModuleEngineConfigs ( Part part ) : bool
part Part
리턴 bool

hasModuleFuelTanks() 공개 정적인 메소드

public static hasModuleFuelTanks ( Part part ) : bool
part Part
리턴 bool

isFARInstalled() 공개 정적인 메소드

public static isFARInstalled ( ) : bool
리턴 bool

isKISInstalled() 공개 정적인 메소드

public static isKISInstalled ( ) : bool
리턴 bool

isMFTInstalled() 공개 정적인 메소드

public static isMFTInstalled ( ) : bool
리턴 bool

isRFInstalled() 공개 정적인 메소드

public static isRFInstalled ( ) : bool
리턴 bool

onContainerUpdated() 공개 정적인 메소드

public static onContainerUpdated ( SSTUVolumeContainer container ) : void
container SSTUVolumeContainer
리턴 void

onEngineConfigChange() 공개 정적인 메소드

public static onEngineConfigChange ( Part part, String config, float scale ) : void
part Part
config String
scale float
리턴 void

onPartFuelVolumeUpdate() 공개 정적인 메소드

public static onPartFuelVolumeUpdate ( Part part, float liters ) : bool
part Part
liters float
리턴 bool

onPartGeometryUpdate() 공개 정적인 메소드

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
리턴 void

onPartKISInventoryVolumeChanged() 공개 정적인 메소드

public static onPartKISInventoryVolumeChanged ( Part part, float liters ) : void
part Part
liters float
리턴 void

removeContainerUpdatedCallback() 공개 정적인 메소드

public static removeContainerUpdatedCallback ( Action cb ) : void
cb Action
리턴 void

updatePartResourceDisplay() 공개 정적인 메소드

public static updatePartResourceDisplay ( Part part ) : void
part Part
리턴 void