2023-02-17 11:06:01 +01:00

18 lines
405 B
JavaScript

import { ValueWithRandom } from "tsparticles-engine";
export class LifeDuration extends ValueWithRandom {
constructor() {
super();
this.random.minimumValue = 0.0001;
this.sync = false;
}
load(data) {
if (!data) {
return;
}
super.load(data);
if (data.sync !== undefined) {
this.sync = data.sync;
}
}
}