@mtgame/core 0.2.119 → 0.2.121

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.
@@ -1697,11 +1697,34 @@
1697
1697
  TimerTypes[TimerTypes["backward"] = 1] = "backward";
1698
1698
  TimerTypes[TimerTypes["forward"] = 2] = "forward";
1699
1699
  })(exports.TimerTypes || (exports.TimerTypes = {}));
1700
+ exports.SubstituteManageTypes = void 0;
1701
+ (function (SubstituteManageTypes) {
1702
+ SubstituteManageTypes[SubstituteManageTypes["goalkeeper_only"] = 1] = "goalkeeper_only";
1703
+ SubstituteManageTypes[SubstituteManageTypes["additional_screen"] = 2] = "additional_screen";
1704
+ SubstituteManageTypes[SubstituteManageTypes["one_screen"] = 3] = "one_screen";
1705
+ SubstituteManageTypes[SubstituteManageTypes["split_screen"] = 4] = "split_screen";
1706
+ })(exports.SubstituteManageTypes || (exports.SubstituteManageTypes = {}));
1700
1707
  exports.TournamentSettings = /** @class */ (function (_super) {
1701
1708
  __extends(TournamentSettings, _super);
1702
1709
  function TournamentSettings() {
1703
1710
  return _super !== null && _super.apply(this, arguments) || this;
1704
1711
  }
1712
+ Object.defineProperty(TournamentSettings.prototype, "substituteManageMode", {
1713
+ get: function () {
1714
+ if (this._substituteManageMode) {
1715
+ return this._substituteManageMode;
1716
+ }
1717
+ if (this.substituteManageEnabled) {
1718
+ return exports.SubstituteManageTypes.split_screen;
1719
+ }
1720
+ return exports.SubstituteManageTypes.goalkeeper_only;
1721
+ },
1722
+ set: function (value) {
1723
+ this._substituteManageMode = value;
1724
+ },
1725
+ enumerable: false,
1726
+ configurable: true
1727
+ });
1705
1728
  Object.defineProperty(TournamentSettings.prototype, "genderTitle", {
1706
1729
  get: function () {
1707
1730
  var yearDiff = new Date().getFullYear() - this.birthYearFrom;
@@ -1774,6 +1797,7 @@
1774
1797
  with_result_table: 'withResultTable',
1775
1798
  free_substitute_enabled: 'freeSubstituteEnabled',
1776
1799
  substitute_manage_enabled: 'substituteManageEnabled',
1800
+ substitute_manage_mode: 'substituteManageMode',
1777
1801
  bonus_points_enabled: 'bonusPointsEnabled',
1778
1802
  minor_penalty_time: 'minorPenaltyTime',
1779
1803
  major_penalty_time: 'majorPenaltyTime',
@@ -1796,6 +1820,7 @@
1796
1820
  gameTimeType: enumField(exports.GameTimeTypes),
1797
1821
  overtimeType: enumField(exports.OvertimeTypes),
1798
1822
  timerType: enumField(exports.TimerTypes),
1823
+ substituteManageMode: enumField(exports.SubstituteManageTypes),
1799
1824
  }
1800
1825
  })
1801
1826
  ], exports.TournamentSettings);