@mtgame/core 0.1.122 → 0.1.124
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 +50 -24
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/rugby-game-log-types.js +12 -10
- package/esm2015/models/rugby-game-log.js +20 -15
- package/esm2015/models/rugby-game-statistic.js +9 -1
- package/esm2015/models/rugby-statistic.js +5 -1
- package/esm2015/models/waterpolo-game-statistic.js +1 -2
- package/fesm2015/mtgame-core.js +42 -24
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/rugby-game-log-types.d.ts +6 -4
- package/models/rugby-game-log.d.ts +19 -14
- package/models/rugby-game-statistic.d.ts +4 -0
- package/models/rugby-statistic.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6134,6 +6134,7 @@
|
|
|
6134
6134
|
drop_goals: 'dropGoals',
|
|
6135
6135
|
drop_goal_misses: 'dropGoalMisses',
|
|
6136
6136
|
drop_goals_percent: 'dropGoalsPercent',
|
|
6137
|
+
total_goals: 'totalGoals',
|
|
6137
6138
|
free_kicks: 'freeKicks',
|
|
6138
6139
|
yellow_cards: 'yellowCards',
|
|
6139
6140
|
red_cards: 'redCards',
|
|
@@ -6141,6 +6142,9 @@
|
|
|
6141
6142
|
tackles: 'tackles',
|
|
6142
6143
|
handling_errors: 'handlingErrors',
|
|
6143
6144
|
carries_over_gainline: 'carriesOverGainline',
|
|
6145
|
+
foot_field_shots: 'footFieldShots',
|
|
6146
|
+
foot_out_shots: 'footOutShots',
|
|
6147
|
+
foot_shots: 'footShots',
|
|
6144
6148
|
plus_minus: 'plusMinus',
|
|
6145
6149
|
game_time: 'gameTime',
|
|
6146
6150
|
// Team statistic
|
|
@@ -8329,6 +8333,20 @@
|
|
|
8329
8333
|
enumerable: false,
|
|
8330
8334
|
configurable: true
|
|
8331
8335
|
});
|
|
8336
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "totalGoals", {
|
|
8337
|
+
get: function () {
|
|
8338
|
+
return (this.conversionGoals || 0) + (this.dropGoals || 0) + (this.penaltyGoals || 0);
|
|
8339
|
+
},
|
|
8340
|
+
enumerable: false,
|
|
8341
|
+
configurable: true
|
|
8342
|
+
});
|
|
8343
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "footShots", {
|
|
8344
|
+
get: function () {
|
|
8345
|
+
return (this.footFieldShots || 0) + (this.footOutShots || 0);
|
|
8346
|
+
},
|
|
8347
|
+
enumerable: false,
|
|
8348
|
+
configurable: true
|
|
8349
|
+
});
|
|
8332
8350
|
RugbyGameStatistic.toFront = function (data) { };
|
|
8333
8351
|
RugbyGameStatistic.toBack = function (data) { };
|
|
8334
8352
|
return RugbyGameStatistic;
|
|
@@ -8366,6 +8384,8 @@
|
|
|
8366
8384
|
tackles: 'tackles',
|
|
8367
8385
|
handling_errors: 'handlingErrors',
|
|
8368
8386
|
carries_over_gainline: 'carriesOverGainline',
|
|
8387
|
+
foot_field_shots: 'footFieldShots',
|
|
8388
|
+
foot_out_shots: 'footOutShots',
|
|
8369
8389
|
game_time: 'gameTime',
|
|
8370
8390
|
plus_minus: 'plusMinus'
|
|
8371
8391
|
},
|
|
@@ -8437,21 +8457,26 @@
|
|
|
8437
8457
|
RugbyGameLogTypes[RugbyGameLogTypes["head_injury"] = 20] = "head_injury";
|
|
8438
8458
|
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_miss"] = 21] = "end_game_penalty_miss";
|
|
8439
8459
|
RugbyGameLogTypes[RugbyGameLogTypes["end_game_penalty_goal"] = 22] = "end_game_penalty_goal";
|
|
8460
|
+
RugbyGameLogTypes[RugbyGameLogTypes["foot_field_shot"] = 23] = "foot_field_shot";
|
|
8461
|
+
RugbyGameLogTypes[RugbyGameLogTypes["foot_out_shot"] = 24] = "foot_out_shot";
|
|
8440
8462
|
// team actions
|
|
8441
|
-
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] =
|
|
8442
|
-
RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] =
|
|
8443
|
-
RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] =
|
|
8444
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] =
|
|
8445
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] =
|
|
8446
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] =
|
|
8447
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] =
|
|
8448
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] =
|
|
8449
|
-
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] =
|
|
8450
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] =
|
|
8451
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] =
|
|
8452
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] =
|
|
8453
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] =
|
|
8454
|
-
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] =
|
|
8463
|
+
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 25] = "timeout";
|
|
8464
|
+
RugbyGameLogTypes[RugbyGameLogTypes["tap_penalty"] = 26] = "tap_penalty";
|
|
8465
|
+
RugbyGameLogTypes[RugbyGameLogTypes["penalty_kick_to_touch"] = 27] = "penalty_kick_to_touch";
|
|
8466
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 28] = "scrum_won";
|
|
8467
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lost"] = 29] = "scrum_lost";
|
|
8468
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 30] = "scrum_won_free";
|
|
8469
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_won"] = 31] = "lineout_won";
|
|
8470
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_lost"] = 32] = "lineout_lost";
|
|
8471
|
+
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 33] = "quick_throw";
|
|
8472
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 34] = "ruck_won";
|
|
8473
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lost"] = 35] = "ruck_lost";
|
|
8474
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 36] = "maul_won";
|
|
8475
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_lost"] = 37] = "maul_lost";
|
|
8476
|
+
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 38] = "team_foul";
|
|
8477
|
+
RugbyGameLogTypes[RugbyGameLogTypes["start_kick"] = 39] = "start_kick";
|
|
8478
|
+
RugbyGameLogTypes[RugbyGameLogTypes["twenty_two_meters_kick"] = 40] = "twenty_two_meters_kick";
|
|
8479
|
+
RugbyGameLogTypes[RugbyGameLogTypes["goal_kick"] = 41] = "goal_kick";
|
|
8455
8480
|
})(exports.RugbyGameLogTypes || (exports.RugbyGameLogTypes = {}));
|
|
8456
8481
|
var RUGBY_GAME_LOG_TYPE_POINTS = (_a$f = {},
|
|
8457
8482
|
_a$f[exports.RugbyGameLogTypes.penalty_try] = 7,
|
|
@@ -10565,7 +10590,6 @@
|
|
|
10565
10590
|
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
|
|
10566
10591
|
(this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) +
|
|
10567
10592
|
(this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0);
|
|
10568
|
-
;
|
|
10569
10593
|
},
|
|
10570
10594
|
enumerable: false,
|
|
10571
10595
|
configurable: true
|
|
@@ -11224,8 +11248,8 @@
|
|
|
11224
11248
|
|
|
11225
11249
|
var _a$6;
|
|
11226
11250
|
var RugbyGameLogTypeLocalization = (_a$6 = {},
|
|
11227
|
-
_a$6[exports.RugbyGameLogTypes.enter_game] = '
|
|
11228
|
-
_a$6[exports.RugbyGameLogTypes.exit_game] = 'Ушел с
|
|
11251
|
+
_a$6[exports.RugbyGameLogTypes.enter_game] = 'Вышел на поле',
|
|
11252
|
+
_a$6[exports.RugbyGameLogTypes.exit_game] = 'Ушел с поля',
|
|
11229
11253
|
_a$6[exports.RugbyGameLogTypes.try] = 'Попытка',
|
|
11230
11254
|
_a$6[exports.RugbyGameLogTypes.penalty_try] = 'Штрафная попытка',
|
|
11231
11255
|
_a$6[exports.RugbyGameLogTypes.conversion_goal] = 'Реализация',
|
|
@@ -11248,18 +11272,20 @@
|
|
|
11248
11272
|
_a$6[exports.RugbyGameLogTypes.head_injury] = 'Травма головы',
|
|
11249
11273
|
_a$6[exports.RugbyGameLogTypes.end_game_penalty_miss] = 'Штрафной промах',
|
|
11250
11274
|
_a$6[exports.RugbyGameLogTypes.end_game_penalty_goal] = 'Штрафной гол',
|
|
11275
|
+
_a$6[exports.RugbyGameLogTypes.foot_field_shot] = 'Удар ногой в поле',
|
|
11276
|
+
_a$6[exports.RugbyGameLogTypes.foot_out_shot] = 'Удар ногой в аут',
|
|
11251
11277
|
_a$6[exports.RugbyGameLogTypes.timeout] = 'Таймаут',
|
|
11252
11278
|
_a$6[exports.RugbyGameLogTypes.scrum_won] = 'Схватка выиграна',
|
|
11253
11279
|
_a$6[exports.RugbyGameLogTypes.scrum_lost] = 'Схватка проиграна',
|
|
11254
11280
|
_a$6[exports.RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
|
|
11255
|
-
_a$6[exports.RugbyGameLogTypes.lineout_won] = '
|
|
11256
|
-
_a$6[exports.RugbyGameLogTypes.lineout_lost] = '
|
|
11281
|
+
_a$6[exports.RugbyGameLogTypes.lineout_won] = 'Коридор выигран',
|
|
11282
|
+
_a$6[exports.RugbyGameLogTypes.lineout_lost] = 'Коридор проигран',
|
|
11257
11283
|
_a$6[exports.RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
|
|
11258
|
-
_a$6[exports.RugbyGameLogTypes.ruck_won] = 'Рак
|
|
11259
|
-
_a$6[exports.RugbyGameLogTypes.ruck_lost] = 'Рак
|
|
11260
|
-
_a$6[exports.RugbyGameLogTypes.maul_won] = 'Мол
|
|
11261
|
-
_a$6[exports.RugbyGameLogTypes.maul_lost] = 'Мол
|
|
11262
|
-
_a$6[exports.RugbyGameLogTypes.team_foul] = '
|
|
11284
|
+
_a$6[exports.RugbyGameLogTypes.ruck_won] = 'Рак выигран',
|
|
11285
|
+
_a$6[exports.RugbyGameLogTypes.ruck_lost] = 'Рак проигран',
|
|
11286
|
+
_a$6[exports.RugbyGameLogTypes.maul_won] = 'Мол выигран',
|
|
11287
|
+
_a$6[exports.RugbyGameLogTypes.maul_lost] = 'Мол проигран',
|
|
11288
|
+
_a$6[exports.RugbyGameLogTypes.team_foul] = 'Нарушение',
|
|
11263
11289
|
_a$6);
|
|
11264
11290
|
|
|
11265
11291
|
var _a$5;
|