System.register([], function(exports_1) {
    var Sequence;
    return {
        setters:[],
        execute: function() {
            Sequence = (function () {
                function Sequence(game) {
                    var _this = this;
                    this.game = game;
                    this.chain = function (time, action) {
                        var defer = $.Deferred();
                        _this.game.time.events.add(time, function () {
                            if (action) {
                                action();
                            }
                            defer.resolve(_this);
                        });
                        return defer;
                    };
                }
                return Sequence;
            })();
            exports_1("Sequence", Sequence);
        }
    }
});
//# sourceMappingURL=Sequence.js.map