"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeToolFactory = makeToolFactory;
const Entities_1 = require("../Entities");
const PM_1 = require("../PM");
function makeToolFactory(appObjects) {
    return function toolFactory(id) {
        const ao = appObjects.getOrCreate(id);
        const toolEntity = (0, Entities_1.makeToolEntity)(ao);
        (0, PM_1.makeToolPM)(ao);
        return toolEntity;
    };
}
//# sourceMappingURL=toolFactory.js.map