"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TryPickStickTargetUC = void 0;
exports.makeTryPickStickTargetUC = makeTryPickStickTargetUC;
const core_1 = require("@vived/core");
class TryPickStickTargetUC extends core_1.AppObjectUC {
    static get(id, appObjects) {
        return appObjects
            .get(id)
            ?.getComponent(TryPickStickTargetUC.type);
    }
}
exports.TryPickStickTargetUC = TryPickStickTargetUC;
TryPickStickTargetUC.type = "TryPickStickTargetUC";
function makeTryPickStickTargetUC(appObject) {
    return new TryPickStickTargetUCImp(appObject);
}
class TryPickStickTargetUCImp extends TryPickStickTargetUC {
    constructor(appObject) {
        super(appObject, TryPickStickTargetUC.type);
        this.tryPick = (pickRay) => {
            this.warn("Picker needs to be injected");
            return false;
        };
    }
}
//# sourceMappingURL=TryPickStickTarget.js.map