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
Expansions.Missions.MissionMappedVesselsExtension Class Reference

Static Public Member Functions

static uint ConvertMappedId (this List< MissionMappedVessel > list, uint id)
 Takes a persistentId and looks for it in the currentVesselPersistentId or mappedVesselPersistentId and returns the currentVesselPersistentId More...
 
static bool Exists (this List< MissionMappedVessel > list, uint vslId, uint partId, string vesselName, string craftName)
 Confirms if an Entry exists in the list with matching currentVesselPersistentId, partPersistentId and vesselName More...
 
static MissionMappedVessel Find (this List< MissionMappedVessel > list, uint vslId, uint partId, string vesselName, string craftName)
 Confirms if an Entry exists in the list with matching currentVesselPersistentId, partPersistentId and vesselName and returns that entry. Returns Null if no entry is found. More...
 
static int IndexCurrentVesselId (this List< MissionMappedVessel > list, uint id)
 Return the Index of the first matching currentVesselPersistentId found. More...
 
static int IndexMappedVesselId (this List< MissionMappedVessel > list, uint id)
 Return the Index of first matching mappedVesselPersistentId found. More...
 
static int IndexPartId (this List< MissionMappedVessel > list, uint id)
 Return the Index of the first matching partPersistentId found. More...
 
static int MappedVesselName (this List< MissionMappedVessel > list, string vesselName)
 Find and return the index for a mapped Vessel name. More...
 

Member Function Documentation

static uint Expansions.Missions.MissionMappedVesselsExtension.ConvertMappedId ( this List< MissionMappedVessel list,
uint  id 
)
inlinestatic

Takes a persistentId and looks for it in the currentVesselPersistentId or mappedVesselPersistentId and returns the currentVesselPersistentId

Parameters
list
id
Returns
The actual craft/vessel situation id for the matching item, or the passed in id if not found.
static bool Expansions.Missions.MissionMappedVesselsExtension.Exists ( this List< MissionMappedVessel list,
uint  vslId,
uint  partId,
string  vesselName,
string  craftName 
)
inlinestatic

Confirms if an Entry exists in the list with matching currentVesselPersistentId, partPersistentId and vesselName

Parameters
list
vslIdThe currentVesselPersistentId to compare
partIdThe partPersistentId to compare
vesselNameThe vesselName to compare
craftNameThe craftName to compare
Returns
static MissionMappedVessel Expansions.Missions.MissionMappedVesselsExtension.Find ( this List< MissionMappedVessel list,
uint  vslId,
uint  partId,
string  vesselName,
string  craftName 
)
inlinestatic

Confirms if an Entry exists in the list with matching currentVesselPersistentId, partPersistentId and vesselName and returns that entry. Returns Null if no entry is found.

Parameters
list
vslIdThe currentVesselPersistentId to compare
partIdThe partPersistentId to compare
vesselNameThe vesselName to compare
craftNameThe craftName to compare
Returns
static int Expansions.Missions.MissionMappedVesselsExtension.IndexCurrentVesselId ( this List< MissionMappedVessel list,
uint  id 
)
inlinestatic

Return the Index of the first matching currentVesselPersistentId found.

Parameters
list
idthe persistentId to look for
Returns
The index of the currentVesselPersistentId if found, otherwise returns -1.
static int Expansions.Missions.MissionMappedVesselsExtension.IndexMappedVesselId ( this List< MissionMappedVessel list,
uint  id 
)
inlinestatic

Return the Index of first matching mappedVesselPersistentId found.

Parameters
list
idthe persistentId to look for
Returns
The index of the mappedVesselPersistentId if found, otherwise returns -1.
static int Expansions.Missions.MissionMappedVesselsExtension.IndexPartId ( this List< MissionMappedVessel list,
uint  id 
)
inlinestatic

Return the Index of the first matching partPersistentId found.

Parameters
list
idthe persistentId to look for
Returns
The index of the partPersistentId if found, otherwise returns -1.
static int Expansions.Missions.MissionMappedVesselsExtension.MappedVesselName ( this List< MissionMappedVessel list,
string  vesselName 
)
inlinestatic

Find and return the index for a mapped Vessel name.

Parameters
list
vesselName
Returns
the index of the matching item, or -1 if not found.

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