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

◆ IsEffectExist()

static bool SEffectManager::IsEffectExist ( int effect_id)
inlinestaticprotected

Checks whether an Effect ID is registered in SEffectManager.

Аргументы
effect_idint The Effect ID to check
Возвращает
bool Whether there is an Effect registered for this ID

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

295 {
296 if (!m_IsCleanup)
297 return m_EffectsMap[effect_id] != null;
298 else
299 return false;
300 }
static ref map< int, ref Effect > m_EffectsMap
Static map of all registered effects <id, Effect>
Определения EffectManager.c:8
static bool m_IsCleanup
Bool to check whether Cleanup is happening, which means that the maps should no longer be accessed.
Определения EffectManager.c:16

Перекрестные ссылки m_EffectsMap и m_IsCleanup.

Используется в CreateCarDestroyedEffect(), EOnPostSimulate() и ManBase::SetDecayEffects().