UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

33 lines (27 loc) 647 B
import { assert } from "../../../core/assert.js"; export class GridCellAction { /** * * @param {GridData} data * @param {number} x * @param {number} y * @param {number} rotation */ execute(data, x, y, rotation) { // override as necessary } /** * * @param {GridData} data * @param {number} seed */ initialize(data, seed) { assert.equal(data.isGridData, true, 'data.isGridData !== true'); assert.isNumber(seed, 'seed'); } } /** * @readonly * @type {boolean} */ GridCellAction.prototype.isGridCellAction = true;