@mtgame/core 0.1.45 → 0.1.47
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 +27 -2
- 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/football-game-log-types.js +5 -2
- package/esm2015/models/football-game-config.js +10 -1
- package/esm2015/models/football-game-log.js +4 -1
- package/esm2015/models/football-game-statistic.js +5 -2
- package/esm2015/models/football-statistic.js +4 -1
- package/esm2015/models/rugby-statistic.js +2 -2
- package/esm5/localization/football-game-log-types.js +4 -1
- package/esm5/models/football-game-config.js +14 -1
- package/esm5/models/football-game-log.js +4 -1
- package/esm5/models/football-game-statistic.js +5 -2
- package/esm5/models/football-statistic.js +4 -1
- package/esm5/models/rugby-statistic.js +2 -2
- package/fesm2015/mtgame-core.js +24 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +27 -2
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/football-game-log-types.d.ts +3 -0
- package/models/football-game-config.d.ts +4 -0
- package/models/football-game-log.d.ts +4 -1
- package/models/football-game-statistic.d.ts +3 -0
- package/models/football-statistic.d.ts +3 -0
- package/models/rugby-statistic.d.ts +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1791,6 +1791,16 @@
|
|
|
1791
1791
|
function FootballGameConfig() {
|
|
1792
1792
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1793
1793
|
}
|
|
1794
|
+
Object.defineProperty(FootballGameConfig.prototype, "penaltyPeriod", {
|
|
1795
|
+
get: function () {
|
|
1796
|
+
if (this.overtimeType !== exports.OvertimeTypes.time_and_penalties) {
|
|
1797
|
+
return +this.periodsCount + 1;
|
|
1798
|
+
}
|
|
1799
|
+
return +this.periodsCount + this.overtimePeriods + 1;
|
|
1800
|
+
},
|
|
1801
|
+
enumerable: true,
|
|
1802
|
+
configurable: true
|
|
1803
|
+
});
|
|
1794
1804
|
FootballGameConfig.toFront = function (data) { };
|
|
1795
1805
|
FootballGameConfig.toBack = function (data) { };
|
|
1796
1806
|
__decorate([
|
|
@@ -1806,11 +1816,14 @@
|
|
|
1806
1816
|
period_time: 'periodTime',
|
|
1807
1817
|
overtime_type: 'overtimeType',
|
|
1808
1818
|
overtime_time: 'overtimeTime',
|
|
1819
|
+
overtime_periods: 'overtimePeriods',
|
|
1809
1820
|
max_game_players: 'maxGamePlayers',
|
|
1810
1821
|
timeout_count: 'timeoutCount',
|
|
1811
1822
|
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
1812
1823
|
timeout_time: 'timeoutTime',
|
|
1813
1824
|
game_time_type: 'gameTimeType',
|
|
1825
|
+
substitute_count: 'substituteCount',
|
|
1826
|
+
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
1814
1827
|
},
|
|
1815
1828
|
relation: {
|
|
1816
1829
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
@@ -4002,6 +4015,9 @@
|
|
|
4002
4015
|
FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
|
|
4003
4016
|
FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
|
|
4004
4017
|
FootballGameLogTypes[FootballGameLogTypes["auto_goal"] = 26] = "auto_goal";
|
|
4018
|
+
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_miss"] = 27] = "end_game_penalty_miss";
|
|
4019
|
+
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_goal"] = 28] = "end_game_penalty_goal";
|
|
4020
|
+
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_save"] = 29] = "end_game_penalty_save";
|
|
4005
4021
|
})(exports.FootballGameLogTypes || (exports.FootballGameLogTypes = {}));
|
|
4006
4022
|
var FootballGameLog = /** @class */ (function (_super) {
|
|
4007
4023
|
__extends(FootballGameLog, _super);
|
|
@@ -4275,7 +4291,10 @@
|
|
|
4275
4291
|
outs: 'outs',
|
|
4276
4292
|
block_shots: 'blockShots',
|
|
4277
4293
|
auto_goals: 'autoGoals',
|
|
4278
|
-
auto_goals_against: 'autoGoalsAgainst'
|
|
4294
|
+
auto_goals_against: 'autoGoalsAgainst',
|
|
4295
|
+
end_game_penalty_goals: 'endGamePenaltyGoals',
|
|
4296
|
+
end_game_penalty_misses: 'endGamePenaltyMisses',
|
|
4297
|
+
end_game_penalty_saves: 'endGamePenaltySaves'
|
|
4279
4298
|
},
|
|
4280
4299
|
relation: {
|
|
4281
4300
|
updatedAt: DateTimeField,
|
|
@@ -4432,6 +4451,9 @@
|
|
|
4432
4451
|
rank: 'rank',
|
|
4433
4452
|
auto_goals: 'autoGoals',
|
|
4434
4453
|
auto_goals_against: 'autoGoalsAgainst',
|
|
4454
|
+
end_game_penalty_goals: 'endGamePenaltyGoals',
|
|
4455
|
+
end_game_penalty_misses: 'endGamePenaltyMisses',
|
|
4456
|
+
end_game_penalty_saves: 'endGamePenaltySaves'
|
|
4435
4457
|
},
|
|
4436
4458
|
relation: {
|
|
4437
4459
|
leaguePlayer: LeaguePlayer,
|
|
@@ -5448,7 +5470,7 @@
|
|
|
5448
5470
|
drop_goal_kicks: 'dropGoalKicks',
|
|
5449
5471
|
drop_goals: 'dropGoals',
|
|
5450
5472
|
drop_goal_misses: 'dropGoalMisses',
|
|
5451
|
-
|
|
5473
|
+
drop_goals_percent: 'dropGoalPercent',
|
|
5452
5474
|
free_kicks: 'freeKicks',
|
|
5453
5475
|
yellow_cards: 'yellowCards',
|
|
5454
5476
|
red_cards: 'redCards',
|
|
@@ -9323,6 +9345,9 @@
|
|
|
9323
9345
|
_a$4[exports.FootballGameLogTypes.out] = 'Аут',
|
|
9324
9346
|
_a$4[exports.FootballGameLogTypes.timeout] = 'Таймаут',
|
|
9325
9347
|
_a$4[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
|
|
9348
|
+
_a$4[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
|
|
9349
|
+
_a$4[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
|
|
9350
|
+
_a$4[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
|
|
9326
9351
|
_a$4);
|
|
9327
9352
|
|
|
9328
9353
|
var _a$5;
|