Shiptest 13 - Modules - TypesVar Details

connect_range

This component behaves similar to connect_loc_behalf but for all turfs in range, hooking into a signal on each of them. Just like connect_loc_behalf, It can react to that signal on behalf of a seperate listener. Good for components, though it carries some overhead. Can't be an element as that may lead to bugs.

Vars

connectionsAn assoc list of signal -> procpath to register to the loc this object is on.
rangeThe component will hook into signals only on turfs not farther from tracked than this.
trackedThe atom the component is tracking. The component will delete itself if the tracked is deleted. Signals will also be updated whenever it moves (if it's a movable).
works_in_containersWhether the component works when the movable isn't directly located on a turf.

Var Details

connections

An assoc list of signal -> procpath to register to the loc this object is on.

range

The component will hook into signals only on turfs not farther from tracked than this.

tracked

The atom the component is tracking. The component will delete itself if the tracked is deleted. Signals will also be updated whenever it moves (if it's a movable).

works_in_containers

Whether the component works when the movable isn't directly located on a turf.