Class Module_Engine
- Namespace
- KSP.Modules
- Assembly
- Assembly-CSharp.dll
public class Module_Engine : PartBehaviourModule, IPartModule, IFixedUpdate, IPriorityOverride, IUpdate, IObjectAssemblyPartModule, IEngineStatus
- Inheritance
-
Module_Engine
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
Module_Engine()
Fields
Alternator
public Module_Generator Alternator
Field Value
- Module_Generator
FlameoutVFX
public FlameoutVFXData FlameoutVFX
Field Value
- FlameoutVFXData
Gimbal
public Module_Gimbal Gimbal
Field Value
- Module_Gimbal
dataEngine
protected Data_Engine dataEngine
Field Value
- Data_Engine
Properties
ActualThrust
public float ActualThrust { get; }
Property Value
- float
AverageEngineForce
public Data_Engine.EngineForce AverageEngineForce { get; set; }
Property Value
- Data_Engine.EngineForce
CurrentEngineMode
public int CurrentEngineMode { get; }
Property Value
- int
CurrentPropellantState
public PropellantState CurrentPropellantState { get; }
Property Value
- PropellantState
EngineIgnited
public bool EngineIgnited { get; }
Property Value
- bool
IsPropellantStarved
public bool IsPropellantStarved { get; }
Property Value
- bool
PartComponentModuleType
public override Type PartComponentModuleType { get; }
Property Value
- Type
RequestedThrottle
public float RequestedThrottle { get; }
Property Value
- float
ThrustCollisionInfo
public List<Data_Engine.ThrustCollisionInfo> ThrustCollisionInfo { get; }
Property Value
- List<Data_Engine.ThrustCollisionInfo>
ThrustPercentage
public float ThrustPercentage { get; }
Property Value
- float
currentEngineModeData
public Data_Engine.EngineMode currentEngineModeData { get; }
Property Value
- Data_Engine.EngineMode
engineDisplayName
public string engineDisplayName { get; }
Property Value
- string
engineName
public string engineName { get; }
Property Value
- string
isOperational
public bool isOperational { get; }
Property Value
- bool
normalizedOutput
public float normalizedOutput { get; }
Property Value
- float
throttleSetting
public float throttleSetting { get; }
Property Value
- float
Methods
ActivateDeactivateEngine()
public void ActivateDeactivateEngine()
ActivateEngine()
public void ActivateEngine()
ActivateEngine(bool)
public void ActivateEngine(bool mpRemoteActivate)
Parameters
mpRemoteActivate bool
AddDataModules()
protected override void AddDataModules()
ChangeEngineMode()
public void ChangeEngineMode()
ChangeEngineMode(int)
public void ChangeEngineMode(int modeIndex)
Parameters
modeIndex int
protected bool CheckTransformsUnderwater()
Returns
- bool
DeactivateEngine()
public void DeactivateEngine()
DeactivateEngine(bool)
public void DeactivateEngine(bool mpRemoteDeactivate)
Parameters
mpRemoteDeactivate bool
EngineExhaustDamage()
protected virtual void EngineExhaustDamage()
EngineShockWave()
protected virtual void EngineShockWave()
GetModuleDisplayName()
public override string GetModuleDisplayName()
Returns
- string
IndependentThrottleChanged(bool)
public void IndependentThrottleChanged(bool value)
Parameters
value bool
InitAnimator()
public void InitAnimator()
OnAnimStateEnter(Animator, int)
public override void OnAnimStateEnter(Animator animator, int stateMachineHash)
Parameters
animator Animator
stateMachineHash int
OnCenterOfThrustQuery(CenterOfThrustQuery)
public void OnCenterOfThrustQuery(CenterOfThrustQuery qry)
Parameters
qry CenterOfThrustQuery
OnEnable()
protected void OnEnable()
OnInitialize()
protected override void OnInitialize()
OnModuleFixedUpdate(float)
protected override void OnModuleFixedUpdate(float fixedDeltaTime)
Parameters
fixedDeltaTime float
OnModuleOABFixedUpdate(float)
protected override void OnModuleOABFixedUpdate(float deltaTime)
Parameters
deltaTime float
OnRevertToLaunchEventMessage(MessageCenterMessage)
public void OnRevertToLaunchEventMessage(MessageCenterMessage revertMessage)
Parameters
revertMessage MessageCenterMessage
OnShutdown()
protected override void OnShutdown()
OnUpdate(float)
public override void OnUpdate(float deltaTime)
Parameters
deltaTime float
PlayFlameoutFX(bool)
public virtual void PlayFlameoutFX(bool flamingOut)
Parameters
flamingOut bool
SpoolFXUpdate()
protected virtual void SpoolFXUpdate()
StageEngine()
public void StageEngine()
ThermalUpdate(double)
public override void ThermalUpdate(double deltaTime)
Parameters
deltaTime double
ThrustUpdate()
protected virtual void ThrustUpdate()
ToggleStaging(bool)
public void ToggleStaging(bool bValue)
Parameters
bValue bool
UpdateAnimatorToModeChange(int)
public void UpdateAnimatorToModeChange(int modeIndex)
Parameters
modeIndex int
UpdateThrottle()
protected virtual void UpdateThrottle()
UpdateThrustRelativeControlPoint()
protected virtual void UpdateThrustRelativeControlPoint()