Callback function.
148 {
150 switch (
g_Game.GetGameState())
151 {
152 case DayZGameState.IN_GAME:
153 {
154 string addr;
155 int port;
156 bool found =
g_Game.GetHostAddress( addr, port );
157 if (addr != session_address || port != session_port )
158 {
159 if (found)
160 {
161 OnlineServices.SetInviteServerInfo( session_address, session_port );
162
163
164
165
167 {
168 g_Game.GetUIManager().CloseAll();
170 {
171 NotificationSystem.AddNotification(
NotificationType.CONNECT_FAIL_GENERIC, NotificationSystem.DEFAULT_TIME_DISPLAYED );
172 }
173 }
174 }
175 else
176 {
177 NotificationSystem.AddNotification(
NotificationType.JOIN_FAIL_GET_SESSION, NotificationSystem.DEFAULT_TIME_DISPLAYED );
178 }
179 }
180 else
181 {
182 NotificationSystem.AddNotification(
NotificationType.INVITE_FAIL_SAME_SERVER, NotificationSystem.DEFAULT_TIME_DISPLAYED,
"#ps4_already_in_session" );
183 }
184 break;
185 }
186 case DayZGameState.CONNECTING:
187 {
189
190 }
191 default:
192 {
193 g_Game.ConnectFromJoin( session_address, session_port );
194 break;
195 }
196 }
197 }
enum DisconnectSessionFlags DISCONNECT_SESSION_FLAGS_FORCE
NotificationType
DEPRECATED (moved into NotificationSystem)