@mtgame/core 0.2.43 → 0.2.45
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 +33 -7
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/basketball-game-statistic.js +14 -1
- package/esm2015/models/basketball-statistic.js +7 -2
- package/esm2015/models/football-statistic.js +2 -2
- package/esm2015/models/hockey-statistic.js +3 -3
- package/esm2015/models/rugby-statistic.js +2 -2
- package/esm2015/models/waterpolo-statistic.js +3 -3
- package/fesm2015/mtgame-core.js +25 -7
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/basketball-game-statistic.d.ts +4 -0
- package/models/basketball-statistic.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3518,7 +3518,10 @@
|
|
|
3518
3518
|
}
|
|
3519
3519
|
Object.defineProperty(BasketballStatistic.prototype, "totalFouls", {
|
|
3520
3520
|
get: function () {
|
|
3521
|
-
return
|
|
3521
|
+
return Math.floor(10 * ((this.personalFouls || 0) +
|
|
3522
|
+
(this.technicalFouls || 0) +
|
|
3523
|
+
(this.unsportsmanlikeFouls || 0) +
|
|
3524
|
+
(this.disqualificationFouls || 0))) / 10;
|
|
3522
3525
|
},
|
|
3523
3526
|
enumerable: false,
|
|
3524
3527
|
configurable: true
|
|
@@ -3644,6 +3647,8 @@
|
|
|
3644
3647
|
dunks_made: 'dunksMade',
|
|
3645
3648
|
shootouts_won: 'shootoutsWon',
|
|
3646
3649
|
shootouts_lost: 'shootoutsLost',
|
|
3650
|
+
shootouts_total: 'shootoutsTotal',
|
|
3651
|
+
shootout_won_percent: 'shootoutWonPercent',
|
|
3647
3652
|
game_time: 'gameTime',
|
|
3648
3653
|
newbie: 'newbie',
|
|
3649
3654
|
rank: 'rank',
|
|
@@ -3823,6 +3828,25 @@
|
|
|
3823
3828
|
enumerable: false,
|
|
3824
3829
|
configurable: true
|
|
3825
3830
|
});
|
|
3831
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "shootoutsTotal", {
|
|
3832
|
+
get: function () {
|
|
3833
|
+
return (this.shootoutsLost || 0) + (this.shootoutsWon || 0);
|
|
3834
|
+
},
|
|
3835
|
+
set: function (v) { },
|
|
3836
|
+
enumerable: false,
|
|
3837
|
+
configurable: true
|
|
3838
|
+
});
|
|
3839
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "shootoutWonPercent", {
|
|
3840
|
+
get: function () {
|
|
3841
|
+
if (!this.shootoutsTotal || !this.shootoutsWon) {
|
|
3842
|
+
return 0;
|
|
3843
|
+
}
|
|
3844
|
+
return Math.round(1000 * this.shootoutsWon / this.shootoutsTotal) / 10;
|
|
3845
|
+
},
|
|
3846
|
+
set: function (v) { },
|
|
3847
|
+
enumerable: false,
|
|
3848
|
+
configurable: true
|
|
3849
|
+
});
|
|
3826
3850
|
return BasketballGameStatistic;
|
|
3827
3851
|
}(BaseModel));
|
|
3828
3852
|
__decorate([
|
|
@@ -3869,6 +3893,8 @@
|
|
|
3869
3893
|
dunks_made: 'dunksMade',
|
|
3870
3894
|
shootouts_won: 'shootoutsWon',
|
|
3871
3895
|
shootouts_lost: 'shootoutsLost',
|
|
3896
|
+
shootouts_total: 'shootoutsTotal',
|
|
3897
|
+
shootout_won_percent: 'shootoutWonPercent',
|
|
3872
3898
|
updated_at: 'updatedAt',
|
|
3873
3899
|
},
|
|
3874
3900
|
relation: {
|
|
@@ -4863,14 +4889,14 @@
|
|
|
4863
4889
|
}
|
|
4864
4890
|
Object.defineProperty(HockeyStatistic.prototype, "assists", {
|
|
4865
4891
|
get: function () {
|
|
4866
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
4892
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
4867
4893
|
},
|
|
4868
4894
|
enumerable: false,
|
|
4869
4895
|
configurable: true
|
|
4870
4896
|
});
|
|
4871
4897
|
Object.defineProperty(HockeyStatistic.prototype, "goalpass", {
|
|
4872
4898
|
get: function () {
|
|
4873
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
4899
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
4874
4900
|
},
|
|
4875
4901
|
enumerable: false,
|
|
4876
4902
|
configurable: true
|
|
@@ -5476,7 +5502,7 @@
|
|
|
5476
5502
|
});
|
|
5477
5503
|
Object.defineProperty(FootballStatistic.prototype, "goalpass", {
|
|
5478
5504
|
get: function () {
|
|
5479
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
5505
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
5480
5506
|
},
|
|
5481
5507
|
enumerable: false,
|
|
5482
5508
|
configurable: true
|
|
@@ -6639,7 +6665,7 @@
|
|
|
6639
6665
|
});
|
|
6640
6666
|
Object.defineProperty(RugbyStatistic.prototype, "totalFouls", {
|
|
6641
6667
|
get: function () {
|
|
6642
|
-
return (this.fouls || 0) + (this.teamFouls || 0);
|
|
6668
|
+
return Math.floor(10 * ((this.fouls || 0) + (this.teamFouls || 0))) / 10;
|
|
6643
6669
|
},
|
|
6644
6670
|
enumerable: false,
|
|
6645
6671
|
configurable: true
|
|
@@ -6823,14 +6849,14 @@
|
|
|
6823
6849
|
}
|
|
6824
6850
|
Object.defineProperty(WaterpoloStatistic.prototype, "assists", {
|
|
6825
6851
|
get: function () {
|
|
6826
|
-
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
6852
|
+
return Math.floor(10 * ((this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0))) / 10;
|
|
6827
6853
|
},
|
|
6828
6854
|
enumerable: false,
|
|
6829
6855
|
configurable: true
|
|
6830
6856
|
});
|
|
6831
6857
|
Object.defineProperty(WaterpoloStatistic.prototype, "goalpass", {
|
|
6832
6858
|
get: function () {
|
|
6833
|
-
return (this.totalGoals || 0) + (this.assists || 0);
|
|
6859
|
+
return Math.floor(10 * ((this.totalGoals || 0) + (this.assists || 0))) / 10;
|
|
6834
6860
|
},
|
|
6835
6861
|
enumerable: false,
|
|
6836
6862
|
configurable: true
|