Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
DeltaVEngineResourcePartExtensions Class Reference

Static Public Member Functions

static bool ContainsPartInfo (this List< DeltaVEngineResourcePartInfo > list, DeltaVPartInfo partInfo)
 Extension to search DeltaVEngineResourcePartInfo for matching Part reference More...
 
static DeltaVEngineResourcePartInfo Get (this List< DeltaVEngineResourcePartInfo > list, DeltaVPartInfo partInfo)
 Extension to search DeltaVEngineResourcePartInfo for matching DeltaVPartInfo reference and return the DeltaVEngineResourcePartInfo list entry. More...
 
static int GetHighestPartSeparationIndex (this List< DeltaVEngineResourcePartInfo > list, int stage)
 Returns the highest decoupleStage value in the passed in parts that is LOWER (in other words higher up the stage stack) than the passed in stage. More...
 
static List< DeltaVPartInfoPartInfoList (this List< DeltaVEngineResourcePartInfo > list)
 Return a List of DeltaVPartInfo from DeltaVEngineResourcePartInfo List. More...
 
static List
< DeltaVEngineResourcePartInfo
PartsMatchingSeparationIndex (this List< DeltaVEngineResourcePartInfo > inputParts, int index)
 Processes passed in list of parts and returns a list of those where their decouple stage matches the passed in index. More...
 

Member Function Documentation

static bool DeltaVEngineResourcePartExtensions.ContainsPartInfo ( this List< DeltaVEngineResourcePartInfo list,
DeltaVPartInfo  partInfo 
)
inlinestatic

Extension to search DeltaVEngineResourcePartInfo for matching Part reference

Parameters
listthis
partThe Part to match against
Returns
True if part field matches the part passed in. Otherwise False.
static DeltaVEngineResourcePartInfo DeltaVEngineResourcePartExtensions.Get ( this List< DeltaVEngineResourcePartInfo list,
DeltaVPartInfo  partInfo 
)
inlinestatic

Extension to search DeltaVEngineResourcePartInfo for matching DeltaVPartInfo reference and return the DeltaVEngineResourcePartInfo list entry.

Parameters
listthis
partThe Part to match against
Returns
The matching DeltaVEngineResourcePartInfo list entry, or Null if not found.
static int DeltaVEngineResourcePartExtensions.GetHighestPartSeparationIndex ( this List< DeltaVEngineResourcePartInfo list,
int  stage 
)
inlinestatic

Returns the highest decoupleStage value in the passed in parts that is LOWER (in other words higher up the stage stack) than the passed in stage.

Parameters
listthis
stageThe Stage index we are matching against
Returns
static List<DeltaVPartInfo> DeltaVEngineResourcePartExtensions.PartInfoList ( this List< DeltaVEngineResourcePartInfo list)
inlinestatic

Return a List of DeltaVPartInfo from DeltaVEngineResourcePartInfo List.

Parameters
listthis
Returns
A list, or empty list.
static List<DeltaVEngineResourcePartInfo> DeltaVEngineResourcePartExtensions.PartsMatchingSeparationIndex ( this List< DeltaVEngineResourcePartInfo inputParts,
int  index 
)
inlinestatic

Processes passed in list of parts and returns a list of those where their decouple stage matches the passed in index.

Parameters
inputPartsList of parts (usually output from GetEngineResourceParts)
indexThe stage index - usually the highest separation index for all the parts in the stage.
Returns

The documentation for this class was generated from the following file: