◆ BackendApi()
◆ ~BackendApi()
◆ FeedbackMessage()
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 |
◆ GetCredentialsItem()
Get credentials value per item.
- Аргументы
-
item | Is type of EBackendCredentials parameter you want to read |
◆ GetErrorCode()
Error code to string.
160 {
162
168 result =
"Communication Disabled";
170 result =
"Cannot be called from current state";
172 result =
"Busy processing requests";
174 result =
"Already disconnected";
176 result =
"Already connected";
178 result =
"Failed to logon";
180 result =
"Failed to Authenticate";
181 else
183
185 }
EBackendError
Backend error.
Definition BackendApi.c:7
Используется в OnCannotInitiate() и OnCannotShutdown().
◆ Initiate()
Initiate backend - request processing.
◆ IsBusy()
Backend is busy - authentication in process.
◆ IsDisconnected()
Backend offline - authentication may be initiated.
◆ IsRuntime()
Backend fully working and initialized.
◆ OnCannotInitiate()
Called when initiate cannot be called.
191 {
193 }
string GetErrorCode(int code)
Error code to string.
Definition BackendApi.c:159
proto void Print(void var)
Prints content of variable to console/log.
Перекрестные ссылки GetErrorCode() и Print().
◆ OnCannotShutdown()
◆ OnFail()
Called when step failed.
215 {
216 Print(
"[Backend] Failed to Proceed: " +
step );
217 }
Перекрестные ссылки Print().
◆ OnSuccess()
Called when step was successfully proceeded.
207 {
208 Print(
"[Backend] Successfully Solicited: " +
step );
209 }
Перекрестные ссылки Print().
◆ PlayerRequest()
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 |
◆ Request()
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 |
◆ SetCredentialsItem()
Set credentials value per item.
- Аргументы
-
item | Is type of EBackendCredentials parameter you want to set |
str | Is value itself |
◆ Shutdown()
Shutdown backend - request processing.
◆ VerifyCredentials()
Invoke credentials update (authenticate with new name+password)
Объявления и описания членов класса находятся в файле: