Delegate ClaimableCallback
This allows you to subscribe to an event with the option of claiming the event, so that other subscribers in the list will not receive the event.
myEvent.Subscribe(onEvent1);
myEvent.Subscribe(onEvent2);
void onEvent1(ref ClaimEventToken token)
{
token.Claimed = true; //We claimed the event, "onEvent2" will not get called.
}
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public delegate void ClaimableCallback(ref ClaimEventToken token);
Parameters
Type | Name | Description |
---|---|---|
ClaimEventToken | token |