@mtgame/core 2.0.25 → 2.0.27

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.
@@ -829,7 +829,20 @@ let HockeyGameConfig = class HockeyGameConfig extends GameConfigBase {
829
829
  return this.periodsCount + 2;
830
830
  }
831
831
  get playoffBullitsPeriod() {
832
- return this.periodsCount + 3;
832
+ if (this.playoffSeriesOvertimeType === OvertimeTypes.to_first_goal_and_bullitts) {
833
+ return this.periodsCount + 4;
834
+ }
835
+ else {
836
+ return this.periodsCount + 3;
837
+ }
838
+ }
839
+ get playoffOvertimePeriod() {
840
+ if (this.playoffSeriesOvertimeType === OvertimeTypes.to_first_goal_and_bullitts) {
841
+ return this.periodsCount + 3;
842
+ }
843
+ else {
844
+ return null;
845
+ }
833
846
  }
834
847
  };
835
848
  HockeyGameConfig = __decorate([
@@ -837,6 +850,8 @@ HockeyGameConfig = __decorate([
837
850
  relation: {
838
851
  overtimeType: enumField(OvertimeTypes),
839
852
  gameTimeType: enumField(GameTimeTypes),
853
+ playoffSeriesOvertimeType: enumField(OvertimeTypes),
854
+ timerType: enumField(TimerTypes),
840
855
  }
841
856
  })
842
857
  ], HockeyGameConfig);
@@ -2345,13 +2360,16 @@ let HockeyGameLog = class HockeyGameLog extends GameLogBase {
2345
2360
  this._penalizedGameUserId = value;
2346
2361
  }
2347
2362
  compare(model) {
2348
- if (this.time === model.time && this.period === model.period) {
2349
- return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
2350
- }
2351
- if (this.period === model.period) {
2352
- return this.time < model.time ? 1 : -1;
2363
+ const orderFields = ['period', 'time', 'datetime', 'id'];
2364
+ for (const field of orderFields) {
2365
+ if (this[field] < model[field]) {
2366
+ return 1;
2367
+ }
2368
+ if (this[field] > model[field]) {
2369
+ return -1;
2370
+ }
2353
2371
  }
2354
- return this.period < model.period ? 1 : -1;
2372
+ return 0;
2355
2373
  }
2356
2374
  get timeFormatted() {
2357
2375
  const minutes = Math.floor(this.time / 60);
@@ -7095,7 +7113,11 @@ class CentrifugoService {
7095
7113
  }
7096
7114
  if (!this.initializeEngineSubject) {
7097
7115
  this.initializeEngineSubject = new ReplaySubject(1);
7098
- this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/centrifugo_v2/`)
7116
+ let centrifugoConfigUrl = this.configService.get('centrifugoConfigUrl');
7117
+ if (!centrifugoConfigUrl) {
7118
+ centrifugoConfigUrl = `${this.configService.get('apiUrl')}/api/v1/centrifugo_v2/`;
7119
+ }
7120
+ this.httpClient.get(centrifugoConfigUrl)
7099
7121
  .subscribe(config => {
7100
7122
  this.initializeEngine({
7101
7123
  url: this.configService.get('centrifugoUrl'),