Class VesselDeltaVComponent
- Namespace
- KSP.Sim.DeltaV
- Assembly
- Assembly-CSharp.dll
public class VesselDeltaVComponent : ObjectComponent, IGuidIdentity
- Inheritance
-
VesselDeltaVComponent
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
VesselDeltaVComponent()
public VesselDeltaVComponent()
VesselDeltaVComponent(ObjectAssembly)
public VesselDeltaVComponent(ObjectAssembly shipRef)
Parameters
shipRef ObjectAssembly
VesselDeltaVComponent(SimulationObjectModel, PartOwnerComponent)
public VesselDeltaVComponent(SimulationObjectModel simObject, PartOwnerComponent vesselRef)
Parameters
simObject SimulationObjectModel
vesselRef PartOwnerComponent
Fields
DELTAV_ACTIVE_STAGE_UPDATE_SECS
public const float DELTAV_ACTIVE_STAGE_UPDATE_SECS = 0.2
Field Value
- float
DELTAV_ALL_STAGES_UPDATE_SECS
public const float DELTAV_ALL_STAGES_UPDATE_SECS = 10
Field Value
- float
DELTAV_VESSEL_EVENT_DELAY_SECS
public const float DELTAV_VESSEL_EVENT_DELAY_SECS = 1
Field Value
- float
DebugPrintEnabled
public static bool DebugPrintEnabled
Field Value
- bool
EngineStageSet
public DeltaVEngineStageSet EngineStageSet
Field Value
- DeltaVEngineStageSet
LowestStageWithDeltaV
public int LowestStageWithDeltaV
Field Value
- int
Properties
ActiveMode
public VesselDeltaVComponent.Mode ActiveMode { get; }
Property Value
- VesselDeltaVComponent.Mode
DefinitionType
[TypeConverterIgnore]
public override Type DefinitionType { get; }
Property Value
- Type
EngineInfo
public List<DeltaVEngineInfo> EngineInfo { get; }
Property Value
- List<DeltaVEngineInfo>
IsCalculationRunning
public bool IsCalculationRunning { get; }
Property Value
- bool
IsReady
public bool IsReady { get; }
Property Value
- bool
PartInfo
public DictionaryValueList<IGGuid, DeltaVPartInfo> PartInfo { get; }
Property Value
- DictionaryValueList<IGGuid, DeltaVPartInfo>
SeparationStageIndexes
public List<int> SeparationStageIndexes { get; }
Property Value
- List<int>
Ship
public ObjectAssembly Ship { get; }
Property Value
- ObjectAssembly
StageInfo
public List<DeltaVStageInfo> StageInfo { get; }
Property Value
- List<DeltaVStageInfo>
StateType
[TypeConverterIgnore]
public override Type StateType { get; }
Property Value
- Type
TotalBurnTime
public double TotalBurnTime { get; }
Property Value
- double
TotalDeltaVASL
public double TotalDeltaVASL { get; }
Property Value
- double
TotalDeltaVActual
public double TotalDeltaVActual { get; }
Property Value
- double
TotalDeltaVVac
public double TotalDeltaVVac { get; }
Property Value
- double
Type
[TypeConverterIgnore]
public override Type Type { get; }
Property Value
- Type
Vessel
public PartOwnerComponent Vessel { get; }
Property Value
- PartOwnerComponent
Methods
GetActivatedEngines()
public int GetActivatedEngines()
Returns
- int
GetDefinition()
public override object GetDefinition()
Returns
- object
GetHighestSeparationStage(int)
public int GetHighestSeparationStage(int inStage)
Parameters
inStage int
Returns
- int
GetSituationTotalDeltaV(DeltaVSituationOptions)
public double GetSituationTotalDeltaV(DeltaVSituationOptions situation)
Parameters
situation DeltaVSituationOptions
Returns
- double
GetStage(int)
public DeltaVStageInfo GetStage(int stage)
Parameters
stage int
Returns
- DeltaVStageInfo
GetState()
public override object GetState()
Returns
- object
OnFixedUpdate(double, double)
public override void OnFixedUpdate(double universalTime, double deltaUniversalTime)
Parameters
universalTime double
deltaUniversalTime double
OnRemoved(SimulationObjectModel, double)
public override void OnRemoved(SimulationObjectModel simulationObject, double universalTime)
Parameters
simulationObject SimulationObjectModel
universalTime double
RemoveEvents()
public void RemoveEvents()
SetCalcsDirty(bool)
public void SetCalcsDirty(bool syncListInstances = false)
Parameters
syncListInstances bool
SetState(object, ISimulationModelMap)
public override object SetState(object state, ISimulationModelMap simulationModelMap)
Parameters
state object
simulationModelMap ISimulationModelMap
Returns
- object
TryGetOdeSolverStageComponents(int)
public List<OdeSolverStageComponent> TryGetOdeSolverStageComponents(int inStage)
Parameters
inStage int
Returns
- List<OdeSolverStageComponent>
ValidateState(object, ISimulationModelMap)
public override bool ValidateState(object stateData, ISimulationModelMap simulationModelMap)
Parameters
stateData object
simulationModelMap ISimulationModelMap
Returns
- bool