Delivering Plates
How plates are delivered
ServerPlateStation is the serving station.
- It keeps a list of
ServerPlateReturnStations 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_orderHandlerhandles the delivery of the order.- Implemented by
ServerKitchenFlowControllerBase. TheOnFoodDeliveredcalls itsm_plateReturnController.FoodDelivered, which adds aPlatesPendingReturnto its list of pending plates. - A
PlatesPendingReturnspecifies the return station, the timer, and thePlatingStepData(identifying the kind of plate). PlatingStepDatais just anm_uIDplus a sprite. The actual prefab for the dirty plate is created by thePlateReturnStationas a spawn.
- Implemented by
- Logic is triggered by
OnItemAdded, registered on them_attachStation(sibling component) viaRegisterOnItemAdded.