@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
|
@@ -2639,6 +2639,27 @@
|
|
|
2639
2639
|
enumerable: true,
|
|
2640
2640
|
configurable: true
|
|
2641
2641
|
});
|
|
2642
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotsOnGoal", {
|
|
2643
|
+
get: function () {
|
|
2644
|
+
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
|
|
2645
|
+
},
|
|
2646
|
+
enumerable: true,
|
|
2647
|
+
configurable: true
|
|
2648
|
+
});
|
|
2649
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotsBlocked", {
|
|
2650
|
+
get: function () {
|
|
2651
|
+
return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
|
|
2652
|
+
},
|
|
2653
|
+
enumerable: true,
|
|
2654
|
+
configurable: true
|
|
2655
|
+
});
|
|
2656
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotMisses", {
|
|
2657
|
+
get: function () {
|
|
2658
|
+
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0);
|
|
2659
|
+
},
|
|
2660
|
+
enumerable: true,
|
|
2661
|
+
configurable: true
|
|
2662
|
+
});
|
|
2642
2663
|
Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
|
|
2643
2664
|
get: function () {
|
|
2644
2665
|
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
@@ -2662,7 +2683,7 @@
|
|
|
2662
2683
|
});
|
|
2663
2684
|
Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
|
|
2664
2685
|
get: function () {
|
|
2665
|
-
return this.
|
|
2686
|
+
return this.ppShots + this.evShots + this.shShots;
|
|
2666
2687
|
},
|
|
2667
2688
|
enumerable: true,
|
|
2668
2689
|
configurable: true
|