Files
Polaris/code/_helpers/string_lists.dm
2021-05-02 18:05:54 -07:00

14 lines
279 B
Plaintext

GLOBAL_LIST_EMPTY(string_lists)
/**
* Caches lists with non-numeric stringify-able values (text or typepath).
*/
/proc/string_list(list/values)
var/string_id = values.Join("-")
. = GLOB.string_lists[string_id]
if(.)
return
return GLOB.string_lists[string_id] = values