DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
OnlineServices.c
Go to the documentation of this file.
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;
17 protected static ref GetServersResultRow m_CurrentServerInfo;
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 = GetGame().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 {
102 }
103 else
104 {
105 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
106 }
107 }
108
109 static void GetFavoriteServers(TStringArray favServers)
110 {
112 }
113
115 {
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_XBOX
155 inputValues.m_Platform = 2;
156 #endif
157 #ifdef PLATFORM_PS4
158 inputValues.m_Platform = 3;
159 #endif
160
161 if ( m_ClientServices )
162 {
164 }
165 }
166
167 static GetServersResultRow GetCurrentServerInfo()
168 {
170 return m_CurrentServerInfo;
171 else
172 return g_Game.GetHostData();
173 }
174
176 {
177 m_CurrentServerInfo = null;
180 }
181
182 static void SetInviteServerInfo( string ip, int port )
183 {
184 m_InviteServerIP = ip;
185 m_InviteServerPort = port;
186 }
187
188 static void GetInviteServerInfo( out string ip, out int port )
189 {
190 ip = m_InviteServerIP;
191 port = m_InviteServerPort;
192 }
193
194 static void OnLoadServersAsync( GetServersResult result_list, EBiosError error, string response )
195 {
196 if ( !ErrorCaught( error ) )
197 {
198 if ( m_CurrentServerIP != "" && m_CurrentServerPort > 0 )
199 {
200 foreach ( GetServersResultRow result : result_list.m_Results )
201 {
202 if ( result.m_HostIp == m_CurrentServerIP && result.m_HostPort == m_CurrentServerPort )
203 {
204 m_CurrentServerInfo = result;
207 }
208 }
209 }
210
211 // todo: remove
212 //foreach( GetServersResultRow res : result_list.m_Results )
213 //{
214 // Print("OnLoadServersAsync: result id: " + res.m_Id + "modded: " + res.m_Modded);
215 //}
216
217 // just for example execute the retrieving of extended info for the first server entry in the list
218 //if (result_list.m_Results.Count() > 0)
219 //{
220 //GetServersResultRow re = result_list.m_Results[0];
221 //EBiosError er = m_ClientServices.GetLobbyService().GetServerModList(re.m_Id);
222 //Print("OnLoadServersAsync GetServerModList returns:" + er);
223 //}
224
225 m_ServersAsyncInvoker.Invoke( result_list, error, response );
226 }
227 else
228 {
229 m_ServersAsyncInvoker.Invoke( null, error, "" );
230 }
231 }
232
233
234 static void LoadFriends()
235 {
237 if ( m_ClientServices )
238 {
240 }
241 else
242 {
243 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
244 }
245 }
246
247 static void ShowUserProfile( string uid )
248 {
250 if ( m_ClientServices )
251 {
253 }
254 else
255 {
256 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
257 }
258 }
259
261 {
262 ErrorCaught( error );
263 }
264
265 static void OnFriendsAsync( BiosFriendInfoArray friend_list, EBiosError error )
266 {
267 if ( !ErrorCaught( error ) )
268 {
269 m_FriendsAsyncInvoker.Invoke( friend_list );
270
271 array<string> friends_simple = new array<string>;
272 for ( int i = 0; i < friend_list.Count(); ++i )
273 {
274 string uid = friend_list[i].m_Uid;
275 BiosFriendInfo storedBfi = m_FriendsList[uid];
276 BiosFriendInfo newBfi = friend_list[i];
277
278 if (storedBfi)
279 {
280 if ( !BiosFriendInfo.Compare( storedBfi, newBfi ) )
281 {
282 friends_simple.Insert( newBfi.m_Uid );
283 }
284 m_FriendsList.Set( uid, newBfi );
285 }
286 else
287 {
288 m_FriendsList.Insert( uid, newBfi );
289 friends_simple.Insert( newBfi.m_Uid );
290 }
291 }
292
293 if ( !m_FirstFriendsLoad )
294 {
296 {
298 {
299 if ( m_FriendsList.Contains( player.m_UID ) )
300 {
301 NotificationSystem.AddNotification( NotificationType.FRIEND_CONNECTED, 6, player.m_PlayerName + " " + "#ps4_invite_has_joined_your_session" );
302 }
303 }
305 }
306 }
307 m_FirstFriendsLoad = false;
308 }
309 }
310
311 static void LoadPermissions( array<string> player_list )
312 {
314 if ( m_ClientServices )
315 {
317 perms.Insert( EBiosPrivacyPermission.COMMUNICATE_VOICE );
318
320 }
321 else
322 {
323 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
324 }
325 }
326
328 {
329 if ( !ErrorCaught( error ) )
330 {
332
333 for ( int i = 0; i < result_list.Count(); i++ )
334 {
335 BiosPrivacyUidResult result = result_list.Get( i );
336 string uid = result.m_Uid;
337 BiosPrivacyPermissionResultArray result_array = m_PermissionsList.Get( uid );
338 BiosPrivacyPermissionResultArray result_array2 = result.m_Results;
339 if ( result_array && result_array2 )
340 {
341 if ( !BiosPrivacyPermissionResult.Compare( result_array.Get( 0 ), result_array2.Get( 0 ) ) )
342 {
343 new_list.Insert( result );
344 m_PermissionsList.Set( uid, result_array2 );
345 }
346 }
347 else
348 {
349 m_PermissionsList.Insert( uid, result_array2 );
350 new_list.Insert( result );
351 }
352 }
354 }
355 }
356
357 static bool IsPlayerMuted( string id )
358 {
359 if ( m_MuteList.Contains( id ) )
360 {
361 return m_MuteList.Get( id );
362 }
363 return false;
364 }
365
366 static bool MutePlayer( string id, bool mute )
367 {
368 if ( m_MuteList.Contains( id ) )
369 {
370 m_MuteList.Set( id, mute );
371 }
372 else
373 {
374 m_MuteList.Insert( id, mute );
375 }
376
377 // notify server
380 ctx.Write( id );
381 ctx.Write( mute );
382 ctx.Send();
383
384 return true;
385 }
386
388 {
389 return m_MuteList;
390 }
391
392 static void ShowInviteScreen()
393 {
394 #ifdef PLATFORM_CONSOLE
396 if ( m_ClientServices )
397 {
398 string addr;
399 int port;
400 if ( GetGame().GetHostAddress( addr, port ) )
401 {
403 }
404 }
405 else
406 {
407 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
408 }
409 #endif
410 }
411
412 static void LoadMPPrivilege()
413 {
414 #ifdef PLATFORM_CONSOLE
416 if ( m_ClientServices )
417 {
419 }
420 else
421 {
422 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
423 }
424 #else
426 #endif
427 }
428
429 static void LoadVoicePrivilege()
430 {
432 if ( m_ClientServices )
433 {
435 }
436 else
437 {
438 DebugPrint.LogErrorAndTrace( "BiosClientServices Error: Service reference does not exist." );
439 }
440 }
441
442 static void OnLoadMPPrivilege( EBiosError err )
443 {
444 if ( !ErrorCaught( err ) )
445 {
446 g_Game.TryConnect();
447 }
448 else
449 {
450 if ( g_Game.GetGameState() != DayZGameState.MAIN_MENU )
451 {
452 g_Game.MainMenuLaunch();
453 }
454 else
455 {
456 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
457 g_Game.GamepadCheck();
458 }
459 }
460 }
461
463 {
464 if ( g_Game.GetGameState() == DayZGameState.IN_GAME )
465 {
466 #ifdef PLATFORM_PS4
468 #endif
470 }
471 }
472
473 static void SetSessionHandle( string handle )
474 {
476 if ( m_ClientServices )
477 {
479 }
480 }
481
482 static string GetSessionHandle()
483 {
485 if ( m_ClientServices )
486 {
488 }
489 return "";
490 }
491
492 static void GetSession()
493 {
495 if ( m_ClientServices )
496 {
498 }
499 }
500
502 {
503 return m_BiosUser;
504 }
505
506 static void SetBiosUser(BiosUser user)
507 {
508 m_BiosUser = user;
509 }
510
511
512 static bool GetMultiplayState()
513 {
514 return m_MultiplayState;
515 }
516
517 static void SetMultiplayState( bool state )
518 {
519 m_MultiplayState = state;
520 bool is_multiplay;
522 is_multiplay = state && ( ClientData.GetSimplePlayerList().Count() > 1 );
523
524 if ( m_ClientServices )
526 }
527
529 {
530 string addr;
531 int port;
532 if ( GetGame().GetHostAddress( addr, port ) )
533 {
535 if ( m_ClientServices )
536 {
538 SetMultiplayState(true);
539 }
540 }
541 }
542
544 {
546 if ( m_ClientServices )
547 {
550 else if ( m_CurrentServerIP != "" )
552
553 SetMultiplayState(false);
554 m_FirstFriendsLoad = true;
555
556 if ( m_FriendsList )
557 m_FriendsList.Clear();
558 }
559 }
560
562 {
563 string addr;
564 int port;
565 if ( GetGame().GetHostAddress( addr, port ) )
566 {
568 if ( m_ClientServices )
569 {
571 }
572 }
573 }
574
575 static void SetPendingInviteList( array<string> invitees )
576 {
577 string addr;
578 int port;
579 if ( GetGame().GetHostAddress( addr, port ) )
580 {
582 if ( m_ClientServices )
583 {
584 m_PendingInvites = invitees;
586 }
587 }
588 else
589 {
590 m_PendingInvites = invitees;
591 }
592 }
593
595 {
596 array<string> already_on_server = ClientData.GetSimplePlayerList();
597 if ( already_on_server && m_PendingInvites )
598 {
599 array<string> new_to_server = new array<string>;
600 foreach ( string invitee : m_PendingInvites )
601 {
602 if ( already_on_server.Find( invitee ) == -1 )
603 {
604 new_to_server.Insert( invitee );
605 }
606 }
607 return new_to_server;
608 }
609 else
610 {
611 return m_PendingInvites;
612 }
613 }
614
615 static void ClearPendingInviteList( array<string> invitees )
616 {
617 delete m_PendingInvites;
618 }
619
620 static int m_AutoConnectTries = 0;
622 {
625 {
628 input.SetOfficial( true );
630 }
631 }
632
633 static GetServersResultRow GetRandomFreeResult( GetFirstServerWithEmptySlotResult results )
634 {
635 GetServersResultRow result;
637
638 if ( results && results.m_Result && results.m_Result.m_Results && results.m_Result.m_Results.Count() > 0 )
639 {
640 foreach ( GetServersResultRow result_temp : results.m_Result.m_Results )
641 {
642 if ( result_temp.m_FreeSlots > 0 )
643 {
644 results_free.Insert( result_temp );
645 }
646 }
647 }
648
649 return results_free.GetRandomElement();
650 }
651
653 {
654 if ( !ErrorCaught( error ) )
655 {
656 GetServersResultRow result = GetRandomFreeResult( result_list );
657 if ( result )
658 {
659 g_Game.ConnectFromServerBrowser( result.m_HostIp, result.m_HostPort );
661 return;
662 }
663 else
664 {
665 GetGame().GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#str_xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu() );
666 }
667 }
668
669 if ( m_AutoConnectTries < 3 )
670 {
673 input.SetOfficial( true );
675 }
676 else
677 {
678 GetGame().GetUIManager().ShowDialog( "#str_xbox_authentification_fail_title", "#xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu() );
679 }
680 }
681
682 static void GetServerModList( string server_id )
683 {
685 if ( m_ClientServices )
686 {
688 }
689 }
690
691 static void OnGetServerModList( GetServerModListResult result_list, EBiosError error )
692 {
693 if ( !ErrorCaught( error ) )
694 {
695 m_ServerModLoadAsyncInvoker.Invoke( result_list );
696 }
697 }
698
699 static bool IsGameTrial( bool sim )
700 {
701 #ifdef PLATFORM_XBOX
702 #ifndef PLATFORM_WINDOWS
703 if ( m_TrialService )
704 return m_TrialService.IsGameTrial( sim );
705 #endif
706 #endif
707 return false;
708 }
709
710 static bool IsGameActive( bool sim )
711 {
712 #ifdef PLATFORM_XBOX
713 #ifndef PLATFORM_WINDOWS
714 if ( m_TrialService )
715 return m_TrialService.IsGameActive( sim );
716 #endif
717 #endif
718 return false;
719 }
720
721 static bool CheckUpdate()
722 {
724 if ( m_ClientServices )
725 {
727
728 if ( !error )
729 {
730 return true;
731 }
732 }
733
734 return false;
735 }
736
737 static void PromptUpdate()
738 {
740 if ( m_ClientServices )
741 {
743 }
744 }
745}
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.
DayZGame g_Game
Definition DayZGame.c:3654
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
NotificationType
BiosClientServices class provides individual online services.
proto native BiosLobbyService GetLobbyService()
proto native BiosPrivacyService GetPrivacyService()
proto native BiosSocialService GetSocialService()
proto native BiosPackageService GetPackageService()
proto native BiosSessionService GetSessionService()
BiosFriendInfo represents friend information.
string m_Uid
The Uid of the friend.
static bool Compare(BiosFriendInfo a, BiosFriendInfo b)
proto native void GetCachedFavoriteServerInfo(array< ref CachedServerInfo > favServersInfoCache)
Get cached info about favorited servers (ONLY ON WINDOWS)
proto native void GetFavoriteServers(TStringArray favServers)
proto native EBiosError GetFirstServerWithEmptySlot(GetFirstServerWithEmptySlotInput inputValues)
First 1st free server.
proto native void AddServerFavorite(string ipAddress, int port, int steamQueryPort)
proto native EBiosError GetServerModList(string serverId)
proto native void RemoveServerFavorite(string ipAddress, int port, int steamQueryPort)
proto native EBiosError GetServers(GetServersInput inputValues)
Query game servers.
proto native EBiosError PromptUpdateAsync()
Prompt user to accept update with system GUI.
proto native EBiosError CheckUpdateAsync()
Async check if exist new update.
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
static bool Compare(BiosPrivacyPermissionResult a, BiosPrivacyPermissionResult b)
proto native EBiosError GetPrivilegeAsync(EBiosPrivacyPrivilege privilege, bool try_resolution)
Query for privileges.
proto native EBiosError GetPermissionsAsync(array< string > uid_list, array< EBiosPrivacyPermission > permission_list)
Query for privacy permissions.
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
string m_Uid
Uid of the target user.
ref BiosPrivacyPermissionResultArray m_Results
Array of permission results for this target user.
proto native EBiosError EnterGameplaySessionAsync(string session_address, int session_port)
Enter a gameplay session.
proto native EBiosError InviteToGameplaySessionAsync(string session_address, int session_port, array< string > invitee_list)
Send invite to list of users.
proto native EBiosError ShowInviteToGameplaySessionAsync(string session_address, int session_port)
Show system UI to invite friends to current gameplay session.
proto native EBiosError LeaveGameplaySessionAsync(string session_address, int session_port)
Leave a gameplay session.
void TryGetSession(string join_handle="")
Gets a session from a join handle.
proto native void SetMultiplayState(bool is_active)
Notifiy about interactive multiplayer state.
proto native EBiosError SetGameplayActivityAsync(string session_address, int session_port)
Sets the activity to a gameplay session.
proto native EBiosError GetFriendsAsync()
Query for friends list.
proto native EBiosError ShowUserProfileAsync(string uid_target)
Display small system UI profile for the target.
proto native BiosClientServices GetClientServices()
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto native EBiosError GetUserList(array< ref BiosUser > user_list)
Gets the currently present list of users.
proto native World GetWorld()
proto native BiosUserManager GetUserManager()
proto native UIManager GetUIManager()
static ref SyncPlayerList m_LastNewPlayers
Definition ClientData.c:9
static array< string > GetSimplePlayerList()
Definition ClientData.c:76
static void LogErrorAndTrace(string msg)
Prints debug message as error message and prints stack trace of calls.
Definition DebugPrint.c:124
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
static proto string GetClientMessage(ErrorCategory category, int code, string additionalInfo="")
Gets the Client Message for specified error.
GetServersInput the input structure of the GetServers operation.
GetServersInput the input structure of the GetServers operation.
void SetHostPort(int hostPort)
void SetHostIp(string hostIp)
GetServersResult the output structure of the GetServers operation.
ref GetServersResultRowArray m_Results
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
static void SetSessionHandle(string handle)
static void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
static bool GetMultiplayState()
static void OnFriendsAsync(BiosFriendInfoArray friend_list, EBiosError error)
static protected bool m_MultiplayState
static void Init()
static protected int m_InviteServerPort
static protected ref GetServersResultRow m_CurrentServerInfo
static void GetSession()
static void GetFavoriteServers(TStringArray favServers)
static protected ref BiosUser m_BiosUser
static protected ref map< string, ref BiosPrivacyPermissionResultArray > m_PermissionsList
static void GetCachedFavServerInfo(array< ref CachedServerInfo > favServersInfoCache)
static protected string m_InviteServerIP
static void ShowUserProfile(string uid)
static void AutoConnectToEmptyServer()
static BiosUser GetBiosUser()
static ref ScriptInvoker m_ServerAsyncInvoker
static void ClearPendingInviteList(array< string > invitees)
static bool IsGameActive(bool sim)
static void SetGameplayActivity()
static void SetMultiplayState(bool state)
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
static ref ScriptInvoker m_ServerModLoadAsyncInvoker
static void GetInviteServerInfo(out string ip, out int port)
static protected ref array< string > m_PendingInvites
static void LoadPermissions(array< string > player_list)
static void SetInviteServerInfo(string ip, int port)
static protected string m_CurrentServerIP
static array< string > GetPendingInviteList()
static protected bool m_FirstFriendsLoad
static void LeaveGameplaySession()
static ref TrialService m_TrialService
static bool MutePlayer(string id, bool mute)
static void LoadVoicePrivilege()
static void GetClientServices()
static bool IsGameTrial(bool sim)
static void OnUserProfileAsync(EBiosError error)
static void OnPermissionsAsync(BiosPrivacyUidResultArray result_list, EBiosError error)
static string GetSessionHandle()
static ref ScriptInvoker m_PermissionsAsyncInvoker
static ref ScriptInvoker m_MuteUpdateAsyncInvoker
static map< string, bool > GetMuteList()
static int m_AutoConnectTries
static ref ScriptInvoker m_FriendsAsyncInvoker
static bool IsInitialized()
static bool CheckUpdate()
static void OnLoadMPPrivilege(EBiosError err)
static protected ref map< string, bool > m_MuteList
static void EnterGameplaySession()
static void OnGetServerModList(GetServerModListResult result_list, EBiosError error)
static ref BiosClientServices m_ClientServices
static void GetCurrentServerInfo(string ip, int port)
static void LoadMPPrivilege()
static GetServersResultRow GetCurrentServerInfo()
static protected int m_CurrentServerPort
static void ShowInviteScreen()
static void GetServerModList(string server_id)
static void OnLoadVoicePrivilege(EBiosError err)
static void SetPendingInviteList(array< string > invitees)
static void PromptUpdate()
static protected ref map< string, ref BiosFriendInfo > m_FriendsList
static void SetBiosUser(BiosUser user)
static void OnAutoConnectToEmptyServer(GetFirstServerWithEmptySlotResult result_list, EBiosError error)
static void ClearCurrentServerInfo()
static void LoadFriends()
static ref ScriptInvoker m_ServersAsyncInvoker
static void LoadServers(notnull GetServersInput inputValues)
static bool ErrorCaught(EBiosError error)
static bool IsPlayerMuted(string id)
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
proto native void Send()
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
proto bool Write(void value_out)
ref array< ref SyncPlayer > m_PlayerList
TrialService is used to query if the game is trial version or not.
Definition TrialService.c:4
proto native bool IsGameTrial(bool bIsSimulator)
proto native bool IsGameActive(bool bIsSimulator)
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native bool DisableReceiveVoN(bool disable)
proto native void DisableTransmitVoN(bool disable)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90