29 lines
963 B
JavaScript
29 lines
963 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", "../../OptionsColor"], factory);
|
|
}
|
|
})(function (require, exports) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.MoveTrailFill = void 0;
|
|
const OptionsColor_1 = require("../../OptionsColor");
|
|
class MoveTrailFill {
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.color !== undefined) {
|
|
this.color = OptionsColor_1.OptionsColor.create(this.color, data.color);
|
|
}
|
|
if (data.image !== undefined) {
|
|
this.image = data.image;
|
|
}
|
|
}
|
|
}
|
|
exports.MoveTrailFill = MoveTrailFill;
|
|
});
|