mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-16 03:56:20 +00:00
* Change hardcoded defines to use bitflags (#67722) * Change hardcoded defines to use bitflags Co-authored-by: Tim <timothymtorres@gmail.com>
36 lines
1.1 KiB
Plaintext
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)
|