byond - Modules - TypesVar Details - Proc Details

mobile_power

This component powers things in a range via signal intercepts instead of via area

Vars

activeactive state
machines_to_powermachines this will power
power_usedpower used this tick
sizearea size

Procs

activateEnable power
clear_machinesRemove all machines in our machine list
deactivateDisable power
find_machines_in_rangePopulate the machine list, do this as little as possible, range() is expensive
glob_anchor_changedFind new machines anchored inside our area
obj_anchor_changedDeal with one of our machines being unanchored
parent_anchoredHandle parent being anchored/unanchored
parent_processParent ticks over, reset power usage
power_toggleParent active state toggled
poweredHandle powered() machine checks
use_powerHandle 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