Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
IPartMassModifier Interface Reference

Implement this on a Part Module to be able to modify a part's mass More...

Inheritance diagram for IPartMassModifier:
Expansions.Serenity.BaseServo FlagDecalBackground ModuleAsteroid ModuleComet ModuleInventoryPart ModuleJettison ModulePartFirework ModulePartVariants ModuleProceduralFairing PartStatsUpgradeModule

Public Member Functions

float GetModuleMass (float defaultMass, ModifierStagingSituation sit)
 Return the amount to modify the original part's dry mass by. Returned values are added to the base mass. (0 means no effect) More...
 
ModifierChangeWhen GetModuleMassChangeWhen ()
 Return under which circumstances the modulemass changes More...
 

Detailed Description

Implement this on a Part Module to be able to modify a part's mass

Member Function Documentation

float IPartMassModifier.GetModuleMass ( float  defaultMass,
ModifierStagingSituation  sit 
)

Return the amount to modify the original part's dry mass by. Returned values are added to the base mass. (0 means no effect)

Returns

Implemented in PartStatsUpgradeModule, ModuleInventoryPart, Expansions.Serenity.BaseServo, ModuleProceduralFairing, ModulePartFirework, FlagDecalBackground, ModulePartVariants, ModuleJettison, ModuleComet, and ModuleAsteroid.

ModifierChangeWhen IPartMassModifier.GetModuleMassChangeWhen ( )

The documentation for this interface was generated from the following file: