@mtgame/core 0.1.44 → 0.1.45
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 +66 -60
- 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 +10 -11
- package/esm2015/models/rugby-game-log.js +34 -34
- package/esm2015/models/rugby-game-statistic.js +4 -6
- package/esm2015/models/rugby-statistic.js +22 -13
- package/esm5/localization/rugby-game-log-types.js +10 -11
- package/esm5/models/rugby-game-log.js +34 -34
- package/esm5/models/rugby-game-statistic.js +4 -6
- package/esm5/models/rugby-statistic.js +22 -13
- package/fesm2015/mtgame-core.js +66 -60
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +66 -60
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/rugby-game-log-types.d.ts +2 -3
- package/models/rugby-game-log.d.ts +30 -31
- package/models/rugby-game-statistic.d.ts +4 -6
- package/models/rugby-statistic.d.ts +20 -11
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -5221,16 +5221,18 @@ var RugbyStatistic = /** @class */ (function (_super) {
|
|
|
5221
5221
|
points: 'points',
|
|
5222
5222
|
tries: 'tries',
|
|
5223
5223
|
penalty_tries: 'penaltyTries',
|
|
5224
|
-
|
|
5224
|
+
conversion_kicks: 'conversionKicks',
|
|
5225
5225
|
conversion_goals: 'conversionGoals',
|
|
5226
5226
|
conversion_misses: 'conversionMisses',
|
|
5227
5227
|
conversion_goals_percent: 'conversionGoalsPercent',
|
|
5228
|
-
|
|
5229
|
-
|
|
5228
|
+
penalties: 'penalties',
|
|
5229
|
+
penalty_kicks_on_goal: 'penaltyKicksOnGoal',
|
|
5230
5230
|
penalty_misses: 'penaltyMisses',
|
|
5231
5231
|
penalty_goals: 'penaltyGoals',
|
|
5232
|
+
tap_penalties: 'tapPenalties',
|
|
5233
|
+
penalty_kicks_to_touch: 'penaltyKicksToTouch',
|
|
5232
5234
|
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
5233
|
-
|
|
5235
|
+
drop_goal_kicks: 'dropGoalKicks',
|
|
5234
5236
|
drop_goals: 'dropGoals',
|
|
5235
5237
|
drop_goal_misses: 'dropGoalMisses',
|
|
5236
5238
|
drop_goal_percent: 'dropGoalPercent',
|
|
@@ -5239,31 +5241,38 @@ var RugbyStatistic = /** @class */ (function (_super) {
|
|
|
5239
5241
|
red_cards: 'redCards',
|
|
5240
5242
|
offloads: 'offloads',
|
|
5241
5243
|
tackles: 'tackles',
|
|
5242
|
-
outs: 'outs',
|
|
5243
5244
|
handling_errors: 'handlingErrors',
|
|
5244
|
-
|
|
5245
|
+
carries_over_gainline: 'carriesOverGainline',
|
|
5245
5246
|
plus_minus: 'plusMinus',
|
|
5246
5247
|
game_time: 'gameTime',
|
|
5247
5248
|
// Team statistic
|
|
5248
5249
|
scrums: 'scrums',
|
|
5249
5250
|
scrums_won: 'scrumsWon',
|
|
5250
|
-
|
|
5251
|
+
scrums_lost: 'scrumsLost',
|
|
5251
5252
|
scrums_won_percent: 'scrumsWonPercent',
|
|
5252
5253
|
scrums_won_free: 'scrumsWonFree',
|
|
5254
|
+
opponent_scrums_won: 'opponentScrumsWon',
|
|
5255
|
+
opponent_scrums_lost: 'opponentScrumsLost',
|
|
5253
5256
|
lineouts: 'lineouts',
|
|
5254
|
-
|
|
5255
|
-
|
|
5257
|
+
lineouts_won: 'lineoutsWon',
|
|
5258
|
+
lineouts_lost: 'lineoutsLost',
|
|
5256
5259
|
lineouts_steal: 'lineoutsSteal',
|
|
5260
|
+
opponent_lineouts_lost: 'opponentLineoutsLost',
|
|
5257
5261
|
quick_throws: 'quickThrows',
|
|
5258
5262
|
rucks: 'rucks',
|
|
5259
5263
|
rucks_won: 'rucksWon',
|
|
5260
|
-
|
|
5264
|
+
rucks_lost: 'rucksLost',
|
|
5261
5265
|
rucks_won_percent: 'rucksWonPercent',
|
|
5266
|
+
opponent_rucks_won: 'opponentRucksWon',
|
|
5267
|
+
opponent_rucks_lost: 'opponentRucksLost',
|
|
5262
5268
|
mauls: 'mauls',
|
|
5263
5269
|
mauls_won: 'maulsWon',
|
|
5264
|
-
|
|
5270
|
+
mauls_lost: 'maulsLost',
|
|
5265
5271
|
mauls_won_percent: 'maulWonPercent',
|
|
5266
|
-
|
|
5272
|
+
opponent_mauls_won: 'opponentMaulsWon',
|
|
5273
|
+
opponent_mauls_lost: 'opponentMaulsLost',
|
|
5274
|
+
fouls: 'fouls',
|
|
5275
|
+
team_fouls: 'teamFouls',
|
|
5267
5276
|
},
|
|
5268
5277
|
relation: {
|
|
5269
5278
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -7053,12 +7062,11 @@ var RugbyGameStatistic = /** @class */ (function (_super) {
|
|
|
7053
7062
|
penalty_tries: 'penaltyTries',
|
|
7054
7063
|
conversion_goals: 'conversionGoals',
|
|
7055
7064
|
conversion_misses: 'conversionMisses',
|
|
7056
|
-
|
|
7065
|
+
conversion_kicks: 'conversionKicks',
|
|
7057
7066
|
conversion_goals_percent: 'conversionGoalsPercent',
|
|
7058
|
-
drawing_ball: 'drawingBall',
|
|
7059
7067
|
penalty_misses: 'penaltyMisses',
|
|
7060
7068
|
penalty_goals: 'penaltyGoals',
|
|
7061
|
-
|
|
7069
|
+
penalty_kicks_on_goal: 'penaltyKicksOnGoal',
|
|
7062
7070
|
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
7063
7071
|
drop_goals: 'dropGoals',
|
|
7064
7072
|
drop_goal_misses: 'dropGoalMisses',
|
|
@@ -7069,9 +7077,8 @@ var RugbyGameStatistic = /** @class */ (function (_super) {
|
|
|
7069
7077
|
red_cards: 'redCards',
|
|
7070
7078
|
offloads: 'offloads',
|
|
7071
7079
|
tackles: 'tackles',
|
|
7072
|
-
outs: 'outs',
|
|
7073
7080
|
handling_errors: 'handlingErrors',
|
|
7074
|
-
|
|
7081
|
+
carries_over_gainline: 'carriesOverGainline',
|
|
7075
7082
|
game_time: 'gameTime',
|
|
7076
7083
|
plus_minus: 'plusMinus'
|
|
7077
7084
|
},
|
|
@@ -7129,38 +7136,37 @@ var RugbyGameLogTypes;
|
|
|
7129
7136
|
RugbyGameLogTypes[RugbyGameLogTypes["penalty_try"] = 4] = "penalty_try";
|
|
7130
7137
|
RugbyGameLogTypes[RugbyGameLogTypes["conversion_goal"] = 5] = "conversion_goal";
|
|
7131
7138
|
RugbyGameLogTypes[RugbyGameLogTypes["conversion_miss"] = 6] = "conversion_miss";
|
|
7132
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7133
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7134
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7135
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7136
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7137
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7138
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7139
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7140
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7141
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7142
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7143
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7144
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7145
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7146
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7147
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7148
|
-
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_miss"] = 23] = "end_game_penalty_miss";
|
|
7149
|
-
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_goal"] = 24] = "end_game_penalty_goal";
|
|
7139
|
+
RugbyGameLogTypes[RugbyGameLogTypes["penalty_miss"] = 7] = "penalty_miss";
|
|
7140
|
+
RugbyGameLogTypes[RugbyGameLogTypes["penalty_goal"] = 8] = "penalty_goal";
|
|
7141
|
+
RugbyGameLogTypes[RugbyGameLogTypes["drop_goal"] = 9] = "drop_goal";
|
|
7142
|
+
RugbyGameLogTypes[RugbyGameLogTypes["drop_goal_miss"] = 10] = "drop_goal_miss";
|
|
7143
|
+
RugbyGameLogTypes[RugbyGameLogTypes["free_kick"] = 11] = "free_kick";
|
|
7144
|
+
RugbyGameLogTypes[RugbyGameLogTypes["foul"] = 12] = "foul";
|
|
7145
|
+
RugbyGameLogTypes[RugbyGameLogTypes["yellow_card"] = 13] = "yellow_card";
|
|
7146
|
+
RugbyGameLogTypes[RugbyGameLogTypes["red_card"] = 14] = "red_card";
|
|
7147
|
+
RugbyGameLogTypes[RugbyGameLogTypes["offload"] = 15] = "offload";
|
|
7148
|
+
RugbyGameLogTypes[RugbyGameLogTypes["tackle"] = 16] = "tackle";
|
|
7149
|
+
RugbyGameLogTypes[RugbyGameLogTypes["handling_error"] = 17] = "handling_error";
|
|
7150
|
+
RugbyGameLogTypes[RugbyGameLogTypes["carries_over_gainline"] = 18] = "carries_over_gainline";
|
|
7151
|
+
RugbyGameLogTypes[RugbyGameLogTypes["bleeding_injury"] = 19] = "bleeding_injury";
|
|
7152
|
+
RugbyGameLogTypes[RugbyGameLogTypes["head_injury"] = 20] = "head_injury";
|
|
7153
|
+
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_miss"] = 21] = "end_game_penalty_miss";
|
|
7154
|
+
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_goal"] = 22] = "end_game_penalty_goal";
|
|
7150
7155
|
// team actions
|
|
7151
|
-
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] =
|
|
7156
|
+
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 23] = "timeout";
|
|
7157
|
+
RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] = 24] = "tap_penalty";
|
|
7158
|
+
RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] = 25] = "penalty_kick_to_touch";
|
|
7152
7159
|
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 26] = "scrum_won";
|
|
7153
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7160
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] = 27] = "scrum_lost";
|
|
7154
7161
|
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 28] = "scrum_won_free";
|
|
7155
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7156
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7157
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7158
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7159
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7160
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7161
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7162
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7163
|
-
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 37] = "team_foul";
|
|
7162
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] = 29] = "lineout_won";
|
|
7163
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] = 30] = "lineout_lost";
|
|
7164
|
+
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 31] = "quick_throw";
|
|
7165
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 32] = "ruck_won";
|
|
7166
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] = 33] = "ruck_lost";
|
|
7167
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 34] = "maul_won";
|
|
7168
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 35] = "maul_lost";
|
|
7169
|
+
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 36] = "team_foul";
|
|
7164
7170
|
})(RugbyGameLogTypes || (RugbyGameLogTypes = {}));
|
|
7165
7171
|
var RUGBY_GAME_LOG_TYPE_POINTS = (_a$1 = {},
|
|
7166
7172
|
_a$1[RugbyGameLogTypes.penalty_try] = 7,
|
|
@@ -7171,10 +7177,11 @@ var RUGBY_GAME_LOG_TYPE_POINTS = (_a$1 = {},
|
|
|
7171
7177
|
_a$1[RugbyGameLogTypes.end_game_penalty_goal] = 1,
|
|
7172
7178
|
_a$1);
|
|
7173
7179
|
var RUGBY_TEAM_LOG_TYPES = [
|
|
7174
|
-
RugbyGameLogTypes.timeout, RugbyGameLogTypes.scrum_won, RugbyGameLogTypes.
|
|
7175
|
-
RugbyGameLogTypes.
|
|
7176
|
-
RugbyGameLogTypes.
|
|
7177
|
-
RugbyGameLogTypes.team_foul,
|
|
7180
|
+
RugbyGameLogTypes.timeout, RugbyGameLogTypes.scrum_won, RugbyGameLogTypes.scrum_lost, RugbyGameLogTypes.scrum_won_free,
|
|
7181
|
+
RugbyGameLogTypes.lineout_won, RugbyGameLogTypes.lineout_lost,
|
|
7182
|
+
RugbyGameLogTypes.quick_throw, RugbyGameLogTypes.ruck_won, RugbyGameLogTypes.ruck_lost,
|
|
7183
|
+
RugbyGameLogTypes.maul_won, RugbyGameLogTypes.maul_lost, RugbyGameLogTypes.team_foul,
|
|
7184
|
+
RugbyGameLogTypes.penalty_kick_to_touch, RugbyGameLogTypes.tap_penalty,
|
|
7178
7185
|
];
|
|
7179
7186
|
var RugbyGameLog = /** @class */ (function (_super) {
|
|
7180
7187
|
__extends(RugbyGameLog, _super);
|
|
@@ -9160,9 +9167,10 @@ var RugbyGameLogTypeLocalization = (_a$8 = {},
|
|
|
9160
9167
|
_a$8[RugbyGameLogTypes.penalty_try] = 'Штрафная попытка',
|
|
9161
9168
|
_a$8[RugbyGameLogTypes.conversion_goal] = 'Реализация',
|
|
9162
9169
|
_a$8[RugbyGameLogTypes.conversion_miss] = 'Реализация промах',
|
|
9163
|
-
_a$8[RugbyGameLogTypes.drawing_ball] = 'Розыгрыш мяча',
|
|
9164
9170
|
_a$8[RugbyGameLogTypes.penalty_miss] = 'Штрафной промах',
|
|
9165
9171
|
_a$8[RugbyGameLogTypes.penalty_goal] = 'Штрафной гол',
|
|
9172
|
+
_a$8[RugbyGameLogTypes.penalty_kick_to_touch] = 'Штрафной в аут',
|
|
9173
|
+
_a$8[RugbyGameLogTypes.tap_penalty] = 'Штрафной розыгран',
|
|
9166
9174
|
_a$8[RugbyGameLogTypes.drop_goal] = 'Дроп-гол',
|
|
9167
9175
|
_a$8[RugbyGameLogTypes.drop_goal_miss] = 'Дроп-гол промах',
|
|
9168
9176
|
_a$8[RugbyGameLogTypes.free_kick] = 'Свободный удар',
|
|
@@ -9171,25 +9179,23 @@ var RugbyGameLogTypeLocalization = (_a$8 = {},
|
|
|
9171
9179
|
_a$8[RugbyGameLogTypes.red_card] = 'Красная карточка',
|
|
9172
9180
|
_a$8[RugbyGameLogTypes.offload] = 'Скидка при завхвате',
|
|
9173
9181
|
_a$8[RugbyGameLogTypes.tackle] = 'Успешный захват',
|
|
9174
|
-
_a$8[RugbyGameLogTypes.out] = 'Аут',
|
|
9175
9182
|
_a$8[RugbyGameLogTypes.handling_error] = 'Ошибка приема',
|
|
9176
|
-
_a$8[RugbyGameLogTypes.
|
|
9183
|
+
_a$8[RugbyGameLogTypes.carries_over_gainline] = 'Прорыв линии',
|
|
9177
9184
|
_a$8[RugbyGameLogTypes.bleeding_injury] = 'Кровоточащая травма',
|
|
9178
9185
|
_a$8[RugbyGameLogTypes.head_injury] = 'Травма головы',
|
|
9179
9186
|
_a$8[RugbyGameLogTypes.end_game_penalty_miss] = 'Штрафной промах',
|
|
9180
9187
|
_a$8[RugbyGameLogTypes.end_game_penalty_goal] = 'Штрафной гол',
|
|
9181
9188
|
_a$8[RugbyGameLogTypes.timeout] = 'Таймаут',
|
|
9182
|
-
_a$8[RugbyGameLogTypes.scrum_won] = '
|
|
9183
|
-
_a$8[RugbyGameLogTypes.
|
|
9189
|
+
_a$8[RugbyGameLogTypes.scrum_won] = 'Схватка выиграна',
|
|
9190
|
+
_a$8[RugbyGameLogTypes.scrum_lost] = 'Схватка проиграна',
|
|
9184
9191
|
_a$8[RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
|
|
9185
|
-
_a$8[RugbyGameLogTypes.
|
|
9186
|
-
_a$8[RugbyGameLogTypes.
|
|
9187
|
-
_a$8[RugbyGameLogTypes.lineout_steal] = 'Корридор перехват',
|
|
9192
|
+
_a$8[RugbyGameLogTypes.lineout_won] = 'Корридор выиграно',
|
|
9193
|
+
_a$8[RugbyGameLogTypes.lineout_lost] = 'Корридор проиграно',
|
|
9188
9194
|
_a$8[RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
|
|
9189
9195
|
_a$8[RugbyGameLogTypes.ruck_won] = 'Рак выиграно',
|
|
9190
|
-
_a$8[RugbyGameLogTypes.
|
|
9196
|
+
_a$8[RugbyGameLogTypes.ruck_lost] = 'Рак проиграно',
|
|
9191
9197
|
_a$8[RugbyGameLogTypes.maul_won] = 'Мол выиграно',
|
|
9192
|
-
_a$8[RugbyGameLogTypes.
|
|
9198
|
+
_a$8[RugbyGameLogTypes.maul_lost] = 'Мол проиграно',
|
|
9193
9199
|
_a$8[RugbyGameLogTypes.team_foul] = 'Фол',
|
|
9194
9200
|
_a$8);
|
|
9195
9201
|
|