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

cargo_catalogue

Display data for every listed supply pack

Vars

needs_buildWhether the catalogue needs (re)building on next use - set at first and whenever a listed pack changes
pack_indicesEach listed pack's index in the built catalogue, keyed by the pack
versionHow many times the catalogue has been built this round, so the UI can tell which build its indices are for

Procs

get_window_dataReturns the catalogue data a UI needs e.g. the file's url, which build it is, and each group's packs as index/price pairs

Var Details

needs_build

Whether the catalogue needs (re)building on next use - set at first and whenever a listed pack changes

pack_indices

Each listed pack's index in the built catalogue, keyed by the pack

version

How many times the catalogue has been built this round, so the UI can tell which build its indices are for

Proc Details

get_window_data

Returns the catalogue data a UI needs e.g. the file's url, which build it is, and each group's packs as index/price pairs