@mtgame/core 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/mtgame-core.umd.js +22 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/models/hockey-game-statistic.js +11 -2
- package/esm5/models/hockey-game-statistic.js +23 -2
- package/fesm2015/mtgame-core.js +10 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +22 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-statistic.d.ts +3 -0
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2426,6 +2426,27 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2426
2426
|
enumerable: true,
|
|
2427
2427
|
configurable: true
|
|
2428
2428
|
});
|
|
2429
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotsOnGoal", {
|
|
2430
|
+
get: function () {
|
|
2431
|
+
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
|
|
2432
|
+
},
|
|
2433
|
+
enumerable: true,
|
|
2434
|
+
configurable: true
|
|
2435
|
+
});
|
|
2436
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotsBlocked", {
|
|
2437
|
+
get: function () {
|
|
2438
|
+
return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
|
|
2439
|
+
},
|
|
2440
|
+
enumerable: true,
|
|
2441
|
+
configurable: true
|
|
2442
|
+
});
|
|
2443
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotMisses", {
|
|
2444
|
+
get: function () {
|
|
2445
|
+
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0);
|
|
2446
|
+
},
|
|
2447
|
+
enumerable: true,
|
|
2448
|
+
configurable: true
|
|
2449
|
+
});
|
|
2429
2450
|
Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
|
|
2430
2451
|
get: function () {
|
|
2431
2452
|
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
@@ -2449,7 +2470,7 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2449
2470
|
});
|
|
2450
2471
|
Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
|
|
2451
2472
|
get: function () {
|
|
2452
|
-
return this.
|
|
2473
|
+
return this.ppShots + this.evShots + this.shShots;
|
|
2453
2474
|
},
|
|
2454
2475
|
enumerable: true,
|
|
2455
2476
|
configurable: true
|