StarOS: storage
Warehouses of one owner that touch share their room and contents. Read only, as the last turn left it. See the overview.
| function | returns |
|---|---|
storage.contents(id) |
dict of item to units, goods set aside for orders included; None if id is not one of your warehouses |
storage.free(id) |
room left in the network, all items together; None likewise |
A warehouse here means storage_crate, warehouse, silo or tank. A depot is not one. Find ids with industry.
WAREHOUSES = ["storage_crate", "warehouse", "silo", "tank"]
def tick():
for b in industry.buildings():
if b["kind"] in WAREHOUSES:
robot.log(str(b["id"]) + ": " + str(storage.contents(b["id"])))