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

◆ DeleteLightWithDelay()

void EntityLightSource::DeleteLightWithDelay ( )
inlineprivate

Correct way of deleting light from memory. It is necesarry to have this delay due to hierarchy.

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

107 {
108 DetachFromParent(); // This is the reason for the delay
109
110 if (g_Game)
111 {
112 if (!m_DeleteTimer)
113 m_DeleteTimer = new Timer( CALL_CATEGORY_SYSTEM );
114
115 m_DeleteTimer.Run( 0.03 , this, "DeleteLightNow", NULL, true);
116 }
117
118 }
DayZGame g_Game
Определения DayZGame.c:3942
void DetachFromParent()
Detaches this light from its parent entity.
Определения ScriptedLightBase.c:192
ref Timer m_DeleteTimer
Определения ScriptedLightBase.c:41
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, DetachFromParent(), g_Game и m_DeleteTimer.

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