PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Component Class Reference

Private Member Functions

void Event_OnFrame (IEntity other, float timeSlice)
 
Shape DebugBBoxDraw ()
 
void DebugBBoxSetColor (int color)
 
void DebugBBoxDelete ()
 
Shape DebugDirectionDraw (float distance=1)
 
void DebugDirectionSetColor (int color)
 
void DebugDirectionDelete ()
 
void SetParentEntityAI (EntityAI e)
 
void Event_OnAwake ()
 
void Event_OnInit ()
 
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")
 
string GetCompName ()
 
int GetCompType ()
 
void Event_OnItemAttached (EntityAI item, string slot_name)
 
void Event_OnItemDetached (EntityAI item, string slot_name)
 
override Shape DebugBBoxDraw ()
 
override void DebugBBoxSetColor (int color)
 
override void DebugBBoxDelete ()
 
override Shape DebugDirectionDraw (float distance=1)
 
override void DebugDirectionDelete ()
 
void OnDrawing ()
 

Static Private Member Functions

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

Private Attributes

protected EntityAI m_ThisEntityAI
 
protected Shape m_DebugShapeBBox
 
protected Shape m_DebugShapeDirection
 
protected float m_DebugShapeDirectionDist
 

Static Private Attributes

static private string m_CompNames [COMP_TYPE_COUNT]
 

Member Function Documentation

◆ DebugBBoxDelete() [1/2]

void DebugBBoxDelete ( )
private

◆ DebugBBoxDelete() [2/2]

override void DebugBBoxDelete ( )
inlineprivate

◆ DebugBBoxDraw() [1/2]

Shape DebugBBoxDraw ( )
private

◆ DebugBBoxDraw() [2/2]

override Shape DebugBBoxDraw ( )
inlineprivate

◆ DebugBBoxSetColor() [1/2]

void DebugBBoxSetColor ( int  color)
private

◆ DebugBBoxSetColor() [2/2]

override void DebugBBoxSetColor ( int  color)
inlineprivate

◆ DebugDirectionDelete() [1/2]

void DebugDirectionDelete ( )
private

◆ DebugDirectionDelete() [2/2]

override void DebugDirectionDelete ( )
inlineprivate

◆ DebugDirectionDraw() [1/2]

Shape DebugDirectionDraw ( float  distance = 1)
private

◆ DebugDirectionDraw() [2/2]

override Shape DebugDirectionDraw ( float  distance = 1)
inlineprivate

◆ DebugDirectionSetColor()

void DebugDirectionSetColor ( int  color)
private

◆ Event_OnAwake()

void Event_OnAwake ( )
inlineprivate

◆ Event_OnFrame()

void Event_OnFrame ( IEntity  other,
float  timeSlice 
)
private

◆ Event_OnInit()

void Event_OnInit ( )
inlineprivate

◆ Event_OnItemAttached()

void Event_OnItemAttached ( EntityAI  item,
string  slot_name 
)
inlineprivate

References LogThis().

◆ Event_OnItemDetached()

void Event_OnItemDetached ( EntityAI  item,
string  slot_name 
)
inlineprivate

References LogThis().

◆ GetCompName()

string GetCompName ( )
inlineprivate

References GetCompType(), and GetNameByType().

Referenced by LogThisError(), and LogThisWarning().

◆ GetCompType()

int GetCompType ( )
inlineprivate

References COMP_TYPE_UNDEFINED.

Referenced by GetCompName().

◆ GetNameByType()

static string GetNameByType ( int  comp_type)
inlinestaticprivate

◆ Init()

static void Init ( )
inlinestaticprivate

◆ IsTypeExist()

static bool IsTypeExist ( int  comp_type)
inlinestaticprivate

◆ LogErrorBadCompType()

static void LogErrorBadCompType ( int  comp_type,
string  fnc_name 
)
inlinestaticprivate

◆ LogThis()

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

◆ LogThisError()

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

◆ LogThisWarning()

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

◆ LogWarningAlredyExist()

static void LogWarningAlredyExist ( int  comp_type,
string  fnc_name 
)
inlinestaticprivate

◆ OnDrawing()

void OnDrawing ( )
inlineprivate

◆ SetParentEntityAI()

void SetParentEntityAI ( EntityAI  e)
inlineprivate

Field Documentation

◆ m_CompNames

private string m_CompNames[COMP_TYPE_COUNT]
staticprivate

Referenced by GetNameByType(), and Init().

◆ m_DebugShapeBBox

protected Shape m_DebugShapeBBox
private

◆ m_DebugShapeDirection

protected Shape m_DebugShapeDirection
private

◆ m_DebugShapeDirectionDist

protected float m_DebugShapeDirectionDist
private

Referenced by DebugDirectionDraw().

◆ m_ThisEntityAI

protected EntityAI m_ThisEntityAI
private

Referenced by ComponentAnimalBleeding::Bleed(), ComponentEnergyManager::CanBePluggedInto(), ComponentEnergyManager::CanReceivePlugFrom(), ComponentEnergyManager::CanWork(), ComponentEnergyManager::CheckWetness(), ComponentEnergyManager::ConsumeEnergy(), ComponentEnergyManager::DebugUpdate(), ComponentEnergyManager::DeviceUpdate(), ComponentEnergyManager::Event_OnAwake(), ComponentEnergyManager::Event_OnInit(), ComponentEnergyManager::FindAndConsumeEnergy(), ComponentEnergyManager::GetEnergyMax(), ComponentEnergyManager::GetThisEntityAI(), ComponentAnimalBleeding::InflictWoundDamage(), LogThisError(), LogThisWarning(), ComponentEnergyManager::OnAttachmentAdded(), ComponentEnergyManager::OnDeviceDestroyed(), 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: