C# Class GravityTurn.FuelNode

Mostrar archivo Open project: johnfink8/GravityTurn Class Usage Examples

Public Properties

Property Type Description
decoupledInStage int
inverseStage int
isEngine bool
isSepratron bool
moduleMass float
partName string

Public Methods

Method Description
AssignDecoupledInStage ( Part p, FuelNode>.Dictionary nodeLookup, int parentDecoupledInStage ) : void
AssignResourceDrainRates ( List vessel ) : void
BurnedResources ( ) : IEnumerable
CanDrawNeededResources ( List vessel ) : bool
ContainsResources ( IEnumerable whichResources ) : bool
DebugDrainRates ( ) : void
DrainResources ( float dt ) : void
EngineThrust ( float throttle, double atmospheres, double atmDensity, double machNumber ) : float
FuelNode ( Part part, bool dVLinearThrust ) : System
Mass ( int simStage ) : float
MaxTimeStep ( ) : float
RemoveSourceNode ( FuelNode n ) : void
ResetDrainRates ( ) : void
SetConsumptionRates ( float throttle, double atmDensity, double machNumber ) : void
SetupFuelLineSourcesEditor ( Part part, FuelNode>.Dictionary nodeLookup ) : void
SetupFuelLineSourcesFlight ( Part part, FuelNode>.Dictionary nodeLookup ) : void
SetupRegularSources ( Part part, FuelNode>.Dictionary nodeLookup ) : void
print ( object message ) : void

Private Methods

Method Description
AssignFuelDrainRateStackPriority ( int type, float amount ) : void
AssignFuelDrainRateStagePriorityFlow ( int type, float amount, List vessel ) : void
FindFuelSourcesStackPriority ( int type ) : HashSet
FindFuelSourcesStackPriorityRecursive ( int type, HashSet sources, int fuelLookupID, int level ) : bool
GetFlowModifier ( double atmDensity, double machNumber ) : float

Method Details

AssignDecoupledInStage() public method

public AssignDecoupledInStage ( Part p, FuelNode>.Dictionary nodeLookup, int parentDecoupledInStage ) : void
p Part
nodeLookup FuelNode>.Dictionary
parentDecoupledInStage int
return void

AssignResourceDrainRates() public method

public AssignResourceDrainRates ( List vessel ) : void
vessel List
return void

BurnedResources() public method

public BurnedResources ( ) : IEnumerable
return IEnumerable

CanDrawNeededResources() public method

public CanDrawNeededResources ( List vessel ) : bool
vessel List
return bool

ContainsResources() public method

public ContainsResources ( IEnumerable whichResources ) : bool
whichResources IEnumerable
return bool

DebugDrainRates() public method

public DebugDrainRates ( ) : void
return void

DrainResources() public method

public DrainResources ( float dt ) : void
dt float
return void

EngineThrust() public method

public EngineThrust ( float throttle, double atmospheres, double atmDensity, double machNumber ) : float
throttle float
atmospheres double
atmDensity double
machNumber double
return float

FuelNode() public method

public FuelNode ( Part part, bool dVLinearThrust ) : System
part Part
dVLinearThrust bool
return System

Mass() public method

public Mass ( int simStage ) : float
simStage int
return float

MaxTimeStep() public method

public MaxTimeStep ( ) : float
return float

RemoveSourceNode() public method

public RemoveSourceNode ( FuelNode n ) : void
n FuelNode
return void

ResetDrainRates() public method

public ResetDrainRates ( ) : void
return void

SetConsumptionRates() public method

public SetConsumptionRates ( float throttle, double atmDensity, double machNumber ) : void
throttle float
atmDensity double
machNumber double
return void

SetupFuelLineSourcesEditor() public method

public SetupFuelLineSourcesEditor ( Part part, FuelNode>.Dictionary nodeLookup ) : void
part Part
nodeLookup FuelNode>.Dictionary
return void

SetupFuelLineSourcesFlight() public method

public SetupFuelLineSourcesFlight ( Part part, FuelNode>.Dictionary nodeLookup ) : void
part Part
nodeLookup FuelNode>.Dictionary
return void

SetupRegularSources() public method

public SetupRegularSources ( Part part, FuelNode>.Dictionary nodeLookup ) : void
part Part
nodeLookup FuelNode>.Dictionary
return void

print() public static method

public static print ( object message ) : void
message object
return void

Property Details

decoupledInStage public_oe property

public int decoupledInStage
return int

inverseStage public_oe property

public int inverseStage
return int

isEngine public_oe property

public bool isEngine
return bool

isSepratron public_oe property

public bool isSepratron
return bool

moduleMass public_oe property

public float moduleMass
return float

partName public_oe property

public string partName
return string