raspberry_games_server_game_logic 1.8.248 → 1.8.249

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.
@@ -324,7 +324,7 @@
324
324
  function addFormatStructureForTime(structure) {
325
325
  this.k56(structure);
326
326
  }
327
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
327
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
328
328
  function offsetHours$default(padding, $super) {
329
329
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
330
330
  var tmp;
@@ -377,7 +377,7 @@
377
377
  return tmp;
378
378
  }
379
379
  initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
380
- initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithUtcOffset, WithTime]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithTime, WithUtcOffset]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -364,7 +364,7 @@
364
364
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
365
365
  //endregion
366
366
  function GameEngineConfig() {
367
- this.version = '1.8.248';
367
+ this.version = '1.8.249';
368
368
  }
369
369
  protoOf(GameEngineConfig).a2w = function () {
370
370
  return this.version;
@@ -14463,7 +14463,7 @@
14463
14463
  return new ClientGameInfo(_this__u8e3s4.c7k_1, mapFromDto_51(_this__u8e3s4.d7k_1));
14464
14464
  }
14465
14465
  function mapToDto_25(_this__u8e3s4) {
14466
- var tmp6_roundNumber = _this__u8e3s4.roundNumber;
14466
+ var tmp6_roundNumber = _this__u8e3s4.round;
14467
14467
  // Inline function 'kotlin.collections.map' call
14468
14468
  var this_0 = _this__u8e3s4.items;
14469
14469
  // Inline function 'kotlin.collections.mapTo' call
@@ -14477,18 +14477,18 @@
14477
14477
  var tmp$ret$0 = mapToDto_26(item);
14478
14478
  destination.e(tmp$ret$0);
14479
14479
  }
14480
- var tmp0_safe_receiver = _this__u8e3s4.roundContractState;
14480
+ var tmp0_safe_receiver = _this__u8e3s4.contractState;
14481
14481
  var tmp8_roundContractState = tmp0_safe_receiver == null ? null : mapToDto_86(tmp0_safe_receiver);
14482
- var tmp1_safe_receiver = _this__u8e3s4.roundWinners;
14482
+ var tmp1_safe_receiver = _this__u8e3s4.winners;
14483
14483
  var tmp9_roundWinners = tmp1_safe_receiver == null ? null : toList(tmp1_safe_receiver);
14484
- var tmp2_safe_receiver = _this__u8e3s4.roundCommitted;
14484
+ var tmp2_safe_receiver = _this__u8e3s4.committed;
14485
14485
  var tmp10_roundCommitted = tmp2_safe_receiver == null ? null : toList(tmp2_safe_receiver);
14486
- var tmp11_round = _this__u8e3s4.roundNumber;
14487
- var tmp3_safe_receiver = _this__u8e3s4.roundCommitted;
14486
+ var tmp11_round = _this__u8e3s4.round;
14487
+ var tmp3_safe_receiver = _this__u8e3s4.committed;
14488
14488
  var tmp12_committed = tmp3_safe_receiver == null ? null : toList(tmp3_safe_receiver);
14489
- var tmp4_safe_receiver = _this__u8e3s4.roundWinners;
14489
+ var tmp4_safe_receiver = _this__u8e3s4.winners;
14490
14490
  var tmp13_winners = tmp4_safe_receiver == null ? null : toList(tmp4_safe_receiver);
14491
- var tmp5_safe_receiver = _this__u8e3s4.roundContractState;
14491
+ var tmp5_safe_receiver = _this__u8e3s4.contractState;
14492
14492
  var tmp14_contractState = tmp5_safe_receiver == null ? null : mapToDto_86(tmp5_safe_receiver);
14493
14493
  var tmp15_createdAt = _this__u8e3s4.createdAt;
14494
14494
  return new RoundHistoryDto(tmp11_round, tmp14_contractState, tmp12_committed, tmp13_winners, tmp15_createdAt, destination, tmp6_roundNumber, tmp8_roundContractState, tmp10_roundCommitted, tmp9_roundWinners);
@@ -14632,7 +14632,7 @@
14632
14632
  var playerId = item_0.f67_1;
14633
14633
  var tmp4_isGameCreator = playerId === gameCreator.f67_1;
14634
14634
  var tmp5_isChoseSuitInLastGame = playerId === choseSuitInLastGame;
14635
- var tmp1_safe_receiver_0 = lastRound == null ? null : lastRound.roundWinners;
14635
+ var tmp1_safe_receiver_0 = lastRound == null ? null : lastRound.winners;
14636
14636
  var tmp6_isEarnedBiggestPointInLastGame = playerId === (tmp1_safe_receiver_0 == null ? null : first_0(tmp1_safe_receiver_0));
