@mtgame/core 0.0.22 → 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 +23 -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-log.js +2 -1
- package/esm2015/models/hockey-game-statistic.js +11 -2
- package/esm5/models/hockey-game-log.js +2 -1
- package/esm5/models/hockey-game-statistic.js +23 -2
- package/fesm2015/mtgame-core.js +11 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +23 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-log.d.ts +1 -0
- package/models/hockey-game-statistic.d.ts +3 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2611,6 +2611,7 @@
|
|
|
2611
2611
|
active: 'active',
|
|
2612
2612
|
is_highlight: 'isHighlight',
|
|
2613
2613
|
advantage: 'advantage',
|
|
2614
|
+
advantage_num: 'advantageNum',
|
|
2614
2615
|
is_goalie: 'isGoalie',
|
|
2615
2616
|
penalty_type: 'penaltyType',
|
|
2616
2617
|
penalized_game_user_id: 'penalizedGameUserId',
|
|
@@ -2638,6 +2639,27 @@
|
|
|
2638
2639
|
enumerable: true,
|
|
2639
2640
|
configurable: true
|
|
2640
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
|
+
});
|
|
2641
2663
|
Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
|
|
2642
2664
|
get: function () {
|
|
2643
2665
|
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
@@ -2661,7 +2683,7 @@
|
|
|
2661
2683
|
});
|
|
2662
2684
|
Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
|
|
2663
2685
|
get: function () {
|
|
2664
|
-
return this.
|
|
2686
|
+
return this.ppShots + this.evShots + this.shShots;
|
|
2665
2687
|
},
|
|
2666
2688
|
enumerable: true,
|
|
2667
2689
|
configurable: true
|