コード例 #1
0
 /// <summary>
 /// Get all adjacent cells to position c bounded by Map
 /// </summary>
 /// <param name="c"></param>
 /// <param name="map"></param>
 /// <returns></returns>
 public static IEnumerable <IntVec3> AdjacentCells8Way(this IntVec3 c, Map map)
 {
     return(c.AdjacentCellsCardinal(map).Concat(c.AdjacentCellsDiagonal(map)));
 }