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

◆ IsTimeToTick()

bool NotifierBase::IsTimeToTick ( int current_time)
inlineprivate

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

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

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

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