sb-edit
Version:
Import, edit, and export Scratch project files
22 lines (21 loc) • 806 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var id_1 = require("./util/id");
var Costume = /** @class */ (function () {
function Costume(options) {
var _a, _b, _c;
this.name = options.name;
this.id = (_a = options.id) !== null && _a !== void 0 ? _a : (0, id_1.generateId)();
this.asset = options.asset;
this.md5 = options.md5;
this.ext = options.ext;
this.bitmapResolution = options.bitmapResolution;
this.centerX = (_b = options.centerX) !== null && _b !== void 0 ? _b : null;
this.centerY = (_c = options.centerY) !== null && _c !== void 0 ? _c : null;
}
Costume.prototype.setName = function (name) {
this.name = name;
};
return Costume;
}());
exports.default = Costume;