Function screeps::local::xy_to_linear_index
source · pub const fn xy_to_linear_index(xy: RoomXY) -> usize
Expand description
Converts a RoomXY
coordinate pair to a linear index appropriate for use
with the internal representation of a CostMatrix
or LocalCostMatrix
.