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';


