DayZ 1.24
Loading...
Searching...
No Matches
ConstructionPart Class Reference
Collaboration diagram for ConstructionPart:
[legend]

Private Member Functions

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)
 
string GetName ()
 
string GetPartName ()
 
string GetMainPartName ()
 
int GetId ()
 
bool IsBuilt ()
 
void SetBuiltState (bool is_built)
 
void SetRequestBuiltState (bool req_built)
 
bool IsBase ()
 
bool IsGate ()
 
array< stringGetRequiredParts ()
 

Private Attributes

string m_Name
 
int m_Id
 
string m_PartName
 
string m_MainPartName
 
bool m_IsBuilt
 
bool m_IsBase
 
bool m_IsGate
 
ref array< stringm_RequiredParts
 

Detailed Description

Definition at line 1 of file ConstructionPart.c.

Constructor & Destructor Documentation

◆ ConstructionPart()

void ConstructionPart::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 )
inlineprivate

Definition at line 12 of file ConstructionPart.c.

13 {
14 m_Name = name;
17 m_Id = id;
22 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
ref array< string > m_RequiredParts

References m_Id, m_IsBase, m_IsBuilt, m_IsGate, m_MainPartName, m_Name, m_PartName, m_RequiredParts, and name.

Member Function Documentation

◆ GetId()

int ConstructionPart::GetId ( )
inlineprivate

Definition at line 40 of file ConstructionPart.c.

41 {
42 return m_Id;
43 }

References m_Id.

◆ GetMainPartName()

string ConstructionPart::GetMainPartName ( )
inlineprivate

◆ GetName()

string ConstructionPart::GetName ( )
inlineprivate

Definition at line 24 of file ConstructionPart.c.

25 {
26 string ret = Widget.TranslateString(m_Name);
27 return ret;
28 }

References m_Name.

◆ GetPartName()

string ConstructionPart::GetPartName ( )
inlineprivate

Definition at line 30 of file ConstructionPart.c.

31 {
32 return m_PartName;
33 }

References m_PartName.

◆ GetRequiredParts()

array< string > ConstructionPart::GetRequiredParts ( )
inlineprivate

Definition at line 75 of file ConstructionPart.c.

76 {
77 return m_RequiredParts;
78 }

References m_RequiredParts.

◆ IsBase()

bool ConstructionPart::IsBase ( )
inlineprivate

Definition at line 65 of file ConstructionPart.c.

66 {
67 return m_IsBase;
68 }

References m_IsBase.

◆ IsBuilt()

bool ConstructionPart::IsBuilt ( )
inlineprivate

Definition at line 45 of file ConstructionPart.c.

46 {
47 return m_IsBuilt;
48 }

References m_IsBuilt.

◆ IsGate()

bool ConstructionPart::IsGate ( )
inlineprivate

Definition at line 70 of file ConstructionPart.c.

71 {
72 return m_IsGate;
73 }

References m_IsGate.

◆ SetBuiltState()

void ConstructionPart::SetBuiltState ( bool is_built)
inlineprivate

Definition at line 50 of file ConstructionPart.c.

51 {
52 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] SetBuildState=" + is_built + " part=" + m_PartName);
54 }
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
static bool IsBaseBuildingLogEnable()
Definition Debug.c:779

References bsbDebugPrint(), LogManager::IsBaseBuildingLogEnable(), m_IsBuilt, and m_PartName.

Referenced by SetRequestBuiltState().

◆ SetRequestBuiltState()

void ConstructionPart::SetRequestBuiltState ( bool req_built)
inlineprivate

Definition at line 56 of file ConstructionPart.c.

57 {
58 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] SetRequestBuiltState=" + req_built + " part=" + m_PartName);
59 if (GetGame().IsMultiplayer())
61 else
62 ; // skip set to true in single player - will be synced later
63 }
void SetBuiltState(bool is_built)
proto native CGame GetGame()

References bsbDebugPrint(), GetGame(), LogManager::IsBaseBuildingLogEnable(), m_PartName, and SetBuiltState().

Member Data Documentation

◆ m_Id

int ConstructionPart::m_Id
private

Definition at line 4 of file ConstructionPart.c.

Referenced by ConstructionPart(), and GetId().

◆ m_IsBase

bool ConstructionPart::m_IsBase
private

Definition at line 8 of file ConstructionPart.c.

Referenced by ConstructionPart(), and IsBase().

◆ m_IsBuilt

bool ConstructionPart::m_IsBuilt
private

Definition at line 7 of file ConstructionPart.c.

Referenced by ConstructionPart(), IsBuilt(), and SetBuiltState().

◆ m_IsGate

bool ConstructionPart::m_IsGate
private

Definition at line 9 of file ConstructionPart.c.

Referenced by ConstructionPart(), and IsGate().

◆ m_MainPartName

string ConstructionPart::m_MainPartName
private

Definition at line 6 of file ConstructionPart.c.

Referenced by ConstructionPart(), and GetMainPartName().

◆ m_Name

string ConstructionPart::m_Name
private

Definition at line 3 of file ConstructionPart.c.

Referenced by ConstructionPart(), and GetName().

◆ m_PartName

string ConstructionPart::m_PartName
private

◆ m_RequiredParts

ref array<string> ConstructionPart::m_RequiredParts
private

Definition at line 10 of file ConstructionPart.c.

Referenced by ConstructionPart(), and GetRequiredParts().


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