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

◆ IsTimeToTick()

bool NotifierBase::IsTimeToTick ( int current_time)
inlineprivate

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

33 {
34 int tickTime = (m_TickIntervalLastTick + m_TickInterval);
35 bool tick = (current_time >= tickTime);
36 #ifdef DIAG_NOTIFIER_LOGS
37 ErrorEx(string.Format("Tick time for notifier %1 is %2 | Current time= %3.", this, tickTime, current_time), ErrorExSeverity.INFO);
38 if (tick)
39 {
40 float timePassed = (current_time - m_TickIntervalLastTick) / 1000.0;
41 float expectedInterval = m_TickInterval / 1000.0;
42 float drift = (current_time - tickTime) / 1000.0;
43 ErrorEx(string.Format("Notifier %1 updated after %2s (expected: %3s, drift: +%4s)", this, timePassed, expectedInterval, drift), ErrorExSeverity.INFO);
44 }
45 #endif
46 return tick;
47 }
int m_TickInterval
Определения NotifierBase.c:12
int m_TickIntervalLastTick
Определения NotifierBase.c:13
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, m_TickInterval и m_TickIntervalLastTick.

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