Interfaces/Callouts
ICalloutDistributionService
Responsible for creating and distributing callouts.
Methods
AssignUnitToCallout
Assigns a unit to a callout.
Parameters
| Name | Type | Description |
|---|---|---|
| unit | Unit | The unit. |
| callout | Callout | The callout. |
| acceptedByUnit | bool | true = accepted by a unit; false = assigned by a dispatcher or an addon. |
Returns
| Name | Type |
|---|---|
| bool | true if the unit was assigned to the callout; otherwise, false. |
UnassignUnitFromCallout
Unassigns a unit from a callout.
Parameters
| Name | Type | Description |
|---|---|---|
| unit | Unit | The unit. |
| callout | Callout | The callout. |
| acceptedByUnit | bool | true = accepted by a unit; false = assigned by a dispatcher or an addon. |
Returns
| Name | Type |
|---|---|
| bool | true if the unit was assigned to the callout; otherwise, false. |
DistributeCallout
Parameters
| Name | Type | Description |
|---|---|---|
| internalCallout | InternalCallout | The callout. |
| manualTrigger | bool | true = callout was triggered manually; false = callout was triggered automatically. |
Events
OnCalloutDispatched
Invoked when a callout is dispatched to units.
Type: EventHandler<DispatchedCalloutEventArgs>
OnCalloutAccepted
Invoked when a callout is accepted.
Type: EventHandler<AcceptedCalloutEventArgs>
OnUnitAssignedToCallout
Invoked when a unit is assigned to a callout.
Type: EventHandler<UnitAssignedToCalloutEventArgs>
OnUnitUnassignedFromCallout
Invoked when a unit is unassigned from a callout.
Type: EventHandler<UnitAssignedToCalloutEventArgs>