Callback function.
148 {
150 switch (
g_Game.GetGameState())
151 {
152 case DayZGameState.IN_GAME:
153 {
154 string addr;
155 int port;
157 if (addr != session_address || port != session_port )
158 {
159 if (found)
160 {
161 OnlineServices.SetInviteServerInfo( session_address, session_port );
162 g_Game.GetUIManager().CloseAll();
164 {
165 NotificationSystem.AddNotification(
NotificationType.CONNECT_FAIL_GENERIC, NotificationSystem.DEFAULT_TIME_DISPLAYED );
166 }
167 }
168 else
169 {
170 NotificationSystem.AddNotification(
NotificationType.JOIN_FAIL_GET_SESSION, NotificationSystem.DEFAULT_TIME_DISPLAYED );
171 }
172 }
173 else
174 {
175 NotificationSystem.AddNotification(
NotificationType.INVITE_FAIL_SAME_SERVER, NotificationSystem.DEFAULT_TIME_DISPLAYED,
"#ps4_already_in_session" );
176 }
177 break;
178 }
179 case DayZGameState.CONNECTING:
180 {
182
183 }
184 default:
185 {
186 g_Game.ConnectFromJoin( session_address, session_port );
187 break;
188 }
189 }
190 }
enum DisconnectSessionFlags DISCONNECT_SESSION_FLAGS_FORCE
NotificationType
DEPRECATED (moved into NotificationSystem)
proto bool GetHostAddress(out string address, out int port)
Gets the server address. (from client)
proto native CGame GetGame()