var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var DBManager = (function () {
    function DBManager() {
    }
    DBManager.addData = function (json, textureConfig, texture) {
        var skeletonData = RES.getRes(json);
        var textureData = RES.getRes(textureConfig);
        var textureImg = RES.getRes(texture);
        DBManager._factory.addSkeletonData(dragonBones.DataParser.parseDragonBonesData(skeletonData));
        DBManager._factory.addTextureAtlas(new dragonBones.EgretTextureAtlas(textureImg, textureData));
    };
    DBManager.buildArmature = function (armatureName) {
        return DBManager._factory.buildArmature(armatureName);
    };
    DBManager.copyAnimation = function (target, source) {
        DBManager._factory.copyAnimationsToArmature(target, source.name);
    };
    return DBManager;
}());
DBManager._factory = new dragonBones.EgretFactory();
__reflect(DBManager.prototype, "DBManager");
//# sourceMappingURL=DBManager.js.map