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

Integrated Circuitboard

A circuitboard that holds components that work together

Has a limited amount of power.

Vars

attached_componentsThe attached components
cellThe power of the integrated circuit
display_nameThe name that appears on the shell.
label_max_lengthThe max length of the name.
onWhether the integrated circuit is on or not. Handled by the shell.
owner_idThe ID that is authorized to unlock/lock the shell so that the circuit can/cannot be removed.
shellThe shell that this circuitboard is attached to. Used by components.

Procs

add_componentAdds a component to the circuitboard
add_component_manuallyAdds a component to the circuitboard through a manual action.
remove_componentRemoves a component to the circuitboard
remove_current_shellUnregisters the current shell attached to this circuit.
set_shellRegisters an movable atom as a shell

Var Details

attached_components

The attached components

cell

The power of the integrated circuit

display_name

The name that appears on the shell.

label_max_length

The max length of the name.

on

Whether the integrated circuit is on or not. Handled by the shell.

owner_id

The ID that is authorized to unlock/lock the shell so that the circuit can/cannot be removed.

shell

The shell that this circuitboard is attached to. Used by components.

Proc Details

add_component

Adds a component to the circuitboard

Once the component is added, the ports can be attached to other components

add_component_manually

Adds a component to the circuitboard through a manual action.

remove_component

Removes a component to the circuitboard

This removes all connects between the ports

remove_current_shell

Unregisters the current shell attached to this circuit.

set_shell

Registers an movable atom as a shell

No functionality is done here. This is so that input components can properly register any signals on the shell. Arguments: