Vacuum Component

Adds a vacuum functionality to an atom, requires a trashbag to be linked using signals
Vars | |
vacuum_bag | The linked trash bag to vacuum trash into |
---|---|
Procs | |
attach_bag | Handler for when a new trash bag is attached |
detach_bag | Handler for when a trash bag is detached |
suck | Called when parent moves, deligates vacuuming functionality |
suck_items | Sucks up items as possible from a provided turf into the connected trash bag |
Var Details
vacuum_bag

The linked trash bag to vacuum trash into
Proc Details
attach_bag
Handler for when a new trash bag is attached
Arguments:
- source - The source of the signal
- new_bag - The new bag being installed
detach_bag
Handler for when a trash bag is detached
Arguments:
- source - The source of the signal
suck
Called when parent moves, deligates vacuuming functionality
Arguments:
- suckee - The source of the signal
suck_items
Sucks up items as possible from a provided turf into the connected trash bag
Arguments:
- tile - The tile upon which to vacuum up items