Method | Description | |
---|---|---|
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float | ||
GetModuleCostChangeWhen ( ) : ModifierChangeWhen | ||
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float | ||
GetModuleMassChangeWhen ( ) : ModifierChangeWhen | ||
OnLoad ( |
||
OnSave ( |
||
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 |
Method | Description | |
---|---|---|
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
|
public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float | ||
defaultCost | float | |
sit | ModifierStagingSituation | |
return | float |
public GetModuleCostChangeWhen ( ) : ModifierChangeWhen | ||
return | ModifierChangeWhen |
public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float | ||
defaultMass | float | |
sit | ModifierStagingSituation | |
return | float |
public GetModuleMassChangeWhen ( ) : ModifierChangeWhen | ||
return | ModifierChangeWhen |
public addPresetRatios ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void | ||
container | ContainerDefinition | |
preset | ContainerFuelPreset | |
updateSymmetry | bool | |
return | void |
public containerTypeUpdated ( ContainerDefinition container, ContainerModifier newType, bool updateSymmetry = false ) : void | ||
container | ContainerDefinition | |
newType | ContainerModifier | |
updateSymmetry | bool | |
return | void |
public highestVolumeContainer ( string resourceName ) : ContainerDefinition | ||
resourceName | string | |
return | ContainerDefinition |
public onFuelTypeUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onVolumeUpdated ( float newVolume ) : void | ||
newVolume | float | |
return | void |
public setContainerPercents ( float percents, float totalVolume ) : void | ||
percents | float | |
totalVolume | float | |
return | void |
public setFuelPreset ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void | ||
container | ContainerDefinition | |
preset | ContainerFuelPreset | |
updateSymmetry | bool | |
return | void |
public setResourceFillPercent ( ContainerDefinition def, string resourceName, float newPercent, bool updateSymmetry = false ) : void | ||
def | ContainerDefinition | |
resourceName | string | |
newPercent | float | |
updateSymmetry | bool | |
return | void |
public setResourceRatio ( ContainerDefinition def, string resourceName, int newRatio, bool updateSymmetry = false ) : void | ||
def | ContainerDefinition | |
resourceName | string | |
newRatio | int | |
updateSymmetry | bool | |
return | void |
public subtractPresetRatios ( ContainerDefinition container, ContainerFuelPreset preset, bool updateSymmetry ) : void | ||
container | ContainerDefinition | |
preset | ContainerFuelPreset | |
updateSymmetry | bool | |
return | void |