raspberry_games_server_game_logic 1.8.268 → 1.8.270
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.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +239 -257
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +614 -604
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1222,7 +1222,7 @@
|
|
|
1222
1222
|
tmp = types;
|
|
1223
1223
|
}
|
|
1224
1224
|
types = tmp;
|
|
1225
|
-
return $super === VOID ? this.
|
|
1225
|
+
return $super === VOID ? this.z96(key, types) : $super.z96.call(this, key, types);
|
|
1226
1226
|
}
|
|
1227
1227
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1228
1228
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
|
|
@@ -1230,7 +1230,7 @@
|
|
|
1230
1230
|
dealerStrategy = dealerStrategy === VOID ? null : dealerStrategy;
|
|
1231
1231
|
mode = mode === VOID ? null : mode;
|
|
1232
1232
|
league = league === VOID ? null : league;
|
|
1233
|
-
return this.
|
|
1233
|
+
return this.a97(points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, mode, league);
|
|
1234
1234
|
}
|
|
1235
1235
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1236
1236
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', GameHelperImpl, VOID, [GameHelper]);
|
|
@@ -1243,7 +1243,7 @@
|
|
|
1243
1243
|
tmp = existingNicknames;
|
|
1244
1244
|
}
|
|
1245
1245
|
existingNicknames = tmp;
|
|
1246
|
-
return this.
|
|
1246
|
+
return this.b97(playerId, existingNicknames);
|
|
1247
1247
|
}
|
|
1248
1248
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1249
1249
|
initMetadataForCompanion(Companion_150);
|
|
@@ -40016,6 +40016,7 @@
|
|
|
40016
40016
|
if (action instanceof PlayerReadyFromClientAction) {
|
|
40017
40017
|
tmp = this.t8f(table.gameInfo.round);
|
|
40018
40018
|
} else {
|
|
40019
|
+
this.q8f_1.w("generateTagFromAction: can't generate tag for " + toString(action));
|
|
40019
40020
|
tmp = null;
|
|
40020
40021
|
}
|
|
40021
40022
|
}
|
|
@@ -40047,7 +40048,7 @@
|
|
|
40047
40048
|
if (answerAction instanceof PlayerReadyMechanicAction) {
|
|
40048
40049
|
tmp = this.t8f(table.gameInfo.round);
|
|
40049
40050
|
} else {
|
|
40050
|
-
this.q8f_1.w("
|
|
40051
|
+
this.q8f_1.w("generateTagFromAction: can't generate tag for " + toString(answerAction));
|
|
40051
40052
|
tmp = null;
|
|
40052
40053
|
}
|
|
40053
40054
|
}
|
|
@@ -40074,7 +40075,7 @@
|
|
|
40074
40075
|
return 'v4:CALC_POINTS:' + ('round_' + round.roundNumber);
|
|
40075
40076
|
};
|
|
40076
40077
|
protoOf(PlayerTurnTagProvider).r8f = function (sceneId, round) {
|
|
40077
|
-
return 'v4:' + (sceneId + ':') + '
|
|
40078
|
+
return 'v4:' + (sceneId + ':') + 'waiting:' + ('round_' + round.roundNumber);
|
|
40078
40079
|
};
|
|
40079
40080
|
protoOf(PlayerTurnTagProvider).v8l = function (sceneId, round, type) {
|
|
40080
40081
|
return 'v4:' + (sceneId + ':') + 'COMBINATION:' + (type.toString() + ':') + ('round_' + round.roundNumber);
|
|
@@ -49523,10 +49524,7 @@
|
|
|
49523
49524
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.BaseMechanicLifecycleReducer.onFinishing.<anonymous>' call
|
|
49524
49525
|
this.q93_1.r5n(tmp1_safe_receiver);
|
|
49525
49526
|
}
|
|
49526
|
-
|
|
49527
|
-
var tmp3_terminationState = new TerminationState(action.p8q_1, action.r8q_1);
|
|
49528
|
-
var tmp4_tableOrNull = this.p93_1.r93(state.g6n());
|
|
49529
|
-
return state.g8p(tmp4_tableOrNull, VOID, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
49527
|
+
return state.g8p(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.p8q_1, action.r8q_1));
|
|
49530
49528
|
};
|
|
49531
49529
|
protoOf(BaseMechanicLifecycleReducer).k93 = function (state, action) {
|
|
49532
49530
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
@@ -49535,7 +49533,7 @@
|
|
|
49535
49533
|
return state.g8p(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.t8q_1) : tmp1_elvis_lhs);
|
|
49536
49534
|
};
|
|
49537
49535
|
protoOf(BaseMechanicLifecycleReducer).j93 = function (state, action) {
|
|
49538
|
-
return state.g8p(this.p93_1.
|
|
49536
|
+
return state.g8p(this.p93_1.r93(state.g6n()));
|
|
49539
49537
|
};
|
|
49540
49538
|
protoOf(BaseMechanicLifecycleReducer).i93 = function (state, action) {
|
|
49541
49539
|
var tmp0_safe_receiver = state.e6m_1;
|
|
@@ -49566,12 +49564,12 @@
|
|
|
49566
49564
|
return value1.id === value2.id;
|
|
49567
49565
|
}
|
|
49568
49566
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
49569
|
-
this.
|
|
49570
|
-
this.
|
|
49571
|
-
this.
|
|
49572
|
-
this.
|
|
49567
|
+
this.s93_1 = pointsInteractor;
|
|
49568
|
+
this.t93_1 = playerHappinessProvider;
|
|
49569
|
+
this.u93_1 = logger;
|
|
49570
|
+
this.v93_1 = dealerConfig;
|
|
49573
49571
|
}
|
|
49574
|
-
protoOf(PlayerHandReducer).
|
|
49572
|
+
protoOf(PlayerHandReducer).w93 = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
49575
49573
|
// Inline function 'kotlin.collections.map' call
|
|
49576
49574
|
// Inline function 'kotlin.collections.mapTo' call
|
|
49577
49575
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -49579,7 +49577,7 @@
|
|
|
49579
49577
|
while (tmp0_iterator.k()) {
|
|
49580
49578
|
var item = tmp0_iterator.l();
|
|
49581
49579
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.PlayerHandReducer.playerHandReducerAddRecord.<anonymous>' call
|
|
49582
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
49580
|
+
var tmp$ret$0 = mapToRecord(item, this.s93_1.d8j(item));
|
|
49583
49581
|
destination.e(tmp$ret$0);
|
|
49584
49582
|
}
|
|
49585
49583
|
var combinationRecords = destination;
|
|
@@ -49615,8 +49613,8 @@
|
|
|
49615
49613
|
return hand.y6w(VOID, VOID, plus(hand.y6t_1, combinationRecords), plus(hand.z6t_1, combinationRecords));
|
|
49616
49614
|
}
|
|
49617
49615
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
49618
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
49619
|
-
var tmp_0 = this.
|
|
49616
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.v93_1.dealerStrategy : tmp0_elvis_lhs;
|
|
49617
|
+
var tmp_0 = this.s93_1.c8j(cards, selectedTrump, dealerStrategy);
|
|
49620
49618
|
// Inline function 'kotlin.collections.map' call
|
|
49621
49619
|
// Inline function 'kotlin.collections.mapTo' call
|
|
49622
49620
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -49628,11 +49626,11 @@
|
|
|
49628
49626
|
destination_0.e(tmp$ret$5);
|
|
49629
49627
|
}
|
|
49630
49628
|
var value = tmp_0 + sum(destination_0);
|
|
49631
|
-
var luckyFactor = this.
|
|
49632
|
-
Companion_instance_148.b8j(this.
|
|
49629
|
+
var luckyFactor = this.t93_1.i8d(value, config.playersMode, dealerStrategy);
|
|
49630
|
+
Companion_instance_148.b8j(this.u93_1, 'equaliseCards: earn points for = ' + playerId + ' ' + ('luckyFactor: ' + luckyFactor + ', ') + ('currentLuckyFactor: ' + hand.g6u() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.m() + ', '));
|
|
49633
49631
|
return hand.y6w(VOID, plus(hand.x6t_1, listOf_0(Companion_instance_16.s6w(luckyFactor, value))), plus(hand.y6t_1, combinationRecords), plus(hand.z6t_1, combinationRecords));
|
|
49634
49632
|
};
|
|
49635
|
-
protoOf(PlayerHandReducer).
|
|
49633
|
+
protoOf(PlayerHandReducer).x93 = function (hand, combinations) {
|
|
49636
49634
|
// Inline function 'kotlin.collections.map' call
|
|
49637
49635
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
49638
49636
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -49641,20 +49639,20 @@
|
|
|
49641
49639
|
while (tmp0_iterator.k()) {
|
|
49642
49640
|
var item = tmp0_iterator.l();
|
|
49643
49641
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.PlayerHandReducer.playerHandCombinationsReducer.<anonymous>' call
|
|
49644
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
49642
|
+
var tmp$ret$0 = mapToRecord(item, this.s93_1.d8j(item));
|
|
49645
49643
|
destination.e(tmp$ret$0);
|
|
49646
49644
|
}
|
|
49647
49645
|
var combinationRecords = destination;
|
|
49648
49646
|
var tmp = updateOrAddItems(hand.y6t_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
49649
49647
|
return hand.y6w(VOID, VOID, tmp, updateOrAddItems(hand.z6t_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
49650
49648
|
};
|
|
49651
|
-
protoOf(PlayerHandReducer).
|
|
49649
|
+
protoOf(PlayerHandReducer).y93 = function (playerId, hand, updatedCombinations, config) {
|
|
49652
49650
|
if (updatedCombinations.p()) {
|
|
49653
49651
|
return hand;
|
|
49654
49652
|
}
|
|
49655
49653
|
var previousFactor = hand.j6u();
|
|
49656
49654
|
if (previousFactor.i6u_1 === 0.0) {
|
|
49657
|
-
return this.
|
|
49655
|
+
return this.x93(hand, updatedCombinations);
|
|
49658
49656
|
}
|
|
49659
49657
|
// Inline function 'kotlin.collections.map' call
|
|
49660
49658
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -49663,7 +49661,7 @@
|
|
|
49663
49661
|
while (tmp0_iterator.k()) {
|
|
49664
49662
|
var item = tmp0_iterator.l();
|
|
49665
49663
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.PlayerHandReducer.playerHandCombinationsWithFactorReducer.<anonymous>' call
|
|
49666
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
49664
|
+
var tmp$ret$0 = mapToRecord(item, this.s93_1.d8j(item));
|
|
49667
49665
|
destination.e(tmp$ret$0);
|
|
49668
49666
|
}
|
|
49669
49667
|
var updatedCombinationRecords = destination;
|
|
@@ -49727,9 +49725,9 @@
|
|
|
49727
49725
|
}
|
|
49728
49726
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
49729
49727
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
49730
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
49731
|
-
var updatedLuckyFactor = this.
|
|
49732
|
-
Companion_instance_148.b8j(this.
|
|
49728
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.v93_1.dealerStrategy : tmp0_elvis_lhs;
|
|
49729
|
+
var updatedLuckyFactor = this.t93_1.i8d(updatedValue, config.playersMode, dealerStrategy);
|
|
49730
|
+
Companion_instance_148.b8j(this.u93_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('luckyFactor: ' + updatedLuckyFactor + ', ') + ('currentLuckyFactor: ' + hand.g6u() + ', ') + ('value: ' + updatedValue + ', '));
|
|
49733
49731
|
// Inline function 'kotlin.collections.map' call
|
|
49734
49732
|
var this_1 = hand.x6t_1;
|
|
49735
49733
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -49754,7 +49752,7 @@
|
|
|
49754
49752
|
protoOf(PlayerSceneReducer).i8o = function (player, cards, whoShuffleCardsPlayerId) {
|
|
49755
49753
|
return player.r6t(VOID, VOID, cards, player.z6s_1.j6x(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
49756
49754
|
};
|
|
49757
|
-
protoOf(PlayerSceneReducer).
|
|
49755
|
+
protoOf(PlayerSceneReducer).z93 = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
49758
49756
|
// Inline function 'kotlin.collections.map' call
|
|
49759
49757
|
// Inline function 'kotlin.collections.mapTo' call
|
|
49760
49758
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -49768,7 +49766,7 @@
|
|
|
49768
49766
|
}
|
|
49769
49767
|
var detailedCombinations = destination;
|
|
49770
49768
|
var cards = plus(player.y6s_1, distributedCards);
|
|
49771
|
-
var hand = this.h8o_1.
|
|
49769
|
+
var hand = this.h8o_1.w93(player.playerId, player.a6t_1, cards, detailedCombinations, selectedTrump, config);
|
|
49772
49770
|
var tmp;
|
|
49773
49771
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
49774
49772
|
if (!combinations.p()) {
|
|
@@ -49779,7 +49777,7 @@
|
|
|
49779
49777
|
var tmp0_points = tmp;
|
|
49780
49778
|
return player.r6t(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
49781
49779
|
};
|
|
49782
|
-
protoOf(PlayerSceneReducer).
|
|
49780
|
+
protoOf(PlayerSceneReducer).a94 = function (player, sceneData) {
|
|
49783
49781
|
// Inline function 'kotlin.collections.single' call
|
|
49784
49782
|
var single = null;
|
|
49785
49783
|
var found = false;
|
|
@@ -49816,7 +49814,7 @@
|
|
|
49816
49814
|
var tmp10_earnedPoints = playerPointsCell.g6z_1;
|
|
49817
49815
|
var tmp11_earnedCards = emptyList();
|
|
49818
49816
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
49819
|
-
var tmp15_hand = this.h8o_1.
|
|
49817
|
+
var tmp15_hand = this.h8o_1.x93(player.a6t_1, updatedCombinations);
|
|
49820
49818
|
return player.r6t(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
49821
49819
|
};
|
|
49822
49820
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -49855,7 +49853,7 @@
|
|
|
49855
49853
|
this.i8l_1 = gameHistoryReducer;
|
|
49856
49854
|
this.j8l_1 = engineLogicConfig;
|
|
49857
49855
|
}
|
|
49858
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
49856
|
+
protoOf(PlayerTurnMechanicReducer).b94 = function (table, model) {
|
|
49859
49857
|
// Inline function 'com.logic.utils.copy' call
|
|
49860
49858
|
var this_0 = table.players;
|
|
49861
49859
|
// Inline function 'kotlin.apply' call
|
|
@@ -49886,7 +49884,7 @@
|
|
|
49886
49884
|
this.h8l_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
49887
49885
|
return newTable;
|
|
49888
49886
|
};
|
|
49889
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
49887
|
+
protoOf(PlayerTurnMechanicReducer).c94 = function (table, model) {
|
|
49890
49888
|
var player = getPlayer(table.players, model.q66());
|
|
49891
49889
|
if (player.x6s_1.c68_1 == null) {
|
|
49892
49890
|
this.h8l_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.g6v_1));
|
|
@@ -49901,7 +49899,7 @@
|
|
|
49901
49899
|
var player = getPlayer(table.players, action.f8r_1);
|
|
49902
49900
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, player.x6s_1.q69(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
49903
49901
|
};
|
|
49904
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
49902
|
+
protoOf(PlayerTurnMechanicReducer).d94 = function (table) {
|
|
49905
49903
|
// Inline function 'kotlin.collections.map' call
|
|
49906
49904
|
var this_0 = table.players;
|
|
49907
49905
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -49940,7 +49938,7 @@
|
|
|
49940
49938
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
49941
49939
|
tmp = tmp6_$this.q69(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
49942
49940
|
}
|
|
49943
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.r6t(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.i8l_1.
|
|
49941
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.r6t(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.i8l_1.i94(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
49944
49942
|
};
|
|
49945
49943
|
protoOf(PlayerTurnMechanicReducer).k8l = function (config) {
|
|
49946
49944
|
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.h8l_1);
|
|
@@ -50002,7 +50000,7 @@
|
|
|
50002
50000
|
var tmp3_playersCards = scene.v78_1;
|
|
50003
50001
|
var tmp4_whoShuffleCardsPlayerId = scene.z78_1;
|
|
50004
50002
|
var tmp5_randomData = scene.w78_1;
|
|
50005
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
50003
|
+
var tmp8_gameHistory = tmp1_$this.j94(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
50006
50004
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
50007
50005
|
case 'EARN_POINTS':
|
|
50008
50006
|
var tmp$ret$5;
|
|
@@ -50066,14 +50064,14 @@
|
|
|
50066
50064
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g2(item_1.playerId);
|
|
50067
50065
|
var tmp4_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
50068
50066
|
var tmp5_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
50069
|
-
var tmp$ret$12 = tmp2_$this.
|
|
50067
|
+
var tmp$ret$12 = tmp2_$this.z93(item_1, tmp3_distributedCards, tmp4_combinations, config, players, tmp5_selectedTrump);
|
|
50070
50068
|
destination_1.e(tmp$ret$12);
|
|
50071
50069
|
}
|
|
50072
50070
|
|
|
50073
50071
|
var tmp9_$this = $this.g92_1;
|
|
50074
50072
|
var tmp10_gameHistory = table.gameHistory;
|
|
50075
50073
|
var tmp11_playersCards = scene_0.b79_1;
|
|
50076
|
-
var tmp13_gameHistory = tmp9_$this.
|
|
50074
|
+
var tmp13_gameHistory = tmp9_$this.k94(tmp11_playersCards, tmp10_gameHistory);
|
|
50077
50075
|
return table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, sceneInfo, VOID, VOID, newCardDeck, VOID, VOID, tmp13_gameHistory);
|
|
50078
50076
|
case 'CALC_POINTS':
|
|
50079
50077
|
var tmp$ret$15;
|
|
@@ -50097,7 +50095,7 @@
|
|
|
50097
50095
|
while (tmp0_iterator_2.k()) {
|
|
50098
50096
|
var item_2 = tmp0_iterator_2.l();
|
|
50099
50097
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.SceneReducer.onCurrentScene.<anonymous>' call
|
|
50100
|
-
var tmp$ret$16 = $this.d92_1.
|
|
50098
|
+
var tmp$ret$16 = $this.d92_1.a94(item_2, calcPointsSceneData);
|
|
50101
50099
|
destination_2.e(tmp$ret$16);
|
|
50102
50100
|
}
|
|
50103
50101
|
|
|
@@ -50143,7 +50141,7 @@
|
|
|
50143
50141
|
|
|
50144
50142
|
var tmp22_playersGameAnalytics = tmp_4;
|
|
50145
50143
|
var tmp23_playersAchievements = calcPointsSceneData.p78_1;
|
|
50146
|
-
var tmp24_gameHistory = tmp15_$this.
|
|
50144
|
+
var tmp24_gameHistory = tmp15_$this.l94(tmp17_points, tmp16_gameHistory, tmp18_roundContractState, tmp19_roundCommitted, tmp20_roundWinners, tmp21_gameWinners, tmp22_playersGameAnalytics, tmp23_playersAchievements);
|
|
50147
50145
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp24_gameHistory);
|
|
50148
50146
|
default:
|
|
50149
50147
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -50176,12 +50174,12 @@
|
|
|
50176
50174
|
}
|
|
50177
50175
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
50178
50176
|
return function (tbl) {
|
|
50179
|
-
return this$0.e92_1.
|
|
50177
|
+
return this$0.e92_1.d94(tbl);
|
|
50180
50178
|
};
|
|
50181
50179
|
}
|
|
50182
50180
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
50183
50181
|
return function (tbl) {
|
|
50184
|
-
return this$0.f92_1.
|
|
50182
|
+
return this$0.f92_1.m94(tbl);
|
|
50185
50183
|
};
|
|
50186
50184
|
}
|
|
50187
50185
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
@@ -50287,7 +50285,7 @@
|
|
|
50287
50285
|
var tmp3_gameHistory = table.gameHistory;
|
|
50288
50286
|
var tmp4_players = table.players;
|
|
50289
50287
|
var tmp5_playersMode = table.config.playersMode;
|
|
50290
|
-
tmp_0 = state.g8p(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
50288
|
+
tmp_0 = state.g8p(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.n94(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
50291
50289
|
}
|
|
50292
50290
|
return tmp_0;
|
|
50293
50291
|
};
|
|
@@ -50316,7 +50314,7 @@
|
|
|
50316
50314
|
this.q92_1 = playerHandReducer;
|
|
50317
50315
|
this.r92_1 = gameHistoryReducer;
|
|
50318
50316
|
}
|
|
50319
|
-
protoOf(CombinationsMechanicReducer).
|
|
50317
|
+
protoOf(CombinationsMechanicReducer).o94 = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
50320
50318
|
var bellaCombination = first(playerCombinations.q88_1);
|
|
50321
50319
|
var player = getPlayer(players, playerCombinations.p88_1);
|
|
50322
50320
|
if (bellaCombination.g6y_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -50426,7 +50424,7 @@
|
|
|
50426
50424
|
var tmp0_$this = this.q92_1;
|
|
50427
50425
|
var tmp1_playerId = item_1.playerId;
|
|
50428
50426
|
var tmp2_hand = item_1.a6t_1;
|
|
50429
|
-
var tmp_1 = tmp0_$this.
|
|
50427
|
+
var tmp_1 = tmp0_$this.y93(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
50430
50428
|
tmp = item_1.r6t(VOID, VOID, VOID, VOID, tmp_1, item_1.b6t_1.l6x(VOID, updateOrAddItems(item_1.b6t_1.l6u_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
50431
50429
|
} else {
|
|
50432
50430
|
tmp = item_1;
|
|
@@ -50434,7 +50432,7 @@
|
|
|
50434
50432
|
var tmp$ret$17 = tmp;
|
|
50435
50433
|
destination_4.e(tmp$ret$17);
|
|
50436
50434
|
}
|
|
50437
|
-
return state.g8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.r92_1.
|
|
50435
|
+
return state.g8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.r92_1.p94(action.n8r_1, table.gameHistory)));
|
|
50438
50436
|
};
|
|
50439
50437
|
protoOf(CombinationsMechanicReducer).c93 = function (state, action) {
|
|
50440
50438
|
var table = state.g6n();
|
|
@@ -50500,10 +50498,10 @@
|
|
|
50500
50498
|
var newCards = this.p92_1.t65(cards, trumpSevenCard);
|
|
50501
50499
|
var tmp1_cards = this.p92_1.u65(newCards, trumpCard);
|
|
50502
50500
|
var tmp3_players = updateItem(table.players, player.r6t(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
50503
|
-
var tmp4_gameHistory = this.r92_1.
|
|
50501
|
+
var tmp4_gameHistory = this.r92_1.q94(player.playerId, listOf_0(announcedCombination.f6y_1), VOID, table.gameHistory);
|
|
50504
50502
|
return state.g8p(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
50505
50503
|
case 12:
|
|
50506
|
-
return state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.r92_1.
|
|
50504
|
+
return state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.r92_1.q94(player.playerId, listOf_0(announcedCombination.f6y_1), VOID, table.gameHistory)));
|
|
50507
50505
|
default:
|
|
50508
50506
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
50509
50507
|
}
|
|
@@ -50604,7 +50602,7 @@
|
|
|
50604
50602
|
}
|
|
50605
50603
|
var tmp2_combinations = tmp;
|
|
50606
50604
|
var tmp4_points = tmp0_$this.l6x(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
50607
|
-
var tmp5_hand = $this.y92_1.
|
|
50605
|
+
var tmp5_hand = $this.y92_1.x93(player.a6t_1, combinations);
|
|
50608
50606
|
return player.r6t(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
50609
50607
|
}
|
|
50610
50608
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
@@ -50647,7 +50645,7 @@
|
|
|
50647
50645
|
}
|
|
50648
50646
|
}
|
|
50649
50647
|
var tmp$ret$2 = tmp$ret$1;
|
|
50650
|
-
tmp_0 = $this.t92_1.
|
|
50648
|
+
tmp_0 = $this.t92_1.o94(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
50651
50649
|
} else {
|
|
50652
50650
|
tmp_0 = null;
|
|
50653
50651
|
}
|
|
@@ -50746,7 +50744,7 @@
|
|
|
50746
50744
|
var tmp$ret$0 = item.o77_1;
|
|
50747
50745
|
destination.e(tmp$ret$0);
|
|
50748
50746
|
}
|
|
50749
|
-
tmp = this.x92_1.
|
|
50747
|
+
tmp = this.x92_1.q94(tmp_0, destination, VOID, table.gameHistory);
|
|
50750
50748
|
}
|
|
50751
50749
|
var tmp1_elvis_lhs = tmp;
|
|
50752
50750
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
@@ -50796,7 +50794,7 @@
|
|
|
50796
50794
|
destination_1.e(tmp$ret$6);
|
|
50797
50795
|
}
|
|
50798
50796
|
var tmp3_gameInfo = table.gameInfo.h86(VOID, VOID, table.gameInfo.round.copy(VOID, action.m8m_1));
|
|
50799
|
-
var tmp4_gameHistory = this.x92_1.
|
|
50797
|
+
var tmp4_gameHistory = this.x92_1.r94(action.l8m_1, bribe, action.m8m_1, playersCombinations, table.gameHistory);
|
|
50800
50798
|
return state.g8p(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
50801
50799
|
};
|
|
50802
50800
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -50804,7 +50802,7 @@
|
|
|
50804
50802
|
return metadata;
|
|
50805
50803
|
}
|
|
50806
50804
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
50807
|
-
$this.
|
|
50805
|
+
$this.h94_1.w('GameHistory', 'Random data is different for previous');
|
|
50808
50806
|
}
|
|
50809
50807
|
var tmp0_safe_receiver = metadata.randomData;
|
|
50810
50808
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.copy(VOID, VOID, plus(metadata.randomData.indexes, randomData.indexes));
|
|
@@ -50815,12 +50813,12 @@
|
|
|
50815
50813
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
|
|
50816
50814
|
}
|
|
50817
50815
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
50818
|
-
this.
|
|
50819
|
-
this.
|
|
50820
|
-
this.
|
|
50821
|
-
this.
|
|
50816
|
+
this.e94_1 = pointsInteractor;
|
|
50817
|
+
this.f94_1 = teamsLogicProvider;
|
|
50818
|
+
this.g94_1 = gameLogicConfig;
|
|
50819
|
+
this.h94_1 = logger;
|
|
50822
50820
|
}
|
|
50823
|
-
protoOf(GameHistoryReducer).
|
|
50821
|
+
protoOf(GameHistoryReducer).s94 = function (gameHistory) {
|
|
50824
50822
|
var roundNumber = gameHistory.rounds.length;
|
|
50825
50823
|
// Inline function 'kotlin.collections.plus' call
|
|
50826
50824
|
var this_0 = gameHistory.rounds;
|
|
@@ -50832,7 +50830,7 @@
|
|
|
50832
50830
|
var tmp$ret$4 = this_0.concat(tmp$ret$3);
|
|
50833
50831
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
50834
50832
|
};
|
|
50835
|
-
protoOf(GameHistoryReducer).
|
|
50833
|
+
protoOf(GameHistoryReducer).j94 = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
50836
50834
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
50837
50835
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.w7k_1, System_instance.i52());
|
|
50838
50836
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -50852,14 +50850,14 @@
|
|
|
50852
50850
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
50853
50851
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_143.initial() : tmp0_elvis_lhs));
|
|
50854
50852
|
};
|
|
50855
|
-
protoOf(GameHistoryReducer).
|
|
50853
|
+
protoOf(GameHistoryReducer).n94 = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
50856
50854
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
50857
50855
|
var tmp;
|
|
50858
50856
|
if (playersMode.isTeamGame) {
|
|
50859
50857
|
// Inline function 'kotlin.arrayOf' call
|
|
50860
50858
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
50861
50859
|
// Inline function 'kotlin.js.asDynamic' call
|
|
50862
|
-
tmp = [playerId, this.
|
|
50860
|
+
tmp = [playerId, this.f94_1.x8c(playerId, players).playerId];
|
|
50863
50861
|
} else {
|
|
50864
50862
|
// Inline function 'kotlin.arrayOf' call
|
|
50865
50863
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -50869,7 +50867,7 @@
|
|
|
50869
50867
|
var roundCommitted = tmp;
|
|
50870
50868
|
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_1(currentRoundHistory.items, listOf_0(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.i52()))), roundCommitted)));
|
|
50871
50869
|
};
|
|
50872
|
-
protoOf(GameHistoryReducer).
|
|
50870
|
+
protoOf(GameHistoryReducer).k94 = function (playersCards, gameHistory) {
|
|
50873
50871
|
// Inline function 'kotlin.collections.mapValues' call
|
|
50874
50872
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
50875
50873
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.m()));
|
|
@@ -50885,14 +50883,14 @@
|
|
|
50885
50883
|
}
|
|
50886
50884
|
return addItemsToCurrentRound(gameHistory, this, listOf_0(new PlayersCardsItem(destination, 1, System_instance.i52())));
|
|
50887
50885
|
};
|
|
50888
|
-
protoOf(GameHistoryReducer).
|
|
50886
|
+
protoOf(GameHistoryReducer).t94 = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
50889
50887
|
return addItemsToCurrentRound(gameHistory, this, listOf_0(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.i52())));
|
|
50890
50888
|
};
|
|
50891
|
-
protoOf(GameHistoryReducer).
|
|
50889
|
+
protoOf(GameHistoryReducer).q94 = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
50892
50890
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
50893
|
-
return $super === VOID ? this.
|
|
50891
|
+
return $super === VOID ? this.t94(playerId, combinations, combinationsStates, gameHistory) : $super.t94.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
50894
50892
|
};
|
|
50895
|
-
protoOf(GameHistoryReducer).
|
|
50893
|
+
protoOf(GameHistoryReducer).r94 = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
50896
50894
|
var tmp = listOf_0(new BribeItem(whoGotBribePlayerId, bribe.i7h_1, numberOfBribe, System_instance.i52()));
|
|
50897
50895
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
50898
50896
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -50958,7 +50956,7 @@
|
|
|
50958
50956
|
}
|
|
50959
50957
|
return addItemsToCurrentRound(gameHistory, this, plus(tmp, destination));
|
|
50960
50958
|
};
|
|
50961
|
-
protoOf(GameHistoryReducer).
|
|
50959
|
+
protoOf(GameHistoryReducer).p94 = function (winnerCombinations, gameHistory) {
|
|
50962
50960
|
// Inline function 'kotlin.collections.map' call
|
|
50963
50961
|
// Inline function 'kotlin.collections.mapTo' call
|
|
50964
50962
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -50975,7 +50973,7 @@
|
|
|
50975
50973
|
}
|
|
50976
50974
|
return addItemsToCurrentRound(gameHistory, this, destination);
|
|
50977
50975
|
};
|
|
50978
|
-
protoOf(GameHistoryReducer).
|
|
50976
|
+
protoOf(GameHistoryReducer).i94 = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
50979
50977
|
if (playerConnection == null) {
|
|
50980
50978
|
return gameHistory;
|
|
50981
50979
|
}
|
|
@@ -50987,17 +50985,17 @@
|
|
|
50987
50985
|
tmp = false;
|
|
50988
50986
|
}
|
|
50989
50987
|
var isShortDisconnectState = tmp;
|
|
50990
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
50988
|
+
if (isSupportedReason && !isShortDisconnectState || this.g94_1.verboseGameHistory) {
|
|
50991
50989
|
return addItemsToCurrentRound(gameHistory, this, listOf_0(new PlayerConnectionItem(playerId, playerConnection.j68_1, playerConnection.r68(), System_instance.i52())));
|
|
50992
50990
|
}
|
|
50993
50991
|
return gameHistory;
|
|
50994
50992
|
};
|
|
50995
|
-
protoOf(GameHistoryReducer).
|
|
50993
|
+
protoOf(GameHistoryReducer).l94 = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
50996
50994
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
50997
50995
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
50998
50996
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_143.initial() : tmp0_elvis_lhs;
|
|
50999
50997
|
var tmp;
|
|
51000
|
-
if (this.
|
|
50998
|
+
if (this.g94_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
51001
50999
|
// Inline function 'kotlin.collections.map' call
|
|
51002
51000
|
// Inline function 'kotlin.collections.mapTo' call
|
|
51003
51001
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -51013,7 +51011,7 @@
|
|
|
51013
51011
|
tmp = currentMetadata;
|
|
51014
51012
|
}
|
|
51015
51013
|
var updatedMetadata = tmp;
|
|
51016
|
-
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
51014
|
+
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.e94_1.h8k(points), System_instance.i52())));
|
|
51017
51015
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
51018
51016
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
51019
51017
|
};
|
|
@@ -51039,7 +51037,7 @@
|
|
|
51039
51037
|
tmp = cardDeck;
|
|
51040
51038
|
}
|
|
51041
51039
|
var newCardDeck = tmp;
|
|
51042
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
51040
|
+
return new PreviousRound(bribes, newCardDeck, $this.w94_1.i8k(players, config));
|
|
51043
51041
|
}
|
|
51044
51042
|
function roundFinishedGameInfoReducer($this, table) {
|
|
51045
51043
|
var gameInfo = table.gameInfo;
|
|
@@ -51066,18 +51064,16 @@
|
|
|
51066
51064
|
function roundFinishedPlayerReducer($this, player) {
|
|
51067
51065
|
var tmp0_options = roundFinishedPlayerOptionReducer($this, player.z6s_1);
|
|
51068
51066
|
var tmp1_points = roundFinishedPlayerReducer_0($this, player.b6t_1);
|
|
51069
|
-
var
|
|
51070
|
-
var
|
|
51071
|
-
|
|
51072
|
-
return player.r6t(VOID, tmp2_state, tmp4_cards, tmp0_options, tmp3_hand, tmp1_points);
|
|
51067
|
+
var tmp2_hand = Companion_instance_17.u6w(player.a6t_1);
|
|
51068
|
+
var tmp3_cards = emptyList();
|
|
51069
|
+
return player.r6t(VOID, VOID, tmp3_cards, tmp0_options, tmp2_hand, tmp1_points);
|
|
51073
51070
|
}
|
|
51074
51071
|
function gameFinishedPlayerReducer($this, player) {
|
|
51075
51072
|
var tmp0_options = gameFinishedPlayerOptionReducer($this, player.z6s_1);
|
|
51076
51073
|
var tmp1_points = gameFinishedPlayerReducer_0($this, player.b6t_1);
|
|
51077
|
-
var
|
|
51078
|
-
var
|
|
51079
|
-
|
|
51080
|
-
return player.r6t(VOID, tmp2_state, tmp4_cards, tmp0_options, tmp3_hand, tmp1_points);
|
|
51074
|
+
var tmp2_hand = Companion_instance_17.v6w(player.a6t_1);
|
|
51075
|
+
var tmp3_cards = emptyList();
|
|
51076
|
+
return player.r6t(VOID, VOID, tmp3_cards, tmp0_options, tmp2_hand, tmp1_points);
|
|
51081
51077
|
}
|
|
51082
51078
|
function roundFinishedPlayerOptionReducer($this, options) {
|
|
51083
51079
|
var tmp0_numberOfCircle = RoundNumber_CIRCLE_NOT_STARTED_getInstance();
|
|
@@ -51094,10 +51090,10 @@
|
|
|
51094
51090
|
return points.k6x(0, emptyList(), emptyList());
|
|
51095
51091
|
}
|
|
51096
51092
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
51097
|
-
this.
|
|
51098
|
-
this.
|
|
51093
|
+
this.w94_1 = pointsInteractor;
|
|
51094
|
+
this.x94_1 = historyReducer;
|
|
51099
51095
|
}
|
|
51100
|
-
protoOf(TableLifecycleReducerImpl).
|
|
51096
|
+
protoOf(TableLifecycleReducerImpl).u94 = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
51101
51097
|
var tmp = Companion_instance_131;
|
|
51102
51098
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
51103
51099
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -51132,20 +51128,6 @@
|
|
|
51132
51128
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
51133
51129
|
};
|
|
51134
51130
|
protoOf(TableLifecycleReducerImpl).r93 = function (table) {
|
|
51135
|
-
// Inline function 'kotlin.collections.map' call
|
|
51136
|
-
var this_0 = table.players;
|
|
51137
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
51138
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
51139
|
-
var tmp0_iterator = this_0.j();
|
|
51140
|
-
while (tmp0_iterator.k()) {
|
|
51141
|
-
var item = tmp0_iterator.l();
|
|
51142
|
-
// Inline function 'games.jass.logic.redux.reducers.sclices.table.TableLifecycleReducerImpl.resetTableReducer.<anonymous>' call
|
|
51143
|
-
var tmp$ret$0 = item.r6t(VOID, Companion_instance_0.p69(item.x6s_1));
|
|
51144
|
-
destination.e(tmp$ret$0);
|
|
51145
|
-
}
|
|
51146
|
-
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
51147
|
-
};
|
|
51148
|
-
protoOf(TableLifecycleReducerImpl).s93 = function (table) {
|
|
51149
51131
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
51150
51132
|
// Inline function 'kotlin.collections.map' call
|
|
51151
51133
|
var this_0 = table.players;
|
|
@@ -51161,10 +51143,10 @@
|
|
|
51161
51143
|
var tmp2_cardsOnTable = emptyList();
|
|
51162
51144
|
var tmp3_bribes = emptyList();
|
|
51163
51145
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
51164
|
-
var tmp5_gameHistory = this.
|
|
51146
|
+
var tmp5_gameHistory = this.x94_1.s94(table.gameHistory);
|
|
51165
51147
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, null, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
51166
51148
|
};
|
|
51167
|
-
protoOf(TableLifecycleReducerImpl).
|
|
51149
|
+
protoOf(TableLifecycleReducerImpl).m94 = function (table) {
|
|
51168
51150
|
// Inline function 'kotlin.collections.map' call
|
|
51169
51151
|
var this_0 = table.players;
|
|
51170
51152
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51176,9 +51158,9 @@
|
|
|
51176
51158
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
51177
51159
|
destination.e(tmp$ret$0);
|
|
51178
51160
|
}
|
|
51179
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
51161
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.x94_1.s94(table.gameHistory));
|
|
51180
51162
|
};
|
|
51181
|
-
protoOf(TableLifecycleReducerImpl).
|
|
51163
|
+
protoOf(TableLifecycleReducerImpl).v94 = function (table, newGameId) {
|
|
51182
51164
|
// Inline function 'kotlin.collections.map' call
|
|
51183
51165
|
var this_0 = table.players;
|
|
51184
51166
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51218,10 +51200,10 @@
|
|
|
51218
51200
|
return true;
|
|
51219
51201
|
}
|
|
51220
51202
|
function _no_name_provided__qut3iv_33($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
51221
|
-
this.
|
|
51222
|
-
this.
|
|
51223
|
-
this.
|
|
51224
|
-
this.
|
|
51203
|
+
this.y94_1 = $isEnableForPlayer;
|
|
51204
|
+
this.z94_1 = $playerTurnInteractor;
|
|
51205
|
+
this.a95_1 = $logger;
|
|
51206
|
+
this.b95_1 = $playerTurnMechanicReducer;
|
|
51225
51207
|
}
|
|
51226
51208
|
protoOf(_no_name_provided__qut3iv_33).j6f = function (action) {
|
|
51227
51209
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -51233,17 +51215,17 @@
|
|
|
51233
51215
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
51234
51216
|
var table = state.g6n();
|
|
51235
51217
|
var player = getPlayer(table.players, action_0.playerId);
|
|
51236
|
-
if (!this.
|
|
51218
|
+
if (!this.y94_1(player)) {
|
|
51237
51219
|
tmp$ret$0 = state;
|
|
51238
51220
|
break $l$block;
|
|
51239
51221
|
}
|
|
51240
|
-
var turnModel = this.
|
|
51222
|
+
var turnModel = this.z94_1.o8l(player, action_0);
|
|
51241
51223
|
var tmp;
|
|
51242
51224
|
if (turnModel == null) {
|
|
51243
|
-
this.
|
|
51225
|
+
this.a95_1.w(VOID, 'TAG is null, action: ' + toString(action_0) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
51244
51226
|
tmp = state;
|
|
51245
51227
|
} else {
|
|
51246
|
-
tmp = state.g8p(this.
|
|
51228
|
+
tmp = state.g8p(this.b95_1.c94(table, turnModel));
|
|
51247
51229
|
}
|
|
51248
51230
|
tmp$ret$0 = tmp;
|
|
51249
51231
|
}
|
|
@@ -51256,10 +51238,10 @@
|
|
|
51256
51238
|
return true;
|
|
51257
51239
|
}
|
|
51258
51240
|
function _no_name_provided__qut3iv_34($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
51259
|
-
this.
|
|
51260
|
-
this.
|
|
51261
|
-
this.
|
|
51262
|
-
this.
|
|
51241
|
+
this.c95_1 = $isEnableForPlayer;
|
|
51242
|
+
this.d95_1 = $playerTurnInteractor;
|
|
51243
|
+
this.e95_1 = $logger;
|
|
51244
|
+
this.f95_1 = $playerTurnMechanicReducer;
|
|
51263
51245
|
}
|
|
51264
51246
|
protoOf(_no_name_provided__qut3iv_34).j6f = function (action) {
|
|
51265
51247
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -51271,17 +51253,17 @@
|
|
|
51271
51253
|
var action_0 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
51272
51254
|
var table = state.g6n();
|
|
51273
51255
|
var player = getPlayerTurn(action_0, table.players);
|
|
51274
|
-
if (player == null || !this.
|
|
51256
|
+
if (player == null || !this.c95_1(player)) {
|
|
51275
51257
|
tmp$ret$0 = state;
|
|
51276
51258
|
break $l$block;
|
|
51277
51259
|
}
|
|
51278
|
-
var turnModel = this.
|
|
51260
|
+
var turnModel = this.d95_1.o8l(player, action_0);
|
|
51279
51261
|
var tmp;
|
|
51280
51262
|
if (turnModel == null) {
|
|
51281
|
-
this.
|
|
51263
|
+
this.e95_1.w(VOID, 'TAG is null, action: ' + toString(action_0) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
51282
51264
|
tmp = state;
|
|
51283
51265
|
} else {
|
|
51284
|
-
tmp = state.g8p(this.
|
|
51266
|
+
tmp = state.g8p(this.f95_1.c94(table, turnModel));
|
|
51285
51267
|
}
|
|
51286
51268
|
tmp$ret$0 = tmp;
|
|
51287
51269
|
}
|
|
@@ -51295,8 +51277,8 @@
|
|
|
51295
51277
|
return new _no_name_provided__qut3iv_35(playerTurnInteractor, playerTurnMechanicReducer);
|
|
51296
51278
|
}
|
|
51297
51279
|
function _no_name_provided__qut3iv_35($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
51298
|
-
this.
|
|
51299
|
-
this.
|
|
51280
|
+
this.g95_1 = $playerTurnInteractor;
|
|
51281
|
+
this.h95_1 = $playerTurnMechanicReducer;
|
|
51300
51282
|
}
|
|
51301
51283
|
protoOf(_no_name_provided__qut3iv_35).j6f = function (action) {
|
|
51302
51284
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -51307,7 +51289,7 @@
|
|
|
51307
51289
|
// Inline function 'games.jass.logic.redux.reducers.turn.setPlayerTurnReducer.<anonymous>' call
|
|
51308
51290
|
var action_0 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
51309
51291
|
var table = state.g6n();
|
|
51310
|
-
var tmp0_elvis_lhs = this.
|
|
51292
|
+
var tmp0_elvis_lhs = this.g95_1.n8l(action_0, table);
|
|
51311
51293
|
var tmp;
|
|
51312
51294
|
if (tmp0_elvis_lhs == null) {
|
|
51313
51295
|
tmp$ret$0 = state;
|
|
@@ -51316,7 +51298,7 @@
|
|
|
51316
51298
|
tmp = tmp0_elvis_lhs;
|
|
51317
51299
|
}
|
|
51318
51300
|
var turnModel = tmp;
|
|
51319
|
-
tmp$ret$0 = state.g8p(this.
|
|
51301
|
+
tmp$ret$0 = state.g8p(this.h95_1.b94(table, turnModel));
|
|
51320
51302
|
}
|
|
51321
51303
|
return tmp$ret$0;
|
|
51322
51304
|
};
|
|
@@ -51334,7 +51316,7 @@
|
|
|
51334
51316
|
}
|
|
51335
51317
|
function Companion_148() {
|
|
51336
51318
|
}
|
|
51337
|
-
protoOf(Companion_148).
|
|
51319
|
+
protoOf(Companion_148).i95 = function (payload) {
|
|
51338
51320
|
var tmp;
|
|
51339
51321
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
51340
51322
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -51366,27 +51348,27 @@
|
|
|
51366
51348
|
tmp = payloadMapper;
|
|
51367
51349
|
}
|
|
51368
51350
|
payloadMapper = tmp;
|
|
51369
|
-
this.
|
|
51370
|
-
this.
|
|
51351
|
+
this.j95_1 = logger;
|
|
51352
|
+
this.k95_1 = payloadMapper;
|
|
51371
51353
|
}
|
|
51372
51354
|
protoOf(CallbackWrapperLoggerOutput).tm = function (tag, message, payload) {
|
|
51373
|
-
this.
|
|
51355
|
+
this.j95_1.d(tag, message, this.k95_1(payload));
|
|
51374
51356
|
};
|
|
51375
51357
|
protoOf(CallbackWrapperLoggerOutput).um = function (tag, message, exception, payload) {
|
|
51376
|
-
this.
|
|
51358
|
+
this.j95_1.e(tag, message, exception, this.k95_1(payload));
|
|
51377
51359
|
};
|
|
51378
51360
|
protoOf(CallbackWrapperLoggerOutput).xm = function (tag, message, payload) {
|
|
51379
|
-
this.
|
|
51361
|
+
this.j95_1.i(tag, message, this.k95_1(payload));
|
|
51380
51362
|
};
|
|
51381
51363
|
protoOf(CallbackWrapperLoggerOutput).wm = function (tag, message, exception, payload) {
|
|
51382
|
-
this.
|
|
51364
|
+
this.j95_1.v(tag, message, exception, this.k95_1(payload));
|
|
51383
51365
|
};
|
|
51384
51366
|
protoOf(CallbackWrapperLoggerOutput).vm = function (tag, message, exception, payload) {
|
|
51385
|
-
this.
|
|
51367
|
+
this.j95_1.w(tag, message, exception, this.k95_1(payload));
|
|
51386
51368
|
};
|
|
51387
51369
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
51388
|
-
this.
|
|
51389
|
-
this.
|
|
51370
|
+
this.t95_1 = $$this$unsafeFlow;
|
|
51371
|
+
this.u95_1 = $types;
|
|
51390
51372
|
CoroutineImpl.call(this, resultContinuation);
|
|
51391
51373
|
}
|
|
51392
51374
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).t1e = function (value, $completion) {
|
|
@@ -51410,13 +51392,13 @@
|
|
|
51410
51392
|
continue $sm;
|
|
51411
51393
|
case 1:
|
|
51412
51394
|
var tmp_0 = this;
|
|
51413
|
-
tmp_0.
|
|
51395
|
+
tmp_0.x95_1 = this.t95_1;
|
|
51414
51396
|
var tmp_1 = this;
|
|
51415
|
-
tmp_1.
|
|
51416
|
-
var it = this.
|
|
51417
|
-
if (contains(this.
|
|
51397
|
+
tmp_1.y95_1 = this.v95_1;
|
|
51398
|
+
var it = this.y95_1;
|
|
51399
|
+
if (contains(this.u95_1, it.type)) {
|
|
51418
51400
|
this.e9_1 = 3;
|
|
51419
|
-
suspendResult = this.
|
|
51401
|
+
suspendResult = this.x95_1.p18(this.y95_1, this);
|
|
51420
51402
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
51421
51403
|
return suspendResult;
|
|
51422
51404
|
}
|
|
@@ -51435,7 +51417,7 @@
|
|
|
51435
51417
|
this.e9_1 = 4;
|
|
51436
51418
|
continue $sm;
|
|
51437
51419
|
case 3:
|
|
51438
|
-
this.
|
|
51420
|
+
this.w95_1 = suspendResult;
|
|
51439
51421
|
this.e9_1 = 4;
|
|
51440
51422
|
continue $sm;
|
|
51441
51423
|
case 4:
|
|
@@ -51455,8 +51437,8 @@
|
|
|
51455
51437
|
while (true);
|
|
51456
51438
|
};
|
|
51457
51439
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).u1e = function (value, completion) {
|
|
51458
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
51459
|
-
i.
|
|
51440
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.t95_1, this.u95_1, completion);
|
|
51441
|
+
i.v95_1 = value;
|
|
51460
51442
|
return i;
|
|
51461
51443
|
};
|
|
51462
51444
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -51469,8 +51451,8 @@
|
|
|
51469
51451
|
}
|
|
51470
51452
|
function $collectCOROUTINE$3(_this__u8e3s4, collector, resultContinuation) {
|
|
51471
51453
|
CoroutineImpl.call(this, resultContinuation);
|
|
51472
|
-
this.
|
|
51473
|
-
this.
|
|
51454
|
+
this.h96_1 = _this__u8e3s4;
|
|
51455
|
+
this.i96_1 = collector;
|
|
51474
51456
|
}
|
|
51475
51457
|
protoOf($collectCOROUTINE$3).m9 = function () {
|
|
51476
51458
|
var suspendResult = this.g9_1;
|
|
@@ -51481,10 +51463,10 @@
|
|
|
51481
51463
|
case 0:
|
|
51482
51464
|
this.f9_1 = 2;
|
|
51483
51465
|
var tmp_0 = this;
|
|
51484
|
-
tmp_0.
|
|
51466
|
+
tmp_0.j96_1 = this.i96_1;
|
|
51485
51467
|
this.e9_1 = 1;
|
|
51486
|
-
var tmp_1 = FileLoggerOutputImpl$observe$o$collect$slambda_0(this.
|
|
51487
|
-
suspendResult = this.
|
|
51468
|
+
var tmp_1 = FileLoggerOutputImpl$observe$o$collect$slambda_0(this.j96_1, this.h96_1.l96_1, null);
|
|
51469
|
+
suspendResult = this.h96_1.k96_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
51488
51470
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
51489
51471
|
return suspendResult;
|
|
51490
51472
|
}
|
|
@@ -51508,9 +51490,9 @@
|
|
|
51508
51490
|
};
|
|
51509
51491
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
51510
51492
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
51511
|
-
$this.
|
|
51493
|
+
$this.o96_1;
|
|
51512
51494
|
// Inline function 'games.jass.logic.utils.logger.FileLoggerOutputImpl.log.<anonymous>' call
|
|
51513
|
-
var tmp0_elvis_lhs = $this.
|
|
51495
|
+
var tmp0_elvis_lhs = $this.m96_1(payload);
|
|
51514
51496
|
var tmp;
|
|
51515
51497
|
if (tmp0_elvis_lhs == null) {
|
|
51516
51498
|
return Unit_instance;
|
|
@@ -51519,7 +51501,7 @@
|
|
|
51519
51501
|
}
|
|
51520
51502
|
var key = tmp;
|
|
51521
51503
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
51522
|
-
var this_0 = $this.
|
|
51504
|
+
var this_0 = $this.p96_1;
|
|
51523
51505
|
var value = this_0.g2(key);
|
|
51524
51506
|
var tmp_0;
|
|
51525
51507
|
if (value == null) {
|
|
@@ -51531,7 +51513,7 @@
|
|
|
51531
51513
|
tmp_0 = value;
|
|
51532
51514
|
}
|
|
51533
51515
|
var logger = tmp_0;
|
|
51534
|
-
logger.
|
|
51516
|
+
logger.q96_1.o1b(new LoggerOutputDataDto(type, key, tag, message, stackTrace));
|
|
51535
51517
|
}
|
|
51536
51518
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
51537
51519
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -51541,35 +51523,35 @@
|
|
|
51541
51523
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
51542
51524
|
controller = controller === VOID ? null : controller;
|
|
51543
51525
|
job = job === VOID ? null : job;
|
|
51544
|
-
this.
|
|
51545
|
-
this.
|
|
51546
|
-
this.
|
|
51526
|
+
this.q96_1 = flow;
|
|
51527
|
+
this.r96_1 = controller;
|
|
51528
|
+
this.s96_1 = job;
|
|
51547
51529
|
}
|
|
51548
|
-
protoOf(LoggerModel).
|
|
51549
|
-
this.
|
|
51550
|
-
var tmp0_safe_receiver = this.
|
|
51530
|
+
protoOf(LoggerModel).t96 = function () {
|
|
51531
|
+
this.q96_1.s1b();
|
|
51532
|
+
var tmp0_safe_receiver = this.s96_1;
|
|
51551
51533
|
if (tmp0_safe_receiver == null)
|
|
51552
51534
|
null;
|
|
51553
51535
|
else {
|
|
51554
51536
|
tmp0_safe_receiver.tp();
|
|
51555
51537
|
}
|
|
51556
51538
|
};
|
|
51557
|
-
protoOf(LoggerModel).
|
|
51539
|
+
protoOf(LoggerModel).u96 = function (flow, controller, job) {
|
|
51558
51540
|
return new LoggerModel(flow, controller, job);
|
|
51559
51541
|
};
|
|
51560
|
-
protoOf(LoggerModel).
|
|
51561
|
-
flow = flow === VOID ? this.
|
|
51562
|
-
controller = controller === VOID ? this.
|
|
51563
|
-
job = job === VOID ? this.
|
|
51564
|
-
return $super === VOID ? this.
|
|
51542
|
+
protoOf(LoggerModel).v96 = function (flow, controller, job, $super) {
|
|
51543
|
+
flow = flow === VOID ? this.q96_1 : flow;
|
|
51544
|
+
controller = controller === VOID ? this.r96_1 : controller;
|
|
51545
|
+
job = job === VOID ? this.s96_1 : job;
|
|
51546
|
+
return $super === VOID ? this.u96(flow, controller, job) : $super.u96.call(this, flow, controller, job);
|
|
51565
51547
|
};
|
|
51566
51548
|
protoOf(LoggerModel).toString = function () {
|
|
51567
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
51549
|
+
return 'LoggerModel(flow=' + toString(this.q96_1) + ', controller=' + toString_0(this.r96_1) + ', job=' + toString_0(this.s96_1) + ')';
|
|
51568
51550
|
};
|
|
51569
51551
|
protoOf(LoggerModel).hashCode = function () {
|
|
51570
|
-
var result = hashCode(this.
|
|
51552
|
+
var result = hashCode(this.q96_1);
|
|
51553
|
+
result = imul(result, 31) + (this.r96_1 == null ? 0 : hashCode(this.r96_1)) | 0;
|
|
51571
51554
|
result = imul(result, 31) + (this.s96_1 == null ? 0 : hashCode(this.s96_1)) | 0;
|
|
51572
|
-
result = imul(result, 31) + (this.t96_1 == null ? 0 : hashCode(this.t96_1)) | 0;
|
|
51573
51555
|
return result;
|
|
51574
51556
|
};
|
|
51575
51557
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -51578,18 +51560,18 @@
|
|
|
51578
51560
|
if (!(other instanceof LoggerModel))
|
|
51579
51561
|
return false;
|
|
51580
51562
|
var tmp0_other_with_cast = other instanceof LoggerModel ? other : THROW_CCE();
|
|
51563
|
+
if (!equals(this.q96_1, tmp0_other_with_cast.q96_1))
|
|
51564
|
+
return false;
|
|
51581
51565
|
if (!equals(this.r96_1, tmp0_other_with_cast.r96_1))
|
|
51582
51566
|
return false;
|
|
51583
51567
|
if (!equals(this.s96_1, tmp0_other_with_cast.s96_1))
|
|
51584
51568
|
return false;
|
|
51585
|
-
if (!equals(this.t96_1, tmp0_other_with_cast.t96_1))
|
|
51586
|
-
return false;
|
|
51587
51569
|
return true;
|
|
51588
51570
|
};
|
|
51589
51571
|
function Companion_149() {
|
|
51590
|
-
this.
|
|
51572
|
+
this.w96_1 = 1000;
|
|
51591
51573
|
}
|
|
51592
|
-
protoOf(Companion_149).
|
|
51574
|
+
protoOf(Companion_149).x96 = function (payload) {
|
|
51593
51575
|
var tmp;
|
|
51594
51576
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
51595
51577
|
tmp = payload.id;
|
|
@@ -51611,13 +51593,13 @@
|
|
|
51611
51593
|
return Companion_instance_154;
|
|
51612
51594
|
}
|
|
51613
51595
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
51614
|
-
this.
|
|
51596
|
+
this.y96_1 = function_0;
|
|
51615
51597
|
}
|
|
51616
51598
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
51617
|
-
return this.
|
|
51599
|
+
return this.y96_1(value, $completion);
|
|
51618
51600
|
};
|
|
51619
51601
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
51620
|
-
return this.
|
|
51602
|
+
return this.y96_1;
|
|
51621
51603
|
};
|
|
51622
51604
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
51623
51605
|
var tmp;
|
|
@@ -51641,8 +51623,8 @@
|
|
|
51641
51623
|
return null;
|
|
51642
51624
|
}
|
|
51643
51625
|
function _no_name_provided__qut3iv_36($this, $types) {
|
|
51644
|
-
this.
|
|
51645
|
-
this.
|
|
51626
|
+
this.k96_1 = $this;
|
|
51627
|
+
this.l96_1 = $types;
|
|
51646
51628
|
}
|
|
51647
51629
|
protoOf(_no_name_provided__qut3iv_36).q18 = function (collector, $completion) {
|
|
51648
51630
|
var tmp = new $collectCOROUTINE$3(this, collector, $completion);
|
|
@@ -51662,27 +51644,27 @@
|
|
|
51662
51644
|
}
|
|
51663
51645
|
payloadToKeyMapper = tmp;
|
|
51664
51646
|
enabled = enabled === VOID ? true : enabled;
|
|
51665
|
-
this.
|
|
51666
|
-
this.
|
|
51647
|
+
this.m96_1 = payloadToKeyMapper;
|
|
51648
|
+
this.n96_1 = enabled;
|
|
51667
51649
|
var tmp_0 = this;
|
|
51668
51650
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
51669
|
-
tmp_0.
|
|
51651
|
+
tmp_0.o96_1 = get_atomicfu$reentrantLock();
|
|
51670
51652
|
var tmp_1 = this;
|
|
51671
51653
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
51672
|
-
tmp_1.
|
|
51654
|
+
tmp_1.p96_1 = LinkedHashMap_init_$Create$();
|
|
51673
51655
|
}
|
|
51674
51656
|
protoOf(FileLoggerOutputImpl).ym = function (_set____db54di) {
|
|
51675
|
-
this.
|
|
51657
|
+
this.n96_1 = _set____db54di;
|
|
51676
51658
|
};
|
|
51677
51659
|
protoOf(FileLoggerOutputImpl).zm = function () {
|
|
51678
|
-
return this.
|
|
51660
|
+
return this.n96_1;
|
|
51679
51661
|
};
|
|
51680
|
-
protoOf(FileLoggerOutputImpl).
|
|
51662
|
+
protoOf(FileLoggerOutputImpl).z96 = function (key, types) {
|
|
51681
51663
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
51682
|
-
this.
|
|
51664
|
+
this.o96_1;
|
|
51683
51665
|
// Inline function 'games.jass.logic.utils.logger.FileLoggerOutputImpl.observe.<anonymous>' call
|
|
51684
51666
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
51685
|
-
var this_0 = this.
|
|
51667
|
+
var this_0 = this.p96_1;
|
|
51686
51668
|
var value = this_0.g2(key);
|
|
51687
51669
|
var tmp;
|
|
51688
51670
|
if (value == null) {
|
|
@@ -51696,27 +51678,27 @@
|
|
|
51696
51678
|
var logger = tmp;
|
|
51697
51679
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
51698
51680
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
51699
|
-
var this_1 = logger.
|
|
51681
|
+
var this_1 = logger.q96_1;
|
|
51700
51682
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
51701
51683
|
return new _no_name_provided__qut3iv_36(this_1, types);
|
|
51702
51684
|
};
|
|
51703
51685
|
protoOf(FileLoggerOutputImpl).t8w = function (key) {
|
|
51704
51686
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
51705
|
-
this.
|
|
51687
|
+
this.o96_1;
|
|
51706
51688
|
// Inline function 'games.jass.logic.utils.logger.FileLoggerOutputImpl.destroy.<anonymous>' call
|
|
51707
|
-
var tmp0_safe_receiver = this.
|
|
51689
|
+
var tmp0_safe_receiver = this.p96_1.g2(key);
|
|
51708
51690
|
if (tmp0_safe_receiver == null)
|
|
51709
51691
|
null;
|
|
51710
51692
|
else {
|
|
51711
|
-
tmp0_safe_receiver.
|
|
51693
|
+
tmp0_safe_receiver.t96();
|
|
51712
51694
|
}
|
|
51713
|
-
this.
|
|
51695
|
+
this.p96_1.k2(key);
|
|
51714
51696
|
};
|
|
51715
51697
|
protoOf(FileLoggerOutputImpl).s8w = function (key, job, controller) {
|
|
51716
51698
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
51717
|
-
this.
|
|
51699
|
+
this.o96_1;
|
|
51718
51700
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
51719
|
-
var this_0 = this.
|
|
51701
|
+
var this_0 = this.p96_1;
|
|
51720
51702
|
var value = this_0.g2(key);
|
|
51721
51703
|
var tmp;
|
|
51722
51704
|
if (value == null) {
|
|
@@ -51727,17 +51709,17 @@
|
|
|
51727
51709
|
} else {
|
|
51728
51710
|
tmp = value;
|
|
51729
51711
|
}
|
|
51730
|
-
var updatedModel = tmp.
|
|
51731
|
-
this.
|
|
51712
|
+
var updatedModel = tmp.v96(VOID, controller, job);
|
|
51713
|
+
this.p96_1.j2(key, updatedModel);
|
|
51732
51714
|
};
|
|
51733
51715
|
protoOf(FileLoggerOutputImpl).tm = function (tag, message, payload) {
|
|
51734
|
-
if (!this.
|
|
51716
|
+
if (!this.n96_1)
|
|
51735
51717
|
return Unit_instance;
|
|
51736
51718
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
51737
51719
|
log$default(this, tmp0_type, tag, message, payload);
|
|
51738
51720
|
};
|
|
51739
51721
|
protoOf(FileLoggerOutputImpl).um = function (tag, message, exception, payload) {
|
|
51740
|
-
if (!this.
|
|
51722
|
+
if (!this.n96_1)
|
|
51741
51723
|
return Unit_instance;
|
|
51742
51724
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
51743
51725
|
var tmp;
|
|
@@ -51752,13 +51734,13 @@
|
|
|
51752
51734
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
51753
51735
|
};
|
|
51754
51736
|
protoOf(FileLoggerOutputImpl).xm = function (tag, message, payload) {
|
|
51755
|
-
if (!this.
|
|
51737
|
+
if (!this.n96_1)
|
|
51756
51738
|
return Unit_instance;
|
|
51757
51739
|
var tmp0_type = LogType_INFO_getInstance();
|
|
51758
51740
|
log(this, tmp0_type, tag, message, payload, null);
|
|
51759
51741
|
};
|
|
51760
51742
|
protoOf(FileLoggerOutputImpl).wm = function (tag, message, exception, payload) {
|
|
51761
|
-
if (!this.
|
|
51743
|
+
if (!this.n96_1)
|
|
51762
51744
|
return Unit_instance;
|
|
51763
51745
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
51764
51746
|
var tmp;
|
|
@@ -51773,7 +51755,7 @@
|
|
|
51773
51755
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
51774
51756
|
};
|
|
51775
51757
|
protoOf(FileLoggerOutputImpl).vm = function (tag, message, exception, payload) {
|
|
51776
|
-
if (!this.
|
|
51758
|
+
if (!this.n96_1)
|
|
51777
51759
|
return Unit_instance;
|
|
51778
51760
|
var tmp4_type = LogType_WARN_getInstance();
|
|
51779
51761
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -52500,7 +52482,7 @@
|
|
|
52500
52482
|
}
|
|
52501
52483
|
return copyToArray(destination);
|
|
52502
52484
|
};
|
|
52503
|
-
protoOf(GameHelperImpl).
|
|
52485
|
+
protoOf(GameHelperImpl).a97 = function (points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, mode, league) {
|
|
52504
52486
|
var tmp1_elvis_lhs = mode == null ? null : mapToRoomMode(mode);
|
|
52505
52487
|
var roomMode = tmp1_elvis_lhs == null ? RoomMode_DEFAULT_getInstance() : tmp1_elvis_lhs;
|
|
52506
52488
|
var options = Companion_instance_139.getServerOptions(isEnableChat, isBotsEnabled, roomMode.isEnableChoosePartnerScreen);
|
|
@@ -52707,40 +52689,40 @@
|
|
|
52707
52689
|
function getRandomAvatarData_0($this) {
|
|
52708
52690
|
var avatarSetNumber = Default_getInstance().og(values_18().length);
|
|
52709
52691
|
var avatarSet = values_18()[avatarSetNumber];
|
|
52710
|
-
return new AvatarData(Default_getInstance().og(avatarSet.
|
|
52692
|
+
return new AvatarData(Default_getInstance().og(avatarSet.e97()), avatarSet);
|
|
52711
52693
|
}
|
|
52712
52694
|
function getAvatarUrlByIndex($this, data) {
|
|
52713
52695
|
return mapToPattern($this, data);
|
|
52714
52696
|
}
|
|
52715
52697
|
function getNicknameByIndex($this, data) {
|
|
52716
|
-
return data.
|
|
52698
|
+
return data.g97_1.h97(data.f97_1);
|
|
52717
52699
|
}
|
|
52718
52700
|
function mapToPattern($this, data) {
|
|
52719
|
-
return 'debertz://raspberry.games/' + data.
|
|
52701
|
+
return 'debertz://raspberry.games/' + data.g97_1.n2_1 + '/' + data.f97_1;
|
|
52720
52702
|
}
|
|
52721
52703
|
function Companion_150() {
|
|
52722
52704
|
Companion_instance_155 = this;
|
|
52723
|
-
this.
|
|
52705
|
+
this.i97_1 = 'debertz://raspberry.games';
|
|
52724
52706
|
var tmp = this;
|
|
52725
52707
|
// Inline function 'kotlin.arrayOf' call
|
|
52726
52708
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
52727
52709
|
// Inline function 'kotlin.js.asDynamic' call
|
|
52728
|
-
tmp.
|
|
52710
|
+
tmp.j97_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
52729
52711
|
var tmp_0 = this;
|
|
52730
52712
|
// Inline function 'kotlin.arrayOf' call
|
|
52731
52713
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
52732
52714
|
// Inline function 'kotlin.js.asDynamic' call
|
|
52733
|
-
tmp_0.
|
|
52715
|
+
tmp_0.k97_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
52734
52716
|
var tmp_1 = this;
|
|
52735
52717
|
// Inline function 'kotlin.arrayOf' call
|
|
52736
52718
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
52737
52719
|
// Inline function 'kotlin.js.asDynamic' call
|
|
52738
|
-
tmp_1.
|
|
52720
|
+
tmp_1.l97_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
52739
52721
|
var tmp_2 = this;
|
|
52740
52722
|
// Inline function 'kotlin.arrayOf' call
|
|
52741
52723
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
52742
52724
|
// Inline function 'kotlin.js.asDynamic' call
|
|
52743
|
-
tmp_2.
|
|
52725
|
+
tmp_2.m97_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
52744
52726
|
}
|
|
52745
52727
|
var Companion_instance_155;
|
|
52746
52728
|
function Companion_getInstance_157() {
|
|
@@ -52751,14 +52733,14 @@
|
|
|
52751
52733
|
function AvatarSet(name, ordinal) {
|
|
52752
52734
|
Enum.call(this, name, ordinal);
|
|
52753
52735
|
}
|
|
52754
|
-
protoOf(AvatarSet).
|
|
52736
|
+
protoOf(AvatarSet).e97 = function () {
|
|
52755
52737
|
var tmp;
|
|
52756
52738
|
switch (this.n2_1) {
|
|
52757
52739
|
case 0:
|
|
52758
|
-
tmp = Companion_getInstance_157().
|
|
52740
|
+
tmp = Companion_getInstance_157().k97_1.length;
|
|
52759
52741
|
break;
|
|
52760
52742
|
case 1:
|
|
52761
|
-
tmp = Companion_getInstance_157().
|
|
52743
|
+
tmp = Companion_getInstance_157().m97_1.length;
|
|
52762
52744
|
break;
|
|
52763
52745
|
default:
|
|
52764
52746
|
noWhenBranchMatchedException();
|
|
@@ -52766,14 +52748,14 @@
|
|
|
52766
52748
|
}
|
|
52767
52749
|
return tmp;
|
|
52768
52750
|
};
|
|
52769
|
-
protoOf(AvatarSet).
|
|
52751
|
+
protoOf(AvatarSet).h97 = function (index) {
|
|
52770
52752
|
var tmp;
|
|
52771
52753
|
switch (this.n2_1) {
|
|
52772
52754
|
case 0:
|
|
52773
|
-
tmp = Companion_getInstance_157().
|
|
52755
|
+
tmp = Companion_getInstance_157().k97_1[index];
|
|
52774
52756
|
break;
|
|
52775
52757
|
case 1:
|
|
52776
|
-
tmp = Companion_getInstance_157().
|
|
52758
|
+
tmp = Companion_getInstance_157().m97_1[index];
|
|
52777
52759
|
break;
|
|
52778
52760
|
default:
|
|
52779
52761
|
noWhenBranchMatchedException();
|
|
@@ -52782,8 +52764,8 @@
|
|
|
52782
52764
|
return tmp;
|
|
52783
52765
|
};
|
|
52784
52766
|
function AvatarData(index, avatarSet) {
|
|
52785
|
-
this.
|
|
52786
|
-
this.
|
|
52767
|
+
this.f97_1 = index;
|
|
52768
|
+
this.g97_1 = avatarSet;
|
|
52787
52769
|
}
|
|
52788
52770
|
function AvatarSet_ORIGIN_getInstance() {
|
|
52789
52771
|
AvatarSet_initEntries();
|
|
@@ -52796,7 +52778,7 @@
|
|
|
52796
52778
|
function GameResourcesImpl() {
|
|
52797
52779
|
Companion_getInstance_157();
|
|
52798
52780
|
}
|
|
52799
|
-
protoOf(GameResourcesImpl).
|
|
52781
|
+
protoOf(GameResourcesImpl).b97 = function (playerId, existingNicknames) {
|
|
52800
52782
|
return createUser(this, playerId, existingNicknames);
|
|
52801
52783
|
};
|
|
52802
52784
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -52838,46 +52820,46 @@
|
|
|
52838
52820
|
}
|
|
52839
52821
|
var WARN;
|
|
52840
52822
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
52841
|
-
this.
|
|
52823
|
+
this.n97_1 = loggerCallback;
|
|
52842
52824
|
}
|
|
52843
52825
|
protoOf(LoggerCallbacksWrapperLoggerOutput).tm = function (tag, message, payload) {
|
|
52844
|
-
this.
|
|
52826
|
+
this.n97_1('debug', tag, message, null, payload);
|
|
52845
52827
|
};
|
|
52846
52828
|
protoOf(LoggerCallbacksWrapperLoggerOutput).um = function (tag, message, exception, payload) {
|
|
52847
|
-
this.
|
|
52829
|
+
this.n97_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
52848
52830
|
};
|
|
52849
52831
|
protoOf(LoggerCallbacksWrapperLoggerOutput).xm = function (tag, message, payload) {
|
|
52850
|
-
this.
|
|
52832
|
+
this.n97_1('debug', tag, message, null, payload);
|
|
52851
52833
|
};
|
|
52852
52834
|
protoOf(LoggerCallbacksWrapperLoggerOutput).wm = function (tag, message, exception, payload) {
|
|
52853
|
-
this.
|
|
52835
|
+
this.n97_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
52854
52836
|
};
|
|
52855
52837
|
protoOf(LoggerCallbacksWrapperLoggerOutput).vm = function (tag, message, exception, payload) {
|
|
52856
|
-
this.
|
|
52838
|
+
this.n97_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
52857
52839
|
};
|
|
52858
52840
|
function ParserHelper() {
|
|
52859
52841
|
}
|
|
52860
52842
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
52861
|
-
this.
|
|
52862
|
-
this.
|
|
52843
|
+
this.o97_1 = json;
|
|
52844
|
+
this.p97_1 = encoderDecoderProvider;
|
|
52863
52845
|
}
|
|
52864
52846
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
52865
|
-
return this.
|
|
52847
|
+
return this.p97_1.v8d(mapToDto_17(action));
|
|
52866
52848
|
};
|
|
52867
52849
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
52868
|
-
return mapFromDto_14(this.
|
|
52850
|
+
return mapFromDto_14(this.p97_1.y8d(json), fromPlayerId);
|
|
52869
52851
|
};
|
|
52870
52852
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
52871
|
-
return this.
|
|
52853
|
+
return this.p97_1.w8d(mapToDto_62(action));
|
|
52872
52854
|
};
|
|
52873
52855
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
52874
52856
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
52875
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
52857
|
+
var this_0 = mapFromClientDtoListWithPayload(this.p97_1.z8d(json), playerId, engine);
|
|
52876
52858
|
return copyToArray(this_0);
|
|
52877
52859
|
};
|
|
52878
52860
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
52879
52861
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
52880
|
-
var this_0 = this.
|
|
52862
|
+
var this_0 = this.o97_1;
|
|
52881
52863
|
var value = mapToDto_27(round);
|
|
52882
52864
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
52883
52865
|
var this_1 = this_0.j42();
|
|
@@ -52888,7 +52870,7 @@
|
|
|
52888
52870
|
};
|
|
52889
52871
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
52890
52872
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
52891
|
-
var this_0 = this.
|
|
52873
|
+
var this_0 = this.o97_1;
|
|
52892
52874
|
// Inline function 'kotlin.collections.map' call
|
|
52893
52875
|
var this_1 = round.items;
|
|
52894
52876
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -52911,7 +52893,7 @@
|
|
|
52911
52893
|
};
|
|
52912
52894
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
52913
52895
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
52914
|
-
var this_0 = this.
|
|
52896
|
+
var this_0 = this.o97_1;
|
|
52915
52897
|
var value = mapToDto_29(metadata);
|
|
52916
52898
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
52917
52899
|
var this_1 = this_0.j42();
|
|
@@ -52922,7 +52904,7 @@
|
|
|
52922
52904
|
};
|
|
52923
52905
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
52924
52906
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
52925
|
-
var this_0 = this.
|
|
52907
|
+
var this_0 = this.o97_1;
|
|
52926
52908
|
var value = mapToDto_53(config);
|
|
52927
52909
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
52928
52910
|
var this_1 = this_0.j42();
|
|
@@ -52933,7 +52915,7 @@
|
|
|
52933
52915
|
};
|
|
52934
52916
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
52935
52917
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
52936
|
-
var this_0 = this.
|
|
52918
|
+
var this_0 = this.o97_1;
|
|
52937
52919
|
var value = mapToDto_83(transition);
|
|
52938
52920
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
52939
52921
|
var this_1 = this_0.j42();
|
|
@@ -52944,7 +52926,7 @@
|
|
|
52944
52926
|
};
|
|
52945
52927
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
52946
52928
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
52947
|
-
var this_0 = this.
|
|
52929
|
+
var this_0 = this.o97_1;
|
|
52948
52930
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
52949
52931
|
var this_1 = this_0.j42();
|
|
52950
52932
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -52954,11 +52936,11 @@
|
|
|
52954
52936
|
return mapFromDto_59(tmp$ret$2);
|
|
52955
52937
|
};
|
|
52956
52938
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
52957
|
-
return mapFromDto_57(this.
|
|
52939
|
+
return mapFromDto_57(this.p97_1.x8d(json));
|
|
52958
52940
|
};
|
|
52959
52941
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
52960
52942
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
52961
|
-
var this_0 = this.
|
|
52943
|
+
var this_0 = this.o97_1;
|
|
52962
52944
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
52963
52945
|
var this_1 = this_0.j42();
|
|
52964
52946
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -52971,16 +52953,16 @@
|
|
|
52971
52953
|
function RatingHelper() {
|
|
52972
52954
|
}
|
|
52973
52955
|
function RatingHelperImpl(userRatingInteractor) {
|
|
52974
|
-
this.
|
|
52956
|
+
this.q97_1 = userRatingInteractor;
|
|
52975
52957
|
}
|
|
52976
52958
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
52977
|
-
return this.
|
|
52959
|
+
return this.q97_1.v8k(league, rating);
|
|
52978
52960
|
};
|
|
52979
52961
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
52980
|
-
return this.
|
|
52962
|
+
return this.q97_1.x8k(rating);
|
|
52981
52963
|
};
|
|
52982
52964
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
52983
|
-
return this.
|
|
52965
|
+
return this.q97_1.w8k();
|
|
52984
52966
|
};
|
|
52985
52967
|
function engineHelpersModule() {
|
|
52986
52968
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -53080,7 +53062,7 @@
|
|
|
53080
53062
|
}
|
|
53081
53063
|
function _get_di__ndbzja($this) {
|
|
53082
53064
|
// Inline function 'kotlin.getValue' call
|
|
53083
|
-
var this_0 = $this.
|
|
53065
|
+
var this_0 = $this.r97_1;
|
|
53084
53066
|
di$factory();
|
|
53085
53067
|
return this_0.u();
|
|
53086
53068
|
}
|
|
@@ -53096,57 +53078,57 @@
|
|
|
53096
53078
|
}
|
|
53097
53079
|
function EngineHelpersFactory() {
|
|
53098
53080
|
var tmp = this;
|
|
53099
|
-
tmp.
|
|
53081
|
+
tmp.r97_1 = lazy(EngineHelpersFactory$di$delegate$lambda);
|
|
53100
53082
|
var tmp_0 = this;
|
|
53101
53083
|
// Inline function 'org.kodein.di.instance' call
|
|
53102
53084
|
var this_0 = _get_di__ndbzja(this);
|
|
53103
53085
|
// Inline function 'org.kodein.type.generic' call
|
|
53104
53086
|
var tmp_1 = typeToken(createKType(getKClass(RatingHelper), arrayOf([]), false));
|
|
53105
53087
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
53106
|
-
tmp_0.
|
|
53088
|
+
tmp_0.s97_1 = Instance(this_0, tmp$ret$0, null).e60(this, ratingHelper$factory());
|
|
53107
53089
|
var tmp_2 = this;
|
|
53108
53090
|
// Inline function 'org.kodein.di.instance' call
|
|
53109
53091
|
var this_1 = _get_di__ndbzja(this);
|
|
53110
53092
|
// Inline function 'org.kodein.type.generic' call
|
|
53111
53093
|
var tmp_3 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
53112
53094
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
53113
|
-
tmp_2.
|
|
53095
|
+
tmp_2.t97_1 = Instance(this_1, tmp$ret$2, null).e60(this, parserHelper$factory());
|
|
53114
53096
|
var tmp_4 = this;
|
|
53115
53097
|
// Inline function 'org.kodein.di.instance' call
|
|
53116
53098
|
var this_2 = _get_di__ndbzja(this);
|
|
53117
53099
|
// Inline function 'org.kodein.type.generic' call
|
|
53118
53100
|
var tmp_5 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
53119
53101
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
53120
|
-
tmp_4.
|
|
53102
|
+
tmp_4.u97_1 = Instance(this_2, tmp$ret$4, null).e60(this, gameHelper$factory());
|
|
53121
53103
|
var tmp_6 = this;
|
|
53122
53104
|
// Inline function 'org.kodein.di.instance' call
|
|
53123
53105
|
var this_3 = _get_di__ndbzja(this);
|
|
53124
53106
|
// Inline function 'org.kodein.type.generic' call
|
|
53125
53107
|
var tmp_7 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
53126
53108
|
var tmp$ret$6 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
53127
|
-
tmp_6.
|
|
53109
|
+
tmp_6.v97_1 = Instance(this_3, tmp$ret$6, null).e60(this, gameResources$factory());
|
|
53128
53110
|
}
|
|
53129
|
-
protoOf(EngineHelpersFactory).
|
|
53111
|
+
protoOf(EngineHelpersFactory).w97 = function () {
|
|
53130
53112
|
// Inline function 'kotlin.getValue' call
|
|
53131
|
-
var this_0 = this.
|
|
53113
|
+
var this_0 = this.s97_1;
|
|
53132
53114
|
ratingHelper$factory_0();
|
|
53133
53115
|
return this_0.u();
|
|
53134
53116
|
};
|
|
53135
|
-
protoOf(EngineHelpersFactory).
|
|
53117
|
+
protoOf(EngineHelpersFactory).x97 = function () {
|
|
53136
53118
|
// Inline function 'kotlin.getValue' call
|
|
53137
|
-
var this_0 = this.
|
|
53119
|
+
var this_0 = this.t97_1;
|
|
53138
53120
|
parserHelper$factory_0();
|
|
53139
53121
|
return this_0.u();
|
|
53140
53122
|
};
|
|
53141
|
-
protoOf(EngineHelpersFactory).
|
|
53123
|
+
protoOf(EngineHelpersFactory).y97 = function () {
|
|
53142
53124
|
// Inline function 'kotlin.getValue' call
|
|
53143
|
-
var this_0 = this.
|
|
53125
|
+
var this_0 = this.u97_1;
|
|
53144
53126
|
gameHelper$factory_0();
|
|
53145
53127
|
return this_0.u();
|
|
53146
53128
|
};
|
|
53147
|
-
protoOf(EngineHelpersFactory).
|
|
53129
|
+
protoOf(EngineHelpersFactory).z97 = function () {
|
|
53148
53130
|
// Inline function 'kotlin.getValue' call
|
|
53149
|
-
var this_0 = this.
|
|
53131
|
+
var this_0 = this.v97_1;
|
|
53150
53132
|
gameResources$factory_0();
|
|
53151
53133
|
return this_0.u();
|
|
53152
53134
|
};
|
|
@@ -53733,10 +53715,10 @@
|
|
|
53733
53715
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
53734
53716
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
53735
53717
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
53736
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
53737
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
53738
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
53739
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
53718
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).w97);
|
|
53719
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).x97);
|
|
53720
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).y97);
|
|
53721
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).z97);
|
|
53740
53722
|
//endregion
|
|
53741
53723
|
//region block: init
|
|
53742
53724
|
Companion_instance_5 = new Companion_0();
|