Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
BackendApi.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
13sealed class BackendApi
14{
15 private void BackendApi();
16 private void ~BackendApi();
17
19 string GetErrorCode(int code)
20 {
21 string result;
22
23 if (code == EBackendError.EBERR_OK)
24 result = "OK";
25 else if (code == EBackendError.EBERR_UNKNOWN)
26 result = "Offline";
27 else if (code == EBackendError.EBERR_DISABLED)
28 result = "Communication Disabled";
29 else if (code == EBackendError.EBERR_INVALID_STATE)
30 result = "Cannot be called from current state";
31 else if (code == EBackendError.EBERR_BUSY)
32 result = "Busy processing requests";
33 else if (code == EBackendError.EBERR_LOGIN_FAILED)
34 result = "Failed to logon";
35 else if (code == EBackendError.EBERR_AUTH_FAILED)
36 result = "Failed to Authenticate";
37 else
38 result = " * ";
39
40 return result;
41 }
42
43 [Obsolete("Use GetPlayerIdentityId() instead.")]
44 string GetPlayerUID( int iPlayerId ) { return GetPlayerIdentityId(iPlayerId); }
45 [Obsolete("Use BackendAuthenticatorApi.GetIdentityId() instead.")]
46 string GetLocalIdentityId() { return BackendAuthenticatorApi.GetIdentityId(); }
47 [Obsolete("Use BackendAuthenticatorApi.IsAuthenticated() instead.")]
48 bool IsAuthenticated() { return BackendAuthenticatorApi.IsAuthenticated(); }
49 [Obsolete("Use BackendAuthenticatorApi.IsAuthInProgress() instead.")]
50 bool IsAuthInProgress() { return BackendAuthenticatorApi.IsAuthInProgress(); }
51 [Obsolete()]
52 bool IsLocalPlatformAssigned() { return false; }
53 [Obsolete()]
54 bool Shutdown() { return false; }
55
60 proto external void SetSessionCallback(DSSessionCallback callback);
64 proto external int GetStatusCount();
68 proto external ServiceStatusItem GetStatusItem( int iIndex );
72 proto external ServiceStatusItem GetMainStatus();
76 proto external int GetNewsCount();
80 proto external NewsFeedItem GetNewsItem( int iIndex );
84 [Obsolete("Will be substitued by Notification Api.")]
85 proto external int GetNotifyCount();
89 [Obsolete("Will be substitued by Notification Api.")]
90 proto external NewsFeedItem GetNotifyItem( int iIndex );
94 proto external int GetPopupCount();
98 proto external PopupFeedItem GetPopupItem( int iIndex );
102 proto external void OnPopupReady(BackendCallback callback);
106 proto external void OnNewsReady(BackendCallback callback);
110 proto external string GetLinkItem( string linkName );
114 proto external bool IsRunning();
118 proto external bool IsInitializing();
122 proto external bool IsActive();
126 proto external void RefreshCommStatus();
130 proto external int GetCommTestStatus();
134 proto external float GetCommResponseTime();
138 proto external float GetCommTimeLastSuccess();
142 proto external float GetCommTimeLastFail();
149 [Obsolete()]
150 proto external void Request( int request, BackendCallback cb, JsonApiStruct dataObject );
156 proto external void PlayerCharacterGet( BackendCallback cb, JsonApiStruct dataObject, int iPlayerId );
162 proto external void PlayerCharacterUpdateS2S( BackendCallback cb, JsonApiStruct dataObject, int iPlayerId );
168 proto external void PlayerDevCharacterUpdate( BackendCallback cb, JsonApiStruct dataObject, int iPlayerId );
175 [Obsolete()]
176 proto external void PlayerData( JsonApiStruct dataObject, int iPlayerId );
183 proto external void SettingsData( string sFileName, JsonApiStruct dataObject );
195 proto external void FeedbackMessage( BackendCallback cb, JsonApiStruct dataObject, string message, PixelRawData data = null, int width = 0, int height = 0, int channels = 0, int quality = 0 );
199 proto external WorkshopApi GetWorkshop();
201 proto external GroupCatalogue GetGroupCatalogue();
205 proto external ServerConfigApi GetServerConfigApi();
209 proto external BanServiceApi GetBanServiceApi();
213 proto external ClientLobbyApi GetClientLobby();
218 proto external bool IsListedServerAdmin( int iPlayerId );
223 proto external bool IsServerOwner( int iPlayerId );
227 proto external SessionStorage GetStorage();
231 proto external DSSession GetDSSession();
236 [Obsolete()]
237 proto external string GetPlayerIdentityId(int iPlayerId);
242 [Obsolete()]
243 proto external PlatformKind GetPlayerPlatformKind(int iPlayerId);
249 [Obsolete()]
250 proto external string GetPlayerPlatformId(int iPlayerId);
254 proto external owned string GetBackendEnv();
255 proto external bool GetRunningDSConfig(DSConfig config);
256 proto external bool LoadDSConfig(DSConfig config, string fileName);
257 proto external bool SaveDSConfig(DSConfig config, string fileName);
258 proto external void SetDefaultIpPort(DSConfig config);
259 proto external int GetAvailableConfigs(out notnull array<string> configs);
260 proto external int GetAvailableConfigPaths(out notnull array<string> configs);
264 proto external void NewSession();
268 proto external void SetDebugHandling(int iRequest, EBackendDebugHandling eHandlingType);
269}
270
void DSConfig()
Definition DSConfig.c:83
PlatformKind
Definition PlatformKind.c:8
bool IsInitializing()
Returns true if group is in initialization state, for instance while still spawning its members.
Get all prefabs that have the spawner data
Ban Service API.
Dedicated Server Session callback class for script.
DS server Session.
Definition DSSession.c:14
base classes for filtering in server browser
New Feed data structure.
Popup Feed data structure.
Service status item.
Save & Load handler.
Workshop Api instance.
Definition WorkshopApi.c:14
EBackendDebugHandling
EBackendError
Backend error.