@mtgame/core 0.2.118 → 0.2.119
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 +31 -5
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/football-game-log-types.js +6 -1
- package/esm2015/models/football-game-log.js +7 -1
- package/esm2015/models/football-game-statistic.js +16 -5
- package/esm2015/models/football-statistic.js +6 -2
- package/fesm2015/mtgame-core.js +31 -5
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/football-game-log-types.d.ts +5 -0
- package/models/football-game-log.d.ts +6 -1
- package/models/football-game-statistic.d.ts +4 -0
- package/models/football-statistic.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5491,6 +5491,11 @@
|
|
|
5491
5491
|
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_miss"] = 27] = "end_game_penalty_miss";
|
|
5492
5492
|
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_goal"] = 28] = "end_game_penalty_goal";
|
|
5493
5493
|
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_save"] = 29] = "end_game_penalty_save";
|
|
5494
|
+
FootballGameLogTypes[FootballGameLogTypes["duel_won"] = 30] = "duel_won";
|
|
5495
|
+
FootballGameLogTypes[FootballGameLogTypes["duel_lost"] = 31] = "duel_lost";
|
|
5496
|
+
FootballGameLogTypes[FootballGameLogTypes["double_goal"] = 32] = "double_goal";
|
|
5497
|
+
FootballGameLogTypes[FootballGameLogTypes["super_game"] = 33] = "super_game";
|
|
5498
|
+
FootballGameLogTypes[FootballGameLogTypes["color_ball"] = 34] = "color_ball";
|
|
5494
5499
|
})(exports.FootballGameLogTypes || (exports.FootballGameLogTypes = {}));
|
|
5495
5500
|
exports.FootballGameLog = /** @class */ (function (_super) {
|
|
5496
5501
|
__extends(FootballGameLog, _super);
|
|
@@ -5524,6 +5529,7 @@
|
|
|
5524
5529
|
exports.FootballGameLogTypes.small_penalty_goal,
|
|
5525
5530
|
exports.FootballGameLogTypes.auto_goal,
|
|
5526
5531
|
exports.FootballGameLogTypes.end_game_penalty_goal,
|
|
5532
|
+
exports.FootballGameLogTypes.double_goal
|
|
5527
5533
|
].indexOf(this.logType) > -1;
|
|
5528
5534
|
};
|
|
5529
5535
|
FootballGameLog.prototype.isAfter = function (log) {
|
|
@@ -5589,7 +5595,10 @@
|
|
|
5589
5595
|
});
|
|
5590
5596
|
Object.defineProperty(FootballGameStatistic.prototype, "totalGoals", {
|
|
5591
5597
|
get: function () {
|
|
5592
|
-
return Math.floor(10 * ((this.goals || 0) +
|
|
5598
|
+
return Math.floor(10 * ((this.goals || 0) +
|
|
5599
|
+
(this.penaltyGoals || 0) +
|
|
5600
|
+
(this.smallPenaltyGoals || 0) +
|
|
5601
|
+
((this.doubleGoals || 0) * 2))) / 10;
|
|
5593
5602
|
},
|
|
5594
5603
|
enumerable: false,
|
|
5595
5604
|
configurable: true
|
|
@@ -5650,7 +5659,7 @@
|
|
|
5650
5659
|
});
|
|
5651
5660
|
Object.defineProperty(FootballGameStatistic.prototype, "shotsAgainst", {
|
|
5652
5661
|
get: function () {
|
|
5653
|
-
return Math.floor(10 * ((this.saves || 0) + (this.goalsAgainst || 0))) / 10;
|
|
5662
|
+
return Math.floor(10 * ((this.saves || 0) + (this.goalsAgainst || 0) + (this.doubleGoalsAgainst || 0))) / 10;
|
|
5654
5663
|
},
|
|
5655
5664
|
enumerable: false,
|
|
5656
5665
|
configurable: true
|
|
@@ -5671,7 +5680,11 @@
|
|
|
5671
5680
|
});
|
|
5672
5681
|
Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
|
|
5673
5682
|
get: function () {
|
|
5674
|
-
return Math.floor(10 * ((this.goalsAgainst || 0) +
|
|
5683
|
+
return Math.floor(10 * ((this.goalsAgainst || 0) +
|
|
5684
|
+
(this.penaltyGoalsAgainst || 0) +
|
|
5685
|
+
(this.smallPenaltyGoalsAgainst || 0) +
|
|
5686
|
+
(this.autoGoalsAgainst || 0) +
|
|
5687
|
+
((this.doubleGoalsAgainst || 0) * 2))) / 10;
|
|
5675
5688
|
},
|
|
5676
5689
|
enumerable: false,
|
|
5677
5690
|
configurable: true
|
|
@@ -5775,7 +5788,11 @@
|
|
|
5775
5788
|
auto_goals_against: 'autoGoalsAgainst',
|
|
5776
5789
|
end_game_penalty_goals: 'endGamePenaltyGoals',
|
|
5777
5790
|
end_game_penalty_misses: 'endGamePenaltyMisses',
|
|
5778
|
-
end_game_penalty_saves: 'endGamePenaltySaves'
|
|
5791
|
+
end_game_penalty_saves: 'endGamePenaltySaves',
|
|
5792
|
+
duels_won: 'duelsWon',
|
|
5793
|
+
duels_lost: 'duelsLost',
|
|
5794
|
+
double_goals: 'doubleGoals',
|
|
5795
|
+
double_goals_against: 'doubleGoalsAgainst',
|
|
5779
5796
|
},
|
|
5780
5797
|
relation: {
|
|
5781
5798
|
updatedAt: DateTimeField,
|
|
@@ -5969,7 +5986,11 @@
|
|
|
5969
5986
|
end_game_penalty_misses: 'endGamePenaltyMisses',
|
|
5970
5987
|
end_game_penalty_saves: 'endGamePenaltySaves',
|
|
5971
5988
|
shutout: 'shutout',
|
|
5972
|
-
shutout_percent: 'shutoutPercent'
|
|
5989
|
+
shutout_percent: 'shutoutPercent',
|
|
5990
|
+
duels_won: 'duelsWon',
|
|
5991
|
+
duels_lost: 'duelsLost',
|
|
5992
|
+
double_goals: 'doubleGoals',
|
|
5993
|
+
double_goals_against: 'doubleGoalsAgainst',
|
|
5973
5994
|
},
|
|
5974
5995
|
relation: {
|
|
5975
5996
|
leaguePlayer: exports.LeaguePlayer,
|
|
@@ -14240,6 +14261,11 @@
|
|
|
14240
14261
|
_a$d[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
|
|
14241
14262
|
_a$d[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
|
|
14242
14263
|
_a$d[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
|
|
14264
|
+
_a$d[exports.FootballGameLogTypes.duel_won] = 'Дуэль выиграна',
|
|
14265
|
+
_a$d[exports.FootballGameLogTypes.duel_lost] = 'Дуэль проиграна',
|
|
14266
|
+
_a$d[exports.FootballGameLogTypes.double_goal] = 'Гол+2',
|
|
14267
|
+
_a$d[exports.FootballGameLogTypes.super_game] = 'Супер игра',
|
|
14268
|
+
_a$d[exports.FootballGameLogTypes.color_ball] = 'Цветной мяч',
|
|
14243
14269
|
_a$d);
|
|
14244
14270
|
|
|
14245
14271
|
var _a$c;
|