var __extends = this.__extends || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};
var State1;
(function (_State1) {
    var State1 = (function (_super) {
        __extends(State1, _super);
        function State1() {
            _super.call(this);
        }
        State1.prototype.init = function (tasks) {
            this.tasks = tasks;
        };
        State1.prototype.create = function () {
            for (var i = 0; i < this.tasks.length; i++) {
                this.tasks[i].create();
                this.add.existing(this.tasks[i]);
            }
        };
        State1.prototype.preload = function () {
            this.game.load.spritesheet("key", "Graphics/GUI/key.png", 110, 110, 3);
            for (var i = 0; i < this.tasks.length; i++) {
                this.tasks[i].preload();
            }
        };
        return State1;
    })(Phaser.State);
    _State1.State1 = State1;
})(State1 || (State1 = {}));
//# sourceMappingURL=State.js.map