Function screeps::local::linear_index_to_xy
source · pub fn linear_index_to_xy(idx: usize) -> RoomXY
Expand description
Converts a linear index from the internal representation of a CostMatrix
or LocalCostMatrix
to a RoomXY
coordinate pair for the position the
index represents.