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

◆ GetCompEM()

ComponentEnergyManager Entity::GetCompEM ( )
inlineprotected

energy manager ENERGY MANAGER:Documentation: Confluence >> Camping & Squatting >> Electricity >> Energy Manager functionalities Use this to access Energy Manager component on your device. Returns NULL if the given object lacks such component.

См. определение в файле 3_Game/Entities/EntityAI.c строка 3363

3364 {
3365 if (m_EM)
3366 return m_EM;
3367
3369 return ComponentEnergyManager.Cast( GetComponent(COMP_TYPE_ENERGY_MANAGER) );
3370 return NULL;
3371 }
ComponentEnergyManager m_EM
Определения 3_Game/Entities/EntityAI.c:306
bool HasComponent(int comp_type)
IsComponentExist.
Определения 3_Game/Entities/EntityAI.c:340
Component GetComponent(int comp_type, string extended_class_name="")
GetComponent.
Определения 3_Game/Entities/EntityAI.c:315
const int COMP_TYPE_ENERGY_MANAGER
Определения Component.c:9

Перекрестные ссылки COMP_TYPE_ENERGY_MANAGER, GetComponent(), HasComponent() и m_EM.

Используется в GetDebugText().