56 return m_CompNames[comp_type];
78 string msg =
"Bad parameter comp_type='"+comp_type.ToString()+
"'. Parameter must be 0-"+(
COMP_TYPE_COUNT - 1).
ToString()+
". Returning component name 'None'.";
79 Debug.LogError(msg,
"Component",
"n/a", fnc_name);
88 Debug.LogError(msg,
"Component",
"n/a", fnc_name);
118 void LogThis(
string msg,
string fnc_name =
"n/a")
160 LogThis(
"" + item +
" -> " + slot_name,
"Event_OnItemAttached");
169 LogThis(
"" + item +
" <- " + slot_name,
"Event_OnItemDetached");
Shape DebugDirectionDraw(float distance=1)
void SetParentEntityAI(EntityAI e)
static void LogErrorBadCompType(int comp_type, string fnc_name)
static void LogWarningAlredyExist(int comp_type, string fnc_name)
void LogThis(string msg, string fnc_name="n/a")
static string GetNameByType(int comp_type)
void DebugDirectionDelete()
void Event_OnItemDetached(EntityAI item, string slot_name)
void Event_OnFrame(IEntity other, float timeSlice)
static bool IsTypeExist(int comp_type)
void DebugDirectionSetColor(int color)
void LogThisWarning(string msg, string fnc_name="n/a")
void LogThisError(string msg, string fnc_name="n/a")
void DebugBBoxSetColor(int color)
void Event_OnItemAttached(EntityAI item, string slot_name)
const int COMP_TYPE_ANIMAL_BLEEDING
const int COMP_TYPE_BODY_STAGING
const string COMP_NAME_NONE
const int COMP_TYPE_COUNT
const int COMP_TYPE_UNDEFINED
const int COMP_TYPE_ENERGY_MANAGER
const int COMP_TYPE_ETITY_DEBUG