Kerbal Space Program
1.12.4
|
Implement this on a Part Module to be able to modify a part's mass More...
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... | |
Implement this on a Part Module to be able to modify a part's mass
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)
Implemented in PartStatsUpgradeModule, ModuleInventoryPart, Expansions.Serenity.BaseServo, ModuleProceduralFairing, ModulePartFirework, FlagDecalBackground, ModulePartVariants, ModuleJettison, ModuleComet, and ModuleAsteroid.
ModifierChangeWhen IPartMassModifier.GetModuleMassChangeWhen | ( | ) |
Return under which circumstances the modulemass changes
Implemented in PartStatsUpgradeModule, ModuleInventoryPart, Expansions.Serenity.BaseServo, ModuleProceduralFairing, ModulePartFirework, FlagDecalBackground, ModulePartVariants, ModuleJettison, ModuleComet, and ModuleAsteroid.