@mtgame/core 0.0.61 → 0.0.63
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 +11 -1
- 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/models/basketball-statistic.js +5 -1
- package/esm2015/models/hockey-game-statistic.js +4 -2
- package/esm5/models/basketball-statistic.js +9 -1
- package/esm5/models/hockey-game-statistic.js +4 -2
- package/fesm2015/mtgame-core.js +7 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +11 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/basketball-statistic.d.ts +2 -0
- package/models/hockey-game-statistic.d.ts +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2022,6 +2022,13 @@ var BasketballStatistic = /** @class */ (function (_super) {
|
|
|
2022
2022
|
enumerable: true,
|
|
2023
2023
|
configurable: true
|
|
2024
2024
|
});
|
|
2025
|
+
Object.defineProperty(BasketballStatistic.prototype, "gameMinutes", {
|
|
2026
|
+
get: function () {
|
|
2027
|
+
return Math.floor(this.gameTime / 60);
|
|
2028
|
+
},
|
|
2029
|
+
enumerable: true,
|
|
2030
|
+
configurable: true
|
|
2031
|
+
});
|
|
2025
2032
|
BasketballStatistic.toFront = function (data) { };
|
|
2026
2033
|
BasketballStatistic.toBack = function (data) { };
|
|
2027
2034
|
__decorate([
|
|
@@ -2065,6 +2072,7 @@ var BasketballStatistic = /** @class */ (function (_super) {
|
|
|
2065
2072
|
personal_fouls: 'personalFouls',
|
|
2066
2073
|
technical_fouls: 'technicalFouls',
|
|
2067
2074
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
2075
|
+
game_time: 'gameTime',
|
|
2068
2076
|
newbie: 'newbie',
|
|
2069
2077
|
},
|
|
2070
2078
|
relation: {
|
|
@@ -2765,7 +2773,9 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2765
2773
|
});
|
|
2766
2774
|
Object.defineProperty(HockeyGameStatistic.prototype, "gameMinutes", {
|
|
2767
2775
|
get: function () {
|
|
2768
|
-
|
|
2776
|
+
var minutes = Math.floor(this.gameTime / 60);
|
|
2777
|
+
var seconds = this.gameTime - minutes * 60;
|
|
2778
|
+
return "" + (minutes < 9 ? '0' : '') + minutes + ":" + (seconds < 9 ? '0' : '') + seconds;
|
|
2769
2779
|
},
|
|
2770
2780
|
enumerable: true,
|
|
2771
2781
|
configurable: true
|