Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
onlineservices.c
Go to the documentation of this file.
2{
3 static ref ScriptInvoker m_FriendsAsyncInvoker = new ScriptInvoker();
4 static ref ScriptInvoker m_PermissionsAsyncInvoker = new ScriptInvoker();
5 static ref ScriptInvoker m_ServersAsyncInvoker = new ScriptInvoker();
6 static ref ScriptInvoker m_ServerAsyncInvoker = new ScriptInvoker();
7 static ref ScriptInvoker m_MuteUpdateAsyncInvoker = new ScriptInvoker(); // DEPRECATED
8 static ref ScriptInvoker m_ServerModLoadAsyncInvoker = new ScriptInvoker();
9
10 static BiosClientServices m_ClientServices;
11 static ref TrialService m_TrialService;
12
13 protected static string m_InviteServerIP;
14 protected static int m_InviteServerPort;
15 protected static string m_CurrentServerIP;
16 protected static int m_CurrentServerPort;
18
19
21 protected static ref map<string, bool> m_MuteList;
23
24 protected static bool m_FirstFriendsLoad = true;
25 protected static bool m_MultiplayState = false;
26 protected static ref array<string> m_PendingInvites;
27
28 protected static ref BiosUser m_BiosUser;
29
30 static void Init()
31 {
32 #ifdef PLATFORM_CONSOLE
33 #ifndef PLATFORM_WINDOWS // if app is not on Windows with -XBOX parameter
34 if ( !m_TrialService )
35 m_TrialService = new TrialService;
36 if ( !m_FriendsList )
38 if ( !m_MuteList )
40 if ( !m_PermissionsList )
42
43 m_FriendsList.Clear();
44 m_PermissionsList.Clear();
45 m_MuteList.Clear();
46 #endif
47 #endif
48
50 }
51
52 static bool IsInitialized()
53 {
54 return ( m_ClientServices != null );
55 }
56
57 static void GetClientServices()
58 {
59 BiosUserManager user_manager = g_Game.GetUserManager();
60 if ( user_manager )
61 {
62 BiosUser selected_user = user_manager.GetSelectedUser();
63 if ( selected_user )
64 {
65 m_ClientServices = selected_user.GetClientServices();
66 }
67 #ifdef PLATFORM_WINDOWS
69 user_manager.GetUserList( user_list );
70 if ( user_list.Count() > 0 )
71 {
72 m_ClientServices = user_list.Get( 0 ).GetClientServices();
73 }
74 #endif
75 }
76 else
77 {
78 Error( "BiosClientServices Error: Usermanager does not exist." );
79 }
80 }
81
82 static bool ErrorCaught( EBiosError error )
83 {
84 switch ( error )
85 {
86 case EBiosError.OK:
87 {
88 return false;
89 }
90 }
91
92 DebugPrint.LogErrorAndTrace( string.Format("BiosClientServices Error: %1", ErrorModuleHandler.GetClientMessage(ErrorCategory.BIOSError, error)) );
93 return true;
94 }
95
96 static void LoadServers( notnull GetServersInput inputValues )
97 {
99 if ( m_ClientServices )
100 {
101 m_ClientServices.GetLobbyService().GetServers( inputValues );
102 }
103 else
104 {
105 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
106 }
107 }
108
109 static void GetFavoriteServers(TStringArray favServers)
110 {
111 m_ClientServices.GetLobbyService().GetFavoriteServers(favServers);
112 }
113
115 {
116 m_ClientServices.GetLobbyService().GetCachedFavoriteServerInfo(favServersInfoCache);
117 }
118
119 static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited )
120 {
122 if ( m_ClientServices )
123 {
124 if ( is_favorited )
125 {
126 m_ClientServices.GetLobbyService().AddServerFavorite( ipAddress, port, steamQueryPort );
127 }
128 else
129 {
130 m_ClientServices.GetLobbyService().RemoveServerFavorite( ipAddress, port, steamQueryPort );
131 }
132 }
133 else
134 {
135 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
136 }
137 }
138
139 static void GetCurrentServerInfo( string ip, int port )
140 {
142
144 m_CurrentServerPort = port;
145
146 GetServersInput inputValues = new GetServersInput;
147
148 inputValues.SetHostIp( ip );
149 inputValues.SetHostPort( port );
150 inputValues.m_Page = 0;
151 inputValues.m_RowsPerPage = 10;
152 inputValues.m_Platform = 1;
153
154 #ifdef PLATFORM_MSSTORE
155 inputValues.m_Platform = 2;
156 #endif
157 #ifdef PLATFORM_XBOX
158 inputValues.m_Platform = 2;
159 #endif
160 #ifdef PLATFORM_PS4
161 inputValues.m_Platform = 3;
162 #endif
163
164 if ( m_ClientServices )
165 {
166 m_ClientServices.GetLobbyService().GetServers( inputValues );
167 }
168 }
169
171 {
173 return m_CurrentServerInfo;
174 else
175 return g_Game.GetHostData();
176 }
177
179 {
180 m_CurrentServerInfo = null;
183 }
184
185 static void SetInviteServerInfo( string ip, int port )
186 {
187 m_InviteServerIP = ip;
188 m_InviteServerPort = port;
189 }
190
191 static void GetInviteServerInfo( out string ip, out int port )
192 {
193 ip = m_InviteServerIP;
194 port = m_InviteServerPort;
195 }
196
197 static void OnLoadServersAsync( GetServersResult result_list, EBiosError error, string response )
198 {
199 if ( !ErrorCaught( error ) )
200 {
201 if ( m_CurrentServerIP != "" && m_CurrentServerPort > 0 )
202 {
203 foreach ( GetServersResultRow result : result_list.m_Results )
204 {
205 if ( result.m_HostIp == m_CurrentServerIP && result.m_HostPort == m_CurrentServerPort )
206 {
207 m_CurrentServerInfo = result;
210 }
211 }
212 }
213
214 // todo: remove
215 //foreach( GetServersResultRow res : result_list.m_Results )
216 //{
217 // Print("OnLoadServersAsync: result id: " + res.m_Id + "modded: " + res.m_Modded);
218 //}
219
220 // just for example execute the retrieving of extended info for the first server entry in the list
221 //if (result_list.m_Results.Count() > 0)
222 //{
223 //GetServersResultRow re = result_list.m_Results[0];
224 //EBiosError er = m_ClientServices.GetLobbyService().GetServerModList(re.m_Id);
225 //Print("OnLoadServersAsync GetServerModList returns:" + er);
226 //}
227
228 m_ServersAsyncInvoker.Invoke( result_list, error, response );
229 }
230 else
231 {
232 m_ServersAsyncInvoker.Invoke( null, error, "" );
233 }
234 }
235
236
237 static void LoadFriends()
238 {
240 if ( m_ClientServices )
241 {
242 m_ClientServices.GetSocialService().GetFriendsAsync();
243 }
244 else
245 {
246 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
247 }
248 }
249
250 static void ShowUserProfile( string uid )
251 {
253 if ( m_ClientServices )
254 {
255 m_ClientServices.GetSocialService().ShowUserProfileAsync( uid );
256 }
257 else
258 {
259 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
260 }
261 }
262
264 {
265 ErrorCaught( error );
266 }
267
268 static void OnFriendsAsync( BiosFriendInfoArray friend_list, EBiosError error )
269 {
270 if ( !ErrorCaught( error ) )
271 {
272 m_FriendsAsyncInvoker.Invoke( friend_list );
273
274 array<string> friends_simple = new array<string>;
275 for ( int i = 0; i < friend_list.Count(); ++i )
276 {
277 string uid = friend_list[i].m_Uid;
278 BiosFriendInfo storedBfi = m_FriendsList[uid];
279 BiosFriendInfo newBfi = friend_list[i];
280
281 if (storedBfi)
282 {
283 if ( !BiosFriendInfo.Compare( storedBfi, newBfi ) )
284 {
285 friends_simple.Insert( newBfi.m_Uid );
286 }
287 m_FriendsList.Set( uid, newBfi );
288 }
289 else
290 {
291 m_FriendsList.Insert( uid, newBfi );
292 friends_simple.Insert( newBfi.m_Uid );
293 }
294 }
295
296 if ( !m_FirstFriendsLoad )
297 {
298 if ( ClientData.m_LastNewPlayers && ClientData.m_LastNewPlayers.m_PlayerList.Count() > 0 )
299 {
300 foreach ( SyncPlayer player : ClientData.m_LastNewPlayers.m_PlayerList )
301 {
302 if ( m_FriendsList.Contains( player.m_UID ) )
303 {
304 NotificationSystem.AddNotification( NotificationType.FRIEND_CONNECTED, NotificationSystem.DEFAULT_TIME_DISPLAYED, player.m_PlayerName + " " + "#ps4_invite_has_joined_your_session" );
305 }
306 }
307 ClientData.m_LastNewPlayers.m_PlayerList.Clear();
308 }
309 }
310 m_FirstFriendsLoad = false;
311 }
312 }
313
314 static void LoadPermissions( array<string> player_list )
315 {
317 if ( m_ClientServices )
318 {
320 perms.Insert( EBiosPrivacyPermission.COMMUNICATE_VOICE );
321
322 ErrorCaught( m_ClientServices.GetPrivacyService().GetPermissionsAsync( player_list, perms ) );
323 }
324 else
325 {
326 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
327 }
328 }
329
331 {
332 if ( !ErrorCaught( error ) )
333 {
335
336 for ( int i = 0; i < result_list.Count(); i++ )
337 {
338 BiosPrivacyUidResult result = result_list.Get( i );
339 string uid = result.m_Uid;
340 BiosPrivacyPermissionResultArray result_array = m_PermissionsList.Get( uid );
341 BiosPrivacyPermissionResultArray result_array2 = result.m_Results;
342 if ( result_array && result_array2 )
343 {
344 if ( !BiosPrivacyPermissionResult.Compare( result_array.Get( 0 ), result_array2.Get( 0 ) ) )
345 {
346 new_list.Insert( result );
347 m_PermissionsList.Set( uid, result_array2 );
348 }
349 }
350 else
351 {
352 m_PermissionsList.Insert( uid, result_array2 );
353 new_list.Insert( result );
354 }
355 }
356 m_PermissionsAsyncInvoker.Invoke( new_list );
357 }
358 }
359
360 static bool IsPlayerMuted( string id )
361 {
362 if ( m_MuteList.Contains( id ) )
363 {
364 return m_MuteList.Get( id );
365 }
366 return false;
367 }
368
369 static bool MutePlayer( string id, bool mute )
370 {
371 if ( m_MuteList.Contains( id ) )
372 {
373 m_MuteList.Set( id, mute );
374 }
375 else
376 {
377 m_MuteList.Insert( id, mute );
378 }
379
380 // notify server
382 ctx.Write( INPUT_UDT_USER_MUTE_XBOX );
383 ctx.Write( id );
384 ctx.Write( mute );
385 ctx.Send();
386
387 return true;
388 }
389
391 {
392 return m_MuteList;
393 }
394
395 static void ShowInviteScreen()
396 {
397 #ifdef PLATFORM_CONSOLE
399 if ( m_ClientServices )
400 {
401 string addr;
402 int port;
403 if ( g_Game.GetHostAddress( addr, port ) )
404 {
405 ErrorCaught( m_ClientServices.GetSessionService().ShowInviteToGameplaySessionAsync( addr, port ) );
406 }
407 }
408 else
409 {
410 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
411 }
412 #endif
413 }
414
415 static void LoadMPPrivilege()
416 {
417 #ifdef PLATFORM_CONSOLE
419 if ( m_ClientServices )
420 {
421 ErrorCaught( m_ClientServices.GetPrivacyService().GetPrivilegeAsync( EBiosPrivacyPrivilege.MULTIPLAYER_GAMEPLAY, true ) );
422 }
423 else
424 {
425 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
426 }
427 #else
429 #endif
430 }
431
432 static void LoadVoicePrivilege()
433 {
435 if ( m_ClientServices )
436 {
437 ErrorCaught( m_ClientServices.GetPrivacyService().GetPrivilegeAsync( EBiosPrivacyPrivilege.COMMUNICATE_VOICE, true ) );
438 }
439 else
440 {
441 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
442 }
443 }
444
445 static void OnLoadMPPrivilege( EBiosError err )
446 {
447 if ( !ErrorCaught( err ) )
448 {
449 g_Game.TryConnect();
450 }
451 else
452 {
453 if ( g_Game.GetGameState() != DayZGameState.MAIN_MENU )
454 {
455 g_Game.MainMenuLaunch();
456 }
457 else
458 {
459 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
460 g_Game.GamepadCheck();
461 }
462 }
463 }
464
466 {
467 if ( g_Game.GetGameState() == DayZGameState.IN_GAME )
468 {
469 #ifdef PLATFORM_PS4
470 g_Game.GetWorld().DisableReceiveVoN( ErrorCaught( err ) );
471 #endif
472 g_Game.GetWorld().DisableTransmitVoN( ErrorCaught( err ) );
473 }
474 }
475
476 static void SetSessionHandle( string handle )
477 {
479 if ( m_ClientServices )
480 {
481 m_ClientServices.GetSessionService().m_CurrentHandle = handle;
482 }
483 }
484
485 static string GetSessionHandle()
486 {
488 if ( m_ClientServices )
489 {
490 return m_ClientServices.GetSessionService().m_CurrentHandle;
491 }
492 return "";
493 }
494
495 static void GetSession()
496 {
498 if ( m_ClientServices )
499 {
500 m_ClientServices.GetSessionService().TryGetSession( GetSessionHandle() );
501 }
502 }
503
505 {
506 return m_BiosUser;
507 }
508
509 static void SetBiosUser(BiosUser user)
510 {
511 m_BiosUser = user;
512 }
513
514
515 static bool GetMultiplayState()
516 {
517 return m_MultiplayState;
518 }
519
520 static void SetMultiplayState( bool state )
521 {
522 m_MultiplayState = state;
523 bool is_multiplay;
524 if ( ClientData.GetSimplePlayerList() )
525 is_multiplay = state && ( ClientData.GetSimplePlayerList().Count() > 1 );
526
527 if ( m_ClientServices )
528 m_ClientServices.GetSessionService().SetMultiplayState(is_multiplay);
529 }
530
532 {
533 string addr;
534 int port;
535 if ( g_Game.GetHostAddress( addr, port ) )
536 {
538 if ( m_ClientServices )
539 {
540 m_ClientServices.GetSessionService().EnterGameplaySessionAsync( addr, port );
541 SetMultiplayState(true);
542 }
543 }
544 }
545
547 {
549 if ( m_ClientServices )
550 {
551 GetServersResultRow currentServerInfo = GetCurrentServerInfo();
552
553 if ( currentServerInfo )
554 m_ClientServices.GetSessionService().LeaveGameplaySessionAsync(currentServerInfo.m_HostIp, currentServerInfo.m_HostPort);
555 else if ( m_CurrentServerIP != "" )
556 m_ClientServices.GetSessionService().LeaveGameplaySessionAsync(m_CurrentServerIP, m_CurrentServerPort);
557
558 SetMultiplayState(false);
559 m_FirstFriendsLoad = true;
560
561 if ( m_FriendsList )
562 m_FriendsList.Clear();
563 }
564 }
565
567 {
568 string addr;
569 int port;
570 if ( g_Game.GetHostAddress( addr, port ) )
571 {
573 if ( m_ClientServices )
574 {
575 m_ClientServices.GetSessionService().SetGameplayActivityAsync( addr, port );
576 }
577 }
578 }
579
580 static void SetPendingInviteList( array<string> invitees )
581 {
582 string addr;
583 int port;
584 if ( g_Game.GetHostAddress( addr, port ) )
585 {
587 if ( m_ClientServices )
588 {
589 m_PendingInvites = invitees;
590 m_ClientServices.GetSessionService().InviteToGameplaySessionAsync( addr, port, GetPendingInviteList() );
591 }
592 }
593 else
594 {
595 m_PendingInvites = invitees;
596 }
597 }
598
600 {
601 array<string> already_on_server = ClientData.GetSimplePlayerList();
602 if ( already_on_server && m_PendingInvites )
603 {
604 array<string> new_to_server = new array<string>;
605 foreach ( string invitee : m_PendingInvites )
606 {
607 if ( already_on_server.Find( invitee ) == -1 )
608 {
609 new_to_server.Insert( invitee );
610 }
611 }
612 return new_to_server;
613 }
614 else
615 {
616 return m_PendingInvites;
617 }
618 }
619
620 static void ClearPendingInviteList( array<string> invitees )
621 {
622 delete m_PendingInvites;
623 }
624
625 static int m_AutoConnectTries = 0;
627 {
629 if ( m_ClientServices && m_AutoConnectTries == 0 )
630 {
633 input.SetOfficial( true );
634 m_ClientServices.GetLobbyService().GetFirstServerWithEmptySlot( input );
635 }
636 }
637
639 {
640 GetServersResultRow result;
642
643 if ( results && results.m_Result && results.m_Result.m_Results && results.m_Result.m_Results.Count() > 0 )
644 {
645 foreach ( GetServersResultRow result_temp : results.m_Result.m_Results )
646 {
647 if ( result_temp.m_FreeSlots > 0 )
648 {
649 results_free.Insert( result_temp );
650 }
651 }
652 }
653
654 return results_free.GetRandomElement();
655 }
656
658 {
659 if ( !ErrorCaught( error ) )
660 {
661 GetServersResultRow result = GetRandomFreeResult( result_list );
662 if ( result )
663 {
664 g_Game.ConnectFromServerBrowser( result.m_HostIp, result.m_HostPort );
666 return;
667 }
668 else
669 {
670 g_Game.GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#str_xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, g_Game.GetUIManager().GetMenu() );
671 }
672 }
673
674 if ( m_AutoConnectTries < 3 )
675 {
678 input.SetOfficial( true );
679 m_ClientServices.GetLobbyService().GetFirstServerWithEmptySlot( input );
680 }
681 else
682 {
683 g_Game.GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, g_Game.GetUIManager().GetMenu() );
684 }
685 }
686
687 static void GetServerModList( string server_id )
688 {
690 if ( m_ClientServices )
691 {
692 m_ClientServices.GetLobbyService().GetServerModList( server_id );
693 }
694 }
695
696 static void OnGetServerModList( GetServerModListResult result_list, EBiosError error )
697 {
698 if ( !ErrorCaught( error ) )
699 {
700 m_ServerModLoadAsyncInvoker.Invoke( result_list );
701 }
702 }
703
704 static bool IsGameTrial( bool sim )
705 {
706 #ifdef PLATFORM_MSSTORE
707 if ( m_TrialService )
708 return m_TrialService.IsGameTrial( sim );
709 #endif
710 #ifdef PLATFORM_XBOX
711 #ifndef PLATFORM_WINDOWS
712 if ( m_TrialService )
713 return m_TrialService.IsGameTrial( sim );
714 #endif
715 #endif
716 return false;
717 }
718
719 static bool IsGameActive( bool sim )
720 {
721 #ifdef PLATFORM_MSSTORE
722 if ( m_TrialService )
723 return m_TrialService.IsGameActive( sim );
724 #endif
725 #ifdef PLATFORM_XBOX
726 #ifndef PLATFORM_WINDOWS
727 if ( m_TrialService )
728 return m_TrialService.IsGameActive( sim );
729 #endif
730 #endif
731 return false;
732 }
733
734 static bool CheckUpdate()
735 {
737 if ( m_ClientServices )
738 {
739 EBiosError error = m_ClientServices.GetPackageService().CheckUpdateAsync();
740
741 if ( !error )
742 {
743 return true;
744 }
745 }
746
747 return false;
748 }
749
750 static void PromptUpdate()
751 {
753 if ( m_ClientServices )
754 {
755 m_ClientServices.GetPackageService().PromptUpdateAsync();
756 }
757 }
758}
const int INPUT_UDT_USER_MUTE_XBOX
Definition _constants.c:13
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
array< ref BiosPrivacyUidResult > BiosPrivacyUidResultArray
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege represents possible privacy privileges.
array< ref BiosPrivacyPermissionResult > BiosPrivacyPermissionResultArray
array< ref BiosFriendInfo > BiosFriendInfoArray
BiosClientServices class provides individual online services.
BiosFriendInfo represents friend information.
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
GetServersInput the input structure of the GetServers operation.
GetServersInput the input structure of the GetServers operation.
GetServersResult the output structure of the GetServers operation.
GetServersResultRow the output structure of the GetServers operation that represents one game server.
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
static void GetClientServices()
static void PromptUpdate()
static void OnUserProfileAsync(EBiosError error)
static void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
static bool IsPlayerMuted(string id)
static void LoadVoicePrivilege()
static void SetSessionHandle(string handle)
static void LeaveGameplaySession()
static void OnPermissionsAsync(BiosPrivacyUidResultArray result_list, EBiosError error)
static string m_InviteServerIP
static void OnGetServerModList(GetServerModListResult result_list, EBiosError error)
static ref GetServersResultRow m_CurrentServerInfo
static void SetPendingInviteList(array< string > invitees)
static bool GetMultiplayState()
static void AutoConnectToEmptyServer()
static void ShowInviteScreen()
static void LoadFriends()
static bool IsGameActive(bool sim)
static void ShowUserProfile(string uid)
static void GetServerModList(string server_id)
static GetServersResultRow GetCurrentServerInfo()
static int m_InviteServerPort
static void GetSession()
static BiosUser GetBiosUser()
static int m_AutoConnectTries
static bool CheckUpdate()
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
static void GetCurrentServerInfo(string ip, int port)
static string GetSessionHandle()
static bool IsGameTrial(bool sim)
static void SetBiosUser(BiosUser user)
static ref map< string, ref BiosPrivacyPermissionResultArray > m_PermissionsList
static ref map< string, bool > m_MuteList
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
static void LoadPermissions(array< string > player_list)
static bool IsInitialized()
static void LoadServers(notnull GetServersInput inputValues)
static string m_CurrentServerIP
static map< string, bool > GetMuteList()
static array< string > GetPendingInviteList()
static void EnterGameplaySession()
static ref array< string > m_PendingInvites
static ref map< string, ref BiosFriendInfo > m_FriendsList
static bool m_MultiplayState
static int m_CurrentServerPort
static bool ErrorCaught(EBiosError error)
static void OnLoadVoicePrivilege(EBiosError err)
static void ClearPendingInviteList(array< string > invitees)
static void SetMultiplayState(bool state)
static bool m_FirstFriendsLoad
static void LoadMPPrivilege()
static void Init()
static void OnAutoConnectToEmptyServer(GetFirstServerWithEmptySlotResult result_list, EBiosError error)
static void GetInviteServerInfo(out string ip, out int port)
static void SetGameplayActivity()
static bool MutePlayer(string id, bool mute)
static void OnFriendsAsync(BiosFriendInfoArray friend_list, EBiosError error)
static void OnLoadMPPrivilege(EBiosError err)
static void GetFavoriteServers(TStringArray favServers)
static ref BiosUser m_BiosUser
static void ClearCurrentServerInfo()
static void GetCachedFavServerInfo(array< ref CachedServerInfo > favServersInfoCache)
static void SetInviteServerInfo(string ip, int port)
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116
TrialService is used to query if the game is trial version or not.
Definition trialservice.c:4
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZGame g_Game
Definition dayzgame.c:3942
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
void Error(string err)
Messagebox with error message.
Definition endebug.c:90
array< string > TStringArray
Definition enscript.c:712
NotificationType
DEPRECATED (moved into NotificationSystem).