mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
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:
24
code/controllers/subsystems/holomaps_vr.dm
Normal file
24
code/controllers/subsystems/holomaps_vr.dm
Normal 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.
|
||||
. = ..()
|
||||
Reference in New Issue
Block a user