18 lines
354 B
JavaScript
18 lines
354 B
JavaScript
export class Slow {
|
|
constructor() {
|
|
this.factor = 3;
|
|
this.radius = 200;
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.factor !== undefined) {
|
|
this.factor = data.factor;
|
|
}
|
|
if (data.radius !== undefined) {
|
|
this.radius = data.radius;
|
|
}
|
|
}
|
|
}
|