Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Component Class Reference
Inheritance diagram for Component:
ComponentAnimalBleeding ComponentBodyStaging ComponentEnergyManager

Protected Member Functions

void DebugBBoxDelete ()
override void DebugBBoxDelete ()
Shape DebugBBoxDraw ()
override Shape DebugBBoxDraw ()
void DebugBBoxSetColor (int color)
override void DebugBBoxSetColor (int color)
void DebugDirectionDelete ()
override void DebugDirectionDelete ()
Shape DebugDirectionDraw (float distance=1)
override Shape DebugDirectionDraw (float distance=1)
void DebugDirectionSetColor (int color)
void Event_OnAwake ()
void Event_OnFrame (IEntity other, float timeSlice)
void Event_OnInit ()
void Event_OnItemAttached (EntityAI item, string slot_name)
void Event_OnItemDetached (EntityAI item, string slot_name)
string GetCompName ()
int GetCompType ()
void LogThis (string msg, string fnc_name="n/a")
void LogThisError (string msg, string fnc_name="n/a")
void LogThisWarning (string msg, string fnc_name="n/a")
void OnDrawing ()
void SetParentEntityAI (EntityAI e)

Static Protected Member Functions

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

Protected Attributes

Shape m_DebugShapeBBox
Shape m_DebugShapeDirection
float m_DebugShapeDirectionDist
EntityAI m_ThisEntityAI

Static Private Attributes

static string m_CompNames [COMP_TYPE_COUNT]

Detailed Description

Definition at line 15 of file component.c.

Member Function Documentation

◆ DebugBBoxDelete() [1/2]

void DebugBBoxDelete ( )
protected

◆ DebugBBoxDelete() [2/2]

override void DebugBBoxDelete ( )
inlineprotected

◆ DebugBBoxDraw() [1/2]

Shape DebugBBoxDraw ( )
protected

References Shape.

◆ DebugBBoxDraw() [2/2]

override Shape DebugBBoxDraw ( )
inlineprotected

◆ DebugBBoxSetColor() [1/2]

void DebugBBoxSetColor ( int color)
protected

◆ DebugBBoxSetColor() [2/2]

override void DebugBBoxSetColor ( int color)
inlineprotected

Definition at line 33 of file componententitydebug.c.

References m_DebugShapeBBox.

◆ DebugDirectionDelete() [1/2]

void DebugDirectionDelete ( )
protected

◆ DebugDirectionDelete() [2/2]

override void DebugDirectionDelete ( )
inlineprotected

◆ DebugDirectionDraw() [1/2]

Shape DebugDirectionDraw ( float distance = 1)
protected

References Shape.

◆ DebugDirectionDraw() [2/2]

override Shape DebugDirectionDraw ( float distance = 1)
inlineprotected

◆ DebugDirectionSetColor()

void DebugDirectionSetColor ( int color)
protected

◆ Event_OnAwake()

void Event_OnAwake ( )
inlineprotected

Definition at line 102 of file component.c.

Referenced by ComponentsBank::CreateComponent().

◆ Event_OnFrame()

void Event_OnFrame ( IEntity other,
float timeSlice )
protected

◆ Event_OnInit()

void Event_OnInit ( )
inlineprotected

Definition at line 110 of file component.c.

Referenced by ComponentsBank::CreateComponent().

◆ Event_OnItemAttached()

void Event_OnItemAttached ( EntityAI item,
string slot_name )
inlineprotected

Definition at line 158 of file component.c.

References LogThis().

◆ Event_OnItemDetached()

void Event_OnItemDetached ( EntityAI item,
string slot_name )
inlineprotected

Definition at line 167 of file component.c.

References LogThis().

◆ GetCompName()

string GetCompName ( )
inlineprotected

Definition at line 142 of file component.c.

References GetCompType(), and GetNameByType().

Referenced by LogThisError(), and LogThisWarning().

◆ GetCompType()

int GetCompType ( )
inlineprotected

Definition at line 150 of file component.c.

Referenced by GetCompName().

◆ GetNameByType()

string GetNameByType ( int comp_type)
inlinestaticprotected

◆ Init()

void Init ( )
inlinestaticprotected

◆ IsTypeExist()

bool IsTypeExist ( int comp_type)
inlinestaticprotected

◆ LogErrorBadCompType()

