/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_restaurant.dm

COMSIG_ITEM_IS_CORRECT_CUSTOM_ORDERRestaurant (wanted_item) custom order signal sent when checking if the order is correct.
COMSIG_ITEM_SOLD_TO_CUSTOMER(customer, container) venue signal sent when a venue sells an item. source is the thing sold, which can be a datum, so we send container for location checks
COMSIG_REAGENT_SOLD_TO_CUSTOMER(customer, container) venue signal sent when a venue sells an reagent. source is the thing sold, which can be a datum, so we send container for location checks
TRANSACTION_SUCCESSReturn from either above signal to denote the transaction completed successfully, so the venue can finish processing it
TRANSACTION_HANDLEDReturn from either above to stop the venue default processing, allowing you to handle cleanup / aftermath yourself

Define Details

COMSIG_ITEM_IS_CORRECT_CUSTOM_ORDER

Restaurant (wanted_item) custom order signal sent when checking if the order is correct.

COMSIG_ITEM_SOLD_TO_CUSTOMER

(customer, container) venue signal sent when a venue sells an item. source is the thing sold, which can be a datum, so we send container for location checks

COMSIG_REAGENT_SOLD_TO_CUSTOMER

(customer, container) venue signal sent when a venue sells an reagent. source is the thing sold, which can be a datum, so we send container for location checks

TRANSACTION_HANDLED

Return from either above to stop the venue default processing, allowing you to handle cleanup / aftermath yourself

TRANSACTION_SUCCESS

Return from either above signal to denote the transaction completed successfully, so the venue can finish processing it