14637
14637
  // Inline function 'kotlin.collections.filter' call
14638
14638
  // Inline function 'kotlin.collections.filterTo' call
@@ -14647,7 +14647,7 @@
14647
14647
  }
14648
14648
  }
14649
14649
  var tmp7_failedContractsCount = destination_2.m();
14650
- var tmp3_safe_receiver = lastRound == null ? null : lastRound.roundWinners;
14650
+ var tmp3_safe_receiver = lastRound == null ? null : lastRound.winners;
14651
14651
  var tmp8_isRoundWinner = (tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, playerId)) === true;
14652
14652
  var tmp$ret$9 = new JassPlayerLite(item_0, new PlayerOptions(tmp4_isGameCreator, index_0, false, false, tmp8_isRoundWinner, VOID, tmp6_isEarnedBiggestPointInLastGame, tmp7_failedContractsCount, VOID, false, VOID, false, tmp5_isChoseSuitInLastGame), getValue(pointsMap, playerId));
14653
14653
  destination_1.e(tmp$ret$9);
@@ -30729,40 +30729,40 @@
30729
30729
  return Companion_instance_138;
30730
30730
  }
30731
30731
  function RoundHistory(round, items, committed, contractState, winners, createdAt) {
30732
- this.roundNumber = round;
30732
+ this.round = round;
30733
30733
  this.items = items;
30734
- this.roundCommitted = committed;
30735
- this.roundContractState = contractState;
30736
- this.roundWinners = winners;
30734
+ this.committed = committed;
30735
+ this.contractState = contractState;
30736
+ this.winners = winners;
30737
30737
  this.createdAt = createdAt;
30738
30738
  }
30739
+ protoOf(RoundHistory).e84 = function () {
30740
+ return this.round;
30741
+ };
30739
30742
  protoOf(RoundHistory).b88 = function () {
30740
- return this.roundNumber;
30743
+ return this.items;
30741
30744
  };
30742
30745
  protoOf(RoundHistory).c88 = function () {
30743
- return this.items;
30746
+ return this.committed;
30744
30747
  };
30745
30748
  protoOf(RoundHistory).d88 = function () {
30746
- return this.roundCommitted;
30749
+ return this.contractState;
30747
30750
  };
30748
30751
  protoOf(RoundHistory).e88 = function () {
30749
- return this.roundContractState;
30750
- };
30751
- protoOf(RoundHistory).f88 = function () {
30752
- return this.roundWinners;
30752
+ return this.winners;
30753
30753
  };
30754
30754
  protoOf(RoundHistory).i84 = function () {
30755
30755
  return this.createdAt;
30756
30756
  };
30757
30757
  protoOf(RoundHistory).isFailedRoundForPlayer = function (playerId) {
30758
- var tmp0_safe_receiver = this.roundCommitted;
30758
+ var tmp0_safe_receiver = this.committed;
30759
30759
  if ((tmp0_safe_receiver == null ? null : contains(tmp0_safe_receiver, playerId)) === true) {
30760
- return equals(this.roundContractState, RoundContractState_FAILED_getInstance());
30760
+ return equals(this.contractState, RoundContractState_FAILED_getInstance());
30761
30761
  }
30762
30762
  return false;
30763
30763
  };
