LuaLogisticCell

Logistic cell of a particular LuaEntity. A "Logistic Cell" is the given name for settings and properties used by what would normally be seen as a "Roboport". A logistic cell however doesn't have to be attached to the roboport entity (the character has one for the personal roboport).

class LuaLogisticCell - sort
is_in_logistic_range(position) → boolean Is a given position within the logistic range of this cell?
is_in_construction_range(position) → boolean Is a given position within the construction range of this cell?
is_neighbour_with(other) → boolean Are two cells neighbours?
logistic_radius :: float [R] Logistic radius of this cell.
logistics_connection_distance :: float [R] Logistic connection distance of this cell.
construction_radius :: float [R] Construction radius of this cell.
stationed_logistic_robot_count :: uint [R] Number of stationed logistic robots in this cell.
stationed_construction_robot_count :: uint [R] Number of stationed construction robots in this cell.
mobile :: boolean [R] true if this is a mobile cell.
transmitting :: boolean [R] true if this cell is active.
charge_approach_distance :: float [R] Radius at which the robots hover when waiting to be charged.
charging_robot_count :: uint [R] Number of robots currently charging.
to_charge_robot_count :: uint [R] Number of robots waiting to charge.
owner :: LuaEntity [R] This cell's owner.
logistic_network :: LuaLogisticNetwork [R] The network that owns this cell or nil.
neighbours :: array[LuaLogisticCell] [R] Neighbouring cells.
charging_robots :: array[LuaEntity] [R] Robots currently being charged.
to_charge_robots :: array[LuaEntity] [R] Robots waiting to charge.
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.
is_in_logistic_range(position) → boolean

Is a given position within the logistic range of this cell?

Parameters
position :: Position
is_in_construction_range(position) → boolean

Is a given position within the construction range of this cell?

Parameters
position :: Position
is_neighbour_with(other) → boolean

Are two cells neighbours?

Parameters
logistic_radius :: float [Read-only]

Logistic radius of this cell.

logistics_connection_distance :: float [Read-only]

Logistic connection distance of this cell.

construction_radius :: float [Read-only]

Construction radius of this cell.

stationed_logistic_robot_count :: uint [Read-only]

Number of stationed logistic robots in this cell.

stationed_construction_robot_count :: uint [Read-only]

Number of stationed construction robots in this cell.

mobile :: boolean [Read-only]

true if this is a mobile cell. In vanilla, only the logistic cell created by a character's personal roboport is mobile.

transmitting :: boolean [Read-only]

true if this cell is active.

charge_approach_distance :: float [Read-only]

Radius at which the robots hover when waiting to be charged.

charging_robot_count :: uint [Read-only]

Number of robots currently charging.

to_charge_robot_count :: uint [Read-only]

Number of robots waiting to charge.

owner :: LuaEntity [Read-only]

This cell's owner.

logistic_network :: LuaLogisticNetwork [Read-only]

The network that owns this cell or nil.

neighbours :: array[LuaLogisticCell] [Read-only]

Neighbouring cells.

charging_robots :: array[LuaEntity] [Read-only]

Robots currently being charged.

to_charge_robots :: array[LuaEntity] [Read-only]

Robots waiting to charge.