![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
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). | |
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().
|
private |
Initiate backend - request processing.
|
private |
Backend is busy - authentication in process.
|
private |
Backend offline - authentication may be initiated.
|
private |
Backend fully working and initialized.
|
inlineprivate |
Called when initiate cannot be called.
Definition at line 190 of file backendapi.c.
References GetErrorCode(), and Print().
|
inlineprivate |
Called when shutdown cannot be proceeded.
Definition at line 198 of file backendapi.c.
References GetErrorCode(), and Print().
|
inlineprivate |
|
inlineprivate |
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 |
|
private |
Shutdown backend - request processing.
|
private |
Invoke credentials update (authenticate with new name+password).