/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

admin_onlyWhether the integrated circuit is admin only. Disables power usage and allows admin circuits to be attached, at the cost of making it inaccessible to regular users.
assoc_list_variablesAssoc list variables stored on this integrated circuit, with a variable_name = value structure
attached_componentsThe attached components
cellThe power of the integrated circuit
circuit_variablesVariables stored on this integrated circuit, with a variable_name = value structure
current_sizeThe current size of the circuit.
display_nameThe name that appears on the shell.
examined_componentThe current examined component. Used in IntegratedCircuit UI
examined_rel_xX position of the examined_component
examined_rel_yY position of the examined component
grid_modeThe grid mode state for the circuit.
inserter_mindSet by the shell. Holds the reference to the owner who inserted the component into the shell.
label_max_lengthThe max length of the name.
linked_component_printerThe current linked component printer. Lets you remotely print off circuit components and places them in the integrated circuit.
list_variablesList variables stored on this integrated circuit, with a variable_name = value structure
lockedWhether the integrated circuit is locked or not. Handled by the shell.
max_setters_and_gettersThe maximum amount of setters and getters a circuit can have
modifiable_circuit_variablesVariables stored on this integrated circuit that can be set by a setter, with a variable_name = value structure
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.
screen_xThe X position of the screen. Used for adding components
screen_yThe Y position of the screen. Used for adding components.
setter_and_getter_countThe current setter and getter count the circuit has.
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.
attempt_save_toAttempts to save a circuit to a given client
convert_to_jsonConverts a circuit into json.
get_creatorReturns the creator of the integrated circuit. Used in admin logs and other related things.
get_creator_adminReturns the creator of the integrated circuit. Used in admin messages and other related things.
is_duplicateUsed for checking if another component of to_check's type exists in the circuit. Introspects through modules.
load_circuit_dataLoads a circuit based on json data at a location. Can also load usb connections, such as arrest consoles.
remove_componentRemoves a component to the circuitboard
remove_current_shellUnregisters the current shell attached to this circuit.
set_cellSets the cell of the integrated circuit.
set_display_nameSets the display name that appears on the shell.
set_lockedSets the locked status of the integrated circuit.
set_onSets the on status of the integrated circuit.
set_shellRegisters an movable atom as a shell
toggle_grid_modeToggles the grid mode property for this circuit.

Var Details

admin_only

Whether the integrated circuit is admin only. Disables power usage and allows admin circuits to be attached, at the cost of making it inaccessible to regular users.

assoc_list_variables

Assoc list variables stored on this integrated circuit, with a variable_name = value structure

attached_components

The attached components

cell

The power of the integrated circuit

circuit_variables

Variables stored on this integrated circuit, with a variable_name = value structure

current_size

The current size of the 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

grid_mode

The grid mode state for the circuit.

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.

linked_component_printer

The current linked component printer. Lets you remotely print off circuit components and places them in the integrated circuit.

list_variables

List variables stored on this integrated circuit, with a variable_name = value structure

locked

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

max_setters_and_getters

The maximum amount of setters and getters a circuit can have

modifiable_circuit_variables

Variables stored on this integrated circuit that can be set by a setter, with a variable_name = value structure

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.

screen_x

The X position of the screen. Used for adding components

screen_y

The Y position of the screen. Used for adding components.

setter_and_getter_count

The current setter and getter count the circuit has.

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.

attempt_save_to

Attempts to save a circuit to a given client

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.

is_duplicate

Used for checking if another component of to_check's type exists in the circuit. Introspects through modules.

Arguments:

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_cell

Sets the cell of the integrated circuit.

Arguments:

set_display_name

Sets the display name that appears on the shell.

set_locked

Sets the locked status of the integrated circuit.

Arguments:

set_on

Sets the on status of the integrated circuit.

Arguments:

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:

toggle_grid_mode

Toggles the grid mode property for this circuit.