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
IPartCostModifier Interface Reference

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

Inheritance diagram for IPartCostModifier:
Expansions.Serenity.BaseServo FlagDecalBackground ModuleInventoryPart ModulePartVariants ModuleProceduralFairing PartStatsUpgradeModule Expansions.Serenity.ModuleRoboticRotationServo Expansions.Serenity.ModuleRoboticServoHinge Expansions.Serenity.ModuleRoboticServoPiston Expansions.Serenity.ModuleRoboticServoRotor

Public Member Functions

float GetModuleCost (float defaultCost, ModifierStagingSituation sit)
 Return the amount to modify the original part's dry cost by. Returned values are added to the base cost. (0 means no effect) More...
 
ModifierChangeWhen GetModuleCostChangeWhen ()
 Return under which circumstances the modulecost changes More...
 

Detailed Description

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

Member Function Documentation

float IPartCostModifier.GetModuleCost ( float  defaultCost,
ModifierStagingSituation  sit 
)

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

Returns

Implemented in PartStatsUpgradeModule, ModuleInventoryPart, Expansions.Serenity.BaseServo, ModuleProceduralFairing, FlagDecalBackground, and ModulePartVariants.

ModifierChangeWhen IPartCostModifier.GetModuleCostChangeWhen ( )

Return under which circumstances the modulecost changes

Returns

Implemented in PartStatsUpgradeModule, ModuleInventoryPart, Expansions.Serenity.BaseServo, ModuleProceduralFairing, FlagDecalBackground, and ModulePartVariants.


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