DIFF

class ConstructionPartSource

Constructors 1

void ConstructionPart(string name, string part_name, string main_part_name, int id, bool is_built, bool is_base, bool is_gate, array<string> required_parts)
References m_Id, m_IsBase, m_IsBuilt
Show 5 more, m_IsGate, m_MainPartName, m_Name, m_PartName, and m_RequiredParts

Members 8

string m_Name

localized text name that is displayed ingame

Referenced by ConstructionPart(), and GetName()
int m_Id

a number used for synchronization and persistence purposes, must be unique and withing sync limit (total number of bits in all sync/persistence variables)

Referenced by ConstructionPart(), and GetId()
string m_MainPartName

main (parent) config class name

bool m_IsBuilt

defines part build state

bool m_IsBase

defines if this part is the foundation of the whole construction

Referenced by ConstructionPart(), and IsBase()
bool m_IsGate

defines part gate state

Referenced by ConstructionPart(), and IsGate()
ref array<string> m_RequiredParts

list of parts required by this part

Methods 10

void SetRequestBuiltState(bool req_built)