18 lines
405 B
JavaScript
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;
|
|
}
|
|
}
|
|
}
|