Needs to be very self contained. Probably using definitions. This might be where oct-trees come into play for AABB testing, or we just lock the size of images to mapblock bounds (80x).
Easier solution is just to only allow one size of map image. Then the lookup can just be to divide and floor like usual. Otherwise, we'd need to chunk the "where is each image" data and save it in mod_storage.
Needs to be very self contained. Probably using definitions. This might be where oct-trees come into play for AABB testing, or we just lock the size of images to mapblock bounds (80x).
Easier solution is just to only allow one size of map image. Then the lookup can just be to divide and floor like usual. Otherwise, we'd need to chunk the "where is each image" data and save it in `mod_storage`.