Kerbal Space Program
1.12.4
|
Class which represents a part and the crew members which are assigned to it. More...
Public Member Functions | |
void | AddCrewToSeat (ProtoCrewMember crew, int seatIndex) |
Assigns a crew member to the specified seat. More... | |
bool | AllSeatsEmpty () |
Check whether all of the seats in the part are empty. More... | |
bool | AllSeatsEmpty (KerbalRoster roster) |
Check whether all of the seats in the part are empty. More... | |
bool | AnySeats () |
Check whether there are any seats in this part. More... | |
bool | AnySeatTaken () |
Check whether anyone is sitting in any of the seats. More... | |
bool | AnySeatTaken (KerbalRoster roster) |
Check whether anyone is sitting in any of the seats. More... | |
bool | Contains (ProtoCrewMember crew) |
Check whether the PartCrewManifest contains a crew member. More... | |
int | CountCrewNotType (ProtoCrewMember.KerbalType type) |
Counts the number of crew members who aren't of a specified type. More... | |
int | CountCrewNotType (ProtoCrewMember.KerbalType type, KerbalRoster roster) |
Counts the number of crew members who aren't of a specified type. More... | |
int | CountCrewType (ProtoCrewMember.KerbalType type) |
Counts the number of crew members with a specified type. More... | |
int | CountCrewType (ProtoCrewMember.KerbalType type, KerbalRoster roster) |
Counts the number of crew members with a specified type. More... | |
int | GetCrewSeat (ProtoCrewMember crew) |
Get the seat index for the seat that the crew member is occupying. More... | |
int | GetCrewSeat (string name) |
Get the seat index for the seat that the crew member is occupying. More... | |
ProtoCrewMember[] | GetPartCrew () |
Get a list of the crew members seated in the part. More... | |
void | GetPartCrew (ref ProtoCrewMember[] crewArray) |
Get a list of the crew members seated in the part. More... | |
bool | NoSeats () |
Check whether there are no seats in this part. More... | |
PartCrewManifest (VesselCrewManifest v) | |
Base constructor. More... | |
void | RemoveCrew (string name) |
Removes the crew member with the specified name. More... | |
void | RemoveCrewFromSeat (int seatIndex) |
Removes the crew member sitting at the specified seat. More... | |
Static Public Member Functions | |
static PartCrewManifest | CloneOf (PartCrewManifest original, VesselCrewManifest vcm, bool blank) |
Clone a part crew manifest. More... | |
static PartCrewManifest | FromConfigNode (ConfigNode node, VesselCrewManifest v) |
Generate a new PartCrewManifest based on a config node. More... | |
Public Attributes | |
string[] | partCrew |
List of the crew members seated in this part. More... | |
VesselCrewManifest | vcm |
The VesselCrewManifest which holds information about this part. More... | |
Properties | |
uint | PartID [get] |
Part ID of this part. More... | |
AvailablePart | PartInfo [get] |
Information about the part. More... | |
Class which represents a part and the crew members which are assigned to it.
|
inline |
Base constructor.
v | VesselCrewManifest which will contain this part. |
|
inline |
Assigns a crew member to the specified seat.
crew | Crew member to be assigned. |
seatIndex | Index of the seat to assign the crew member to. |
|
inline |
Check whether all of the seats in the part are empty.
|
inline |
Check whether all of the seats in the part are empty.
roster | Roster to get the crew member information from. |
|
inline |
Check whether there are any seats in this part.
|
inline |
Check whether anyone is sitting in any of the seats.
|
inline |
Check whether anyone is sitting in any of the seats.
roster | Roster to get the crew member information from. |
|
inlinestatic |
Clone a part crew manifest.
original | PartCrewManifest to be cloned. |
vcm | VesselCrewManifest which will contain this part. |
blank | If false, crew members from the original PartCrewManifest will be seated in the clone. If true, there will be no crew members in the clone. |
|
inline |
Check whether the PartCrewManifest contains a crew member.
crew | Crew member to search for. |
|
inline |
Counts the number of crew members who aren't of a specified type.
type | Type to check for. |
|
inline |
Counts the number of crew members who aren't of a specified type.
type | Type to check for. |
roster | Roster to get the crew member information from. |
|
inline |
Counts the number of crew members with a specified type.
type | Type to check for. |
|
inline |
Counts the number of crew members with a specified type.
type | Type to check for. |
roster | Roster to get the crew member information from. |
|
inlinestatic |
Generate a new PartCrewManifest based on a config node.
node | Node representing the part |
v | VesselCrewManifest which will contain this part. |
|
inline |
Get the seat index for the seat that the crew member is occupying.
crew | Crew member to search for. |
|
inline |
Get the seat index for the seat that the crew member is occupying.
name | Name of the crew member to search for. |
|
inline |
Get a list of the crew members seated in the part.
|
inline |
Get a list of the crew members seated in the part.
crewArray | Array in which to put the list of crew members. |
|
inline |
Check whether there are no seats in this part.
|
inline |
Removes the crew member with the specified name.
name | Name of the crew member to be removed. |
|
inline |
Removes the crew member sitting at the specified seat.
seatIndex | Index of the seat to remove the crew member from. |
string [] PartCrewManifest.partCrew |
List of the crew members seated in this part.
VesselCrewManifest PartCrewManifest.vcm |
The VesselCrewManifest which holds information about this part.
|
get |
Part ID of this part.
|
get |
Information about the part.