UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

30 lines (25 loc) 512 B
export class RenderLayerState { constructor() { /** * Whether the layer should be rendered or not * @type {boolean} */ this.visible = true; } /** * * @param {RenderLayerState} other */ copy(other) { this.visible = other.visible; } /** * * @returns {RenderLayerState} */ clone() { const r = new RenderLayerState(); r.copy(this); return r; } }