UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

31 lines (22 loc) 543 B
import { NumericInterval } from "../../../../core/math/interval/NumericInterval.js"; export class DynamicRuleCooldownDescription { /** * * @type {string} */ id = ""; /** * * @type {NumericInterval} */ value= new NumericInterval(0, 0); fromJSON({ id, value }) { this.id = id; this.value.fromJSON(value); } static fromJSON(j) { const r = new DynamicRuleCooldownDescription(); r.fromJSON(j); return r; } }