/tg/ Station 13 - Modules - TypesVar Details - Proc Details

speech_controller

Vars

FOR_ADMINS_IF_BROKE_immediately_execute_all_speechused so that an admin can force all speech verbs to execute immediately instead of queueing
queued_says_to_executelist of the form: list(client mob, message that mob is queued to say, other say arguments (if any)). this is our process queue, processed every tick.

Procs

process_single_say
queue_say_for_mobqueues mob_to_queue into our process list so they say(message) near the start of the next tick

Var Details

FOR_ADMINS_IF_BROKE_immediately_execute_all_speech

used so that an admin can force all speech verbs to execute immediately instead of queueing

queued_says_to_execute

list of the form: list(client mob, message that mob is queued to say, other say arguments (if any)). this is our process queue, processed every tick.

Proc Details

process_single_say

cache for sanic speed (lists are references anyways)

used in fire() to process a single mobs message through the relevant proc. only exists so that sleeps in the message pipeline dont cause the whole queue to wait

queue_say_for_mob

queues mob_to_queue into our process list so they say(message) near the start of the next tick