"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tree = void 0;
var Tree = /** @class */ (function () {
    function Tree(N) {
        if (N === void 0) { N = -1; }
        this.N = 2; //数量决定是N叉树；
        this.objects = [];
        this.N = N;
        if (N !== -1)
            this.children = new Array(N);
    }
    Tree.prototype.setObject = function (obj, generateFn, findFn) {
        generateFn(this, obj);
        this.findFn = findFn;
    };
    Tree.prototype.add = function (obj) {
    };
    Tree.prototype.remove = function (obj) {
    };
    Tree.prototype.find = function (condition) {
        this.findFn(this, condition);
    };
    return Tree;
}());
exports.Tree = Tree;
