Files
CHOMPStation2/code/_helpers/string_lists.dm
2021-05-11 22:43:33 -04: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