Function screeps::local::terrain_index_to_xy
source · pub fn terrain_index_to_xy(idx: usize) -> RoomXYExpand 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.