StreetFoodVendorSpawnRequestPayload
What streetFoodVendorSpawnRequest gets: the payload a handler receives.
Renamed in 0.28 from StreetFoodVendorRequestPayload; see renamed names.
Definition
Section titled “Definition”type StreetFoodVendorSpawnRequestPayload = Readonly<{ player: PlayerSnapshot; vendorKind: "food-cart" | "hotdog-truck"; objectId: number; unit: DispatchUnitProposal;}>;Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player whose game would run the vendor. |
vendorKind |
"food-cart" | "hotdog-truck" |
A food cart or a hotdog van. |
objectId |
number |
Which cart (its number in the game) or van (its network ID). |
unit |
DispatchUnitProposal |
The vendor: model, position and network ID. |
Related
Section titled “Related”streetFoodVendorSpawnRequest: the decision