Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/listener_tick_cache

Listener tick caches are responsible for storing the "listeners by type" lists calculated by PassToChannel() for a single tick. This allows all other hearing operations occuring on the same tick from the same origin to quickly retrieve the relevant listeners; this is why speaking into over ten radios at once doesn't grind the game to a halt.

Vars

cache_tickThe tick for which cached_listeners_by_message_origin is valid.
cached_listeners_by_range_message_originA list of message origins, and the cached listen_module_by_type lists associated with that origin at a specific range.

Procs

read_from_cacheAttempt to retrieve a list of listeners by type, if it exists.
write_to_cacheTemporarily cache a list of listeners by type. The depth of this list is dependent on the number of conditions that the associated say channel considers.

Var Details

cache_tick

The tick for which cached_listeners_by_message_origin is valid.

cached_listeners_by_range_message_origin

A list of message origins, and the cached listen_module_by_type lists associated with that origin at a specific range.

Proc Details

read_from_cache

Attempt to retrieve a list of listeners by type, if it exists.

write_to_cache

Temporarily cache a list of listeners by type. The depth of this list is dependent on the number of conditions that the associated say channel considers.