C# Class SSTUTools.SSTUInflatable

Inheritance: PartModule, IPartMassModifier, IPartCostModifier
Show file Open project: shadowmage45/SSTULabs Class Usage Examples

Public Methods

Method Description
GetInfo ( ) : string
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
GetModuleCostChangeWhen ( ) : ModifierChangeWhen
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
GetModuleMassChangeWhen ( ) : ModifierChangeWhen
OnDestroy ( ) : void
OnLoad ( ConfigNode node ) : void
OnStart ( StartState state ) : void
Start ( ) : void

Private Methods

Method Description
consumeResources ( ) : void
deflateEvent ( ) : void
inflateEvent ( ) : void
init ( ) : void
onAnimStateChange ( AnimState newState ) : void
onContainerUpdated ( SSTUVolumeContainer vc ) : void
updateCrewCapacity ( int capacity ) : void

most functioniality derived from TweakScale ScaleCrewCapacity method https://github.com/pellinor0/TweakScale/blob/master/Scale.cs#L279

updateRequiredMass ( ) : void
updateResourceAmounts ( double mult ) : void

Method Details

GetInfo() public method

public GetInfo ( ) : string
return string

GetModuleCost() public method

public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
defaultCost float
sit ModifierStagingSituation
return float

GetModuleCostChangeWhen() public method

public GetModuleCostChangeWhen ( ) : ModifierChangeWhen
return ModifierChangeWhen

GetModuleMass() public method

public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
defaultMass float
sit ModifierStagingSituation
return float

GetModuleMassChangeWhen() public method

public GetModuleMassChangeWhen ( ) : ModifierChangeWhen
return ModifierChangeWhen

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnLoad() public method

public OnLoad ( ConfigNode node ) : void
node ConfigNode
return void

OnStart() public method

public OnStart ( StartState state ) : void
state StartState
return void

Start() public method

public Start ( ) : void
return void