DayZ Enforce
Script API
Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Component Class Reference

#include <Component.h>

Inheritance diagram for Component:
ComponentElectricDevice ComponentEntityDebug ComponentElectricDevicePowerGenerator ComponentElectricDeviceSpotlight

Private Member Functions

void  SetParentEntityAI (EntityAI e)
 
string  GetCompName ()
 
int  GetCompType ()
 
void  LogThis (string msg, string fnc_name="n/a")
 
void  LogThisWarning (string msg, string fnc_name="n/a")
 
void  LogThisError (string msg, string fnc_name="n/a")
 
Shape  DebugDrawBBox (float width=-1, float length=-1, float height=-1)
 
Shape  DebugDrawDirection (float distance=1)
 
void  Event_OnAwake ()
 
void  Event_OnInit ()
 
void  Event_OnItemAttached (EntityAI item, string slot_name)
 
void  Event_OnItemDetached (EntityAI item, string slot_name)
 
void  Event_OnFrame (_entity other, float timeSlice)
 

Static Private Member Functions

static void  Init ()
 
static string  GetNameByType (int comp_type)
 
static bool  IsTypeExist (int comp_type)
 
static void  LogWarningAlredyExist (int comp_type, string fnc_name)
 
static void  LogErrorBadCompType (int comp_type, string fnc_name)
 

Private Attributes

protected EntityAI  m_ThisEntityAI
 

Static Private Attributes

static private string  m_CompNames [COMP_TYPE_COUNT]
 

Member Function Documentation

static void Component::Init ( )
staticprivate
static string Component::GetNameByType ( int  comp_type )
staticprivate
static bool Component::IsTypeExist ( int  comp_type )
staticprivate
static void Component::LogWarningAlredyExist ( int  comp_type,
string  fnc_name 
)
staticprivate
static void Component::LogErrorBadCompType ( int  comp_type,
string  fnc_name 
)
staticprivate
void Component::SetParentEntityAI ( EntityAI  e )
private
string Component::GetCompName ( )
private
int Component::GetCompType ( )
private

References COMP_TYPE_UNDEFINED.

Referenced by GetCompName().

void Component::LogThis ( string  msg,
string  fnc_name = "n/a" 
)
private
void Component::LogThisWarning ( string  msg,
string  fnc_name = "n/a" 
)
private
void Component::LogThisError ( string  msg,
string  fnc_name = "n/a" 
)
private
Shape Component::DebugDrawBBox ( float  width = -1,
float  length = -1,
float  height = -1 
)
private

Referenced by EntityAI::DebugDrawBBox().

Shape Component::DebugDrawDirection ( float  distance = 1 )
private
protected void Component::Event_OnAwake ( )
private
protected void Component::Event_OnInit ( )
private
void Component::Event_OnItemAttached ( EntityAI  item,
string  slot_name 
)
private

References Log.

Referenced by EntityAI::EEItemAttached().

void Component::Event_OnItemDetached ( EntityAI  item,
string  slot_name 
)
private

References Log.

Referenced by EntityAI::EEItemDetached().

void Component::Event_OnFrame ( _entity  other,
float  timeSlice 
)
private

Referenced by EntityAI::EOnFrame().

Member Data Documentation

private string Component::m_CompNames[COMP_TYPE_COUNT]
staticprivate

Referenced by GetNameByType().

protected EntityAI Component::m_ThisEntityAI
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)