mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-27 18:41:59 +00:00
Move various icon caches into a new subsystem for organization (#2538)
changes: Blood overlays are now cached and do not involve world iteration. Moved every global icon cache I could find into a new SS for organization & easier debugging. SS does not fire or init.
This commit is contained in:
34
code/controllers/subsystems/icon_cache.dm
Normal file
34
code/controllers/subsystems/icon_cache.dm
Normal file
@@ -0,0 +1,34 @@
|
||||
/var/datum/controller/subsystem/icon_cache/SSicon_cache
|
||||
|
||||
/datum/controller/subsystem/icon_cache
|
||||
name = "Icon Cache"
|
||||
flags = SS_NO_FIRE | SS_NO_INIT
|
||||
|
||||
var/list/bloody_cache = list()
|
||||
|
||||
var/list/holo_multiplier_cache = list()
|
||||
var/list/holo_adder_cache = list()
|
||||
|
||||
var/list/image/fluidtrack_cache = list()
|
||||
|
||||
var/list/floor_decals = list()
|
||||
var/list/flooring_cache = list()
|
||||
|
||||
var/list/mob_hat_cache = list()
|
||||
|
||||
var/list/magazine_icondata_keys = list()
|
||||
var/list/magazine_icondata_states = list()
|
||||
|
||||
/*
|
||||
Global associative list for caching humanoid icons.
|
||||
Index format m or f, followed by a string of 0 and 1 to represent bodyparts followed by husk fat hulk skeleton 1 or 0.
|
||||
TODO: Proper documentation
|
||||
icon_key is [species.race_key][g][husk][fat][hulk][skeleton][s_tone]
|
||||
*/
|
||||
var/list/human_icon_cache = list()
|
||||
var/list/tail_icon_cache = list() //key is [species.race_key][r_skin][g_skin][b_skin]
|
||||
var/list/light_overlay_cache = list()
|
||||
var/list/limb_icon_cache = list()
|
||||
|
||||
/datum/controller/subsystem/icon_cache/New()
|
||||
NEW_SS_GLOBAL(SSicon_cache)
|
||||
Reference in New Issue
Block a user