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

Private Member Functions

void StatDebugObject (string name, float value, eRemoteDebugType type)
 
void Debug ()
 
string GetName ()
 
string GetValue ()
 
void SetType (eRemoteDebugType type)
 
eRemoteDebugType GetType ()
 

Private Attributes

string m_Name
 
float m_Value
 
eRemoteDebugType m_Type
 

Detailed Description

Definition at line 1 of file StatDebugObject.c.

Constructor & Destructor Documentation

◆ StatDebugObject()

void StatDebugObject::StatDebugObject ( string name,
float value,
eRemoteDebugType type )
inlineprivate

Definition at line 7 of file StatDebugObject.c.

8 {
9 m_Name = name;
10 m_Value = value;
11 m_Type = type;
12 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
eRemoteDebugType m_Type

References m_Name, m_Type, m_Value, and name.

Member Function Documentation

◆ Debug()

void StatDebugObject::Debug ( )
inlineprivate

Definition at line 14 of file StatDebugObject.c.

15 {
16 PrintString("stat_type:" + m_Name + "|stat_value:" + m_Value.ToString());
17 }
proto string ToString()
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
Definition EnScript.c:344

References m_Name, m_Value, PrintString(), and float::ToString().

◆ GetName()

string StatDebugObject::GetName ( )
inlineprivate

Definition at line 19 of file StatDebugObject.c.

20 {
21 return m_Name;
22 }

References m_Name.

◆ GetType()

eRemoteDebugType StatDebugObject::GetType ( )
inlineprivate

Definition at line 34 of file StatDebugObject.c.

35 {
36 return m_Type;
37 }

References m_Type.

Referenced by SerializeNames(), and SerializeValues().

◆ GetValue()

string StatDebugObject::GetValue ( )
inlineprivate

Definition at line 24 of file StatDebugObject.c.

25 {
26 return m_Value.ToString();
27 }

References m_Value, and float::ToString().

◆ SetType()

void StatDebugObject::SetType ( eRemoteDebugType type)
inlineprivate

Definition at line 29 of file StatDebugObject.c.

30 {
31 m_Type = type;
32 }

References m_Type.

Member Data Documentation

◆ m_Name

string StatDebugObject::m_Name
private

Definition at line 3 of file StatDebugObject.c.

Referenced by Debug(), GetName(), and StatDebugObject().

◆ m_Type

eRemoteDebugType StatDebugObject::m_Type
private

Definition at line 5 of file StatDebugObject.c.

Referenced by GetType(), SetType(), and StatDebugObject().

◆ m_Value

float StatDebugObject::m_Value
private

Definition at line 4 of file StatDebugObject.c.

Referenced by Debug(), GetValue(), and StatDebugObject().


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