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

Private Member Functions

void WeightDebugData (EntityAI entity)
 
void SetWeight (float weight)
 
void SetCalcDetails (string details)
 
void AddCalcDetails (string details)
 
void Output ()
 

Private Attributes

string m_Classname
 
string m_Weight
 
int m_InventoryDepth
 
string m_CalcDetails
 

Detailed Description

Definition at line 877 of file Debug.c.

Constructor & Destructor Documentation

◆ WeightDebugData()

void WeightDebugData::WeightDebugData ( EntityAI entity)
inlineprivate

Definition at line 884 of file Debug.c.

885 {
886 m_Classname = entity.GetType();
887 m_InventoryDepth = entity.GetHierarchyLevel();
888 }
string m_Classname
Definition Debug.c:879
int m_InventoryDepth
Definition Debug.c:881

References m_Classname, and m_InventoryDepth.

Member Function Documentation

◆ AddCalcDetails()

void WeightDebugData::AddCalcDetails ( string details)
inlineprivate

Definition at line 901 of file Debug.c.

902 {
903 m_CalcDetails += "+ " + details;
904 }
string m_CalcDetails
Definition Debug.c:882

References m_CalcDetails.

◆ Output()

void WeightDebugData::Output ( )
inlineprivate

Definition at line 906 of file Debug.c.

907 {
908 string spaces;
909 for (int i = 0; i < m_InventoryDepth; i++)
910 spaces += "--------";
911
912 Print(spaces + ">" + m_Classname + " Overall entity weight: " + m_Weight + " Calculation details:" + m_CalcDetails);
913 }
string m_Weight
Definition Debug.c:880
proto void Print(void var)
Prints content of variable to console/log.

References m_CalcDetails, m_Classname, m_InventoryDepth, m_Weight, and Print().

◆ SetCalcDetails()

void WeightDebugData::SetCalcDetails ( string details)
inlineprivate

Definition at line 895 of file Debug.c.

896 {
898 }

References m_CalcDetails.

◆ SetWeight()

void WeightDebugData::SetWeight ( float weight)
inlineprivate

Definition at line 890 of file Debug.c.

891 {
892 m_Weight = weight.ToString();
893 }

References m_Weight.

Member Data Documentation

◆ m_CalcDetails

string WeightDebugData::m_CalcDetails
private

Definition at line 882 of file Debug.c.

Referenced by AddCalcDetails(), Output(), and SetCalcDetails().

◆ m_Classname

string WeightDebugData::m_Classname
private

Definition at line 879 of file Debug.c.

Referenced by Output(), and WeightDebugData().

◆ m_InventoryDepth

int WeightDebugData::m_InventoryDepth
private

Definition at line 881 of file Debug.c.

Referenced by Output(), and WeightDebugData().

◆ m_Weight

string WeightDebugData::m_Weight
private

Definition at line 880 of file Debug.c.

Referenced by Output(), and SetWeight().


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