22 lines
479 B
JavaScript
22 lines
479 B
JavaScript
export 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;
|
|
}
|
|
}
|
|
}
|