pub fn terrain_index_to_xy(idx: usize) -> RoomXY
Expand description

Converts a terrain index from the internal representation of a RoomTerrain or LocalRoomTerrain to a RoomXY coordinate pair for the position the index represents.