DayZ 1.30
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 строка 3409

3410 {
3411 if (m_EM)
3412 return m_EM;
3413
3415 return ComponentEnergyManager.Cast( GetComponent(COMP_TYPE_ENERGY_MANAGER) );
3416 return NULL;
3417 }
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().