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

Class for the storage of a part inside an InventoryModule More...

Public Member Functions

void Load (ConfigNode node)
 
void Save (ConfigNode node)
 
 StoredPart (string partName, int slotIndex)
 Constructor for this part - we shoudl never not have these values More...
 

Public Attributes

string partName
 The partName that is stored in this slot More...
 
int quantity = 0
 The size of teh stack in this slot More...
 
int slotIndex = -1
 The slot this part is stored in More...
 
ProtoPartSnapshot snapshot
 The snapshot of the part More...
 
int stackCapacity = 1
 the capacity of this slot with respect to the stored part More...
 
string variantName = ""
 the variant of the stored part More...
 

Properties

bool CanStack [get]
 
bool IsEmpty [get]
 the selected variant of teh part in this slot More...
 
bool IsFull [get]
 

Detailed Description

Class for the storage of a part inside an InventoryModule

Constructor & Destructor Documentation

StoredPart.StoredPart ( string  partName,
int  slotIndex 
)
inline

Constructor for this part - we shoudl never not have these values

Parameters
partName
slotIndex

Member Function Documentation

void StoredPart.Load ( ConfigNode  node)
inline
void StoredPart.Save ( ConfigNode  node)
inline

Member Data Documentation

string StoredPart.partName

The partName that is stored in this slot

int StoredPart.quantity = 0

The size of teh stack in this slot

int StoredPart.slotIndex = -1

The slot this part is stored in

ProtoPartSnapshot StoredPart.snapshot

The snapshot of the part

int StoredPart.stackCapacity = 1

the capacity of this slot with respect to the stored part

string StoredPart.variantName = ""

the variant of the stored part

Property Documentation

bool StoredPart.CanStack
get
bool StoredPart.IsEmpty
get

the selected variant of teh part in this slot

bool StoredPart.IsFull
get

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