@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.
@@ -2235,6 +2235,13 @@
2235
2235
  enumerable: true,
2236
2236
  configurable: true
2237
2237
  });
2238
+ Object.defineProperty(BasketballStatistic.prototype, "gameMinutes", {
2239
+ get: function () {
2240
+ return Math.floor(this.gameTime / 60);
2241
+ },
2242
+ enumerable: true,
2243
+ configurable: true
2244
+ });
2238
2245
  BasketballStatistic.toFront = function (data) { };
2239
2246
  BasketballStatistic.toBack = function (data) { };
2240
2247
  __decorate([
@@ -2278,6 +2285,7 @@
2278
2285
  personal_fouls: 'personalFouls',
2279
2286
  technical_fouls: 'technicalFouls',
2280
2287
  unsportsmanlike_fouls: 'unsportsmanlikeFouls',
2288
+ game_time: 'gameTime',
2281
2289
  newbie: 'newbie',
2282
2290
  },
2283
2291
  relation: {
@@ -2978,7 +2986,9 @@
2978
2986
  });
2979
2987
  Object.defineProperty(HockeyGameStatistic.prototype, "gameMinutes", {
2980
2988
  get: function () {
2981
- return Math.floor(this.gameTime / 60);
2989
+ var minutes = Math.floor(this.gameTime / 60);
2990
+ var seconds = this.gameTime - minutes * 60;
2991
+ return "" + (minutes < 9 ? '0' : '') + minutes + ":" + (seconds < 9 ? '0' : '') + seconds;
2982
2992
  },
2983
2993
  enumerable: true,
2984
2994
  configurable: true