AEApi question: How to get outer grid from main grid
indiscrete-void opened this issue ยท 2 comments
API
Version: RV6
Description
I'm trying to create visualisation tool in my mod. Currently i need to get relatively outer grid from main grid, to get all info about subnetwork. I figured out, that EnergyGridCache::providers can give me info about all nodes which carrying only energy, but not channels. But even with these nodes, if node is connected at side of cable from main network(red) calling it's function GridNode::getGrid() will only give me inner(main) network, but not subnetwork. Here is screen shot of network setup
My question is: How i can get list of grids of all subnetworks connected to main network?
( Just for case if someone, in 3 hundred years will need this to .... IDN, maybe for their evil plan ๐ )
I'll leave this here:
SubnetHelper.txt
And here is usage:
TopologyUtils.txt