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? |
help :: string [R] | 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 of Signal [R] | The circuit network signals sent by this combinator last tick. |
set_signal(index, ConstantCombiantorSignal) | Sets the signal at the given index |
get_signal(index) | Gets the signal at the given index or nil if there is none. |
parameters :: 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? |
help :: string [R] | All methods, and properties that this object supports. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | All methods, and properties that this object supports. |
disabled :: boolean [R] | If the entity is currently disabled because of the control behavior. |
circuit_condition :: CircuitConditionSpecification [RW] | The circuit condition. |
logistic_condition :: CircuitConditionSpecification [RW] | The logistic condition. |
connect_to_logistic_network :: boolean [RW] | true if this should connect to the logitic network. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | 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? |
help :: string [R] | All methods, and properties that this object supports. |
circuit_parameters :: ProgrammableSpeakerCircuitParameters [RW] | |
circuit_condition :: CircuitConditionSpecification [RW] | |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | All methods, and properties that this object supports. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | All methods, and properties that this object supports. |
mode_of_operations :: defines.control_behavior.roboport.circuit_mode_of_operation [RW] | |
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? |
help :: string [R] | All methods, and properties that this object supports. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | 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
|
valid :: boolean [R] | Is this object valid? |
help :: string [R] | All methods, and properties that this object supports. |
circuit_condition :: CircuitConditionSpecification [RW] | The circuit condition. |
open_gate :: boolean [RW] | |
read_sensor :: boolean [RW] | |
output_signal :: SignalID [RW] | |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | All methods, and properties that this object supports. |
parameters :: ArithmeticCombinatorParameters [RW] | The arithmetic combinator parameters. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | All methods, and properties that this object supports. |
parameters :: DeciderCombinatorParameters [RW] | The decider combinator parameters |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | 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. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | 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. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | 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 of 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? |
help :: string [R] | All methods, and properties that this object supports. |
valid :: boolean [R] | Is this object valid? |
help :: string [R] | 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
parameters
may be nil
in order to clear the parameters.Turns this constant combinator on and off.
The number of signals this constant combinator supports
Control behavior for container entities -- smart chests.
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 logitic 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.
Control behavior for roboports.
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
parameters
may be nil
in order to clear the parameters.Control behavior for smart 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.
Control behavior for lamps.
true
if the lamp should set the color from the circuit network signals.
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 transport belts.