circuit connections via neighbours interfaces?
Posted: Fri Aug 14, 2015 2:07 am
It would be super-convenient connect_neighbours and disconnect_neighbours methods supported a 2nd argument - wire type - and supported all circuit network-able entities instead of just power poles. Currently disconnect_wire works with red/green cables, but only in a "disconnect from all" way, and it would be nice if you could connect or disconnect a single connection between two objects of any of the types, and in the case of red/green, if they worked with things like smart chests and inserters rather than just electric poles...
entity.connect_neighbour(entity2[, connectortype])
entity.disconnect_neighbor(entity2[,connectortype])
It seems particularly odd that disconnect, and only disconnect, supports circuit net wires at present, but hopefully that means they're on the same basic underlying system and the feature might be easy to slip in to an update soon-ish...? :hopeful look:
entity.connect_neighbour(entity2[, connectortype])
entity.disconnect_neighbor(entity2[,connectortype])
It seems particularly odd that disconnect, and only disconnect, supports circuit net wires at present, but hopefully that means they're on the same basic underlying system and the feature might be easy to slip in to an update soon-ish...? :hopeful look: