Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
PersistenceResultCallback Class Reference
Inheritance diagram for PersistenceResultCallback:
PersistenceCallback PersistenceCallback

Protected Member Functions

void OnResult (EPersistenceStatusCode statusCode, Managed result, bool isLast, Managed context=null)
proto external bool InvokeDelegate (EPersistenceStatusCode statusCode, Managed result, bool isLast)
 Invoke the delegate assigned to this callback. Returns false if there is none. To be used from OnResult.
void OnResult (EPersistenceStatusCode statusCode, Managed result, bool isLast, Managed context=null)
proto external bool InvokeDelegate (EPersistenceStatusCode statusCode, Managed result, bool isLast)
 Invoke the delegate assigned to this callback. Returns false if there is none. To be used from OnResult.

Detailed Description

Definition at line 13 of file PersistenceResultCallback.c.

Member Function Documentation

◆ InvokeDelegate() [1/2]

proto external bool PersistenceResultCallback::InvokeDelegate ( EPersistenceStatusCode statusCode,
Managed result,
bool isLast )
protected

Invoke the delegate assigned to this callback. Returns false if there is none. To be used from OnResult.

◆ InvokeDelegate() [2/2]

proto external bool PersistenceResultCallback::InvokeDelegate ( EPersistenceStatusCode statusCode,
Managed result,
bool isLast )
protected

Invoke the delegate assigned to this callback. Returns false if there is none. To be used from OnResult.

◆ OnResult() [1/2]

void PersistenceResultCallback::OnResult ( EPersistenceStatusCode statusCode,
Managed result,
bool isLast,
Managed context = null )
protected

Will use the delegate passed to constructor if not implemented

Parameters
statusCodeThe result status. OK as expected result, anything else needs handling / logging / throwing errors.
resultThe result instance which must be casted into your expected type. Usually IEntity or custom script class. Special case: If a specific id should have been fetched, but the status code is not OK, the result is the internal id it failed to fetch.
isLastIf the load request resulted in multiple instance the callback wil be invoked as many times with the last invoke being isLast=true. You can store all results in a member array and pass them somewhere else after recieving the last one.
contextThe optional context instance passed to constructor.

◆ OnResult() [2/2]

void PersistenceResultCallback::OnResult ( EPersistenceStatusCode statusCode,
Managed result,
bool isLast,
Managed context = null )
protected

Will use the delegate passed to constructor if not implemented

Parameters
statusCodeThe result status. OK as expected result, anything else needs handling / logging / throwing errors.
resultThe result instance which must be casted into your expected type. Usually IEntity or custom script class. Special case: If a specific id should have been fetched, but the status code is not OK, the result is the internal id it failed to fetch.
isLastIf the load request resulted in multiple instance the callback wil be invoked as many times with the last invoke being isLast=true. You can store all results in a member array and pass them somewhere else after recieving the last one.
contextThe optional context instance passed to constructor.

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