DayZ 1.29
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/DayZ/Entities/EntityAI.c строка 3410

3411 {
3412 if (m_EM)
3413 return m_EM;
3414
3416 return ComponentEnergyManager.Cast( GetComponent(COMP_TYPE_ENERGY_MANAGER) );
3417 return NULL;
3418 }
ComponentEnergyManager m_EM
bool HasComponent(int comp_type)
IsComponentExist.
Component GetComponent(int comp_type, string extended_class_name="")
GetComponent.
const int COMP_TYPE_ENERGY_MANAGER
Определения Component.c:9

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

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