|
| proto void | PersistenceWhenAvailableTask (PersistenceWhenAvailableTaskDelegate delegate=null, Managed context=null) |
| | Callbacks can be inherited to implement OnResult or constructed by passing a function to handle it with the same parameters.
|
| |
| proto external bool | InvokeDelegate (Managed instance, PersistenceDeferredDeserializeTask task=null, bool expired=false, Managed context=null) |
| | Invoke the delegate assigned to this callback. Returns false if there is none. To be used from OnResult.
|
| |
◆ PersistenceWhenAvailableTask()
| proto void PersistenceWhenAvailableTask.PersistenceWhenAvailableTask |
( |
PersistenceWhenAvailableTaskDelegate | delegate = null, |
|
|
Managed | context = null ) |
Callbacks can be inherited to implement OnResult or constructed by passing a function to handle it with the same parameters.
◆ InvokeDelegate()
| proto external bool PersistenceWhenAvailableTask.InvokeDelegate |
( |
Managed | instance, |
|
|
PersistenceDeferredDeserializeTask | task = null, |
|
|
bool | expired = false, |
|
|
Managed | context = null ) |
Invoke the delegate assigned to this callback. Returns false if there is none. To be used from OnResult.
◆ OnResult()
Will use the delegate passed to constructor if not implemented.
- Parameters
-
| instance | The instance tracked by the UUID the task was waiting for. ATTENTION: It may be null if it failed to load. |
| task | The deserialize task optionally passed during creation. Can be passed along as strong ref to a later time, or else it will auto complete after this tasks DTOR. |
| expired | When true the requested UUID did not become available fore the max wait time expired. |
| context | The optional context instance passed to constructor. |
The documentation for this interface was generated from the following file:
- Game/generated/Systems/Persistence/PersistenceWhenAvailableTask.c