Support #396
Refactor to provide helper function on map for terrain.
Start date:
06/11/2025
Due date:
% Done:
0%
Estimated time:
Description
As with lights, walls, obstacles and doors, we need something like a map.terrainAt(x,y) that returns a terrain object if there is one for that square, and null otherwise. This would look at both map data and tile data (translating locations as needed).
Perhaps a map.terrain() to return a list of all terrain for the map would be good, too.