@mtgame/core 0.2.81 → 0.2.82
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 +77 -5
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/wrestball-game-log-types.js +9 -5
- package/esm2015/models/wrestball-game-config.js +2 -1
- package/esm2015/models/wrestball-game-log.js +8 -1
- package/esm2015/models/wrestball-game-statistic.js +33 -2
- package/esm2015/models/wrestball-statistic.js +10 -1
- package/fesm2015/mtgame-core.js +57 -5
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/wrestball-game-log-types.d.ts +4 -0
- package/models/wrestball-game-config.d.ts +1 -0
- package/models/wrestball-game-log.d.ts +7 -1
- package/models/wrestball-game-statistic.d.ts +12 -0
- package/models/wrestball-statistic.d.ts +9 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2518,6 +2518,7 @@
|
|
|
2518
2518
|
timer_type: 'timerType',
|
|
2519
2519
|
wrestler_scrums_count: 'wrestlerScrumsCount',
|
|
2520
2520
|
wrestlers_count: 'wrestlersCount',
|
|
2521
|
+
wrestler_user_ids: 'wrestlerUserIds',
|
|
2521
2522
|
},
|
|
2522
2523
|
relation: {
|
|
2523
2524
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
@@ -7582,21 +7583,30 @@
|
|
|
7582
7583
|
turnovers: 'turnovers',
|
|
7583
7584
|
personal_fouls: 'personalFouls',
|
|
7584
7585
|
drawn_fouls: 'drawnFouls',
|
|
7586
|
+
drawn_wrestler_attempts: 'drawnWrestlerAttempts',
|
|
7585
7587
|
wrestler_scrums_won: 'wrestlerScrumsWon',
|
|
7586
7588
|
wrestler_scrums_lost: 'wrestlerScrumsLost',
|
|
7587
7589
|
wrestler_scrums_tie: 'wrestlerScrumsTie',
|
|
7588
7590
|
wrestler_scrum_points: 'wrestlerScrumPoints',
|
|
7591
|
+
wrestler_scrums_counterattack: 'wrestlerScrumsCounterattack',
|
|
7589
7592
|
scrums_won: 'scrumsWon',
|
|
7590
7593
|
scrums_lost: 'scrumsLost',
|
|
7591
7594
|
scrums_tie: 'scrumsTie',
|
|
7592
7595
|
scrum_points: 'scrumPoints',
|
|
7596
|
+
scrums_ball_advantage_won: 'scrumsBallAdvantageWon',
|
|
7597
|
+
scrums_ball_advantage_lost: 'scrumsBallAdvantageLost',
|
|
7598
|
+
scrums_ball_advantage_tie: 'scrumsBallAdvantageTie',
|
|
7599
|
+
scrums_ball_advantage_total: 'scrumsBallAdvantageTotal',
|
|
7600
|
+
scrums_ball_advantage_won_percent: 'scrumsBallAdvantageWonPercent',
|
|
7593
7601
|
yellow_cards: 'yellowCards',
|
|
7594
7602
|
red_cards: 'redCards',
|
|
7595
7603
|
wrestler_scrums: 'wrestlerScrums',
|
|
7596
7604
|
wrestler_scrums_won_percent: 'wrestlerScrumsWonPercent',
|
|
7597
7605
|
scrums: 'scrums',
|
|
7598
7606
|
scrums_won_percent: 'scrumsWonPercent',
|
|
7607
|
+
total_scrums: 'totalScrums',
|
|
7599
7608
|
game_time: 'gameTime',
|
|
7609
|
+
plus_minus: 'plusMinus',
|
|
7600
7610
|
newbie: 'newbie',
|
|
7601
7611
|
rank: 'rank',
|
|
7602
7612
|
},
|
|
@@ -13440,7 +13450,17 @@
|
|
|
13440
13450
|
});
|
|
13441
13451
|
Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrums", {
|
|
13442
13452
|
get: function () {
|
|
13443
|
-
return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0);
|
|
13453
|
+
return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0) + (this.wrestlerScrumsCounterattack || 0);
|
|
13454
|
+
},
|
|
13455
|
+
enumerable: false,
|
|
13456
|
+
configurable: true
|
|
13457
|
+
});
|
|
13458
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrumsWonPercent", {
|
|
13459
|
+
get: function () {
|
|
13460
|
+
if (!this.wrestlerScrumsWon || !this.wrestlerScrums) {
|
|
13461
|
+
return 0;
|
|
13462
|
+
}
|
|
13463
|
+
return Math.round(1000 * this.wrestlerScrumsWon / this.wrestlerScrums) / 10;
|
|
13444
13464
|
},
|
|
13445
13465
|
enumerable: false,
|
|
13446
13466
|
configurable: true
|
|
@@ -13452,6 +13472,40 @@
|
|
|
13452
13472
|
enumerable: false,
|
|
13453
13473
|
configurable: true
|
|
13454
13474
|
});
|
|
13475
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "scrumsWonPercent", {
|
|
13476
|
+
get: function () {
|
|
13477
|
+
if (!this.scrumsWon || !this.scrums) {
|
|
13478
|
+
return 0;
|
|
13479
|
+
}
|
|
13480
|
+
return Math.round(1000 * this.scrumsWon / this.scrums) / 10;
|
|
13481
|
+
},
|
|
13482
|
+
enumerable: false,
|
|
13483
|
+
configurable: true
|
|
13484
|
+
});
|
|
13485
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "scrumsBallAdvantageTotal", {
|
|
13486
|
+
get: function () {
|
|
13487
|
+
return (this.scrumsBallAdvantageWon || 0) + (this.scrumsBallAdvantageLost || 0) + (this.scrumsBallAdvantageTie || 0);
|
|
13488
|
+
},
|
|
13489
|
+
enumerable: false,
|
|
13490
|
+
configurable: true
|
|
13491
|
+
});
|
|
13492
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "scrumsBallAdvantageWonPercent", {
|
|
13493
|
+
get: function () {
|
|
13494
|
+
if (!this.scrumsBallAdvantageWon || !this.scrumsBallAdvantageTotal) {
|
|
13495
|
+
return 0;
|
|
13496
|
+
}
|
|
13497
|
+
return Math.round(1000 * this.scrumsBallAdvantageWon / this.scrumsBallAdvantageTotal) / 10;
|
|
13498
|
+
},
|
|
13499
|
+
enumerable: false,
|
|
13500
|
+
configurable: true
|
|
13501
|
+
});
|
|
13502
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "totalScrums", {
|
|
13503
|
+
get: function () {
|
|
13504
|
+
return (this.wrestlerScrums || 0) + (this.scrums || 0) + (this.scrumsBallAdvantageTotal || 0);
|
|
13505
|
+
},
|
|
13506
|
+
enumerable: false,
|
|
13507
|
+
configurable: true
|
|
13508
|
+
});
|
|
13455
13509
|
return WrestballGameStatistic;
|
|
13456
13510
|
}(BaseModel));
|
|
13457
13511
|
__decorate([
|
|
@@ -13486,16 +13540,23 @@
|
|
|
13486
13540
|
turnovers: 'turnovers',
|
|
13487
13541
|
personal_fouls: 'personalFouls',
|
|
13488
13542
|
drawn_fouls: 'drawnFouls',
|
|
13543
|
+
drawn_wrestler_attempts: 'drawnWrestlerAttempts',
|
|
13489
13544
|
wrestler_scrums_won: 'wrestlerScrumsWon',
|
|
13490
13545
|
wrestler_scrums_lost: 'wrestlerScrumsLost',
|
|
13491
13546
|
wrestler_scrums_tie: 'wrestlerScrumsTie',
|
|
13492
13547
|
wrestler_scrum_points: 'wrestlerScrumPoints',
|
|
13548
|
+
wrestler_scrums_counterattack: 'wrestlerScrumsCounterattack',
|
|
13493
13549
|
scrums_won: 'scrumsWon',
|
|
13494
13550
|
scrums_lost: 'scrumsLost',
|
|
13495
13551
|
scrums_tie: 'scrumsTie',
|
|
13496
13552
|
scrum_points: 'scrumPoints',
|
|
13553
|
+
scrums_ball_advantage_won: 'scrumsBallAdvantageWon',
|
|
13554
|
+
scrums_ball_advantage_lost: 'scrumsBallAdvantageLost',
|
|
13555
|
+
scrums_ball_advantage_tie: 'scrumsBallAdvantageTie',
|
|
13497
13556
|
yellow_cards: 'yellowCards',
|
|
13498
13557
|
red_cards: 'redCards',
|
|
13558
|
+
game_time: 'gameTime',
|
|
13559
|
+
plus_minus: 'plusMinus',
|
|
13499
13560
|
updated_at: 'updatedAt',
|
|
13500
13561
|
},
|
|
13501
13562
|
relation: {
|
|
@@ -13537,6 +13598,10 @@
|
|
|
13537
13598
|
WrestballGameLogTypes[WrestballGameLogTypes["scrum_tie"] = 29] = "scrum_tie";
|
|
13538
13599
|
WrestballGameLogTypes[WrestballGameLogTypes["yellow_card"] = 30] = "yellow_card";
|
|
13539
13600
|
WrestballGameLogTypes[WrestballGameLogTypes["red_card"] = 31] = "red_card";
|
|
13601
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_counterattack"] = 32] = "wrestler_scrum_counterattack";
|
|
13602
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_won"] = 33] = "scrum_ball_advantage_won";
|
|
13603
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_lost"] = 34] = "scrum_ball_advantage_lost";
|
|
13604
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_tie"] = 35] = "scrum_ball_advantage_tie";
|
|
13540
13605
|
})(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
|
|
13541
13606
|
exports.WrestballGameLog = /** @class */ (function (_super) {
|
|
13542
13607
|
__extends(WrestballGameLog, _super);
|
|
@@ -13553,6 +13618,7 @@
|
|
|
13553
13618
|
exports.WrestballGameLogTypes.one_point_made,
|
|
13554
13619
|
exports.WrestballGameLogTypes.scrum_won,
|
|
13555
13620
|
exports.WrestballGameLogTypes.wrestler_scrum_won,
|
|
13621
|
+
exports.WrestballGameLogTypes.wrestler_scrum_counterattack,
|
|
13556
13622
|
].indexOf(this.logType) > -1;
|
|
13557
13623
|
};
|
|
13558
13624
|
WrestballGameLog.prototype.isReboundType = function () {
|
|
@@ -13577,6 +13643,7 @@
|
|
|
13577
13643
|
_a[exports.WrestballGameLogTypes.three_point_made] = 3,
|
|
13578
13644
|
_a[exports.WrestballGameLogTypes.scrum_won] = 2,
|
|
13579
13645
|
_a[exports.WrestballGameLogTypes.wrestler_scrum_won] = 2,
|
|
13646
|
+
_a[exports.WrestballGameLogTypes.wrestler_scrum_counterattack] = 2,
|
|
13580
13647
|
_a);
|
|
13581
13648
|
return scoreMapping[this.logType] || 0;
|
|
13582
13649
|
};
|
|
@@ -13626,6 +13693,7 @@
|
|
|
13626
13693
|
active: 'active',
|
|
13627
13694
|
is_highlight: 'isHighlight',
|
|
13628
13695
|
foul_on_game_user_id: 'foulOnGameUserId',
|
|
13696
|
+
wrestler_attempt_on_game_user_id: 'wrestlerAttemptOnGameUserId',
|
|
13629
13697
|
is_coach: 'isCoach',
|
|
13630
13698
|
is_bench: 'isBench',
|
|
13631
13699
|
marked: 'marked',
|
|
@@ -14242,10 +14310,14 @@
|
|
|
14242
14310
|
_a$2[exports.WrestballGameLogTypes.scrum_won] = 'Схватка выиграна',
|
|
14243
14311
|
_a$2[exports.WrestballGameLogTypes.scrum_lost] = 'Схватка проиграна',
|
|
14244
14312
|
_a$2[exports.WrestballGameLogTypes.scrum_tie] = 'Схватка в ничью',
|
|
14245
|
-
_a$2[exports.WrestballGameLogTypes.wrestler_scrum] = '
|
|
14246
|
-
_a$2[exports.WrestballGameLogTypes.wrestler_scrum_won] = '
|
|
14247
|
-
_a$2[exports.WrestballGameLogTypes.wrestler_scrum_lost] = '
|
|
14248
|
-
_a$2[exports.WrestballGameLogTypes.wrestler_scrum_tie] = '
|
|
14313
|
+
_a$2[exports.WrestballGameLogTypes.wrestler_scrum] = 'Атака рестлера',
|
|
14314
|
+
_a$2[exports.WrestballGameLogTypes.wrestler_scrum_won] = 'Атака рестлера успешна',
|
|
14315
|
+
_a$2[exports.WrestballGameLogTypes.wrestler_scrum_lost] = 'Атака рестлера неудачна',
|
|
14316
|
+
_a$2[exports.WrestballGameLogTypes.wrestler_scrum_tie] = 'Атака рестлера в ничью',
|
|
14317
|
+
_a$2[exports.WrestballGameLogTypes.wrestler_scrum_counterattack] = 'Контратака на рестлере',
|
|
14318
|
+
_a$2[exports.WrestballGameLogTypes.scrum_ball_advantage_won] = 'Схватка за начало выиграна',
|
|
14319
|
+
_a$2[exports.WrestballGameLogTypes.scrum_ball_advantage_lost] = 'Схватка за начало проиграна',
|
|
14320
|
+
_a$2[exports.WrestballGameLogTypes.scrum_ball_advantage_tie] = 'Схватка за начало в ничью',
|
|
14249
14321
|
_a$2[exports.WrestballGameLogTypes.yellow_card] = 'Желтая карточка',
|
|
14250
14322
|
_a$2[exports.WrestballGameLogTypes.red_card] = 'Красная карточка',
|
|
14251
14323
|
_a$2);
|