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 AssetManager = (function () {
    function AssetManager() {
    }
    AssetManager.createBitmapByName = function (name, centerAnchor) {
        if (centerAnchor === void 0) { centerAnchor = true; }
        var result = new egret.Bitmap();
        var texture = RES.getRes(name);
        result.texture = texture;
        if (centerAnchor) {
            result.anchorOffsetX = result.width / 2;
            result.anchorOffsetY = result.height / 2;
        }
        result.scaleX = result.scaleY = 2;
        return result;
    };
    return AssetManager;
}());
AssetManager.BGS = [""];
__reflect(AssetManager.prototype, "AssetManager");
//# sourceMappingURL=AssetManager.js.map