예제 #1
0
 public TileGroup(int width, int height)
 {
     buffer = new TileCell[width, height];
     for(int y = 0; y < height; ++y) {
         for(int x = 0; x < width; ++x)
             buffer[x, y] = new TileCell();
     }
 }
예제 #2
0
 public Section(Vector offset)
 {
     this.offset = offset;
     for(int y = 0; y < Size; ++y) {
         for(int x = 0; x < Size; ++x)
             cells[x, y] = new TileCell();
     }
 }