"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.XREntity = void 0;
exports.makeXREntity = makeXREntity;
const core_1 = require("@vived/core");
class XREntity extends core_1.AppObjectEntity {
}
exports.XREntity = XREntity;
XREntity.type = "XREntity";
function makeXREntity(appObj) {
    return new XREntityImp(appObj);
}
class XREntityImp extends XREntity {
    get lastXRFrame() {
        return this._lastXRFrame;
    }
    constructor(appObj) {
        super(appObj, XREntity.type);
        this.submitXRFrame = (frame) => {
            this._lastXRFrame = frame;
            this.notifyOnChange();
        };
    }
}
//# sourceMappingURL=XREntity.js.map