Files
Aurora.3/code/controllers/Processes/news.dm
skull132 30809a8edf News Controller
Pulls over the SQL based controller for automatically publishing news articles, and ties it to the process-scheduler. Also refractored it a little from the initial implementation in oldcode.
2015-09-22 12:45:24 +03:00

13 lines
357 B
Plaintext

/datum/controller/process/news/setup()
name = "news"
schedule_interval = 600 // every 60 seconds
if(!news_controller)
news_controller = new
/datum/controller/process/news/doWork()
news_controller.process()
/datum/controller/process/news/getStatName()
return ..()+"(STAT:[news_controller.running] FLS:[news_controller.fails])"