Arma Reforger Script API
Loading...
Searching...
No Matches
PersistenceWhenAvailableTask Interface Reference
Inheritance diagram for PersistenceWhenAvailableTask:
PersistenceCallback

Public Member Functions

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.
 

Protected Member Functions

void OnResult (Managed instance, PersistenceDeferredDeserializeTask task=null, bool expired=false, Managed context=null)
 Will use the delegate passed to constructor if not implemented.
 

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ 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()

void PersistenceWhenAvailableTask.OnResult ( Managed instance,
PersistenceDeferredDeserializeTask task = null,
bool expired = false,
Managed context = null )
protected

Will use the delegate passed to constructor if not implemented.

Parameters
instanceThe instance tracked by the UUID the task was waiting for. ATTENTION: It may be null if it failed to load.
taskThe 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.
expiredWhen true the requested UUID did not become available fore the max wait time expired.
contextThe optional context instance passed to constructor.

The documentation for this interface was generated from the following file: