@mtgame/core 0.1.140 → 0.1.141
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 +125 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/waterpolo-game-statistic.js +58 -1
- package/esm2015/models/waterpolo-statistic.js +16 -1
- package/fesm2015/mtgame-core.js +72 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/waterpolo-game-statistic.d.ts +13 -0
- package/models/waterpolo-statistic.d.ts +15 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6643,9 +6643,24 @@
|
|
|
6643
6643
|
shootout_shots: 'shootoutShots',
|
|
6644
6644
|
shootout_goals_percent: 'shootoutGoalsPercent',
|
|
6645
6645
|
/*goalie stat*/
|
|
6646
|
+
position_attack_saves: 'positionAttackSaves',
|
|
6647
|
+
position_attack_shots_against: 'positionAttackShotsAgainst',
|
|
6648
|
+
position_attack_saves_percent: 'positionAttackSavesPercent',
|
|
6646
6649
|
counterattack_saves: 'counterAttackSaves',
|
|
6650
|
+
counterattack_shots_against: 'counterAttackShotsAgainst',
|
|
6651
|
+
counterattack_saves_percent: 'counterAttackSavesPercent',
|
|
6647
6652
|
center_forward_saves: 'centerForwardSaves',
|
|
6653
|
+
center_forward_shots_against: 'centerForwardShotsAgainst',
|
|
6654
|
+
center_forward_saves_percent: 'centerForwardSavesPercent',
|
|
6655
|
+
maneuver_saves: 'maneuverSaves',
|
|
6656
|
+
maneuver_shots_against: 'maneuverShotsAgainst',
|
|
6657
|
+
maneuver_saves_percent: 'maneuverSavesPercent',
|
|
6648
6658
|
free_kick_saves: 'freeKickSaves',
|
|
6659
|
+
free_kick_shots_against: 'freeKickShotsAgainst',
|
|
6660
|
+
free_kick_saves_percent: 'freeKickSavesPercent',
|
|
6661
|
+
corner_saves: 'cornerSaves',
|
|
6662
|
+
corner_shots_against: 'cornerShotsAgainst',
|
|
6663
|
+
corner_saves_percent: 'cornerSavesPercent',
|
|
6649
6664
|
in_game_saves: 'inGameSaves',
|
|
6650
6665
|
total_sh_saves: 'totalShSaves',
|
|
6651
6666
|
saves: 'saves',
|
|
@@ -11662,14 +11677,55 @@
|
|
|
11662
11677
|
enumerable: false,
|
|
11663
11678
|
configurable: true
|
|
11664
11679
|
});
|
|
11665
|
-
Object.defineProperty(WaterpoloGameStatistic.prototype, "
|
|
11680
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackSaves", {
|
|
11666
11681
|
/*goalie stat */
|
|
11682
|
+
get: function () {
|
|
11683
|
+
return (this.ppSaves || 0) + (this.shSaves || 0) + (this.evSaves || 0);
|
|
11684
|
+
},
|
|
11685
|
+
enumerable: false,
|
|
11686
|
+
configurable: true
|
|
11687
|
+
});
|
|
11688
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackShotsAgainst", {
|
|
11689
|
+
get: function () {
|
|
11690
|
+
return this.positionAttackSaves + (this.goalsAgainst || 0);
|
|
11691
|
+
},
|
|
11692
|
+
enumerable: false,
|
|
11693
|
+
configurable: true
|
|
11694
|
+
});
|
|
11695
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "positionAttackSavesPercent", {
|
|
11696
|
+
get: function () {
|
|
11697
|
+
if (!this.positionAttackSaves || !this.positionAttackShotsAgainst) {
|
|
11698
|
+
return 0;
|
|
11699
|
+
}
|
|
11700
|
+
return Math.round(1000 * this.positionAttackSaves / this.positionAttackShotsAgainst) / 10;
|
|
11701
|
+
},
|
|
11702
|
+
enumerable: false,
|
|
11703
|
+
configurable: true
|
|
11704
|
+
});
|
|
11705
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackSaves", {
|
|
11667
11706
|
get: function () {
|
|
11668
11707
|
return (this.ppCounterAttackSaves || 0) + (this.shCounterAttackSaves || 0) + (this.evCounterAttackSaves || 0);
|
|
11669
11708
|
},
|
|
11670
11709
|
enumerable: false,
|
|
11671
11710
|
configurable: true
|
|
11672
11711
|
});
|
|
11712
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackShotsAgainst", {
|
|
11713
|
+
get: function () {
|
|
11714
|
+
return this.counterAttackSaves + (this.counterAttackGoalsAgainst || 0);
|
|
11715
|
+
},
|
|
11716
|
+
enumerable: false,
|
|
11717
|
+
configurable: true
|
|
11718
|
+
});
|
|
11719
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "counterAttackSavesPercent", {
|
|
11720
|
+
get: function () {
|
|
11721
|
+
if (!this.counterAttackSaves || !this.counterAttackShotsAgainst) {
|
|
11722
|
+
return 0;
|
|
11723
|
+
}
|
|
11724
|
+
return Math.round(1000 * this.counterAttackSaves / this.counterAttackShotsAgainst) / 10;
|
|
11725
|
+
},
|
|
11726
|
+
enumerable: false,
|
|
11727
|
+
configurable: true
|
|
11728
|
+
});
|
|
11673
11729
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardSaves", {
|
|
11674
11730
|
get: function () {
|
|
11675
11731
|
return (this.ppCenterForwardSaves || 0) + (this.shCenterForwardSaves || 0) + (this.evCenterForwardSaves || 0);
|
|
@@ -11677,6 +11733,23 @@
|
|
|
11677
11733
|
enumerable: false,
|
|
11678
11734
|
configurable: true
|
|
11679
11735
|
});
|
|
11736
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardShotsAgainst", {
|
|
11737
|
+
get: function () {
|
|
11738
|
+
return this.centerForwardSaves + (this.centerForwardGoalsAgainst || 0);
|
|
11739
|
+
},
|
|
11740
|
+
enumerable: false,
|
|
11741
|
+
configurable: true
|
|
11742
|
+
});
|
|
11743
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "centerForwardSavesPercent", {
|
|
11744
|
+
get: function () {
|
|
11745
|
+
if (!this.centerForwardSaves || !this.centerForwardShotsAgainst) {
|
|
11746
|
+
return 0;
|
|
11747
|
+
}
|
|
11748
|
+
return Math.round(1000 * this.centerForwardSaves / this.centerForwardShotsAgainst) / 10;
|
|
11749
|
+
},
|
|
11750
|
+
enumerable: false,
|
|
11751
|
+
configurable: true
|
|
11752
|
+
});
|
|
11680
11753
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverSaves", {
|
|
11681
11754
|
get: function () {
|
|
11682
11755
|
return (this.ppManeuverSaves || 0) + (this.shManeuverSaves || 0) + (this.evManeuverSaves || 0);
|
|
@@ -11684,6 +11757,23 @@
|
|
|
11684
11757
|
enumerable: false,
|
|
11685
11758
|
configurable: true
|
|
11686
11759
|
});
|
|
11760
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverShotsAgainst", {
|
|
11761
|
+
get: function () {
|
|
11762
|
+
return this.maneuverSaves + (this.maneuverGoalsAgainst || 0);
|
|
11763
|
+
},
|
|
11764
|
+
enumerable: false,
|
|
11765
|
+
configurable: true
|
|
11766
|
+
});
|
|
11767
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "maneuverSavesPercent", {
|
|
11768
|
+
get: function () {
|
|
11769
|
+
if (!this.maneuverSaves || !this.maneuverShotsAgainst) {
|
|
11770
|
+
return 0;
|
|
11771
|
+
}
|
|
11772
|
+
return Math.round(1000 * this.maneuverSaves / this.maneuverShotsAgainst) / 10;
|
|
11773
|
+
},
|
|
11774
|
+
enumerable: false,
|
|
11775
|
+
configurable: true
|
|
11776
|
+
});
|
|
11687
11777
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickSaves", {
|
|
11688
11778
|
get: function () {
|
|
11689
11779
|
return (this.ppFreeKickSaves || 0) + (this.shFreeKickSaves || 0) + (this.evFreeKickSaves || 0);
|
|
@@ -11691,6 +11781,23 @@
|
|
|
11691
11781
|
enumerable: false,
|
|
11692
11782
|
configurable: true
|
|
11693
11783
|
});
|
|
11784
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickShotsAgainst", {
|
|
11785
|
+
get: function () {
|
|
11786
|
+
return this.freeKickSaves + (this.freeKickGoalsAgainst || 0);
|
|
11787
|
+
},
|
|
11788
|
+
enumerable: false,
|
|
11789
|
+
configurable: true
|
|
11790
|
+
});
|
|
11791
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "freeKickSavesPercent", {
|
|
11792
|
+
get: function () {
|
|
11793
|
+
if (!this.freeKickSaves || !this.freeKickShotsAgainst) {
|
|
11794
|
+
return 0;
|
|
11795
|
+
}
|
|
11796
|
+
return Math.round(1000 * this.freeKickSaves / this.freeKickShotsAgainst) / 10;
|
|
11797
|
+
},
|
|
11798
|
+
enumerable: false,
|
|
11799
|
+
configurable: true
|
|
11800
|
+
});
|
|
11694
11801
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "cornerSaves", {
|
|
11695
11802
|
get: function () {
|
|
11696
11803
|
return (this.ppCornerSaves || 0) + (this.shCornerSaves || 0) + (this.evCornerSaves || 0);
|
|
@@ -11698,6 +11805,23 @@
|
|
|
11698
11805
|
enumerable: false,
|
|
11699
11806
|
configurable: true
|
|
11700
11807
|
});
|
|
11808
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "cornerShotsAgainst", {
|
|
11809
|
+
get: function () {
|
|
11810
|
+
return this.cornerSaves + (this.cornerGoalsAgainst || 0);
|
|
11811
|
+
},
|
|
11812
|
+
enumerable: false,
|
|
11813
|
+
configurable: true
|
|
11814
|
+
});
|
|
11815
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "cornerSavesPercent", {
|
|
11816
|
+
get: function () {
|
|
11817
|
+
if (!this.cornerSaves || !this.cornerShotsAgainst) {
|
|
11818
|
+
return 0;
|
|
11819
|
+
}
|
|
11820
|
+
return Math.round(1000 * this.cornerSaves / this.cornerShotsAgainst) / 10;
|
|
11821
|
+
},
|
|
11822
|
+
enumerable: false,
|
|
11823
|
+
configurable: true
|
|
11824
|
+
});
|
|
11701
11825
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShSaves", {
|
|
11702
11826
|
get: function () {
|
|
11703
11827
|
return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
|