C# Class KerbalEngineer.VesselSimulator.EngineSim

Afficher le fichier Open project: CYBUTEK/KerbalEngineer Class Usage Examples

Méthodes publiques

Свойство Type Description
actualThrust double
appliedForces List
dontDecoupleActive bool
isActive bool
isFlamedOut bool
isp double
maxMach float
partSim PartSim
thrust double
thrustVec Vector3

Méthodes publiques

Méthode Description
DumpEngineToLog ( LogMsg log ) : void
DumpSourcePartSets ( LogMsg log, String msg ) : void
GetExhaustVelocity ( double isp ) : double
GetFlowModifier ( bool atmChangeFlow, FloatCurve atmCurve, double atmDensity, FloatCurve velCurve, float machNumber, float &maxMach ) : float
GetFlowRate ( double thrust, double isp ) : double
GetThrottlePercent ( float currentThrottle, float thrustPercentage ) : float
GetThrust ( double flowRate, double isp ) : double
GetThrustPercent ( float thrustPercentage ) : float
New ( PartSim theEngine, ModuleEngines engineMod, double atmosphere, float machNumber, bool vectoredThrust, bool fullThrust, LogMsg log ) : EngineSim
Release ( ) : void
SetResourceDrains ( LogMsg log, List allParts, List allFuelLines, HashSet drainingParts ) : bool

Private Methods

Méthode Description
CalculateThrustVector ( List thrustTransforms, List thrustTransformMultipliers, LogMsg log ) : Vector3
Create ( ) : EngineSim
Reset ( EngineSim engineSim ) : void

Method Details

DumpEngineToLog() public méthode

public DumpEngineToLog ( LogMsg log ) : void
log LogMsg
Résultat void

DumpSourcePartSets() public méthode

public DumpSourcePartSets ( LogMsg log, String msg ) : void
log LogMsg
msg String
Résultat void

GetExhaustVelocity() public static méthode

public static GetExhaustVelocity ( double isp ) : double
isp double
Résultat double

GetFlowModifier() public static méthode

public static GetFlowModifier ( bool atmChangeFlow, FloatCurve atmCurve, double atmDensity, FloatCurve velCurve, float machNumber, float &maxMach ) : float
atmChangeFlow bool
atmCurve FloatCurve
atmDensity double
velCurve FloatCurve
machNumber float
maxMach float
Résultat float

GetFlowRate() public static méthode

public static GetFlowRate ( double thrust, double isp ) : double
thrust double
isp double
Résultat double

GetThrottlePercent() public static méthode

public static GetThrottlePercent ( float currentThrottle, float thrustPercentage ) : float
currentThrottle float
thrustPercentage float
Résultat float

GetThrust() public static méthode

public static GetThrust ( double flowRate, double isp ) : double
flowRate double
isp double
Résultat double

GetThrustPercent() public static méthode

public static GetThrustPercent ( float thrustPercentage ) : float
thrustPercentage float
Résultat float

New() public static méthode

public static New ( PartSim theEngine, ModuleEngines engineMod, double atmosphere, float machNumber, bool vectoredThrust, bool fullThrust, LogMsg log ) : EngineSim
theEngine PartSim
engineMod ModuleEngines
atmosphere double
machNumber float
vectoredThrust bool
fullThrust bool
log LogMsg
Résultat EngineSim

Release() public méthode

public Release ( ) : void
Résultat void

SetResourceDrains() public méthode

public SetResourceDrains ( LogMsg log, List allParts, List allFuelLines, HashSet drainingParts ) : bool
log LogMsg
allParts List
allFuelLines List
drainingParts HashSet
Résultat bool

Property Details

actualThrust public_oe property

public double actualThrust
Résultat double

appliedForces public_oe property

public List appliedForces
Résultat List

dontDecoupleActive public_oe property

public bool dontDecoupleActive
Résultat bool

isActive public_oe property

public bool isActive
Résultat bool

isFlamedOut public_oe property

public bool isFlamedOut
Résultat bool

isp public_oe property

public double isp
Résultat double

maxMach public_oe property

public float maxMach
Résultat float

partSim public_oe property

public PartSim,KerbalEngineer.VesselSimulator partSim
Résultat PartSim

thrust public_oe property

public double thrust
Résultat double

thrustVec public_oe property

public Vector3 thrustVec
Résultat Vector3