UNPKG

615 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.EmitterRate = void 0;
4const Utils_1 = require("../../../../Utils");
5class 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}
22exports.EmitterRate = EmitterRate;