22 lines
502 B
JavaScript
22 lines
502 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Random = void 0;
|
|
class Random {
|
|
constructor() {
|
|
this.enable = false;
|
|
this.minimumValue = 0;
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.enable !== undefined) {
|
|
this.enable = data.enable;
|
|
}
|
|
if (data.minimumValue !== undefined) {
|
|
this.minimumValue = data.minimumValue;
|
|
}
|
|
}
|
|
}
|
|
exports.Random = Random;
|