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.
An control reference becomes invalid once the control behavior is removed or the entity (see LuaEntity) it resides in is destroyed.
defines.control_behavior.typeunknownfalseThe concrete type of this control behavior.
LuaEntityunknownfalseThe entity this control behavior belongs to.
LuaControlBehavior.get_circuit_network(wire_connector_id: defines.wire_connector_id) -> LuaCircuitNetwork?
controlBehavior.get_circuit_network(wire_connector_id)
takes_table: falsetable_optional: falsewire_connector_id: defines.wire_connector_id — Wire connector to get circuit network for.LuaCircuitNetwork? — The circuit network or nil.