C# 클래스 SSTUTools.SSTUVolumeContainer

상속: PartModule, IPartCostModifier, IPartMassModifier
파일 보기 프로젝트 열기: shadowmage45/SSTULabs 1 사용 예제들

공개 메소드들

메소드 설명
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
GetModuleCostChangeWhen ( ) : ModifierChangeWhen
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
GetModuleMassChangeWhen ( ) : ModifierChangeWhen
OnLoad ( ConfigNode node ) : void
OnSave ( ConfigNode node ) : void
OnStart ( StartState state ) : void
Start ( ) : void
addPresetRatios ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void
closeGUI ( ) : void
containerTypeUpdated ( ContainerDefinition container, ContainerModifier newType, bool updateSymmetry = false ) : void
highestVolumeContainer ( string resourceName ) : ContainerDefinition
onFuelTypeUpdated ( BaseField field, object obj ) : void
onVolumeUpdated ( float newVolume ) : void
setContainerPercents ( float percents, float totalVolume ) : void
setFuelPreset ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void
setResourceFillPercent ( ContainerDefinition def, string resourceName, float newPercent, bool updateSymmetry = false ) : void
setResourceRatio ( ContainerDefinition def, string resourceName, int newRatio, bool updateSymmetry = false ) : void
subtractPresetRatios ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void

비공개 메소드들

메소드 설명
OnGUI ( ) : void
getBaseContainer ( ) : ContainerDefinition
getContainer ( string name ) : ContainerDefinition
loadConfigData ( ) : void
openGUI ( ) : void
openGUIEvent ( ) : void
setSingleFuelType ( string presetName, bool updateSymmetry ) : void
updateContainerVolumes ( ) : void

Update sub-containers volume data for the current total part volume

updateFuelSelections ( ) : void

Update the available GUI fuel type selection values for the current container setup

updateKISVolume ( ) : void
updateMassAndCost ( ) : void

Update cached mass and cost values from container calculated data

updatePartStats ( ) : void

Update part impact tolerance and max temp stats based on first containers modifier values and part prefab values

updatePersistentData ( ) : void
updateTankResources ( ) : void

Update the resources for the part from the resources in the currently configured containers

메소드 상세

GetModuleCost() 공개 메소드

public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
defaultCost float
sit ModifierStagingSituation
리턴 float

GetModuleCostChangeWhen() 공개 메소드

public GetModuleCostChangeWhen ( ) : ModifierChangeWhen
리턴 ModifierChangeWhen

GetModuleMass() 공개 메소드

public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
defaultMass float
sit ModifierStagingSituation
리턴 float

GetModuleMassChangeWhen() 공개 메소드

public GetModuleMassChangeWhen ( ) : ModifierChangeWhen
리턴 ModifierChangeWhen

OnLoad() 공개 메소드

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
리턴 void

OnSave() 공개 메소드

public OnSave ( ConfigNode node ) : void
node System.ConfigNode
리턴 void

OnStart() 공개 메소드

public OnStart ( StartState state ) : void
state StartState
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

addPresetRatios() 공개 메소드

public addPresetRatios ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void
container ContainerDefinition
preset ContainerFuelPreset
updateSymmetry bool
리턴 void

closeGUI() 공개 메소드

public closeGUI ( ) : void
리턴 void

containerTypeUpdated() 공개 메소드

public containerTypeUpdated ( ContainerDefinition container, ContainerModifier newType, bool updateSymmetry = false ) : void
container ContainerDefinition
newType ContainerModifier
updateSymmetry bool
리턴 void

highestVolumeContainer() 공개 메소드

public highestVolumeContainer ( string resourceName ) : ContainerDefinition
resourceName string
리턴 ContainerDefinition

onFuelTypeUpdated() 공개 메소드

public onFuelTypeUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

onVolumeUpdated() 공개 메소드

public onVolumeUpdated ( float newVolume ) : void
newVolume float
리턴 void

setContainerPercents() 공개 메소드

public setContainerPercents ( float percents, float totalVolume ) : void
percents float
totalVolume float
리턴 void

setFuelPreset() 공개 메소드

public setFuelPreset ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void
container ContainerDefinition
preset ContainerFuelPreset
updateSymmetry bool
리턴 void

setResourceFillPercent() 공개 메소드

public setResourceFillPercent ( ContainerDefinition def, string resourceName, float newPercent, bool updateSymmetry = false ) : void
def ContainerDefinition
resourceName string
newPercent float
updateSymmetry bool
리턴 void

setResourceRatio() 공개 메소드

public setResourceRatio ( ContainerDefinition def, string resourceName, int newRatio, bool updateSymmetry = false ) : void
def ContainerDefinition
resourceName string
newRatio int
updateSymmetry bool
리턴 void

subtractPresetRatios() 공개 메소드

public subtractPresetRatios ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void
container ContainerDefinition
preset ContainerFuelPreset
updateSymmetry bool
리턴 void