@mtgame/core 0.1.45 → 0.1.46
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 +26 -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/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/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/fesm2015/mtgame-core.js +23 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +26 -1
- 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/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -1330,6 +1330,12 @@ HockeyGameConfig = __decorate([
|
|
|
1330
1330
|
], HockeyGameConfig);
|
|
1331
1331
|
|
|
1332
1332
|
let FootballGameConfig = class FootballGameConfig extends BaseModel {
|
|
1333
|
+
get penaltyPeriod() {
|
|
1334
|
+
if (this.overtimeType !== OvertimeTypes.time_and_penalties) {
|
|
1335
|
+
return +this.periodsCount + 1;
|
|
1336
|
+
}
|
|
1337
|
+
return +this.periodsCount + this.overtimePeriods + 1;
|
|
1338
|
+
}
|
|
1333
1339
|
static toFront(data) { }
|
|
1334
1340
|
static toBack(data) { }
|
|
1335
1341
|
};
|
|
@@ -1346,11 +1352,14 @@ FootballGameConfig = __decorate([
|
|
|
1346
1352
|
period_time: 'periodTime',
|
|
1347
1353
|
overtime_type: 'overtimeType',
|
|
1348
1354
|
overtime_time: 'overtimeTime',
|
|
1355
|
+
overtime_periods: 'overtimePeriods',
|
|
1349
1356
|
max_game_players: 'maxGamePlayers',
|
|
1350
1357
|
timeout_count: 'timeoutCount',
|
|
1351
1358
|
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
1352
1359
|
timeout_time: 'timeoutTime',
|
|
1353
1360
|
game_time_type: 'gameTimeType',
|
|
1361
|
+
substitute_count: 'substituteCount',
|
|
1362
|
+
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
1354
1363
|
},
|
|
1355
1364
|
relation: {
|
|
1356
1365
|
overtimeType: enumField(OvertimeTypes),
|
|
@@ -3127,6 +3136,9 @@ var FootballGameLogTypes;
|
|
|
3127
3136
|
FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
|
|
3128
3137
|
FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
|
|
3129
3138
|
FootballGameLogTypes[FootballGameLogTypes["auto_goal"] = 26] = "auto_goal";
|
|
3139
|
+
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_miss"] = 27] = "end_game_penalty_miss";
|
|
3140
|
+
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_goal"] = 28] = "end_game_penalty_goal";
|
|
3141
|
+
FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_save"] = 29] = "end_game_penalty_save";
|
|
3130
3142
|
})(FootballGameLogTypes || (FootballGameLogTypes = {}));
|
|
3131
3143
|
let FootballGameLog = class FootballGameLog extends BaseModel {
|
|
3132
3144
|
constructor() {
|
|
@@ -3318,7 +3330,10 @@ FootballGameStatistic = __decorate([
|
|
|
3318
3330
|
outs: 'outs',
|
|
3319
3331
|
block_shots: 'blockShots',
|
|
3320
3332
|
auto_goals: 'autoGoals',
|
|
3321
|
-
auto_goals_against: 'autoGoalsAgainst'
|
|
3333
|
+
auto_goals_against: 'autoGoalsAgainst',
|
|
3334
|
+
end_game_penalty_goals: 'endGamePenaltyGoals',
|
|
3335
|
+
end_game_penalty_misses: 'endGamePenaltyMisses',
|
|
3336
|
+
end_game_penalty_saves: 'endGamePenaltySaves'
|
|
3322
3337
|
},
|
|
3323
3338
|
relation: {
|
|
3324
3339
|
updatedAt: DateTimeField,
|
|
@@ -3434,6 +3449,9 @@ FootballStatistic = __decorate([
|
|
|
3434
3449
|
rank: 'rank',
|
|
3435
3450
|
auto_goals: 'autoGoals',
|
|
3436
3451
|
auto_goals_against: 'autoGoalsAgainst',
|
|
3452
|
+
end_game_penalty_goals: 'endGamePenaltyGoals',
|
|
3453
|
+
end_game_penalty_misses: 'endGamePenaltyMisses',
|
|
3454
|
+
end_game_penalty_saves: 'endGamePenaltySaves'
|
|
3437
3455
|
},
|
|
3438
3456
|
relation: {
|
|
3439
3457
|
leaguePlayer: LeaguePlayer,
|
|
@@ -7434,7 +7452,10 @@ const FootballGameLogTypeLocalization = {
|
|
|
7434
7452
|
[FootballGameLogTypes.steal]: 'Перехват',
|
|
7435
7453
|
[FootballGameLogTypes.out]: 'Аут',
|
|
7436
7454
|
[FootballGameLogTypes.timeout]: 'Таймаут',
|
|
7437
|
-
[FootballGameLogTypes.auto_goal]: 'Автогол'
|
|
7455
|
+
[FootballGameLogTypes.auto_goal]: 'Автогол',
|
|
7456
|
+
[FootballGameLogTypes.end_game_penalty_goal]: 'Пенальти гол',
|
|
7457
|
+
[FootballGameLogTypes.end_game_penalty_miss]: 'Пенальти промах',
|
|
7458
|
+
[FootballGameLogTypes.end_game_penalty_save]: 'Отражен пенальти',
|
|
7438
7459
|
};
|
|
7439
7460
|
|
|
7440
7461
|
const HandballGameLogTypeLocalization = {
|