void LogErrorBadCompType ( int comp_type,
string fnc_name )
inlinestaticprotected

◆ LogThis()

void LogThis ( string msg,
string fnc_name = "n/a" )
inlineprotected

Definition at line 118 of file component.c.

Referenced by Event_OnItemAttached(), and Event_OnItemDetached().

◆ LogThisError()

void LogThisError ( string msg,
string fnc_name = "n/a" )
inlineprotected

Definition at line 134 of file component.c.

References GetCompName(), Debug::LogError(), and m_ThisEntityAI.

◆ LogThisWarning()

void LogThisWarning ( string msg,
string fnc_name = "n/a" )
inlineprotected

Definition at line 126 of file component.c.

References GetCompName(), Debug::LogWarning(), and m_ThisEntityAI.

◆ LogWarningAlredyExist()

void LogWarningAlredyExist ( int comp_type,
string fnc_name )
inlinestaticprotected

Definition at line 85 of file component.c.

References GetNameByType(), and Debug::LogError().

Referenced by ComponentsBank::CreateComponent().

◆ OnDrawing()

void OnDrawing ( )
inlineprotected

◆ SetParentEntityAI()

void SetParentEntityAI ( EntityAI e)
inlineprotected

Definition at line 94 of file component.c.

References m_ThisEntityAI.

Referenced by ComponentsBank::CreateComponent().

Field Documentation

◆ m_CompNames

string m_CompNames[COMP_TYPE_COUNT]
staticprivate

Definition at line 20 of file component.c.

Referenced by GetNameByType(), and Init().

◆ m_DebugShapeBBox

Shape m_DebugShapeBBox
protected

◆ m_DebugShapeDirection

Shape m_DebugShapeDirection
protected

◆ m_DebugShapeDirectionDist

float m_DebugShapeDirectionDist
protected

Definition at line 6 of file componententitydebug.c.

Referenced by DebugDirectionDraw().

◆ m_ThisEntityAI

EntityAI m_ThisEntityAI
protected

Definition at line 24 of file component.c.

Referenced by ComponentAnimalBleeding::Bleed(), ComponentEnergyManager::CanBePluggedInto(), ComponentEnergyManager::CanReceivePlugFrom(), ComponentEnergyManager::CanWork(), ComponentEnergyManager::CheckWetness(), ComponentEnergyManager::ConsumeEnergy(), DebugBBoxDraw(), DebugDirectionDraw(), ComponentEnergyManager::DebugUpdate(), ComponentEnergyManager::DeviceUpdate(), ComponentEnergyManager::Event_OnAwake(), ComponentEnergyManager::Event_OnInit(), ComponentEnergyManager::FindAndConsumeEnergy(), ComponentEnergyManager::GetEnergyMax(), ComponentEnergyManager::GetThisEntityAI(), ComponentAnimalBleeding::InflictWoundDamage(), LogThisError(), LogThisWarning(), ComponentEnergyManager::OnAttachmentAdded(), ComponentEnergyManager::OnDeviceDestroyed(), OnDrawing(), ComponentEnergyManager::OnEnergyAdded(), ComponentEnergyManager::OnEnergyConsumed(), ComponentEnergyManager::OnInteractBranch(), ComponentEnergyManager::OnIsPlugged(), ComponentEnergyManager::OnIsUnplugged(), ComponentEnergyManager::OnOwnSocketReleased(), ComponentEnergyManager::OnOwnSocketTaken(), ComponentEnergyManager::OnWork(), ComponentEnergyManager::PlugInDevice(), ComponentEnergyManager::PlugThisInto(), ComponentEnergyManager::ResetEnergyUsage(), ComponentEnergyManager::SetEnergy(), SetParentEntityAI(), ComponentEnergyManager::SwitchOff(), ComponentEnergyManager::SwitchOn(), ComponentEnergyManager::Synch(), ComponentBodyStaging::SynchSkinnedState(), ComponentEnergyManager::UnplugCordFromSocket(), ComponentEnergyManager::UnplugDevice(), ComponentEnergyManager::UnplugThis(), ComponentEnergyManager::UpdateCanWork(), ComponentEnergyManager::UpdatePlugState(), ComponentEnergyManager::UpdateSelections(), and ComponentEnergyManager::UpdateSocketSelections().


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