Пример #1
0
 public Grid(int w, int h)
 {
     Size        = new Vec2i(w, h);
     LocalRegion = new Recti(0, 0, w, h);
     TotalCells  = w * h;
 }
Пример #2
0
 public bool this[Vec2i v]
 {
     get { return(data[v.y * Width + v.x]); }
     set { data[v.y * Width + v.x] = value; }
 }