@mtgame/core 0.2.105 → 0.2.107
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 +43 -2
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/localization/wrestball-game-log-types.js +6 -2
- package/esm2015/models/football-game-config.js +4 -2
- package/esm2015/models/handball-game-config.js +4 -2
- package/esm2015/models/hockey-game-config.js +4 -2
- package/esm2015/models/rugby-game-config.js +4 -2
- package/esm2015/models/waterpolo-game-config.js +4 -2
- package/esm2015/models/wrestball-game-log.js +11 -1
- package/esm2015/models/wrestball-game-statistic.js +13 -2
- package/esm2015/models/wrestball-statistic.js +7 -1
- package/fesm2015/mtgame-core.js +43 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/wrestball-game-log-types.d.ts +4 -0
- package/models/football-game-config.d.ts +2 -1
- package/models/handball-game-config.d.ts +2 -1
- package/models/hockey-game-config.d.ts +2 -1
- package/models/rugby-game-config.d.ts +2 -1
- package/models/waterpolo-game-config.d.ts +2 -1
- package/models/wrestball-game-log.d.ts +5 -1
- package/models/wrestball-game-statistic.d.ts +6 -0
- package/models/wrestball-statistic.d.ts +6 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -1564,11 +1564,13 @@ HockeyGameConfig = __decorate([
|
|
|
1564
1564
|
match_penalty_time: 'matchPenaltyTime',
|
|
1565
1565
|
playoff_series_overtime_type: 'playoffSeriesOvertimeType',
|
|
1566
1566
|
playoff_series_overtime_time: 'playoffSeriesOvertimeTime',
|
|
1567
|
+
timer_type: 'timerType',
|
|
1567
1568
|
},
|
|
1568
1569
|
relation: {
|
|
1569
1570
|
overtimeType: enumField(OvertimeTypes),
|
|
1570
1571
|
gameTimeType: enumField(GameTimeTypes),
|
|
1571
1572
|
playoffSeriesOvertimeType: enumField(OvertimeTypes),
|
|
1573
|
+
timerType: enumField(TimerTypes),
|
|
1572
1574
|
}
|
|
1573
1575
|
})
|
|
1574
1576
|
], HockeyGameConfig);
|
|
@@ -1605,10 +1607,12 @@ FootballGameConfig = __decorate([
|
|
|
1605
1607
|
substitute_count: 'substituteCount',
|
|
1606
1608
|
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
1607
1609
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
1610
|
+
timer_type: 'timerType',
|
|
1608
1611
|
},
|
|
1609
1612
|
relation: {
|
|
1610
1613
|
overtimeType: enumField(OvertimeTypes),
|
|
1611
1614
|
gameTimeType: enumField(GameTimeTypes),
|
|
1615
|
+
timerType: enumField(TimerTypes),
|
|
1612
1616
|
}
|
|
1613
1617
|
})
|
|
1614
1618
|
], FootballGameConfig);
|
|
@@ -1636,10 +1640,12 @@ HandballGameConfig = __decorate([
|
|
|
1636
1640
|
timeout_time: 'timeoutTime',
|
|
1637
1641
|
game_time_type: 'gameTimeType',
|
|
1638
1642
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
1643
|
+
timer_type: 'timerType',
|
|
1639
1644
|
},
|
|
1640
1645
|
relation: {
|
|
1641
1646
|
overtimeType: enumField(OvertimeTypes),
|
|
1642
1647
|
gameTimeType: enumField(GameTimeTypes),
|
|
1648
|
+
timerType: enumField(TimerTypes),
|
|
1643
1649
|
}
|
|
1644
1650
|
})
|
|
1645
1651
|
], HandballGameConfig);
|
|
@@ -1801,11 +1807,13 @@ RugbyGameConfig = __decorate([
|
|
|
1801
1807
|
substitute_count: 'substituteCount',
|
|
1802
1808
|
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
1803
1809
|
statistic_type: 'statisticType',
|
|
1810
|
+
timer_type: 'timerType',
|
|
1804
1811
|
},
|
|
1805
1812
|
relation: {
|
|
1806
1813
|
overtimeType: enumField(OvertimeTypes),
|
|
1807
1814
|
gameTimeType: enumField(GameTimeTypes),
|
|
1808
1815
|
statisticType: enumField(RugbyStatisticTypes),
|
|
1816
|
+
timerType: enumField(TimerTypes),
|
|
1809
1817
|
}
|
|
1810
1818
|
})
|
|
1811
1819
|
], RugbyGameConfig);
|
|
@@ -1844,11 +1852,13 @@ WaterpoloGameConfig = __decorate([
|
|
|
1844
1852
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
1845
1853
|
shot_clock_enabled: 'shotClockEnabled',
|
|
1846
1854
|
statistic_type: 'statisticType',
|
|
1855
|
+
timer_type: 'timerType',
|
|
1847
1856
|
},
|
|
1848
1857
|
relation: {
|
|
1849
1858
|
overtimeType: enumField(OvertimeTypes),
|
|
1850
1859
|
gameTimeType: enumField(GameTimeTypes),
|
|
1851
1860
|
statisticType: enumField(WaterpoloStatisticTypes),
|
|
1861
|
+
timerType: enumField(TimerTypes),
|
|
1852
1862
|
}
|
|
1853
1863
|
})
|
|
1854
1864
|
], WaterpoloGameConfig);
|
|
@@ -5973,11 +5983,17 @@ WrestballStatistic = __decorate([
|
|
|
5973
5983
|
two_points_made: 'twoPointsMade',
|
|
5974
5984
|
three_points_made: 'threePointsMade',
|
|
5975
5985
|
free_throws_made: 'freeThrowsMade',
|
|
5986
|
+
two_points_free_throw_made: 'twoPointsFreeThrowMade',
|
|
5987
|
+
three_points_free_throw_made: 'threePointsFreeThrowMade',
|
|
5988
|
+
total_free_throw_made: 'totalFreeThrowMade',
|
|
5976
5989
|
one_points_made: 'onePointsMade',
|
|
5977
5990
|
dunks_made: 'dunksMade',
|
|
5978
5991
|
two_point_attempts: 'twoPointAttempts',
|
|
5979
5992
|
three_point_attempts: 'threePointAttempts',
|
|
5980
5993
|
free_throw_attempts: 'freeThrowAttempts',
|
|
5994
|
+
two_point_free_throw_attempts: 'twoPointFreeThrowAttempts',
|
|
5995
|
+
three_point_free_throw_attempts: 'threePointFreeThrowAttempts',
|
|
5996
|
+
total_free_throw_attempts: 'totalFreeThrowAttempts',
|
|
5981
5997
|
one_point_attempts: 'onePointAttempts',
|
|
5982
5998
|
dunk_attempts: 'dunkAttempts',
|
|
5983
5999
|
two_point_percent: 'twoPointPercent',
|
|
@@ -10467,7 +10483,12 @@ let WrestballGameStatistic = class WrestballGameStatistic extends BaseModel {
|
|
|
10467
10483
|
static toFront(data) { }
|
|
10468
10484
|
static toBack(data) { }
|
|
10469
10485
|
get totalFouls() {
|
|
10470
|
-
return (this.personalFouls || 0)
|
|
10486
|
+
return (this.personalFouls || 0)
|
|
10487
|
+
+ (this.technicalFouls || 0)
|
|
10488
|
+
+ (this.unsportsmanlikeFouls || 0)
|
|
10489
|
+
+ (this.disqualificationFouls || 0)
|
|
10490
|
+
+ (this.yellowCards || 0)
|
|
10491
|
+
+ (this.redCards || 0);
|
|
10471
10492
|
}
|
|
10472
10493
|
set onePointPercent(v) { }
|
|
10473
10494
|
get onePointPercent() {
|
|
@@ -10550,6 +10571,9 @@ WrestballGameStatistic = __decorate([
|
|
|
10550
10571
|
game_user_id: 'gameUserId',
|
|
10551
10572
|
points: 'points',
|
|
10552
10573
|
free_throws_made: 'freeThrowsMade',
|
|
10574
|
+
two_points_free_throw_made: 'twoPointsFreeThrowMade',
|
|
10575
|
+
three_points_free_throw_made: 'threePointsFreeThrowMade',
|
|
10576
|
+
total_free_throw_made: 'totalFreeThrowMade',
|
|
10553
10577
|
two_points_made: 'twoPointsMade',
|
|
10554
10578
|
three_points_made: 'threePointsMade',
|
|
10555
10579
|
one_points_made: 'onePointsMade',
|
|
@@ -10557,6 +10581,9 @@ WrestballGameStatistic = __decorate([
|
|
|
10557
10581
|
two_point_attempts: 'twoPointAttempts',
|
|
10558
10582
|
three_point_attempts: 'threePointAttempts',
|
|
10559
10583
|
free_throw_attempts: 'freeThrowAttempts',
|
|
10584
|
+
two_point_free_throw_attempts: 'twoPointFreeThrowAttempts',
|
|
10585
|
+
three_point_free_throw_attempts: 'threePointFreeThrowAttempts',
|
|
10586
|
+
total_free_throw_attempts: 'totalFreeThrowAttempts',
|
|
10560
10587
|
one_point_attempts: 'onePointAttempts',
|
|
10561
10588
|
dunk_attempts: 'dunkAttempts',
|
|
10562
10589
|
one_point_percent: 'onePointPercent',
|
|
@@ -10640,6 +10667,10 @@ var WrestballGameLogTypes;
|
|
|
10640
10667
|
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_tie"] = 35] = "scrum_ball_advantage_tie";
|
|
10641
10668
|
WrestballGameLogTypes[WrestballGameLogTypes["dunk_made"] = 36] = "dunk_made";
|
|
10642
10669
|
WrestballGameLogTypes[WrestballGameLogTypes["dunk_attempt"] = 37] = "dunk_attempt";
|
|
10670
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_free_throw_made"] = 38] = "two_point_free_throw_made";
|
|
10671
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_free_throw_attempt"] = 39] = "two_point_free_throw_attempt";
|
|
10672
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_free_throw_made"] = 40] = "three_point_free_throw_made";
|
|
10673
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_free_throw_attempt"] = 41] = "three_point_free_throw_attempt";
|
|
10643
10674
|
})(WrestballGameLogTypes || (WrestballGameLogTypes = {}));
|
|
10644
10675
|
let WrestballGameLog = class WrestballGameLog extends BaseModel {
|
|
10645
10676
|
constructor() {
|
|
@@ -10651,6 +10682,8 @@ let WrestballGameLog = class WrestballGameLog extends BaseModel {
|
|
|
10651
10682
|
WrestballGameLogTypes.two_point_made,
|
|
10652
10683
|
WrestballGameLogTypes.three_point_made,
|
|
10653
10684
|
WrestballGameLogTypes.free_throw_made,
|
|
10685
|
+
WrestballGameLogTypes.two_point_free_throw_made,
|
|
10686
|
+
WrestballGameLogTypes.three_point_free_throw_made,
|
|
10654
10687
|
WrestballGameLogTypes.one_point_made,
|
|
10655
10688
|
WrestballGameLogTypes.scrum_won,
|
|
10656
10689
|
WrestballGameLogTypes.wrestler_scrum_won,
|
|
@@ -10669,6 +10702,8 @@ let WrestballGameLog = class WrestballGameLog extends BaseModel {
|
|
|
10669
10702
|
isFoulType() {
|
|
10670
10703
|
return [
|
|
10671
10704
|
WrestballGameLogTypes.personal_foul,
|
|
10705
|
+
WrestballGameLogTypes.yellow_card,
|
|
10706
|
+
WrestballGameLogTypes.red_card,
|
|
10672
10707
|
].indexOf(this.logType) > -1;
|
|
10673
10708
|
}
|
|
10674
10709
|
isScrumType() {
|
|
@@ -10695,6 +10730,8 @@ let WrestballGameLog = class WrestballGameLog extends BaseModel {
|
|
|
10695
10730
|
const scoreMapping = {
|
|
10696
10731
|
[WrestballGameLogTypes.one_point_made]: 1,
|
|
10697
10732
|
[WrestballGameLogTypes.free_throw_made]: 1,
|
|
10733
|
+
[WrestballGameLogTypes.two_point_free_throw_made]: 2,
|
|
10734
|
+
[WrestballGameLogTypes.three_point_free_throw_made]: 3,
|
|
10698
10735
|
[WrestballGameLogTypes.two_point_made]: 2,
|
|
10699
10736
|
[WrestballGameLogTypes.three_point_made]: 3,
|
|
10700
10737
|
[WrestballGameLogTypes.scrum_won]: 2,
|
|
@@ -11312,11 +11349,15 @@ const WrestballGameLogTypeLocalization = {
|
|
|
11312
11349
|
[WrestballGameLogTypes.remove_game]: 'Удаление с площадки',
|
|
11313
11350
|
[WrestballGameLogTypes.two_point_attempt]: 'Бросок 2 очка',
|
|
11314
11351
|
[WrestballGameLogTypes.three_point_attempt]: 'Бросок 3 очка',
|
|
11315
|
-
[WrestballGameLogTypes.free_throw_attempt]: 'Штрафной бросок',
|
|
11352
|
+
[WrestballGameLogTypes.free_throw_attempt]: 'Штрафной бросок 1 очко',
|
|
11353
|
+
[WrestballGameLogTypes.two_point_free_throw_attempt]: 'Штрафной бросок 2 очка',
|
|
11354
|
+
[WrestballGameLogTypes.three_point_free_throw_attempt]: 'Штрафной бросок 3 очка',
|
|
11316
11355
|
[WrestballGameLogTypes.one_point_attempt]: 'Бросок 1 очко',
|
|
11317
11356
|
[WrestballGameLogTypes.two_point_made]: '2 очка',
|
|
11318
11357
|
[WrestballGameLogTypes.three_point_made]: '3 очка',
|
|
11319
11358
|
[WrestballGameLogTypes.free_throw_made]: '1 очко, штрафной',
|
|
11359
|
+
[WrestballGameLogTypes.two_point_free_throw_made]: '2 очка, штрафной',
|
|
11360
|
+
[WrestballGameLogTypes.three_point_free_throw_made]: '3 очка, штрафной',
|
|
11320
11361
|
[WrestballGameLogTypes.one_point_made]: '1 очко',
|
|
11321
11362
|
[WrestballGameLogTypes.dunk_made]: '2 очка, данк',
|
|
11322
11363
|
[WrestballGameLogTypes.dunk_attempt]: 'Попытка данка',
|