raspberry_games_server_game_logic 1.8.367 → 1.8.369
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/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +687 -640
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +682 -682
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1271,21 +1271,21 @@
|
|
|
1271
1271
|
tmp = types;
|
|
1272
1272
|
}
|
|
1273
1273
|
types = tmp;
|
|
1274
|
-
return $super === VOID ? this.
|
|
1274
|
+
return $super === VOID ? this.a9c(key, types) : $super.a9c.call(this, key, types);
|
|
1275
1275
|
}
|
|
1276
1276
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1277
1277
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
|
|
1278
1278
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1279
1279
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1280
|
-
return $super === VOID ? this.
|
|
1280
|
+
return $super === VOID ? this.b9c(store, playerIds, includeBots) : $super.b9c.call(this, store, playerIds, includeBots);
|
|
1281
1281
|
}
|
|
1282
1282
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1283
1283
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1284
|
-
return $super === VOID ? this.
|
|
1284
|
+
return $super === VOID ? this.c9c(store, playerIds, includeBots) : $super.c9c.call(this, store, playerIds, includeBots);
|
|
1285
1285
|
}
|
|
1286
1286
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1287
1287
|
league = league === VOID ? null : league;
|
|
1288
|
-
return $super === VOID ? this.
|
|
1288
|
+
return $super === VOID ? this.d9c(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.d9c.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1289
1289
|
}
|
|
1290
1290
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1291
1291
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1298,7 +1298,7 @@
|
|
|
1298
1298
|
tmp = existingNicknames;
|
|
1299
1299
|
}
|
|
1300
1300
|
existingNicknames = tmp;
|
|
1301
|
-
return $super === VOID ? this.
|
|
1301
|
+
return $super === VOID ? this.f9c(playerId, existingNicknames) : $super.f9c.call(this, playerId, existingNicknames);
|
|
1302
1302
|
}
|
|
1303
1303
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1304
1304
|
initMetadataForCompanion(Companion_166);
|
|
@@ -2221,7 +2221,7 @@
|
|
|
2221
2221
|
ffaLossReductionPerExtra = ffaLossReductionPerExtra === VOID ? 0.15 : ffaLossReductionPerExtra;
|
|
2222
2222
|
ffaLossMinMult = ffaLossMinMult === VOID ? 0.6 : ffaLossMinMult;
|
|
2223
2223
|
ffaCloseLossPenaltyMult = ffaCloseLossPenaltyMult === VOID ? 0.6 : ffaCloseLossPenaltyMult;
|
|
2224
|
-
botNativeUpdatesRating = botNativeUpdatesRating === VOID ?
|
|
2224
|
+
botNativeUpdatesRating = botNativeUpdatesRating === VOID ? true : botNativeUpdatesRating;
|
|
2225
2225
|
replacementForcedDecrease = replacementForcedDecrease === VOID ? true : replacementForcedDecrease;
|
|
2226
2226
|
this.defaultFactor = defaultFactor;
|
|
2227
2227
|
this.eloScaleH2H = eloScaleH2H;
|
|
@@ -42429,7 +42429,7 @@
|
|
|
42429
42429
|
};
|
|
42430
42430
|
function RatingCalculator() {
|
|
42431
42431
|
}
|
|
42432
|
-
function calculateHeadToHead($this, ratingList, minUserRating, maxUserRating,
|
|
42432
|
+
function calculateHeadToHead($this, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, cfg) {
|
|
42433
42433
|
// Inline function 'kotlin.collections.single' call
|
|
42434
42434
|
var single = null;
|
|
42435
42435
|
var found = false;
|
|
@@ -42488,14 +42488,14 @@
|
|
|
42488
42488
|
var expected = pBeats($this, item.h70_1, opp.h70_1, cfg.eloScaleH2H);
|
|
42489
42489
|
var actualBin = item.i70_1 >= realMaxScore ? 1.0 : 0.0;
|
|
42490
42490
|
var kEff = baseK($this, item.l70_1, gameComplexityCoefficient, cfg);
|
|
42491
|
-
var newRating = eloBinaryWithScoreFactor($this, item.h70_1, expected, actualBin, realMinScore, realMaxScore, item.i70_1, cfg.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
42491
|
+
var newRating = eloBinaryWithScoreFactor($this, item.h70_1, expected, actualBin, realMinScore, realMaxScore, item.i70_1, cfg.closeLossThresholdRatio, minUserRating, maxUserRating, kEff);
|
|
42492
42492
|
tmp$ret$5 = new PlayerRatingOutput(item.g70_1, item.h70_1, newRating, item.j70_1);
|
|
42493
42493
|
}
|
|
42494
42494
|
destination.j(tmp$ret$5);
|
|
42495
42495
|
}
|
|
42496
42496
|
return destination;
|
|
42497
42497
|
}
|
|
42498
|
-
function calculateFfaPairwise($this, maxScore, ratingList, minUserRating, maxUserRating,
|
|
42498
|
+
function calculateFfaPairwise($this, maxScore, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, cfg) {
|
|
42499
42499
|
// Inline function 'kotlin.require' call
|
|
42500
42500
|
if (!(ratingList.o() >= 2)) {
|
|
42501
42501
|
var message = 'At least two players are required';
|
|
@@ -42576,7 +42576,7 @@
|
|
|
42576
42576
|
var b_0 = 1.0 - cfg.ffaLossReductionPerExtra * extra;
|
|
42577
42577
|
var kLoss = Math.max(tmp0, b_0);
|
|
42578
42578
|
var raw = item.h70_1 + kBase * (kWin * diffPos + kLoss * diffNeg);
|
|
42579
|
-
var newRating = clampAndRound($this, raw, minUserRating, maxUserRating
|
|
42579
|
+
var newRating = clampAndRound($this, raw, minUserRating, maxUserRating);
|
|
42580
42580
|
tmp$ret$3 = new PlayerRatingOutput(item.g70_1, item.h70_1, newRating, item.j70_1);
|
|
42581
42581
|
}
|
|
42582
42582
|
destination.j(tmp$ret$3);
|
|
@@ -42589,10 +42589,10 @@
|
|
|
42589
42589
|
var s = 0.5 + cfg.ffaMovLambdaRel * rel + cfg.ffaMovLambdaAbs * abs;
|
|
42590
42590
|
return coerceIn(s, 0.0, 1.0);
|
|
42591
42591
|
}
|
|
42592
|
-
function eloBinaryWithScoreFactor($this, currentRating, expected, actual, minScore, maxScore, playerScore, thresholdRatio, minUserRating, maxUserRating,
|
|
42592
|
+
function eloBinaryWithScoreFactor($this, currentRating, expected, actual, minScore, maxScore, playerScore, thresholdRatio, minUserRating, maxUserRating, kFactor) {
|
|
42593
42593
|
var scoreFactor = scoreDifferenceFactor($this, actual, minScore, maxScore, playerScore, thresholdRatio);
|
|
42594
42594
|
var raw = currentRating + kFactor * scoreFactor * (actual - expected);
|
|
42595
|
-
return clampAndRound($this, raw, minUserRating, maxUserRating
|
|
42595
|
+
return clampAndRound($this, raw, minUserRating, maxUserRating);
|
|
42596
42596
|
}
|
|
42597
42597
|
function pBeats($this, rA, rB, scale) {
|
|
42598
42598
|
// Inline function 'kotlin.math.pow' call
|
|
@@ -42707,8 +42707,8 @@
|
|
|
42707
42707
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
42708
42708
|
}
|
|
42709
42709
|
}
|
|
42710
|
-
function clampAndRound($this, value, minUserRating, maxUserRating
|
|
42711
|
-
var upper =
|
|
42710
|
+
function clampAndRound($this, value, minUserRating, maxUserRating) {
|
|
42711
|
+
var upper = false ? maxUserRating : 1.7976931348623157E308;
|
|
42712
42712
|
var clamped = coerceIn(value, minUserRating, upper);
|
|
42713
42713
|
// Inline function 'kotlin.math.pow' call
|
|
42714
42714
|
var factor = Math.pow(10.0, 2);
|
|
@@ -42716,17 +42716,17 @@
|
|
|
42716
42716
|
}
|
|
42717
42717
|
function RatingCalculatorImpl() {
|
|
42718
42718
|
}
|
|
42719
|
-
protoOf(RatingCalculatorImpl).f8o = function (maxScore, minUserRating, maxUserRating,
|
|
42719
|
+
protoOf(RatingCalculatorImpl).f8o = function (maxScore, minUserRating, maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig) {
|
|
42720
42720
|
validateSoloGameHasWinner(this, maxScore, ratingList);
|
|
42721
42721
|
var tmp;
|
|
42722
42722
|
if (ratingList.o() <= 2) {
|
|
42723
|
-
tmp = calculateHeadToHead(this, ratingList, minUserRating, maxUserRating,
|
|
42723
|
+
tmp = calculateHeadToHead(this, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, ratingConfig);
|
|
42724
42724
|
} else {
|
|
42725
|
-
tmp = calculateFfaPairwise(this, maxScore, ratingList, minUserRating, maxUserRating,
|
|
42725
|
+
tmp = calculateFfaPairwise(this, maxScore, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, ratingConfig);
|
|
42726
42726
|
}
|
|
42727
42727
|
return tmp;
|
|
42728
42728
|
};
|
|
42729
|
-
protoOf(RatingCalculatorImpl).g8o = function (maxScore, minUserRating, maxUserRating,
|
|
42729
|
+
protoOf(RatingCalculatorImpl).g8o = function (maxScore, minUserRating, maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig) {
|
|
42730
42730
|
validateTeamsGameHasWinnerTeam(this, ratingList);
|
|
42731
42731
|
// Inline function 'kotlin.collections.filter' call
|
|
42732
42732
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -42810,7 +42810,7 @@
|
|
|
42810
42810
|
var expected = pBeats(this, item_1.h70_1, avgLosers, ratingConfig.eloScaleH2H);
|
|
42811
42811
|
var actualBin = 1.0;
|
|
42812
42812
|
var kEff = baseK(this, item_1.l70_1, gameComplexityCoefficient, ratingConfig);
|
|
42813
|
-
var newRating = eloBinaryWithScoreFactor(this, item_1.h70_1, expected, actualBin, realMinScore, realMaxScore, winnersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
42813
|
+
var newRating = eloBinaryWithScoreFactor(this, item_1.h70_1, expected, actualBin, realMinScore, realMaxScore, winnersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating, kEff);
|
|
42814
42814
|
tmp$ret$18 = new PlayerRatingOutput(item_1.g70_1, item_1.h70_1, newRating, item_1.j70_1);
|
|
42815
42815
|
}
|
|
42816
42816
|
destination_3.j(tmp$ret$18);
|
|
@@ -42831,7 +42831,7 @@
|
|
|
42831
42831
|
var expected_0 = pBeats(this, item_2.h70_1, avgWinners, ratingConfig.eloScaleH2H);
|
|
42832
42832
|
var actualBin_0 = 0.0;
|
|
42833
42833
|
var kEff_0 = baseK(this, item_2.l70_1, gameComplexityCoefficient, ratingConfig);
|
|
42834
|
-
var newRating_0 = eloBinaryWithScoreFactor(this, item_2.h70_1, expected_0, actualBin_0, realMinScore, realMaxScore, losersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
42834
|
+
var newRating_0 = eloBinaryWithScoreFactor(this, item_2.h70_1, expected_0, actualBin_0, realMinScore, realMaxScore, losersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating, kEff_0);
|
|
42835
42835
|
tmp$ret$21 = new PlayerRatingOutput(item_2.g70_1, item_2.h70_1, newRating_0, item_2.j70_1);
|
|
42836
42836
|
}
|
|
42837
42837
|
destination_4.j(tmp$ret$21);
|
|
@@ -42922,13 +42922,13 @@
|
|
|
42922
42922
|
var tmp1_$this = this.j8o_1;
|
|
42923
42923
|
var tmp2_minUserRating = leaguesConfig.minUserRating;
|
|
42924
42924
|
var tmp3_maxUserRating = leaguesConfig.maxUserRating;
|
|
42925
|
-
tmp = tmp1_$this.f8o(maxScore, tmp2_minUserRating, tmp3_maxUserRating,
|
|
42925
|
+
tmp = tmp1_$this.f8o(maxScore, tmp2_minUserRating, tmp3_maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig);
|
|
42926
42926
|
break;
|
|
42927
42927
|
case 3:
|
|
42928
42928
|
var tmp4_$this = this.j8o_1;
|
|
42929
42929
|
var tmp5_minUserRating = leaguesConfig.minUserRating;
|
|
42930
42930
|
var tmp6_maxUserRating = leaguesConfig.maxUserRating;
|
|
42931
|
-
tmp = tmp4_$this.g8o(maxScore, tmp5_minUserRating, tmp6_maxUserRating,
|
|
42931
|
+
tmp = tmp4_$this.g8o(maxScore, tmp5_minUserRating, tmp6_maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig);
|
|
42932
42932
|
break;
|
|
42933
42933
|
default:
|
|
42934
42934
|
noWhenBranchMatchedException();
|
|
@@ -49993,12 +49993,13 @@
|
|
|
49993
49993
|
protoOf(sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
49994
49994
|
return this.u6g(store, next, action);
|
|
49995
49995
|
};
|
|
49996
|
-
function roundLifecycleMiddleware(scenePositionProvider) {
|
|
49996
|
+
function roundLifecycleMiddleware(scenePositionProvider, logger) {
|
|
49997
49997
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
49998
|
-
return new roundLifecycleMiddleware$$inlined$middlewareForActionType$1(scenePositionProvider);
|
|
49998
|
+
return new roundLifecycleMiddleware$$inlined$middlewareForActionType$1(scenePositionProvider, logger);
|
|
49999
49999
|
}
|
|
50000
|
-
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider) {
|
|
50000
|
+
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {
|
|
50001
50001
|
this.v91_1 = $scenePositionProvider;
|
|
50002
|
+
this.w91_1 = $logger;
|
|
50002
50003
|
}
|
|
50003
50004
|
protoOf(roundLifecycleMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
50004
50005
|
return action instanceof MechanicAction;
|
|
@@ -50093,81 +50094,127 @@
|
|
|
50093
50094
|
tmp_1 = false;
|
|
50094
50095
|
}
|
|
50095
50096
|
var isGameFinished = tmp_1;
|
|
50096
|
-
var
|
|
50097
|
-
var
|
|
50098
|
-
var
|
|
50099
|
-
|
|
50100
|
-
|
|
50097
|
+
var tmp11_safe_receiver = sceneData.g79_1;
|
|
50098
|
+
var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.u();
|
|
50099
|
+
var tmp_3;
|
|
50100
|
+
if (tmp12_safe_receiver == null) {
|
|
50101
|
+
tmp_3 = null;
|
|
50102
|
+
} else {
|
|
50103
|
+
// Inline function 'kotlin.collections.map' call
|
|
50104
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
50105
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp12_safe_receiver, 10));
|
|
50106
|
+
var _iterator__ex2g4s_2 = tmp12_safe_receiver.l();
|
|
50107
|
+
while (_iterator__ex2g4s_2.m()) {
|
|
50108
|
+
var item_1 = _iterator__ex2g4s_2.n();
|
|
50109
|
+
// Inline function 'kotlin.collections.component1' call
|
|
50110
|
+
var playerId = item_1.v();
|
|
50111
|
+
// Inline function 'kotlin.collections.component2' call
|
|
50112
|
+
var achievements = item_1.w();
|
|
50113
|
+
var tmp$ret$19 = mapToPlayerAchievements(achievements, playerId);
|
|
50114
|
+
destination_2.j(tmp$ret$19);
|
|
50115
|
+
}
|
|
50116
|
+
tmp_3 = destination_2;
|
|
50117
|
+
}
|
|
50118
|
+
var playerAchievements = tmp_3;
|
|
50101
50119
|
var tmp_4;
|
|
50102
|
-
if (
|
|
50120
|
+
if (playerAchievements == null) {
|
|
50103
50121
|
tmp_4 = null;
|
|
50104
50122
|
} else {
|
|
50105
|
-
// Inline function 'kotlin.collections.
|
|
50106
|
-
|
|
50123
|
+
// Inline function 'kotlin.collections.filter' call
|
|
50124
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
50125
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
50126
|
+
var _iterator__ex2g4s_3 = playerAchievements.l();
|
|
50127
|
+
while (_iterator__ex2g4s_3.m()) {
|
|
50128
|
+
var element_0 = _iterator__ex2g4s_3.n();
|
|
50129
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
50130
|
+
var this_2 = element_0.oldRating - element_0.newRating;
|
|
50131
|
+
if (Math.abs(this_2) >= 60) {
|
|
50132
|
+
destination_3.j(element_0);
|
|
50133
|
+
}
|
|
50134
|
+
}
|
|
50135
|
+
tmp_4 = destination_3;
|
|
50136
|
+
}
|
|
50137
|
+
var tmp14_elvis_lhs = tmp_4;
|
|
50138
|
+
var suspiciousRatingChange = tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs;
|
|
50139
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
50140
|
+
if (!suspiciousRatingChange.r()) {
|
|
50141
|
+
this.w91_1.w('roundLifecycleMiddleware', 'Suspicious rating change: ' + toString(suspiciousRatingChange));
|
|
50107
50142
|
}
|
|
50108
|
-
var tmp19_gameWinners = tmp_4;
|
|
50109
50143
|
var tmp_5;
|
|
50144
|
+
if (playerAchievements == null) {
|
|
50145
|
+
tmp_5 = null;
|
|
50146
|
+
} else {
|
|
50147
|
+
// Inline function 'kotlin.collections.filter' call
|
|
50148
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
50149
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
50150
|
+
var _iterator__ex2g4s_4 = playerAchievements.l();
|
|
50151
|
+
while (_iterator__ex2g4s_4.m()) {
|
|
50152
|
+
var element_1 = _iterator__ex2g4s_4.n();
|
|
50153
|
+
if (element_1.oldRating < 2000 && element_1.newRating > 2000) {
|
|
50154
|
+
destination_4.j(element_1);
|
|
50155
|
+
}
|
|
50156
|
+
}
|
|
50157
|
+
tmp_5 = destination_4;
|
|
50158
|
+
}
|
|
50159
|
+
var tmp16_elvis_lhs = tmp_5;
|
|
50160
|
+
var ratingChangeAboveLimit = tmp16_elvis_lhs == null ? emptyList() : tmp16_elvis_lhs;
|
|
50161
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
50162
|
+
if (!ratingChangeAboveLimit.r()) {
|
|
50163
|
+
this.w91_1.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(suspiciousRatingChange));
|
|
50164
|
+
}
|
|
50165
|
+
var tmp_6 = store.dispatch;
|
|
50166
|
+
var tmp19_id = table_0.id;
|
|
50167
|
+
var tmp20_gameId = table_0.gameId;
|
|
50168
|
+
var tmp21_roundNumber = table_0.gameInfo.round.roundNumber;
|
|
50169
|
+
var tmp22_earnedBiggestPointPlayerId = sceneData.b79_1;
|
|
50170
|
+
var tmp_7;
|
|
50171
|
+
if (gameWinners == null) {
|
|
50172
|
+
tmp_7 = null;
|
|
50173
|
+
} else {
|
|
50174
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
50175
|
+
tmp_7 = copyToArray(gameWinners);
|
|
50176
|
+
}
|
|
50177
|
+
var tmp23_gameWinners = tmp_7;
|
|
50178
|
+
var tmp_8;
|
|
50110
50179
|
if (isGameFinished) {
|
|
50111
50180
|
// Inline function 'kotlin.collections.map' call
|
|
50112
|
-
var
|
|
50181
|
+
var this_3 = table_0.players;
|
|
50113
50182
|
// Inline function 'kotlin.collections.mapTo' call
|
|
50114
|
-
var
|
|
50115
|
-
var
|
|
50116
|
-
while (
|
|
50117
|
-
var
|
|
50118
|
-
var tmp$ret$
|
|
50119
|
-
|
|
50183
|
+
var destination_5 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
50184
|
+
var _iterator__ex2g4s_5 = this_3.l();
|
|
50185
|
+
while (_iterator__ex2g4s_5.m()) {
|
|
50186
|
+
var item_2 = _iterator__ex2g4s_5.n();
|
|
50187
|
+
var tmp$ret$32 = mapToGameAnalytics(item_2, table_0.gameDuration);
|
|
50188
|
+
destination_5.j(tmp$ret$32);
|
|
50120
50189
|
}
|
|
50121
50190
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
50122
|
-
|
|
50191
|
+
tmp_8 = copyToArray(destination_5);
|
|
50123
50192
|
} else {
|
|
50124
|
-
|
|
50193
|
+
tmp_8 = null;
|
|
50125
50194
|
}
|
|
50126
|
-
var
|
|
50195
|
+
var tmp24_playersGameAnalytics = tmp_8;
|
|
50127
50196
|
// Inline function 'kotlin.collections.map' call
|
|
50128
|
-
var
|
|
50197
|
+
var this_4 = table_0.players;
|
|
50129
50198
|
// Inline function 'kotlin.collections.mapTo' call
|
|
50130
|
-
var
|
|
50131
|
-
var
|
|
50132
|
-
while (
|
|
50133
|
-
var
|
|
50134
|
-
var tmp$ret$
|
|
50135
|
-
|
|
50199
|
+
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
50200
|
+
var _iterator__ex2g4s_6 = this_4.l();
|
|
50201
|
+
while (_iterator__ex2g4s_6.m()) {
|
|
50202
|
+
var item_3 = _iterator__ex2g4s_6.n();
|
|
50203
|
+
var tmp$ret$36 = mapToRoundAnalytics(item_3, table_0.gameDuration);
|
|
50204
|
+
destination_6.j(tmp$ret$36);
|
|
50136
50205
|
}
|
|
50137
50206
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
50138
|
-
var
|
|
50139
|
-
var
|
|
50140
|
-
var
|
|
50141
|
-
|
|
50142
|
-
|
|
50143
|
-
if (tmp13_safe_receiver == null) {
|
|
50144
|
-
tmp_6 = null;
|
|
50145
|
-
} else {
|
|
50146
|
-
// Inline function 'kotlin.collections.map' call
|
|
50147
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
50148
|
-
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp13_safe_receiver, 10));
|
|
50149
|
-
var _iterator__ex2g4s_4 = tmp13_safe_receiver.l();
|
|
50150
|
-
while (_iterator__ex2g4s_4.m()) {
|
|
50151
|
-
var item_3 = _iterator__ex2g4s_4.n();
|
|
50152
|
-
// Inline function 'kotlin.collections.component1' call
|
|
50153
|
-
var playerId = item_3.v();
|
|
50154
|
-
// Inline function 'kotlin.collections.component2' call
|
|
50155
|
-
var achievements = item_3.w();
|
|
50156
|
-
var tmp$ret$28 = mapToPlayerAchievements(achievements, playerId);
|
|
50157
|
-
destination_4.j(tmp$ret$28);
|
|
50158
|
-
}
|
|
50159
|
-
tmp_6 = destination_4;
|
|
50160
|
-
}
|
|
50161
|
-
var tmp14_safe_receiver = tmp_6;
|
|
50162
|
-
var tmp_7;
|
|
50163
|
-
if (tmp14_safe_receiver == null) {
|
|
50164
|
-
tmp_7 = null;
|
|
50207
|
+
var tmp25_playersRoundAnalytics = copyToArray(destination_6);
|
|
50208
|
+
var tmp26_gameHistory = table_0.gameHistory;
|
|
50209
|
+
var tmp_9;
|
|
50210
|
+
if (playerAchievements == null) {
|
|
50211
|
+
tmp_9 = null;
|
|
50165
50212
|
} else {
|
|
50166
50213
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
50167
|
-
|
|
50214
|
+
tmp_9 = copyToArray(playerAchievements);
|
|
50168
50215
|
}
|
|
50169
|
-
var
|
|
50170
|
-
|
|
50216
|
+
var tmp27_achievements = tmp_9;
|
|
50217
|
+
tmp_6(new RoundEndedAction(tmp19_id, tmp20_gameId, tmp21_roundNumber, tmp22_earnedBiggestPointPlayerId, gameLosers, tmp23_gameWinners, tmp24_playersGameAnalytics, tmp25_playersRoundAnalytics, tmp27_achievements, tmp26_gameHistory));
|
|
50171
50218
|
}
|
|
50172
50219
|
}
|
|
50173
50220
|
}
|
|
@@ -50208,8 +50255,8 @@
|
|
|
50208
50255
|
return true;
|
|
50209
50256
|
}
|
|
50210
50257
|
function putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1($lastCardInteractor, $isEnableForPlayer) {
|
|
50211
|
-
this.
|
|
50212
|
-
this.
|
|
50258
|
+
this.x91_1 = $lastCardInteractor;
|
|
50259
|
+
this.y91_1 = $isEnableForPlayer;
|
|
50213
50260
|
}
|
|
50214
50261
|
protoOf(putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
50215
50262
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -50218,7 +50265,7 @@
|
|
|
50218
50265
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
50219
50266
|
next(action_0);
|
|
50220
50267
|
var tmp0_table = store.state.h6m();
|
|
50221
|
-
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.
|
|
50268
|
+
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.x91_1, this.y91_1);
|
|
50222
50269
|
if (newAction == null)
|
|
50223
50270
|
null;
|
|
50224
50271
|
else {
|
|
@@ -50240,16 +50287,16 @@
|
|
|
50240
50287
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput, gameId, roomId) {
|
|
50241
50288
|
var controller = $loggerFactory.u6d(gameId, roomId, $currentPlayerId);
|
|
50242
50289
|
var job = $asyncProvider.e6c(VOID, fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0(controller, $loggerOutput, gameId, null));
|
|
50243
|
-
$loggerOutput.
|
|
50290
|
+
$loggerOutput.z91(gameId, job, controller);
|
|
50244
50291
|
}
|
|
50245
50292
|
function fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj($loggerOutput, gameId) {
|
|
50246
|
-
$loggerOutput.
|
|
50293
|
+
$loggerOutput.a92(gameId);
|
|
50247
50294
|
}
|
|
50248
50295
|
function fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput) {
|
|
50249
|
-
this.
|
|
50250
|
-
this.
|
|
50251
|
-
this.
|
|
50252
|
-
this.
|
|
50296
|
+
this.b92_1 = $loggerFactory;
|
|
50297
|
+
this.c92_1 = $currentPlayerId;
|
|
50298
|
+
this.d92_1 = $asyncProvider;
|
|
50299
|
+
this.e92_1 = $loggerOutput;
|
|
50253
50300
|
}
|
|
50254
50301
|
protoOf(fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
50255
50302
|
return action instanceof MechanicAction;
|
|
@@ -50258,11 +50305,11 @@
|
|
|
50258
50305
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
50259
50306
|
next(action_0);
|
|
50260
50307
|
if (isInterface(action_0, FirstMechanicAction)) {
|
|
50261
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
50308
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.b92_1, this.c92_1, this.d92_1, this.e92_1, action_0.id, action_0.id);
|
|
50262
50309
|
} else {
|
|
50263
50310
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
50264
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
50265
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
50311
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.e92_1, action_0.previousGameId);
|
|
50312
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.b92_1, this.c92_1, this.d92_1, this.e92_1, action_0.gameId, store.state.h6m().id);
|
|
50266
50313
|
} else {
|
|
50267
50314
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
50268
50315
|
var tmp1_safe_receiver = store.state.r6l_1;
|
|
@@ -50271,7 +50318,7 @@
|
|
|
50271
50318
|
null;
|
|
50272
50319
|
else {
|
|
50273
50320
|
// Inline function 'kotlin.let' call
|
|
50274
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
50321
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.e92_1, tmp2_safe_receiver);
|
|
50275
50322
|
}
|
|
50276
50323
|
}
|
|
50277
50324
|
}
|
|
@@ -50281,8 +50328,8 @@
|
|
|
50281
50328
|
return this.u6g(store, next, action);
|
|
50282
50329
|
};
|
|
50283
50330
|
function clearLogFilesMiddleware$o$handle$slambda($fileSystem, $coreConfig, resultContinuation) {
|
|
50284
|
-
this.
|
|
50285
|
-
this.
|
|
50331
|
+
this.n92_1 = $fileSystem;
|
|
50332
|
+
this.o92_1 = $coreConfig;
|
|
50286
50333
|
CoroutineImpl.call(this, resultContinuation);
|
|
50287
50334
|
}
|
|
50288
50335
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).z2c = function ($this$launchDefault, $completion) {
|
|
@@ -50303,7 +50350,7 @@
|
|
|
50303
50350
|
case 0:
|
|
50304
50351
|
this.s8_1 = 2;
|
|
50305
50352
|
this.r8_1 = 1;
|
|
50306
|
-
suspendResult = this.
|
|
50353
|
+
suspendResult = this.n92_1.s6d(this.o92_1.requireDirectoryPath, this);
|
|
50307
50354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50308
50355
|
return suspendResult;
|
|
50309
50356
|
}
|
|
@@ -50326,8 +50373,8 @@
|
|
|
50326
50373
|
while (true);
|
|
50327
50374
|
};
|
|
50328
50375
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).a2d = function ($this$launchDefault, completion) {
|
|
50329
|
-
var i = new clearLogFilesMiddleware$o$handle$slambda(this.
|
|
50330
|
-
i.
|
|
50376
|
+
var i = new clearLogFilesMiddleware$o$handle$slambda(this.n92_1, this.o92_1, completion);
|
|
50377
|
+
i.p92_1 = $this$launchDefault;
|
|
50331
50378
|
return i;
|
|
50332
50379
|
};
|
|
50333
50380
|
function clearLogFilesMiddleware$o$handle$slambda_0($fileSystem, $coreConfig, resultContinuation) {
|
|
@@ -50339,29 +50386,29 @@
|
|
|
50339
50386
|
return l;
|
|
50340
50387
|
}
|
|
50341
50388
|
function clearLogFilesMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $fileSystem, $coreConfig) {
|
|
50342
|
-
this.
|
|
50343
|
-
this.
|
|
50344
|
-
this.
|
|
50389
|
+
this.q92_1 = $asyncProvider;
|
|
50390
|
+
this.r92_1 = $fileSystem;
|
|
50391
|
+
this.s92_1 = $coreConfig;
|
|
50345
50392
|
}
|
|
50346
50393
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
50347
50394
|
return action instanceof ClearAction;
|
|
50348
50395
|
};
|
|
50349
50396
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).u6g = function (store, next, action) {
|
|
50350
50397
|
var action_0 = action instanceof ClearAction ? action : THROW_CCE();
|
|
50351
|
-
this.
|
|
50398
|
+
this.q92_1.e6c(VOID, clearLogFilesMiddleware$o$handle$slambda_0(this.r92_1, this.s92_1, null));
|
|
50352
50399
|
next(action_0);
|
|
50353
50400
|
};
|
|
50354
50401
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
50355
50402
|
return this.u6g(store, next, action);
|
|
50356
50403
|
};
|
|
50357
50404
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
50358
|
-
this.
|
|
50405
|
+
this.t92_1 = function_0;
|
|
50359
50406
|
}
|
|
50360
50407
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).l28 = function (value, $completion) {
|
|
50361
|
-
return this.
|
|
50408
|
+
return this.t92_1(value, $completion);
|
|
50362
50409
|
};
|
|
50363
50410
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).a3 = function () {
|
|
50364
|
-
return this.
|
|
50411
|
+
return this.t92_1;
|
|
50365
50412
|
};
|
|
50366
50413
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
50367
50414
|
var tmp;
|
|
@@ -50382,17 +50429,17 @@
|
|
|
50382
50429
|
return hashCode(this.a3());
|
|
50383
50430
|
};
|
|
50384
50431
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
50385
|
-
this.
|
|
50432
|
+
this.c93_1 = $controller;
|
|
50386
50433
|
CoroutineImpl.call(this, resultContinuation);
|
|
50387
50434
|
}
|
|
50388
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
50389
|
-
var tmp = this.
|
|
50435
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).e93 = function (it, $completion) {
|
|
50436
|
+
var tmp = this.f93(it, $completion);
|
|
50390
50437
|
tmp.t8_1 = Unit_instance;
|
|
50391
50438
|
tmp.u8_1 = null;
|
|
50392
50439
|
return tmp.z8();
|
|
50393
50440
|
};
|
|
50394
50441
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
|
|
50395
|
-
return this.
|
|
50442
|
+
return this.e93(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
50396
50443
|
};
|
|
50397
50444
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
|
|
50398
50445
|
var suspendResult = this.t8_1;
|
|
@@ -50402,9 +50449,9 @@
|
|
|
50402
50449
|
switch (tmp) {
|
|
50403
50450
|
case 0:
|
|
50404
50451
|
this.s8_1 = 2;
|
|
50405
|
-
var log = this.
|
|
50452
|
+
var log = this.d93_1.toMessageLog();
|
|
50406
50453
|
this.r8_1 = 1;
|
|
50407
|
-
suspendResult = this.
|
|
50454
|
+
suspendResult = this.c93_1.u6e(log, this);
|
|
50408
50455
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50409
50456
|
return suspendResult;
|
|
50410
50457
|
}
|
|
@@ -50426,23 +50473,23 @@
|
|
|
50426
50473
|
}
|
|
50427
50474
|
while (true);
|
|
50428
50475
|
};
|
|
50429
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
50430
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.
|
|
50431
|
-
i.
|
|
50476
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).f93 = function (it, completion) {
|
|
50477
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.c93_1, completion);
|
|
50478
|
+
i.d93_1 = it;
|
|
50432
50479
|
return i;
|
|
50433
50480
|
};
|
|
50434
50481
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
50435
50482
|
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
50436
50483
|
var l = function (it, $completion) {
|
|
50437
|
-
return i.
|
|
50484
|
+
return i.e93(it, $completion);
|
|
50438
50485
|
};
|
|
50439
50486
|
l.$arity = 1;
|
|
50440
50487
|
return l;
|
|
50441
50488
|
}
|
|
50442
50489
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
50443
|
-
this.
|
|
50444
|
-
this.
|
|
50445
|
-
this.
|
|
50490
|
+
this.o93_1 = $controller;
|
|
50491
|
+
this.p93_1 = $$loggerOutput;
|
|
50492
|
+
this.q93_1 = $gameId;
|
|
50446
50493
|
CoroutineImpl.call(this, resultContinuation);
|
|
50447
50494
|
}
|
|
50448
50495
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).z2c = function ($this$launchDefault, $completion) {
|
|
@@ -50463,7 +50510,7 @@
|
|
|
50463
50510
|
case 0:
|
|
50464
50511
|
this.s8_1 = 3;
|
|
50465
50512
|
this.r8_1 = 1;
|
|
50466
|
-
suspendResult = this.
|
|
50513
|
+
suspendResult = this.o93_1.t6e(this);
|
|
50467
50514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50468
50515
|
return suspendResult;
|
|
50469
50516
|
}
|
|
@@ -50471,8 +50518,8 @@
|
|
|
50471
50518
|
continue $sm;
|
|
50472
50519
|
case 1:
|
|
50473
50520
|
this.r8_1 = 2;
|
|
50474
|
-
var tmp_0 = this.
|
|
50475
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
50521
|
+
var tmp_0 = this.p93_1.s93(this.q93_1);
|
|
50522
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.o93_1, null);
|
|
50476
50523
|
suspendResult = tmp_0.l27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
50477
50524
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50478
50525
|
return suspendResult;
|
|
@@ -50496,8 +50543,8 @@
|
|
|
50496
50543
|
while (true);
|
|
50497
50544
|
};
|
|
50498
50545
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).a2d = function ($this$launchDefault, completion) {
|
|
50499
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
50500
|
-
i.
|
|
50546
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.o93_1, this.p93_1, this.q93_1, completion);
|
|
50547
|
+
i.r93_1 = $this$launchDefault;
|
|
50501
50548
|
return i;
|
|
50502
50549
|
};
|
|
50503
50550
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
@@ -50616,20 +50663,20 @@
|
|
|
50616
50663
|
return null;
|
|
50617
50664
|
}
|
|
50618
50665
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
|
|
50619
|
-
this.
|
|
50620
|
-
this.
|
|
50621
|
-
this.
|
|
50622
|
-
this.
|
|
50623
|
-
this.
|
|
50666
|
+
this.t93_1 = $engineLogicConfig;
|
|
50667
|
+
this.u93_1 = $logger;
|
|
50668
|
+
this.v93_1 = $sceneRouter;
|
|
50669
|
+
this.w93_1 = $idsProvider;
|
|
50670
|
+
this.x93_1 = $playerConnectionInteractor;
|
|
50624
50671
|
}
|
|
50625
50672
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
50626
50673
|
return action instanceof MechanicAction;
|
|
50627
50674
|
};
|
|
50628
50675
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).u6g = function (store, next, action) {
|
|
50629
50676
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
50630
|
-
if (this.
|
|
50677
|
+
if (this.t93_1.validateIfMainThread) {
|
|
50631
50678
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
50632
|
-
var logger = this.
|
|
50679
|
+
var logger = this.u93_1;
|
|
50633
50680
|
var tmp;
|
|
50634
50681
|
try {
|
|
50635
50682
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -50656,22 +50703,22 @@
|
|
|
50656
50703
|
if (equals(action_0.p8t_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
50657
50704
|
tmp_2 = listOf(createHostDealerAct(action_0.s8t_1));
|
|
50658
50705
|
} else {
|
|
50659
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
50706
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.v93_1.y8r(action_0.p8t_1, true).l8s_1));
|
|
50660
50707
|
}
|
|
50661
50708
|
tmp_1 = tmp_2;
|
|
50662
50709
|
} else {
|
|
50663
50710
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
50664
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
50711
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.v93_1.y8r(state.h6m().config, false).l8s_1));
|
|
50665
50712
|
} else {
|
|
50666
50713
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
50667
50714
|
var tmp1_config = state.h6m().config;
|
|
50668
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
50715
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.v93_1.z8r(tmp1_config, false, false).l8s_1));
|
|
50669
50716
|
} else {
|
|
50670
50717
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
50671
50718
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.h6m().sceneInfo.u7s_1));
|
|
50672
50719
|
} else {
|
|
50673
50720
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
50674
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.h6m(), this.
|
|
50721
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.h6m(), this.w93_1, this.t93_1, this.x93_1, this.u93_1));
|
|
50675
50722
|
} else {
|
|
50676
50723
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
50677
50724
|
var tmp_3;
|
|
@@ -50809,12 +50856,12 @@
|
|
|
50809
50856
|
}
|
|
50810
50857
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
50811
50858
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
50812
|
-
this.
|
|
50813
|
-
this.
|
|
50814
|
-
this.
|
|
50859
|
+
this.y93_1 = playersIds;
|
|
50860
|
+
this.z93_1 = tag;
|
|
50861
|
+
this.a94_1 = afterReconnection;
|
|
50815
50862
|
}
|
|
50816
50863
|
protoOf(PlayerTurnTimerTag).t65 = function () {
|
|
50817
|
-
return single(this.
|
|
50864
|
+
return single(this.y93_1);
|
|
50818
50865
|
};
|
|
50819
50866
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
50820
50867
|
if (this === other)
|
|
@@ -50823,13 +50870,13 @@
|
|
|
50823
50870
|
return false;
|
|
50824
50871
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
50825
50872
|
THROW_CCE();
|
|
50826
|
-
return equals(this.
|
|
50873
|
+
return equals(this.y93_1, other.y93_1);
|
|
50827
50874
|
};
|
|
50828
50875
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
50829
|
-
return hashCode(this.
|
|
50876
|
+
return hashCode(this.y93_1);
|
|
50830
50877
|
};
|
|
50831
50878
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
50832
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
50879
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.y93_1) + ', tag=' + this.z93_1 + ', afterReconnection=' + this.a94_1 + ')';
|
|
50833
50880
|
};
|
|
50834
50881
|
function playerStartTimerMiddleware(botConfig, playerTurnInteractor, isEnableTimerForPlayer, mergeTimers) {
|
|
50835
50882
|
mergeTimers = mergeTimers === VOID ? false : mergeTimers;
|
|
@@ -50872,10 +50919,10 @@
|
|
|
50872
50919
|
return tmp;
|
|
50873
50920
|
}
|
|
50874
50921
|
function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
50875
|
-
this.
|
|
50876
|
-
this.
|
|
50877
|
-
this.
|
|
50878
|
-
this.
|
|
50922
|
+
this.b94_1 = $isEnableTimerForPlayer;
|
|
50923
|
+
this.c94_1 = $playerTurnInteractor;
|
|
50924
|
+
this.d94_1 = $botConfig;
|
|
50925
|
+
this.e94_1 = $mergeTimers;
|
|
50879
50926
|
}
|
|
50880
50927
|
protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
50881
50928
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -50891,14 +50938,14 @@
|
|
|
50891
50938
|
var _iterator__ex2g4s = tmp0.l();
|
|
50892
50939
|
while (_iterator__ex2g4s.m()) {
|
|
50893
50940
|
var element = _iterator__ex2g4s.n();
|
|
50894
|
-
if (this.
|
|
50941
|
+
if (this.b94_1(element)) {
|
|
50895
50942
|
destination.j(element);
|
|
50896
50943
|
}
|
|
50897
50944
|
}
|
|
50898
50945
|
var startTimerForPlayers = destination;
|
|
50899
50946
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
50900
50947
|
if (!startTimerForPlayers.r()) {
|
|
50901
|
-
var playerTurnModel = this.
|
|
50948
|
+
var playerTurnModel = this.c94_1.d8p(action_0, table);
|
|
50902
50949
|
if (!(playerTurnModel == null)) {
|
|
50903
50950
|
// Inline function 'kotlin.collections.map' call
|
|
50904
50951
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -50906,11 +50953,11 @@
|
|
|
50906
50953
|
var _iterator__ex2g4s_0 = startTimerForPlayers.l();
|
|
50907
50954
|
while (_iterator__ex2g4s_0.m()) {
|
|
50908
50955
|
var item = _iterator__ex2g4s_0.n();
|
|
50909
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
50956
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.d94_1.isDelayForBot, this.d94_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
50910
50957
|
destination_0.j(tmp$ret$4);
|
|
50911
50958
|
}
|
|
50912
50959
|
var timeForPlayers = destination_0;
|
|
50913
|
-
if (this.
|
|
50960
|
+
if (this.e94_1) {
|
|
50914
50961
|
// Inline function 'kotlin.collections.groupBy' call
|
|
50915
50962
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
50916
50963
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -50984,14 +51031,14 @@
|
|
|
50984
51031
|
return this.u6g(store, next, action);
|
|
50985
51032
|
};
|
|
50986
51033
|
function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
50987
|
-
this.
|
|
51034
|
+
this.f94_1 = $isEnableBotForPlayer;
|
|
50988
51035
|
}
|
|
50989
51036
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
50990
51037
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
50991
51038
|
};
|
|
50992
51039
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).u6g = function (store, next, action) {
|
|
50993
51040
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
50994
|
-
if (this.
|
|
51041
|
+
if (this.f94_1(action_0.playerId)) {
|
|
50995
51042
|
var table = store.state.h6m();
|
|
50996
51043
|
var player = getPlayer(table.players, action_0.playerId);
|
|
50997
51044
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -51012,7 +51059,7 @@
|
|
|
51012
51059
|
var _iterator__ex2g4s_0 = destination.l();
|
|
51013
51060
|
while (_iterator__ex2g4s_0.m()) {
|
|
51014
51061
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
51015
|
-
if (element_0.
|
|
51062
|
+
if (element_0.y93_1.t1(action_0.playerId) && element_0.z93_1 === player.s6p_1.l68()) {
|
|
51016
51063
|
tmp$ret$3 = element_0;
|
|
51017
51064
|
break $l$block;
|
|
51018
51065
|
}
|
|
@@ -51034,11 +51081,11 @@
|
|
|
51034
51081
|
return new playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
51035
51082
|
}
|
|
51036
51083
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
51037
|
-
this.
|
|
51038
|
-
this.
|
|
51039
|
-
this.
|
|
51040
|
-
this.
|
|
51041
|
-
this.
|
|
51084
|
+
this.o94_1 = $store;
|
|
51085
|
+
this.p94_1 = $timerTag;
|
|
51086
|
+
this.q94_1 = $serverConfig;
|
|
51087
|
+
this.r94_1 = $logger;
|
|
51088
|
+
this.s94_1 = $action;
|
|
51042
51089
|
CoroutineImpl.call(this, resultContinuation);
|
|
51043
51090
|
}
|
|
51044
51091
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).z2c = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -51057,13 +51104,13 @@
|
|
|
51057
51104
|
var tmp = this.r8_1;
|
|
51058
51105
|
if (tmp === 0) {
|
|
51059
51106
|
this.s8_1 = 1;
|
|
51060
|
-
var table = this.
|
|
51061
|
-
var player = getPlayer(table.players, this.
|
|
51107
|
+
var table = this.o94_1.state.h6m();
|
|
51108
|
+
var player = getPlayer(table.players, this.p94_1.t65());
|
|
51062
51109
|
var connectionState = player.s6p_1.v68().m67_1;
|
|
51063
51110
|
var tmp_0;
|
|
51064
51111
|
switch (connectionState.p2_1) {
|
|
51065
51112
|
case 0:
|
|
51066
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.
|
|
51113
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.p94_1.a94_1));
|
|
51067
51114
|
break;
|
|
51068
51115
|
case 4:
|
|
51069
51116
|
tmp_0 = emptyList();
|
|
@@ -51072,8 +51119,8 @@
|
|
|
51072
51119
|
case 2:
|
|
51073
51120
|
case 1:
|
|
51074
51121
|
var tmp_1;
|
|
51075
|
-
if (table.sceneInfo.h79() && this.
|
|
51076
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.
|
|
51122
|
+
if (table.sceneInfo.h79() && this.q94_1.closeIfBotsAtFinish) {
|
|
51123
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.p94_1.a94_1);
|
|
51077
51124
|
} else {
|
|
51078
51125
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
51079
51126
|
}
|
|
@@ -51081,7 +51128,7 @@
|
|
|
51081
51128
|
tmp_0 = listOf(tmp_1);
|
|
51082
51129
|
break;
|
|
51083
51130
|
case 5:
|
|
51084
|
-
this.
|
|
51131
|
+
this.r94_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + connectionState.toString() + ', ') + ('action:' + this.s94_1.toString()));
|
|
51085
51132
|
tmp_0 = emptyList();
|
|
51086
51133
|
break;
|
|
51087
51134
|
default:
|
|
@@ -51093,7 +51140,7 @@
|
|
|
51093
51140
|
var _iterator__ex2g4s = actions.l();
|
|
51094
51141
|
while (_iterator__ex2g4s.m()) {
|
|
51095
51142
|
var element = _iterator__ex2g4s.n();
|
|
51096
|
-
this.
|
|
51143
|
+
this.o94_1.dispatch(element);
|
|
51097
51144
|
}
|
|
51098
51145
|
}
|
|
51099
51146
|
return Unit_instance;
|
|
@@ -51107,8 +51154,8 @@
|
|
|
51107
51154
|
while (true);
|
|
51108
51155
|
};
|
|
51109
51156
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).a2d = function ($this$launchDefaultWithLock, completion) {
|
|
51110
|
-
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.
|
|
51111
|
-
i.
|
|
51157
|
+
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.o94_1, this.p94_1, this.q94_1, this.r94_1, this.s94_1, completion);
|
|
51158
|
+
i.t94_1 = $this$launchDefaultWithLock;
|
|
51112
51159
|
return i;
|
|
51113
51160
|
};
|
|
51114
51161
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -51120,9 +51167,9 @@
|
|
|
51120
51167
|
return l;
|
|
51121
51168
|
}
|
|
51122
51169
|
function playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
51123
|
-
this.
|
|
51124
|
-
this.
|
|
51125
|
-
this.
|
|
51170
|
+
this.u94_1 = $asyncProvider;
|
|
51171
|
+
this.v94_1 = $serverConfig;
|
|
51172
|
+
this.w94_1 = $logger;
|
|
51126
51173
|
}
|
|
51127
51174
|
protoOf(playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51128
51175
|
return action instanceof TimerTickAction;
|
|
@@ -51131,7 +51178,7 @@
|
|
|
51131
51178
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
51132
51179
|
var timerTag = action_0.b6f_1;
|
|
51133
51180
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
51134
|
-
this.
|
|
51181
|
+
this.u94_1.g6c(VOID, playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0(store, timerTag, this.v94_1, this.w94_1, action_0, null));
|
|
51135
51182
|
}
|
|
51136
51183
|
next(action_0);
|
|
51137
51184
|
};
|
|
@@ -51143,7 +51190,7 @@
|
|
|
51143
51190
|
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
51144
51191
|
}
|
|
51145
51192
|
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
51146
|
-
this.
|
|
51193
|
+
this.x94_1 = $playerConnectionInteractor;
|
|
51147
51194
|
}
|
|
51148
51195
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51149
51196
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -51179,7 +51226,7 @@
|
|
|
51179
51226
|
var _iterator__ex2g4s_0 = destination.l();
|
|
51180
51227
|
while (_iterator__ex2g4s_0.m()) {
|
|
51181
51228
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
51182
|
-
if (element_0.
|
|
51229
|
+
if (element_0.y94_1 === tmp4.z8s_1) {
|
|
51183
51230
|
if (found) {
|
|
51184
51231
|
tmp$ret$4 = null;
|
|
51185
51232
|
break $l$block_2;
|
|
@@ -51198,7 +51245,7 @@
|
|
|
51198
51245
|
if (!(reconnectionTimerTag == null)) {
|
|
51199
51246
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
51200
51247
|
}
|
|
51201
|
-
var actions = this.
|
|
51248
|
+
var actions = this.x94_1.b8p(tmp4.y8s_1, tmp4.z8s_1, store.state.h6m(), tmp4.a8t_1);
|
|
51202
51249
|
// Inline function 'kotlin.collections.forEach' call
|
|
51203
51250
|
var _iterator__ex2g4s_1 = actions.l();
|
|
51204
51251
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -51215,15 +51262,15 @@
|
|
|
51215
51262
|
return new playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
51216
51263
|
}
|
|
51217
51264
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
51218
|
-
this.
|
|
51219
|
-
this.
|
|
51265
|
+
this.y94_1 = playerId;
|
|
51266
|
+
this.z94_1 = state;
|
|
51220
51267
|
}
|
|
51221
51268
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
51222
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
51269
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.y94_1 + ', state=' + this.z94_1.toString() + ')';
|
|
51223
51270
|
};
|
|
51224
51271
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
51225
|
-
var result = getStringHashCode(this.
|
|
51226
|
-
result = imul(result, 31) + this.
|
|
51272
|
+
var result = getStringHashCode(this.y94_1);
|
|
51273
|
+
result = imul(result, 31) + this.z94_1.hashCode() | 0;
|
|
51227
51274
|
return result;
|
|
51228
51275
|
};
|
|
51229
51276
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -51231,14 +51278,14 @@
|
|
|
51231
51278
|
return true;
|
|
51232
51279
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
51233
51280
|
return false;
|
|
51234
|
-
if (!(this.
|
|
51281
|
+
if (!(this.y94_1 === other.y94_1))
|
|
51235
51282
|
return false;
|
|
51236
|
-
if (!this.
|
|
51283
|
+
if (!this.z94_1.equals(other.z94_1))
|
|
51237
51284
|
return false;
|
|
51238
51285
|
return true;
|
|
51239
51286
|
};
|
|
51240
51287
|
function playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
51241
|
-
this.
|
|
51288
|
+
this.a95_1 = $playerConnectionInteractor;
|
|
51242
51289
|
}
|
|
51243
51290
|
protoOf(playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51244
51291
|
return action instanceof TimerTickAction;
|
|
@@ -51252,7 +51299,7 @@
|
|
|
51252
51299
|
var timerTag = tmp4.b6f_1;
|
|
51253
51300
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
51254
51301
|
var state = store.state;
|
|
51255
|
-
var actions = this.
|
|
51302
|
+
var actions = this.a95_1.b8p(timerTag.z94_1, timerTag.y94_1, state.h6m(), true);
|
|
51256
51303
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
51257
51304
|
if (!actions.r()) {
|
|
51258
51305
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -51274,8 +51321,8 @@
|
|
|
51274
51321
|
return new clearOnFinishMiddleware$$inlined$middlewareForActionType$1(asyncProvider, operationsToWait);
|
|
51275
51322
|
}
|
|
51276
51323
|
function clearOnFinishMiddleware$o$handle$slambda($operationsToWait, $store, resultContinuation) {
|
|
51277
|
-
this.
|
|
51278
|
-
this.
|
|
51324
|
+
this.j95_1 = $operationsToWait;
|
|
51325
|
+
this.k95_1 = $store;
|
|
51279
51326
|
CoroutineImpl.call(this, resultContinuation);
|
|
51280
51327
|
}
|
|
51281
51328
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).z2c = function ($this$launchDefault, $completion) {
|
|
@@ -51295,18 +51342,18 @@
|
|
|
51295
51342
|
switch (tmp) {
|
|
51296
51343
|
case 0:
|
|
51297
51344
|
this.s8_1 = 4;
|
|
51298
|
-
this.
|
|
51345
|
+
this.m95_1 = this.j95_1.l();
|
|
51299
51346
|
this.r8_1 = 1;
|
|
51300
51347
|
continue $sm;
|
|
51301
51348
|
case 1:
|
|
51302
|
-
if (!this.
|
|
51349
|
+
if (!this.m95_1.m()) {
|
|
51303
51350
|
this.r8_1 = 3;
|
|
51304
51351
|
continue $sm;
|
|
51305
51352
|
}
|
|
51306
51353
|
|
|
51307
|
-
var element = this.
|
|
51354
|
+
var element = this.m95_1.n();
|
|
51308
51355
|
this.r8_1 = 2;
|
|
51309
|
-
suspendResult = element.
|
|
51356
|
+
suspendResult = element.n95(this);
|
|
51310
51357
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
51311
51358
|
return suspendResult;
|
|
51312
51359
|
}
|
|
@@ -51316,8 +51363,8 @@
|
|
|
51316
51363
|
this.r8_1 = 1;
|
|
51317
51364
|
continue $sm;
|
|
51318
51365
|
case 3:
|
|
51319
|
-
var tmp_0 = this.
|
|
51320
|
-
var tmp0_safe_receiver = this.
|
|
51366
|
+
var tmp_0 = this.k95_1.dispatch;
|
|
51367
|
+
var tmp0_safe_receiver = this.k95_1.state.t6l_1;
|
|
51321
51368
|
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8s_1));
|
|
51322
51369
|
return Unit_instance;
|
|
51323
51370
|
case 4:
|
|
@@ -51335,8 +51382,8 @@
|
|
|
51335
51382
|
while (true);
|
|
51336
51383
|
};
|
|
51337
51384
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).a2d = function ($this$launchDefault, completion) {
|
|
51338
|
-
var i = new clearOnFinishMiddleware$o$handle$slambda(this.
|
|
51339
|
-
i.
|
|
51385
|
+
var i = new clearOnFinishMiddleware$o$handle$slambda(this.j95_1, this.k95_1, completion);
|
|
51386
|
+
i.l95_1 = $this$launchDefault;
|
|
51340
51387
|
return i;
|
|
51341
51388
|
};
|
|
51342
51389
|
function clearOnFinishMiddleware$o$handle$slambda_0($operationsToWait, $store, resultContinuation) {
|
|
@@ -51348,15 +51395,15 @@
|
|
|
51348
51395
|
return l;
|
|
51349
51396
|
}
|
|
51350
51397
|
function clearOnFinishMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $operationsToWait) {
|
|
51351
|
-
this.
|
|
51352
|
-
this.
|
|
51398
|
+
this.o95_1 = $asyncProvider;
|
|
51399
|
+
this.p95_1 = $operationsToWait;
|
|
51353
51400
|
}
|
|
51354
51401
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51355
51402
|
return action instanceof FinishGameMechanicAction;
|
|
51356
51403
|
};
|
|
51357
51404
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).u6g = function (store, next, action) {
|
|
51358
51405
|
next(action instanceof FinishGameMechanicAction ? action : THROW_CCE());
|
|
51359
|
-
this.
|
|
51406
|
+
this.o95_1.e6c(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.p95_1, store, null));
|
|
51360
51407
|
};
|
|
51361
51408
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
51362
51409
|
return this.u6g(store, next, action);
|
|
@@ -51366,12 +51413,12 @@
|
|
|
51366
51413
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
51367
51414
|
}
|
|
51368
51415
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
51369
|
-
this.
|
|
51370
|
-
this.
|
|
51371
|
-
this.
|
|
51372
|
-
this.
|
|
51373
|
-
this.
|
|
51374
|
-
this.
|
|
51416
|
+
this.y95_1 = $action;
|
|
51417
|
+
this.z95_1 = $sceneFactory;
|
|
51418
|
+
this.a96_1 = $table;
|
|
51419
|
+
this.b96_1 = $router;
|
|
51420
|
+
this.c96_1 = $store;
|
|
51421
|
+
this.d96_1 = $sceneValidationInteractor;
|
|
51375
51422
|
CoroutineImpl.call(this, resultContinuation);
|
|
51376
51423
|
}
|
|
51377
51424
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).z2c = function ($this$launchDefault, $completion) {
|
|
@@ -51391,10 +51438,10 @@
|
|
|
51391
51438
|
switch (tmp) {
|
|
51392
51439
|
case 0:
|
|
51393
51440
|
this.s8_1 = 3;
|
|
51394
|
-
var tmp0_subject = this.
|
|
51441
|
+
var tmp0_subject = this.y95_1;
|
|
51395
51442
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
51396
51443
|
this.r8_1 = 1;
|
|
51397
|
-
suspendResult = this.
|
|
51444
|
+
suspendResult = this.z95_1.u8r(this.y95_1.r8w_1, this.a96_1, this);
|
|
51398
51445
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
51399
51446
|
return suspendResult;
|
|
51400
51447
|
}
|
|
@@ -51402,37 +51449,37 @@
|
|
|
51402
51449
|
} else {
|
|
51403
51450
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
51404
51451
|
var tmp_0 = this;
|
|
51405
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
51452
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.a96_1.players));
|
|
51406
51453
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
51407
|
-
var nextSceneCommand = this.
|
|
51454
|
+
var nextSceneCommand = this.b96_1.f8s(this.y95_1.q8w_1, !(gameWinnerPlayerId == null), false, this.a96_1.config);
|
|
51408
51455
|
var tmp_1;
|
|
51409
51456
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
51410
51457
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.l8s_1));
|
|
51411
51458
|
} else {
|
|
51412
51459
|
noWhenBranchMatchedException();
|
|
51413
51460
|
}
|
|
51414
|
-
tmp_0.
|
|
51461
|
+
tmp_0.f96_1 = tmp_1;
|
|
51415
51462
|
this.r8_1 = 2;
|
|
51416
51463
|
continue $sm;
|
|
51417
51464
|
} else {
|
|
51418
51465
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
51419
51466
|
var tmp_2 = this;
|
|
51420
|
-
this.
|
|
51421
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
51422
|
-
tmp_2.
|
|
51467
|
+
this.d96_1.b8s(this.c96_1.state.u6l_1, 'Timers are not empty before scene act ' + this.y95_1.s8w_1 + ', ' + this.y95_1.t8w_1);
|
|
51468
|
+
var mechanicAction = new SceneActMechanicAction(this.y95_1.s8w_1, this.y95_1.t8w_1, this.y95_1.u8w_1);
|
|
51469
|
+
tmp_2.f96_1 = listOf(mechanicAction);
|
|
51423
51470
|
this.r8_1 = 2;
|
|
51424
51471
|
continue $sm;
|
|
51425
51472
|
} else {
|
|
51426
51473
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
51427
51474
|
var tmp_3 = this;
|
|
51428
|
-
var navigationCommand = this.
|
|
51475
|
+
var navigationCommand = this.b96_1.h8s(this.y95_1.v8w_1, this.a96_1);
|
|
51429
51476
|
var tmp_4;
|
|
51430
51477
|
if (navigationCommand instanceof FinishActNext) {
|
|
51431
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
51478
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.a96_1.sceneInfo.u7s_1));
|
|
51432
51479
|
} else {
|
|
51433
51480
|
if (navigationCommand instanceof MoveActNext) {
|
|
51434
51481
|
var tmp9_actId = navigationCommand.n8s_1;
|
|
51435
|
-
var tmp0 = this.
|
|
51482
|
+
var tmp0 = this.a96_1.sceneInfo.x7s_1;
|
|
51436
51483
|
var tmp$ret$2;
|
|
51437
51484
|
l$ret$3: do {
|
|
51438
51485
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -51444,13 +51491,13 @@
|
|
|
51444
51491
|
while (false);
|
|
51445
51492
|
var tmp10_sceneData = tmp$ret$2;
|
|
51446
51493
|
var tmp11_payload = navigationCommand.o8s_1;
|
|
51447
|
-
var actData = this.
|
|
51448
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
51494
|
+
var actData = this.z95_1.v8r(tmp9_actId, tmp10_sceneData, tmp11_payload, this.a96_1);
|
|
51495
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.a96_1.sceneInfo.u7s_1, navigationCommand.n8s_1, actData));
|
|
51449
51496
|
} else {
|
|
51450
51497
|
noWhenBranchMatchedException();
|
|
51451
51498
|
}
|
|
51452
51499
|
}
|
|
51453
|
-
tmp_3.
|
|
51500
|
+
tmp_3.f96_1 = tmp_4;
|
|
51454
51501
|
this.r8_1 = 2;
|
|
51455
51502
|
continue $sm;
|
|
51456
51503
|
} else {
|
|
@@ -51464,19 +51511,19 @@
|
|
|
51464
51511
|
break;
|
|
51465
51512
|
case 1:
|
|
51466
51513
|
var sceneData = suspendResult;
|
|
51467
|
-
var navigationActCommand = this.
|
|
51514
|
+
var navigationActCommand = this.b96_1.e8s(sceneData, this.a96_1);
|
|
51468
51515
|
var tmp_6;
|
|
51469
51516
|
if (navigationActCommand == null) {
|
|
51470
51517
|
tmp_6 = null;
|
|
51471
51518
|
} else {
|
|
51472
51519
|
var tmp0_actId = navigationActCommand.n8s_1;
|
|
51473
51520
|
var tmp1_payload = navigationActCommand.o8s_1;
|
|
51474
|
-
tmp_6 = this.
|
|
51521
|
+
tmp_6 = this.z95_1.v8r(tmp0_actId, sceneData, tmp1_payload, this.a96_1);
|
|
51475
51522
|
}
|
|
51476
51523
|
|
|
51477
51524
|
var actData_0 = tmp_6;
|
|
51478
|
-
var state = this.
|
|
51479
|
-
this.
|
|
51525
|
+
var state = this.c96_1.state;
|
|
51526
|
+
this.d96_1.b8s(state.u6l_1, 'Timers are not empty before scene ' + this.y95_1.r8w_1);
|
|
51480
51527
|
var tmp_7;
|
|
51481
51528
|
if (equals(state.h6m().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
51482
51529
|
var tmp2_safe_receiver = state.h6m().sceneInfo.y7s_1;
|
|
@@ -51502,18 +51549,18 @@
|
|
|
51502
51549
|
}
|
|
51503
51550
|
|
|
51504
51551
|
var currentTurnPlayerId = tmp_7;
|
|
51505
|
-
var tmp5_sceneId = this.
|
|
51552
|
+
var tmp5_sceneId = this.y95_1.r8w_1;
|
|
51506
51553
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
51507
51554
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
51508
|
-
this.
|
|
51555
|
+
this.f96_1 = listOfNotNull_0(mechanicAction_0);
|
|
51509
51556
|
this.r8_1 = 2;
|
|
51510
51557
|
continue $sm;
|
|
51511
51558
|
case 2:
|
|
51512
|
-
var navigationActions = this.
|
|
51559
|
+
var navigationActions = this.f96_1;
|
|
51513
51560
|
var _iterator__ex2g4s = navigationActions.l();
|
|
51514
51561
|
while (_iterator__ex2g4s.m()) {
|
|
51515
51562
|
var element = _iterator__ex2g4s.n();
|
|
51516
|
-
this.
|
|
51563
|
+
this.c96_1.dispatch(element);
|
|
51517
51564
|
}
|
|
51518
51565
|
|
|
51519
51566
|
return Unit_instance;
|
|
@@ -51532,8 +51579,8 @@
|
|
|
51532
51579
|
while (true);
|
|
51533
51580
|
};
|
|
51534
51581
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).a2d = function ($this$launchDefault, completion) {
|
|
51535
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.
|
|
51536
|
-
i.
|
|
51582
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.y95_1, this.z95_1, this.a96_1, this.b96_1, this.c96_1, this.d96_1, completion);
|
|
51583
|
+
i.e96_1 = $this$launchDefault;
|
|
51537
51584
|
return i;
|
|
51538
51585
|
};
|
|
51539
51586
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -51545,10 +51592,10 @@
|
|
|
51545
51592
|
return l;
|
|
51546
51593
|
}
|
|
51547
51594
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
51548
|
-
this.
|
|
51549
|
-
this.
|
|
51550
|
-
this.
|
|
51551
|
-
this.
|
|
51595
|
+
this.g96_1 = $asyncProvider;
|
|
51596
|
+
this.h96_1 = $sceneFactory;
|
|
51597
|
+
this.i96_1 = $router;
|
|
51598
|
+
this.j96_1 = $sceneValidationInteractor;
|
|
51552
51599
|
}
|
|
51553
51600
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51554
51601
|
return action instanceof SceneLifecycleAction;
|
|
@@ -51557,7 +51604,7 @@
|
|
|
51557
51604
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
51558
51605
|
var table = store.state.h6m();
|
|
51559
51606
|
next(action_0);
|
|
51560
|
-
this.
|
|
51607
|
+
this.g96_1.e6c(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.h96_1, table, this.i96_1, store, this.j96_1, null));
|
|
51561
51608
|
};
|
|
51562
51609
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
51563
51610
|
return this.u6g(store, next, action);
|
|
@@ -51603,7 +51650,7 @@
|
|
|
51603
51650
|
return new checkBotsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
51604
51651
|
}
|
|
51605
51652
|
function checkBotsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
51606
|
-
this.
|
|
51653
|
+
this.k96_1 = $logger;
|
|
51607
51654
|
}
|
|
51608
51655
|
protoOf(checkBotsMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51609
51656
|
return action instanceof SceneMechanicAction;
|
|
@@ -51651,7 +51698,7 @@
|
|
|
51651
51698
|
var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.m67_1);
|
|
51652
51699
|
destination.j(tmp$ret$2);
|
|
51653
51700
|
}
|
|
51654
|
-
this.
|
|
51701
|
+
this.k96_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
|
|
51655
51702
|
}
|
|
51656
51703
|
}
|
|
51657
51704
|
next(action_0);
|
|
@@ -51664,7 +51711,7 @@
|
|
|
51664
51711
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
51665
51712
|
}
|
|
51666
51713
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
51667
|
-
this.
|
|
51714
|
+
this.l96_1 = $logger;
|
|
51668
51715
|
}
|
|
51669
51716
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51670
51717
|
return action instanceof PutCardMechanicAction;
|
|
@@ -51697,7 +51744,7 @@
|
|
|
51697
51744
|
var bribes = destination;
|
|
51698
51745
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
51699
51746
|
if (!bribes.r()) {
|
|
51700
|
-
this.
|
|
51747
|
+
this.l96_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.w8p_1.toString() + ', bribes = ' + toString(bribes));
|
|
51701
51748
|
}
|
|
51702
51749
|
}
|
|
51703
51750
|
next(action_0);
|
|
@@ -51710,7 +51757,7 @@
|
|
|
51710
51757
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
51711
51758
|
}
|
|
51712
51759
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
51713
|
-
this.
|
|
51760
|
+
this.m96_1 = $logger;
|
|
51714
51761
|
}
|
|
51715
51762
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
51716
51763
|
return action instanceof SceneMechanicAction;
|
|
@@ -51927,7 +51974,7 @@
|
|
|
51927
51974
|
}
|
|
51928
51975
|
var notValidMessage = tmp;
|
|
51929
51976
|
if (!(notValidMessage == null)) {
|
|
51930
|
-
this.
|
|
51977
|
+
this.m96_1.w('Validation', toString_0(notValidMessage));
|
|
51931
51978
|
}
|
|
51932
51979
|
}
|
|
51933
51980
|
}
|
|
@@ -52018,7 +52065,7 @@
|
|
|
52018
52065
|
};
|
|
52019
52066
|
}
|
|
52020
52067
|
function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52021
|
-
this.
|
|
52068
|
+
this.n96_1 = $logger;
|
|
52022
52069
|
}
|
|
52023
52070
|
protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52024
52071
|
return action instanceof TimerTickAction;
|
|
@@ -52027,7 +52074,7 @@
|
|
|
52027
52074
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
52028
52075
|
var tmp = action_0.b6f_1;
|
|
52029
52076
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
52030
|
-
this.
|
|
52077
|
+
this.n96_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
|
|
52031
52078
|
store.dispatch(new FinishGameMechanicAction(store.state.p8s().s8s_1, store.state.h6m().isGameFinished));
|
|
52032
52079
|
}
|
|
52033
52080
|
next(action_0);
|
|
@@ -52093,7 +52140,7 @@
|
|
|
52093
52140
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
52094
52141
|
}
|
|
52095
52142
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52096
|
-
this.
|
|
52143
|
+
this.o96_1 = $logger;
|
|
52097
52144
|
}
|
|
52098
52145
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52099
52146
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -52101,7 +52148,7 @@
|
|
|
52101
52148
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).u6g = function (store, next, action) {
|
|
52102
52149
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
52103
52150
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
52104
|
-
this.
|
|
52151
|
+
this.o96_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
52105
52152
|
}
|
|
52106
52153
|
next(action_0);
|
|
52107
52154
|
};
|
|
@@ -52117,7 +52164,7 @@
|
|
|
52117
52164
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
52118
52165
|
}
|
|
52119
52166
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52120
|
-
this.
|
|
52167
|
+
this.p96_1 = $logger;
|
|
52121
52168
|
}
|
|
52122
52169
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52123
52170
|
return action instanceof SceneMechanicAction;
|
|
@@ -52128,7 +52175,7 @@
|
|
|
52128
52175
|
if (state.i6m()) {
|
|
52129
52176
|
var sceneInfo = state.h6m().sceneInfo;
|
|
52130
52177
|
if (!get_isWaitingScene(sceneInfo.u7s_1) && Companion_instance_5.p6m(sceneInfo.u7s_1, action_0.n8p_1) && equals(sceneInfo.x7s_1, action_0.sceneData)) {
|
|
52131
|
-
this.
|
|
52178
|
+
this.p96_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
52132
52179
|
}
|
|
52133
52180
|
}
|
|
52134
52181
|
next(action_0);
|
|
@@ -52137,7 +52184,7 @@
|
|
|
52137
52184
|
return this.u6g(store, next, action);
|
|
52138
52185
|
};
|
|
52139
52186
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
52140
|
-
this.
|
|
52187
|
+
this.q96_1 = $logger;
|
|
52141
52188
|
}
|
|
52142
52189
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52143
52190
|
return action instanceof SceneActMechanicAction;
|
|
@@ -52148,7 +52195,7 @@
|
|
|
52148
52195
|
if (state.i6m()) {
|
|
52149
52196
|
var sceneInfo = state.h6m().sceneInfo;
|
|
52150
52197
|
if (Companion_instance_5.p6m(sceneInfo.u7s_1, action_0.f8p_1) && sceneInfo.w7s_1 === action_0.g8p_1 && equals(sceneInfo.y7s_1, action_0.h8p_1)) {
|
|
52151
|
-
this.
|
|
52198
|
+
this.q96_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
52152
52199
|
}
|
|
52153
52200
|
}
|
|
52154
52201
|
next(action_0);
|
|
@@ -52208,7 +52255,7 @@
|
|
|
52208
52255
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
52209
52256
|
}
|
|
52210
52257
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
52211
|
-
this.
|
|
52258
|
+
this.r96_1 = this$0;
|
|
52212
52259
|
}
|
|
52213
52260
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52214
52261
|
return action instanceof FromClientAction;
|
|
@@ -52234,18 +52281,18 @@
|
|
|
52234
52281
|
var tmp$ret$1 = item.playerId;
|
|
52235
52282
|
destination.j(tmp$ret$1);
|
|
52236
52283
|
}
|
|
52237
|
-
this.
|
|
52284
|
+
this.r96_1.g8z_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
52238
52285
|
break $l$block_3;
|
|
52239
52286
|
}
|
|
52240
52287
|
if (!get_isCreated(store.state)) {
|
|
52241
52288
|
if (table.sceneInfo.h79()) {
|
|
52242
|
-
this.
|
|
52289
|
+
this.r96_1.g8z_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
52243
52290
|
} else {
|
|
52244
52291
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
52245
|
-
if (this.
|
|
52246
|
-
sendErrorToClient(this.
|
|
52292
|
+
if (this.r96_1.i8z_1) {
|
|
52293
|
+
sendErrorToClient(this.r96_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
52247
52294
|
}
|
|
52248
|
-
this.
|
|
52295
|
+
this.r96_1.g8z_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
52249
52296
|
}
|
|
52250
52297
|
break $l$block_3;
|
|
52251
52298
|
}
|
|
@@ -52253,18 +52300,18 @@
|
|
|
52253
52300
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m67_1;
|
|
52254
52301
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
52255
52302
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
52256
|
-
if (this.
|
|
52257
|
-
sendErrorToClient(this.
|
|
52303
|
+
if (this.r96_1.i8z_1) {
|
|
52304
|
+
sendErrorToClient(this.r96_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
52258
52305
|
}
|
|
52259
|
-
this.
|
|
52306
|
+
this.r96_1.g8z_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
52260
52307
|
break $l$block_3;
|
|
52261
52308
|
}
|
|
52262
|
-
if (this.
|
|
52309
|
+
if (this.r96_1.h8z_1 && checkIfEventIsDuplicated(this.r96_1, table, tmp4)) {
|
|
52263
52310
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
52264
|
-
if (this.
|
|
52265
|
-
sendErrorToClient(this.
|
|
52311
|
+
if (this.r96_1.i8z_1) {
|
|
52312
|
+
sendErrorToClient(this.r96_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
52266
52313
|
}
|
|
52267
|
-
this.
|
|
52314
|
+
this.r96_1.g8z_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
52268
52315
|
break $l$block_3;
|
|
52269
52316
|
}
|
|
52270
52317
|
next(tmp4);
|
|
@@ -52314,8 +52361,8 @@
|
|
|
52314
52361
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
52315
52362
|
}
|
|
52316
52363
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52317
|
-
this.
|
|
52318
|
-
this.
|
|
52364
|
+
this.s96_1 = $enableCheckWhen;
|
|
52365
|
+
this.t96_1 = this$0;
|
|
52319
52366
|
}
|
|
52320
52367
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52321
52368
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -52324,7 +52371,7 @@
|
|
|
52324
52371
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
52325
52372
|
$l$block_1: {
|
|
52326
52373
|
var state = store.state;
|
|
52327
|
-
if (!isEnabledCheck(this.
|
|
52374
|
+
if (!isEnabledCheck(this.s96_1, state, tmp4)) {
|
|
52328
52375
|
next(tmp4);
|
|
52329
52376
|
break $l$block_1;
|
|
52330
52377
|
}
|
|
@@ -52340,23 +52387,23 @@
|
|
|
52340
52387
|
var tmp$ret$1 = item.playerId;
|
|
52341
52388
|
destination.j(tmp$ret$1);
|
|
52342
52389
|
}
|
|
52343
|
-
this.
|
|
52390
|
+
this.t96_1.o8z_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
52344
52391
|
break $l$block_1;
|
|
52345
52392
|
}
|
|
52346
52393
|
var table = store.state.h6m();
|
|
52347
52394
|
var player = getPlayer(table.players, tmp4.z8s_1);
|
|
52348
52395
|
var tmp0_safe_receiver = player.s6p_1.g67_1;
|
|
52349
52396
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m67_1;
|
|
52350
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
52397
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.t96_1, connectionState, tmp4.y8s_1);
|
|
52351
52398
|
var duplicate = _destruct__k2r9zo.ne();
|
|
52352
52399
|
var report = _destruct__k2r9zo.oe();
|
|
52353
52400
|
if (!(connectionState == null) && duplicate) {
|
|
52354
52401
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
52355
52402
|
if (report) {
|
|
52356
|
-
if (this.
|
|
52357
|
-
sendErrorToClient_0(this.
|
|
52403
|
+
if (this.t96_1.p8z_1) {
|
|
52404
|
+
sendErrorToClient_0(this.t96_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
52358
52405
|
}
|
|
52359
|
-
this.
|
|
52406
|
+
this.t96_1.o8z_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
52360
52407
|
}
|
|
52361
52408
|
break $l$block_1;
|
|
52362
52409
|
} else {
|
|
@@ -52372,13 +52419,13 @@
|
|
|
52372
52419
|
this.o8z_1 = logger;
|
|
52373
52420
|
this.p8z_1 = sendErrorToClient;
|
|
52374
52421
|
}
|
|
52375
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
52422
|
+
protoOf(PlayerConnectionValidationMiddlewares).u96 = function (enableCheckWhen) {
|
|
52376
52423
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
52377
52424
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
52378
52425
|
};
|
|
52379
52426
|
protoOf(PlayerConnectionValidationMiddlewares).q8z = function (enableCheckWhen, $super) {
|
|
52380
52427
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
52381
|
-
return $super === VOID ? this.
|
|
52428
|
+
return $super === VOID ? this.u96(enableCheckWhen) : $super.u96.call(this, enableCheckWhen);
|
|
52382
52429
|
};
|
|
52383
52430
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
52384
52431
|
return function () {
|
|
@@ -52523,8 +52570,8 @@
|
|
|
52523
52570
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
52524
52571
|
}
|
|
52525
52572
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52526
|
-
this.
|
|
52527
|
-
this.
|
|
52573
|
+
this.v96_1 = $enableCheckWhen;
|
|
52574
|
+
this.w96_1 = this$0;
|
|
52528
52575
|
}
|
|
52529
52576
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52530
52577
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -52533,19 +52580,19 @@
|
|
|
52533
52580
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
52534
52581
|
$l$block_1: {
|
|
52535
52582
|
var state = store.state;
|
|
52536
|
-
if (!isEnabledCheck(this.
|
|
52583
|
+
if (!isEnabledCheck(this.v96_1, state, tmp4)) {
|
|
52537
52584
|
next(tmp4);
|
|
52538
52585
|
break $l$block_1;
|
|
52539
52586
|
}
|
|
52540
52587
|
var table = state.h6m();
|
|
52541
52588
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
52542
52589
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
52543
|
-
if (isWrongPlayerTurn(this.
|
|
52590
|
+
if (isWrongPlayerTurn(this.w96_1, store, playersWithTurn, player, tmp4)) {
|
|
52544
52591
|
break $l$block_1;
|
|
52545
52592
|
}
|
|
52546
52593
|
var tmp;
|
|
52547
|
-
if (this.
|
|
52548
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
52594
|
+
if (this.w96_1.z8y_1.validateFromClientActionTags) {
|
|
52595
|
+
tmp = isWrongPlayerTurnTag$default(this.w96_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.w96_1, tmp4, table));
|
|
52549
52596
|
} else {
|
|
52550
52597
|
tmp = false;
|
|
52551
52598
|
}
|
|
@@ -52559,8 +52606,8 @@
|
|
|
52559
52606
|
return this.u6g(store, next, action);
|
|
52560
52607
|
};
|
|
52561
52608
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52562
|
-
this.
|
|
52563
|
-
this.
|
|
52609
|
+
this.x96_1 = $enableCheckWhen;
|
|
52610
|
+
this.y96_1 = this$0;
|
|
52564
52611
|
}
|
|
52565
52612
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52566
52613
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -52570,17 +52617,17 @@
|
|
|
52570
52617
|
$l$block_1: {
|
|
52571
52618
|
var table = store.state.h6m();
|
|
52572
52619
|
var player = getPlayerTurn(tmp4, table.players);
|
|
52573
|
-
if (player == null || !isEnabledCheck(this.
|
|
52620
|
+
if (player == null || !isEnabledCheck(this.x96_1, store.state, tmp4)) {
|
|
52574
52621
|
next(tmp4);
|
|
52575
52622
|
break $l$block_1;
|
|
52576
52623
|
}
|
|
52577
52624
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
52578
|
-
if (isWrongPlayerTurn(this.
|
|
52625
|
+
if (isWrongPlayerTurn(this.y96_1, store, playersWithTurn, player, tmp4)) {
|
|
52579
52626
|
break $l$block_1;
|
|
52580
52627
|
}
|
|
52581
52628
|
var tmp;
|
|
52582
|
-
if (this.
|
|
52583
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
52629
|
+
if (this.y96_1.z8y_1.validateFromClientActionTags) {
|
|
52630
|
+
tmp = isWrongPlayerTurnTag(this.y96_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.y96_1, tmp4, table), this.y96_1.y8y_1);
|
|
52584
52631
|
} else {
|
|
52585
52632
|
tmp = false;
|
|
52586
52633
|
}
|
|
@@ -52594,8 +52641,8 @@
|
|
|
52594
52641
|
return this.u6g(store, next, action);
|
|
52595
52642
|
};
|
|
52596
52643
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
52597
|
-
this.
|
|
52598
|
-
this.
|
|
52644
|
+
this.z96_1 = $enableCheckWhen;
|
|
52645
|
+
this.a97_1 = this$0;
|
|
52599
52646
|
}
|
|
52600
52647
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52601
52648
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -52604,7 +52651,7 @@
|
|
|
52604
52651
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
52605
52652
|
$l$block_1: {
|
|
52606
52653
|
var state = store.state;
|
|
52607
|
-
if (!isEnabledCheck(this.
|
|
52654
|
+
if (!isEnabledCheck(this.z96_1, state, tmp4)) {
|
|
52608
52655
|
next(tmp4);
|
|
52609
52656
|
break $l$block_1;
|
|
52610
52657
|
}
|
|
@@ -52639,7 +52686,7 @@
|
|
|
52639
52686
|
destination.j(tmp$ret$3);
|
|
52640
52687
|
}
|
|
52641
52688
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.j8w()));
|
|
52642
|
-
this.
|
|
52689
|
+
this.a97_1.a8z_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
52643
52690
|
} else {
|
|
52644
52691
|
next(tmp4);
|
|
52645
52692
|
}
|
|
@@ -52667,23 +52714,23 @@
|
|
|
52667
52714
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
52668
52715
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
52669
52716
|
};
|
|
52670
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
52717
|
+
protoOf(PlayerTurnValidationMiddlewares).b97 = function (enableCheckWhen) {
|
|
52671
52718
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
52672
52719
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
52673
52720
|
};
|
|
52674
52721
|
protoOf(PlayerTurnValidationMiddlewares).e8z = function (enableCheckWhen, $super) {
|
|
52675
52722
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
52676
|
-
return $super === VOID ? this.
|
|
52723
|
+
return $super === VOID ? this.b97(enableCheckWhen) : $super.b97.call(this, enableCheckWhen);
|
|
52677
52724
|
};
|
|
52678
52725
|
function Companion_163() {
|
|
52679
|
-
this.
|
|
52726
|
+
this.c97_1 = 50;
|
|
52680
52727
|
}
|
|
52681
52728
|
var Companion_instance_168;
|
|
52682
52729
|
function Companion_getInstance_170() {
|
|
52683
52730
|
return Companion_instance_168;
|
|
52684
52731
|
}
|
|
52685
52732
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
52686
|
-
this.
|
|
52733
|
+
this.d97_1 = this$0;
|
|
52687
52734
|
}
|
|
52688
52735
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).f6f = function (action) {
|
|
52689
52736
|
return action instanceof MechanicAction;
|
|
@@ -52694,19 +52741,19 @@
|
|
|
52694
52741
|
var aid = tmp4.aid;
|
|
52695
52742
|
if (!store.state.i6m()) {
|
|
52696
52743
|
if (!(aid == null)) {
|
|
52697
|
-
this.
|
|
52744
|
+
this.d97_1.l8z_1.nd(aid);
|
|
52698
52745
|
}
|
|
52699
52746
|
next(tmp4);
|
|
52700
52747
|
break $l$block_0;
|
|
52701
52748
|
}
|
|
52702
|
-
if (!(aid == null) && this.
|
|
52703
|
-
this.
|
|
52749
|
+
if (!(aid == null) && this.d97_1.l8z_1.t1(aid)) {
|
|
52750
|
+
this.d97_1.k8z_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
52704
52751
|
break $l$block_0;
|
|
52705
52752
|
}
|
|
52706
52753
|
if (!(aid == null)) {
|
|
52707
|
-
this.
|
|
52708
|
-
if (this.
|
|
52709
|
-
this.
|
|
52754
|
+
this.d97_1.l8z_1.nd(aid);
|
|
52755
|
+
if (this.d97_1.l8z_1.jd_1 > 50) {
|
|
52756
|
+
this.d97_1.l8z_1.od();
|
|
52710
52757
|
}
|
|
52711
52758
|
}
|
|
52712
52759
|
next(tmp4);
|
|
@@ -52732,12 +52779,12 @@
|
|
|
52732
52779
|
protoOf(clearReducer$$inlined$reducerForActionType$1).f6f = function (action) {
|
|
52733
52780
|
return action instanceof ClearAction;
|
|
52734
52781
|
};
|
|
52735
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
52782
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).e97 = function (state, action) {
|
|
52736
52783
|
action instanceof ClearAction || THROW_CCE();
|
|
52737
52784
|
return state.r8s(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
52738
52785
|
};
|
|
52739
52786
|
protoOf(clearReducer$$inlined$reducerForActionType$1).v6g = function (state, action) {
|
|
52740
|
-
return this.
|
|
52787
|
+
return this.e97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
52741
52788
|
};
|
|
52742
52789
|
function fromClientReducer() {
|
|
52743
52790
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -52748,7 +52795,7 @@
|
|
|
52748
52795
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).f6f = function (action) {
|
|
52749
52796
|
return action instanceof FromClientAction;
|
|
52750
52797
|
};
|
|
52751
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
52798
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).e97 = function (state, action) {
|
|
52752
52799
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
52753
52800
|
var tmp;
|
|
52754
52801
|
var tmp_0;
|
|
@@ -52799,11 +52846,11 @@
|
|
|
52799
52846
|
return tmp;
|
|
52800
52847
|
};
|
|
52801
52848
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).v6g = function (state, action) {
|
|
52802
|
-
return this.
|
|
52849
|
+
return this.e97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
52803
52850
|
};
|
|
52804
52851
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
52805
52852
|
return function (tbl) {
|
|
52806
|
-
return this$0.e8y_1.
|
|
52853
|
+
return this$0.e8y_1.l97(tbl, $action.n8p_1, $action.sceneData, $action.o8p_1, $action.p8p_1);
|
|
52807
52854
|
};
|
|
52808
52855
|
}
|
|
52809
52856
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -52812,22 +52859,22 @@
|
|
|
52812
52859
|
if ($action.o8p_1 == null) {
|
|
52813
52860
|
tmp = tbl;
|
|
52814
52861
|
} else {
|
|
52815
|
-
tmp = this$0.f8y_1.
|
|
52862
|
+
tmp = this$0.f8y_1.m97(tbl, $action);
|
|
52816
52863
|
}
|
|
52817
52864
|
return tmp;
|
|
52818
52865
|
};
|
|
52819
52866
|
}
|
|
52820
52867
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
52821
|
-
this.
|
|
52868
|
+
this.n97_1 = this$0;
|
|
52822
52869
|
}
|
|
52823
52870
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).f6f = function (action) {
|
|
52824
52871
|
return action instanceof MechanicAction;
|
|
52825
52872
|
};
|
|
52826
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
52873
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).e97 = function (state, action) {
|
|
52827
52874
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
52828
|
-
if (this.
|
|
52875
|
+
if (this.n97_1.g8y_1.validateIfMainThread) {
|
|
52829
52876
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
52830
|
-
var logger = this.
|
|
52877
|
+
var logger = this.n97_1.h8y_1;
|
|
52831
52878
|
var tmp;
|
|
52832
52879
|
try {
|
|
52833
52880
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -52848,50 +52895,50 @@
|
|
|
52848
52895
|
}
|
|
52849
52896
|
var tmp_1;
|
|
52850
52897
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
52851
|
-
tmp_1 = this.
|
|
52898
|
+
tmp_1 = this.n97_1.y8x_1.q98(state, action_0);
|
|
52852
52899
|
} else {
|
|
52853
52900
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
52854
|
-
tmp_1 = this.
|
|
52901
|
+
tmp_1 = this.n97_1.y8x_1.p98(state, action_0);
|
|
52855
52902
|
} else {
|
|
52856
52903
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
52857
|
-
tmp_1 = this.
|
|
52904
|
+
tmp_1 = this.n97_1.y8x_1.o98(state, action_0);
|
|
52858
52905
|
} else {
|
|
52859
52906
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
52860
|
-
tmp_1 = this.
|
|
52907
|
+
tmp_1 = this.n97_1.y8x_1.n98(state, action_0);
|
|
52861
52908
|
} else {
|
|
52862
52909
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
52863
|
-
tmp_1 = this.
|
|
52910
|
+
tmp_1 = this.n97_1.y8x_1.m98(state, action_0);
|
|
52864
52911
|
} else {
|
|
52865
52912
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
52866
|
-
tmp_1 = this.
|
|
52913
|
+
tmp_1 = this.n97_1.y8x_1.l98(state, action_0);
|
|
52867
52914
|
} else {
|
|
52868
52915
|
if (action_0 instanceof ErrorAction) {
|
|
52869
|
-
tmp_1 = this.
|
|
52916
|
+
tmp_1 = this.n97_1.y8x_1.k98(state, action_0);
|
|
52870
52917
|
} else {
|
|
52871
52918
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
52872
|
-
tmp_1 = state.r8s(state.h6m().copy(VOID, VOID, VOID, VOID, this.
|
|
52919
|
+
tmp_1 = state.r8s(state.h6m().copy(VOID, VOID, VOID, VOID, this.n97_1.z8x_1.j98(state.h6m().players, action_0)));
|
|
52873
52920
|
} else {
|
|
52874
52921
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
52875
|
-
tmp_1 = this.
|
|
52922
|
+
tmp_1 = this.n97_1.a8y_1.i98(state, action_0);
|
|
52876
52923
|
} else {
|
|
52877
52924
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
52878
|
-
tmp_1 = this.
|
|
52925
|
+
tmp_1 = this.n97_1.a8y_1.h98(state, action_0);
|
|
52879
52926
|
} else {
|
|
52880
52927
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
52881
|
-
tmp_1 = this.
|
|
52928
|
+
tmp_1 = this.n97_1.c8y_1.e98(state, action_0);
|
|
52882
52929
|
} else {
|
|
52883
52930
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
52884
|
-
tmp_1 = this.
|
|
52931
|
+
tmp_1 = this.n97_1.b8y_1.d98(state, action_0);
|
|
52885
52932
|
} else {
|
|
52886
52933
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
52887
|
-
tmp_1 = this.
|
|
52934
|
+
tmp_1 = this.n97_1.b8y_1.c98(state, action_0);
|
|
52888
52935
|
} else {
|
|
52889
52936
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
52890
|
-
tmp_1 = this.
|
|
52937
|
+
tmp_1 = this.n97_1.c8y_1.u97(state, action_0);
|
|
52891
52938
|
} else {
|
|
52892
52939
|
if (action_0 instanceof SceneMechanicAction) {
|
|
52893
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
52894
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
52940
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.n97_1, action_0);
|
|
52941
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.n97_1)]);
|
|
52895
52942
|
// Inline function 'kotlin.collections.fold' call
|
|
52896
52943
|
var accumulator = state.h6m();
|
|
52897
52944
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -52903,13 +52950,13 @@
|
|
|
52903
52950
|
tmp_1 = state.r8s(tmp$ret$3);
|
|
52904
52951
|
} else {
|
|
52905
52952
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
52906
|
-
tmp_1 = state.r8s(this.
|
|
52953
|
+
tmp_1 = state.r8s(this.n97_1.f8y_1.m97(state.h6m(), action_0));
|
|
52907
52954
|
} else {
|
|
52908
52955
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
52909
|
-
tmp_1 = state.r8s(this.
|
|
52956
|
+
tmp_1 = state.r8s(this.n97_1.d8y_1.o97(state.h6m(), action_0));
|
|
52910
52957
|
} else {
|
|
52911
52958
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
52912
|
-
tmp_1 = state.r8s(this.
|
|
52959
|
+
tmp_1 = state.r8s(this.n97_1.d8y_1.c8p(state.h6m(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
52913
52960
|
} else {
|
|
52914
52961
|
if (action_0 instanceof MessageMechanicAction) {
|
|
52915
52962
|
tmp_1 = state;
|
|
@@ -52937,7 +52984,7 @@
|
|
|
52937
52984
|
return tmp_1;
|
|
52938
52985
|
};
|
|
52939
52986
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).v6g = function (state, action) {
|
|
52940
|
-
return this.
|
|
52987
|
+
return this.e97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
52941
52988
|
};
|
|
52942
52989
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
52943
52990
|
this.y8x_1 = gameLifecycleReducer;
|
|
@@ -52964,7 +53011,7 @@
|
|
|
52964
53011
|
protoOf(timerReducer$$inlined$reducerForActionType$1).f6f = function (action) {
|
|
52965
53012
|
return action instanceof TimerAction;
|
|
52966
53013
|
};
|
|
52967
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
53014
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).e97 = function (state, action) {
|
|
52968
53015
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
52969
53016
|
var tmp;
|
|
52970
53017
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -52992,7 +53039,7 @@
|
|
|
52992
53039
|
return tmp;
|
|
52993
53040
|
};
|
|
52994
53041
|
protoOf(timerReducer$$inlined$reducerForActionType$1).v6g = function (state, action) {
|
|
52995
|
-
return this.
|
|
53042
|
+
return this.e97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
52996
53043
|
};
|
|
52997
53044
|
function playerTurnReducer($this, action, table) {
|
|
52998
53045
|
var tmp0 = action.actData;
|
|
@@ -53097,7 +53144,7 @@
|
|
|
53097
53144
|
}
|
|
53098
53145
|
function SceneActReducer() {
|
|
53099
53146
|
}
|
|
53100
|
-
protoOf(SceneActReducer).
|
|
53147
|
+
protoOf(SceneActReducer).m97 = function (table, action) {
|
|
53101
53148
|
var tmp;
|
|
53102
53149
|
if (action.actId === 'WAITING_ACT') {
|
|
53103
53150
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.l8e(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -53134,47 +53181,47 @@
|
|
|
53134
53181
|
function MechanicLifecycleReducer() {
|
|
53135
53182
|
}
|
|
53136
53183
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
53137
|
-
this.
|
|
53138
|
-
this.
|
|
53184
|
+
this.r98_1 = tableLifecycleReducer;
|
|
53185
|
+
this.s98_1 = randomPoolProvider;
|
|
53139
53186
|
}
|
|
53140
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53187
|
+
protoOf(BaseMechanicLifecycleReducer).o98 = function (state, action) {
|
|
53141
53188
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
53142
53189
|
var tmp1_tableOrNull = action.w8t_1;
|
|
53143
53190
|
var tmp2_payload = action.y8t_1;
|
|
53144
53191
|
return state.r8s(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
53145
53192
|
};
|
|
53146
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53147
|
-
this.
|
|
53193
|
+
protoOf(BaseMechanicLifecycleReducer).p98 = function (state, action) {
|
|
53194
|
+
this.s98_1.l58(action.previousGameId);
|
|
53148
53195
|
return state;
|
|
53149
53196
|
};
|
|
53150
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53197
|
+
protoOf(BaseMechanicLifecycleReducer).n98 = function (state, action) {
|
|
53151
53198
|
var tmp0_safe_receiver = state.r6l_1;
|
|
53152
53199
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
53153
53200
|
if (tmp1_safe_receiver == null)
|
|
53154
53201
|
null;
|
|
53155
53202
|
else {
|
|
53156
53203
|
// Inline function 'kotlin.apply' call
|
|
53157
|
-
this.
|
|
53204
|
+
this.s98_1.l58(tmp1_safe_receiver);
|
|
53158
53205
|
}
|
|
53159
53206
|
return state.r8s(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.a8u_1, action.c8u_1));
|
|
53160
53207
|
};
|
|
53161
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53208
|
+
protoOf(BaseMechanicLifecycleReducer).m98 = function (state, action) {
|
|
53162
53209
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
53163
53210
|
var tmp0_safe_receiver = state.t6l_1;
|
|
53164
53211
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v8s(action.e8u_1);
|
|
53165
53212
|
return state.r8s(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.e8u_1) : tmp1_elvis_lhs);
|
|
53166
53213
|
};
|
|
53167
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53168
|
-
return state.r8s(this.
|
|
53214
|
+
protoOf(BaseMechanicLifecycleReducer).l98 = function (state, action) {
|
|
53215
|
+
return state.r8s(this.r98_1.t98(state.h6m()));
|
|
53169
53216
|
};
|
|
53170
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
53217
|
+
protoOf(BaseMechanicLifecycleReducer).k98 = function (state, action) {
|
|
53171
53218
|
var tmp0_safe_receiver = state.r6l_1;
|
|
53172
53219
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
53173
53220
|
if (tmp1_safe_receiver == null)
|
|
53174
53221
|
null;
|
|
53175
53222
|
else {
|
|
53176
53223
|
// Inline function 'kotlin.apply' call
|
|
53177
|
-
this.
|
|
53224
|
+
this.s98_1.l58(tmp1_safe_receiver);
|
|
53178
53225
|
}
|
|
53179
53226
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
53180
53227
|
var tmp2_safe_receiver = state.t6l_1;
|
|
@@ -53194,19 +53241,19 @@
|
|
|
53194
53241
|
return value1.id === value2.id;
|
|
53195
53242
|
}
|
|
53196
53243
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
53197
|
-
this.
|
|
53198
|
-
this.
|
|
53199
|
-
this.
|
|
53200
|
-
this.
|
|
53244
|
+
this.u98_1 = pointsInteractor;
|
|
53245
|
+
this.v98_1 = playerHappinessProvider;
|
|
53246
|
+
this.w98_1 = logger;
|
|
53247
|
+
this.x98_1 = dealerConfig;
|
|
53201
53248
|
}
|
|
53202
|
-
protoOf(PlayerHandReducer).
|
|
53249
|
+
protoOf(PlayerHandReducer).y98 = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
53203
53250
|
// Inline function 'kotlin.collections.map' call
|
|
53204
53251
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53205
53252
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
53206
53253
|
var _iterator__ex2g4s = combinations.l();
|
|
53207
53254
|
while (_iterator__ex2g4s.m()) {
|
|
53208
53255
|
var item = _iterator__ex2g4s.n();
|
|
53209
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
53256
|
+
var tmp$ret$0 = mapToRecord(item, this.u98_1.u8m(item));
|
|
53210
53257
|
destination.j(tmp$ret$0);
|
|
53211
53258
|
}
|
|
53212
53259
|
var combinationRecords = destination;
|
|
@@ -53241,8 +53288,8 @@
|
|
|
53241
53288
|
return hand.f6x(VOID, VOID, plus(hand.e6u_1, combinationRecords), plus(hand.f6u_1, combinationRecords));
|
|
53242
53289
|
}
|
|
53243
53290
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
53244
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
53245
|
-
var tmp_0 = this.
|
|
53291
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.x98_1.dealerStrategy : tmp0_elvis_lhs;
|
|
53292
|
+
var tmp_0 = this.u98_1.t8m(cards, selectedTrump, dealerStrategy);
|
|
53246
53293
|
// Inline function 'kotlin.collections.map' call
|
|
53247
53294
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53248
53295
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -53253,11 +53300,11 @@
|
|
|
53253
53300
|
destination_0.j(tmp$ret$5);
|
|
53254
53301
|
}
|
|
53255
53302
|
var value = tmp_0 + sum(destination_0);
|
|
53256
|
-
var luckyFactor = this.
|
|
53257
|
-
Companion_instance_164.s8m(this.
|
|
53303
|
+
var luckyFactor = this.v98_1.x8g(value, config.playersMode, dealerStrategy);
|
|
53304
|
+
Companion_instance_164.s8m(this.w98_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.m6u() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
|
|
53258
53305
|
return hand.f6x(VOID, plus(hand.d6u_1, listOf(Companion_instance_17.z6w(luckyFactor, value))), plus(hand.e6u_1, combinationRecords), plus(hand.f6u_1, combinationRecords));
|
|
53259
53306
|
};
|
|
53260
|
-
protoOf(PlayerHandReducer).
|
|
53307
|
+
protoOf(PlayerHandReducer).z98 = function (hand, combinations) {
|
|
53261
53308
|
// Inline function 'kotlin.collections.map' call
|
|
53262
53309
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
53263
53310
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53265,20 +53312,20 @@
|
|
|
53265
53312
|
var _iterator__ex2g4s = this_0.l();
|
|
53266
53313
|
while (_iterator__ex2g4s.m()) {
|
|
53267
53314
|
var item = _iterator__ex2g4s.n();
|
|
53268
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
53315
|
+
var tmp$ret$0 = mapToRecord(item, this.u98_1.u8m(item));
|
|
53269
53316
|
destination.j(tmp$ret$0);
|
|
53270
53317
|
}
|
|
53271
53318
|
var combinationRecords = destination;
|
|
53272
53319
|
var tmp = updateOrAddItems(hand.e6u_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
53273
53320
|
return hand.f6x(VOID, VOID, tmp, updateOrAddItems(hand.f6u_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
53274
53321
|
};
|
|
53275
|
-
protoOf(PlayerHandReducer).
|
|
53322
|
+
protoOf(PlayerHandReducer).a99 = function (playerId, hand, updatedCombinations, config) {
|
|
53276
53323
|
if (updatedCombinations.r()) {
|
|
53277
53324
|
return hand;
|
|
53278
53325
|
}
|
|
53279
53326
|
var previousFactor = hand.p6u();
|
|
53280
53327
|
if (previousFactor.o6u_1 === 0.0) {
|
|
53281
|
-
return this.
|
|
53328
|
+
return this.z98(hand, updatedCombinations);
|
|
53282
53329
|
}
|
|
53283
53330
|
// Inline function 'kotlin.collections.map' call
|
|
53284
53331
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53286,7 +53333,7 @@
|
|
|
53286
53333
|
var _iterator__ex2g4s = updatedCombinations.l();
|
|
53287
53334
|
while (_iterator__ex2g4s.m()) {
|
|
53288
53335
|
var item = _iterator__ex2g4s.n();
|
|
53289
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
53336
|
+
var tmp$ret$0 = mapToRecord(item, this.u98_1.u8m(item));
|
|
53290
53337
|
destination.j(tmp$ret$0);
|
|
53291
53338
|
}
|
|
53292
53339
|
var updatedCombinationRecords = destination;
|
|
@@ -53346,9 +53393,9 @@
|
|
|
53346
53393
|
}
|
|
53347
53394
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
53348
53395
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
53349
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
53350
|
-
var updatedLuckyFactor = this.
|
|
53351
|
-
Companion_instance_164.s8m(this.
|
|
53396
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.x98_1.dealerStrategy : tmp0_elvis_lhs;
|
|
53397
|
+
var updatedLuckyFactor = this.v98_1.x8g(updatedValue, config.playersMode, dealerStrategy);
|
|
53398
|
+
Companion_instance_164.s8m(this.w98_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.m6u() + ', ') + ('value: ' + updatedValue + ', '));
|
|
53352
53399
|
// Inline function 'kotlin.collections.map' call
|
|
53353
53400
|
var this_0 = hand.d6u_1;
|
|
53354
53401
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53372,7 +53419,7 @@
|
|
|
53372
53419
|
protoOf(PlayerSceneReducer).t8r = function (player, cards, whoShuffleCardsPlayerId) {
|
|
53373
53420
|
return player.x6t(VOID, VOID, cards, player.u6p_1.z6x(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
53374
53421
|
};
|
|
53375
|
-
protoOf(PlayerSceneReducer).
|
|
53422
|
+
protoOf(PlayerSceneReducer).b99 = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
53376
53423
|
// Inline function 'kotlin.collections.map' call
|
|
53377
53424
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53378
53425
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -53385,7 +53432,7 @@
|
|
|
53385
53432
|
}
|
|
53386
53433
|
var detailedCombinations = destination;
|
|
53387
53434
|
var cards = plus(player.t6p_1, distributedCards);
|
|
53388
|
-
var hand = this.s8r_1.
|
|
53435
|
+
var hand = this.s8r_1.y98(player.playerId, player.v6p_1, cards, detailedCombinations, selectedTrump, config);
|
|
53389
53436
|
var tmp;
|
|
53390
53437
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
53391
53438
|
if (!combinations.r()) {
|
|
@@ -53396,7 +53443,7 @@
|
|
|
53396
53443
|
var tmp0_points = tmp;
|
|
53397
53444
|
return player.x6t(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
53398
53445
|
};
|
|
53399
|
-
protoOf(PlayerSceneReducer).
|
|
53446
|
+
protoOf(PlayerSceneReducer).c99 = function (player, sceneData) {
|
|
53400
53447
|
// Inline function 'kotlin.collections.single' call
|
|
53401
53448
|
var single = null;
|
|
53402
53449
|
var found = false;
|
|
@@ -53432,7 +53479,7 @@
|
|
|
53432
53479
|
var tmp10_earnedPoints = playerPointsCell.w6z_1;
|
|
53433
53480
|
var tmp11_earnedCards = emptyList();
|
|
53434
53481
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
53435
|
-
var tmp15_hand = this.s8r_1.
|
|
53482
|
+
var tmp15_hand = this.s8r_1.z98(player.v6p_1, updatedCombinations);
|
|
53436
53483
|
return player.x6t(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
53437
53484
|
};
|
|
53438
53485
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -53471,7 +53518,7 @@
|
|
|
53471
53518
|
this.y8o_1 = gameHistoryReducer;
|
|
53472
53519
|
this.z8o_1 = engineLogicConfig;
|
|
53473
53520
|
}
|
|
53474
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53521
|
+
protoOf(PlayerTurnMechanicReducer).d99 = function (table, model) {
|
|
53475
53522
|
// Inline function 'com.logic.utils.copy' call
|
|
53476
53523
|
var this_0 = table.players;
|
|
53477
53524
|
// Inline function 'kotlin.apply' call
|
|
@@ -53499,7 +53546,7 @@
|
|
|
53499
53546
|
this.x8o_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
53500
53547
|
return newTable;
|
|
53501
53548
|
};
|
|
53502
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53549
|
+
protoOf(PlayerTurnMechanicReducer).e99 = function (table, model) {
|
|
53503
53550
|
var player = getPlayer(table.players, model.t65());
|
|
53504
53551
|
if (player.s6p_1.f67_1 == null) {
|
|
53505
53552
|
this.x8o_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.m6v_1));
|
|
@@ -53510,11 +53557,11 @@
|
|
|
53510
53557
|
this.x8o_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
53511
53558
|
return newTable;
|
|
53512
53559
|
};
|
|
53513
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53560
|
+
protoOf(PlayerTurnMechanicReducer).o97 = function (table, action) {
|
|
53514
53561
|
var player = getPlayer(table.players, action.q8u_1);
|
|
53515
53562
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.x6t(VOID, player.s6p_1.t68(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
53516
53563
|
};
|
|
53517
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
53564
|
+
protoOf(PlayerTurnMechanicReducer).f99 = function (table) {
|
|
53518
53565
|
// Inline function 'kotlin.collections.map' call
|
|
53519
53566
|
var this_0 = table.players;
|
|
53520
53567
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53550,7 +53597,7 @@
|
|
|
53550
53597
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
53551
53598
|
tmp = tmp6_$this.t68(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
53552
53599
|
}
|
|
53553
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.x6t(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.y8o_1.
|
|
53600
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.x6t(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.y8o_1.k99(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
53554
53601
|
};
|
|
53555
53602
|
protoOf(PlayerTurnMechanicReducer).a8p = function (config) {
|
|
53556
53603
|
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.x8o_1);
|
|
@@ -53585,7 +53632,7 @@
|
|
|
53585
53632
|
var _iterator__ex2g4s = players.l();
|
|
53586
53633
|
while (_iterator__ex2g4s.m()) {
|
|
53587
53634
|
var item = _iterator__ex2g4s.n();
|
|
53588
|
-
var tmp$ret$1 = $this.
|
|
53635
|
+
var tmp$ret$1 = $this.f97_1.t8r(item, getValue(scene.m79_1, item.playerId), scene.q79_1);
|
|
53589
53636
|
destination.j(tmp$ret$1);
|
|
53590
53637
|
}
|
|
53591
53638
|
|
|
@@ -53606,12 +53653,12 @@
|
|
|
53606
53653
|
}
|
|
53607
53654
|
|
|
53608
53655
|
var tmp7_requestedCardDecks = tmp_0;
|
|
53609
|
-
var tmp1_$this = $this.
|
|
53656
|
+
var tmp1_$this = $this.i97_1;
|
|
53610
53657
|
var tmp2_gameHistory = table.gameHistory;
|
|
53611
53658
|
var tmp3_playersCards = scene.m79_1;
|
|
53612
53659
|
var tmp4_whoShuffleCardsPlayerId = scene.q79_1;
|
|
53613
53660
|
var tmp5_randomData = scene.n79_1;
|
|
53614
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
53661
|
+
var tmp8_gameHistory = tmp1_$this.l99(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
53615
53662
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
53616
53663
|
case 'EARN_POINTS':
|
|
53617
53664
|
var tmp$ret$5;
|
|
@@ -53629,7 +53676,7 @@
|
|
|
53629
53676
|
var tmp10_newPlayersCards = scene_0.s79_1;
|
|
53630
53677
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
53631
53678
|
var tmp12_config = table.config;
|
|
53632
|
-
var updatedCardDeck = $this.
|
|
53679
|
+
var updatedCardDeck = $this.m99(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
53633
53680
|
// Inline function 'kotlin.collections.map' call
|
|
53634
53681
|
|
|
53635
53682
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53638,21 +53685,21 @@
|
|
|
53638
53685
|
var _iterator__ex2g4s_0 = players.l();
|
|
53639
53686
|
while (_iterator__ex2g4s_0.m()) {
|
|
53640
53687
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
53641
|
-
var tmp2_$this = $this.
|
|
53688
|
+
var tmp2_$this = $this.f97_1;
|
|
53642
53689
|
var tmp3_config = table.config;
|
|
53643
53690
|
var tmp4_distributedCards = getValue(scene_0.s79_1, item_0.playerId);
|
|
53644
53691
|
var tmp0_safe_receiver = scene_0.t79_1;
|
|
53645
53692
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
|
|
53646
53693
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
53647
53694
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
53648
|
-
var tmp$ret$6 = tmp2_$this.
|
|
53695
|
+
var tmp$ret$6 = tmp2_$this.b99(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
53649
53696
|
destination_0.j(tmp$ret$6);
|
|
53650
53697
|
}
|
|
53651
53698
|
|
|
53652
|
-
var tmp13_$this = $this.
|
|
53699
|
+
var tmp13_$this = $this.i97_1;
|
|
53653
53700
|
var tmp14_gameHistory = table.gameHistory;
|
|
53654
53701
|
var tmp15_playersCards = scene_0.s79_1;
|
|
53655
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
53702
|
+
var tmp17_gameHistory = tmp13_$this.n99(tmp15_playersCards, tmp14_gameHistory);
|
|
53656
53703
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
53657
53704
|
case 'CALC_POINTS':
|
|
53658
53705
|
var tmp$ret$9;
|
|
@@ -53675,12 +53722,12 @@
|
|
|
53675
53722
|
var _iterator__ex2g4s_1 = players.l();
|
|
53676
53723
|
while (_iterator__ex2g4s_1.m()) {
|
|
53677
53724
|
var item_1 = _iterator__ex2g4s_1.n();
|
|
53678
|
-
var tmp$ret$10 = $this.
|
|
53725
|
+
var tmp$ret$10 = $this.f97_1.c99(item_1, calcPointsSceneData);
|
|
53679
53726
|
destination_1.j(tmp$ret$10);
|
|
53680
53727
|
}
|
|
53681
53728
|
|
|
53682
53729
|
var updatedPlayers = destination_1;
|
|
53683
|
-
var tmp19_$this = $this.
|
|
53730
|
+
var tmp19_$this = $this.i97_1;
|
|
53684
53731
|
var tmp20_gameHistory = table.gameHistory;
|
|
53685
53732
|
var tmp21_points = calcPointsSceneData.f79_1;
|
|
53686
53733
|
var tmp22_roundContractState = calcPointsSceneData.j79(whoChoseSuitPlayerId);
|
|
@@ -53720,7 +53767,7 @@
|
|
|
53720
53767
|
|
|
53721
53768
|
var tmp26_playersGameAnalytics = tmp_3;
|
|
53722
53769
|
var tmp27_playersAchievements = calcPointsSceneData.g79_1;
|
|
53723
|
-
var tmp28_gameHistory = tmp19_$this.
|
|
53770
|
+
var tmp28_gameHistory = tmp19_$this.o99(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
|
|
53724
53771
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
|
|
53725
53772
|
default:
|
|
53726
53773
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -53752,30 +53799,30 @@
|
|
|
53752
53799
|
}
|
|
53753
53800
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
53754
53801
|
return function (tbl) {
|
|
53755
|
-
return this$0.
|
|
53802
|
+
return this$0.g97_1.f99(tbl);
|
|
53756
53803
|
};
|
|
53757
53804
|
}
|
|
53758
53805
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
53759
53806
|
return function (tbl) {
|
|
53760
|
-
return this$0.
|
|
53807
|
+
return this$0.h97_1.p99(tbl);
|
|
53761
53808
|
};
|
|
53762
53809
|
}
|
|
53763
53810
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
53764
|
-
this.
|
|
53765
|
-
this.
|
|
53766
|
-
this.
|
|
53767
|
-
this.
|
|
53768
|
-
this.
|
|
53769
|
-
this.
|
|
53770
|
-
}
|
|
53771
|
-
protoOf(SceneReducer).
|
|
53811
|
+
this.f97_1 = playerSceneReducer;
|
|
53812
|
+
this.g97_1 = playerTurnMechanicReducer;
|
|
53813
|
+
this.h97_1 = tableLifecycleReducer;
|
|
53814
|
+
this.i97_1 = gameHistoryReducer;
|
|
53815
|
+
this.j97_1 = dealerReducer;
|
|
53816
|
+
this.k97_1 = gameParamsProvider;
|
|
53817
|
+
}
|
|
53818
|
+
protoOf(SceneReducer).l97 = function (table, sceneId, sceneData, actId, actData) {
|
|
53772
53819
|
var previousSceneId = table.sceneInfo.u7s_1;
|
|
53773
53820
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.x7s_1, sceneData)) {
|
|
53774
53821
|
throw new MechanicException('Payload was set twice');
|
|
53775
53822
|
}
|
|
53776
53823
|
return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
53777
53824
|
};
|
|
53778
|
-
protoOf(SceneReducer).
|
|
53825
|
+
protoOf(SceneReducer).m99 = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
53779
53826
|
// Inline function 'kotlin.collections.map' call
|
|
53780
53827
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53781
53828
|
var destination = ArrayList_init_$Create$(newPlayersCards.o());
|
|
@@ -53789,19 +53836,19 @@
|
|
|
53789
53836
|
// Inline function 'kotlin.let' call
|
|
53790
53837
|
var it = flatten(destination);
|
|
53791
53838
|
var tmp;
|
|
53792
|
-
if (this.
|
|
53793
|
-
tmp = this.
|
|
53839
|
+
if (this.k97_1.y8h(config)) {
|
|
53840
|
+
tmp = this.j97_1.k5g(it, cardDeck.g7i_1);
|
|
53794
53841
|
} else {
|
|
53795
53842
|
tmp = it;
|
|
53796
53843
|
}
|
|
53797
53844
|
var playersCardsToRemove = tmp;
|
|
53798
53845
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
53799
|
-
var cards = this.
|
|
53846
|
+
var cards = this.j97_1.j5g(cardDeck.f7i_1, cardsToRemove);
|
|
53800
53847
|
return cardDeck.y8a(cards, VOID, newTopOpenedCard);
|
|
53801
53848
|
};
|
|
53802
53849
|
function TeamsMechanicReducer() {
|
|
53803
53850
|
}
|
|
53804
|
-
protoOf(TeamsMechanicReducer).
|
|
53851
|
+
protoOf(TeamsMechanicReducer).j98 = function (players, action) {
|
|
53805
53852
|
// Inline function 'kotlin.collections.map' call
|
|
53806
53853
|
var this_0 = action.m8u_1.y68_1;
|
|
53807
53854
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53841,10 +53888,10 @@
|
|
|
53841
53888
|
return destination_1;
|
|
53842
53889
|
};
|
|
53843
53890
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
53844
|
-
this.
|
|
53845
|
-
this.
|
|
53891
|
+
this.f98_1 = logger;
|
|
53892
|
+
this.g98_1 = gameHistoryReducer;
|
|
53846
53893
|
}
|
|
53847
|
-
protoOf(TradeMechanicReducer).
|
|
53894
|
+
protoOf(TradeMechanicReducer).i98 = function (state, action) {
|
|
53848
53895
|
var table = state.h6m();
|
|
53849
53896
|
// Inline function 'kotlin.with' call
|
|
53850
53897
|
var player = getPlayer(table.players, action.t8p_1);
|
|
@@ -53852,7 +53899,7 @@
|
|
|
53852
53899
|
var it = player.u6p_1.x6x();
|
|
53853
53900
|
var tmp;
|
|
53854
53901
|
if (it == null) {
|
|
53855
|
-
this.
|
|
53902
|
+
this.f98_1.w(VOID, "Can't support this circle increment");
|
|
53856
53903
|
tmp = player.u6p_1.t6t_1;
|
|
53857
53904
|
} else {
|
|
53858
53905
|
tmp = it;
|
|
@@ -53874,17 +53921,17 @@
|
|
|
53874
53921
|
destination.j(tmp$ret$2);
|
|
53875
53922
|
}
|
|
53876
53923
|
var tmp_1 = destination;
|
|
53877
|
-
var tmp0_$this = this.
|
|
53924
|
+
var tmp0_$this = this.g98_1;
|
|
53878
53925
|
var tmp1_playerId = player.playerId;
|
|
53879
53926
|
var tmp2_suit = action.r8p_1;
|
|
53880
53927
|
var tmp3_gameHistory = table.gameHistory;
|
|
53881
53928
|
var tmp4_players = table.players;
|
|
53882
53929
|
var tmp5_playersMode = table.config.playersMode;
|
|
53883
|
-
tmp_0 = state.r8s(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
53930
|
+
tmp_0 = state.r8s(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.q99(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
53884
53931
|
}
|
|
53885
53932
|
return tmp_0;
|
|
53886
53933
|
};
|
|
53887
|
-
protoOf(TradeMechanicReducer).
|
|
53934
|
+
protoOf(TradeMechanicReducer).h98 = function (state, action) {
|
|
53888
53935
|
var table = state.h6m();
|
|
53889
53936
|
// Inline function 'kotlin.collections.map' call
|
|
53890
53937
|
var this_0 = table.players;
|
|
@@ -53902,13 +53949,13 @@
|
|
|
53902
53949
|
return valueToFind.u6y_1 === value.u6y_1;
|
|
53903
53950
|
}
|
|
53904
53951
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
53905
|
-
this.
|
|
53906
|
-
this.
|
|
53907
|
-
this.
|
|
53908
|
-
this.
|
|
53909
|
-
this.
|
|
53952
|
+
this.p97_1 = teamsLogicProvider;
|
|
53953
|
+
this.q97_1 = combinationsInteractor;
|
|
53954
|
+
this.r97_1 = dealerReducer;
|
|
53955
|
+
this.s97_1 = playerHandReducer;
|
|
53956
|
+
this.t97_1 = gameHistoryReducer;
|
|
53910
53957
|
}
|
|
53911
|
-
protoOf(CombinationsMechanicReducer).
|
|
53958
|
+
protoOf(CombinationsMechanicReducer).r99 = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
53912
53959
|
var bellaCombination = first(playerCombinations.g8c_1);
|
|
53913
53960
|
var player = getPlayer(players, playerCombinations.f8c_1);
|
|
53914
53961
|
if (bellaCombination.w6y_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -53917,7 +53964,7 @@
|
|
|
53917
53964
|
var tmp;
|
|
53918
53965
|
if (config.rules.protectBella) {
|
|
53919
53966
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
53920
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
53967
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.p97_1.m8g(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
53921
53968
|
var tmp_0;
|
|
53922
53969
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
53923
53970
|
tmp_0 = bellaCombination.g6z(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -53931,7 +53978,7 @@
|
|
|
53931
53978
|
return tmp;
|
|
53932
53979
|
}
|
|
53933
53980
|
};
|
|
53934
|
-
protoOf(CombinationsMechanicReducer).
|
|
53981
|
+
protoOf(CombinationsMechanicReducer).u97 = function (state, action) {
|
|
53935
53982
|
var table = state.h6m();
|
|
53936
53983
|
var players = table.players;
|
|
53937
53984
|
var config = table.config;
|
|
@@ -53962,7 +54009,7 @@
|
|
|
53962
54009
|
}
|
|
53963
54010
|
var passedPlayersCombinations = destination;
|
|
53964
54011
|
// Inline function 'kotlin.collections.filterNot' call
|
|
53965
|
-
var tmp0 = this.
|
|
54012
|
+
var tmp0 = this.q97_1.e8k(players);
|
|
53966
54013
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
53967
54014
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
53968
54015
|
var _iterator__ex2g4s_1 = tmp0.l();
|
|
@@ -54009,10 +54056,10 @@
|
|
|
54009
54056
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
|
|
54010
54057
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
54011
54058
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
54012
|
-
var tmp0_$this = this.
|
|
54059
|
+
var tmp0_$this = this.s97_1;
|
|
54013
54060
|
var tmp1_playerId = item_1.playerId;
|
|
54014
54061
|
var tmp2_hand = item_1.v6p_1;
|
|
54015
|
-
var tmp_1 = tmp0_$this.
|
|
54062
|
+
var tmp_1 = tmp0_$this.a99(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
54016
54063
|
tmp = item_1.x6t(VOID, VOID, VOID, VOID, tmp_1, item_1.w6p_1.b6y(VOID, updateOrAddItems(item_1.w6p_1.r6u_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
54017
54064
|
} else {
|
|
54018
54065
|
tmp = item_1;
|
|
@@ -54020,9 +54067,9 @@
|
|
|
54020
54067
|
var tmp$ret$19 = tmp;
|
|
54021
54068
|
destination_4.j(tmp$ret$19);
|
|
54022
54069
|
}
|
|
54023
|
-
return state.r8s(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
54070
|
+
return state.r8s(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.t97_1.s99(action.y8u_1, table.gameHistory)));
|
|
54024
54071
|
};
|
|
54025
|
-
protoOf(CombinationsMechanicReducer).
|
|
54072
|
+
protoOf(CombinationsMechanicReducer).e98 = function (state, action) {
|
|
54026
54073
|
var table = state.h6m();
|
|
54027
54074
|
var player = getPlayer(table.players, action.w8u_1);
|
|
54028
54075
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -54077,13 +54124,13 @@
|
|
|
54077
54124
|
// Inline function 'kotlin.let' call
|
|
54078
54125
|
|
|
54079
54126
|
var cards = player.t6p_1;
|
|
54080
|
-
var newCards = this.
|
|
54081
|
-
var tmp1_cards = this.
|
|
54127
|
+
var newCards = this.r97_1.k5g(cards, trumpSevenCard);
|
|
54128
|
+
var tmp1_cards = this.r97_1.l5g(newCards, trumpCard);
|
|
54082
54129
|
var tmp3_players = updateItem(table.players, player.x6t(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
54083
|
-
var tmp4_gameHistory = this.
|
|
54130
|
+
var tmp4_gameHistory = this.t97_1.t99(player.playerId, listOf(announcedCombination.v6y_1), VOID, table.gameHistory);
|
|
54084
54131
|
return state.r8s(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
54085
54132
|
case 6:
|
|
54086
|
-
return state.r8s(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.x6t(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
54133
|
+
return state.r8s(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.x6t(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.t97_1.t99(player.playerId, listOf(announcedCombination.v6y_1), VOID, table.gameHistory)));
|
|
54087
54134
|
default:
|
|
54088
54135
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
54089
54136
|
}
|
|
@@ -54164,7 +54211,7 @@
|
|
|
54164
54211
|
destination.j(tmp$ret$1);
|
|
54165
54212
|
}
|
|
54166
54213
|
var updatedCombinations = destination;
|
|
54167
|
-
var tmp1_cards = $this.
|
|
54214
|
+
var tmp1_cards = $this.y97_1.k5g(player.t6p_1, card);
|
|
54168
54215
|
var tmp2_points = player.w6p_1.b6y(VOID, updatedCombinations);
|
|
54169
54216
|
var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
54170
54217
|
return player.x6t(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
|
|
@@ -54183,11 +54230,11 @@
|
|
|
54183
54230
|
}
|
|
54184
54231
|
var tmp2_combinations = tmp;
|
|
54185
54232
|
var tmp4_points = tmp0_$this.b6y(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
54186
|
-
var tmp5_hand = $this.
|
|
54233
|
+
var tmp5_hand = $this.a98_1.z98(player.v6p_1, combinations);
|
|
54187
54234
|
return player.x6t(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
54188
54235
|
}
|
|
54189
54236
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
54190
|
-
var bellaCombination = $this.
|
|
54237
|
+
var bellaCombination = $this.x97_1.d8k(players);
|
|
54191
54238
|
// Inline function 'kotlin.collections.associate' call
|
|
54192
54239
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
54193
54240
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -54206,7 +54253,7 @@
|
|
|
54206
54253
|
var isGotBribe = player.playerId === whoGotBribePlayerId;
|
|
54207
54254
|
var isGotLastBribe = player.t66() === 0 && isGotBribe;
|
|
54208
54255
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.f8c_1 === player.playerId;
|
|
54209
|
-
var tmp = isGotLastBribe ? $this.
|
|
54256
|
+
var tmp = isGotLastBribe ? $this.w97_1.j6y(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_149.c8b(CombinationType_BONUS_LAST_BRIBE_getInstance(), config)) : null;
|
|
54210
54257
|
var tmp_0;
|
|
54211
54258
|
if (hasBellaCombination) {
|
|
54212
54259
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -54222,7 +54269,7 @@
|
|
|
54222
54269
|
}
|
|
54223
54270
|
}
|
|
54224
54271
|
var tmp$ret$2 = tmp$ret$1;
|
|
54225
|
-
tmp_0 = $this.
|
|
54272
|
+
tmp_0 = $this.v97_1.r99(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
54226
54273
|
} else {
|
|
54227
54274
|
tmp_0 = null;
|
|
54228
54275
|
}
|
|
@@ -54287,15 +54334,15 @@
|
|
|
54287
54334
|
return value1.u6y_1 === value2.u6y_1;
|
|
54288
54335
|
}
|
|
54289
54336
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
54290
|
-
this.
|
|
54291
|
-
this.
|
|
54292
|
-
this.
|
|
54293
|
-
this.
|
|
54294
|
-
this.
|
|
54295
|
-
this.
|
|
54296
|
-
this.
|
|
54297
|
-
}
|
|
54298
|
-
protoOf(EarnPointsMechanicReducer).
|
|
54337
|
+
this.v97_1 = combinationsMechanicReducer;
|
|
54338
|
+
this.w97_1 = combinationsFactory;
|
|
54339
|
+
this.x97_1 = combinationsInteractor;
|
|
54340
|
+
this.y97_1 = dealerReducer;
|
|
54341
|
+
this.z97_1 = gameHistoryReducer;
|
|
54342
|
+
this.a98_1 = playerHandReducer;
|
|
54343
|
+
this.b98_1 = logger;
|
|
54344
|
+
}
|
|
54345
|
+
protoOf(EarnPointsMechanicReducer).d98 = function (state, action) {
|
|
54299
54346
|
var table = state.h6m();
|
|
54300
54347
|
var player = getPlayer(table.players, action.y8p_1);
|
|
54301
54348
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.y8p_1, table.cardsOnTable.o(), action.w8p_1));
|
|
@@ -54317,13 +54364,13 @@
|
|
|
54317
54364
|
var tmp$ret$0 = item.g78_1;
|
|
54318
54365
|
destination.j(tmp$ret$0);
|
|
54319
54366
|
}
|
|
54320
|
-
tmp = this.
|
|
54367
|
+
tmp = this.z97_1.t99(tmp_0, destination, VOID, table.gameHistory);
|
|
54321
54368
|
}
|
|
54322
54369
|
var tmp1_elvis_lhs = tmp;
|
|
54323
54370
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
54324
54371
|
return state.r8s(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
54325
54372
|
};
|
|
54326
|
-
protoOf(EarnPointsMechanicReducer).
|
|
54373
|
+
protoOf(EarnPointsMechanicReducer).c98 = function (state, action) {
|
|
54327
54374
|
var table = state.h6m();
|
|
54328
54375
|
var players = table.players;
|
|
54329
54376
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -54348,7 +54395,7 @@
|
|
|
54348
54395
|
destination_0.j(tmp$ret$3);
|
|
54349
54396
|
}
|
|
54350
54397
|
if (!(toSet(destination_0).o() === 1)) {
|
|
54351
|
-
this.
|
|
54398
|
+
this.b98_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
54352
54399
|
}
|
|
54353
54400
|
var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.b8q_1, players, config);
|
|
54354
54401
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -54364,7 +54411,7 @@
|
|
|
54364
54411
|
destination_1.j(tmp$ret$6);
|
|
54365
54412
|
}
|
|
54366
54413
|
var tmp3_gameInfo = table.gameInfo.w89(VOID, VOID, table.gameInfo.round.copy(VOID, action.c8q_1));
|
|
54367
|
-
var tmp4_gameHistory = this.
|
|
54414
|
+
var tmp4_gameHistory = this.z97_1.u99(action.b8q_1, bribe, action.c8q_1, playersCombinations, table.gameHistory);
|
|
54368
54415
|
return state.r8s(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
54369
54416
|
};
|
|
54370
54417
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -54372,7 +54419,7 @@
|
|
|
54372
54419
|
return metadata;
|
|
54373
54420
|
}
|
|
54374
54421
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
54375
|
-
$this.
|
|
54422
|
+
$this.j99_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
54376
54423
|
}
|
|
54377
54424
|
var tmp0_safe_receiver = metadata.randomData;
|
|
54378
54425
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -54384,12 +54431,12 @@
|
|
|
54384
54431
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
|
|
54385
54432
|
}
|
|
54386
54433
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
54387
|
-
this.
|
|
54388
|
-
this.
|
|
54389
|
-
this.
|
|
54390
|
-
this.
|
|
54434
|
+
this.g99_1 = pointsInteractor;
|
|
54435
|
+
this.h99_1 = teamsLogicProvider;
|
|
54436
|
+
this.i99_1 = gameLogicConfig;
|
|
54437
|
+
this.j99_1 = logger;
|
|
54391
54438
|
}
|
|
54392
|
-
protoOf(GameHistoryReducer).
|
|
54439
|
+
protoOf(GameHistoryReducer).v99 = function (gameHistory) {
|
|
54393
54440
|
var roundNumber = gameHistory.rounds.length;
|
|
54394
54441
|
var tmp0 = gameHistory.rounds;
|
|
54395
54442
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -54401,7 +54448,7 @@
|
|
|
54401
54448
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
54402
54449
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
54403
54450
|
};
|
|
54404
|
-
protoOf(GameHistoryReducer).
|
|
54451
|
+
protoOf(GameHistoryReducer).l99 = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
54405
54452
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
54406
54453
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.g7i_1, System_instance.ck());
|
|
54407
54454
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -54419,14 +54466,14 @@
|
|
|
54419
54466
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
54420
54467
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_158.initial() : tmp0_elvis_lhs));
|
|
54421
54468
|
};
|
|
54422
|
-
protoOf(GameHistoryReducer).
|
|
54469
|
+
protoOf(GameHistoryReducer).q99 = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
54423
54470
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
54424
54471
|
var tmp;
|
|
54425
54472
|
if (playersMode.isTeamGame) {
|
|
54426
54473
|
// Inline function 'kotlin.arrayOf' call
|
|
54427
54474
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
54428
54475
|
// Inline function 'kotlin.js.asDynamic' call
|
|
54429
|
-
tmp = [playerId, this.
|
|
54476
|
+
tmp = [playerId, this.h99_1.m8g(playerId, players).playerId];
|
|
54430
54477
|
} else {
|
|
54431
54478
|
// Inline function 'kotlin.arrayOf' call
|
|
54432
54479
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -54436,7 +54483,7 @@
|
|
|
54436
54483
|
var roundCommitted = tmp;
|
|
54437
54484
|
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_1(currentRoundHistory.items, listOf(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.ck()))), roundCommitted)));
|
|
54438
54485
|
};
|
|
54439
|
-
protoOf(GameHistoryReducer).
|
|
54486
|
+
protoOf(GameHistoryReducer).n99 = function (playersCards, gameHistory) {
|
|
54440
54487
|
// Inline function 'kotlin.collections.mapValues' call
|
|
54441
54488
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
54442
54489
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
|
|
@@ -54450,14 +54497,14 @@
|
|
|
54450
54497
|
}
|
|
54451
54498
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
|
|
54452
54499
|
};
|
|
54453
|
-
protoOf(GameHistoryReducer).
|
|
54500
|
+
protoOf(GameHistoryReducer).w99 = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
54454
54501
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
|
|
54455
54502
|
};
|
|
54456
|
-
protoOf(GameHistoryReducer).
|
|
54503
|
+
protoOf(GameHistoryReducer).t99 = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
54457
54504
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
54458
|
-
return $super === VOID ? this.
|
|
54505
|
+
return $super === VOID ? this.w99(playerId, combinations, combinationsStates, gameHistory) : $super.w99.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
54459
54506
|
};
|
|
54460
|
-
protoOf(GameHistoryReducer).
|
|
54507
|
+
protoOf(GameHistoryReducer).u99 = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
54461
54508
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.x7h_1, numberOfBribe, System_instance.ck()));
|
|
54462
54509
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
54463
54510
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -54516,7 +54563,7 @@
|
|
|
54516
54563
|
}
|
|
54517
54564
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
54518
54565
|
};
|
|
54519
|
-
protoOf(GameHistoryReducer).
|
|
54566
|
+
protoOf(GameHistoryReducer).s99 = function (winnerCombinations, gameHistory) {
|
|
54520
54567
|
// Inline function 'kotlin.collections.map' call
|
|
54521
54568
|
// Inline function 'kotlin.collections.mapTo' call
|
|
54522
54569
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -54532,7 +54579,7 @@
|
|
|
54532
54579
|
}
|
|
54533
54580
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
54534
54581
|
};
|
|
54535
|
-
protoOf(GameHistoryReducer).
|
|
54582
|
+
protoOf(GameHistoryReducer).k99 = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
54536
54583
|
if (playerConnection == null) {
|
|
54537
54584
|
return gameHistory;
|
|
54538
54585
|
}
|
|
@@ -54544,17 +54591,17 @@
|
|
|
54544
54591
|
tmp = false;
|
|
54545
54592
|
}
|
|
54546
54593
|
var isShortDisconnectState = tmp;
|
|
54547
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
54594
|
+
if (isSupportedReason && !isShortDisconnectState || this.i99_1.verboseGameHistory) {
|
|
54548
54595
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.m67_1, playerConnection.u67(), System_instance.ck())));
|
|
54549
54596
|
}
|
|
54550
54597
|
return gameHistory;
|
|
54551
54598
|
};
|
|
54552
|
-
protoOf(GameHistoryReducer).
|
|
54599
|
+
protoOf(GameHistoryReducer).o99 = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
54553
54600
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
54554
54601
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
54555
54602
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_158.initial() : tmp0_elvis_lhs;
|
|
54556
54603
|
var tmp;
|
|
54557
|
-
if (this.
|
|
54604
|
+
if (this.i99_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
54558
54605
|
// Inline function 'kotlin.collections.map' call
|
|
54559
54606
|
// Inline function 'kotlin.collections.mapTo' call
|
|
54560
54607
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -54569,7 +54616,7 @@
|
|
|
54569
54616
|
tmp = currentMetadata;
|
|
54570
54617
|
}
|
|
54571
54618
|
var updatedMetadata = tmp;
|
|
54572
|
-
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
54619
|
+
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.g99_1.z8n(points), System_instance.ck())));
|
|
54573
54620
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
54574
54621
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
54575
54622
|
};
|
|
@@ -54594,7 +54641,7 @@
|
|
|
54594
54641
|
tmp = cardDeck;
|
|
54595
54642
|
}
|
|
54596
54643
|
var newCardDeck = tmp;
|
|
54597
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
54644
|
+
return new PreviousRound(bribes, newCardDeck, $this.z99_1.a8o(players, config));
|
|
54598
54645
|
}
|
|
54599
54646
|
function roundFinishedGameInfoReducer($this, table) {
|
|
54600
54647
|
var gameInfo = table.gameInfo;
|
|
@@ -54647,10 +54694,10 @@
|
|
|
54647
54694
|
return points.a6y(0, emptyList(), emptyList());
|
|
54648
54695
|
}
|
|
54649
54696
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
54650
|
-
this.
|
|
54651
|
-
this.
|
|
54697
|
+
this.z99_1 = pointsInteractor;
|
|
54698
|
+
this.a9a_1 = historyReducer;
|
|
54652
54699
|
}
|
|
54653
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54700
|
+
protoOf(TableLifecycleReducerImpl).x99 = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
54654
54701
|
var tmp = Companion_instance_146;
|
|
54655
54702
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
54656
54703
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -54682,7 +54729,7 @@
|
|
|
54682
54729
|
}
|
|
54683
54730
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
54684
54731
|
};
|
|
54685
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54732
|
+
protoOf(TableLifecycleReducerImpl).t98 = function (table) {
|
|
54686
54733
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
54687
54734
|
// Inline function 'kotlin.collections.map' call
|
|
54688
54735
|
var this_0 = table.players;
|
|
@@ -54697,10 +54744,10 @@
|
|
|
54697
54744
|
var tmp2_cardsOnTable = emptyList();
|
|
54698
54745
|
var tmp3_bribes = emptyList();
|
|
54699
54746
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
54700
|
-
var tmp5_gameHistory = this.
|
|
54747
|
+
var tmp5_gameHistory = this.a9a_1.v99(table.gameHistory);
|
|
54701
54748
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, null, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
54702
54749
|
};
|
|
54703
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54750
|
+
protoOf(TableLifecycleReducerImpl).p99 = function (table) {
|
|
54704
54751
|
// Inline function 'kotlin.collections.map' call
|
|
54705
54752
|
var this_0 = table.players;
|
|
54706
54753
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -54711,9 +54758,9 @@
|
|
|
54711
54758
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
54712
54759
|
destination.j(tmp$ret$0);
|
|
54713
54760
|
}
|
|
54714
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
54761
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.a9a_1.v99(table.gameHistory));
|
|
54715
54762
|
};
|
|
54716
|
-
protoOf(TableLifecycleReducerImpl).
|
|
54763
|
+
protoOf(TableLifecycleReducerImpl).y99 = function (table, newGameId) {
|
|
54717
54764
|
// Inline function 'kotlin.collections.map' call
|
|
54718
54765
|
var this_0 = table.players;
|
|
54719
54766
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -54752,93 +54799,93 @@
|
|
|
54752
54799
|
return true;
|
|
54753
54800
|
}
|
|
54754
54801
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
54755
|
-
this.
|
|
54756
|
-
this.
|
|
54757
|
-
this.
|
|
54758
|
-
this.
|
|
54802
|
+
this.b9a_1 = $isEnableForPlayer;
|
|
54803
|
+
this.c9a_1 = $playerTurnInteractor;
|
|
54804
|
+
this.d9a_1 = $logger;
|
|
54805
|
+
this.e9a_1 = $playerTurnMechanicReducer;
|
|
54759
54806
|
}
|
|
54760
54807
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).f6f = function (action) {
|
|
54761
54808
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
54762
54809
|
};
|
|
54763
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
54810
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).e97 = function (state, action) {
|
|
54764
54811
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
54765
54812
|
var tmp$ret$0;
|
|
54766
54813
|
$l$block: {
|
|
54767
54814
|
var table = state.h6m();
|
|
54768
54815
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
54769
|
-
if (!this.
|
|
54816
|
+
if (!this.b9a_1(player)) {
|
|
54770
54817
|
tmp$ret$0 = state;
|
|
54771
54818
|
break $l$block;
|
|
54772
54819
|
}
|
|
54773
|
-
var turnModel = this.
|
|
54820
|
+
var turnModel = this.c9a_1.e8p(player, tmp2);
|
|
54774
54821
|
var tmp;
|
|
54775
54822
|
if (turnModel == null) {
|
|
54776
|
-
this.
|
|
54823
|
+
this.d9a_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
54777
54824
|
tmp = state;
|
|
54778
54825
|
} else {
|
|
54779
|
-
tmp = state.r8s(this.
|
|
54826
|
+
tmp = state.r8s(this.e9a_1.e99(table, turnModel));
|
|
54780
54827
|
}
|
|
54781
54828
|
tmp$ret$0 = tmp;
|
|
54782
54829
|
}
|
|
54783
54830
|
return tmp$ret$0;
|
|
54784
54831
|
};
|
|
54785
54832
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).v6g = function (state, action) {
|
|
54786
|
-
return this.
|
|
54833
|
+
return this.e97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
54787
54834
|
};
|
|
54788
54835
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
54789
54836
|
return true;
|
|
54790
54837
|
}
|
|
54791
54838
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
54792
|
-
this.
|
|
54793
|
-
this.
|
|
54794
|
-
this.
|
|
54795
|
-
this.
|
|
54839
|
+
this.f9a_1 = $isEnableForPlayer;
|
|
54840
|
+
this.g9a_1 = $playerTurnInteractor;
|
|
54841
|
+
this.h9a_1 = $logger;
|
|
54842
|
+
this.i9a_1 = $playerTurnMechanicReducer;
|
|
54796
54843
|
}
|
|
54797
54844
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).f6f = function (action) {
|
|
54798
54845
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
54799
54846
|
};
|
|
54800
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
54847
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).e97 = function (state, action) {
|
|
54801
54848
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
54802
54849
|
var tmp$ret$0;
|
|
54803
54850
|
$l$block: {
|
|
54804
54851
|
var table = state.h6m();
|
|
54805
54852
|
var player = getPlayerTurn(tmp2, table.players);
|
|
54806
|
-
if (player == null || !this.
|
|
54853
|
+
if (player == null || !this.f9a_1(player)) {
|
|
54807
54854
|
tmp$ret$0 = state;
|
|
54808
54855
|
break $l$block;
|
|
54809
54856
|
}
|
|
54810
|
-
var turnModel = this.
|
|
54857
|
+
var turnModel = this.g9a_1.e8p(player, tmp2);
|
|
54811
54858
|
var tmp;
|
|
54812
54859
|
if (turnModel == null) {
|
|
54813
|
-
this.
|
|
54860
|
+
this.h9a_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
54814
54861
|
tmp = state;
|
|
54815
54862
|
} else {
|
|
54816
|
-
tmp = state.r8s(this.
|
|
54863
|
+
tmp = state.r8s(this.i9a_1.e99(table, turnModel));
|
|
54817
54864
|
}
|
|
54818
54865
|
tmp$ret$0 = tmp;
|
|
54819
54866
|
}
|
|
54820
54867
|
return tmp$ret$0;
|
|
54821
54868
|
};
|
|
54822
54869
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).v6g = function (state, action) {
|
|
54823
|
-
return this.
|
|
54870
|
+
return this.e97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
54824
54871
|
};
|
|
54825
54872
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
54826
54873
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
54827
54874
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
54828
54875
|
}
|
|
54829
54876
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
54830
|
-
this.
|
|
54831
|
-
this.
|
|
54877
|
+
this.j9a_1 = $playerTurnInteractor;
|
|
54878
|
+
this.k9a_1 = $playerTurnMechanicReducer;
|
|
54832
54879
|
}
|
|
54833
54880
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).f6f = function (action) {
|
|
54834
54881
|
return isInterface(action, NextPlayerTurnAction);
|
|
54835
54882
|
};
|
|
54836
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
54883
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).e97 = function (state, action) {
|
|
54837
54884
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
54838
54885
|
var tmp$ret$0;
|
|
54839
54886
|
$l$block: {
|
|
54840
54887
|
var table = state.h6m();
|
|
54841
|
-
var tmp0_elvis_lhs = this.
|
|
54888
|
+
var tmp0_elvis_lhs = this.j9a_1.d8p(tmp2, table);
|
|
54842
54889
|
var tmp;
|
|
54843
54890
|
if (tmp0_elvis_lhs == null) {
|
|
54844
54891
|
tmp$ret$0 = state;
|
|
@@ -54847,12 +54894,12 @@
|
|
|
54847
54894
|
tmp = tmp0_elvis_lhs;
|
|
54848
54895
|
}
|
|
54849
54896
|
var turnModel = tmp;
|
|
54850
|
-
tmp$ret$0 = state.r8s(this.
|
|
54897
|
+
tmp$ret$0 = state.r8s(this.k9a_1.d99(table, turnModel));
|
|
54851
54898
|
}
|
|
54852
54899
|
return tmp$ret$0;
|
|
54853
54900
|
};
|
|
54854
54901
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).v6g = function (state, action) {
|
|
54855
|
-
return this.
|
|
54902
|
+
return this.e97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
54856
54903
|
};
|
|
54857
54904
|
function get_isCreated(_this__u8e3s4) {
|
|
54858
54905
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -54865,7 +54912,7 @@
|
|
|
54865
54912
|
}
|
|
54866
54913
|
function Companion_164() {
|
|
54867
54914
|
}
|
|
54868
|
-
protoOf(Companion_164).
|
|
54915
|
+
protoOf(Companion_164).l9a = function (payload) {
|
|
54869
54916
|
var tmp;
|
|
54870
54917
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
54871
54918
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -54897,27 +54944,27 @@
|
|
|
54897
54944
|
tmp = payloadMapper;
|
|
54898
54945
|
}
|
|
54899
54946
|
payloadMapper = tmp;
|
|
54900
|
-
this.
|
|
54901
|
-
this.
|
|
54947
|
+
this.m9a_1 = logger;
|
|
54948
|
+
this.n9a_1 = payloadMapper;
|
|
54902
54949
|
}
|
|
54903
54950
|
protoOf(CallbackWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
54904
|
-
this.
|
|
54951
|
+
this.m9a_1.d(tag, message, this.n9a_1(payload));
|
|
54905
54952
|
};
|
|
54906
54953
|
protoOf(CallbackWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
54907
|
-
this.
|
|
54954
|
+
this.m9a_1.e(tag, message, exception, this.n9a_1(payload));
|
|
54908
54955
|
};
|
|
54909
54956
|
protoOf(CallbackWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
54910
|
-
this.
|
|
54957
|
+
this.m9a_1.i(tag, message, this.n9a_1(payload));
|
|
54911
54958
|
};
|
|
54912
54959
|
protoOf(CallbackWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
54913
|
-
this.
|
|
54960
|
+
this.m9a_1.v(tag, message, exception, this.n9a_1(payload));
|
|
54914
54961
|
};
|
|
54915
54962
|
protoOf(CallbackWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
54916
|
-
this.
|
|
54963
|
+
this.m9a_1.w(tag, message, exception, this.n9a_1(payload));
|
|
54917
54964
|
};
|
|
54918
54965
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
54919
|
-
this.
|
|
54920
|
-
this.
|
|
54966
|
+
this.w9a_1 = $$this$unsafeFlow;
|
|
54967
|
+
this.x9a_1 = $types;
|
|
54921
54968
|
CoroutineImpl.call(this, resultContinuation);
|
|
54922
54969
|
}
|
|
54923
54970
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).u2h = function (value, $completion) {
|
|
@@ -54938,15 +54985,15 @@
|
|
|
54938
54985
|
case 0:
|
|
54939
54986
|
this.s8_1 = 5;
|
|
54940
54987
|
var tmp_0 = this;
|
|
54941
|
-
tmp_0.
|
|
54988
|
+
tmp_0.a9b_1 = this.w9a_1;
|
|
54942
54989
|
var tmp_1 = this;
|
|
54943
|
-
tmp_1.
|
|
54990
|
+
tmp_1.z9a_1 = this.y9a_1;
|
|
54944
54991
|
this.r8_1 = 1;
|
|
54945
54992
|
continue $sm;
|
|
54946
54993
|
case 1:
|
|
54947
|
-
var $this$transform = this.
|
|
54948
|
-
var value = this.
|
|
54949
|
-
if (contains(this.
|
|
54994
|
+
var $this$transform = this.a9b_1;
|
|
54995
|
+
var value = this.z9a_1;
|
|
54996
|
+
if (contains(this.x9a_1, value.type)) {
|
|
54950
54997
|
this.r8_1 = 3;
|
|
54951
54998
|
suspendResult = $this$transform.l28(value, this);
|
|
54952
54999
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -54986,8 +55033,8 @@
|
|
|
54986
55033
|
while (true);
|
|
54987
55034
|
};
|
|
54988
55035
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).v2h = function (value, completion) {
|
|
54989
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
54990
|
-
i.
|
|
55036
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.w9a_1, this.x9a_1, completion);
|
|
55037
|
+
i.y9a_1 = value;
|
|
54991
55038
|
return i;
|
|
54992
55039
|
};
|
|
54993
55040
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -55000,8 +55047,8 @@
|
|
|
55000
55047
|
}
|
|
55001
55048
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
55002
55049
|
CoroutineImpl.call(this, resultContinuation);
|
|
55003
|
-
this.
|
|
55004
|
-
this.
|
|
55050
|
+
this.j9b_1 = _this__u8e3s4;
|
|
55051
|
+
this.k9b_1 = collector;
|
|
55005
55052
|
}
|
|
55006
55053
|
protoOf($collectCOROUTINE$).z8 = function () {
|
|
55007
55054
|
var suspendResult = this.t8_1;
|
|
@@ -55011,10 +55058,10 @@
|
|
|
55011
55058
|
switch (tmp) {
|
|
55012
55059
|
case 0:
|
|
55013
55060
|
this.s8_1 = 2;
|
|
55014
|
-
var $this$unsafeFlow = this.
|
|
55061
|
+
var $this$unsafeFlow = this.k9b_1;
|
|
55015
55062
|
this.r8_1 = 1;
|
|
55016
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
55017
|
-
suspendResult = this.
|
|
55063
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.j9b_1.m9b_1, null);
|
|
55064
|
+
suspendResult = this.j9b_1.l9b_1.l27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
55018
55065
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
55019
55066
|
return suspendResult;
|
|
55020
55067
|
}
|
|
@@ -55038,8 +55085,8 @@
|
|
|
55038
55085
|
};
|
|
55039
55086
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
55040
55087
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55041
|
-
$this.
|
|
55042
|
-
var tmp0_elvis_lhs = $this.
|
|
55088
|
+
$this.p9b_1;
|
|
55089
|
+
var tmp0_elvis_lhs = $this.n9b_1(payload);
|
|
55043
55090
|
var tmp;
|
|
55044
55091
|
if (tmp0_elvis_lhs == null) {
|
|
55045
55092
|
return Unit_instance;
|
|
@@ -55048,7 +55095,7 @@
|
|
|
55048
55095
|
}
|
|
55049
55096
|
var key = tmp;
|
|
55050
55097
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
55051
|
-
var this_0 = $this.
|
|
55098
|
+
var this_0 = $this.q9b_1;
|
|
55052
55099
|
var value = this_0.b2(key);
|
|
55053
55100
|
var tmp_0;
|
|
55054
55101
|
if (value == null) {
|
|
@@ -55059,7 +55106,7 @@
|
|
|
55059
55106
|
tmp_0 = value;
|
|
55060
55107
|
}
|
|
55061
55108
|
var logger = tmp_0;
|
|
55062
|
-
logger.
|
|
55109
|
+
logger.r9b_1.g2b(new LoggerOutputDataDto(type, key, tag, message, stackTrace));
|
|
55063
55110
|
}
|
|
55064
55111
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
55065
55112
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -55069,35 +55116,35 @@
|
|
|
55069
55116
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
55070
55117
|
controller = controller === VOID ? null : controller;
|
|
55071
55118
|
job = job === VOID ? null : job;
|
|
55072
|
-
this.
|
|
55073
|
-
this.
|
|
55074
|
-
this.
|
|
55119
|
+
this.r9b_1 = flow;
|
|
55120
|
+
this.s9b_1 = controller;
|
|
55121
|
+
this.t9b_1 = job;
|
|
55075
55122
|
}
|
|
55076
|
-
protoOf(LoggerModel).
|
|
55077
|
-
this.
|
|
55078
|
-
var tmp0_safe_receiver = this.
|
|
55123
|
+
protoOf(LoggerModel).u9b = function () {
|
|
55124
|
+
this.r9b_1.k2b();
|
|
55125
|
+
var tmp0_safe_receiver = this.t9b_1;
|
|
55079
55126
|
if (tmp0_safe_receiver == null)
|
|
55080
55127
|
null;
|
|
55081
55128
|
else {
|
|
55082
55129
|
tmp0_safe_receiver.o1q();
|
|
55083
55130
|
}
|
|
55084
55131
|
};
|
|
55085
|
-
protoOf(LoggerModel).
|
|
55132
|
+
protoOf(LoggerModel).v9b = function (flow, controller, job) {
|
|
55086
55133
|
return new LoggerModel(flow, controller, job);
|
|
55087
55134
|
};
|
|
55088
|
-
protoOf(LoggerModel).
|
|
55089
|
-
flow = flow === VOID ? this.
|
|
55090
|
-
controller = controller === VOID ? this.
|
|
55091
|
-
job = job === VOID ? this.
|
|
55092
|
-
return $super === VOID ? this.
|
|
55135
|
+
protoOf(LoggerModel).w9b = function (flow, controller, job, $super) {
|
|
55136
|
+
flow = flow === VOID ? this.r9b_1 : flow;
|
|
55137
|
+
controller = controller === VOID ? this.s9b_1 : controller;
|
|
55138
|
+
job = job === VOID ? this.t9b_1 : job;
|
|
55139
|
+
return $super === VOID ? this.v9b(flow, controller, job) : $super.v9b.call(this, flow, controller, job);
|
|
55093
55140
|
};
|
|
55094
55141
|
protoOf(LoggerModel).toString = function () {
|
|
55095
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
55142
|
+
return 'LoggerModel(flow=' + toString(this.r9b_1) + ', controller=' + toString_0(this.s9b_1) + ', job=' + toString_0(this.t9b_1) + ')';
|
|
55096
55143
|
};
|
|
55097
55144
|
protoOf(LoggerModel).hashCode = function () {
|
|
55098
|
-
var result = hashCode(this.
|
|
55099
|
-
result = imul(result, 31) + (this.r9b_1 == null ? 0 : hashCode(this.r9b_1)) | 0;
|
|
55145
|
+
var result = hashCode(this.r9b_1);
|
|
55100
55146
|
result = imul(result, 31) + (this.s9b_1 == null ? 0 : hashCode(this.s9b_1)) | 0;
|
|
55147
|
+
result = imul(result, 31) + (this.t9b_1 == null ? 0 : hashCode(this.t9b_1)) | 0;
|
|
55101
55148
|
return result;
|
|
55102
55149
|
};
|
|
55103
55150
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -55105,18 +55152,18 @@
|
|
|
55105
55152
|
return true;
|
|
55106
55153
|
if (!(other instanceof LoggerModel))
|
|
55107
55154
|
return false;
|
|
55108
|
-
if (!equals(this.q9b_1, other.q9b_1))
|
|
55109
|
-
return false;
|
|
55110
55155
|
if (!equals(this.r9b_1, other.r9b_1))
|
|
55111
55156
|
return false;
|
|
55112
55157
|
if (!equals(this.s9b_1, other.s9b_1))
|
|
55113
55158
|
return false;
|
|
55159
|
+
if (!equals(this.t9b_1, other.t9b_1))
|
|
55160
|
+
return false;
|
|
55114
55161
|
return true;
|
|
55115
55162
|
};
|
|
55116
55163
|
function Companion_165() {
|
|
55117
|
-
this.
|
|
55164
|
+
this.x9b_1 = 1000;
|
|
55118
55165
|
}
|
|
55119
|
-
protoOf(Companion_165).
|
|
55166
|
+
protoOf(Companion_165).y9b = function (payload) {
|
|
55120
55167
|
var tmp;
|
|
55121
55168
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
55122
55169
|
tmp = payload.id;
|
|
@@ -55138,13 +55185,13 @@
|
|
|
55138
55185
|
return Companion_instance_170;
|
|
55139
55186
|
}
|
|
55140
55187
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
55141
|
-
this.
|
|
55188
|
+
this.z9b_1 = function_0;
|
|
55142
55189
|
}
|
|
55143
55190
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).l28 = function (value, $completion) {
|
|
55144
|
-
return this.
|
|
55191
|
+
return this.z9b_1(value, $completion);
|
|
55145
55192
|
};
|
|
55146
55193
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
55147
|
-
return this.
|
|
55194
|
+
return this.z9b_1;
|
|
55148
55195
|
};
|
|
55149
55196
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
55150
55197
|
var tmp;
|
|
@@ -55168,8 +55215,8 @@
|
|
|
55168
55215
|
return null;
|
|
55169
55216
|
}
|
|
55170
55217
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
55171
|
-
this.
|
|
55172
|
-
this.
|
|
55218
|
+
this.l9b_1 = $this;
|
|
55219
|
+
this.m9b_1 = $types;
|
|
55173
55220
|
}
|
|
55174
55221
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).m28 = function (collector, $completion) {
|
|
55175
55222
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -55189,26 +55236,26 @@
|
|
|
55189
55236
|
}
|
|
55190
55237
|
payloadToKeyMapper = tmp;
|
|
55191
55238
|
enabled = enabled === VOID ? true : enabled;
|
|
55192
|
-
this.
|
|
55193
|
-
this.
|
|
55239
|
+
this.n9b_1 = payloadToKeyMapper;
|
|
55240
|
+
this.o9b_1 = enabled;
|
|
55194
55241
|
var tmp_0 = this;
|
|
55195
55242
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
55196
|
-
tmp_0.
|
|
55243
|
+
tmp_0.p9b_1 = get_atomicfu$reentrantLock();
|
|
55197
55244
|
var tmp_1 = this;
|
|
55198
55245
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
55199
|
-
tmp_1.
|
|
55246
|
+
tmp_1.q9b_1 = LinkedHashMap_init_$Create$();
|
|
55200
55247
|
}
|
|
55201
55248
|
protoOf(FileLoggerOutputImpl).c1l = function (_set____db54di) {
|
|
55202
|
-
this.
|
|
55249
|
+
this.o9b_1 = _set____db54di;
|
|
55203
55250
|
};
|
|
55204
55251
|
protoOf(FileLoggerOutputImpl).d1l = function () {
|
|
55205
|
-
return this.
|
|
55252
|
+
return this.o9b_1;
|
|
55206
55253
|
};
|
|
55207
|
-
protoOf(FileLoggerOutputImpl).
|
|
55254
|
+
protoOf(FileLoggerOutputImpl).a9c = function (key, types) {
|
|
55208
55255
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55209
|
-
this.
|
|
55256
|
+
this.p9b_1;
|
|
55210
55257
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
55211
|
-
var this_0 = this.
|
|
55258
|
+
var this_0 = this.q9b_1;
|
|
55212
55259
|
var value = this_0.b2(key);
|
|
55213
55260
|
var tmp;
|
|
55214
55261
|
if (value == null) {
|
|
@@ -55221,26 +55268,26 @@
|
|
|
55221
55268
|
var logger = tmp;
|
|
55222
55269
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
55223
55270
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
55224
|
-
var this_1 = logger.
|
|
55271
|
+
var this_1 = logger.r9b_1;
|
|
55225
55272
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
55226
55273
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
55227
55274
|
};
|
|
55228
|
-
protoOf(FileLoggerOutputImpl).
|
|
55275
|
+
protoOf(FileLoggerOutputImpl).a92 = function (key) {
|
|
55229
55276
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55230
|
-
this.
|
|
55231
|
-
var tmp0_safe_receiver = this.
|
|
55277
|
+
this.p9b_1;
|
|
55278
|
+
var tmp0_safe_receiver = this.q9b_1.b2(key);
|
|
55232
55279
|
if (tmp0_safe_receiver == null)
|
|
55233
55280
|
null;
|
|
55234
55281
|
else {
|
|
55235
|
-
tmp0_safe_receiver.
|
|
55282
|
+
tmp0_safe_receiver.u9b();
|
|
55236
55283
|
}
|
|
55237
|
-
this.
|
|
55284
|
+
this.q9b_1.f2(key);
|
|
55238
55285
|
};
|
|
55239
|
-
protoOf(FileLoggerOutputImpl).
|
|
55286
|
+
protoOf(FileLoggerOutputImpl).z91 = function (key, job, controller) {
|
|
55240
55287
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55241
|
-
this.
|
|
55288
|
+
this.p9b_1;
|
|
55242
55289
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
55243
|
-
var this_0 = this.
|
|
55290
|
+
var this_0 = this.q9b_1;
|
|
55244
55291
|
var value = this_0.b2(key);
|
|
55245
55292
|
var tmp;
|
|
55246
55293
|
if (value == null) {
|
|
@@ -55250,30 +55297,30 @@
|
|
|
55250
55297
|
} else {
|
|
55251
55298
|
tmp = value;
|
|
55252
55299
|
}
|
|
55253
|
-
var updatedModel = tmp.
|
|
55300
|
+
var updatedModel = tmp.w9b(VOID, controller, job);
|
|
55254
55301
|
// Inline function 'kotlin.collections.set' call
|
|
55255
|
-
this.
|
|
55302
|
+
this.q9b_1.e2(key, updatedModel);
|
|
55256
55303
|
};
|
|
55257
55304
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
55258
55305
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55259
|
-
this.
|
|
55306
|
+
this.p9b_1;
|
|
55260
55307
|
// Inline function 'kotlin.collections.forEach' call
|
|
55261
55308
|
// Inline function 'kotlin.collections.iterator' call
|
|
55262
|
-
var _iterator__ex2g4s = this.
|
|
55309
|
+
var _iterator__ex2g4s = this.q9b_1.u().l();
|
|
55263
55310
|
while (_iterator__ex2g4s.m()) {
|
|
55264
55311
|
var element = _iterator__ex2g4s.n();
|
|
55265
|
-
element.w().
|
|
55312
|
+
element.w().u9b();
|
|
55266
55313
|
}
|
|
55267
|
-
this.
|
|
55314
|
+
this.q9b_1.h2();
|
|
55268
55315
|
};
|
|
55269
55316
|
protoOf(FileLoggerOutputImpl).x1k = function (tag, message, payload) {
|
|
55270
|
-
if (!this.
|
|
55317
|
+
if (!this.o9b_1)
|
|
55271
55318
|
return Unit_instance;
|
|
55272
55319
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
55273
55320
|
log$default(this, tmp0_type, tag, message, payload);
|
|
55274
55321
|
};
|
|
55275
55322
|
protoOf(FileLoggerOutputImpl).y1k = function (tag, message, exception, payload) {
|
|
55276
|
-
if (!this.
|
|
55323
|
+
if (!this.o9b_1)
|
|
55277
55324
|
return Unit_instance;
|
|
55278
55325
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
55279
55326
|
var tmp;
|
|
@@ -55288,13 +55335,13 @@
|
|
|
55288
55335
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
55289
55336
|
};
|
|
55290
55337
|
protoOf(FileLoggerOutputImpl).b1l = function (tag, message, payload) {
|
|
55291
|
-
if (!this.
|
|
55338
|
+
if (!this.o9b_1)
|
|
55292
55339
|
return Unit_instance;
|
|
55293
55340
|
var tmp0_type = LogType_INFO_getInstance();
|
|
55294
55341
|
log(this, tmp0_type, tag, message, payload, null);
|
|
55295
55342
|
};
|
|
55296
55343
|
protoOf(FileLoggerOutputImpl).a1l = function (tag, message, exception, payload) {
|
|
55297
|
-
if (!this.
|
|
55344
|
+
if (!this.o9b_1)
|
|
55298
55345
|
return Unit_instance;
|
|
55299
55346
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
55300
55347
|
var tmp;
|
|
@@ -55309,7 +55356,7 @@
|
|
|
55309
55356
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
55310
55357
|
};
|
|
55311
55358
|
protoOf(FileLoggerOutputImpl).z1k = function (tag, message, exception, payload) {
|
|
55312
|
-
if (!this.
|
|
55359
|
+
if (!this.o9b_1)
|
|
55313
55360
|
return Unit_instance;
|
|
55314
55361
|
var tmp4_type = LogType_WARN_getInstance();
|
|
55315
55362
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -55849,9 +55896,9 @@
|
|
|
55849
55896
|
}
|
|
55850
55897
|
}
|
|
55851
55898
|
function GameHelperImpl(logger) {
|
|
55852
|
-
this.
|
|
55899
|
+
this.e9c_1 = logger;
|
|
55853
55900
|
}
|
|
55854
|
-
protoOf(GameHelperImpl).
|
|
55901
|
+
protoOf(GameHelperImpl).b9c = function (store, playerIds, includeBots) {
|
|
55855
55902
|
var state = store.state;
|
|
55856
55903
|
var tmp;
|
|
55857
55904
|
if (!state.i6m()) {
|
|
@@ -55897,7 +55944,7 @@
|
|
|
55897
55944
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55898
55945
|
return copyToArray(destination_1);
|
|
55899
55946
|
};
|
|
55900
|
-
protoOf(GameHelperImpl).
|
|
55947
|
+
protoOf(GameHelperImpl).c9c = function (store, playerIds, includeBots) {
|
|
55901
55948
|
var state = store.state;
|
|
55902
55949
|
var tmp;
|
|
55903
55950
|
if (!state.i6m()) {
|
|
@@ -56068,10 +56115,10 @@
|
|
|
56068
56115
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56069
56116
|
return copyToArray(destination);
|
|
56070
56117
|
};
|
|
56071
|
-
protoOf(GameHelperImpl).
|
|
56118
|
+
protoOf(GameHelperImpl).d9c = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
56072
56119
|
var roomMode = mapToRoomMode(mode);
|
|
56073
56120
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
56074
|
-
this.
|
|
56121
|
+
this.e9c_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
56075
56122
|
var options = Companion_instance_154.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
56076
56123
|
var playersMode = this.mapPlayers(players);
|
|
56077
56124
|
var pointsMode = this.mapPoints(points);
|
|
@@ -56506,40 +56553,40 @@
|
|
|
56506
56553
|
function getRandomAvatarData_0($this) {
|
|
56507
56554
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
56508
56555
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
56509
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
56556
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.i9c()), avatarSet);
|
|
56510
56557
|
}
|
|
56511
56558
|
function getAvatarUrlByIndex($this, data) {
|
|
56512
56559
|
return mapToPattern($this, data);
|
|
56513
56560
|
}
|
|
56514
56561
|
function getNicknameByIndex($this, data) {
|
|
56515
|
-
return data.
|
|
56562
|
+
return data.k9c_1.l9c(data.j9c_1);
|
|
56516
56563
|
}
|
|
56517
56564
|
function mapToPattern($this, data) {
|
|
56518
|
-
return 'debertz://raspberry.games/' + data.
|
|
56565
|
+
return 'debertz://raspberry.games/' + data.k9c_1.p2_1 + '/' + data.j9c_1;
|
|
56519
56566
|
}
|
|
56520
56567
|
function Companion_166() {
|
|
56521
56568
|
Companion_instance_171 = this;
|
|
56522
|
-
this.
|
|
56569
|
+
this.m9c_1 = 'debertz://raspberry.games';
|
|
56523
56570
|
var tmp = this;
|
|
56524
56571
|
// Inline function 'kotlin.arrayOf' call
|
|
56525
56572
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56526
56573
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56527
|
-
tmp.
|
|
56574
|
+
tmp.n9c_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
56528
56575
|
var tmp_0 = this;
|
|
56529
56576
|
// Inline function 'kotlin.arrayOf' call
|
|
56530
56577
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56531
56578
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56532
|
-
tmp_0.
|
|
56579
|
+
tmp_0.o9c_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'];
|
|
56533
56580
|
var tmp_1 = this;
|
|
56534
56581
|
// Inline function 'kotlin.arrayOf' call
|
|
56535
56582
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56536
56583
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56537
|
-
tmp_1.
|
|
56584
|
+
tmp_1.p9c_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
56538
56585
|
var tmp_2 = this;
|
|
56539
56586
|
// Inline function 'kotlin.arrayOf' call
|
|
56540
56587
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56541
56588
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56542
|
-
tmp_2.
|
|
56589
|
+
tmp_2.q9c_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'];
|
|
56543
56590
|
}
|
|
56544
56591
|
var Companion_instance_171;
|
|
56545
56592
|
function Companion_getInstance_173() {
|
|
@@ -56550,14 +56597,14 @@
|
|
|
56550
56597
|
function AvatarSet(name, ordinal) {
|
|
56551
56598
|
Enum.call(this, name, ordinal);
|
|
56552
56599
|
}
|
|
56553
|
-
protoOf(AvatarSet).
|
|
56600
|
+
protoOf(AvatarSet).i9c = function () {
|
|
56554
56601
|
var tmp;
|
|
56555
56602
|
switch (this.p2_1) {
|
|
56556
56603
|
case 0:
|
|
56557
|
-
tmp = Companion_getInstance_173().
|
|
56604
|
+
tmp = Companion_getInstance_173().o9c_1.length;
|
|
56558
56605
|
break;
|
|
56559
56606
|
case 1:
|
|
56560
|
-
tmp = Companion_getInstance_173().
|
|
56607
|
+
tmp = Companion_getInstance_173().q9c_1.length;
|
|
56561
56608
|
break;
|
|
56562
56609
|
default:
|
|
56563
56610
|
noWhenBranchMatchedException();
|
|
@@ -56565,14 +56612,14 @@
|
|
|
56565
56612
|
}
|
|
56566
56613
|
return tmp;
|
|
56567
56614
|
};
|
|
56568
|
-
protoOf(AvatarSet).
|
|
56615
|
+
protoOf(AvatarSet).l9c = function (index) {
|
|
56569
56616
|
var tmp;
|
|
56570
56617
|
switch (this.p2_1) {
|
|
56571
56618
|
case 0:
|
|
56572
|
-
tmp = Companion_getInstance_173().
|
|
56619
|
+
tmp = Companion_getInstance_173().o9c_1[index];
|
|
56573
56620
|
break;
|
|
56574
56621
|
case 1:
|
|
56575
|
-
tmp = Companion_getInstance_173().
|
|
56622
|
+
tmp = Companion_getInstance_173().q9c_1[index];
|
|
56576
56623
|
break;
|
|
56577
56624
|
default:
|
|
56578
56625
|
noWhenBranchMatchedException();
|
|
@@ -56581,8 +56628,8 @@
|
|
|
56581
56628
|
return tmp;
|
|
56582
56629
|
};
|
|
56583
56630
|
function AvatarData(index, avatarSet) {
|
|
56584
|
-
this.
|
|
56585
|
-
this.
|
|
56631
|
+
this.j9c_1 = index;
|
|
56632
|
+
this.k9c_1 = avatarSet;
|
|
56586
56633
|
}
|
|
56587
56634
|
function AvatarSet_ORIGIN_getInstance() {
|
|
56588
56635
|
AvatarSet_initEntries();
|
|
@@ -56595,7 +56642,7 @@
|
|
|
56595
56642
|
function GameResourcesImpl() {
|
|
56596
56643
|
Companion_getInstance_173();
|
|
56597
56644
|
}
|
|
56598
|
-
protoOf(GameResourcesImpl).
|
|
56645
|
+
protoOf(GameResourcesImpl).f9c = function (playerId, existingNicknames) {
|
|
56599
56646
|
return createUser(this, playerId, existingNicknames);
|
|
56600
56647
|
};
|
|
56601
56648
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -56636,45 +56683,45 @@
|
|
|
56636
56683
|
}
|
|
56637
56684
|
var WARN;
|
|
56638
56685
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
56639
|
-
this.
|
|
56686
|
+
this.r9c_1 = loggerCallback;
|
|
56640
56687
|
}
|
|
56641
56688
|
protoOf(LoggerCallbacksWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
56642
|
-
this.
|
|
56689
|
+
this.r9c_1('debug', tag, message, null, payload);
|
|
56643
56690
|
};
|
|
56644
56691
|
protoOf(LoggerCallbacksWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
56645
|
-
this.
|
|
56692
|
+
this.r9c_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
56646
56693
|
};
|
|
56647
56694
|
protoOf(LoggerCallbacksWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
56648
|
-
this.
|
|
56695
|
+
this.r9c_1('debug', tag, message, null, payload);
|
|
56649
56696
|
};
|
|
56650
56697
|
protoOf(LoggerCallbacksWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
56651
|
-
this.
|
|
56698
|
+
this.r9c_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
56652
56699
|
};
|
|
56653
56700
|
protoOf(LoggerCallbacksWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
56654
|
-
this.
|
|
56701
|
+
this.r9c_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
56655
56702
|
};
|
|
56656
56703
|
function ParserHelper() {
|
|
56657
56704
|
}
|
|
56658
56705
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
56659
|
-
this.
|
|
56660
|
-
this.
|
|
56706
|
+
this.s9c_1 = json;
|
|
56707
|
+
this.t9c_1 = encoderDecoderProvider;
|
|
56661
56708
|
}
|
|
56662
56709
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
56663
|
-
return this.
|
|
56710
|
+
return this.t9c_1.k8h(mapToDto_20(action));
|
|
56664
56711
|
};
|
|
56665
56712
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
56666
|
-
return mapFromDto_16(this.
|
|
56713
|
+
return mapFromDto_16(this.t9c_1.o8h(json), fromPlayerId);
|
|
56667
56714
|
};
|
|
56668
56715
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
56669
|
-
return this.
|
|
56716
|
+
return this.t9c_1.m8h(mapToDto_74(action));
|
|
56670
56717
|
};
|
|
56671
56718
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
56672
56719
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56673
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
56720
|
+
var this_0 = mapFromClientDtoListWithPayload(this.t9c_1.p8h(json), playerId, engine);
|
|
56674
56721
|
return copyToArray(this_0);
|
|
56675
56722
|
};
|
|
56676
56723
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
56677
|
-
var tmp0 = this.
|
|
56724
|
+
var tmp0 = this.s9c_1;
|
|
56678
56725
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56679
56726
|
var value = mapToDto_31(round);
|
|
56680
56727
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56685,7 +56732,7 @@
|
|
|
56685
56732
|
return tmp0.ep(tmp$ret$1, value);
|
|
56686
56733
|
};
|
|
56687
56734
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
56688
|
-
var tmp0 = this.
|
|
56735
|
+
var tmp0 = this.s9c_1;
|
|
56689
56736
|
// Inline function 'kotlin.collections.map' call
|
|
56690
56737
|
var this_0 = round.items;
|
|
56691
56738
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56707,7 +56754,7 @@
|
|
|
56707
56754
|
return tmp0.ep(tmp$ret$4, destination);
|
|
56708
56755
|
};
|
|
56709
56756
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
56710
|
-
var tmp0 = this.
|
|
56757
|
+
var tmp0 = this.s9c_1;
|
|
56711
56758
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56712
56759
|
var value = mapToDto_33(metadata);
|
|
56713
56760
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56718,7 +56765,7 @@
|
|
|
56718
56765
|
return tmp0.ep(tmp$ret$1, value);
|
|
56719
56766
|
};
|
|
56720
56767
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
56721
|
-
var tmp0 = this.
|
|
56768
|
+
var tmp0 = this.s9c_1;
|
|
56722
56769
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56723
56770
|
var value = mapToDto_59(config);
|
|
56724
56771
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56729,7 +56776,7 @@
|
|
|
56729
56776
|
return tmp0.ep(tmp$ret$1, value);
|
|
56730
56777
|
};
|
|
56731
56778
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
56732
|
-
var tmp0 = this.
|
|
56779
|
+
var tmp0 = this.s9c_1;
|
|
56733
56780
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56734
56781
|
var value = mapToDto_95(transition);
|
|
56735
56782
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56741,7 +56788,7 @@
|
|
|
56741
56788
|
};
|
|
56742
56789
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
56743
56790
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56744
|
-
var this_0 = this.
|
|
56791
|
+
var this_0 = this.s9c_1;
|
|
56745
56792
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56746
56793
|
var this_1 = this_0.ds();
|
|
56747
56794
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -56752,7 +56799,7 @@
|
|
|
56752
56799
|
};
|
|
56753
56800
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
56754
56801
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56755
|
-
var this_0 = this.
|
|
56802
|
+
var this_0 = this.s9c_1;
|
|
56756
56803
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56757
56804
|
var this_1 = this_0.ds();
|
|
56758
56805
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -56762,7 +56809,7 @@
|
|
|
56762
56809
|
return mapFromDto_97(tmp$ret$2);
|
|
56763
56810
|
};
|
|
56764
56811
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
56765
|
-
var tmp0 = this.
|
|
56812
|
+
var tmp0 = this.s9c_1;
|
|
56766
56813
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56767
56814
|
var value = mapToDto_126(table);
|
|
56768
56815
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56773,11 +56820,11 @@
|
|
|
56773
56820
|
return tmp0.ep(tmp$ret$1, value);
|
|
56774
56821
|
};
|
|
56775
56822
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
56776
|
-
return mapFromDto_63(this.
|
|
56823
|
+
return mapFromDto_63(this.t9c_1.n8h(json));
|
|
56777
56824
|
};
|
|
56778
56825
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
56779
56826
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56780
|
-
var this_0 = this.
|
|
56827
|
+
var this_0 = this.s9c_1;
|
|
56781
56828
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56782
56829
|
var this_1 = this_0.ds();
|
|
56783
56830
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -56790,16 +56837,16 @@
|
|
|
56790
56837
|
function RatingHelper() {
|
|
56791
56838
|
}
|
|
56792
56839
|
function RatingHelperImpl(userRatingInteractor) {
|
|
56793
|
-
this.
|
|
56840
|
+
this.u9c_1 = userRatingInteractor;
|
|
56794
56841
|
}
|
|
56795
56842
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
56796
|
-
return this.
|
|
56843
|
+
return this.u9c_1.k8o(league, rating);
|
|
56797
56844
|
};
|
|
56798
56845
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
56799
|
-
return this.
|
|
56846
|
+
return this.u9c_1.m8o(rating);
|
|
56800
56847
|
};
|
|
56801
56848
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
56802
|
-
return this.
|
|
56849
|
+
return this.u9c_1.l8o();
|
|
56803
56850
|
};
|
|
56804
56851
|
function engineHelpersModule() {
|
|
56805
56852
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -56904,14 +56951,14 @@
|
|
|
56904
56951
|
return new GameResourcesImpl();
|
|
56905
56952
|
}
|
|
56906
56953
|
function _get_logger__rkp4sl_3($this) {
|
|
56907
|
-
var tmp0 = $this.
|
|
56954
|
+
var tmp0 = $this.w9c_1;
|
|
56908
56955
|
var tmp = KProperty1;
|
|
56909
56956
|
// Inline function 'kotlin.getValue' call
|
|
56910
56957
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
56911
56958
|
return tmp0.w();
|
|
56912
56959
|
}
|
|
56913
56960
|
function _get_di__ndbzja($this) {
|
|
56914
|
-
var tmp0 = $this.
|
|
56961
|
+
var tmp0 = $this.x9c_1;
|
|
56915
56962
|
var tmp = KProperty1;
|
|
56916
56963
|
// Inline function 'kotlin.getValue' call
|
|
56917
56964
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -56920,11 +56967,11 @@
|
|
|
56920
56967
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
56921
56968
|
return function () {
|
|
56922
56969
|
var tmp;
|
|
56923
|
-
if (this$0.
|
|
56970
|
+
if (this$0.v9c_1 == null) {
|
|
56924
56971
|
tmp = null;
|
|
56925
56972
|
} else {
|
|
56926
56973
|
// Inline function 'kotlin.let' call
|
|
56927
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
56974
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.v9c_1)]));
|
|
56928
56975
|
}
|
|
56929
56976
|
var tmp1_elvis_lhs = tmp;
|
|
56930
56977
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -57014,11 +57061,11 @@
|
|
|
57014
57061
|
}
|
|
57015
57062
|
function EngineHelpersFactory(loggerCallback) {
|
|
57016
57063
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
57017
|
-
this.
|
|
57064
|
+
this.v9c_1 = loggerCallback;
|
|
57018
57065
|
var tmp = this;
|
|
57019
|
-
tmp.
|
|
57066
|
+
tmp.w9c_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
57020
57067
|
var tmp_0 = this;
|
|
57021
|
-
tmp_0.
|
|
57068
|
+
tmp_0.x9c_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
57022
57069
|
var tmp_1 = this;
|
|
57023
57070
|
// Inline function 'org.kodein.di.instance' call
|
|
57024
57071
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -57027,7 +57074,7 @@
|
|
|
57027
57074
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
57028
57075
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
57029
57076
|
var tmp_4 = KProperty1;
|
|
57030
|
-
tmp_1.
|
|
57077
|
+
tmp_1.y9c_1 = tmp_3.u64(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
57031
57078
|
var tmp_5 = this;
|
|
57032
57079
|
// Inline function 'org.kodein.di.instance' call
|
|
57033
57080
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -57036,7 +57083,7 @@
|
|
|
57036
57083
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
57037
57084
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
57038
57085
|
var tmp_8 = KProperty1;
|
|
57039
|
-
tmp_5.
|
|
57086
|
+
tmp_5.z9c_1 = tmp_7.u64(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
57040
57087
|
var tmp_9 = this;
|
|
57041
57088
|
// Inline function 'org.kodein.di.instance' call
|
|
57042
57089
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -57045,7 +57092,7 @@
|
|
|
57045
57092
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
57046
57093
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
57047
57094
|
var tmp_12 = KProperty1;
|
|
57048
|
-
tmp_9.
|
|
57095
|
+
tmp_9.a9d_1 = tmp_11.u64(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
57049
57096
|
var tmp_13 = this;
|
|
57050
57097
|
// Inline function 'org.kodein.di.instance' call
|
|
57051
57098
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -57054,31 +57101,31 @@
|
|
|
57054
57101
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
57055
57102
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
57056
57103
|
var tmp_16 = KProperty1;
|
|
57057
|
-
tmp_13.
|
|
57104
|
+
tmp_13.b9d_1 = tmp_15.u64(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
57058
57105
|
}
|
|
57059
|
-
protoOf(EngineHelpersFactory).
|
|
57060
|
-
var tmp0 = this.
|
|
57106
|
+
protoOf(EngineHelpersFactory).c9d = function () {
|
|
57107
|
+
var tmp0 = this.y9c_1;
|
|
57061
57108
|
var tmp = KProperty1;
|
|
57062
57109
|
// Inline function 'kotlin.getValue' call
|
|
57063
57110
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
57064
57111
|
return tmp0.w();
|
|
57065
57112
|
};
|
|
57066
|
-
protoOf(EngineHelpersFactory).
|
|
57067
|
-
var tmp0 = this.
|
|
57113
|
+
protoOf(EngineHelpersFactory).d9d = function () {
|
|
57114
|
+
var tmp0 = this.z9c_1;
|
|
57068
57115
|
var tmp = KProperty1;
|
|
57069
57116
|
// Inline function 'kotlin.getValue' call
|
|
57070
57117
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
57071
57118
|
return tmp0.w();
|
|
57072
57119
|
};
|
|
57073
|
-
protoOf(EngineHelpersFactory).
|
|
57074
|
-
var tmp0 = this.
|
|
57120
|
+
protoOf(EngineHelpersFactory).e9d = function () {
|
|
57121
|
+
var tmp0 = this.a9d_1;
|
|
57075
57122
|
var tmp = KProperty1;
|
|
57076
57123
|
// Inline function 'kotlin.getValue' call
|
|
57077
57124
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
57078
57125
|
return tmp0.w();
|
|
57079
57126
|
};
|
|
57080
|
-
protoOf(EngineHelpersFactory).
|
|
57081
|
-
var tmp0 = this.
|
|
57127
|
+
protoOf(EngineHelpersFactory).f9d = function () {
|
|
57128
|
+
var tmp0 = this.b9d_1;
|
|
57082
57129
|
var tmp = KProperty1;
|
|
57083
57130
|
// Inline function 'kotlin.getValue' call
|
|
57084
57131
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -57766,7 +57813,7 @@
|
|
|
57766
57813
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
57767
57814
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
57768
57815
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
57769
|
-
protoOf(FileLoggerOutputImpl).
|
|
57816
|
+
protoOf(FileLoggerOutputImpl).s93 = observe$default;
|
|
57770
57817
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
57771
57818
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
57772
57819
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -57786,10 +57833,10 @@
|
|
|
57786
57833
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
57787
57834
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
57788
57835
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
57789
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
57790
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
57791
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
57792
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
57836
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).c9d);
|
|
57837
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).d9d);
|
|
57838
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).e9d);
|
|
57839
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).f9d);
|
|
57793
57840
|
//endregion
|
|
57794
57841
|
//region block: init
|
|
57795
57842
|
Companion_instance_5 = new Companion_0();
|