@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
29 lines (18 loc) • 477 B
JavaScript
import Vector1 from "../../../core/geom/Vector1.js";
export class FogOfWarRevealer {
radius = new Vector1(1);
toJSON() {
return {
radius: this.radius.toJSON()
};
}
fromJSON({ radius }) {
this.radius.fromJSON(radius);
}
static fromJSON(j) {
const r = new FogOfWarRevealer();
r.fromJSON(j);
return r;
}
}
FogOfWarRevealer.typeName = 'FogOfWarRevealer';