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. |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
get_signal_last_tick(signal) | 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. |
parameters :: ConstantCombinatorParameters [RW] | The constant combinator parameters |
enabled :: boolean [RW] | Turns this constant combinator on and off. |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
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? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
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? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
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? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
send_to_train :: boolean [RW] | true if the train stop should send the circuit network contents to the train to use. |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
circuit_condition :: CircuitConditionSpecification [RW] | The circuit condition. |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity |
parameters :: ArithmeticCombinatorParameters [RW] | The arithmetic combinator parameters. |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity | |
Inherited from LuaCombinatorControlBehavior: get_signal_last_tick, signals_last_tick |
parameters :: DeciderCombinatorParameters [RW] | The decider combinator parameters |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity | |
Inherited from LuaCombinatorControlBehavior: get_signal_last_tick, signals_last_tick |
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? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity | |
Inherited from LuaGenericOnOffControlBehavior: disabled, circuit_condition, logistic_condition, connect_to_logistic_network |
use_colors :: boolean [RW] | true if the lamp should set the color from the circuit network signals. |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity | |
Inherited from LuaGenericOnOffControlBehavior: disabled, circuit_condition, logistic_condition, connect_to_logistic_network |
valid :: boolean [R] | Is this object valid? |
Inherited from LuaControlBehavior: get_circuit_network, type, entity | |
Inherited from LuaGenericOnOffControlBehavior: disabled, circuit_condition, logistic_condition, connect_to_logistic_network |
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.
Gets the value of a specific signal sent by this combinator behavior last tick or nil if the signal didn't exist.
The value or nil
if none.
The circuit network signals sent by this combinator last tick.
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.
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 rail signals.
Control behavior for roboports.
Control behavior for storage tanks.
Control behavior for train stops.
true
if the train stop should send the circuit network contents to the train to use.
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 transport belts.