AA's Monolith Maze Machine

This commit is contained in:
AffectedArc07
2021-01-23 13:29:29 +00:00
parent ea0fa2fc85
commit daf8f7237c
10 changed files with 2820 additions and 2503 deletions

View File

@@ -0,0 +1,18 @@
// This subsystem is to initialize things which need to happen after SSatoms
// This is for things which can take a long period of time and shouldnt bog down SSatoms
// Use this for stuff like random room spawners or maze generators
// Basically, this manages atom-based maploaders
SUBSYSTEM_DEF(late_mapping)
name = "Late Mapping"
init_order = INIT_ORDER_LATE_MAPPING
flags = SS_NO_FIRE
/// List of all maze generators to process
var/list/obj/effect/mazegen/generator/maze_generators = list()
/datum/controller/subsystem/late_mapping/Initialize(start_timeofday)
if(length(maze_generators))
log_startup_progress("Generating mazes...")
for(var/i in maze_generators)
var/obj/effect/mazegen/generator/MG = i
MG.generate()
return ..()