"use strict";
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 __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var ComponentBase_1 = require("../components/ComponentBase");
var Scene = (function (_super) {
    __extends(Scene, _super);
    function Scene() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Scene.prototype.onSkinComplete = function () {
        _super.prototype.onSkinComplete.call(this);
        this.createLayers();
    };
    Scene.prototype.createLayers = function () {
        this._map = {};
        for (var _i = 0, _a = this.layerKeys; _i < _a.length; _i++) {
            var key = _a[_i];
            var layer = new egret.Sprite();
            this.addChild(layer);
            this._map[key] = layer;
        }
    };
    Scene.prototype.getLayer = function (key) {
        return this._map[key];
    };
    Object.defineProperty(Scene.prototype, "layerKeys", {
        get: function () {
            return [];
        },
        enumerable: true,
        configurable: true
    });
    return Scene;
}(ComponentBase_1.default));
exports.default = Scene;
__reflect(Scene.prototype, "\"e:/zqty/egret/src/views/Scene\".Scene");
//# sourceMappingURL=Scene.js.map