circuit_component_add_port ![code/modules/wiremod/dcs_components/component_add_port.dm 2](git.png)
Helper component that handles users adding/removing ports from a circuit component.
Vars | |
add_action | The action to add a port on |
---|---|
is_output | Whether we are adding output ports or not |
maximum_amount | The maximum amount of ports allowed |
minimum_amount | The minimum amount of ports required |
order | The order of the new ports |
port_list | The list to add the ports to when created |
port_type | The type of port |
prefix | The prefix of the new ports |
remove_action | The action to remove a port on |
Var Details
add_action ![code/modules/wiremod/dcs_components/component_add_port.dm 8](git.png)
The action to add a port on
is_output ![code/modules/wiremod/dcs_components/component_add_port.dm 14](git.png)
Whether we are adding output ports or not
maximum_amount ![code/modules/wiremod/dcs_components/component_add_port.dm 22](git.png)
The maximum amount of ports allowed
minimum_amount ![code/modules/wiremod/dcs_components/component_add_port.dm 20](git.png)
The minimum amount of ports required
order ![code/modules/wiremod/dcs_components/component_add_port.dm 18](git.png)
The order of the new ports
port_list ![code/modules/wiremod/dcs_components/component_add_port.dm 6](git.png)
The list to add the ports to when created
port_type ![code/modules/wiremod/dcs_components/component_add_port.dm 12](git.png)
The type of port
prefix ![code/modules/wiremod/dcs_components/component_add_port.dm 16](git.png)
The prefix of the new ports
remove_action ![code/modules/wiremod/dcs_components/component_add_port.dm 10](git.png)
The action to remove a port on