1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
|
8 |
|
9 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
10 |
|
11 | var ThickAir = (function () {
|
12 | function ThickAir() {
|
13 | _classCallCheck(this, ThickAir);
|
14 |
|
15 | this._echoes = [];
|
16 | }
|
17 |
|
18 | _createClass(ThickAir, [{
|
19 | key: "getEchoes",
|
20 | value: function getEchoes() {
|
21 | return this._echoes;
|
22 | }
|
23 | }, {
|
24 | key: "echo",
|
25 | value: function echo(type, message) {
|
26 | this._echoes.push({
|
27 | type: type,
|
28 | message: message
|
29 | });
|
30 | }
|
31 | }, {
|
32 | key: "dissipate",
|
33 | value: function dissipate() {
|
34 | this._echoes = [];
|
35 | }
|
36 | }]);
|
37 |
|
38 | return ThickAir;
|
39 | })();
|
40 |
|
41 | exports["default"] = ThickAir;
|
42 | module.exports = exports["default"]; |
\ | No newline at end of file |