DayZ 1.24
Loading...
Searching...
No Matches
Debug.c File Reference

Go to the source code of this file.

Classes

class  Debug
 
class  LogManager
 
class  WeightDebugData
 

Functions

static WeightDebugData GetWeightDebug (EntityAI entity)
 
static void ClearWeightDebug ()
 
static void PrintAll (EntityAI entity)
 
static void SetVerbosityFlags (WeightDebugType type)
 

Variables

class LogManager NONE = 0
 
class LogManager RECALC_FORCED = 1
 
class LogManager RECALC_DIRTY = 2
 
class LogManager DUMP_STACK = 4
 
class LogManager SET_DIRTY_FLAG = 8
 
class LogManager EntityAI = 8
 
class LogManager m_WeightDebugData = new map<EntityAI, ref WeightDebugData>()
 
static WeightDebugType m_VerbosityFlags
 

Function Documentation

◆ ClearWeightDebug()

static void ClearWeightDebug ( )
static

Definition at line 851 of file Debug.c.

852 {
853 m_WeightDebugData.Clear();
854 }
class LogManager m_WeightDebugData

References m_WeightDebugData.

◆ GetWeightDebug()

static WeightDebugData GetWeightDebug ( EntityAI entity)
static

Definition at line 840 of file Debug.c.

841 {
842 if (!m_WeightDebugData.Get(entity))
843 {
846 return data;
847 }
848 return m_WeightDebugData.Get(entity);
849 }

References m_WeightDebugData.

◆ PrintAll()

static void PrintAll ( EntityAI entity)
static

Definition at line 856 of file Debug.c.

857 {
858 GameInventory inv = entity.GetInventory();
859 if (!inv)
860 return;
862 inv.EnumerateInventory(InventoryTraversalType.PREORDER, items);
863 for (int i = 0; i < items.Count(); i++)
864 {
865 EntityAI item = items.Get(i);
866 if (m_WeightDebugData.Get(item))
867 m_WeightDebugData.Get(item).Output();
868 }
869 }
script counterpart to engine's class Inventory
Definition Inventory.c:79
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
Definition gameplay.c:6

References m_WeightDebugData.

◆ SetVerbosityFlags()

static void SetVerbosityFlags ( WeightDebugType type)
static

Definition at line 871 of file Debug.c.

872 {
873 m_VerbosityFlags = type;
874 }
static WeightDebugType m_VerbosityFlags
Definition Debug.c:837

References m_VerbosityFlags.

Variable Documentation

◆ DUMP_STACK

class LogManager DUMP_STACK = 4

◆ EntityAI

class LogManager EntityAI = 8

◆ m_VerbosityFlags

WeightDebugType m_VerbosityFlags
static

Definition at line 837 of file Debug.c.

Referenced by SetVerbosityFlags().

◆ m_WeightDebugData

◆ NONE

class LogManager NONE = 0

◆ RECALC_DIRTY

class LogManager RECALC_DIRTY = 2

◆ RECALC_FORCED

class LogManager RECALC_FORCED = 1

◆ SET_DIRTY_FLAG

class LogManager SET_DIRTY_FLAG = 8