LuaCircuitNetwork

A circuit network associated with a given entity, connector, and wire type.

class LuaCircuitNetwork - sort
get_signal(signal) → int
entity :: LuaEntity [R] The entity this circuit network reference is associated with
wire_type :: defines.wire_type [R] The wire type this network is associated with.
circuit_connector_id :: defines.circuit_connector_id [R] The circuit connector ID on the associated entity this network was gotten from.
signals :: array[Signal] [R] The circuit network signals last tick.
network_id :: uint [R] The circuit networks ID.
connected_circuit_count :: uint [R] The number of circuits connected to this 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.
get_signal(signal) → int

Parameters
signal :: SignalID: The signal to read.
Return value
The current value of the signal.
entity :: LuaEntity [Read-only]

The entity this circuit network reference is associated with

wire_type :: defines.wire_type [Read-only]

The wire type this network is associated with.

circuit_connector_id :: defines.circuit_connector_id [Read-only]

The circuit connector ID on the associated entity this network was gotten from.

signals :: array[Signal] [Read-only]

The circuit network signals last tick. nil if there are no signals.

network_id :: uint [Read-only]

The circuit networks ID.

connected_circuit_count :: uint [Read-only]

The number of circuits connected to this network.