"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.texturalEnvironmentAdapter = void 0;
const Environment_1 = require("../Entities/Environment");
const TexturalEnvironmentPM_1 = require("../PMs/TexturalEnvironmentPM");
exports.texturalEnvironmentAdapter = {
    defaultVM: Environment_1.Environments.STUDIO,
    subscribe: (appObjects, setVM) => {
        const pm = TexturalEnvironmentPM_1.TexturalEnvironmentPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("texturalEnvironmentAdapter", "Unable to find TexturalEnvironmentPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        TexturalEnvironmentPM_1.TexturalEnvironmentPM.get(appObjects)?.removeView(setVM);
    },
};
//# sourceMappingURL=texturalEnvironmentAdapter.js.map