Project

General

Profile

Support #396

Refactor to provide helper function on map for terrain.

Added by Administrator Administrator 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
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.

Also available in: Atom PDF