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

◆ StartCountdown()

void UIScriptedMenu::StartCountdown ( int time)
inlineprivate

Called once the server answered the logout request with the time it needs to log us out.

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

99 {
100 if (m_bJoining)
101 return;
102
103 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(this.OnLogoutReplyTimeout);
104
105 if (time > JOIN_LEAD_TIME_S)
106 {
107 SetTime(time);
108 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(this.UpdateTime);
109 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(UpdateTime, 1000, true);
110 }
111 else
112 {
113 // nothing worth waiting for, the server is logging us out right away
115 }
116 }
DayZGame g_Game
Определения DayZGame.c:4074
void JoinTargetServer()
Определения InviteMenu.c:160
void SetTime(int time)
Определения InviteMenu.c:126
void UpdateTime()
Определения InviteMenu.c:147
bool m_bJoining
Определения InviteMenu.c:11
void OnLogoutReplyTimeout()
Определения InviteMenu.c:120
const int JOIN_LEAD_TIME_S
How much of the logout is left when we start joining, see UpdateTime.
Определения InviteMenu.c:6
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, g_Game, JOIN_LEAD_TIME_S, JoinTargetServer(), m_bJoining, OnLogoutReplyTimeout(), SetTime() и UpdateTime().