/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/wiremod.dm

COMPONENT_TRIGGERED_BYHelper define that can only be used in /obj/item/circuit_component/input_received()
TRIGGER_CIRCUIT_COMPONENTDefine to automatically handle calling the output port. Will not call the output port if the input_received proc returns TRUE.
PORT_TYPE_ANYCan accept any datatype. Only works for inputs, output types will runtime.
PORT_TYPE_STRINGString datatype
PORT_TYPE_NUMBERNumber datatype
PORT_TYPE_SIGNALSignal datatype
PORT_TYPE_LISTList datatype
PORT_TYPE_TABLETable datatype. Derivative of list, contains other lists with matching columns.
PORT_TYPE_ATOMAtom datatype
PORT_ATOM_MAX_RANGEThe maximum range between a port and an atom
COMPONENT_MIN_RANDOM_POSThe minimum position of the x and y co-ordinates of the component in the UI
COMPONENT_MAX_RANDOM_POSThe maximum position of the x and y co-ordinates of the component in the UI
COMPONENT_MAX_POSThe maximum position in both directions that a component can be in. Prevents someone from positioning a component at an absurdly high value.
COMPONENT_SIGNALThe value that is sent whenever a component is simply sending a signal. This can be anything.
COMP_DELAY_MIN_VALUEThe minimum delay value that the delay component can have.
SHELL_FLAG_CIRCUIT_FIXEDWhether a circuit is stuck on a shell and cannot be removed (by a user)
SHELL_FLAG_REQUIRE_ANCHORWhether the shell needs to be anchored for the circuit to be on.
SHELL_FLAG_USB_PORTWhether or not the shell has a USB port.
SHELL_FLAG_ALLOW_FAILURE_ACTIONWhether the shell allows actions to be peformed on a shell if the action fails. This will additionally block the messages from being displayed.
USB_CABLE_MAX_RANGEThe maximum range a USB cable can be apart from a source
CIRCUIT_FLAG_INPUT_SIGNALCreates an input trigger that means the component won't be triggered unless the trigger is pulsed.
CIRCUIT_FLAG_OUTPUT_SIGNALCreates an output trigger that sends a pulse whenever the component is successfully triggered
CIRCUIT_FLAG_UNDUPEABLEProhibits the component from being duplicated via the module duplicator
CIRCUIT_FLAG_HIDDENThis circuit component does not show in the menu.

Define Details

CIRCUIT_FLAG_HIDDEN

This circuit component does not show in the menu.

CIRCUIT_FLAG_INPUT_SIGNAL

Creates an input trigger that means the component won't be triggered unless the trigger is pulsed.

CIRCUIT_FLAG_OUTPUT_SIGNAL

Creates an output trigger that sends a pulse whenever the component is successfully triggered

CIRCUIT_FLAG_UNDUPEABLE

Prohibits the component from being duplicated via the module duplicator

COMPONENT_MAX_POS

The maximum position in both directions that a component can be in. Prevents someone from positioning a component at an absurdly high value.

COMPONENT_MAX_RANDOM_POS

The maximum position of the x and y co-ordinates of the component in the UI

COMPONENT_MIN_RANDOM_POS

The minimum position of the x and y co-ordinates of the component in the UI

COMPONENT_SIGNAL

The value that is sent whenever a component is simply sending a signal. This can be anything.

COMPONENT_TRIGGERED_BY

Helper define that can only be used in /obj/item/circuit_component/input_received()

COMP_DELAY_MIN_VALUE

The minimum delay value that the delay component can have.

PORT_ATOM_MAX_RANGE

The maximum range between a port and an atom

PORT_TYPE_ANY

Can accept any datatype. Only works for inputs, output types will runtime.

PORT_TYPE_ATOM

Atom datatype

PORT_TYPE_LIST

List datatype

PORT_TYPE_NUMBER

Number datatype

PORT_TYPE_SIGNAL

Signal datatype

PORT_TYPE_STRING

String datatype

PORT_TYPE_TABLE

Table datatype. Derivative of list, contains other lists with matching columns.

SHELL_FLAG_ALLOW_FAILURE_ACTION

Whether the shell allows actions to be peformed on a shell if the action fails. This will additionally block the messages from being displayed.

SHELL_FLAG_CIRCUIT_FIXED

Whether a circuit is stuck on a shell and cannot be removed (by a user)

SHELL_FLAG_REQUIRE_ANCHOR

Whether the shell needs to be anchored for the circuit to be on.

SHELL_FLAG_USB_PORT

Whether or not the shell has a USB port.

TRIGGER_CIRCUIT_COMPONENT

Define to automatically handle calling the output port. Will not call the output port if the input_received proc returns TRUE.

USB_CABLE_MAX_RANGE

The maximum range a USB cable can be apart from a source