ClassLuaConstantCombinatorControlBehaviorextendsLuaControlBehavior
| Inherits from LuaControlBehavior |
Members
| add_section(group?) | → LuaLogisticSection? | Adds a new logistic section to this constant combinator if possible. |
Adds a new logistic section to this constant combinator if possible. | ||
| remove_section(section_index) | → boolean | Removes the given logistic section if possible. [...] |
Removes the given logistic section if possible. [...] | ||
| get_section(section_index) | → LuaLogisticSection? | Gets section on the selected index, if it exists. |
Gets section on the selected index, if it exists. | ||
| enabled | :: RW boolean | Turns this constant combinator on and off. |
Turns this constant combinator on and off. | ||
| sections | :: R array[LuaLogisticSection] | All logistic sections of this constant combinator. |
All logistic sections of this constant combinator. | ||
| sections_count | :: R uint32 | Amount of logistic sections this constant combinator has. |
Amount of logistic sections this constant combinator has. | ||
| valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
| object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] | ||
| get_circuit_network(wire_connector_id) | → LuaCircuitNetwork? | |
| input_networks new | :: RW CircuitNetworkSelection? | Which circuit networks (red/green) to read signals from. [...] |
Which circuit networks (red/green) to read signals from. [...] | ||
| output_networks new | :: RW CircuitNetworkSelection? | Which circuit networks (red/green) to send signals to. [...] |
Which circuit networks (red/green) to send signals to. [...] | ||
| type | :: R defines.control_behavior.type | The concrete type of this control behavior. |
The concrete type of this control behavior. | ||
| entity | :: R LuaEntity | The entity this control behavior belongs to. |
The entity this control behavior belongs to. | ||
Methods
add_section(group?) → LuaLogisticSection?
Parameters
| group | :: string? | The group to assign this section to. |
The group to assign this section to. | ||
Return values
| → LuaLogisticSection? | Logistic section if added. |

