pub const fn xy_to_terrain_index(xy: RoomXY) -> usize
Expand description

Converts a RoomXY coordinate pair to a terrain index appropriate for use with the internal representation of RoomTerrain or LocalRoomTerrain.