@mtgame/core 1.0.49 → 1.0.50

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.
@@ -2114,6 +2114,7 @@
2114
2114
  (function (VolleyballGameTypes) {
2115
2115
  VolleyballGameTypes[VolleyballGameTypes["best_of_five"] = 1] = "best_of_five";
2116
2116
  VolleyballGameTypes[VolleyballGameTypes["best_of_three"] = 2] = "best_of_three";
2117
+ VolleyballGameTypes[VolleyballGameTypes["to_sets_count"] = 3] = "to_sets_count";
2117
2118
  })(exports.VolleyballGameTypes || (exports.VolleyballGameTypes = {}));
2118
2119
  exports.VolleyballGameConfig = /** @class */ (function (_super) {
2119
2120
  __extends(VolleyballGameConfig, _super);
@@ -2122,7 +2123,8 @@
2122
2123
  }
2123
2124
  Object.defineProperty(VolleyballGameConfig.prototype, "setsCount", {
2124
2125
  get: function () {
2125
- return this.gameType === exports.VolleyballGameTypes.best_of_three ? 3 : 5;
2126
+ return this.gameType === exports.VolleyballGameTypes.to_sets_count ? this.periodsCount ? this.periodsCount : 3
2127
+ : this.gameType === exports.VolleyballGameTypes.best_of_three ? 3 : 5;
2126
2128
  },
2127
2129
  enumerable: false,
2128
2130
  configurable: true
@@ -2144,6 +2146,7 @@
2144
2146
  ModelInstance({
2145
2147
  mappingFields: {
2146
2148
  game_type: 'gameType',
2149
+ periods_count: 'periodsCount',
2147
2150
  timeout_count: 'timeoutCount',
2148
2151
  timeout_time: 'timeoutTime',
2149
2152
  substitute_count: 'substituteCount',