mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
21 lines
501 B
Plaintext
21 lines
501 B
Plaintext
/datum/controller/process/mob
|
|
var/tmp/datum/updateQueue/updateQueueInstance
|
|
|
|
/datum/controller/process/mob/setup()
|
|
name = "mob"
|
|
schedule_interval = 20 // every 2 seconds
|
|
updateQueueInstance = new
|
|
|
|
/datum/controller/process/mob/started()
|
|
..()
|
|
if(!updateQueueInstance)
|
|
if(!mob_list)
|
|
mob_list = list()
|
|
else if(mob_list.len)
|
|
updateQueueInstance = new
|
|
|
|
/datum/controller/process/mob/doWork()
|
|
if(updateQueueInstance)
|
|
updateQueueInstance.init(mob_list, "Life")
|
|
updateQueueInstance.Run()
|