Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
BackendApi Class Reference

Private Member Functions

void BackendApi ()
void ~BackendApi ()
proto native void FeedbackMessage (BackendCallback cb, JsonApiStruct dataObject, string message)
 Send feedback message and/ or script object with whatever data on it (additionally it is possible to handle callback as well).
proto native string GetCredentialsItem (EBackendCredentials item)
 Get credentials value per item.
string GetErrorCode (int code)
 Error code to string.
proto native bool Initiate ()
 Initiate backend - request processing.
proto native bool IsBusy ()
 Backend is busy - authentication in process.
proto native bool IsDisconnected ()
 Backend offline - authentication may be initiated.
proto native bool IsRuntime ()
 Backend fully working and initialized.
void OnCannotInitiate (int code)
 Called when initiate cannot be called.
void OnCannotShutdown (int code)
 Called when shutdown cannot be proceeded.
void OnFail (string step)
 Called when step failed.
void OnSuccess (string step)
 Called when step was successfully proceeded.
proto native void PlayerRequest (int request, BackendCallback cb, JsonApiStruct dataObject, int iPlayerId)
 Ask player request with callback result from controller (Lobby).
proto native void Request (int request, BackendCallback cb, JsonApiStruct dataObject)
 Ask specific request with callback result.
proto native void SetCredentialsItem (EBackendCredentials item, string str)
 Set credentials value per item.
proto native bool Shutdown ()
 Shutdown backend - request processing.
proto native void VerifyCredentials ()
 Invoke credentials update (authenticate with new name+password).

Detailed Description

Definition at line 129 of file backendapi.c.

Constructor & Destructor Documentation

◆ BackendApi()

void BackendApi ( )
inlineprivate

Definition at line 131 of file backendapi.c.

◆ ~BackendApi()

void ~BackendApi ( )
inlineprivate

Definition at line 132 of file backendapi.c.

Member Function Documentation

◆ FeedbackMessage()

proto native void FeedbackMessage ( BackendCallback cb,
JsonApiStruct dataObject,
string message )
private

Send feedback message and/ or script object with whatever data on it (additionally it is possible to handle callback as well).

Parameters
cbIs script callback where you will recieve result/ error or even data when request finsihes
dataIs optional callback when request uses or response return Json data and you want to work with object
messageIs custom

◆ GetCredentialsItem()

proto native string GetCredentialsItem ( EBackendCredentials item)
private

Get credentials value per item.

Parameters
itemIs type of EBackendCredentials parameter you want to read

◆ GetErrorCode()

string GetErrorCode ( int code)
inlineprivate

Error code to string.

Definition at line 159 of file backendapi.c.

Referenced by OnCannotInitiate(), and OnCannotShutdown().

◆ Initiate()

proto native bool Initiate ( )
private

Initiate backend - request processing.

◆ IsBusy()

proto native bool IsBusy ( )
private

Backend is busy - authentication in process.

◆ IsDisconnected()

proto native bool IsDisconnected ( )
private

Backend offline - authentication may be initiated.

◆ IsRuntime()

proto native bool IsRuntime ( )
private

Backend fully working and initialized.

◆ OnCannotInitiate()

void OnCannotInitiate ( int code)
inlineprivate

Called when initiate cannot be called.

Definition at line 190 of file backendapi.c.

References GetErrorCode(), and Print().

◆ OnCannotShutdown()

void OnCannotShutdown ( int code)
inlineprivate

Called when shutdown cannot be proceeded.

Definition at line 198 of file backendapi.c.

References GetErrorCode(), and Print().

◆ OnFail()

void OnFail ( string step)
inlineprivate

Called when step failed.

Definition at line 214 of file backendapi.c.

References Print().

◆ OnSuccess()

void OnSuccess ( string step)
inlineprivate

Called when step was successfully proceeded.

Definition at line 206 of file backendapi.c.

References Print().

◆ PlayerRequest()

proto native void PlayerRequest ( int request,
BackendCallback cb,
JsonApiStruct dataObject,
int iPlayerId )
private

Ask player request with callback result from controller (Lobby).

Parameters
requestIs type of request, which is EBackendRequest
cbIs script callback where you will recieve result/ error or even data when request finsihes
dataIs optional callback when request uses or response return Json data and you want to work with object
iPlayerIdIs Player Id used on player identity

◆ Request()

proto native void Request ( int request,
BackendCallback cb,
JsonApiStruct dataObject )
private

Ask specific request with callback result.

Parameters
requestIs type of request, which is EBackendRequest
cbIs script callback where you will recieve result/ error or even data when request finsihes
dataIs optional callback when request uses or response return Json data and you want to work with object

◆ SetCredentialsItem()

proto native void SetCredentialsItem ( EBackendCredentials item,
string str )
private

Set credentials value per item.

Parameters
itemIs type of EBackendCredentials parameter you want to set
strIs value itself

◆ Shutdown()

proto native bool Shutdown ( )
private

Shutdown backend - request processing.

◆ VerifyCredentials()

proto native void VerifyCredentials ( )
private

Invoke credentials update (authenticate with new name+password).


The documentation for this class was generated from the following file: