/tg/ Station 13 - Modules - TypesVar Details - Proc Details

cargo_shelf

Vars

capacityhow many items the shelf can hold. Only supports 3 because that's how many can fit in a 32x32 tile.
crates_storedList of which crates are stored where, to keep track of occupied slots
use_delaythe delay before the shelf is truly used

Procs

add_crateAdds a crate to the shelf
can_loadReturns if this crate can actually be loaded
crate_countSpits out how many crates are currently stored, counting the non nulls
loadproc that will attempt to add something to the contents of the shelf
remove_crateRemoves a crate from the shelf
spill_contentsFling crates around and open/break some of them in the process
unloadproc that will attempt to remove something to the contents of the shelf

Var Details

capacity

how many items the shelf can hold. Only supports 3 because that's how many can fit in a 32x32 tile.

crates_stored

List of which crates are stored where, to keep track of occupied slots

use_delay

the delay before the shelf is truly used

Proc Details

add_crate

Adds a crate to the shelf

can_load

Returns if this crate can actually be loaded

crate_count

Spits out how many crates are currently stored, counting the non nulls

load

proc that will attempt to add something to the contents of the shelf

remove_crate

Removes a crate from the shelf

spill_contents

Fling crates around and open/break some of them in the process

unload

proc that will attempt to remove something to the contents of the shelf