mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
Removes a whole bunch of in world loops. Reworks SSmachinery to hold two lists: all_machines and processing_machines. all_machines contains all machines 5ever. All of them. Literally. Forever. And ever. processing_machines only contains machines that process with the SSmachinery controller. I checked most types at runtime on the live server to see whether they're in processing_machines or in all_machines, and did debug to ensure that most machinery ends up and stays in all_machines. Includes a basic UT to make sure all mapped in machinery types remain within the all_machines list post-init.
17 lines
477 B
Plaintext
17 lines
477 B
Plaintext
var/datum/controller/subsystem/processing/pipenet/SSpipenet
|
|
/datum/controller/subsystem/processing/pipenet
|
|
name = "Pipenet"
|
|
init_order = SS_INIT_PIPENET
|
|
priority = SS_PRIORITY_MACHINERY
|
|
flags = 0
|
|
|
|
/datum/controller/subsystem/processing/pipenet/New()
|
|
NEW_SS_GLOBAL(SSpipenet)
|
|
|
|
/datum/controller/subsystem/processing/pipenet/Initialize(timeofday)
|
|
for (var/obj/machinery/atmospherics/machine in SSmachinery.processing_machines)
|
|
machine.build_network()
|
|
|
|
CHECK_TICK
|
|
..()
|