Goonstation 13 - Modules - TypesDefine Details

_std/macros/flags.dm

HAS_FLAGchecks if a flags variable (x) has a specific bitflag
HAS_ANY_FLAGSchecks if a flags variable (x) has a specific bitflag
HAS_ALL_FLAGSchecks if a flags variable (x) has all of flags in the flags variable
ADD_FLAGadds a flag to a flags variable (x). if the flag is already added, nothing happens
REMOVE_FLAGremoves a flag from a flags variable (x). if the flag is not in the flags variable, nothing happens
TOGGLE_FLAGtoggles a flag in a flags variable (x)

Define Details

ADD_FLAG

adds a flag to a flags variable (x). if the flag is already added, nothing happens

HAS_ALL_FLAGS

checks if a flags variable (x) has all of flags in the flags variable

HAS_ANY_FLAGS

checks if a flags variable (x) has a specific bitflag

HAS_FLAG

checks if a flags variable (x) has a specific bitflag

REMOVE_FLAG

removes a flag from a flags variable (x). if the flag is not in the flags variable, nothing happens

TOGGLE_FLAG

toggles a flag in a flags variable (x)