30764
- protoOf(RoundHistory).g88 = function () {
30765
- var tmp0_safe_receiver = this.roundContractState;
30764
+ protoOf(RoundHistory).f88 = function () {
30765
+ var tmp0_safe_receiver = this.contractState;
30766
30766
  return tmp0_safe_receiver == null ? null : mapToDto_86(tmp0_safe_receiver);
30767
30767
  };
30768
30768
  protoOf(RoundHistory).equals = function (other) {
@@ -30772,50 +30772,50 @@
30772
30772
  return false;
30773
30773
  if (!(other instanceof RoundHistory))
30774
30774
  THROW_CCE();
30775
- if (!(this.roundNumber === other.roundNumber))
30775
+ if (!(this.round === other.round))
30776
30776
  return false;
30777
30777
  return contentEquals(this.items, other.items);
30778
30778
  };
30779
30779
  protoOf(RoundHistory).hashCode = function () {
30780
- var result = this.roundNumber;
30780
+ var result = this.round;
30781
30781
  result = imul(31, result) + contentHashCode(this.items) | 0;
30782
30782
  return result;
30783
30783
  };
30784
30784
  protoOf(RoundHistory).toStringShort = function () {
30785
- return 'RoundHistory(' + ('roundNumber=' + this.roundNumber + ', ') + ('itemsCount=' + this.items.length) + ')';
30785
+ return 'RoundHistory(' + ('roundNumber=' + this.round + ', ') + ('itemsCount=' + this.items.length) + ')';
30786
30786
  };
30787
30787
  protoOf(RoundHistory).pe = function () {
30788
- return this.roundNumber;
30788
+ return this.round;
30789
30789
  };
30790
30790
  protoOf(RoundHistory).qe = function () {
30791
30791
  return this.items;
30792
30792
  };
30793
30793
  protoOf(RoundHistory).hk = function () {
30794
- return this.roundCommitted;
30794
+ return this.committed;
30795
30795
  };
30796
30796
  protoOf(RoundHistory).j5j = function () {
30797
- return this.roundContractState;
30797
+ return this.contractState;
30798
30798
  };
30799
30799
  protoOf(RoundHistory).k67 = function () {
30800
- return this.roundWinners;
30800
+ return this.winners;
30801
30801
  };
30802
30802
  protoOf(RoundHistory).l67 = function () {
30803
30803
  return this.createdAt;
30804
30804
  };
30805
- protoOf(RoundHistory).h88 = function (round, items, committed, contractState, winners, createdAt) {
30805
+ protoOf(RoundHistory).g88 = function (round, items, committed, contractState, winners, createdAt) {
30806
30806
  return new RoundHistory(round, items, committed, contractState, winners, createdAt);
30807
30807
  };
30808
30808
  protoOf(RoundHistory).copy = function (round, items, committed, contractState, winners, createdAt, $super) {
30809
- round = round === VOID ? this.roundNumber : round;
30809
+ round = round === VOID ? this.round : round;
30810
30810
  items = items === VOID ? this.items : items;
30811
- committed = committed === VOID ? this.roundCommitted : committed;
30812
- contractState = contractState === VOID ? this.roundContractState : contractState;
30813
- winners = winners === VOID ? this.roundWinners : winners;
30811
+ committed = committed === VOID ? this.committed : committed;
30812
+ contractState = contractState === VOID ? this.contractState : contractState;
30813
+ winners = winners === VOID ? this.winners : winners;
30814
30814
  createdAt = createdAt === VOID ? this.createdAt : createdAt;
30815
- return this.h88(round, items, committed, contractState, winners, createdAt);
30815
+ return this.g88(round, items, committed, contractState, winners, createdAt);
30816
30816
  };
30817
30817
  protoOf(RoundHistory).toString = function () {
30818
- return 'RoundHistory(round=' + this.roundNumber + ', items=' + toString(this.items) + ', committed=' + toString(this.roundCommitted) + ', contractState=' + toString_0(this.roundContractState) + ', winners=' + toString(this.roundWinners) + ', createdAt=' + this.createdAt.toString() + ')';
30818
+ return 'RoundHistory(round=' + this.round + ', items=' + toString(this.items) + ', committed=' + toString(this.committed) + ', contractState=' + toString_0(this.contractState) + ', winners=' + toString(this.winners) + ', createdAt=' + this.createdAt.toString() + ')';
30819
30819
  };
30820
30820
  function RoundHistoryItem() {
30821
30821
  }
@@ -31110,17 +31110,17 @@
31110
31110
  return true;
31111
31111
  };
31112
31112
  function PreviousRound(bribes, cardDeck, points) {
31113
- this.i88_1 = bribes;
31114
- this.j88_1 = cardDeck;
31115
- this.k88_1 = points;
31113
+ this.h88_1 = bribes;
31114
+ this.i88_1 = cardDeck;
31115
+ this.j88_1 = points;
31116
31116
  }
31117
31117
  protoOf(PreviousRound).toString = function () {
31118
- return 'PreviousRound(bribes=' + toString(this.i88_1) + ', cardDeck=' + toString_0(this.j88_1) + ', points=' + toString(this.k88_1) + ')';
31118
+ return 'PreviousRound(bribes=' + toString(this.h88_1) + ', cardDeck=' + toString_0(this.i88_1) + ', points=' + toString(this.j88_1) + ')';
31119
31119
  };
31120
31120
  protoOf(PreviousRound).hashCode = function () {
31121
- var result = hashCode(this.i88_1);
31122
- result = imul(result, 31) + (this.j88_1 == null ? 0 : this.j88_1.hashCode()) | 0;
31123
- result = imul(result, 31) + hashCode(this.k88_1) | 0;
31121
+ var result = hashCode(this.h88_1);
31122
+ result = imul(result, 31) + (this.i88_1 == null ? 0 : this.i88_1.hashCode()) | 0;
31123
+ result = imul(result, 31) + hashCode(this.j88_1) | 0;
31124
31124
  return result;
31125
31125
  };
31126
31126
  protoOf(PreviousRound).equals = function (other) {
@@ -31129,12 +31129,12 @@
31129
31129
  if (!(other instanceof PreviousRound))
31130
31130
  return false;
31131
31131
  var tmp0_other_with_cast = other instanceof PreviousRound ? other : THROW_CCE();
31132
+ if (!equals(this.h88_1, tmp0_other_with_cast.h88_1))
31133
+ return false;
31132
31134
  if (!equals(this.i88_1, tmp0_other_with_cast.i88_1))
31133
31135
  return false;
31134
31136
  if (!equals(this.j88_1, tmp0_other_with_cast.j88_1))
31135
31137
  return false;
31136
- if (!equals(this.k88_1, tmp0_other_with_cast.k88_1))
31137
- return false;
31138
31138
  return true;
31139
31139
  };
31140
31140
  function Companion_134() {
@@ -31151,7 +31151,7 @@
31151
31151
  this.numberOfBribe = numberOfBribe;
31152
31152
  this.trump = trump;
31153
31153
  }
31154
- protoOf(Round).b88 = function () {
31154
+ protoOf(Round).k88 = function () {
31155
31155
  return this.roundNumber;
31156
31156
  };
31157
31157
  protoOf(Round).l88 = function () {
@@ -36147,12 +36147,12 @@
36147
36147
  return createCardsIfNeeded($this, previousCards);
36148
36148
  }
36149
36149
  function getPreviousRoundCards($this, previousRound) {
36150
- if (previousRound.j88_1 == null) {
36150
+ if (previousRound.i88_1 == null) {
36151
36151
  return null;
36152
36152
  }
36153
36153
  // Inline function 'kotlin.collections.map' call
36154
36154
  // Inline function 'kotlin.collections.map' call
36155
- var this_0 = previousRound.i88_1;
36155
+ var this_0 = previousRound.h88_1;
36156
36156
  // Inline function 'kotlin.collections.mapTo' call
36157
36157
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
36158
36158
  var tmp0_iterator = this_0.j();
@@ -36173,7 +36173,7 @@
36173
36173
  destination_0.e(tmp$ret$3);
36174
36174
  }
36175
36175
  var cardsFromBribes = destination_0;
36176
- var cards = toSet(plus(plus(cardsFromBribes, previousRound.j88_1.o83_1), listOfNotNull([!cardsFromBribes.s1(previousRound.j88_1.p83_1) ? previousRound.j88_1.p83_1 : null, previousRound.j88_1.q83_1])));
36176
+ var cards = toSet(plus(plus(cardsFromBribes, previousRound.i88_1.o83_1), listOfNotNull([!cardsFromBribes.s1(previousRound.i88_1.p83_1) ? previousRound.i88_1.p83_1 : null, previousRound.i88_1.q83_1])));
36177
36177
  if (!(cards.m() === 32)) {
36178
36178
  $this.b8f_1.w(VOID, 'Cards count should be 32, ' + ("but it's: " + cards.m() + ', ') + ('cards: ' + toString(sortedWith(cards, CardIndexComparator_instance))));
36179
36179
  return createCardsIfNeeded$default($this);
@@ -42067,7 +42067,7 @@
42067
42067
  protoOf(RoundEndedAction).y5i = function () {
42068
42068
  return this.gameId;
42069
42069
  };
42070
- protoOf(RoundEndedAction).b88 = function () {
42070
+ protoOf(RoundEndedAction).k88 = function () {
42071
42071
  return this.roundNumber;
42072
42072
  };
42073
42073
  protoOf(RoundEndedAction).c8p = function () {
@@ -51051,7 +51051,7 @@
51051
51051
  defineProp(protoOf(GameHistory), 'lastRoundHistory', protoOf(GameHistory).u87);
51052
51052
  defineProp(protoOf(GameHistory), 'isFirstRound', protoOf(GameHistory).v87);
51053
51053
  defineProp(protoOf(GameHistory), 'roundsCount', protoOf(GameHistory).w87);
51054
- defineProp(protoOf(RoundHistory), 'contractStateName', protoOf(RoundHistory).g88);
51054
+ defineProp(protoOf(RoundHistory), 'contractStateName', protoOf(RoundHistory).f88);
51055
51055
  defineProp(protoOf(RoundHistoryItem), 'createdAt', function () {
51056
51056
  return this.i84();
51057
51057
  });