114 {
116 #ifdef DIAG_NOTIFIER_LOGS
117 if (notifierCount == 0)
118 {
120 return;
121 }
122 #endif
123
124
126 {
127 #ifdef DIAG_NOTIFIER_LOGS
129 #endif
131 }
132
134 #ifdef DIAG_NOTIFIER_LOGS
136 #endif
137
139 if (currentNotifier && currentNotifier.
IsActive())
140 {
141 #ifdef DIAG_NOTIFIER_LOGS
143 #endif
144 int currentTime =
g_Game.GetTime();
145
146
148 {
149 #ifdef DIAG_NOTIFIER_LOGS
151 #endif
152 currentNotifier.
OnTick(currentTime);
153 }
154 #ifdef DIAG_NOTIFIER_LOGS
155 else
156 {
158 }
159 #endif
160 }
161 #ifdef DIAG_NOTIFIER_LOGS
162 else
163 {
164 if (!currentNotifier)
166 else
167 ErrorEx(
string.Format(
"Could get notifier %1 with ID %2 but notifier is inactive!", currentNotifier, notifierID),
ErrorExSeverity.INFO);
168 }
169 #endif
170
171
173 }
ref array< int > m_NotifierIDs
NotifierBase m_NotifiersStatic[MAX_COUNT]
ref array< ref NotifierBase > m_Notifiers
void OnTick(float current_Time)
bool IsTimeToTick(int current_time)