C# Класс SSTUTools.SSTUModularBooster

Наследование: PartModule
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
GetModuleCostChangeWhen ( ) : ModifierChangeWhen
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
GetModuleMassChangeWhen ( ) : ModifierChangeWhen
OnDestroy ( ) : void
OnGUI ( ) : void
OnLoad ( ConfigNode node ) : void
OnSave ( ConfigNode node ) : void
OnStart ( StartState state ) : void
Start ( ) : void
closeGui ( FloatCurve editorCurve, string preset ) : void
onBodyUpdated ( BaseField field, object obj ) : void
onDiameterUpdated ( BaseField field, object obj ) : void
onEditorShipModified ( ShipConstruct ship ) : void
onGimbalUpdated ( BaseField field, object obj ) : void
onMainTextureUpdated ( BaseField field, object obj ) : void
onNoseTextureUpdated ( BaseField field, object obj ) : void
onNoseUpdated ( BaseField field, object obj ) : void
onNozzleTextureUpdated ( BaseField field, object obj ) : void
onNozzleUpdated ( BaseField field, object obj ) : void

Приватные методы

Метод Описание
editThrustCurveEvent ( ) : void
initiaizePrefab ( ) : void

Initializes thrust transforms for the part; should only be called during prefab init. Transforms will then be cloned into live model as-is.

initialize ( ) : void

Initializes all modules and variables for this PartModule

loadConfigNodeData ( ) : void

Loads the current configuration from the cached persistent config node data

resetTransformParents ( ) : void

Utility method to -temporarily- reset the parent of the thrust transform to the parts base model transform.

This should be used before deleting a nozzle/mount model to keep the same thrust transform object in use, and the transforms should subsequently be re-parented to thier proper hierarchy after the new/updated model/module is initialized.

selectNoseEvent ( ) : void
updateAttachnodes ( bool userInput ) : void

Update attach node positions and optionally update the parts attached to those nodes if userInput==true

updateContainerVolume ( ) : void

Update the volume of resources that are available in the part, based on the currently selected models and scales

updateCurvePersistentData ( ) : void

Update the persistent representation of the custom thrust curve for this engine and store it as a string so it will be serialized into the part/craft persistence file

updateDiameterFromEditor ( float newDiameter, bool updateSymmetry ) : void

Updates the current model scales from user input in the editor

updateEditorValues ( ) : void

Update the editor values for whole and partial increments based on the current setup parameters. Ensures that pressing the ++/-- buttom with a parital increment selected will carry that increment over or zero it out if is out of bounds. Also allows for non-whole increments to be used for min and max values for the adjusted parameters

updateEffectsScale ( ) : void
updateEngineGuiStats ( ) : void
updateEngineISP ( ) : void

Update the engine ISP based on the currently selected nozzle mode (atmo or vacuum specialized)

updateGimbalOffset ( ) : void

Updates the current gimbal transform angle and the gimbal modules range values to the values for the current nozzle module

updateGimbalOffsetFromEditor ( float newOffset, bool updateSymmetry ) : void
updateGui ( ) : void

Updates GUI fields for diameter/height/etc

updateMainModelFromEditor ( String newModel, bool updateSymmetry ) : void

Updates the main-segment model from user input in the editor

updateMainTextureFromEditor ( String newTex, bool updateSymmetry ) : void
updateModelScaleAndPosition ( ) : void

Updates the rendering scale and position for the currently enabled modules

updateMountFromEditor ( String newMount, bool updateSymmetry ) : void

Updates the mount module from user input in the editor

updateNoseFromEditor ( String newNose, bool updateSymmetry ) : void

Update the nose module from user input in the editor

updateNoseTextureFromEditor ( String newTex, bool updateSymmetry ) : void
updateNozzleTextureFromEditor ( String newTex, bool updateSymmetry ) : void
updatePartCost ( ) : void
updatePartMass ( ) : void

Update the mass of the part (and real-fuels/MFT volume) based on the currently selected models and scales

updateTextureSets ( ) : void
updateThrustOutput ( ) : void

Update the engines min and max thrust values based on the currently selected main tank segment

Описание методов

GetModuleCost() публичный Метод

public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
defaultCost float
sit ModifierStagingSituation
Результат float

GetModuleCostChangeWhen() публичный Метод

public GetModuleCostChangeWhen ( ) : ModifierChangeWhen
Результат ModifierChangeWhen

GetModuleMass() публичный Метод

public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
defaultMass float
sit ModifierStagingSituation
Результат float

GetModuleMassChangeWhen() публичный Метод

public GetModuleMassChangeWhen ( ) : ModifierChangeWhen
Результат ModifierChangeWhen

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

OnGUI() публичный Метод

public OnGUI ( ) : void
Результат void

OnLoad() публичный Метод

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
Результат void

OnSave() публичный Метод

public OnSave ( ConfigNode node ) : void
node System.ConfigNode
Результат void

OnStart() публичный Метод

public OnStart ( StartState state ) : void
state StartState
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

closeGui() публичный Метод

public closeGui ( FloatCurve editorCurve, string preset ) : void
editorCurve FloatCurve
preset string
Результат void

onBodyUpdated() публичный Метод

public onBodyUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void

onDiameterUpdated() публичный Метод

public onDiameterUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void

onEditorShipModified() публичный Метод

public onEditorShipModified ( ShipConstruct ship ) : void
ship ShipConstruct
Результат void

onGimbalUpdated() публичный Метод

public onGimbalUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void

onMainTextureUpdated() публичный Метод

public onMainTextureUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void

onNoseTextureUpdated() публичный Метод

public onNoseTextureUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void

onNoseUpdated() публичный Метод

public onNoseUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void

onNozzleTextureUpdated() публичный Метод

public onNozzleTextureUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void

onNozzleUpdated() публичный Метод

public onNozzleUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
Результат void