Page 1 of 1

find_construction_networks_by_position

Posted: Tue Sep 13, 2016 11:24 pm
by mknejp
There is already LuaSurface.find_logistic_network_by_position(position, force) but it obviously only works if you test for a position inside the orange zone.
It would be useful to have

LuaSurface.find_construction_networks_by_position(position, force) -> array of LuaLogisticNetwork

which finds the networks covering the given position with their green zone. It returns an array since construction zones can overlap without being connected.

Analogous LuaForce.find_construction_networks_by_position(position, surface) -> array of LuaLogisticNetwork

Re: find_construction_networks_by_position

Posted: Wed Dec 21, 2016 9:19 pm
by Rseding91
Added for 0.15.