get_circuit_network(wire, circuit_connector) → LuaCircuitNetwork | |
type :: defines.control_behavior.type [R] | The concrete type of this control behavior. |
entity :: LuaEntity [R] | The entity this control behavior belongs to. |
output_signal :: SignalID [RW] | |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
get_signal_last_tick(signal) → int | Gets the value of a specific signal sent by this combinator behavior last tick or nil if the signal didn't exist. |
signals_last_tick :: array[Signal] [R] | The circuit network signals sent by this combinator last tick. |
set_signal(index, signal) | Sets the signal at the given index |
get_signal(index) → Signal | Gets the signal at the given index. |
parameters :: array[ConstantCombinatorParameters] [RW] | The constant combinator parameters |
enabled :: boolean [RW] | Turns this constant combinator on and off. |
signals_count :: uint [R] | The number of signals this constant combinator supports |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
disabled :: boolean [R] | If the entity is currently disabled because of the control behavior. |
circuit_condition :: CircuitConditionDefinition [RW] | The circuit condition. |
logistic_condition :: CircuitConditionDefinition [RW] | The logistic condition. |
connect_to_logistic_network :: boolean [RW] | true if this should connect to the logistic network. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
circuit_mode_of_operation :: defines.control_behavior.logistic_container.circuit_mode_of_operation [RW] | The circuit mode of operations for the logistic container. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
circuit_parameters :: ProgrammableSpeakerCircuitParameters [RW] | |
circuit_condition :: CircuitConditionDefinition [RW] | |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
red_signal :: SignalID [RW] | |
orange_signal :: SignalID [RW] | |
green_signal :: SignalID [RW] | |
blue_signal :: SignalID [RW] | |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
red_signal :: SignalID [RW] | |
orange_signal :: SignalID [RW] | |
green_signal :: SignalID [RW] | |
close_signal :: boolean [RW] | If this will close the rail signal based off the circuit condition. |
read_signal :: boolean [RW] | If this will read the rail signal state. |
circuit_condition :: CircuitConditionDefinition [RW] | The circuit condition when controlling the signal through the circuit network. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
read_logistics :: boolean [RW] | true if the roboport should report the logistics network content to the circuit network. |
read_robot_stats :: boolean [RW] | true if the roboport should report the robot statistics to the circuit network. |
available_logistic_output_signal :: SignalID [RW] | |
total_logistic_output_signal :: SignalID [RW] | |
available_construction_output_signal :: SignalID [RW] | |
total_construction_output_signal :: SignalID [RW] | |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
circuit_condition :: CircuitConditionDefinition [RW] | The circuit condition. |
open_gate :: boolean [RW] | |
read_sensor :: boolean [RW] | |
output_signal :: SignalID [RW] | |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
parameters :: ArithmeticCombinatorParameters [RW] | The arithmetic combinator parameters. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
parameters :: DeciderCombinatorParameters [RW] | The decider combinator parameters |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
circuit_read_hand_contents :: boolean [RW] | true if the contents of the inserter hand should be sent to the circuit network
|
circuit_mode_of_operation :: defines.control_behavior.inserter.circuit_mode_of_operation [RW] | The circuit mode of operations for the inserter. |
circuit_hand_read_mode :: defines.control_behavior.inserter.hand_read_mode [RW] | The hand read mode for the inserter. |
circuit_set_stack_size :: boolean [RW] | If the stack size of the inserter is set through the circuit network or not. |
circuit_stack_control_signal :: SignalID [RW] | The signal used to set the stack size of the inserter. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
use_colors :: boolean [RW] | true if the lamp should set the color from the circuit network signals. |
color :: Color [R] | The color the lamp is showing or nil if not using any color. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
circuit_enable_disable :: boolean [RW] | true if this drill is enabled or disabled using the logistics or circuit condition. |
circuit_read_resources :: boolean [RW] | true if this drill should send the resources in the field to the circuit network. |
resource_read_mode :: defines.control_behavior.mining_drill.resource_read_mode [RW] | If the mining drill should send just the resources in its area or the entire field it's on to the circuit network. |
resource_read_targets :: array[LuaEntity] [R] | The resource entities that the mining drill will send information about to the circuit network or an empty array. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
send_to_train :: boolean [RW] | true if the train stop should send the circuit network contents to the train to use. |
read_from_train :: boolean [RW] | true if the train stop should send the train contents to the circuit network. |
read_stopped_train :: boolean [RW] | true if the train stop should send the stopped train id to the circuit network. |
set_trains_limit :: boolean [RW] | true if the trains_limit_signal is used to set a limit of trains incoming for train stop. |
read_trains_count :: boolean [RW] | true if the train stop should send amount of incoming trains to the circuit network. |
enable_disable :: boolean [RW] | true if the train stop is enabled/disabled through the circuit network. |
stopped_train_signal :: SignalID [RW] | The signal that will be sent when using the send-train-id option. |
trains_count_signal :: SignalID [RW] | The signal that will be sent when using the read-trains-count option. |
trains_limit_signal :: SignalID [RW] | The signal to be used by set-trains-limit to limit amount of incoming trains |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
enable_disable :: boolean [RW] | If the belt will be enabled/disabled based off the circuit network. |
read_contents :: boolean [RW] | If the belt will read the contents and send them to the circuit network. |
read_contents_mode :: defines.control_behavior.transport_belt.content_read_mode [RW] | The read mode for the belt. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
The control behavior for an entity. Inserters have logistic network and circuit network behavior logic, lamps have circuit logic and so on. This is an abstract base class that concrete control behaviors inherit.
The concrete type of this control behavior.
The entity this control behavior belongs to.
Control behavior for accumulators.
Control behavior for constant combinators.
The constant combinator parameters
nil
clears the parameters.Turns this constant combinator on and off.
The number of signals this constant combinator supports
Control behavior for container entities.
An abstract base class for behaviors that support switching the entity on or off based on some condition.
If the entity is currently disabled because of the control behavior.
The circuit condition.
condition
may be nil
in order to clear the circuit condition. a_behavior.circuit_condition = {condition={comparator=">",
first_signal={type="item", name="rail-chain-signal"},
constant=4}}
The logistic condition.
condition
may be nil
in order to clear the logistic condition. a_behavior.logistic_condition = {condition={comparator=">",
first_signal={type="item", name="rail-chain-signal"},
constant=4}}
true
if this should connect to the logistic network.
Control behavior for logistic chests.
The circuit mode of operations for the logistic container.
Control behavior for programmable speakers.
Control behavior for rail signals.
If this will close the rail signal based off the circuit condition.
If this will read the rail signal state.
The circuit condition when controlling the signal through the circuit network.
Control behavior for roboports.
true
if the roboport should report the logistics network content to the circuit network.
true
if the roboport should report the robot statistics to the circuit network.
Control behavior for storage tanks.
Control behavior for walls.
The circuit condition.
Control behavior for arithmetic combinators.
The arithmetic combinator parameters.
parameters
may be nil
in order to clear the parameters.Control behavior for decider combinators.
The decider combinator parameters
nil
clears the parameters.Control behavior for inserters.
true
if the contents of the inserter hand should be sent to the circuit network
The circuit mode of operations for the inserter.
The hand read mode for the inserter.
If the stack size of the inserter is set through the circuit network or not.
The signal used to set the stack size of the inserter.
Control behavior for mining drills.
true
if this drill is enabled or disabled using the logistics or circuit condition.
true
if this drill should send the resources in the field to the circuit network.
Which resources depends on LuaMiningDrillControlBehavior::resource_read_mode
If the mining drill should send just the resources in its area or the entire field it's on to the circuit network.
The resource entities that the mining drill will send information about to the circuit network or an empty array.
Control behavior for train stops.
true
if the train stop should send the circuit network contents to the train to use.
true
if the train stop should send the train contents to the circuit network.
true
if the train stop should send the stopped train id to the circuit network.
true
if the trains_limit_signal is used to set a limit of trains incoming for train stop.
true
if the train stop should send amount of incoming trains to the circuit network.
true
if the train stop is enabled/disabled through the circuit network.
The signal that will be sent when using the send-train-id option.
The signal that will be sent when using the read-trains-count option.
The signal to be used by set-trains-limit to limit amount of incoming trains
Control behavior for transport belts.
If the belt will be enabled/disabled based off the circuit network.
If the belt will read the contents and send them to the circuit network.
The read mode for the belt.