C# Class KerbalEngineer.VesselSimulator.EngineSim

Exibir arquivo Open project: CYBUTEK/KerbalEngineer Class Usage Examples

Public Properties

Property Type Description
actualThrust double
appliedForces List
dontDecoupleActive bool
isActive bool
isFlamedOut bool
isp double
maxMach float
partSim PartSim
thrust double
thrustVec Vector3

Public Methods

Method 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

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

Method Details

DumpEngineToLog() public method

public DumpEngineToLog ( LogMsg log ) : void
log LogMsg
return void

DumpSourcePartSets() public method

public DumpSourcePartSets ( LogMsg log, String msg ) : void
log LogMsg
msg String
return void

GetExhaustVelocity() public static method

public static GetExhaustVelocity ( double isp ) : double
isp double
return double

GetFlowModifier() public static method

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
return float

GetFlowRate() public static method

public static GetFlowRate ( double thrust, double isp ) : double
thrust double
isp double
return double

GetThrottlePercent() public static method

public static GetThrottlePercent ( float currentThrottle, float thrustPercentage ) : float
currentThrottle float
thrustPercentage float
return float

GetThrust() public static method

public static GetThrust ( double flowRate, double isp ) : double
flowRate double
isp double
return double

GetThrustPercent() public static method

public static GetThrustPercent ( float thrustPercentage ) : float
thrustPercentage float
return float

New() public static method

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
return EngineSim

Release() public method

public Release ( ) : void
return void

SetResourceDrains() public method

public SetResourceDrains ( LogMsg log, List allParts, List allFuelLines, HashSet drainingParts ) : bool
log LogMsg
allParts List
allFuelLines List
drainingParts HashSet
return bool

Property Details

actualThrust public_oe property

public double actualThrust
return double

appliedForces public_oe property

public List appliedForces
return List

dontDecoupleActive public_oe property

public bool dontDecoupleActive
return bool

isActive public_oe property

public bool isActive
return bool

isFlamedOut public_oe property

public bool isFlamedOut
return bool

isp public_oe property

public double isp
return double

maxMach public_oe property

public float maxMach
return float

partSim public_oe property

public PartSim,KerbalEngineer.VesselSimulator partSim
return PartSim

thrust public_oe property

public double thrust
return double

thrustVec public_oe property

public Vector3 thrustVec
return Vector3