Function screeps::local::terrain_index_to_xy
source ยท 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.