Personal Crafting & Dependencies

This commit is contained in:
ShadowLarkens
2021-05-02 13:55:59 -07:00
parent 6608393d7c
commit 0198ff3fbf
37 changed files with 973 additions and 110 deletions

View File

@@ -0,0 +1,14 @@
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