"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bundleClass = void 0;
function bundleClass(Class, bundle) {
    var _a;
    const { unit: { id, memory }, } = bundle;
    // @ts-ignore
    return _a = class Bundle extends Class {
            constructor(system) {
                super(system, id);
                this.__bundle = bundle.unit;
                if (memory) {
                    this.restore(memory);
                }
            }
        },
        _a.__bundle = bundle // RETURN
    ,
        _a;
}
exports.bundleClass = bundleClass;
//# sourceMappingURL=bundleClass.js.map