larva_queue

Handles clients getting the action to join the larva queue when they're eligible
Vars | |
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) |
Procs | |
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 |
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