mobile_power

This component powers things in a range via signal intercepts instead of via area
Vars | |
active | active state |
---|---|
machines_to_power | machines this will power |
power_used | power used this tick |
size | area size |
Procs | |
activate | Enable power |
clear_machines | Remove all machines in our machine list |
deactivate | Disable power |
find_machines_in_range | Populate the machine list, do this as little as possible, range() is expensive |
glob_anchor_changed | Find new machines anchored inside our area |
obj_anchor_changed | Deal with one of our machines being unanchored |
parent_anchored | Handle parent being anchored/unanchored |
parent_process | Parent ticks over, reset power usage |
power_toggle | Parent active state toggled |
powered | Handle powered() machine checks |
use_power | Handle use_power() machine checks |
Var Details
active

active state
machines_to_power

machines this will power
power_used

power used this tick
size

area size
Proc Details
activate
Enable power
clear_machines
Remove all machines in our machine list
deactivate
Disable power
find_machines_in_range
Populate the machine list, do this as little as possible, range() is expensive
glob_anchor_changed
Find new machines anchored inside our area
obj_anchor_changed
Deal with one of our machines being unanchored
parent_anchored
Handle parent being anchored/unanchored
parent_process
Parent ticks over, reset power usage
power_toggle
Parent active state toggled
powered
Handle powered() machine checks
use_power
Handle use_power() machine checks