Kerbal Space Program
1.12.4
|
Represents the saved state of a part in a ship More...
Public Member Functions | |
void | AddProtoPartModuleAdjusters (List< AdjusterPartModuleBase > ModuleAdjusters) |
Applies given module adjusters to the appropriate part modules More... | |
Part | CreatePart () |
Creates a Part object from the ProtoPart. More... | |
ProtoPartModuleSnapshot | FindModule (string moduleName) |
Finds a Module Snapshot of the given modulename, back-first More... | |
ProtoPartModuleSnapshot | FindModule (PartModule pm, int moduleIndex) |
ProtoCrewMember | GetCrew (string name) |
ProtoCrewMember | GetCrew (int index) |
int | GetCrewIndex (string name) |
bool | HasCrew (string name) |
void | Init (Vessel vesselRef) |
Part | Load (Vessel vesselRef, bool loadAsRootPart) |
Creates Part objects from the abstraction. Don't forget to call Init() later. More... | |
void | ProtoPartRepair () |
Repair all the modules of this part. More... | |
ProtoPartSnapshot (Part PartRef, ProtoVessel protoVessel) | |
ProtoPartSnapshot (Part PartRef, ProtoVessel protoVessel, bool preCreate) | |
ProtoPartSnapshot (ConfigNode node, ProtoVessel protoVessel, Game st) | |
void | RemoveCrew (string name) |
void | RemoveCrew (int index) |
void | RemoveCrew (ProtoCrewMember pcm) |
void | RemoveProtoPartModuleAdjusters (List< AdjusterPartModuleBase > ModuleAdjusters) |
Removes given module adjusters from the appropriate part modules More... | |
void | Save (ConfigNode node) |
void | storePartRefs () |
Properties | |
Part | partPrefab [get] |
Represents the saved state of a part in a ship
|
inline |
|
inline |
< store staging info
|
inline |
< NOTE: Unless you want KSPParseable to grab the item, do NOT remove it from this list, just make a null op (see connected
)
|
inline |
Applies given module adjusters to the appropriate part modules
ModuleAdjusters | List of module adjusters to apply |
|
inline |
Finds a Module Snapshot of the given modulename, back-first
moduleName |
|
inline |
< if we failed, try to find it in the list of module snapshots.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Repair all the modules of this part.
|
inline |
|
inline |
|
inline |
|
inline |
Removes given module adjusters from the appropriate part modules
ModuleAdjusters | List of module adjusters to remove. |
|
inline |
|
inline |
bool ProtoPartSnapshot.attached |
int ProtoPartSnapshot.attachMode |
List<AttachNodeSnapshot> ProtoPartSnapshot.attachNodes |
Part.AutoStrutMode ProtoPartSnapshot.autostrutMode |
uint ProtoPartSnapshot.craftID |
string ProtoPartSnapshot.customPartData |
int ProtoPartSnapshot.defaultInverseStage |
float ProtoPartSnapshot.explosionPotential |
string ProtoPartSnapshot.flagURL |
uint ProtoPartSnapshot.flightID |
int ProtoPartSnapshot.inStageIndex |
int ProtoPartSnapshot.inverseStageIndex |
uint ProtoPartSnapshot.launchID |
float ProtoPartSnapshot.mass |
The mass of this part - including modeleMass
Vector3 ProtoPartSnapshot.mirror |
uint ProtoPartSnapshot.missionID |
int ProtoPartSnapshot.moduleCargoStackableQuantity = 1 |
The stacking capcity of this part if its a cargoPart
Obtained from ModuleCargoPart at the time the snapshot was created
float ProtoPartSnapshot.moduleCosts |
The cost of all the modules on this part
Obtained from ICostModifier at the time the snapshot was created
float ProtoPartSnapshot.moduleMass |
The mass of all the modules on this part at the time the snapshot was created
Obtained from IMassModifier at the time the snapshot was created
List<ProtoPartModuleSnapshot> ProtoPartSnapshot.modules |
string ProtoPartSnapshot.moduleVariantName |
The variant name that was stored with this part
Obtained from ModulePartVariant at the time the snapshot was created
ProtoPartSnapshot ProtoPartSnapshot.parent |
int ProtoPartSnapshot.parentIdx |
ConfigNode ProtoPartSnapshot.partActions |
ConfigNode ProtoPartSnapshot.partData |
ConfigNode ProtoPartSnapshot.partEffects |
ConfigNode ProtoPartSnapshot.partEvents |
AvailablePart ProtoPartSnapshot.partInfo |
string ProtoPartSnapshot.partName |
Part ProtoPartSnapshot.partRef |
List<string> ProtoPartSnapshot.partRendererBoundsIgnore |
Dictionary<string, KSPParseable> ProtoPartSnapshot.partStateValues |
uint ProtoPartSnapshot.persistentId |
Vector3d ProtoPartSnapshot.position |
int ProtoPartSnapshot.PreFailState |
List<int> ProtoPartSnapshot.protoCrewIndicesBackup |
List<string> ProtoPartSnapshot.protoCrewNames |
List<ProtoCrewMember> ProtoPartSnapshot.protoModuleCrew |
ProtoVessel ProtoPartSnapshot.pVesselRef |
string ProtoPartSnapshot.refTransformName |
int ProtoPartSnapshot.resourcePriorityOffset |
List<ProtoPartResourceSnapshot> ProtoPartSnapshot.resources |
bool ProtoPartSnapshot.rigidAttachment |
Part ProtoPartSnapshot.rootPartPrefab |
root parts don't get instantiated directly. Instead, they have their components copied to the vessel GO, and all their children moved as well. This reference to the original part prefab will remain alive until the ProtoPart loading is complete. Use to reset references on part modules and such.
Quaternion ProtoPartSnapshot.rotation |
bool ProtoPartSnapshot.sameVesselCollision = false |
int ProtoPartSnapshot.separationIndex |
int ProtoPartSnapshot.seqOverride |
bool ProtoPartSnapshot.shielded |
AttachNodeSnapshot ProtoPartSnapshot.srfAttachNode |
int ProtoPartSnapshot.stageIndex |
int ProtoPartSnapshot.state |
double ProtoPartSnapshot.staticPressureAtm |
List<int> ProtoPartSnapshot.symLinkIdxs |
List<ProtoPartSnapshot> ProtoPartSnapshot.symLinks |
SymmetryMethod ProtoPartSnapshot.symMethod |
double ProtoPartSnapshot.temperature |
VesselNaming ProtoPartSnapshot.vesselNaming |
|
get |