cargo_shelf 
MARK: Crate Shelf
Original crate shelf port from Shiptest: https://github.com/shiptest-ss13/Shiptest/pull/2374 Our port from NovaSector: https://github.com/NovaSector/NovaSector/pull/6550
- LitleBoobs
Vars | |
| 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 |
Procs | |
| 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 |
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