DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
OnlineServices.c
См. документацию.
2{
7 static ref ScriptInvoker m_MuteUpdateAsyncInvoker = new ScriptInvoker(); // DEPRECATED
9
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 )
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 {
299 {
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 }
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
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;
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 {
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
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
Определения BIOSErrorModule.c:7
array< ref BiosPrivacyUidResult > BiosPrivacyUidResultArray
Определения BiosPrivacyService.c:49
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
Определения BiosPrivacyService.c:6
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege represents possible privacy privileges.
Определения BiosPrivacyService.c:18
array< ref BiosPrivacyPermissionResult > BiosPrivacyPermissionResultArray
Определения BiosPrivacyService.c:39
array< ref BiosFriendInfo > BiosFriendInfoArray
Определения BiosSocialService.c:17
DayZGame g_Game
Определения DayZGame.c:3942
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
Определения ErrorModuleHandler.c:5
NotificationType
DEPRECATED (moved into NotificationSystem)
Определения NotificationSystem.c:4
@ Count
Определения RandomGeneratorSyncManager.c:8
BiosClientServices class provides individual online services.
Определения BiosClientServices.c:10
string m_Uid
The Uid of the friend.
Определения BiosSocialService.c:6
static bool Compare(BiosFriendInfo a, BiosFriendInfo b)
Определения BiosSocialService.c:11
BiosFriendInfo represents friend information.
Определения BiosSocialService.c:5
static bool Compare(BiosPrivacyPermissionResult a, BiosPrivacyPermissionResult b)
Определения BiosPrivacyService.c:32
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
Определения BiosPrivacyService.c:28
string m_Uid
Uid of the target user.
Определения BiosPrivacyService.c:45
ref BiosPrivacyPermissionResultArray m_Results
Array of permission results for this target user.
Определения BiosPrivacyService.c:46
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
Определения BiosPrivacyService.c:44
proto native BiosClientServices GetClientServices()
Определения BiosUserManager.c:9
proto native EBiosError GetUserList(array< ref BiosUser > user_list)
Gets the currently present list of users.
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
static array< string > GetSimplePlayerList()
Определения ClientData.c:92
static ref SyncPlayerList m_LastNewPlayers
Определения ClientData.c:9
Определения ClientData.c:2
static void LogErrorAndTrace(string msg)
Prints debug message as error message and prints stack trace of calls.
Определения DebugPrint.c:124
Определения DebugPrint.c:2
static proto string GetClientMessage(ErrorCategory category, int code, string additionalInfo="")
Gets the Client Message for specified error.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
Определения ErrorModuleHandler.c:29
void SetOfficial(bool Official)
Определения BiosLobbyService.c:349
GetServersInput the input structure of the GetServers operation.
Определения BiosLobbyService.c:340
GetServersResult m_Result
Определения BiosLobbyService.c:335
int m_RowsPerPage
Определения BiosLobbyService.c:382
void SetHostIp(string hostIp)
Определения BiosLobbyService.c:528
int m_Page
Определения BiosLobbyService.c:389
int m_Platform
Определения BiosLobbyService.c:387
void SetHostPort(int hostPort)
Определения BiosLobbyService.c:534
GetServersInput the input structure of the GetServers operation.
Определения BiosLobbyService.c:380
ref GetServersResultRowArray m_Results
Определения BiosLobbyService.c:373
GetServersResult the output structure of the GetServers operation.
Определения BiosLobbyService.c:370
int m_FreeSlots
Определения BiosLobbyService.c:186
int m_HostPort
Определения BiosLobbyService.c:176
string m_HostIp
Определения BiosLobbyService.c:175
GetServersResultRow the output structure of the GetServers operation that represents one game server.
Определения BiosLobbyService.c:170
const int DEFAULT_TIME_DISPLAYED
Определения NotificationSystem.c:71
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
Определения NotificationSystem.c:192
static ref ScriptInvoker m_PermissionsAsyncInvoker
Определения OnlineServices.c:4
static void GetClientServices()
Определения OnlineServices.c:57
static void PromptUpdate()
Определения OnlineServices.c:750
static void OnUserProfileAsync(EBiosError error)
Определения OnlineServices.c:263
static void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
Определения OnlineServices.c:197
static bool IsPlayerMuted(string id)
Определения OnlineServices.c:360
static void LoadVoicePrivilege()
Определения OnlineServices.c:432
static void SetSessionHandle(string handle)
Определения OnlineServices.c:476
static void LeaveGameplaySession()
Определения OnlineServices.c:546
static void OnPermissionsAsync(BiosPrivacyUidResultArray result_list, EBiosError error)
Определения OnlineServices.c:330
static string m_InviteServerIP
Определения OnlineServices.c:13
static void OnGetServerModList(GetServerModListResult result_list, EBiosError error)
Определения OnlineServices.c:696
static ref ScriptInvoker m_ServersAsyncInvoker
Определения OnlineServices.c:5
static ref GetServersResultRow m_CurrentServerInfo
Определения OnlineServices.c:17
static void SetPendingInviteList(array< string > invitees)
Определения OnlineServices.c:580
static bool GetMultiplayState()
Определения OnlineServices.c:515
static void AutoConnectToEmptyServer()
Определения OnlineServices.c:626
static void ShowInviteScreen()
Определения OnlineServices.c:395
static void LoadFriends()
Определения OnlineServices.c:237
static bool IsGameActive(bool sim)
Определения OnlineServices.c:719
static void ShowUserProfile(string uid)
Определения OnlineServices.c:250
static void GetServerModList(string server_id)
Определения OnlineServices.c:687
static GetServersResultRow GetCurrentServerInfo()
Определения OnlineServices.c:170
static int m_InviteServerPort
Определения OnlineServices.c:14
static void GetSession()
Определения OnlineServices.c:495
static BiosUser GetBiosUser()
Определения OnlineServices.c:504
static ref ScriptInvoker m_ServerAsyncInvoker
Определения OnlineServices.c:6
static BiosClientServices m_ClientServices
Определения OnlineServices.c:10
static ref ScriptInvoker m_MuteUpdateAsyncInvoker
Определения OnlineServices.c:7
static int m_AutoConnectTries
Определения OnlineServices.c:625
static bool CheckUpdate()
Определения OnlineServices.c:734
static ref ScriptInvoker m_ServerModLoadAsyncInvoker
Определения OnlineServices.c:8
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
Определения OnlineServices.c:119
static void GetCurrentServerInfo(string ip, int port)
Определения OnlineServices.c:139
static string GetSessionHandle()
Определения OnlineServices.c:485
static bool IsGameTrial(bool sim)
Определения OnlineServices.c:704
static void SetBiosUser(BiosUser user)
Определения OnlineServices.c:509
static ref TrialService m_TrialService
Определения OnlineServices.c:11
static ref map< string, ref BiosPrivacyPermissionResultArray > m_PermissionsList
Определения OnlineServices.c:22
static ref map< string, bool > m_MuteList
Определения OnlineServices.c:21
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
Определения OnlineServices.c:638
static void LoadPermissions(array< string > player_list)
Определения OnlineServices.c:314
static bool IsInitialized()
Определения OnlineServices.c:52
static void LoadServers(notnull GetServersInput inputValues)
Определения OnlineServices.c:96
static string m_CurrentServerIP
Определения OnlineServices.c:15
static map< string, bool > GetMuteList()
Определения OnlineServices.c:390
static array< string > GetPendingInviteList()
Определения OnlineServices.c:599
static void EnterGameplaySession()
Определения OnlineServices.c:531
static ref ScriptInvoker m_FriendsAsyncInvoker
Определения OnlineServices.c:3
static ref array< string > m_PendingInvites
Определения OnlineServices.c:26
static ref map< string, ref BiosFriendInfo > m_FriendsList
Определения OnlineServices.c:20
static bool m_MultiplayState
Определения OnlineServices.c:25
static int m_CurrentServerPort
Определения OnlineServices.c:16
static bool ErrorCaught(EBiosError error)
Определения OnlineServices.c:82
static void OnLoadVoicePrivilege(EBiosError err)
Определения OnlineServices.c:465
static void ClearPendingInviteList(array< string > invitees)
Определения OnlineServices.c:620
static void SetMultiplayState(bool state)
Определения OnlineServices.c:520
static bool m_FirstFriendsLoad
Определения OnlineServices.c:24
static void LoadMPPrivilege()
Определения OnlineServices.c:415
static void Init()
Определения OnlineServices.c:30
static void OnAutoConnectToEmptyServer(GetFirstServerWithEmptySlotResult result_list, EBiosError error)
Определения OnlineServices.c:657
static void GetInviteServerInfo(out string ip, out int port)
Определения OnlineServices.c:191
static void SetGameplayActivity()
Определения OnlineServices.c:566
static bool MutePlayer(string id, bool mute)
Определения OnlineServices.c:369
static void OnFriendsAsync(BiosFriendInfoArray friend_list, EBiosError error)
Определения OnlineServices.c:268
static void OnLoadMPPrivilege(EBiosError err)
Определения OnlineServices.c:445
static void GetFavoriteServers(TStringArray favServers)
Определения OnlineServices.c:109
static ref BiosUser m_BiosUser
Определения OnlineServices.c:28
static void ClearCurrentServerInfo()
Определения OnlineServices.c:178
static void GetCachedFavServerInfo(array< ref CachedServerInfo > favServersInfoCache)
Определения OnlineServices.c:114
static void SetInviteServerInfo(string ip, int port)
Определения OnlineServices.c:185
Определения OnlineServices.c:2
proto native void Send()
Определения gameplay.c:121
ScriptInvoker Class provide list of callbacks usage:
Определения 2_GameLib/DayZ/tools.c:116
proto bool Write(void value_out)
string m_PlayerName
Определения SyncPlayer.c:11
string m_UID
Keeping for backwards compatability with mods.
Определения SyncPlayer.c:8
Определения SyncPlayer.c:2
ref array< ref SyncPlayer > m_PlayerList
Определения SyncPlayerList.c:3
TrialService is used to query if the game is trial version or not.
Определения TrialService.c:4
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Определения CachedEquipmentStorage.c:4
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90
array< string > TStringArray
Определения EnScript.c:712