UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

31 lines 969 B
export class CellMatcherGridPattern extends CellMatcher { /** * * @param {GridPatternMatcherCell[]} rules * @returns {CellMatcherGridPattern} */ static from(rules: GridPatternMatcherCell[]): CellMatcherGridPattern; /** * NOTE: All rules have local coordinates * @type {GridPatternMatcherCell[]} */ rules: GridPatternMatcherCell[]; initialize(grid: any, seed: any): void; /** * * @param {number} x * @param {number} y * @param {CellMatcher} rule */ addRule(x: number, y: number, rule: CellMatcher): void; /** * * @param {number} x * @param {number} y * @return {undefined|GridPatternMatcherCell} */ getRuleByPosition(x: number, y: number): undefined | GridPatternMatcherCell; } import { CellMatcher } from "../CellMatcher.js"; import { GridPatternMatcherCell } from "./GridPatternMatcherCell.js"; //# sourceMappingURL=CellMatcherGridPattern.d.ts.map