Home

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).

Attributes

logistic_radius

Logistic radius of this cell.

logistics_connection_distance

Logistic connection distance of this cell.

construction_radius

Construction radius of this cell.

stationed_logistic_robot_count

Number of stationed logistic robots in this cell.

stationed_construction_robot_count

Number of stationed construction robots in this cell.

mobile

true if this is a mobile cell. The logistic cell created by roboport equipment considered is mobile.

transmitting

true if this cell is active.

charge_approach_distance

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

charging_robot_count

Number of robots currently charging.

to_charge_robot_count

Number of robots waiting to charge.

owner

This cell's owner.

logistic_network

The network that owns this cell, if any.

neighbours

Neighbouring cells.

charging_robots

Robots currently being charged.

to_charge_robots

Robots waiting to charge.

valid

Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.

object_name

The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.

Methods

is_in_logistic_range

LuaLogisticCell.is_in_logistic_range(position: MapPosition) -> boolean

Call As

logisticCell.is_in_logistic_range(position)

Call Convention

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

Parameters

Returns

is_in_construction_range

LuaLogisticCell.is_in_construction_range(position: MapPosition) -> boolean

Call As

logisticCell.is_in_construction_range(position)

Call Convention

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

Parameters

Returns

is_neighbour_with

LuaLogisticCell.is_neighbour_with(other: LuaLogisticCell) -> boolean

Call As

logisticCell.is_neighbour_with(other)

Call Convention

Are two cells neighbours?

Parameters

Returns