Delivering Plates
How plates are delivered
ServerPlateStation
is the serving station.
- It keeps a list of
ServerPlateReturnStation
s which corresponds to the stations where dirty plates will spawn. There can be multiple because there may be multiple kinds of plates (cups and plates, e.g.). IKitchenOrderHandler m_orderHandler
handles the delivery of the order.- Implemented by
ServerKitchenFlowControllerBase
. TheOnFoodDelivered
calls itsm_plateReturnController.FoodDelivered
, which adds aPlatesPendingReturn
to its list of pending plates. - A
PlatesPendingReturn
specifies the return station, the timer, and thePlatingStepData
(identifying the kind of plate). PlatingStepData
is just anm_uID
plus a sprite. The actual prefab for the dirty plate is created by thePlateReturnStation
as a spawn.
- Implemented by
- Logic is triggered by
OnItemAdded
, registered on them_attachStation
(sibling component) viaRegisterOnItemAdded
.