i suck at math but i need to design this system. its for a strategy game. its crucial.
the map itself and all its tiles is being generated from the ground up, which means that there will be no manual nodemapping, all this has to be generated automatically with the map based on the data provided (coordinates, tile type, etc)

i'm good at understanding explanations on how code should work in theory. that's mainly what i want here, i just need someone to tell me how this system will work in theory. i don't need psuedocode or anything, just like "you should check the direction and do blah"