mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-30 19:41:56 +00:00
* Clean up subsystem Initialize(), require an explicit result returned, give a formal way to fail (for SSlua) * [PR for MIRROR PR] Changes for 16248 (#16277) * Merge skyrat changes, update SR SS's, and remove lobby_eye * Apply suggestions from code review Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> * Update modular_skyrat/modules/autotransfer/code/autotransfer.dm Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> * restore lobby_cam for now Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Co-authored-by: Tastyfish <crazychris32@gmail.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
23 lines
998 B
Plaintext
23 lines
998 B
Plaintext
/*!
|
|
This subsystem exists to serve as a holder for important info for the restaurant system for chef and bartender.
|
|
*/
|
|
|
|
SUBSYSTEM_DEF(restaurant)
|
|
name = "Restaurant"
|
|
wait = 20 SECONDS //Roll for new guests but don't do it too fast.
|
|
init_order = INIT_ORDER_RESTAURANT
|
|
flags = SS_NO_FIRE
|
|
///All venues that exist, assoc list of type - reference
|
|
var/list/all_venues = list()
|
|
///All customer data datums that exist, assoc list of type - reference
|
|
var/list/all_customers = list()
|
|
///Caches appearances of food, assoc list where key is the type of food, and value is the appearance. Used so we don't have to keep creating new food. Gets filled whenever a new food that hasn't been ordered gets ordered for the first time.
|
|
var/list/food_appearance_cache = list()
|
|
|
|
/datum/controller/subsystem/restaurant/Initialize()
|
|
for(var/key in subtypesof(/datum/venue))
|
|
all_venues[key] = new key()
|
|
for(var/key in subtypesof(/datum/customer_data))
|
|
all_customers[key] = new key()
|
|
return SS_INIT_SUCCESS
|