C# Class SSTUTools.SSTUInflatable

Inheritance: PartModule, IPartMassModifier, IPartCostModifier
Afficher le fichier Open project: shadowmage45/SSTULabs Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetInfo ( ) : string
Résultat string

GetModuleCost() public méthode

public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
defaultCost float
sit ModifierStagingSituation
Résultat float

GetModuleCostChangeWhen() public méthode

public GetModuleCostChangeWhen ( ) : ModifierChangeWhen
Résultat ModifierChangeWhen

GetModuleMass() public méthode

public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
defaultMass float
sit ModifierStagingSituation
Résultat float

GetModuleMassChangeWhen() public méthode

public GetModuleMassChangeWhen ( ) : ModifierChangeWhen
Résultat ModifierChangeWhen

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnLoad() public méthode

public OnLoad ( ConfigNode node ) : void
node ConfigNode
Résultat void

OnStart() public méthode

public OnStart ( StartState state ) : void
state StartState
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void