@mtgame/core 0.0.11 → 0.0.13
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 +66 -16
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/localization/user-profile.js +7 -1
- package/esm2015/models/hockey-game-statistic.js +16 -15
- package/esm2015/models/hockey-statistic.js +21 -2
- package/esm5/localization/user-profile.js +8 -2
- package/esm5/models/hockey-game-statistic.js +36 -15
- package/esm5/models/hockey-statistic.js +25 -2
- package/fesm2015/mtgame-core.js +41 -16
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +66 -17
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/user-profile.d.ts +6 -0
- package/models/hockey-game-statistic.d.ts +5 -14
- package/models/hockey-statistic.d.ts +17 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2520,6 +2520,41 @@
|
|
|
2520
2520
|
enumerable: true,
|
|
2521
2521
|
configurable: true
|
|
2522
2522
|
});
|
|
2523
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
|
|
2524
|
+
get: function () {
|
|
2525
|
+
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
2526
|
+
},
|
|
2527
|
+
enumerable: true,
|
|
2528
|
+
configurable: true
|
|
2529
|
+
});
|
|
2530
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "evShots", {
|
|
2531
|
+
get: function () {
|
|
2532
|
+
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0);
|
|
2533
|
+
},
|
|
2534
|
+
enumerable: true,
|
|
2535
|
+
configurable: true
|
|
2536
|
+
});
|
|
2537
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shShots", {
|
|
2538
|
+
get: function () {
|
|
2539
|
+
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0);
|
|
2540
|
+
},
|
|
2541
|
+
enumerable: true,
|
|
2542
|
+
configurable: true
|
|
2543
|
+
});
|
|
2544
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
|
|
2545
|
+
get: function () {
|
|
2546
|
+
return this.ppShots + this.evShots + this.shShots;
|
|
2547
|
+
},
|
|
2548
|
+
enumerable: true,
|
|
2549
|
+
configurable: true
|
|
2550
|
+
});
|
|
2551
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "goals", {
|
|
2552
|
+
get: function () {
|
|
2553
|
+
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0);
|
|
2554
|
+
},
|
|
2555
|
+
enumerable: true,
|
|
2556
|
+
configurable: true
|
|
2557
|
+
});
|
|
2523
2558
|
Object.defineProperty(HockeyGameStatistic.prototype, "assists", {
|
|
2524
2559
|
get: function () {
|
|
2525
2560
|
return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
|
|
@@ -2555,32 +2590,18 @@
|
|
|
2555
2590
|
game_user_id: 'gameUserId',
|
|
2556
2591
|
updated_at: 'updatedAt',
|
|
2557
2592
|
points: 'points',
|
|
2558
|
-
pp_shots: 'ppShots',
|
|
2559
2593
|
pp_shot_misses: 'ppShotMisses',
|
|
2560
2594
|
pp_shots_on_goal: 'ppShotsOnGoal',
|
|
2561
2595
|
pp_shots_blocked: 'ppShotsBlocked',
|
|
2562
|
-
ev_shots: 'evShots',
|
|
2563
2596
|
ev_shot_misses: 'evShotMisses',
|
|
2564
2597
|
ev_shots_on_goal: 'evShotsOnGoal',
|
|
2565
2598
|
ev_shots_blocked: 'evShotsBlocked',
|
|
2566
|
-
sh_shots: 'shShots',
|
|
2567
2599
|
sh_shot_misses: 'shShotMisses',
|
|
2568
2600
|
sh_shots_on_goal: 'shShotsOnGoal',
|
|
2569
2601
|
sh_shots_blocked: 'shShotsBlocked',
|
|
2570
|
-
pp_goals_percent: 'ppGoalsPercent',
|
|
2571
2602
|
pp_goals: 'ppGoals',
|
|
2572
|
-
ev_goals_percent: 'evGoalsPercent',
|
|
2573
2603
|
ev_goals: 'evGoals',
|
|
2574
|
-
sh_goals_percent: 'shGoalsPercent',
|
|
2575
|
-
goals: 'goals',
|
|
2576
2604
|
sh_goals: 'shGoals',
|
|
2577
|
-
shot_misses: 'shotMisses',
|
|
2578
|
-
shots_on_goal: 'shotsOnGoal',
|
|
2579
|
-
shots_blocked: 'shotsBlocked',
|
|
2580
|
-
shots: 'shots',
|
|
2581
|
-
goals_percent: 'goalsPercent',
|
|
2582
|
-
shots_against: 'shotsAgainst',
|
|
2583
|
-
saves_percent: 'savesPercent',
|
|
2584
2605
|
pp_assists: 'ppAssists',
|
|
2585
2606
|
ev_assists: 'evAssists',
|
|
2586
2607
|
sh_assists: 'shAssists',
|
|
@@ -2609,6 +2630,13 @@
|
|
|
2609
2630
|
function HockeyStatistic() {
|
|
2610
2631
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2611
2632
|
}
|
|
2633
|
+
Object.defineProperty(HockeyStatistic.prototype, "assists", {
|
|
2634
|
+
get: function () {
|
|
2635
|
+
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
2636
|
+
},
|
|
2637
|
+
enumerable: true,
|
|
2638
|
+
configurable: true
|
|
2639
|
+
});
|
|
2612
2640
|
HockeyStatistic.toFront = function (data) { };
|
|
2613
2641
|
HockeyStatistic.toBack = function (data) { };
|
|
2614
2642
|
__decorate([
|
|
@@ -2630,18 +2658,32 @@
|
|
|
2630
2658
|
games_count: 'gamesCount',
|
|
2631
2659
|
won_games_count: 'wonGamesCount',
|
|
2632
2660
|
points: 'points',
|
|
2661
|
+
pp_shots: 'ppShots',
|
|
2633
2662
|
pp_shot_misses: 'ppShotMisses',
|
|
2634
2663
|
pp_shots_on_goal: 'ppShotsOnGoal',
|
|
2635
2664
|
pp_shots_blocked: 'ppShotsBlocked',
|
|
2665
|
+
ev_shots: 'evShots',
|
|
2636
2666
|
ev_shot_misses: 'evShotMisses',
|
|
2637
2667
|
ev_shots_on_goal: 'evShotsOnGoal',
|
|
2638
2668
|
ev_shots_blocked: 'evShotsBlocked',
|
|
2639
|
-
|
|
2669
|
+
sh_shots: 'shShots',
|
|
2670
|
+
sh_shot_misses: 'shShotMisses',
|
|
2640
2671
|
sh_shots_on_goal: 'shShotsOnGoal',
|
|
2641
2672
|
sh_shots_blocked: 'shShotsBlocked',
|
|
2673
|
+
pp_goals_percent: 'ppGoalsPercent',
|
|
2642
2674
|
pp_goals: 'ppGoals',
|
|
2675
|
+
ev_goals_percent: 'evGoalsPercent',
|
|
2643
2676
|
ev_goals: 'evGoals',
|
|
2677
|
+
sh_goals_percent: 'shGoalsPercent',
|
|
2678
|
+
goals: 'goals',
|
|
2644
2679
|
sh_goals: 'shGoals',
|
|
2680
|
+
shot_misses: 'shotMisses',
|
|
2681
|
+
shots_on_goal: 'shotsOnGoal',
|
|
2682
|
+
shots_blocked: 'shotsBlocked',
|
|
2683
|
+
shots: 'shots',
|
|
2684
|
+
goals_percent: 'goalsPercent',
|
|
2685
|
+
shots_against: 'shotsAgainst',
|
|
2686
|
+
saves_percent: 'savesPercent',
|
|
2645
2687
|
pp_assists: 'ppAssists',
|
|
2646
2688
|
ev_assists: 'evAssists',
|
|
2647
2689
|
sh_assists: 'shAssists',
|
|
@@ -2650,6 +2692,8 @@
|
|
|
2650
2692
|
block_shots: 'blockShots',
|
|
2651
2693
|
face_off_losses: 'faceOffLosses',
|
|
2652
2694
|
face_off_wins: 'faceOffWins',
|
|
2695
|
+
face_offs: 'faceOffs',
|
|
2696
|
+
face_off_percent: 'faceOffPercent',
|
|
2653
2697
|
saves: 'saves',
|
|
2654
2698
|
goals_against: 'goalsAgainst',
|
|
2655
2699
|
safety_rate: 'safetyRate',
|
|
@@ -5964,7 +6008,7 @@
|
|
|
5964
6008
|
_a$4[exports.TeamUserRole.admin] = 'Владелец',
|
|
5965
6009
|
_a$4);
|
|
5966
6010
|
|
|
5967
|
-
var _a$5, _b, _c, _d, _e, _f, _g;
|
|
6011
|
+
var _a$5, _b, _c, _d, _e, _f, _g, _h;
|
|
5968
6012
|
var GameBasketballPositionLocalization = (_a$5 = {},
|
|
5969
6013
|
_a$5[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
|
|
5970
6014
|
_a$5[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
|
|
@@ -6008,6 +6052,11 @@
|
|
|
6008
6052
|
_g[exports.VolleyballWorkHand.left] = 'Левая',
|
|
6009
6053
|
_g[exports.VolleyballWorkHand.right] = 'Правая',
|
|
6010
6054
|
_g);
|
|
6055
|
+
var GameHockeyPositionLocalization = (_h = {},
|
|
6056
|
+
_h[exports.GameHockeyPosition.goaltender] = 'Вратарь',
|
|
6057
|
+
_h[exports.GameHockeyPosition.defensemen] = 'Защитник',
|
|
6058
|
+
_h[exports.GameHockeyPosition.forward] = 'Нападающий',
|
|
6059
|
+
_h);
|
|
6011
6060
|
|
|
6012
6061
|
var _a$6;
|
|
6013
6062
|
var VolleyballGameLogTypeLocalization = (_a$6 = {},
|
|
@@ -6458,6 +6507,7 @@
|
|
|
6458
6507
|
exports.Game = Game;
|
|
6459
6508
|
exports.GameBasketballPositionLocalization = GameBasketballPositionLocalization;
|
|
6460
6509
|
exports.GameBasketballPositionShortLocalization = GameBasketballPositionShortLocalization;
|
|
6510
|
+
exports.GameHockeyPositionLocalization = GameHockeyPositionLocalization;
|
|
6461
6511
|
exports.GameInvite = GameInvite;
|
|
6462
6512
|
exports.GameTimelineStageItem = GameTimelineStageItem;
|
|
6463
6513
|
exports.GameTimelineStages = GameTimelineStages;
|