@mtgame/core 0.0.20 → 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 +28 -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 +23 -2
- package/esm5/localization/hockey-game-log-types.js +3 -1
- package/esm5/models/hockey-game-log.js +27 -2
- package/fesm2015/mtgame-core.js +25 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +28 -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 +7 -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;
|
|
@@ -2564,6 +2579,15 @@
|
|
|
2564
2579
|
exports.HockeyGameLogTypes.penalty_shot, exports.HockeyGameLogTypes.match_penalty
|
|
2565
2580
|
].indexOf(this.logType) > -1;
|
|
2566
2581
|
};
|
|
2582
|
+
HockeyGameLog.prototype.isAfter = function (log) {
|
|
2583
|
+
if (this.time === log.time && this.period === log.period) {
|
|
2584
|
+
return this.id > log.id;
|
|
2585
|
+
}
|
|
2586
|
+
if (this.period === log.period) {
|
|
2587
|
+
return this.time > log.time;
|
|
2588
|
+
}
|
|
2589
|
+
return this.period > log.period;
|
|
2590
|
+
};
|
|
2567
2591
|
HockeyGameLog.toFront = function (value) { };
|
|
2568
2592
|
HockeyGameLog.toBack = function (value) { };
|
|
2569
2593
|
__decorate([
|
|
@@ -2588,7 +2612,8 @@
|
|
|
2588
2612
|
is_highlight: 'isHighlight',
|
|
2589
2613
|
advantage: 'advantage',
|
|
2590
2614
|
is_goalie: 'isGoalie',
|
|
2591
|
-
penalty_type: 'penaltyType'
|
|
2615
|
+
penalty_type: 'penaltyType',
|
|
2616
|
+
penalized_game_user_id: 'penalizedGameUserId',
|
|
2592
2617
|
},
|
|
2593
2618
|
relation: {
|
|
2594
2619
|
datetime: DateTimeField,
|
|
@@ -6109,6 +6134,8 @@
|
|
|
6109
6134
|
_a$2[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
|
|
6110
6135
|
_a$2[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
|
|
6111
6136
|
_a$2[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
|
|
6137
|
+
_a$2[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
|
|
6138
|
+
_a$2[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
|
|
6112
6139
|
_a$2);
|
|
6113
6140
|
|
|
6114
6141
|
var _a$3;
|