Files
Bubberstation/code/__DEFINES/plumbing.dm
SkyratBot c38ba89a7e [MIRROR] Change hardcoded defines to use bitflags [MDB IGNORE] (#14285)
* Change hardcoded defines to use bitflags (#67722)

* Change hardcoded defines to use bitflags

Co-authored-by: Tim <timothymtorres@gmail.com>
2022-06-13 06:36:10 -07:00

36 lines
1.1 KiB
Plaintext

#define FIRST_DUCT_LAYER (1<<0)
#define SECOND_DUCT_LAYER (1<<1)
#define THIRD_DUCT_LAYER (1<<2)
#define FOURTH_DUCT_LAYER (1<<3)
#define FIFTH_DUCT_LAYER (1<<4)
#define DUCT_LAYER_DEFAULT THIRD_DUCT_LAYER
#define MACHINE_REAGENT_TRANSFER 10 //the default max plumbing machinery transfers
/// List of plumbing layers as name => bitflag
GLOBAL_LIST_INIT(plumbing_layers, list(
"First Layer" = FIRST_DUCT_LAYER,
"Second Layer" = SECOND_DUCT_LAYER,
"Default Layer" = THIRD_DUCT_LAYER,
"Fourth Layer" = FOURTH_DUCT_LAYER,
"Fifth Layer" = FIFTH_DUCT_LAYER,
))
/// Reverse of plumbing_layers, as "[bitflag]" => name
GLOBAL_LIST_INIT(plumbing_layer_names, list(
"[FIRST_DUCT_LAYER]" = "First Layer",
"[SECOND_DUCT_LAYER]" = "Second Layer",
"[THIRD_DUCT_LAYER]" = "Default Layer",
"[FOURTH_DUCT_LAYER]" = "Fourth Layer",
"[FIFTH_DUCT_LAYER]" = "Fifth Layer",
))
/// Name of omni color
#define DUCT_COLOR_OMNI "omni"
/// Cached radial menu options for plumbing RCD color picker
GLOBAL_LIST_EMPTY(plumbing_color_menu_options)
/// Cached radial menu options for plumbing RCD layer picker
GLOBAL_LIST_EMPTY(plumbing_layer_menu_options)