mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-13 10:52:09 +00:00
Unified most of the procs into one definition, so there are no duplicate around the codebase. Marked some of the above as overridable if a good enough case can be made for them (eg. external dependency or unlikely to be used).
16 lines
410 B
Plaintext
16 lines
410 B
Plaintext
TIMER_SUBSYSTEM_DEF(runechat)
|
|
name = "Runechat"
|
|
priority = FIRE_PRIORITY_RUNECHAT
|
|
|
|
var/list/datum/callback/message_queue = list()
|
|
|
|
/datum/controller/subsystem/timer/runechat/fire(resumed)
|
|
CAN_BE_REDEFINED(TRUE)
|
|
. = ..() //poggers
|
|
while(message_queue.len)
|
|
var/datum/callback/queued_message = message_queue[message_queue.len]
|
|
queued_message.Invoke()
|
|
message_queue.len--
|
|
if(MC_TICK_CHECK)
|
|
return
|