DayZ 1.27
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 (GetGame())
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 }
void DetachFromParent()
Detaches this light from its parent entity.
Определения ScriptedLightBase.c:192
ref Timer m_DeleteTimer
Определения ScriptedLightBase.c:41
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Определения tools.c:8

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

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