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.
This commit is contained in:
skull132
2015-09-22 12:45:24 +03:00
parent 24ba93c3fa
commit 30809a8edf
2 changed files with 102 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/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])"