Class Data_Engine
- Namespace
- KSP.Modules
- Assembly
- Assembly-CSharp.dll
public sealed class Data_Engine : ModuleData
- Inheritance
-
Data_Engine
- Inherited Members
-
- Extension Methods
-
Constructors
Data_Engine()
Fields
DeployedModeAnimationStateShortName
[KSPDefinition]
public string DeployedModeAnimationStateShortName
Field Value
- string
EmissiveLerpRateDown
[KSPDefinition]
public float EmissiveLerpRateDown
Field Value
- float
EmissiveLerpRateUp
[KSPDefinition]
public float EmissiveLerpRateUp
Field Value
- float
EmissiveMaterialNames
[KSPDefinition]
public List<string> EmissiveMaterialNames
Field Value
- List<string>
EmissiveTemperatureCurve
[KSPDefinition]
public FloatCurve EmissiveTemperatureCurve
Field Value
- FloatCurve
EngineAutoSwitchMode
[PAMDisplayControl(SortIndex = 4)]
[LocalizedField("PartModules/Engine/AutoSwitch")]
[KSPState]
public ModuleProperty<bool> EngineAutoSwitchMode
Field Value
- ModuleProperty<bool>
EngineChangingToMode
[KSPState(CopyToSymmetrySet = false)]
public int EngineChangingToMode
Field Value
- int
EngineIgnited
[KSPState]
public bool EngineIgnited
Field Value
- bool
EngineModeString
[LocalizedField("PartModules/Engine/EngineMode")]
[PAMDisplayControl(SortIndex = 3)]
[KSPState]
public ModuleProperty<string> EngineModeString
Field Value
- ModuleProperty<string>
EngineShutdown
[KSPState]
public bool EngineShutdown
Field Value
- bool
EngineSpool
[KSPState]
public float EngineSpool
Field Value
- float
EngineStatePriorChangeMode
[KSPState(CopyToSymmetrySet = false)]
public EngineState EngineStatePriorChangeMode
Field Value
- EngineState
FinalThrustValue
public float FinalThrustValue
Field Value
- float
Flameout
[KSPState]
public bool Flameout
Field Value
- bool
FlowMultiplier
public float FlowMultiplier
Field Value
- float
HeatProduced
[PAMDisplayControl(SortIndex = 9)]
[LocalizedField("PartModules/Engine/EngineHeat")]
[KSPState]
public ModuleProperty<float> HeatProduced
Field Value
- ModuleProperty<float>
IndependentThrottle
[LocalizedField("PartModules/Engine/IndependentThrottle")]
[KSPState(CopyToSymmetrySet = true)]
[PAMDisplayControl(SortIndex = 12)]
public ModuleProperty<bool> IndependentThrottle
Field Value
- ModuleProperty<bool>
IndependentThrottlePercentage
[SteppedRange(0, 100, 1)]
[KSPState(CopyToSymmetrySet = true)]
[LocalizedField("PartModules/Engine/EngineThrottle")]
[PAMDisplayControl(SortIndex = 13)]
public ModuleProperty<float> IndependentThrottlePercentage
Field Value
- ModuleProperty<float>
IsPropellantStarved
public bool IsPropellantStarved
Field Value
- bool
IsUnderwater
Field Value
- bool
MaxFuelFlow
Field Value
- float
MinFuelFlow
Field Value
- float
PropellantStates
public List<PropellantState> PropellantStates
Field Value
- List<PropellantState>
RealISPValue
public float RealISPValue
Field Value
- float
RequestedMassFlow
public float RequestedMassFlow
Field Value
- float
RequestedThrottle
public float RequestedThrottle
Field Value
- float
ResultingThrust
public float ResultingThrust
Field Value
- float
StatusISPString
[KSPState]
[LocalizedField("PartModules/Engine/EngineISP")]
[PAMDisplayControl(SortIndex = 2)]
public ModuleProperty<float> StatusISPString
Field Value
- ModuleProperty<float>
StatusString
[KSPState]
[PAMDisplayControl(SortIndex = 1)]
[LocalizedField("PartModules/Engine/EngineStatus")]
public ModuleProperty<string> StatusString
Field Value
- ModuleProperty<string>
ThrottleMin
Field Value
- float
ThrustDirRelativePartWorldSpace
[KSPState]
public Vector3 ThrustDirRelativePartWorldSpace
Field Value
- Vector3
UseEmissive
[KSPDefinition]
public bool UseEmissive
Field Value
- bool
activeEngineMode
[LocalizedField("PartModules/Engine/EngineMode")]
[KSPState(CopyToSymmetrySet = true)]
[PAMDisplayControl(SortIndex = 2)]
public ModuleProperty<string> activeEngineMode
Field Value
- ModuleProperty<string>
currentEngineModeIndex
[KSPState]
public int currentEngineModeIndex
Field Value
- int
currentThrottle
[KSPState]
public float currentThrottle
Field Value
- float
engineModes
[KSPDefinition]
public Data_Engine.EngineMode[] engineModes
Field Value
- EngineMode[]
staged
[KSPState]
public bool staged
Field Value
- bool
stagingOn
[LocalizedField("PartModules/Engine/EngineStaging")]
[KSPState]
[PAMDisplayControl(SortIndex = 11)]
public ModuleProperty<bool> stagingOn
Field Value
- ModuleProperty<bool>
thrustCurveDisplay
[KSPState]
public float thrustCurveDisplay
Field Value
- float
thrustCurveRatio
[KSPState]
public float thrustCurveRatio
Field Value
- float
thrustPercentage
[SteppedRange(0, 100, 1)]
[KSPState(CopyToSymmetrySet = true)]
[PAMDisplayControl(SortIndex = 7)]
[LocalizedField("PartModules/Engine/EngineThrustLimiter")]
public ModuleProperty<float> thrustPercentage
Field Value
- ModuleProperty<float>
Properties
CurrentPropellantState
public PropellantState CurrentPropellantState { get; }
Property Value
- PropellantState
IsOperational
public bool IsOperational { get; }
Property Value
- bool
ModuleType
public override Type ModuleType { get; }
Property Value
- Type
State
public EngineState State { get; }
Property Value
- EngineState
currentEngineModeData
public Data_Engine.EngineMode currentEngineModeData { get; }
Property Value
- Data_Engine.EngineMode
Methods
GetHeatString(object)
public static string GetHeatString(object valueObj)
Parameters
valueObj object
Returns
- string
GetISPString(object)
public static string GetISPString(object valueObj)
Parameters
valueObj object
Returns
- string
GetIndependentThrottlePercentageString(object)
public static string GetIndependentThrottlePercentageString(object valueObj)
Parameters
valueObj object
Returns
- string
GetIndependentThrottleString(object)
public static string GetIndependentThrottleString(object valueObj)
Parameters
valueObj object
Returns
- string
GetLimiterString(object)
public static string GetLimiterString(object valueObj)
Parameters
valueObj object
Returns
- string
GetThrottlingMult(float)
public float GetThrottlingMult(float atm)
Parameters
atm float
Returns
- float
MaxThrustOutputAtm(bool, bool, double, double, double, float)
public float MaxThrustOutputAtm(bool runningActive = false, bool useThrustLimiter = true, double atmPressure = 1, double atmTemp = 310, double atmDensity = 1.225000023841858, float machNumber = 0)
Parameters
runningActive bool
useThrustLimiter bool
atmPressure double
atmTemp double
atmDensity double
machNumber float
Returns
- float
MaxThrustOutputVac(bool)
public float MaxThrustOutputVac(bool useThrustLimiter = true)
Parameters
useThrustLimiter bool
Returns
- float
SetConsumptionRate()
public void SetConsumptionRate()
SetupMixtures(IGGuid, ResourceFlowRequestBroker, IResourceContainer[])
public void SetupMixtures(IGGuid guid, ResourceFlowRequestBroker resourceFlowRequestBroker, IResourceContainer[] resourceContainer)
Parameters
guid IGGuid
resourceFlowRequestBroker ResourceFlowRequestBroker
resourceContainer IResourceContainer[]