/tg/ Station 13 - Modules - Types — Var Details - Proc Details

cyborg_layout_saves

Vars

budgetHow many ms saves may still take now. Below zero, they went over, and that is paid back first.
budget_atWhen budget was last topped up.
queueAccounts owing a save, in the order they asked.

Procs

ShutdownWrites every waiting account before the world goes, whatever its spacing or the budget.
fireSaves queued accounts in order while the budget and the tick last. Accounts still inside their spacing keep their place.
stat_entryShows how many accounts are waiting, and what is left of the budget.

Var Details

budget

How many ms saves may still take now. Below zero, they went over, and that is paid back first.

budget_at

When budget was last topped up.

queue

Accounts owing a save, in the order they asked.

Proc Details

Shutdown

Writes every waiting account before the world goes, whatever its spacing or the budget.

fire

Saves queued accounts in order while the budget and the tick last. Accounts still inside their spacing keep their place.

stat_entry

Shows how many accounts are waiting, and what is left of the budget.