Author Topic: Grids 2D/TGS: Get Cell Indexes of cells on the outermost edges of a grid  (Read 46 times)

copyleft

  • Newbie
  • *
  • Posts: 8
    • View Profile
This would be a helpful function for me.

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 6630
    • View Profile
Hi,
Not sure if you already got this but you could use this API:

Code
public int CellGetIndex(int row, int column, bool clampToBorders = true) 

So knowing the rows and columns of your grid, you could just iterate around those values and call that API to get the index of the cells on the edges.

Regards