/tg/ Station 13 - Modules - TypesVar Details - Proc Details

candela_item_handler

Datum which handles interactions of items with the Candela network Not a component as item interactions can be much more involved and bi-directional which makes isolated nature of components a bad fit

Vars

active_slotsSlots in which the item keeps the connection to the network
beam_visualBeam visual connecting our user to their closest node
closest_nodeClosest node within our network (that we can see)to us
networkNetwork we're connected to, if any
on_network_cut_callbackCallback called when we're about to get cut from the network due to user movement : (atom/old_loc, old_dir, interrupt)
ownerMob which is currently holding/using the item
parentItem which owns this handler
storage_active_slotsSlots in which the storage containing this item can be in order for the item to keep the connection

Procs

locate_closest_networkLocates the closest node within any network to ourselves, and links to it and its network
locate_closest_nodeLocates the closest node within our network, or cuts the connection if none could be found

Var Details

active_slots

Slots in which the item keeps the connection to the network

beam_visual

Beam visual connecting our user to their closest node

closest_node

Closest node within our network (that we can see)to us

network

Network we're connected to, if any

on_network_cut_callback

Callback called when we're about to get cut from the network due to user movement : (atom/old_loc, old_dir, interrupt)

owner

Mob which is currently holding/using the item

parent

Item which owns this handler

storage_active_slots

Slots in which the storage containing this item can be in order for the item to keep the connection

Proc Details

locate_closest_network

Locates the closest node within any network to ourselves, and links to it and its network

locate_closest_node

Locates the closest node within our network, or cuts the connection if none could be found