Integrated Circuitboard

A circuitboard that holds components that work together
Has a limited amount of power.
Vars | |
attached_components | The attached components |
---|---|
cell | The power of the integrated circuit |
display_name | The name that appears on the shell. |
examined_component | The current examined component. Used in IntegratedCircuit UI |
examined_rel_x | X position of the examined_component |
examined_rel_y | Y position of the examined component |
inserter_mind | Set by the shell. Holds the reference to the owner who inserted the component into the shell. |
label_max_length | The max length of the name. |
locked | Whether the integrated circuit is locked or not. Handled by the shell. |
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. |
Procs | |
add_component | Adds a component to the circuitboard |
add_component_manually | Adds a component to the circuitboard through a manual action. |
convert_to_json | Converts a circuit into json. |
get_creator | Returns the creator of the integrated circuit. Used in admin logs and other related things. |
get_creator_admin | Returns the creator of the integrated circuit. Used in admin messages and other related things. |
load_circuit_data | Loads a circuit based on json data at a location. Can also load usb connections, such as arrest consoles. |
remove_component | Removes a component to the circuitboard |
remove_current_shell | Unregisters the current shell attached to this circuit. |
set_display_name | Sets the display name that appears on the shell. |
set_shell | Registers 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.
examined_component

The current examined component. Used in IntegratedCircuit UI
examined_rel_x

X position of the examined_component
examined_rel_y

Y position of the examined component
inserter_mind

Set by the shell. Holds the reference to the owner who inserted the component into the shell.
label_max_length

The max length of the name.
locked

Whether the integrated circuit is locked or not. Handled by the shell.
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.
convert_to_json
Converts a circuit into json.
get_creator
Returns the creator of the integrated circuit. Used in admin logs and other related things.
get_creator_admin
Returns the creator of the integrated circuit. Used in admin messages and other related things.
load_circuit_data
Loads a circuit based on json data at a location. Can also load usb connections, such as arrest consoles.
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_display_name
Sets the display name that appears on the shell.
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:
- new_shell - The new shell to register.