78 string msg =
"Bad parameter comp_type='"+comp_type.ToString()+
"'. Parameter must be 0-"+(
COMP_TYPE_COUNT - 1).
ToString()+
". Returning component name 'None'.";
118 void LogThis(
string msg,
string fnc_name =
"n/a")
152 return COMP_TYPE_UNDEFINED;
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")
static string m_CompNames[COMP_TYPE_COUNT]
void DebugBBoxSetColor(int color)
void Event_OnItemAttached(EntityAI item, string slot_name)
static void LogWarning(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as warning message.
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
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