DayZ 1.27
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.

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

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

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

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