@mtgame/core 0.1.42 → 0.1.43
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 +32 -14
- 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/rugby-game-log-types.js +3 -1
- package/esm2015/models/rugby-game-config.js +8 -2
- package/esm2015/models/rugby-game-log.js +16 -14
- package/esm2015/models/rugby-game-statistic.js +1 -1
- package/esm2015/models/rugby-game-team-statistic.js +1 -1
- package/esm2015/models/rugby-statistic.js +1 -1
- package/esm2015/models/tournament-team.js +6 -2
- package/esm5/localization/rugby-game-log-types.js +3 -1
- package/esm5/models/rugby-game-config.js +12 -2
- package/esm5/models/rugby-game-log.js +16 -14
- package/esm5/models/rugby-game-statistic.js +1 -1
- package/esm5/models/rugby-game-team-statistic.js +1 -1
- package/esm5/models/rugby-statistic.js +1 -1
- package/esm5/models/tournament-team.js +6 -2
- package/fesm2015/mtgame-core.js +28 -14
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +32 -14
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/rugby-game-log-types.d.ts +2 -0
- package/models/rugby-game-config.d.ts +1 -0
- package/models/rugby-game-log.d.ts +15 -13
- package/models/rugby-game-statistic.d.ts +2 -1
- package/models/rugby-game-team-statistic.d.ts +2 -1
- package/models/rugby-statistic.d.ts +7 -2
- package/models/tournament-team.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2002,6 +2002,16 @@
|
|
|
2002
2002
|
function RugbyGameConfig() {
|
|
2003
2003
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2004
2004
|
}
|
|
2005
|
+
Object.defineProperty(RugbyGameConfig.prototype, "penaltyPeriod", {
|
|
2006
|
+
get: function () {
|
|
2007
|
+
if (this.overtimeType !== exports.OvertimeTypes.time_and_penalties) {
|
|
2008
|
+
return +this.periodsCount + 1;
|
|
2009
|
+
}
|
|
2010
|
+
return +this.periodsCount + this.overtimePeriods + 1;
|
|
2011
|
+
},
|
|
2012
|
+
enumerable: true,
|
|
2013
|
+
configurable: true
|
|
2014
|
+
});
|
|
2005
2015
|
RugbyGameConfig.toFront = function (data) { };
|
|
2006
2016
|
RugbyGameConfig.toBack = function (data) { };
|
|
2007
2017
|
__decorate([
|
|
@@ -2565,7 +2575,11 @@
|
|
|
2565
2575
|
lose_normal_time_games_count: 'loseNormalTimeGamesCount',
|
|
2566
2576
|
win_overtime_games_count: 'winOvertimeGamesCount',
|
|
2567
2577
|
lose_overtime_games_count: 'loseOvertimeGamesCount',
|
|
2568
|
-
last_five_games: 'lastFiveGames'
|
|
2578
|
+
last_five_games: 'lastFiveGames',
|
|
2579
|
+
tries_scored: 'triesScored',
|
|
2580
|
+
tries_missed: 'triesMissed',
|
|
2581
|
+
attack_bonuses: 'attackBonuses',
|
|
2582
|
+
defense_bonuses: 'defenseBonuses',
|
|
2569
2583
|
},
|
|
2570
2584
|
relation: {
|
|
2571
2585
|
logo: File,
|
|
@@ -7343,20 +7357,22 @@
|
|
|
7343
7357
|
RugbyGameLogTypes[RugbyGameLogTypes["carries_other_gainline"] = 20] = "carries_other_gainline";
|
|
7344
7358
|
RugbyGameLogTypes[RugbyGameLogTypes["bleeding_injury"] = 21] = "bleeding_injury";
|
|
7345
7359
|
RugbyGameLogTypes[RugbyGameLogTypes["head_injury"] = 22] = "head_injury";
|
|
7360
|
+
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_miss"] = 23] = "end_game_penalty_miss";
|
|
7361
|
+
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_goal"] = 24] = "end_game_penalty_goal";
|
|
7346
7362
|
// team actions
|
|
7347
|
-
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] =
|
|
7348
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] =
|
|
7349
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] =
|
|
7350
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] =
|
|
7351
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] =
|
|
7352
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] =
|
|
7353
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] =
|
|
7354
|
-
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] =
|
|
7355
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] =
|
|
7356
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] =
|
|
7357
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] =
|
|
7358
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] =
|
|
7359
|
-
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] =
|
|
7363
|
+
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 25] = "timeout";
|
|
7364
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 26] = "scrum_won";
|
|
7365
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] = 27] = "scrum_lose";
|
|
7366
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 28] = "scrum_won_free";
|
|
7367
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] = 29] = "lineout_success";
|
|
7368
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] = 30] = "lineout_loss";
|
|
7369
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] = 31] = "lineout_steal";
|
|
7370
|
+
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 32] = "quick_throw";
|
|
7371
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 33] = "ruck_won";
|
|
7372
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] = 34] = "ruck_lose";
|
|
7373
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 35] = "maul_won";
|
|
7374
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] = 36] = "maul_lose";
|
|
7375
|
+
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 37] = "team_foul";
|
|
7360
7376
|
})(exports.RugbyGameLogTypes || (exports.RugbyGameLogTypes = {}));
|
|
7361
7377
|
var RUGBY_GAME_LOG_TYPE_POINTS = (_a$1 = {},
|
|
7362
7378
|
_a$1[exports.RugbyGameLogTypes.penalty_try] = 7,
|
|
@@ -9371,6 +9387,8 @@
|
|
|
9371
9387
|
_a$8[exports.RugbyGameLogTypes.carries_other_gainline] = 'Прорыв линии',
|
|
9372
9388
|
_a$8[exports.RugbyGameLogTypes.bleeding_injury] = 'Кровоточащая травма',
|
|
9373
9389
|
_a$8[exports.RugbyGameLogTypes.head_injury] = 'Травма головы',
|
|
9390
|
+
_a$8[exports.RugbyGameLogTypes.end_game_penalty_miss] = 'Штрафной промах',
|
|
9391
|
+
_a$8[exports.RugbyGameLogTypes.end_game_penalty_goal] = 'Штрафной гол',
|
|
9374
9392
|
_a$8[exports.RugbyGameLogTypes.timeout] = 'Таймаут',
|
|
9375
9393
|
_a$8[exports.RugbyGameLogTypes.scrum_won] = 'Свахтка выиграна',
|
|
9376
9394
|
_a$8[exports.RugbyGameLogTypes.scrum_lose] = 'Схватка проиграна',
|