get_item_count(item, member) → uint | Count given or all items in the network or given members. |
get_contents() → dictionary string → uint | Get item counts for the entire network. |
remove_item(item, members) → uint | Remove items from the logistic network. |
insert(item, members) → uint | Insert items into the logistic network. |
find_cell_closest_to(position) → LuaLogisticCell | Find logistic cell closest to a given position. |
available_logistic_robots :: uint [R] | Number of logistic robots available for a job. |
all_logistic_robots :: uint [R] | The total number of logistic robots in the network (idle and active + in roboports). |
available_construction_robots :: uint [R] | Number of construction robots available for a job. |
all_construction_robots :: uint [R] | The total number of construction robots in the network (idle and active + in roboports). |
robot_limit :: uint [R] | Maximum number of robots the network can work with. |
cells :: array of LuaLogisticCell [R] | All cells in this network. |
providers :: array of LuaEntity [R] | All entities that have logistic provider points in this network. |
empty_providers :: array of LuaEntity [R] | All entities that have empty logistic provider points in this network. |
requesters :: array of LuaEntity [R] | All entities that have logistic requester points in this network. |
full_or_satisfied_requesters :: array of LuaEntity [R] | All entities that have full or satisfied logistic requester points in this network. |
storages :: array of LuaEntity [R] | All entities that have logistic storage points in this network. |
logistic_members :: array of LuaEntity [R] | All other entities that have logistic points in this network (inserters mostly). |
valid :: boolean [R] | Is this object valid? |
A single logistic network of a given force on a given surface.
Count given or all items in the network or given members.
Get item counts for the entire network.
Remove items from the logistic network. This will actually remove the items from some logistic chests.
"storage"
, "passive-provider"
, or "active-provider"
. If not specified, removes
from the network in the usual order.Insert items into the logistic network. This will actually insert the items into some logistic chests.
"storage"
, "storage-empty"
(storage chests that are completely empty),
"storage-empty-slot"
(storage chests that have an empty slot), or "requester"
. If not
specified, inserts items into the logistic network in the usual order.Find logistic cell closest to a given position.
nil
if no cell was found.
Number of logistic robots available for a job.
The total number of logistic robots in the network (idle and active + in roboports).
Number of construction robots available for a job.
The total number of construction robots in the network (idle and active + in roboports).
Maximum number of robots the network can work with. Currently only used for the personal roboport.
All cells in this network.
All entities that have logistic provider points in this network.
All entities that have empty logistic provider points in this network.
All entities that have logistic requester points in this network.
All entities that have full or satisfied logistic requester points in this network.
All entities that have logistic storage points in this network.
All other entities that have logistic points in this network (inserters mostly).