@mtgame/core 0.1.115 → 0.1.118
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 +124 -15
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/waterpolo-game-log-types.js +16 -6
- package/esm2015/models/waterpolo-game-config.js +2 -1
- package/esm2015/models/waterpolo-game-log.js +15 -4
- package/esm2015/models/waterpolo-game-statistic.js +58 -8
- package/esm2015/models/waterpolo-statistic.js +27 -2
- package/fesm2015/mtgame-core.js +113 -16
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/waterpolo-game-log-types.d.ts +11 -1
- package/models/waterpolo-game-config.d.ts +1 -0
- package/models/waterpolo-game-log.d.ts +12 -2
- package/models/waterpolo-game-statistic.d.ts +26 -1
- package/models/waterpolo-statistic.d.ts +26 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2361,6 +2361,7 @@
|
|
|
2361
2361
|
timeout_time: 'timeoutTime',
|
|
2362
2362
|
game_time_type: 'gameTimeType',
|
|
2363
2363
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
2364
|
+
shot_clock_enabled: 'shotClockEnabled',
|
|
2364
2365
|
},
|
|
2365
2366
|
relation: {
|
|
2366
2367
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
@@ -6378,13 +6379,38 @@
|
|
|
6378
6379
|
penalty_minutes: 'penaltyMinutes',
|
|
6379
6380
|
game_time: 'gameTime',
|
|
6380
6381
|
plus_minus: 'plusMinus',
|
|
6381
|
-
free_kicks: 'freeKicks',
|
|
6382
6382
|
yellow_cards: 'yellowCards',
|
|
6383
6383
|
red_cards: 'redCards',
|
|
6384
6384
|
fouls: 'fouls',
|
|
6385
|
+
personal_fouls: 'personalFouls',
|
|
6386
|
+
total_fouls: 'totalFouls',
|
|
6385
6387
|
losses: 'losses',
|
|
6386
6388
|
steals: 'steals',
|
|
6387
6389
|
drawn_fouls: 'drawnFouls',
|
|
6390
|
+
pp_free_kick_goals: 'ppFreeKickGoals',
|
|
6391
|
+
pp_free_kick_on_goals: 'ppFreeKickOnGoals',
|
|
6392
|
+
pp_free_kick_misses: 'ppFreeKickMisses',
|
|
6393
|
+
sh_free_kick_goals: 'shFreeKickGoals',
|
|
6394
|
+
sh_free_kick_on_goals: 'shFreeKickOnGoals',
|
|
6395
|
+
sh_free_kick_misses: 'shFreeKickMisses',
|
|
6396
|
+
ev_free_kick_goals: 'evFreeKickGoals',
|
|
6397
|
+
ev_free_kick_on_goals: 'evFreeKickOnGoals',
|
|
6398
|
+
ev_free_kick_misses: 'evFreeKickMisses',
|
|
6399
|
+
free_kick_passes: 'freeKickPasses',
|
|
6400
|
+
free_kick_selfs: 'freeKickSelfs',
|
|
6401
|
+
pp_corner_goals: 'ppCornerGoals',
|
|
6402
|
+
pp_corner_on_goals: 'ppCornerOnGoals',
|
|
6403
|
+
pp_corner_misses: 'ppCornerMisses',
|
|
6404
|
+
sh_corner_goals: 'shCornerGoals',
|
|
6405
|
+
sh_corner_on_goals: 'shCornerOnGoals',
|
|
6406
|
+
sh_corner_misses: 'shCornerMisses',
|
|
6407
|
+
ev_corner_goals: 'evCornerGoals',
|
|
6408
|
+
ev_corner_on_goals: 'evCornerOnGoals',
|
|
6409
|
+
ev_corner_misses: 'evCornerMisses',
|
|
6410
|
+
corner_passes: 'cornerPasses',
|
|
6411
|
+
corner_selfs: 'cornerSelfs',
|
|
6412
|
+
total_corners: 'totalCorners',
|
|
6413
|
+
total_free_kicks: 'totalFreeKicks',
|
|
6388
6414
|
newbie: 'newbie',
|
|
6389
6415
|
rank: 'rank',
|
|
6390
6416
|
},
|
|
@@ -10326,7 +10352,7 @@
|
|
|
10326
10352
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_goal"] = 8] = "shootout_goal";
|
|
10327
10353
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["assist"] = 9] = "assist";
|
|
10328
10354
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["block_shot"] = 10] = "block_shot";
|
|
10329
|
-
WaterpoloGameLogTypes[WaterpoloGameLogTypes["
|
|
10355
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_on_goal"] = 11] = "free_kick_on_goal";
|
|
10330
10356
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["minor_penalty"] = 12] = "minor_penalty";
|
|
10331
10357
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["major_penalty"] = 13] = "major_penalty";
|
|
10332
10358
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["match_penalty"] = 14] = "match_penalty";
|
|
@@ -10346,6 +10372,16 @@
|
|
|
10346
10372
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_save"] = 28] = "shootout_save";
|
|
10347
10373
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["loss"] = 29] = "loss";
|
|
10348
10374
|
WaterpoloGameLogTypes[WaterpoloGameLogTypes["steal"] = 30] = "steal";
|
|
10375
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_miss"] = 31] = "free_kick_miss";
|
|
10376
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_goal"] = 32] = "free_kick_goal";
|
|
10377
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_pass"] = 33] = "free_kick_pass";
|
|
10378
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick_self"] = 34] = "free_kick_self";
|
|
10379
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_on_goal"] = 35] = "corner_on_goal";
|
|
10380
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_miss"] = 36] = "corner_miss";
|
|
10381
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_goal"] = 37] = "corner_goal";
|
|
10382
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_pass"] = 38] = "corner_pass";
|
|
10383
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["corner_self"] = 39] = "corner_self";
|
|
10384
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["personal_foul"] = 40] = "personal_foul";
|
|
10349
10385
|
})(exports.WaterpoloGameLogTypes || (exports.WaterpoloGameLogTypes = {}));
|
|
10350
10386
|
exports.WaterpoloAdvantageTypes = void 0;
|
|
10351
10387
|
(function (WaterpoloAdvantageTypes) {
|
|
@@ -10392,11 +10428,12 @@
|
|
|
10392
10428
|
configurable: true
|
|
10393
10429
|
});
|
|
10394
10430
|
WaterpoloGameLog.prototype.isScoreType = function () {
|
|
10395
|
-
return [exports.WaterpoloGameLogTypes.goal, exports.WaterpoloGameLogTypes.shootout_goal, exports.WaterpoloGameLogTypes.after_game_shootout_goal
|
|
10431
|
+
return [exports.WaterpoloGameLogTypes.goal, exports.WaterpoloGameLogTypes.shootout_goal, exports.WaterpoloGameLogTypes.after_game_shootout_goal,
|
|
10432
|
+
exports.WaterpoloGameLogTypes.free_kick_goal, exports.WaterpoloGameLogTypes.corner_goal].indexOf(this.logType) > -1;
|
|
10396
10433
|
};
|
|
10397
10434
|
WaterpoloGameLog.prototype.isPenaltyType = function () {
|
|
10398
10435
|
return [
|
|
10399
|
-
exports.WaterpoloGameLogTypes.minor_penalty, exports.WaterpoloGameLogTypes.major_penalty, exports.WaterpoloGameLogTypes.match_penalty
|
|
10436
|
+
exports.WaterpoloGameLogTypes.minor_penalty, exports.WaterpoloGameLogTypes.major_penalty, exports.WaterpoloGameLogTypes.match_penalty, exports.WaterpoloGameLogTypes.personal_foul
|
|
10400
10437
|
].indexOf(this.logType) > -1;
|
|
10401
10438
|
};
|
|
10402
10439
|
WaterpoloGameLog.prototype.isAfter = function (log) {
|
|
@@ -10461,7 +10498,9 @@
|
|
|
10461
10498
|
});
|
|
10462
10499
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoal", {
|
|
10463
10500
|
get: function () {
|
|
10464
|
-
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0)
|
|
10501
|
+
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0) +
|
|
10502
|
+
(this.evCornerOnGoals || 0) + (this.ppCornerOnGoals || 0) + (this.shCornerOnGoals || 0) +
|
|
10503
|
+
(this.evFreeKickOnGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.shFreeKickOnGoals || 0);
|
|
10465
10504
|
},
|
|
10466
10505
|
enumerable: false,
|
|
10467
10506
|
configurable: true
|
|
@@ -10475,28 +10514,37 @@
|
|
|
10475
10514
|
});
|
|
10476
10515
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotMisses", {
|
|
10477
10516
|
get: function () {
|
|
10478
|
-
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0)
|
|
10517
|
+
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0) +
|
|
10518
|
+
(this.evCornerMisses || 0) + (this.ppCornerMisses || 0) + (this.shCornerMisses || 0) +
|
|
10519
|
+
(this.evFreeKickMisses || 0) + (this.ppFreeKickMisses || 0) + (this.shFreeKickMisses || 0);
|
|
10479
10520
|
},
|
|
10480
10521
|
enumerable: false,
|
|
10481
10522
|
configurable: true
|
|
10482
10523
|
});
|
|
10483
10524
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "ppShots", {
|
|
10484
10525
|
get: function () {
|
|
10485
|
-
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0)
|
|
10526
|
+
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
|
|
10527
|
+
(this.ppCornerMisses || 0) + (this.ppCornerOnGoals || 0) +
|
|
10528
|
+
(this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0);
|
|
10486
10529
|
},
|
|
10487
10530
|
enumerable: false,
|
|
10488
10531
|
configurable: true
|
|
10489
10532
|
});
|
|
10490
10533
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "evShots", {
|
|
10491
10534
|
get: function () {
|
|
10492
|
-
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0)
|
|
10535
|
+
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0) +
|
|
10536
|
+
(this.evCornerMisses || 0) + (this.evCornerOnGoals || 0) +
|
|
10537
|
+
(this.evFreeKickMisses || 0) + (this.evFreeKickOnGoals || 0);
|
|
10493
10538
|
},
|
|
10494
10539
|
enumerable: false,
|
|
10495
10540
|
configurable: true
|
|
10496
10541
|
});
|
|
10497
10542
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "shShots", {
|
|
10498
10543
|
get: function () {
|
|
10499
|
-
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0)
|
|
10544
|
+
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
|
|
10545
|
+
(this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) +
|
|
10546
|
+
(this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0);
|
|
10547
|
+
;
|
|
10500
10548
|
},
|
|
10501
10549
|
enumerable: false,
|
|
10502
10550
|
configurable: true
|
|
@@ -10517,7 +10565,9 @@
|
|
|
10517
10565
|
});
|
|
10518
10566
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "goals", {
|
|
10519
10567
|
get: function () {
|
|
10520
|
-
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0)
|
|
10568
|
+
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0) +
|
|
10569
|
+
(this.ppFreeKickGoals || 0) + (this.shFreeKickGoals || 0) + (this.evFreeKickGoals || 0) +
|
|
10570
|
+
(this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
|
|
10521
10571
|
},
|
|
10522
10572
|
enumerable: false,
|
|
10523
10573
|
configurable: true
|
|
@@ -10605,6 +10655,13 @@
|
|
|
10605
10655
|
enumerable: false,
|
|
10606
10656
|
configurable: true
|
|
10607
10657
|
});
|
|
10658
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFouls", {
|
|
10659
|
+
get: function () {
|
|
10660
|
+
return (this.fouls || 0) + (this.personalFouls || 0);
|
|
10661
|
+
},
|
|
10662
|
+
enumerable: false,
|
|
10663
|
+
configurable: true
|
|
10664
|
+
});
|
|
10608
10665
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "gameMinutes", {
|
|
10609
10666
|
get: function () {
|
|
10610
10667
|
return Math.floor(this.gameTime / 60);
|
|
@@ -10639,6 +10696,26 @@
|
|
|
10639
10696
|
enumerable: false,
|
|
10640
10697
|
configurable: true
|
|
10641
10698
|
});
|
|
10699
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFreeKicks", {
|
|
10700
|
+
get: function () {
|
|
10701
|
+
return (this.freeKickPasses || 0) + (this.freeKickSelfs || 0) +
|
|
10702
|
+
(this.ppFreeKickGoals || 0) + (this.ppFreeKickOnGoals || 0) + (this.ppFreeKickMisses || 0) +
|
|
10703
|
+
(this.evFreeKickGoals || 0) + (this.evFreeKickOnGoals || 0) + (this.evFreeKickMisses || 0) +
|
|
10704
|
+
(this.shFreeKickGoals || 0) + (this.shFreeKickOnGoals || 0) + (this.shFreeKickMisses || 0);
|
|
10705
|
+
},
|
|
10706
|
+
enumerable: false,
|
|
10707
|
+
configurable: true
|
|
10708
|
+
});
|
|
10709
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalCorners", {
|
|
10710
|
+
get: function () {
|
|
10711
|
+
return (this.cornerPasses || 0) + (this.cornerSelfs || 0) +
|
|
10712
|
+
(this.ppCornerGoals || 0) + (this.ppCornerOnGoals || 0) + (this.ppCornerMisses || 0) +
|
|
10713
|
+
(this.evCornerGoals || 0) + (this.evCornerOnGoals || 0) + (this.evCornerMisses || 0) +
|
|
10714
|
+
(this.shCornerGoals || 0) + (this.shCornerOnGoals || 0) + (this.shCornerMisses || 0);
|
|
10715
|
+
},
|
|
10716
|
+
enumerable: false,
|
|
10717
|
+
configurable: true
|
|
10718
|
+
});
|
|
10642
10719
|
WaterpoloGameStatistic.toFront = function (data) { };
|
|
10643
10720
|
WaterpoloGameStatistic.toBack = function (data) { };
|
|
10644
10721
|
return WaterpoloGameStatistic;
|
|
@@ -10687,13 +10764,35 @@
|
|
|
10687
10764
|
penalty_minutes: 'penaltyMinutes',
|
|
10688
10765
|
game_time: 'gameTime',
|
|
10689
10766
|
plus_minus: 'plusMinus',
|
|
10690
|
-
free_kicks: 'freeKicks',
|
|
10691
10767
|
yellow_cards: 'yellowCards',
|
|
10692
10768
|
red_cards: 'redCards',
|
|
10693
10769
|
fouls: 'fouls',
|
|
10770
|
+
personal_fouls: 'personalFouls',
|
|
10694
10771
|
losses: 'losses',
|
|
10695
10772
|
steals: 'steals',
|
|
10696
10773
|
drawn_fouls: 'drawnFouls',
|
|
10774
|
+
pp_free_kick_goals: 'ppFreeKickGoals',
|
|
10775
|
+
pp_free_kick_on_goals: 'ppFreeKickOnGoals',
|
|
10776
|
+
pp_free_kick_misses: 'ppFreeKickMisses',
|
|
10777
|
+
sh_free_kick_goals: 'shFreeKickGoals',
|
|
10778
|
+
sh_free_kick_on_goals: 'shFreeKickOnGoals',
|
|
10779
|
+
sh_free_kick_misses: 'shFreeKickMisses',
|
|
10780
|
+
ev_free_kick_goals: 'evFreeKickGoals',
|
|
10781
|
+
ev_free_kick_on_goals: 'evFreeKickOnGoals',
|
|
10782
|
+
ev_free_kick_misses: 'evFreeKickMisses',
|
|
10783
|
+
free_kick_passes: 'freeKickPasses',
|
|
10784
|
+
free_kick_selfs: 'freeKickSelfs',
|
|
10785
|
+
pp_corner_goals: 'ppCornerGoals',
|
|
10786
|
+
pp_corner_on_goals: 'ppCornerOnGoals',
|
|
10787
|
+
pp_corner_misses: 'ppCornerMisses',
|
|
10788
|
+
sh_corner_goals: 'shCornerGoals',
|
|
10789
|
+
sh_corner_on_goals: 'shCornerOnGoals',
|
|
10790
|
+
sh_corner_misses: 'shCornerMisses',
|
|
10791
|
+
ev_corner_goals: 'evCornerGoals',
|
|
10792
|
+
ev_corner_on_goals: 'evCornerOnGoals',
|
|
10793
|
+
ev_corner_misses: 'evCornerMisses',
|
|
10794
|
+
corner_passes: 'cornerPasses',
|
|
10795
|
+
corner_selfs: 'cornerSelfs'
|
|
10697
10796
|
},
|
|
10698
10797
|
relation: {
|
|
10699
10798
|
updatedAt: DateTimeField,
|
|
@@ -11008,10 +11107,11 @@
|
|
|
11008
11107
|
_a$9[exports.WaterpoloGameLogTypes.after_game_shootout_goal] = 'Пенальти гол',
|
|
11009
11108
|
_a$9[exports.WaterpoloGameLogTypes.assist] = 'Передача',
|
|
11010
11109
|
_a$9[exports.WaterpoloGameLogTypes.block_shot] = 'Блокировка броска',
|
|
11011
|
-
_a$9[exports.WaterpoloGameLogTypes.minor_penalty] = '
|
|
11012
|
-
_a$9[exports.WaterpoloGameLogTypes.major_penalty] = '
|
|
11013
|
-
_a$9[exports.WaterpoloGameLogTypes.match_penalty] = '
|
|
11110
|
+
_a$9[exports.WaterpoloGameLogTypes.minor_penalty] = 'Удаление на 20 сек.',
|
|
11111
|
+
_a$9[exports.WaterpoloGameLogTypes.major_penalty] = 'Удаление + 4 мин. штраф',
|
|
11112
|
+
_a$9[exports.WaterpoloGameLogTypes.match_penalty] = 'Удаление до конца матча',
|
|
11014
11113
|
_a$9[exports.WaterpoloGameLogTypes.foul] = 'Фол',
|
|
11114
|
+
_a$9[exports.WaterpoloGameLogTypes.personal_foul] = 'Персональный фол',
|
|
11015
11115
|
_a$9[exports.WaterpoloGameLogTypes.penalty_shot] = 'Штрафной бросок',
|
|
11016
11116
|
_a$9[exports.WaterpoloGameLogTypes.face_off_lose] = 'Проигрыш в спринте',
|
|
11017
11117
|
_a$9[exports.WaterpoloGameLogTypes.face_off_win] = 'Победа в спринте',
|
|
@@ -11023,9 +11123,18 @@
|
|
|
11023
11123
|
_a$9[exports.WaterpoloGameLogTypes.penalty_end] = 'Конец штрафного времени',
|
|
11024
11124
|
_a$9[exports.WaterpoloGameLogTypes.yellow_card] = 'Желтая карточка',
|
|
11025
11125
|
_a$9[exports.WaterpoloGameLogTypes.red_card] = 'Красная карточка',
|
|
11026
|
-
_a$9[exports.WaterpoloGameLogTypes.free_kick] = 'Свободный удар',
|
|
11027
11126
|
_a$9[exports.WaterpoloGameLogTypes.loss] = 'Потеря',
|
|
11028
11127
|
_a$9[exports.WaterpoloGameLogTypes.steal] = 'Перехват',
|
|
11128
|
+
_a$9[exports.WaterpoloGameLogTypes.free_kick_goal] = 'Свободный удар - гол',
|
|
11129
|
+
_a$9[exports.WaterpoloGameLogTypes.free_kick_on_goal] = 'Свободный удар в створ',
|
|
11130
|
+
_a$9[exports.WaterpoloGameLogTypes.free_kick_miss] = 'Свободный удар мимо',
|
|
11131
|
+
_a$9[exports.WaterpoloGameLogTypes.free_kick_pass] = 'Свободный удар пас',
|
|
11132
|
+
_a$9[exports.WaterpoloGameLogTypes.free_kick_self] = 'Свободный удар розыгрыш',
|
|
11133
|
+
_a$9[exports.WaterpoloGameLogTypes.corner_goal] = 'Угловой - гол',
|
|
11134
|
+
_a$9[exports.WaterpoloGameLogTypes.corner_on_goal] = 'Угловой в створ',
|
|
11135
|
+
_a$9[exports.WaterpoloGameLogTypes.corner_miss] = 'Угловой мимо',
|
|
11136
|
+
_a$9[exports.WaterpoloGameLogTypes.corner_pass] = 'Угловой пас',
|
|
11137
|
+
_a$9[exports.WaterpoloGameLogTypes.corner_self] = 'Угловой розыгрыш',
|
|
11029
11138
|
_a$9);
|
|
11030
11139
|
|
|
11031
11140
|
var _a$8;
|