mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
19 lines
528 B
Plaintext
19 lines
528 B
Plaintext
/datum/controller/process/nanoui/setup()
|
|
name = "nanoui"
|
|
schedule_interval = 20 // every 2 seconds
|
|
|
|
/datum/controller/process/nanoui/statProcess()
|
|
..()
|
|
stat(null, "[GLOB.nanomanager.processing_uis.len] UIs")
|
|
|
|
/datum/controller/process/nanoui/doWork()
|
|
for(last_object in GLOB.nanomanager.processing_uis)
|
|
var/datum/nanoui/NUI = last_object
|
|
if(istype(NUI) && !QDELETED(NUI))
|
|
try
|
|
NUI.process()
|
|
catch(var/exception/e)
|
|
catchException(e, NUI)
|
|
else
|
|
catchBadType(NUI)
|
|
GLOB.nanomanager.processing_uis -= NUI |