code/__HELPERS/bitflag_lists.dm 
SET_SMOOTHING_GROUPS | System for storing bitflags past the 24 limit, making use of an associative list. |
---|
Define Details
SET_SMOOTHING_GROUPS 
System for storing bitflags past the 24 limit, making use of an associative list.
Macro converts a string of integers into an associative list of bitflag entries for quicker comparison. Example: "0, 4, 26, 32" => list( "0" = ( (1<<0) | (1<<4) ), "1" = ( (1<<2) | (1<<8) ) ) Lists are cached into a global list of lists to avoid identical duplicates. This system makes value comparisons faster than pairing every element of one list with every element of the other for evaluation.
Arguments:
- read_from - String of integers.
- set_into - Variable to set equal to a list of integers