@mtgame/core 0.0.21 → 0.0.22
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 +19 -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/localization/hockey-game-log-types.js +4 -2
- package/esm2015/models/hockey-game-log.js +14 -2
- package/esm5/localization/hockey-game-log-types.js +3 -1
- package/esm5/models/hockey-game-log.js +18 -2
- package/fesm2015/mtgame-core.js +16 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +19 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/hockey-game-log-types.d.ts +2 -0
- package/models/hockey-game-log.d.ts +6 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2522,6 +2522,8 @@
|
|
|
2522
2522
|
HockeyGameLogTypes[HockeyGameLogTypes["face_off_win"] = 18] = "face_off_win";
|
|
2523
2523
|
HockeyGameLogTypes[HockeyGameLogTypes["save"] = 19] = "save";
|
|
2524
2524
|
HockeyGameLogTypes[HockeyGameLogTypes["timeout"] = 20] = "timeout";
|
|
2525
|
+
HockeyGameLogTypes[HockeyGameLogTypes["penalty_start"] = 21] = "penalty_start";
|
|
2526
|
+
HockeyGameLogTypes[HockeyGameLogTypes["penalty_end"] = 22] = "penalty_end";
|
|
2525
2527
|
})(exports.HockeyGameLogTypes || (exports.HockeyGameLogTypes = {}));
|
|
2526
2528
|
|
|
2527
2529
|
(function (HockeyAdvantageTypes) {
|
|
@@ -2536,6 +2538,19 @@
|
|
|
2536
2538
|
_this.active = true;
|
|
2537
2539
|
return _this;
|
|
2538
2540
|
}
|
|
2541
|
+
Object.defineProperty(HockeyGameLog.prototype, "penalizedGameUserId", {
|
|
2542
|
+
get: function () {
|
|
2543
|
+
if (this._penalizedGameUserId) {
|
|
2544
|
+
return this._penalizedGameUserId;
|
|
2545
|
+
}
|
|
2546
|
+
return this.gameUserId;
|
|
2547
|
+
},
|
|
2548
|
+
set: function (value) {
|
|
2549
|
+
this._penalizedGameUserId = value;
|
|
2550
|
+
},
|
|
2551
|
+
enumerable: true,
|
|
2552
|
+
configurable: true
|
|
2553
|
+
});
|
|
2539
2554
|
HockeyGameLog.prototype.compare = function (model) {
|
|
2540
2555
|
if (this.time === model.time && this.period === model.period) {
|
|
2541
2556
|
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
@@ -2597,7 +2612,8 @@
|
|
|
2597
2612
|
is_highlight: 'isHighlight',
|
|
2598
2613
|
advantage: 'advantage',
|
|
2599
2614
|
is_goalie: 'isGoalie',
|
|
2600
|
-
penalty_type: 'penaltyType'
|
|
2615
|
+
penalty_type: 'penaltyType',
|
|
2616
|
+
penalized_game_user_id: 'penalizedGameUserId',
|
|
2601
2617
|
},
|
|
2602
2618
|
relation: {
|
|
2603
2619
|
datetime: DateTimeField,
|
|
@@ -6118,6 +6134,8 @@
|
|
|
6118
6134
|
_a$2[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
|
|
6119
6135
|
_a$2[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
|
|
6120
6136
|
_a$2[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
|
|
6137
|
+
_a$2[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
|
|
6138
|
+
_a$2[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
|
|
6121
6139
|
_a$2);
|
|
6122
6140
|
|
|
6123
6141
|
var _a$3;
|