@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2398,6 +2398,7 @@ var HockeyGameLog = /** @class */ (function (_super) {
|
|
|
2398
2398
|
active: 'active',
|
|
2399
2399
|
is_highlight: 'isHighlight',
|
|
2400
2400
|
advantage: 'advantage',
|
|
2401
|
+
advantage_num: 'advantageNum',
|
|
2401
2402
|
is_goalie: 'isGoalie',
|
|
2402
2403
|
penalty_type: 'penaltyType',
|
|
2403
2404
|
penalized_game_user_id: 'penalizedGameUserId',
|
|
@@ -2425,6 +2426,27 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2425
2426
|
enumerable: true,
|
|
2426
2427
|
configurable: true
|
|
2427
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
|
+
});
|
|
2428
2450
|
Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
|
|
2429
2451
|
get: function () {
|
|
2430
2452
|
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
@@ -2448,7 +2470,7 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2448
2470
|
});
|
|
2449
2471
|
Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
|
|
2450
2472
|
get: function () {
|
|
2451
|
-
return this.
|
|
2473
|
+
return this.ppShots + this.evShots + this.shShots;
|
|
2452
2474
|
},
|
|
2453
2475
|
enumerable: true,
|
|
2454
2476
|
configurable: true
|