C# Class SSTUTools.SSTUProceduralDecoupler

Inheritance: ModuleDecouple, IPartCostModifier, IPartMassModifier
Show file Open project: shadowmage45/SSTULabs

Public Methods

Method Description
GetInfo ( ) : string
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
GetModuleCostChangeWhen ( ) : ModifierChangeWhen
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
GetModuleMassChangeWhen ( ) : ModifierChangeWhen
OnLoad ( ConfigNode node ) : void
OnStart ( PartModule state ) : void
Start ( ) : void
onColliderUpdated ( BaseField field, object obj ) : void
onDiameterUpdated ( BaseField field, object obj ) : void
onHeightUpdated ( BaseField field, object obj ) : void
onTextureUpdated ( BaseField field, object obj ) : void
onThicknessUpdated ( BaseField field, object obj ) : void
prepModel ( ) : void
recreateModel ( ) : void
updateAttachNodePositions ( bool userInput ) : void
updateEditorFields ( ) : void
updatePhysicalAttributes ( ) : void

Private Methods

Method Description
loadConfigData ( ) : void
setDiameterFromEditor ( float newDiameter, bool updateSymmetry ) : void
setHeightFromEditor ( float newHeight, bool updateSymmetry ) : void
setModelParameters ( ) : void
setTextureFromEditor ( String newTexture, bool updateSymmetry ) : void
setThicknessFromEditor ( float newThickness, bool updateSymmetry ) : void
updateDecouplerForce ( ) : 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

OnLoad() public method

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

OnStart() public method

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

Start() public method

public Start ( ) : void
return void

onColliderUpdated() public method

public onColliderUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

onDiameterUpdated() public method

public onDiameterUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

onHeightUpdated() public method

public onHeightUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

onTextureUpdated() public method

public onTextureUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

onThicknessUpdated() public method

public onThicknessUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

prepModel() public method

public prepModel ( ) : void
return void

recreateModel() public method

public recreateModel ( ) : void
return void

updateAttachNodePositions() public method

public updateAttachNodePositions ( bool userInput ) : void
userInput bool
return void

updateEditorFields() public method

public updateEditorFields ( ) : void
return void

updatePhysicalAttributes() public method

public updatePhysicalAttributes ( ) : void
return void