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

◆ SetNotifierActive()

bool SetNotifierActive ( int notifier_id,
bool state,
bool immediate = false )
protected

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

176 {
177 NotifierBase notifier = FindNotifier(notifier_id);
178 if (!notifier)
179 {
180 #ifdef DIAG_NOTIFIER_LOGS
181 ErrorEx(string.Format("SetNotifierActive failed, notifier %1 not found.", notifier_id), ErrorExSeverity.ERROR);
182 #endif
183 return false;
184 }
185
186 bool changed = (notifier.IsActive() != state);
187
188 notifier.SetActive(state);
189
190 if (!state)
191 {
192 ClearImmediatePending(notifier_id);
193 }
194 else if (changed && immediate)
195 {
196 RequestImmediateUpdate(notifier_id);
197 }
198
199 return changed;
200 }
void ClearImmediatePending(int notifier_id)
Определения NotifiersManager.c:147
NotifierBase FindNotifier(int type)
Определения NotifiersManager.c:120
void RequestImmediateUpdate(int notifier_id)
Определения NotifiersManager.c:155
void SetActive(bool state)
Определения NotifierBase.c:66
bool IsActive()
Определения NotifierBase.c:61
Определения NotifierBase.c:2
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки ClearImmediatePending(), ErrorEx, FindNotifier(), NotifierBase::IsActive(), RequestImmediateUpdate() и NotifierBase::SetActive().

Используется в ActivateByType() и DeactivateByType().