DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetNameByType()

static string Component::GetNameByType ( int comp_type)
inlinestaticprotected

См. определение в файле Component.c строка 48

49 {
50 if ( IsTypeExist(comp_type) == false )
51 {
52 LogErrorBadCompType(comp_type, "Component->GetNameByType()");
53 return "None";
54 }
55
56 return m_CompNames[comp_type];
57 }
static void LogErrorBadCompType(int comp_type, string fnc_name)
Определения Component.c:76
static bool IsTypeExist(int comp_type)
Определения Component.c:62
static string m_CompNames[COMP_TYPE_COUNT]
Определения Component.c:20

Перекрестные ссылки IsTypeExist(), LogErrorBadCompType() и m_CompNames.

Используется в ComponentsBank::CreateComponent(), GetCompName() и LogWarningAlredyExist().