"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initializeDragLabelDropAnswerItemWorld = initializeDragLabelDropAnswerItemWorld;
const StylusEntity_1 = require("../../Stylus/Entity/StylusEntity");
const DragLabelDropWorldUC_1 = require("../UseCases/DragLabelDropWorldUC");
function initializeDragLabelDropAnswerItemWorld(labelDropID, appObjects) {
    const uc = DragLabelDropWorldUC_1.DragLabelDropWorldUC.get(appObjects);
    if (!uc) {
        appObjects.submitWarning("initializeDragLabelDropAnswerItem", "Unable to find DragLabelDropWorldUC");
        return;
    }
    const stylus = StylusEntity_1.StylusEntity.get(appObjects);
    if (!stylus) {
        appObjects.submitError("initializeDragLabelDropAnswerItemWorld", "Unable to find StylusEntity");
        return;
    }
    uc.initializeDrag(labelDropID, stylus.pickRay);
}
//# sourceMappingURL=initializeDragLabelDropAnswerItemWorld.js.map