byond - Modules - TypesVar Details - Proc Details

larva_queue

Handles clients getting the action to join the larva queue when they're eligible

Vars

actionOur queue action
positionThe position we have in the larva queue (0 means you're not in it)
waiterThe client we track (instead of having to cast every time)

Procs

add_queue_actionAdds the larva queue action whenever the client is eligible to wait Removes from queue if they were no longer eligible
get_queue_positionGets the current position in the larva queue
remove_queue_actionRemoves the larva queue action whenever the client leaves a mob
set_queue_positionSets the current position in the larva queue

Var Details

action

Our queue action

position

The position we have in the larva queue (0 means you're not in it)

waiter

The client we track (instead of having to cast every time)

Proc Details

add_queue_action

Adds the larva queue action whenever the client is eligible to wait Removes from queue if they were no longer eligible

get_queue_position

Gets the current position in the larva queue

remove_queue_action

Removes the larva queue action whenever the client leaves a mob

set_queue_position

Sets the current position in the larva queue