Reorganzied Holo Minimaps into SSholomaps subsystem.

Running its init as part of proper init sequence lets us time it properly.
Plus its nicer than the hacky override of the old master controller.
This commit is contained in:
Leshana
2018-02-05 00:02:57 -05:00
parent 6ce25e9166
commit 56bb1c46ec
6 changed files with 44 additions and 28 deletions

View File

@@ -0,0 +1,24 @@
//
// Holo-Minimaps Generation Subsystem handles initialization of the holo minimaps.
// Look in code/modules/holomap/generate_holomap.dm to find generateHoloMinimaps()
//
SUBSYSTEM_DEF(holomaps)
name = "HoloMiniMaps"
init_order = INIT_ORDER_HOLOMAPS
flags = SS_NO_FIRE
var/static/holomaps_initialized = FALSE
var/static/list/holoMiniMaps = list()
var/static/list/extraMiniMaps = list()
var/static/list/station_holomaps = list()
/datum/controller/subsystem/holomaps/Recover()
flags |= SS_NO_INIT // Make extra sure we don't initialize twice.
/datum/controller/subsystem/holomaps/Initialize(timeofday)
generateHoloMinimaps()
. = ..()
/datum/controller/subsystem/holomaps/stat_entry(msg)
if (!Debug2)
return // Only show up in stat panel if debugging is enabled.
. = ..()