26 lines
599 B
JavaScript
26 lines
599 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Remove = void 0;
|
|
class Remove {
|
|
constructor() {
|
|
this.quantity = 2;
|
|
}
|
|
get particles_nb() {
|
|
return this.quantity;
|
|
}
|
|
set particles_nb(value) {
|
|
this.quantity = value;
|
|
}
|
|
load(data) {
|
|
var _a;
|
|
if (!data) {
|
|
return;
|
|
}
|
|
const quantity = (_a = data.quantity) !== null && _a !== void 0 ? _a : data.particles_nb;
|
|
if (quantity !== undefined) {
|
|
this.quantity = quantity;
|
|
}
|
|
}
|
|
}
|
|
exports.Remove = Remove;
|