UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

27 lines (19 loc) 552 B
import { assert } from "../../../core/assert.js"; import DataType from "../../../core/parser/simple/DataType.js"; import { CellFilter } from "../CellFilter.js"; export class CellFilterLiteralBoolean extends CellFilter { value = true; /** * * @param {boolean} value */ static from(value) { assert.isBoolean(value, 'value'); const r = new CellFilterLiteralBoolean(); r.value = value; return r; } get dataType() { return DataType.Boolean; } }