mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
31 lines
740 B
Plaintext
31 lines
740 B
Plaintext
SUBSYSTEM_DEF(inbounds)
|
|
name = "Inbounds"
|
|
priority = 40
|
|
flags = SS_NO_INIT
|
|
runlevels = RUNLEVEL_GAME
|
|
|
|
var/list/processing = list()
|
|
var/list/currentrun = list()
|
|
|
|
/datum/controller/subsystem/inbounds/stat_entry()
|
|
..("P:[processing.len]")
|
|
|
|
/datum/controller/subsystem/inbounds/fire(resumed = 0)
|
|
if (!resumed)
|
|
src.currentrun = processing.Copy()
|
|
//cache for sanic speed (lists are references anyways)
|
|
var/list/currentrun = src.currentrun
|
|
|
|
while(currentrun.len)
|
|
var/atom/movable/thing = currentrun[currentrun.len]
|
|
currentrun.len--
|
|
if(thing)
|
|
thing.check_in_bounds(wait)
|
|
else
|
|
SSinbounds.processing -= thing
|
|
if(MC_TICK_CHECK)
|
|
return
|
|
|
|
/datum/controller/subsystem/inbounds/Recover()
|
|
processing = SSinbounds.processing
|