Wireless electricity system.
I have power source that is connected to pole and than another pole is connected to it and so on. Around poles you can place buildings and everything has power as much there is power. From power source there is function that fires if power source is deleted. For all poles in chain that functions run and power bool is set to false. Cant build in area.
That part is clear.
Problem is that if i put new power source it only connects to closest pole and it can’t run this function that sets power bool to true coz of the references.
When chain is created from power source it only goes forward. How to make poles interact with each other no matter from where chain started.
Electricity system is similar to Dyson sphere program.