/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_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.
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

Define Details

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

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

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.

TRIGGER_CIRCUIT_COMPONENT

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