@2d-game-grid/square
Version:
A simple square grid made for games
19 lines (18 loc) • 573 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SquareGrid = void 0;
const core_1 = require("@2d-game-grid/core");
const SquareCell_js_1 = require("./SquareCell.js");
/**
* The grid contains all information about cells
*/
class SquareGrid extends core_1.Grid {
constructor(options) {
super(options);
this.initialize((coordinate, value) => new SquareCell_js_1.SquareCell(this, coordinate, value));
}
initializeGrid(options) {
return new SquareGrid(options);
}
}
exports.SquareGrid = SquareGrid;