DayZ 1.24
|
Private Member Functions | |
void | BackendApi () |
void | ~BackendApi () |
proto native bool | Initiate () |
Initiate backend - request processing. | |
proto native bool | Shutdown () |
Shutdown backend - request processing. | |
proto native bool | IsDisconnected () |
Backend offline - authentication may be initiated. | |
proto native bool | IsRuntime () |
Backend fully working and initialized. | |
proto native bool | IsBusy () |
Backend is busy - authentication in process. | |
string | GetErrorCode (int code) |
Error code to string. | |
void | OnCannotInitiate (int code) |
Called when initiate cannot be called. | |
void | OnCannotShutdown (int code) |
Called when shutdown cannot be proceeded. | |
void | OnSuccess (string step) |
Called when step was successfully proceeded. | |
void | OnFail (string step) |
Called when step failed. | |
proto native void | Request (int request, BackendCallback cb, JsonApiStruct dataObject) |
Ask specific request with callback result. | |
proto native void | PlayerRequest (int request, BackendCallback cb, JsonApiStruct dataObject, int iPlayerId) |
Ask player request with callback result from controller (Lobby) | |
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 void | SetCredentialsItem (EBackendCredentials item, string str) |
Set credentials value per item. | |
proto native string | GetCredentialsItem (EBackendCredentials item) |
Get credentials value per item. | |
proto native void | VerifyCredentials () |
Invoke credentials update (authenticate with new name+password) | |
Definition at line 129 of file BackendApi.c.
|
inlineprivate |
Definition at line 131 of file BackendApi.c.
|
inlineprivate |
Definition at line 132 of file BackendApi.c.
|
private |
Send feedback message and/ or script object with whatever data on it (additionally it is possible to handle callback as well)
cb | Is script callback where you will recieve result/ error or even data when request finsihes |
data | Is optional callback when request uses or response return Json data and you want to work with object |
message | Is custom |
|
private |
Get credentials value per item.
item | Is type of EBackendCredentials parameter you want to read |
Error code to string.
Definition at line 159 of file BackendApi.c.
Referenced by OnCannotInitiate(), and OnCannotShutdown().
Backend offline - authentication may be initiated.
Called when initiate cannot be called.
Definition at line 190 of file BackendApi.c.
References GetErrorCode(), and Print().
Called when shutdown cannot be proceeded.
Definition at line 198 of file BackendApi.c.
References GetErrorCode(), and Print().
Called when step was successfully proceeded.
Definition at line 206 of file BackendApi.c.
References Print().
|
private |
Ask player request with callback result from controller (Lobby)
request | Is type of request, which is EBackendRequest |
cb | Is script callback where you will recieve result/ error or even data when request finsihes |
data | Is optional callback when request uses or response return Json data and you want to work with object |
iPlayerId | Is Player Id used on player identity |
|
private |
Ask specific request with callback result.
request | Is type of request, which is EBackendRequest |
cb | Is script callback where you will recieve result/ error or even data when request finsihes |
data | Is optional callback when request uses or response return Json data and you want to work with object |
|
private |
Set credentials value per item.
item | Is type of EBackendCredentials parameter you want to set |
str | Is value itself |
Invoke credentials update (authenticate with new name+password)