1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.EmitterRate = void 0;
|
4 | const Utils_1 = require("../../../../Utils");
|
5 | class EmitterRate {
|
6 | constructor() {
|
7 | this.quantity = 1;
|
8 | this.delay = 0.1;
|
9 | }
|
10 | load(data) {
|
11 | if (data === undefined) {
|
12 | return;
|
13 | }
|
14 | if (data.quantity !== undefined) {
|
15 | this.quantity = (0, Utils_1.setRangeValue)(data.quantity);
|
16 | }
|
17 | if (data.delay !== undefined) {
|
18 | this.delay = (0, Utils_1.setRangeValue)(data.delay);
|
19 | }
|
20 | }
|
21 | }
|
22 | exports.EmitterRate = EmitterRate;
|