@mtgame/core 0.0.21 → 0.0.23
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 +20 -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 +15 -2
- package/esm5/localization/hockey-game-log-types.js +3 -1
- package/esm5/models/hockey-game-log.js +19 -2
- package/fesm2015/mtgame-core.js +17 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +20 -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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2309,6 +2309,8 @@ var HockeyGameLogTypes;
|
|
|
2309
2309
|
HockeyGameLogTypes[HockeyGameLogTypes["face_off_win"] = 18] = "face_off_win";
|
|
2310
2310
|
HockeyGameLogTypes[HockeyGameLogTypes["save"] = 19] = "save";
|
|
2311
2311
|
HockeyGameLogTypes[HockeyGameLogTypes["timeout"] = 20] = "timeout";
|
|
2312
|
+
HockeyGameLogTypes[HockeyGameLogTypes["penalty_start"] = 21] = "penalty_start";
|
|
2313
|
+
HockeyGameLogTypes[HockeyGameLogTypes["penalty_end"] = 22] = "penalty_end";
|
|
2312
2314
|
})(HockeyGameLogTypes || (HockeyGameLogTypes = {}));
|
|
2313
2315
|
var HockeyAdvantageTypes;
|
|
2314
2316
|
(function (HockeyAdvantageTypes) {
|
|
@@ -2323,6 +2325,19 @@ var HockeyGameLog = /** @class */ (function (_super) {
|
|
|
2323
2325
|
_this.active = true;
|
|
2324
2326
|
return _this;
|
|
2325
2327
|
}
|
|
2328
|
+
Object.defineProperty(HockeyGameLog.prototype, "penalizedGameUserId", {
|
|
2329
|
+
get: function () {
|
|
2330
|
+
if (this._penalizedGameUserId) {
|
|
2331
|
+
return this._penalizedGameUserId;
|
|
2332
|
+
}
|
|
2333
|
+
return this.gameUserId;
|
|
2334
|
+
},
|
|
2335
|
+
set: function (value) {
|
|
2336
|
+
this._penalizedGameUserId = value;
|
|
2337
|
+
},
|
|
2338
|
+
enumerable: true,
|
|
2339
|
+
configurable: true
|
|
2340
|
+
});
|
|
2326
2341
|
HockeyGameLog.prototype.compare = function (model) {
|
|
2327
2342
|
if (this.time === model.time && this.period === model.period) {
|
|
2328
2343
|
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
@@ -2383,8 +2398,10 @@ var HockeyGameLog = /** @class */ (function (_super) {
|
|
|
2383
2398
|
active: 'active',
|
|
2384
2399
|
is_highlight: 'isHighlight',
|
|
2385
2400
|
advantage: 'advantage',
|
|
2401
|
+
advantage_num: 'advantageNum',
|
|
2386
2402
|
is_goalie: 'isGoalie',
|
|
2387
|
-
penalty_type: 'penaltyType'
|
|
2403
|
+
penalty_type: 'penaltyType',
|
|
2404
|
+
penalized_game_user_id: 'penalizedGameUserId',
|
|
2388
2405
|
},
|
|
2389
2406
|
relation: {
|
|
2390
2407
|
datetime: DateTimeField,
|
|
@@ -5905,6 +5922,8 @@ var HockeyGameLogTypeLocalization = (_a$2 = {},
|
|
|
5905
5922
|
_a$2[HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
|
|
5906
5923
|
_a$2[HockeyGameLogTypes.save] = 'Отражен бросок',
|
|
5907
5924
|
_a$2[HockeyGameLogTypes.timeout] = 'Таймаут',
|
|
5925
|
+
_a$2[HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
|
|
5926
|
+
_a$2[HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
|
|
5908
5927
|
_a$2);
|
|
5909
5928
|
|
|
5910
5929
|
var _a$3;
|