Interfaces
IIncidentService
Represents the service that handles incidents.
Methods
GetCurrentIncidentOfPlayer
Gets the incident of the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player to get the incident of. |
Returns
| Name | Type |
|---|---|
| IIncident | The incident of the specified player. |
GetById
Retrieves the incident with the specified identifier.
Parameters
| Name | Type | Description |
|---|---|---|
| id | Guid | The unique identifier of the incident to retrieve. |
Returns
| Name | Type |
|---|---|
| IIncident | The incident associated with the specified identifier. |
AssignUnitToIncident
Assigns the specified unit to the given incident.
Parameters
| Name | Type | Description |
|---|---|---|
| unit | Unit | The unit to assign to the incident. |
| incident | IIncident | The incident to which the unit should be assigned. |
Returns
| Name | Type |
|---|---|
| bool | A boolean value indicating whether the unit was successfully assigned to the incident. |
UnassignUnitFromIncident
Unassigns the specified unit from the given incident.
Parameters
| Name | Type | Description |
|---|---|---|
| unit | Unit | The unit to be unassigned from the incident. |
| incident | IIncident | The incident from which the unit will be unassigned. |
Returns
| Name | Type |
|---|---|
| bool | A boolean value indicating whether the unit was successfully unassigned from the incident. |
CompleteIncidentOfPlayer
Completes the incident of the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player to complete the incident of. |
CompleteIncident
Completes the specified incident.
Parameters
| Name | Type | Description |
|---|---|---|
| incident | IIncident | The incident to complete. |
CompleteIncident
Completes the specified incident.
Parameters
| Name | Type | Description |
|---|---|---|
| id | Guid | The id of the incident to complete. |
Properties
ActiveCallouts
Gets the active callouts.
Type: ReadOnlyCollection<Callout>
TrafficStops
Gets the active traffic stops.
Type: ReadOnlyCollection<TrafficStop>
InternalCallouts
Type: List<InternalCallout>
InternalTrafficStops
Gets the internal traffic stops.
Type: List<TrafficStop>
Events
OnCalloutCompleted
Invoked when a callout is completed.
Type: EventHandler<Callout>