Class: account_operation_cb
Multiplayer callback binding for account_operation_cb.
Source
C++ class account_operation_cb
Custom Constructor
account_operation_cb
Remarks
Keeps the Lua callback target and function together for account operations with a status code.
Constructors
Constructor
ts
new account_operation_cb(object: object, cb: (this: object, code: number, description: string) => void): account_operation_cb;Parameters
| Parameter | Type | Description |
|---|---|---|
object | object | Lua object used as callback this. |
cb | (this: object, code: number, description: string) => void | Called with result code and status description. |
Returns
account_operation_cb
Methods
bind()
ts
bind(object: object, cb: (this: object, code: number, description: string) => void): void;Replace the bound callback.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | object | Lua object used as callback this. |
cb | (this: object, code: number, description: string) => void | Called with result code and status description. |
Returns
void
clear()
ts
clear(): void;Clear the bound callback.
Returns
void
Remarks
After clearing, native completion has no Lua function to call.