Working on some stuff that will add neighboring building interactions (such as fire spread), but currently banging my head against the wall trying to figure out how to pull a building's neighbors.
Checked through a bunch of the mods in the Workshop, and none seem to have a need for neighboring information.
The closest I can get is BuildingManager.FindBuilding. I've already checked using a RayCast to project in the 8 cardinal directions of the building to see if we just simply "hit" another building, but that seems awfully hackish, and slow to do on a "grand scale" with thousands of buildings to iterate through. It's also not so great on cities that don't use a pure grid system.
Any suggestions/ideas? In the meantime, I'll continue looking through the assemblies and see if I find anything.
Checked through a bunch of the mods in the Workshop, and none seem to have a need for neighboring information.
The closest I can get is BuildingManager.FindBuilding. I've already checked using a RayCast to project in the 8 cardinal directions of the building to see if we just simply "hit" another building, but that seems awfully hackish, and slow to do on a "grand scale" with thousands of buildings to iterate through. It's also not so great on cities that don't use a pure grid system.
Any suggestions/ideas? In the meantime, I'll continue looking through the assemblies and see if I find anything.