@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
|
@@ -2158,11 +2158,13 @@
|
|
|
2158
2158
|
match_penalty_time: 'matchPenaltyTime',
|
|
2159
2159
|
playoff_series_overtime_type: 'playoffSeriesOvertimeType',
|
|
2160
2160
|
playoff_series_overtime_time: 'playoffSeriesOvertimeTime',
|
|
2161
|
+
timer_type: 'timerType',
|
|
2161
2162
|
},
|
|
2162
2163
|
relation: {
|
|
2163
2164
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
2164
2165
|
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2165
2166
|
playoffSeriesOvertimeType: enumField(exports.OvertimeTypes),
|
|
2167
|
+
timerType: enumField(exports.TimerTypes),
|
|
2166
2168
|
}
|
|
2167
2169
|
})
|
|
2168
2170
|
], exports.HockeyGameConfig);
|
|
@@ -2208,10 +2210,12 @@
|
|
|
2208
2210
|
substitute_count: 'substituteCount',
|
|
2209
2211
|
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
2210
2212
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
2213
|
+
timer_type: 'timerType',
|
|
2211
2214
|
},
|
|
2212
2215
|
relation: {
|
|
2213
2216
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
2214
2217
|
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2218
|
+
timerType: enumField(exports.TimerTypes),
|
|
2215
2219
|
}
|
|
2216
2220
|
})
|
|
2217
2221
|
], exports.FootballGameConfig);
|
|
@@ -2244,10 +2248,12 @@
|
|
|
2244
2248
|
timeout_time: 'timeoutTime',
|
|
2245
2249
|
game_time_type: 'gameTimeType',
|
|
2246
2250
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
2251
|
+
timer_type: 'timerType',
|
|
2247
2252
|
},
|
|
2248
2253
|
relation: {
|
|
2249
2254
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
2250
2255
|
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2256
|
+
timerType: enumField(exports.TimerTypes),
|
|
2251
2257
|
}
|
|
2252
2258
|
})
|
|
2253
2259
|
], exports.HandballGameConfig);
|
|
@@ -2436,11 +2442,13 @@
|
|
|
2436
2442
|
substitute_count: 'substituteCount',
|
|
2437
2443
|
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
2438
2444
|
statistic_type: 'statisticType',
|
|
2445
|
+
timer_type: 'timerType',
|
|
2439
2446
|
},
|
|
2440
2447
|
relation: {
|
|
2441
2448
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
2442
2449
|
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2443
2450
|
statisticType: enumField(exports.RugbyStatisticTypes),
|
|
2451
|
+
timerType: enumField(exports.TimerTypes),
|
|
2444
2452
|
}
|
|
2445
2453
|
})
|
|
2446
2454
|
], exports.RugbyGameConfig);
|
|
@@ -2496,11 +2504,13 @@
|
|
|
2496
2504
|
substitute_manage_enabled: 'substituteManageEnabled',
|
|
2497
2505
|
shot_clock_enabled: 'shotClockEnabled',
|
|
2498
2506
|
statistic_type: 'statisticType',
|
|
2507
|
+
timer_type: 'timerType',
|
|
2499
2508
|
},
|
|
2500
2509
|
relation: {
|
|
2501
2510
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
2502
2511
|
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2503
2512
|
statisticType: enumField(exports.WaterpoloStatisticTypes),
|
|
2513
|
+
timerType: enumField(exports.TimerTypes),
|
|
2504
2514
|
}
|
|
2505
2515
|
})
|
|
2506
2516
|
], exports.WaterpoloGameConfig);
|
|
@@ -7633,11 +7643,17 @@
|
|
|
7633
7643
|
two_points_made: 'twoPointsMade',
|
|
7634
7644
|
three_points_made: 'threePointsMade',
|
|
7635
7645
|
free_throws_made: 'freeThrowsMade',
|
|
7646
|
+
two_points_free_throw_made: 'twoPointsFreeThrowMade',
|
|
7647
|
+
three_points_free_throw_made: 'threePointsFreeThrowMade',
|
|
7648
|
+
total_free_throw_made: 'totalFreeThrowMade',
|
|
7636
7649
|
one_points_made: 'onePointsMade',
|
|
7637
7650
|
dunks_made: 'dunksMade',
|
|
7638
7651
|
two_point_attempts: 'twoPointAttempts',
|
|
7639
7652
|
three_point_attempts: 'threePointAttempts',
|
|
7640
7653
|
free_throw_attempts: 'freeThrowAttempts',
|
|
7654
|
+
two_point_free_throw_attempts: 'twoPointFreeThrowAttempts',
|
|
7655
|
+
three_point_free_throw_attempts: 'threePointFreeThrowAttempts',
|
|
7656
|
+
total_free_throw_attempts: 'totalFreeThrowAttempts',
|
|
7641
7657
|
one_point_attempts: 'onePointAttempts',
|
|
7642
7658
|
dunk_attempts: 'dunkAttempts',
|
|
7643
7659
|
two_point_percent: 'twoPointPercent',
|
|
@@ -13502,7 +13518,12 @@
|
|
|
13502
13518
|
WrestballGameStatistic.toBack = function (data) { };
|
|
13503
13519
|
Object.defineProperty(WrestballGameStatistic.prototype, "totalFouls", {
|
|
13504
13520
|
get: function () {
|
|
13505
|
-
return (this.personalFouls || 0)
|
|
13521
|
+
return (this.personalFouls || 0)
|
|
13522
|
+
+ (this.technicalFouls || 0)
|
|
13523
|
+
+ (this.unsportsmanlikeFouls || 0)
|
|
13524
|
+
+ (this.disqualificationFouls || 0)
|
|
13525
|
+
+ (this.yellowCards || 0)
|
|
13526
|
+
+ (this.redCards || 0);
|
|
13506
13527
|
},
|
|
13507
13528
|
enumerable: false,
|
|
13508
13529
|
configurable: true
|
|
@@ -13641,6 +13662,9 @@
|
|
|
13641
13662
|
game_user_id: 'gameUserId',
|
|
13642
13663
|
points: 'points',
|
|
13643
13664
|
free_throws_made: 'freeThrowsMade',
|
|
13665
|
+
two_points_free_throw_made: 'twoPointsFreeThrowMade',
|
|
13666
|
+
three_points_free_throw_made: 'threePointsFreeThrowMade',
|
|
13667
|
+
total_free_throw_made: 'totalFreeThrowMade',
|
|
13644
13668
|
two_points_made: 'twoPointsMade',
|
|
13645
13669
|
three_points_made: 'threePointsMade',
|
|
13646
13670
|
one_points_made: 'onePointsMade',
|
|
@@ -13648,6 +13672,9 @@
|
|
|
13648
13672
|
two_point_attempts: 'twoPointAttempts',
|
|
13649
13673
|
three_point_attempts: 'threePointAttempts',
|
|
13650
13674
|
free_throw_attempts: 'freeThrowAttempts',
|
|
13675
|
+
two_point_free_throw_attempts: 'twoPointFreeThrowAttempts',
|
|
13676
|
+
three_point_free_throw_attempts: 'threePointFreeThrowAttempts',
|
|
13677
|
+
total_free_throw_attempts: 'totalFreeThrowAttempts',
|
|
13651
13678
|
one_point_attempts: 'onePointAttempts',
|
|
13652
13679
|
dunk_attempts: 'dunkAttempts',
|
|
13653
13680
|
one_point_percent: 'onePointPercent',
|
|
@@ -13731,6 +13758,10 @@
|
|
|
13731
13758
|
WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_tie"] = 35] = "scrum_ball_advantage_tie";
|
|
13732
13759
|
WrestballGameLogTypes[WrestballGameLogTypes["dunk_made"] = 36] = "dunk_made";
|
|
13733
13760
|
WrestballGameLogTypes[WrestballGameLogTypes["dunk_attempt"] = 37] = "dunk_attempt";
|
|
13761
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_free_throw_made"] = 38] = "two_point_free_throw_made";
|
|
13762
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_free_throw_attempt"] = 39] = "two_point_free_throw_attempt";
|
|
13763
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_free_throw_made"] = 40] = "three_point_free_throw_made";
|
|
13764
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_free_throw_attempt"] = 41] = "three_point_free_throw_attempt";
|
|
13734
13765
|
})(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
|
|
13735
13766
|
exports.WrestballGameLog = /** @class */ (function (_super) {
|
|
13736
13767
|
__extends(WrestballGameLog, _super);
|
|
@@ -13744,6 +13775,8 @@
|
|
|
13744
13775
|
exports.WrestballGameLogTypes.two_point_made,
|
|
13745
13776
|
exports.WrestballGameLogTypes.three_point_made,
|
|
13746
13777
|
exports.WrestballGameLogTypes.free_throw_made,
|
|
13778
|
+
exports.WrestballGameLogTypes.two_point_free_throw_made,
|
|
13779
|
+
exports.WrestballGameLogTypes.three_point_free_throw_made,
|
|
13747
13780
|
exports.WrestballGameLogTypes.one_point_made,
|
|
13748
13781
|
exports.WrestballGameLogTypes.scrum_won,
|
|
13749
13782
|
exports.WrestballGameLogTypes.wrestler_scrum_won,
|
|
@@ -13762,6 +13795,8 @@
|
|
|
13762
13795
|
WrestballGameLog.prototype.isFoulType = function () {
|
|
13763
13796
|
return [
|
|
13764
13797
|
exports.WrestballGameLogTypes.personal_foul,
|
|
13798
|
+
exports.WrestballGameLogTypes.yellow_card,
|
|
13799
|
+
exports.WrestballGameLogTypes.red_card,
|
|
13765
13800
|
].indexOf(this.logType) > -1;
|
|
13766
13801
|
};
|
|
13767
13802
|
WrestballGameLog.prototype.isScrumType = function () {
|
|
@@ -13789,6 +13824,8 @@
|
|
|
13789
13824
|
var scoreMapping = (_a = {},
|
|
13790
13825
|
_a[exports.WrestballGameLogTypes.one_point_made] = 1,
|
|
13791
13826
|
_a[exports.WrestballGameLogTypes.free_throw_made] = 1,
|
|
13827
|
+
_a[exports.WrestballGameLogTypes.two_point_free_throw_made] = 2,
|
|
13828
|
+
_a[exports.WrestballGameLogTypes.three_point_free_throw_made] = 3,
|
|
13792
13829
|
_a[exports.WrestballGameLogTypes.two_point_made] = 2,
|
|
13793
13830
|
_a[exports.WrestballGameLogTypes.three_point_made] = 3,
|
|
13794
13831
|
_a[exports.WrestballGameLogTypes.scrum_won] = 2,
|
|
@@ -14441,11 +14478,15 @@
|
|
|
14441
14478
|
_a$2[exports.WrestballGameLogTypes.remove_game] = 'Удаление с площадки',
|
|
14442
14479
|
_a$2[exports.WrestballGameLogTypes.two_point_attempt] = 'Бросок 2 очка',
|
|
14443
14480
|
_a$2[exports.WrestballGameLogTypes.three_point_attempt] = 'Бросок 3 очка',
|
|
14444
|
-
_a$2[exports.WrestballGameLogTypes.free_throw_attempt] = 'Штрафной бросок',
|
|
14481
|
+
_a$2[exports.WrestballGameLogTypes.free_throw_attempt] = 'Штрафной бросок 1 очко',
|
|
14482
|
+
_a$2[exports.WrestballGameLogTypes.two_point_free_throw_attempt] = 'Штрафной бросок 2 очка',
|
|
14483
|
+
_a$2[exports.WrestballGameLogTypes.three_point_free_throw_attempt] = 'Штрафной бросок 3 очка',
|
|
14445
14484
|
_a$2[exports.WrestballGameLogTypes.one_point_attempt] = 'Бросок 1 очко',
|
|
14446
14485
|
_a$2[exports.WrestballGameLogTypes.two_point_made] = '2 очка',
|
|
14447
14486
|
_a$2[exports.WrestballGameLogTypes.three_point_made] = '3 очка',
|
|
14448
14487
|
_a$2[exports.WrestballGameLogTypes.free_throw_made] = '1 очко, штрафной',
|
|
14488
|
+
_a$2[exports.WrestballGameLogTypes.two_point_free_throw_made] = '2 очка, штрафной',
|
|
14489
|
+
_a$2[exports.WrestballGameLogTypes.three_point_free_throw_made] = '3 очка, штрафной',
|
|
14449
14490
|
_a$2[exports.WrestballGameLogTypes.one_point_made] = '1 очко',
|
|
14450
14491
|
_a$2[exports.WrestballGameLogTypes.dunk_made] = '2 очка, данк',
|
|
14451
14492
|
_a$2[exports.WrestballGameLogTypes.dunk_attempt] = 'Попытка данка',
|