EmergencyServiceDispatchRequestPayload
What emergencyServiceDispatchRequest gets: the payload a handler receives.
Renamed in 0.28 from EmergencyDispatchPayload; see renamed names.
Definition
Section titled “Definition”type EmergencyServiceDispatchRequestPayload = { player: PlayerSnapshot; unit: DispatchUnitProposal; service: "fire" | "ambulance" };Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player whose game sends it. |
unit |
DispatchUnitProposal |
The vehicle and its crew. |
service |
"fire" | "ambulance" |
A fire truck (model 407) or an ambulance (416). |
Related
Section titled “Related”emergencyServiceDispatchRequest: the decision