Skip to content

StreetFoodVendorSpawnRequestPayload

What streetFoodVendorSpawnRequest gets: the payload a handler receives.

Renamed in 0.28 from StreetFoodVendorRequestPayload; see renamed names.

type StreetFoodVendorSpawnRequestPayload = Readonly<{
player: PlayerSnapshot; vendorKind: "food-cart" | "hotdog-truck"; objectId: number; unit: DispatchUnitProposal;
}>;
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.