|
1 | | -var __extends = this.__extends || function (d, b) { |
2 | | - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; |
3 | | - function __() { this.constructor = d; } |
4 | | - __.prototype = b.prototype; |
5 | | - d.prototype = new __(); |
6 | | -}; |
7 | | -var Westeros; |
8 | | -(function (Westeros) { |
9 | | - (function (Buildings) { |
10 | | - var BaseStructure = (function () { |
11 | | - function BaseStructure() { |
12 | | - console.log("Structure built"); |
13 | | - } |
14 | | - return BaseStructure; |
15 | | - })(); |
16 | | - Buildings.BaseStructure = BaseStructure; |
17 | | - |
18 | | - var Castle = (function (_super) { |
19 | | - __extends(Castle, _super); |
20 | | - function Castle(name) { |
21 | | - _super.call(this); |
22 | | - this.name = name; |
23 | | - } |
24 | | - Castle.prototype.Build = function () { |
25 | | - console.log("Castle built: " + this.name); |
26 | | - }; |
27 | | - return Castle; |
28 | | - })(BaseStructure); |
29 | | - Buildings.Castle = Castle; |
30 | | - })(Westeros.Buildings || (Westeros.Buildings = {})); |
31 | | - var Buildings = Westeros.Buildings; |
32 | | -})(Westeros || (Westeros = {})); |
| 1 | +var __extends = this.__extends || function (d, b) { |
| 2 | + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; |
| 3 | + function __() { this.constructor = d; } |
| 4 | + __.prototype = b.prototype; |
| 5 | + d.prototype = new __(); |
| 6 | +}; |
| 7 | +var Westeros; |
| 8 | +(function (Westeros) { |
| 9 | + (function (Buildings) { |
| 10 | + var BaseStructure = (function () { |
| 11 | + function BaseStructure() { |
| 12 | + console.log("Structure built"); |
| 13 | + } |
| 14 | + return BaseStructure; |
| 15 | + })(); |
| 16 | + Buildings.BaseStructure = BaseStructure; |
| 17 | + |
| 18 | + var Castle = (function (_super) { |
| 19 | + __extends(Castle, _super); |
| 20 | + function Castle(name) { |
| 21 | + _super.call(this); |
| 22 | + this.name = name; |
| 23 | + } |
| 24 | + Castle.prototype.Build = function () { |
| 25 | + console.log("Castle built: " + this.name); |
| 26 | + }; |
| 27 | + return Castle; |
| 28 | + })(BaseStructure); |
| 29 | + Buildings.Castle = Castle; |
| 30 | + })(Westeros.Buildings || (Westeros.Buildings = {})); |
| 31 | + var Buildings = Westeros.Buildings; |
| 32 | +})(Westeros || (Westeros = {})); |
0 commit comments