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

◆ AddNotification()

static void NotificationSystem::AddNotification ( NotificationType type,
float show_time,
string detail_text = "" )
inlinestaticprotected

Send notification from default types to local player.

Аргументы
typethe type of notification to send - these can be viewed in /Scripts/Data/Notifications.json
show_timeamount of time this notification is displayed
detail_textadditional text that can be added to the notification under the title - will not display additional text if not set

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

193 {
194 if (m_Instance.m_TimeArray.Count() < MAX_NOTIFICATIONS)
195 {
196 NotificationRuntimeData data = new NotificationRuntimeData(show_time, m_Instance.GetNotificationData(type), detail_text);
197
198 m_Instance.m_TimeArray.Insert(data);
199 m_Instance.m_OnNotificationAdded.Invoke(data);
200 }
201 else
202 {
203 NotificationRuntimeData dataDeferred = new NotificationRuntimeData(show_time, m_Instance.GetNotificationData(type), detail_text);
204 m_Instance.m_DeferredArray.Insert(dataDeferred);
205 }
206 }
void NotificationRuntimeData(float time, NotificationData data, string detail_text)
Определения NotificationSystem.c:23
static ref NotificationSystem m_Instance
Определения NotificationSystem.c:79
static const int MAX_NOTIFICATIONS
Определения NotificationSystem.c:75

Перекрестные ссылки m_Instance, MAX_NOTIFICATIONS и NotificationRuntimeData().

Используется в CGame::DisconnectSessionEx(), OnlineServices::OnFriendsAsync(), BiosSessionService::OnGetGameplaySession(), CGame::OnRPC() и BiosUserManager::SelectUserEx().