29 lines
940 B
JavaScript
29 lines
940 B
JavaScript
(function (factory) {
|
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
var v = factory(require, exports);
|
|
if (v !== undefined) module.exports = v;
|
|
}
|
|
else if (typeof define === "function" && define.amd) {
|
|
define(["require", "exports", "./TwinkleValues"], factory);
|
|
}
|
|
})(function (require, exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Twinkle = void 0;
|
|
const TwinkleValues_1 = require("./TwinkleValues");
|
|
class Twinkle {
|
|
constructor() {
|
|
this.lines = new TwinkleValues_1.TwinkleValues();
|
|
this.particles = new TwinkleValues_1.TwinkleValues();
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
this.lines.load(data.lines);
|
|
this.particles.load(data.particles);
|
|
}
|
|
}
|
|
exports.Twinkle = Twinkle;
|
|
});
|