game_client_logic_deb 1.8.379 → 1.8.380
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 +512 -511
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +2097 -2097
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1269,21 +1269,21 @@
|
|
|
1269
1269
|
tmp = types;
|
|
1270
1270
|
}
|
|
1271
1271
|
types = tmp;
|
|
1272
|
-
return $super === VOID ? this.
|
|
1272
|
+
return $super === VOID ? this.m97(loggerKey, types) : $super.m97.call(this, loggerKey, types);
|
|
1273
1273
|
}
|
|
1274
1274
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1275
1275
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
|
|
1276
1276
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1277
1277
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1278
|
-
return $super === VOID ? this.
|
|
1278
|
+
return $super === VOID ? this.n97(store, playerIds, includeBots) : $super.n97.call(this, store, playerIds, includeBots);
|
|
1279
1279
|
}
|
|
1280
1280
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1281
1281
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1282
|
-
return $super === VOID ? this.
|
|
1282
|
+
return $super === VOID ? this.o97(store, playerIds, includeBots) : $super.o97.call(this, store, playerIds, includeBots);
|
|
1283
1283
|
}
|
|
1284
1284
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1285
1285
|
league = league === VOID ? null : league;
|
|
1286
|
-
return $super === VOID ? this.
|
|
1286
|
+
return $super === VOID ? this.p97(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.p97.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1287
1287
|
}
|
|
1288
1288
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1289
1289
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
tmp = existingNicknames;
|
|
1297
1297
|
}
|
|
1298
1298
|
existingNicknames = tmp;
|
|
1299
|
-
return $super === VOID ? this.
|
|
1299
|
+
return $super === VOID ? this.r97(playerId, existingNicknames) : $super.r97.call(this, playerId, existingNicknames);
|
|
1300
1300
|
}
|
|
1301
1301
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1302
1302
|
initMetadataForCompanion(Companion_167);
|
|
@@ -2215,7 +2215,7 @@
|
|
|
2215
2215
|
ffaMovEnabled = ffaMovEnabled === VOID ? true : ffaMovEnabled;
|
|
2216
2216
|
botNativeUpdatesRating = botNativeUpdatesRating === VOID ? true : botNativeUpdatesRating;
|
|
2217
2217
|
replacementForcedDecrease = replacementForcedDecrease === VOID ? true : replacementForcedDecrease;
|
|
2218
|
-
ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ?
|
|
2218
|
+
ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? 0.8 : ffaMaxRatingDecreaseFraction;
|
|
2219
2219
|
this.defaultFactor = defaultFactor;
|
|
2220
2220
|
this.eloScaleH2H = eloScaleH2H;
|
|
2221
2221
|
this.eloScaleFfa = eloScaleFfa;
|
|
@@ -49285,18 +49285,19 @@
|
|
|
49285
49285
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
49286
49286
|
return hashCode(this.a3());
|
|
49287
49287
|
};
|
|
49288
|
-
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
49288
|
+
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation) {
|
|
49289
49289
|
this.h8z_1 = $controller;
|
|
49290
|
+
this.i8z_1 = $loggerKey;
|
|
49290
49291
|
CoroutineImpl.call(this, resultContinuation);
|
|
49291
49292
|
}
|
|
49292
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
49293
|
-
var tmp = this.
|
|
49293
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).k8z = function (it, $completion) {
|
|
49294
|
+
var tmp = this.l8z(it, $completion);
|
|
49294
49295
|
tmp.t8_1 = Unit_instance;
|
|
49295
49296
|
tmp.u8_1 = null;
|
|
49296
49297
|
return tmp.z8();
|
|
49297
49298
|
};
|
|
49298
49299
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
|
|
49299
|
-
return this.
|
|
49300
|
+
return this.k8z(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
49300
49301
|
};
|
|
49301
49302
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
|
|
49302
49303
|
var suspendResult = this.t8_1;
|
|
@@ -49306,9 +49307,9 @@
|
|
|
49306
49307
|
switch (tmp) {
|
|
49307
49308
|
case 0:
|
|
49308
49309
|
this.s8_1 = 2;
|
|
49309
|
-
var log = this.
|
|
49310
|
+
var log = this.j8z_1.toMessageLog();
|
|
49310
49311
|
this.r8_1 = 1;
|
|
49311
|
-
suspendResult = this.h8z_1.b6d(log, this);
|
|
49312
|
+
suspendResult = this.h8z_1.b6d('key:' + this.i8z_1.t6g() + ' ' + log, this);
|
|
49312
49313
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49313
49314
|
return suspendResult;
|
|
49314
49315
|
}
|
|
@@ -49330,23 +49331,23 @@
|
|
|
49330
49331
|
}
|
|
49331
49332
|
while (true);
|
|
49332
49333
|
};
|
|
49333
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
49334
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.h8z_1, completion);
|
|
49335
|
-
i.
|
|
49334
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).l8z = function (it, completion) {
|
|
49335
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.h8z_1, this.i8z_1, completion);
|
|
49336
|
+
i.j8z_1 = it;
|
|
49336
49337
|
return i;
|
|
49337
49338
|
};
|
|
49338
|
-
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
49339
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
49339
|
+
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, $loggerKey, resultContinuation) {
|
|
49340
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation);
|
|
49340
49341
|
var l = function (it, $completion) {
|
|
49341
|
-
return i.
|
|
49342
|
+
return i.k8z(it, $completion);
|
|
49342
49343
|
};
|
|
49343
49344
|
l.$arity = 1;
|
|
49344
49345
|
return l;
|
|
49345
49346
|
}
|
|
49346
49347
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
49347
|
-
this.
|
|
49348
|
-
this.
|
|
49349
|
-
this.
|
|
49348
|
+
this.u8z_1 = $controller;
|
|
49349
|
+
this.v8z_1 = $$loggerOutput;
|
|
49350
|
+
this.w8z_1 = $loggerKey;
|
|
49350
49351
|
CoroutineImpl.call(this, resultContinuation);
|
|
49351
49352
|
}
|
|
49352
49353
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).h2d = function ($this$launchDefault, $completion) {
|
|
@@ -49367,7 +49368,7 @@
|
|
|
49367
49368
|
case 0:
|
|
49368
49369
|
this.s8_1 = 3;
|
|
49369
49370
|
this.r8_1 = 1;
|
|
49370
|
-
suspendResult = this.
|
|
49371
|
+
suspendResult = this.u8z_1.a6d(this);
|
|
49371
49372
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49372
49373
|
return suspendResult;
|
|
49373
49374
|
}
|
|
@@ -49375,8 +49376,8 @@
|
|
|
49375
49376
|
continue $sm;
|
|
49376
49377
|
case 1:
|
|
49377
49378
|
this.r8_1 = 2;
|
|
49378
|
-
var tmp_0 = this.
|
|
49379
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
49379
|
+
var tmp_0 = this.v8z_1.y8z(this.w8z_1);
|
|
49380
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.u8z_1, this.w8z_1, null);
|
|
49380
49381
|
suspendResult = tmp_0.j27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
49381
49382
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49382
49383
|
return suspendResult;
|
|
@@ -49400,8 +49401,8 @@
|
|
|
49400
49401
|
while (true);
|
|
49401
49402
|
};
|
|
49402
49403
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).i2d = function ($this$launchDefault, completion) {
|
|
49403
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
49404
|
-
i.
|
|
49404
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.u8z_1, this.v8z_1, this.w8z_1, completion);
|
|
49405
|
+
i.x8z_1 = $this$launchDefault;
|
|
49405
49406
|
return i;
|
|
49406
49407
|
};
|
|
49407
49408
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
@@ -49520,20 +49521,20 @@
|
|
|
49520
49521
|
return null;
|
|
49521
49522
|
}
|
|
49522
49523
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
|
|
49523
|
-
this.
|
|
49524
|
-
this.
|
|
49525
|
-
this.
|
|
49526
|
-
this.
|
|
49527
|
-
this.
|
|
49524
|
+
this.z8z_1 = $engineLogicConfig;
|
|
49525
|
+
this.a90_1 = $logger;
|
|
49526
|
+
this.b90_1 = $sceneRouter;
|
|
49527
|
+
this.c90_1 = $idsProvider;
|
|
49528
|
+
this.d90_1 = $playerConnectionInteractor;
|
|
49528
49529
|
}
|
|
49529
49530
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
49530
49531
|
return action instanceof MechanicAction;
|
|
49531
49532
|
};
|
|
49532
49533
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).f6f = function (store, next, action) {
|
|
49533
49534
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
49534
|
-
if (this.
|
|
49535
|
+
if (this.z8z_1.validateIfMainThread) {
|
|
49535
49536
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
49536
|
-
var logger = this.
|
|
49537
|
+
var logger = this.a90_1;
|
|
49537
49538
|
var tmp;
|
|
49538
49539
|
try {
|
|
49539
49540
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -49560,22 +49561,22 @@
|
|
|
49560
49561
|
if (equals(action_0.d8r_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
49561
49562
|
tmp_2 = listOf(createHostDealerAct(action_0.g8r_1));
|
|
49562
49563
|
} else {
|
|
49563
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
49564
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.b90_1.t8o(action_0.d8r_1, true).g8p_1));
|
|
49564
49565
|
}
|
|
49565
49566
|
tmp_1 = tmp_2;
|
|
49566
49567
|
} else {
|
|
49567
49568
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
49568
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
49569
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.b90_1.t8o(state.n6i().config, false).g8p_1));
|
|
49569
49570
|
} else {
|
|
49570
49571
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
49571
49572
|
var tmp1_config = state.n6i().config;
|
|
49572
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
49573
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.b90_1.u8o(tmp1_config, false, false).g8p_1));
|
|
49573
49574
|
} else {
|
|
49574
49575
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
49575
49576
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.n6i().sceneInfo.r7p_1));
|
|
49576
49577
|
} else {
|
|
49577
49578
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
49578
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.n6i(), this.
|
|
49579
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.n6i(), this.c90_1, this.z8z_1, this.d90_1, this.a90_1));
|
|
49579
49580
|
} else {
|
|
49580
49581
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
49581
49582
|
var tmp_3;
|
|
@@ -49713,9 +49714,9 @@
|
|
|
49713
49714
|
}
|
|
49714
49715
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
49715
49716
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
49716
|
-
this.
|
|
49717
|
-
this.
|
|
49718
|
-
this.
|
|
49717
|
+
this.e90_1 = playersIds;
|
|
49718
|
+
this.f90_1 = tag;
|
|
49719
|
+
this.g90_1 = afterReconnection;
|
|
49719
49720
|
}
|
|
49720
49721
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
49721
49722
|
if (this === other)
|
|
@@ -49724,13 +49725,13 @@
|
|
|
49724
49725
|
return false;
|
|
49725
49726
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
49726
49727
|
THROW_CCE();
|
|
49727
|
-
return equals(this.
|
|
49728
|
+
return equals(this.e90_1, other.e90_1);
|
|
49728
49729
|
};
|
|
49729
49730
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
49730
|
-
return hashCode(this.
|
|
49731
|
+
return hashCode(this.e90_1);
|
|
49731
49732
|
};
|
|
49732
49733
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
49733
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
49734
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.e90_1) + ', tag=' + this.f90_1 + ', afterReconnection=' + this.g90_1 + ')';
|
|
49734
49735
|
};
|
|
49735
49736
|
function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
|
|
49736
49737
|
isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
|
|
@@ -49773,10 +49774,10 @@
|
|
|
49773
49774
|
return tmp;
|
|
49774
49775
|
}
|
|
49775
49776
|
function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
49776
|
-
this.
|
|
49777
|
-
this.
|
|
49778
|
-
this.
|
|
49779
|
-
this.
|
|
49777
|
+
this.h90_1 = $isEnableTimerForPlayer;
|
|
49778
|
+
this.i90_1 = $playerTurnInteractor;
|
|
49779
|
+
this.j90_1 = $botConfig;
|
|
49780
|
+
this.k90_1 = $mergeTimers;
|
|
49780
49781
|
}
|
|
49781
49782
|
protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
49782
49783
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -49792,14 +49793,14 @@
|
|
|
49792
49793
|
var _iterator__ex2g4s = tmp0.l();
|
|
49793
49794
|
while (_iterator__ex2g4s.m()) {
|
|
49794
49795
|
var element = _iterator__ex2g4s.n();
|
|
49795
|
-
if (this.
|
|
49796
|
+
if (this.h90_1(element)) {
|
|
49796
49797
|
destination.j(element);
|
|
49797
49798
|
}
|
|
49798
49799
|
}
|
|
49799
49800
|
var startTimerForPlayers = destination;
|
|
49800
49801
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
49801
49802
|
if (!startTimerForPlayers.r()) {
|
|
49802
|
-
var playerTurnModel = this.
|
|
49803
|
+
var playerTurnModel = this.i90_1.y8l(action_0, table);
|
|
49803
49804
|
if (!(playerTurnModel == null)) {
|
|
49804
49805
|
// Inline function 'kotlin.collections.map' call
|
|
49805
49806
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -49807,11 +49808,11 @@
|
|
|
49807
49808
|
var _iterator__ex2g4s_0 = startTimerForPlayers.l();
|
|
49808
49809
|
while (_iterator__ex2g4s_0.m()) {
|
|
49809
49810
|
var item = _iterator__ex2g4s_0.n();
|
|
49810
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
49811
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.j90_1.isDelayForBot, this.j90_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
49811
49812
|
destination_0.j(tmp$ret$4);
|
|
49812
49813
|
}
|
|
49813
49814
|
var timeForPlayers = destination_0;
|
|
49814
|
-
if (this.
|
|
49815
|
+
if (this.k90_1) {
|
|
49815
49816
|
// Inline function 'kotlin.collections.groupBy' call
|
|
49816
49817
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
49817
49818
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -49885,14 +49886,14 @@
|
|
|
49885
49886
|
return this.f6f(store, next, action);
|
|
49886
49887
|
};
|
|
49887
49888
|
function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
49888
|
-
this.
|
|
49889
|
+
this.l90_1 = $isEnableBotForPlayer;
|
|
49889
49890
|
}
|
|
49890
49891
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
49891
49892
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
49892
49893
|
};
|
|
49893
49894
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).f6f = function (store, next, action) {
|
|
49894
49895
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
49895
|
-
if (this.
|
|
49896
|
+
if (this.l90_1(action_0.playerId)) {
|
|
49896
49897
|
var table = store.state.n6i();
|
|
49897
49898
|
var player = getPlayer(table.players, action_0.playerId);
|
|
49898
49899
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -49913,7 +49914,7 @@
|
|
|
49913
49914
|
var _iterator__ex2g4s_0 = destination.l();
|
|
49914
49915
|
while (_iterator__ex2g4s_0.m()) {
|
|
49915
49916
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
49916
|
-
if (element_0.
|
|
49917
|
+
if (element_0.e90_1.t1(action_0.playerId) && element_0.f90_1 === player.b6q_1.c67()) {
|
|
49917
49918
|
tmp$ret$3 = element_0;
|
|
49918
49919
|
break $l$block;
|
|
49919
49920
|
}
|
|
@@ -49935,8 +49936,8 @@
|
|
|
49935
49936
|
return new playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1(asyncProvider);
|
|
49936
49937
|
}
|
|
49937
49938
|
function playerTurnTimeoutMiddleware$o$handle$slambda($store, $timerTag, resultContinuation) {
|
|
49938
|
-
this.
|
|
49939
|
-
this.
|
|
49939
|
+
this.u90_1 = $store;
|
|
49940
|
+
this.v90_1 = $timerTag;
|
|
49940
49941
|
CoroutineImpl.call(this, resultContinuation);
|
|
49941
49942
|
}
|
|
49942
49943
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).h2d = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -49955,7 +49956,7 @@
|
|
|
49955
49956
|
var tmp = this.r8_1;
|
|
49956
49957
|
if (tmp === 0) {
|
|
49957
49958
|
this.s8_1 = 1;
|
|
49958
|
-
this.
|
|
49959
|
+
this.u90_1.dispatch(new AskBotAction(this.v90_1.e90_1, 'PlayerTurn'));
|
|
49959
49960
|
return Unit_instance;
|
|
49960
49961
|
} else if (tmp === 1) {
|
|
49961
49962
|
throw this.u8_1;
|
|
@@ -49967,8 +49968,8 @@
|
|
|
49967
49968
|
while (true);
|
|
49968
49969
|
};
|
|
49969
49970
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).i2d = function ($this$launchDefaultWithLock, completion) {
|
|
49970
|
-
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.
|
|
49971
|
-
i.
|
|
49971
|
+
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.u90_1, this.v90_1, completion);
|
|
49972
|
+
i.w90_1 = $this$launchDefaultWithLock;
|
|
49972
49973
|
return i;
|
|
49973
49974
|
};
|
|
49974
49975
|
function playerTurnTimeoutMiddleware$o$handle$slambda_0($store, $timerTag, resultContinuation) {
|
|
@@ -49980,7 +49981,7 @@
|
|
|
49980
49981
|
return l;
|
|
49981
49982
|
}
|
|
49982
49983
|
function playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1($asyncProvider) {
|
|
49983
|
-
this.
|
|
49984
|
+
this.x90_1 = $asyncProvider;
|
|
49984
49985
|
}
|
|
49985
49986
|
protoOf(playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
49986
49987
|
return action instanceof TimerTickAction;
|
|
@@ -49989,7 +49990,7 @@
|
|
|
49989
49990
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
49990
49991
|
var timerTag = action_0.l6d_1;
|
|
49991
49992
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
49992
|
-
this.
|
|
49993
|
+
this.x90_1.n6a(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
|
|
49993
49994
|
}
|
|
49994
49995
|
next(action_0);
|
|
49995
49996
|
};
|
|
@@ -50001,12 +50002,12 @@
|
|
|
50001
50002
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
50002
50003
|
}
|
|
50003
50004
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
50004
|
-
this.
|
|
50005
|
-
this.
|
|
50006
|
-
this.
|
|
50007
|
-
this.
|
|
50008
|
-
this.
|
|
50009
|
-
this.
|
|
50005
|
+
this.g91_1 = $action;
|
|
50006
|
+
this.h91_1 = $sceneFactory;
|
|
50007
|
+
this.i91_1 = $table;
|
|
50008
|
+
this.j91_1 = $router;
|
|
50009
|
+
this.k91_1 = $store;
|
|
50010
|
+
this.l91_1 = $sceneValidationInteractor;
|
|
50010
50011
|
CoroutineImpl.call(this, resultContinuation);
|
|
50011
50012
|
}
|
|
50012
50013
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).h2d = function ($this$launchDefault, $completion) {
|
|
@@ -50026,10 +50027,10 @@
|
|
|
50026
50027
|
switch (tmp) {
|
|
50027
50028
|
case 0:
|
|
50028
50029
|
this.s8_1 = 3;
|
|
50029
|
-
var tmp0_subject = this.
|
|
50030
|
+
var tmp0_subject = this.g91_1;
|
|
50030
50031
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
50031
50032
|
this.r8_1 = 1;
|
|
50032
|
-
suspendResult = this.
|
|
50033
|
+
suspendResult = this.h91_1.p8o(this.g91_1.k8t_1, this.i91_1, this);
|
|
50033
50034
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
50034
50035
|
return suspendResult;
|
|
50035
50036
|
}
|
|
@@ -50037,37 +50038,37 @@
|
|
|
50037
50038
|
} else {
|
|
50038
50039
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
50039
50040
|
var tmp_0 = this;
|
|
50040
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
50041
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.i91_1.players));
|
|
50041
50042
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
50042
|
-
var nextSceneCommand = this.
|
|
50043
|
+
var nextSceneCommand = this.j91_1.a8p(this.g91_1.l8t_1, !(gameWinnerPlayerId == null), false, this.i91_1.config);
|
|
50043
50044
|
var tmp_1;
|
|
50044
50045
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
50045
50046
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.g8p_1));
|
|
50046
50047
|
} else {
|
|
50047
50048
|
noWhenBranchMatchedException();
|
|
50048
50049
|
}
|
|
50049
|
-
tmp_0.
|
|
50050
|
+
tmp_0.n91_1 = tmp_1;
|
|
50050
50051
|
this.r8_1 = 2;
|
|
50051
50052
|
continue $sm;
|
|
50052
50053
|
} else {
|
|
50053
50054
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
50054
50055
|
var tmp_2 = this;
|
|
50055
|
-
this.
|
|
50056
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
50057
|
-
tmp_2.
|
|
50056
|
+
this.l91_1.x8o(this.k91_1.state.a6i_1, 'Timers are not empty before scene act ' + this.g91_1.m8t_1 + ', ' + this.g91_1.n8t_1);
|
|
50057
|
+
var mechanicAction = new SceneActMechanicAction(this.g91_1.m8t_1, this.g91_1.n8t_1, this.g91_1.o8t_1);
|
|
50058
|
+
tmp_2.n91_1 = listOf(mechanicAction);
|
|
50058
50059
|
this.r8_1 = 2;
|
|
50059
50060
|
continue $sm;
|
|
50060
50061
|
} else {
|
|
50061
50062
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
50062
50063
|
var tmp_3 = this;
|
|
50063
|
-
var navigationCommand = this.
|
|
50064
|
+
var navigationCommand = this.j91_1.c8p(this.g91_1.p8t_1, this.i91_1);
|
|
50064
50065
|
var tmp_4;
|
|
50065
50066
|
if (navigationCommand instanceof FinishActNext) {
|
|
50066
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
50067
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.i91_1.sceneInfo.r7p_1));
|
|
50067
50068
|
} else {
|
|
50068
50069
|
if (navigationCommand instanceof MoveActNext) {
|
|
50069
50070
|
var tmp9_actId = navigationCommand.i8p_1;
|
|
50070
|
-
var tmp0 = this.
|
|
50071
|
+
var tmp0 = this.i91_1.sceneInfo.u7p_1;
|
|
50071
50072
|
var tmp$ret$2;
|
|
50072
50073
|
l$ret$3: do {
|
|
50073
50074
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -50079,13 +50080,13 @@
|
|
|
50079
50080
|
while (false);
|
|
50080
50081
|
var tmp10_sceneData = tmp$ret$2;
|
|
50081
50082
|
var tmp11_payload = navigationCommand.j8p_1;
|
|
50082
|
-
var actData = this.
|
|
50083
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
50083
|
+
var actData = this.h91_1.q8o(tmp9_actId, tmp10_sceneData, tmp11_payload, this.i91_1);
|
|
50084
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.i91_1.sceneInfo.r7p_1, navigationCommand.i8p_1, actData));
|
|
50084
50085
|
} else {
|
|
50085
50086
|
noWhenBranchMatchedException();
|
|
50086
50087
|
}
|
|
50087
50088
|
}
|
|
50088
|
-
tmp_3.
|
|
50089
|
+
tmp_3.n91_1 = tmp_4;
|
|
50089
50090
|
this.r8_1 = 2;
|
|
50090
50091
|
continue $sm;
|
|
50091
50092
|
} else {
|
|
@@ -50099,19 +50100,19 @@
|
|
|
50099
50100
|
break;
|
|
50100
50101
|
case 1:
|
|
50101
50102
|
var sceneData = suspendResult;
|
|
50102
|
-
var navigationActCommand = this.
|
|
50103
|
+
var navigationActCommand = this.j91_1.z8o(sceneData, this.i91_1);
|
|
50103
50104
|
var tmp_6;
|
|
50104
50105
|
if (navigationActCommand == null) {
|
|
50105
50106
|
tmp_6 = null;
|
|
50106
50107
|
} else {
|
|
50107
50108
|
var tmp0_actId = navigationActCommand.i8p_1;
|
|
50108
50109
|
var tmp1_payload = navigationActCommand.j8p_1;
|
|
50109
|
-
tmp_6 = this.
|
|
50110
|
+
tmp_6 = this.h91_1.q8o(tmp0_actId, sceneData, tmp1_payload, this.i91_1);
|
|
50110
50111
|
}
|
|
50111
50112
|
|
|
50112
50113
|
var actData_0 = tmp_6;
|
|
50113
|
-
var state = this.
|
|
50114
|
-
this.
|
|
50114
|
+
var state = this.k91_1.state;
|
|
50115
|
+
this.l91_1.x8o(state.a6i_1, 'Timers are not empty before scene ' + this.g91_1.k8t_1);
|
|
50115
50116
|
var tmp_7;
|
|
50116
50117
|
if (equals(state.n6i().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
50117
50118
|
var tmp2_safe_receiver = state.n6i().sceneInfo.v7p_1;
|
|
@@ -50137,18 +50138,18 @@
|
|
|
50137
50138
|
}
|
|
50138
50139
|
|
|
50139
50140
|
var currentTurnPlayerId = tmp_7;
|
|
50140
|
-
var tmp5_sceneId = this.
|
|
50141
|
+
var tmp5_sceneId = this.g91_1.k8t_1;
|
|
50141
50142
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
50142
50143
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
50143
|
-
this.
|
|
50144
|
+
this.n91_1 = listOfNotNull_0(mechanicAction_0);
|
|
50144
50145
|
this.r8_1 = 2;
|
|
50145
50146
|
continue $sm;
|
|
50146
50147
|
case 2:
|
|
50147
|
-
var navigationActions = this.
|
|
50148
|
+
var navigationActions = this.n91_1;
|
|
50148
50149
|
var _iterator__ex2g4s = navigationActions.l();
|
|
50149
50150
|
while (_iterator__ex2g4s.m()) {
|
|
50150
50151
|
var element = _iterator__ex2g4s.n();
|
|
50151
|
-
this.
|
|
50152
|
+
this.k91_1.dispatch(element);
|
|
50152
50153
|
}
|
|
50153
50154
|
|
|
50154
50155
|
return Unit_instance;
|
|
@@ -50167,8 +50168,8 @@
|
|
|
50167
50168
|
while (true);
|
|
50168
50169
|
};
|
|
50169
50170
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).i2d = function ($this$launchDefault, completion) {
|
|
50170
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.
|
|
50171
|
-
i.
|
|
50171
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.g91_1, this.h91_1, this.i91_1, this.j91_1, this.k91_1, this.l91_1, completion);
|
|
50172
|
+
i.m91_1 = $this$launchDefault;
|
|
50172
50173
|
return i;
|
|
50173
50174
|
};
|
|
50174
50175
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -50180,10 +50181,10 @@
|
|
|
50180
50181
|
return l;
|
|
50181
50182
|
}
|
|
50182
50183
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
50183
|
-
this.
|
|
50184
|
-
this.
|
|
50185
|
-
this.
|
|
50186
|
-
this.
|
|
50184
|
+
this.o91_1 = $asyncProvider;
|
|
50185
|
+
this.p91_1 = $sceneFactory;
|
|
50186
|
+
this.q91_1 = $router;
|
|
50187
|
+
this.r91_1 = $sceneValidationInteractor;
|
|
50187
50188
|
}
|
|
50188
50189
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50189
50190
|
return action instanceof SceneLifecycleAction;
|
|
@@ -50192,7 +50193,7 @@
|
|
|
50192
50193
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
50193
50194
|
var table = store.state.n6i();
|
|
50194
50195
|
next(action_0);
|
|
50195
|
-
this.
|
|
50196
|
+
this.o91_1.l6a(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.p91_1, table, this.q91_1, store, this.r91_1, null));
|
|
50196
50197
|
};
|
|
50197
50198
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).p6d = function (store, next, action) {
|
|
50198
50199
|
return this.f6f(store, next, action);
|
|
@@ -50238,7 +50239,7 @@
|
|
|
50238
50239
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50239
50240
|
}
|
|
50240
50241
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50241
|
-
this.
|
|
50242
|
+
this.s91_1 = $logger;
|
|
50242
50243
|
}
|
|
50243
50244
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50244
50245
|
return action instanceof PutCardMechanicAction;
|
|
@@ -50271,7 +50272,7 @@
|
|
|
50271
50272
|
var bribes = destination;
|
|
50272
50273
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
50273
50274
|
if (!bribes.r()) {
|
|
50274
|
-
this.
|
|
50275
|
+
this.s91_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.r8m_1.toString() + ', bribes = ' + toString(bribes));
|
|
50275
50276
|
}
|
|
50276
50277
|
}
|
|
50277
50278
|
next(action_0);
|
|
@@ -50284,7 +50285,7 @@
|
|
|
50284
50285
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50285
50286
|
}
|
|
50286
50287
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50287
|
-
this.
|
|
50288
|
+
this.t91_1 = $logger;
|
|
50288
50289
|
}
|
|
50289
50290
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50290
50291
|
return action instanceof SceneMechanicAction;
|
|
@@ -50501,7 +50502,7 @@
|
|
|
50501
50502
|
}
|
|
50502
50503
|
var notValidMessage = tmp;
|
|
50503
50504
|
if (!(notValidMessage == null)) {
|
|
50504
|
-
this.
|
|
50505
|
+
this.t91_1.w('Validation', toString_0(notValidMessage));
|
|
50505
50506
|
}
|
|
50506
50507
|
}
|
|
50507
50508
|
}
|
|
@@ -50592,7 +50593,7 @@
|
|
|
50592
50593
|
};
|
|
50593
50594
|
}
|
|
50594
50595
|
function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50595
|
-
this.
|
|
50596
|
+
this.u91_1 = $logger;
|
|
50596
50597
|
}
|
|
50597
50598
|
protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50598
50599
|
return action instanceof TimerTickAction;
|
|
@@ -50601,7 +50602,7 @@
|
|
|
50601
50602
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
50602
50603
|
var tmp = action_0.l6d_1;
|
|
50603
50604
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
50604
|
-
this.
|
|
50605
|
+
this.u91_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
|
|
50605
50606
|
store.dispatch(new FinishGameMechanicAction(store.state.k8p().n8p_1, store.state.n6i().isGameFinished));
|
|
50606
50607
|
}
|
|
50607
50608
|
next(action_0);
|
|
@@ -50667,7 +50668,7 @@
|
|
|
50667
50668
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50668
50669
|
}
|
|
50669
50670
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50670
|
-
this.
|
|
50671
|
+
this.v91_1 = $logger;
|
|
50671
50672
|
}
|
|
50672
50673
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50673
50674
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -50675,7 +50676,7 @@
|
|
|
50675
50676
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).f6f = function (store, next, action) {
|
|
50676
50677
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
50677
50678
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
50678
|
-
this.
|
|
50679
|
+
this.v91_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
50679
50680
|
}
|
|
50680
50681
|
next(action_0);
|
|
50681
50682
|
};
|
|
@@ -50691,7 +50692,7 @@
|
|
|
50691
50692
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50692
50693
|
}
|
|
50693
50694
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50694
|
-
this.
|
|
50695
|
+
this.w91_1 = $logger;
|
|
50695
50696
|
}
|
|
50696
50697
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50697
50698
|
return action instanceof SceneMechanicAction;
|
|
@@ -50702,7 +50703,7 @@
|
|
|
50702
50703
|
if (state.o6i()) {
|
|
50703
50704
|
var sceneInfo = state.n6i().sceneInfo;
|
|
50704
50705
|
if (!get_isWaitingScene(sceneInfo.r7p_1) && Companion_instance_5.v6i(sceneInfo.r7p_1, action_0.i8m_1) && equals(sceneInfo.u7p_1, action_0.sceneData)) {
|
|
50705
|
-
this.
|
|
50706
|
+
this.w91_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
50706
50707
|
}
|
|
50707
50708
|
}
|
|
50708
50709
|
next(action_0);
|
|
@@ -50711,7 +50712,7 @@
|
|
|
50711
50712
|
return this.f6f(store, next, action);
|
|
50712
50713
|
};
|
|
50713
50714
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50714
|
-
this.
|
|
50715
|
+
this.x91_1 = $logger;
|
|
50715
50716
|
}
|
|
50716
50717
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50717
50718
|
return action instanceof SceneActMechanicAction;
|
|
@@ -50722,7 +50723,7 @@
|
|
|
50722
50723
|
if (state.o6i()) {
|
|
50723
50724
|
var sceneInfo = state.n6i().sceneInfo;
|
|
50724
50725
|
if (Companion_instance_5.v6i(sceneInfo.r7p_1, action_0.a8m_1) && sceneInfo.t7p_1 === action_0.b8m_1 && equals(sceneInfo.v7p_1, action_0.c8m_1)) {
|
|
50725
|
-
this.
|
|
50726
|
+
this.x91_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
50726
50727
|
}
|
|
50727
50728
|
}
|
|
50728
50729
|
next(action_0);
|
|
@@ -50782,7 +50783,7 @@
|
|
|
50782
50783
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
50783
50784
|
}
|
|
50784
50785
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
50785
|
-
this.
|
|
50786
|
+
this.y91_1 = this$0;
|
|
50786
50787
|
}
|
|
50787
50788
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50788
50789
|
return action instanceof FromClientAction;
|
|
@@ -50808,18 +50809,18 @@
|
|
|
50808
50809
|
var tmp$ret$1 = item.playerId;
|
|
50809
50810
|
destination.j(tmp$ret$1);
|
|
50810
50811
|
}
|
|
50811
|
-
this.
|
|
50812
|
+
this.y91_1.b8w_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
50812
50813
|
break $l$block_3;
|
|
50813
50814
|
}
|
|
50814
50815
|
if (!get_isCreated(store.state)) {
|
|
50815
50816
|
if (table.sceneInfo.l76()) {
|
|
50816
|
-
this.
|
|
50817
|
+
this.y91_1.b8w_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
50817
50818
|
} else {
|
|
50818
50819
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
50819
|
-
if (this.
|
|
50820
|
-
sendErrorToClient(this.
|
|
50820
|
+
if (this.y91_1.d8w_1) {
|
|
50821
|
+
sendErrorToClient(this.y91_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
50821
50822
|
}
|
|
50822
|
-
this.
|
|
50823
|
+
this.y91_1.b8w_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
50823
50824
|
}
|
|
50824
50825
|
break $l$block_3;
|
|
50825
50826
|
}
|
|
@@ -50827,18 +50828,18 @@
|
|
|
50827
50828
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t65_1;
|
|
50828
50829
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
50829
50830
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
50830
|
-
if (this.
|
|
50831
|
-
sendErrorToClient(this.
|
|
50831
|
+
if (this.y91_1.d8w_1) {
|
|
50832
|
+
sendErrorToClient(this.y91_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
50832
50833
|
}
|
|
50833
|
-
this.
|
|
50834
|
+
this.y91_1.b8w_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
50834
50835
|
break $l$block_3;
|
|
50835
50836
|
}
|
|
50836
|
-
if (this.
|
|
50837
|
+
if (this.y91_1.c8w_1 && checkIfEventIsDuplicated(this.y91_1, table, tmp4)) {
|
|
50837
50838
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
50838
|
-
if (this.
|
|
50839
|
-
sendErrorToClient(this.
|
|
50839
|
+
if (this.y91_1.d8w_1) {
|
|
50840
|
+
sendErrorToClient(this.y91_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
50840
50841
|
}
|
|
50841
|
-
this.
|
|
50842
|
+
this.y91_1.b8w_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
50842
50843
|
break $l$block_3;
|
|
50843
50844
|
}
|
|
50844
50845
|
next(tmp4);
|
|
@@ -50888,8 +50889,8 @@
|
|
|
50888
50889
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
50889
50890
|
}
|
|
50890
50891
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
50891
|
-
this.
|
|
50892
|
-
this.
|
|
50892
|
+
this.z91_1 = $enableCheckWhen;
|
|
50893
|
+
this.a92_1 = this$0;
|
|
50893
50894
|
}
|
|
50894
50895
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
50895
50896
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -50898,7 +50899,7 @@
|
|
|
50898
50899
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
50899
50900
|
$l$block_1: {
|
|
50900
50901
|
var state = store.state;
|
|
50901
|
-
if (!isEnabledCheck(this.
|
|
50902
|
+
if (!isEnabledCheck(this.z91_1, state, tmp4)) {
|
|
50902
50903
|
next(tmp4);
|
|
50903
50904
|
break $l$block_1;
|
|
50904
50905
|
}
|
|
@@ -50914,23 +50915,23 @@
|
|
|
50914
50915
|
var tmp$ret$1 = item.playerId;
|
|
50915
50916
|
destination.j(tmp$ret$1);
|
|
50916
50917
|
}
|
|
50917
|
-
this.
|
|
50918
|
+
this.a92_1.j8w_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
50918
50919
|
break $l$block_1;
|
|
50919
50920
|
}
|
|
50920
50921
|
var table = store.state.n6i();
|
|
50921
50922
|
var player = getPlayer(table.players, tmp4.u8p_1);
|
|
50922
50923
|
var tmp0_safe_receiver = player.b6q_1.n65_1;
|
|
50923
50924
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t65_1;
|
|
50924
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
50925
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.a92_1, connectionState, tmp4.t8p_1);
|
|
50925
50926
|
var duplicate = _destruct__k2r9zo.ne();
|
|
50926
50927
|
var report = _destruct__k2r9zo.oe();
|
|
50927
50928
|
if (!(connectionState == null) && duplicate) {
|
|
50928
50929
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
50929
50930
|
if (report) {
|
|
50930
|
-
if (this.
|
|
50931
|
-
sendErrorToClient_0(this.
|
|
50931
|
+
if (this.a92_1.k8w_1) {
|
|
50932
|
+
sendErrorToClient_0(this.a92_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
50932
50933
|
}
|
|
50933
|
-
this.
|
|
50934
|
+
this.a92_1.j8w_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
50934
50935
|
}
|
|
50935
50936
|
break $l$block_1;
|
|
50936
50937
|
} else {
|
|
@@ -50946,13 +50947,13 @@
|
|
|
50946
50947
|
this.j8w_1 = logger;
|
|
50947
50948
|
this.k8w_1 = sendErrorToClient;
|
|
50948
50949
|
}
|
|
50949
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
50950
|
+
protoOf(PlayerConnectionValidationMiddlewares).b92 = function (enableCheckWhen) {
|
|
50950
50951
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
50951
50952
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
50952
50953
|
};
|
|
50953
50954
|
protoOf(PlayerConnectionValidationMiddlewares).l8w = function (enableCheckWhen, $super) {
|
|
50954
50955
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
50955
|
-
return $super === VOID ? this.
|
|
50956
|
+
return $super === VOID ? this.b92(enableCheckWhen) : $super.b92.call(this, enableCheckWhen);
|
|
50956
50957
|
};
|
|
50957
50958
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
50958
50959
|
return function () {
|
|
@@ -51097,8 +51098,8 @@
|
|
|
51097
51098
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
51098
51099
|
}
|
|
51099
51100
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
51100
|
-
this.
|
|
51101
|
-
this.
|
|
51101
|
+
this.c92_1 = $enableCheckWhen;
|
|
51102
|
+
this.d92_1 = this$0;
|
|
51102
51103
|
}
|
|
51103
51104
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
51104
51105
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -51107,19 +51108,19 @@
|
|
|
51107
51108
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
51108
51109
|
$l$block_1: {
|
|
51109
51110
|
var state = store.state;
|
|
51110
|
-
if (!isEnabledCheck(this.
|
|
51111
|
+
if (!isEnabledCheck(this.c92_1, state, tmp4)) {
|
|
51111
51112
|
next(tmp4);
|
|
51112
51113
|
break $l$block_1;
|
|
51113
51114
|
}
|
|
51114
51115
|
var table = state.n6i();
|
|
51115
51116
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
51116
51117
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
51117
|
-
if (isWrongPlayerTurn(this.
|
|
51118
|
+
if (isWrongPlayerTurn(this.d92_1, store, playersWithTurn, player, tmp4)) {
|
|
51118
51119
|
break $l$block_1;
|
|
51119
51120
|
}
|
|
51120
51121
|
var tmp;
|
|
51121
|
-
if (this.
|
|
51122
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
51122
|
+
if (this.d92_1.u8v_1.validateFromClientActionTags) {
|
|
51123
|
+
tmp = isWrongPlayerTurnTag$default(this.d92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.d92_1, tmp4, table));
|
|
51123
51124
|
} else {
|
|
51124
51125
|
tmp = false;
|
|
51125
51126
|
}
|
|
@@ -51133,8 +51134,8 @@
|
|
|
51133
51134
|
return this.f6f(store, next, action);
|
|
51134
51135
|
};
|
|
51135
51136
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
51136
|
-
this.
|
|
51137
|
-
this.
|
|
51137
|
+
this.e92_1 = $enableCheckWhen;
|
|
51138
|
+
this.f92_1 = this$0;
|
|
51138
51139
|
}
|
|
51139
51140
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
51140
51141
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -51144,17 +51145,17 @@
|
|
|
51144
51145
|
$l$block_1: {
|
|
51145
51146
|
var table = store.state.n6i();
|
|
51146
51147
|
var player = getPlayerTurn(tmp4, table.players);
|
|
51147
|
-
if (player == null || !isEnabledCheck(this.
|
|
51148
|
+
if (player == null || !isEnabledCheck(this.e92_1, store.state, tmp4)) {
|
|
51148
51149
|
next(tmp4);
|
|
51149
51150
|
break $l$block_1;
|
|
51150
51151
|
}
|
|
51151
51152
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
51152
|
-
if (isWrongPlayerTurn(this.
|
|
51153
|
+
if (isWrongPlayerTurn(this.f92_1, store, playersWithTurn, player, tmp4)) {
|
|
51153
51154
|
break $l$block_1;
|
|
51154
51155
|
}
|
|
51155
51156
|
var tmp;
|
|
51156
|
-
if (this.
|
|
51157
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
51157
|
+
if (this.f92_1.u8v_1.validateFromClientActionTags) {
|
|
51158
|
+
tmp = isWrongPlayerTurnTag(this.f92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.f92_1, tmp4, table), this.f92_1.t8v_1);
|
|
51158
51159
|
} else {
|
|
51159
51160
|
tmp = false;
|
|
51160
51161
|
}
|
|
@@ -51168,8 +51169,8 @@
|
|
|
51168
51169
|
return this.f6f(store, next, action);
|
|
51169
51170
|
};
|
|
51170
51171
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
51171
|
-
this.
|
|
51172
|
-
this.
|
|
51172
|
+
this.g92_1 = $enableCheckWhen;
|
|
51173
|
+
this.h92_1 = this$0;
|
|
51173
51174
|
}
|
|
51174
51175
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
51175
51176
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -51178,7 +51179,7 @@
|
|
|
51178
51179
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
51179
51180
|
$l$block_1: {
|
|
51180
51181
|
var state = store.state;
|
|
51181
|
-
if (!isEnabledCheck(this.
|
|
51182
|
+
if (!isEnabledCheck(this.g92_1, state, tmp4)) {
|
|
51182
51183
|
next(tmp4);
|
|
51183
51184
|
break $l$block_1;
|
|
51184
51185
|
}
|
|
@@ -51213,7 +51214,7 @@
|
|
|
51213
51214
|
destination.j(tmp$ret$3);
|
|
51214
51215
|
}
|
|
51215
51216
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.d8s()));
|
|
51216
|
-
this.
|
|
51217
|
+
this.h92_1.v8v_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
51217
51218
|
} else {
|
|
51218
51219
|
next(tmp4);
|
|
51219
51220
|
}
|
|
@@ -51241,23 +51242,23 @@
|
|
|
51241
51242
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
51242
51243
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
51243
51244
|
};
|
|
51244
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
51245
|
+
protoOf(PlayerTurnValidationMiddlewares).i92 = function (enableCheckWhen) {
|
|
51245
51246
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
51246
51247
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
51247
51248
|
};
|
|
51248
51249
|
protoOf(PlayerTurnValidationMiddlewares).z8v = function (enableCheckWhen, $super) {
|
|
51249
51250
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
51250
|
-
return $super === VOID ? this.
|
|
51251
|
+
return $super === VOID ? this.i92(enableCheckWhen) : $super.i92.call(this, enableCheckWhen);
|
|
51251
51252
|
};
|
|
51252
51253
|
function Companion_164() {
|
|
51253
|
-
this.
|
|
51254
|
+
this.j92_1 = 50;
|
|
51254
51255
|
}
|
|
51255
51256
|
var Companion_instance_169;
|
|
51256
51257
|
function Companion_getInstance_171() {
|
|
51257
51258
|
return Companion_instance_169;
|
|
51258
51259
|
}
|
|
51259
51260
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
51260
|
-
this.
|
|
51261
|
+
this.k92_1 = this$0;
|
|
51261
51262
|
}
|
|
51262
51263
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).q6d = function (action) {
|
|
51263
51264
|
return action instanceof MechanicAction;
|
|
@@ -51268,19 +51269,19 @@
|
|
|
51268
51269
|
var aid = tmp4.aid;
|
|
51269
51270
|
if (!store.state.o6i()) {
|
|
51270
51271
|
if (!(aid == null)) {
|
|
51271
|
-
this.
|
|
51272
|
+
this.k92_1.g8w_1.nd(aid);
|
|
51272
51273
|
}
|
|
51273
51274
|
next(tmp4);
|
|
51274
51275
|
break $l$block_0;
|
|
51275
51276
|
}
|
|
51276
|
-
if (!(aid == null) && this.
|
|
51277
|
-
this.
|
|
51277
|
+
if (!(aid == null) && this.k92_1.g8w_1.t1(aid)) {
|
|
51278
|
+
this.k92_1.f8w_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
51278
51279
|
break $l$block_0;
|
|
51279
51280
|
}
|
|
51280
51281
|
if (!(aid == null)) {
|
|
51281
|
-
this.
|
|
51282
|
-
if (this.
|
|
51283
|
-
this.
|
|
51282
|
+
this.k92_1.g8w_1.nd(aid);
|
|
51283
|
+
if (this.k92_1.g8w_1.jd_1 > 50) {
|
|
51284
|
+
this.k92_1.g8w_1.od();
|
|
51284
51285
|
}
|
|
51285
51286
|
}
|
|
51286
51287
|
next(tmp4);
|
|
@@ -51306,12 +51307,12 @@
|
|
|
51306
51307
|
protoOf(clearReducer$$inlined$reducerForActionType$1).q6d = function (action) {
|
|
51307
51308
|
return action instanceof ClearAction;
|
|
51308
51309
|
};
|
|
51309
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
51310
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
|
|
51310
51311
|
action instanceof ClearAction || THROW_CCE();
|
|
51311
51312
|
return state.m8p(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
51312
51313
|
};
|
|
51313
51314
|
protoOf(clearReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
|
|
51314
|
-
return this.
|
|
51315
|
+
return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51315
51316
|
};
|
|
51316
51317
|
function fromClientReducer() {
|
|
51317
51318
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -51322,7 +51323,7 @@
|
|
|
51322
51323
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).q6d = function (action) {
|
|
51323
51324
|
return action instanceof FromClientAction;
|
|
51324
51325
|
};
|
|
51325
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
51326
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
|
|
51326
51327
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
51327
51328
|
var tmp;
|
|
51328
51329
|
var tmp_0;
|
|
@@ -51373,11 +51374,11 @@
|
|
|
51373
51374
|
return tmp;
|
|
51374
51375
|
};
|
|
51375
51376
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
|
|
51376
|
-
return this.
|
|
51377
|
+
return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51377
51378
|
};
|
|
51378
51379
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
51379
51380
|
return function (tbl) {
|
|
51380
|
-
return this$0.z8u_1.
|
|
51381
|
+
return this$0.z8u_1.s92(tbl, $action.i8m_1, $action.sceneData, $action.j8m_1, $action.k8m_1);
|
|
51381
51382
|
};
|
|
51382
51383
|
}
|
|
51383
51384
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -51386,22 +51387,22 @@
|
|
|
51386
51387
|
if ($action.j8m_1 == null) {
|
|
51387
51388
|
tmp = tbl;
|
|
51388
51389
|
} else {
|
|
51389
|
-
tmp = this$0.a8v_1.
|
|
51390
|
+
tmp = this$0.a8v_1.t92(tbl, $action);
|
|
51390
51391
|
}
|
|
51391
51392
|
return tmp;
|
|
51392
51393
|
};
|
|
51393
51394
|
}
|
|
51394
51395
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
51395
|
-
this.
|
|
51396
|
+
this.u92_1 = this$0;
|
|
51396
51397
|
}
|
|
51397
51398
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).q6d = function (action) {
|
|
51398
51399
|
return action instanceof MechanicAction;
|
|
51399
51400
|
};
|
|
51400
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
51401
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
|
|
51401
51402
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
51402
|
-
if (this.
|
|
51403
|
+
if (this.u92_1.b8v_1.validateIfMainThread) {
|
|
51403
51404
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
51404
|
-
var logger = this.
|
|
51405
|
+
var logger = this.u92_1.c8v_1;
|
|
51405
51406
|
var tmp;
|
|
51406
51407
|
try {
|
|
51407
51408
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -51422,50 +51423,50 @@
|
|
|
51422
51423
|
}
|
|
51423
51424
|
var tmp_1;
|
|
51424
51425
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
51425
|
-
tmp_1 = this.
|
|
51426
|
+
tmp_1 = this.u92_1.t8u_1.b94(state, action_0);
|
|
51426
51427
|
} else {
|
|
51427
51428
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
51428
|
-
tmp_1 = this.
|
|
51429
|
+
tmp_1 = this.u92_1.t8u_1.a94(state, action_0);
|
|
51429
51430
|
} else {
|
|
51430
51431
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
51431
|
-
tmp_1 = this.
|
|
51432
|
+
tmp_1 = this.u92_1.t8u_1.z93(state, action_0);
|
|
51432
51433
|
} else {
|
|
51433
51434
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
51434
|
-
tmp_1 = this.
|
|
51435
|
+
tmp_1 = this.u92_1.t8u_1.y93(state, action_0);
|
|
51435
51436
|
} else {
|
|
51436
51437
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
51437
|
-
tmp_1 = this.
|
|
51438
|
+
tmp_1 = this.u92_1.t8u_1.x93(state, action_0);
|
|
51438
51439
|
} else {
|
|
51439
51440
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
51440
|
-
tmp_1 = this.
|
|
51441
|
+
tmp_1 = this.u92_1.t8u_1.w93(state, action_0);
|
|
51441
51442
|
} else {
|
|
51442
51443
|
if (action_0 instanceof ErrorAction) {
|
|
51443
|
-
tmp_1 = this.
|
|
51444
|
+
tmp_1 = this.u92_1.t8u_1.v93(state, action_0);
|
|
51444
51445
|
} else {
|
|
51445
51446
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
51446
|
-
tmp_1 = state.m8p(state.n6i().copy(VOID, VOID, VOID, VOID, this.
|
|
51447
|
+
tmp_1 = state.m8p(state.n6i().copy(VOID, VOID, VOID, VOID, this.u92_1.u8u_1.u93(state.n6i().players, action_0)));
|
|
51447
51448
|
} else {
|
|
51448
51449
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
51449
|
-
tmp_1 = this.
|
|
51450
|
+
tmp_1 = this.u92_1.v8u_1.t93(state, action_0);
|
|
51450
51451
|
} else {
|
|
51451
51452
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
51452
|
-
tmp_1 = this.
|
|
51453
|
+
tmp_1 = this.u92_1.v8u_1.s93(state, action_0);
|
|
51453
51454
|
} else {
|
|
51454
51455
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
51455
|
-
tmp_1 = this.
|
|
51456
|
+
tmp_1 = this.u92_1.x8u_1.p93(state, action_0);
|
|
51456
51457
|
} else {
|
|
51457
51458
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
51458
|
-
tmp_1 = this.
|
|
51459
|
+
tmp_1 = this.u92_1.w8u_1.o93(state, action_0);
|
|
51459
51460
|
} else {
|
|
51460
51461
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
51461
|
-
tmp_1 = this.
|
|
51462
|
+
tmp_1 = this.u92_1.w8u_1.n93(state, action_0);
|
|
51462
51463
|
} else {
|
|
51463
51464
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
51464
|
-
tmp_1 = this.
|
|
51465
|
+
tmp_1 = this.u92_1.x8u_1.f93(state, action_0);
|
|
51465
51466
|
} else {
|
|
51466
51467
|
if (action_0 instanceof SceneMechanicAction) {
|
|
51467
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
51468
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
51468
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.u92_1, action_0);
|
|
51469
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.u92_1)]);
|
|
51469
51470
|
// Inline function 'kotlin.collections.fold' call
|
|
51470
51471
|
var accumulator = state.n6i();
|
|
51471
51472
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -51477,13 +51478,13 @@
|
|
|
51477
51478
|
tmp_1 = state.m8p(tmp$ret$3);
|
|
51478
51479
|
} else {
|
|
51479
51480
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
51480
|
-
tmp_1 = state.m8p(this.
|
|
51481
|
+
tmp_1 = state.m8p(this.u92_1.a8v_1.t92(state.n6i(), action_0));
|
|
51481
51482
|
} else {
|
|
51482
51483
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
51483
|
-
tmp_1 = state.m8p(this.
|
|
51484
|
+
tmp_1 = state.m8p(this.u92_1.y8u_1.z92(state.n6i(), action_0));
|
|
51484
51485
|
} else {
|
|
51485
51486
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
51486
|
-
tmp_1 = state.m8p(this.
|
|
51487
|
+
tmp_1 = state.m8p(this.u92_1.y8u_1.y92(state.n6i(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
51487
51488
|
} else {
|
|
51488
51489
|
if (action_0 instanceof MessageMechanicAction) {
|
|
51489
51490
|
tmp_1 = state;
|
|
@@ -51511,7 +51512,7 @@
|
|
|
51511
51512
|
return tmp_1;
|
|
51512
51513
|
};
|
|
51513
51514
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
|
|
51514
|
-
return this.
|
|
51515
|
+
return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51515
51516
|
};
|
|
51516
51517
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
51517
51518
|
this.t8u_1 = gameLifecycleReducer;
|
|
@@ -51538,7 +51539,7 @@
|
|
|
51538
51539
|
protoOf(timerReducer$$inlined$reducerForActionType$1).q6d = function (action) {
|
|
51539
51540
|
return action instanceof TimerAction;
|
|
51540
51541
|
};
|
|
51541
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
51542
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
|
|
51542
51543
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
51543
51544
|
var tmp;
|
|
51544
51545
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -51566,7 +51567,7 @@
|
|
|
51566
51567
|
return tmp;
|
|
51567
51568
|
};
|
|
51568
51569
|
protoOf(timerReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
|
|
51569
|
-
return this.
|
|
51570
|
+
return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51570
51571
|
};
|
|
51571
51572
|
function playerTurnReducer($this, action, table) {
|
|
51572
51573
|
var tmp0 = action.actData;
|
|
@@ -51671,7 +51672,7 @@
|
|
|
51671
51672
|
}
|
|
51672
51673
|
function SceneActReducer() {
|
|
51673
51674
|
}
|
|
51674
|
-
protoOf(SceneActReducer).
|
|
51675
|
+
protoOf(SceneActReducer).t92 = function (table, action) {
|
|
51675
51676
|
var tmp;
|
|
51676
51677
|
if (action.actId === 'WAITING_ACT') {
|
|
51677
51678
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.j8b(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -51708,47 +51709,47 @@
|
|
|
51708
51709
|
function MechanicLifecycleReducer() {
|
|
51709
51710
|
}
|
|
51710
51711
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
51711
|
-
this.
|
|
51712
|
-
this.
|
|
51712
|
+
this.c94_1 = tableLifecycleReducer;
|
|
51713
|
+
this.d94_1 = randomPoolProvider;
|
|
51713
51714
|
}
|
|
51714
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51715
|
+
protoOf(BaseMechanicLifecycleReducer).z93 = function (state, action) {
|
|
51715
51716
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
51716
51717
|
var tmp1_tableOrNull = action.l8s_1;
|
|
51717
51718
|
var tmp2_payload = action.n8s_1;
|
|
51718
51719
|
return state.m8p(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
51719
51720
|
};
|
|
51720
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51721
|
-
this.
|
|
51721
|
+
protoOf(BaseMechanicLifecycleReducer).a94 = function (state, action) {
|
|
51722
|
+
this.d94_1.j57(action.previousGameId);
|
|
51722
51723
|
return state;
|
|
51723
51724
|
};
|
|
51724
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51725
|
+
protoOf(BaseMechanicLifecycleReducer).y93 = function (state, action) {
|
|
51725
51726
|
var tmp0_safe_receiver = state.x6h_1;
|
|
51726
51727
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
51727
51728
|
if (tmp1_safe_receiver == null)
|
|
51728
51729
|
null;
|
|
51729
51730
|
else {
|
|
51730
51731
|
// Inline function 'kotlin.apply' call
|
|
51731
|
-
this.
|
|
51732
|
+
this.d94_1.j57(tmp1_safe_receiver);
|
|
51732
51733
|
}
|
|
51733
51734
|
return state.m8p(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.o8r_1, action.q8r_1));
|
|
51734
51735
|
};
|
|
51735
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51736
|
+
protoOf(BaseMechanicLifecycleReducer).x93 = function (state, action) {
|
|
51736
51737
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
51737
51738
|
var tmp0_safe_receiver = state.z6h_1;
|
|
51738
51739
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8p(action.v8r_1);
|
|
51739
51740
|
return state.m8p(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.v8r_1) : tmp1_elvis_lhs);
|
|
51740
51741
|
};
|
|
51741
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51742
|
-
return state.m8p(this.
|
|
51742
|
+
protoOf(BaseMechanicLifecycleReducer).w93 = function (state, action) {
|
|
51743
|
+
return state.m8p(this.c94_1.e94(state.n6i()));
|
|
51743
51744
|
};
|
|
51744
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51745
|
+
protoOf(BaseMechanicLifecycleReducer).v93 = function (state, action) {
|
|
51745
51746
|
var tmp0_safe_receiver = state.x6h_1;
|
|
51746
51747
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
51747
51748
|
if (tmp1_safe_receiver == null)
|
|
51748
51749
|
null;
|
|
51749
51750
|
else {
|
|
51750
51751
|
// Inline function 'kotlin.apply' call
|
|
51751
|
-
this.
|
|
51752
|
+
this.d94_1.j57(tmp1_safe_receiver);
|
|
51752
51753
|
}
|
|
51753
51754
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
51754
51755
|
var tmp2_safe_receiver = state.z6h_1;
|
|
@@ -51768,19 +51769,19 @@
|
|
|
51768
51769
|
return value1.id === value2.id;
|
|
51769
51770
|
}
|
|
51770
51771
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
51771
|
-
this.
|
|
51772
|
-
this.
|
|
51773
|
-
this.
|
|
51774
|
-
this.
|
|
51772
|
+
this.f94_1 = pointsInteractor;
|
|
51773
|
+
this.g94_1 = playerHappinessProvider;
|
|
51774
|
+
this.h94_1 = logger;
|
|
51775
|
+
this.i94_1 = dealerConfig;
|
|
51775
51776
|
}
|
|
51776
|
-
protoOf(PlayerHandReducer).
|
|
51777
|
+
protoOf(PlayerHandReducer).j94 = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
51777
51778
|
// Inline function 'kotlin.collections.map' call
|
|
51778
51779
|
// Inline function 'kotlin.collections.mapTo' call
|
|
51779
51780
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
51780
51781
|
var _iterator__ex2g4s = combinations.l();
|
|
51781
51782
|
while (_iterator__ex2g4s.m()) {
|
|
51782
51783
|
var item = _iterator__ex2g4s.n();
|
|
51783
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
51784
|
+
var tmp$ret$0 = mapToRecord(item, this.f94_1.x8j(item));
|
|
51784
51785
|
destination.j(tmp$ret$0);
|
|
51785
51786
|
}
|
|
51786
51787
|
var combinationRecords = destination;
|
|
@@ -51815,8 +51816,8 @@
|
|
|
51815
51816
|
return hand.f6u(VOID, VOID, plus(hand.c6r_1, combinationRecords), plus(hand.d6r_1, combinationRecords));
|
|
51816
51817
|
}
|
|
51817
51818
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
51818
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
51819
|
-
var tmp_0 = this.
|
|
51819
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.i94_1.dealerStrategy : tmp0_elvis_lhs;
|
|
51820
|
+
var tmp_0 = this.f94_1.w8j(cards, selectedTrump, dealerStrategy);
|
|
51820
51821
|
// Inline function 'kotlin.collections.map' call
|
|
51821
51822
|
// Inline function 'kotlin.collections.mapTo' call
|
|
51822
51823
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -51827,11 +51828,11 @@
|
|
|
51827
51828
|
destination_0.j(tmp$ret$5);
|
|
51828
51829
|
}
|
|
51829
51830
|
var value = tmp_0 + sum(destination_0);
|
|
51830
|
-
var luckyFactor = this.
|
|
51831
|
-
Companion_instance_165.v8j(this.
|
|
51831
|
+
var luckyFactor = this.g94_1.v8d(value, config.playersMode, dealerStrategy);
|
|
51832
|
+
Companion_instance_165.v8j(this.h94_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.k6r() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
|
|
51832
51833
|
return hand.f6u(VOID, plus(hand.b6r_1, listOf(Companion_instance_18.x6t(luckyFactor, value))), plus(hand.c6r_1, combinationRecords), plus(hand.d6r_1, combinationRecords));
|
|
51833
51834
|
};
|
|
51834
|
-
protoOf(PlayerHandReducer).
|
|
51835
|
+
protoOf(PlayerHandReducer).k94 = function (hand, combinations) {
|
|
51835
51836
|
// Inline function 'kotlin.collections.map' call
|
|
51836
51837
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
51837
51838
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51839,20 +51840,20 @@
|
|
|
51839
51840
|
var _iterator__ex2g4s = this_0.l();
|
|
51840
51841
|
while (_iterator__ex2g4s.m()) {
|
|
51841
51842
|
var item = _iterator__ex2g4s.n();
|
|
51842
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
51843
|
+
var tmp$ret$0 = mapToRecord(item, this.f94_1.x8j(item));
|
|
51843
51844
|
destination.j(tmp$ret$0);
|
|
51844
51845
|
}
|
|
51845
51846
|
var combinationRecords = destination;
|
|
51846
51847
|
var tmp = updateOrAddItems(hand.c6r_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
51847
51848
|
return hand.f6u(VOID, VOID, tmp, updateOrAddItems(hand.d6r_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
51848
51849
|
};
|
|
51849
|
-
protoOf(PlayerHandReducer).
|
|
51850
|
+
protoOf(PlayerHandReducer).l94 = function (playerId, hand, updatedCombinations, config) {
|
|
51850
51851
|
if (updatedCombinations.r()) {
|
|
51851
51852
|
return hand;
|
|
51852
51853
|
}
|
|
51853
51854
|
var previousFactor = hand.t6r();
|
|
51854
51855
|
if (previousFactor.s6r_1 === 0.0) {
|
|
51855
|
-
return this.
|
|
51856
|
+
return this.k94(hand, updatedCombinations);
|
|
51856
51857
|
}
|
|
51857
51858
|
// Inline function 'kotlin.collections.map' call
|
|
51858
51859
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51860,7 +51861,7 @@
|
|
|
51860
51861
|
var _iterator__ex2g4s = updatedCombinations.l();
|
|
51861
51862
|
while (_iterator__ex2g4s.m()) {
|
|
51862
51863
|
var item = _iterator__ex2g4s.n();
|
|
51863
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
51864
|
+
var tmp$ret$0 = mapToRecord(item, this.f94_1.x8j(item));
|
|
51864
51865
|
destination.j(tmp$ret$0);
|
|
51865
51866
|
}
|
|
51866
51867
|
var updatedCombinationRecords = destination;
|
|
@@ -51920,9 +51921,9 @@
|
|
|
51920
51921
|
}
|
|
51921
51922
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
51922
51923
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
51923
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
51924
|
-
var updatedLuckyFactor = this.
|
|
51925
|
-
Companion_instance_165.v8j(this.
|
|
51924
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.i94_1.dealerStrategy : tmp0_elvis_lhs;
|
|
51925
|
+
var updatedLuckyFactor = this.g94_1.v8d(updatedValue, config.playersMode, dealerStrategy);
|
|
51926
|
+
Companion_instance_165.v8j(this.h94_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.k6r() + ', ') + ('value: ' + updatedValue + ', '));
|
|
51926
51927
|
// Inline function 'kotlin.collections.map' call
|
|
51927
51928
|
var this_0 = hand.b6r_1;
|
|
51928
51929
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51952,7 +51953,7 @@
|
|
|
51952
51953
|
protoOf(PlayerSceneReducer).o8o = function (player, cards, whoShuffleCardsPlayerId) {
|
|
51953
51954
|
return player.v6q(VOID, VOID, cards, player.d6q_1.a6v(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
51954
51955
|
};
|
|
51955
|
-
protoOf(PlayerSceneReducer).
|
|
51956
|
+
protoOf(PlayerSceneReducer).m94 = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
51956
51957
|
// Inline function 'kotlin.collections.map' call
|
|
51957
51958
|
// Inline function 'kotlin.collections.mapTo' call
|
|
51958
51959
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -51965,7 +51966,7 @@
|
|
|
51965
51966
|
}
|
|
51966
51967
|
var detailedCombinations = destination;
|
|
51967
51968
|
var cards = plus(player.c6q_1, distributedCards);
|
|
51968
|
-
var hand = this.n8o_1.
|
|
51969
|
+
var hand = this.n8o_1.j94(player.playerId, player.e6q_1, cards, detailedCombinations, selectedTrump, config);
|
|
51969
51970
|
var tmp;
|
|
51970
51971
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
51971
51972
|
if (!combinations.r()) {
|
|
@@ -51976,7 +51977,7 @@
|
|
|
51976
51977
|
var tmp0_points = tmp;
|
|
51977
51978
|
return player.v6q(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
51978
51979
|
};
|
|
51979
|
-
protoOf(PlayerSceneReducer).
|
|
51980
|
+
protoOf(PlayerSceneReducer).n94 = function (player, sceneData) {
|
|
51980
51981
|
// Inline function 'kotlin.collections.single' call
|
|
51981
51982
|
var single = null;
|
|
51982
51983
|
var found = false;
|
|
@@ -52018,7 +52019,7 @@
|
|
|
52018
52019
|
var tmp10_earnedPoints = playerPointsCell.x6w_1;
|
|
52019
52020
|
var tmp11_earnedCards = emptyList();
|
|
52020
52021
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
52021
|
-
var tmp15_hand = this.n8o_1.
|
|
52022
|
+
var tmp15_hand = this.n8o_1.k94(player.e6q_1, updatedCombinations);
|
|
52022
52023
|
return player.v6q(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
52023
52024
|
};
|
|
52024
52025
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -52048,7 +52049,7 @@
|
|
|
52048
52049
|
var tmp = System_instance.ck();
|
|
52049
52050
|
Companion_getInstance_4();
|
|
52050
52051
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
52051
|
-
var this_0 = config.timeoutTimeMillis * $this.
|
|
52052
|
+
var this_0 = config.timeoutTimeMillis * $this.x92_1.playerTimeoutFactorToFinishStep;
|
|
52052
52053
|
var tmp$ret$0 = toDuration_1(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
52053
52054
|
return tmp.rk(tmp$ret$0);
|
|
52054
52055
|
}
|
|
@@ -52059,11 +52060,11 @@
|
|
|
52059
52060
|
return it.playerId;
|
|
52060
52061
|
}
|
|
52061
52062
|
function PlayerTurnMechanicReducer(logger, gameHistoryReducer, engineLogicConfig) {
|
|
52062
|
-
this.
|
|
52063
|
-
this.
|
|
52064
|
-
this.
|
|
52063
|
+
this.v92_1 = logger;
|
|
52064
|
+
this.w92_1 = gameHistoryReducer;
|
|
52065
|
+
this.x92_1 = engineLogicConfig;
|
|
52065
52066
|
}
|
|
52066
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52067
|
+
protoOf(PlayerTurnMechanicReducer).o94 = function (table, model) {
|
|
52067
52068
|
// Inline function 'com.logic.utils.copy' call
|
|
52068
52069
|
var this_0 = table.players;
|
|
52069
52070
|
// Inline function 'kotlin.apply' call
|
|
@@ -52074,7 +52075,7 @@
|
|
|
52074
52075
|
var element = _iterator__ex2g4s.n();
|
|
52075
52076
|
var player = getPlayer(table.players, element);
|
|
52076
52077
|
if (!(player.b6q_1.m65_1 == null)) {
|
|
52077
|
-
this.
|
|
52078
|
+
this.v92_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.b6q_1.m65_1 + ', ') + ('new tag: ' + model.k6s_1));
|
|
52078
52079
|
}
|
|
52079
52080
|
var tmp = Companion_instance_0;
|
|
52080
52081
|
var tmp_0 = System_instance.ck();
|
|
@@ -52088,25 +52089,25 @@
|
|
|
52088
52089
|
var newTable = table.copy(VOID, VOID, VOID, VOID, this_1);
|
|
52089
52090
|
var tmp_1 = 'onPlayerTurn: ' + model.toString() + ', ';
|
|
52090
52091
|
var tmp_2 = filterPlayerTurn(table.players);
|
|
52091
|
-
this.
|
|
52092
|
+
this.v92_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
52092
52093
|
return newTable;
|
|
52093
52094
|
};
|
|
52094
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52095
|
+
protoOf(PlayerTurnMechanicReducer).p94 = function (table, model) {
|
|
52095
52096
|
var player = getPlayer(table.players, model.a64());
|
|
52096
52097
|
if (player.b6q_1.m65_1 == null) {
|
|
52097
|
-
this.
|
|
52098
|
+
this.v92_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.k6s_1));
|
|
52098
52099
|
}
|
|
52099
52100
|
var newTable = table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, Companion_instance_0.x66(player.b6q_1)), get_byIdPlayerPredicate()(player.playerId)));
|
|
52100
52101
|
var tmp = 'onResetPlayerTurn: ' + model.toString() + ', ';
|
|
52101
52102
|
var tmp_0 = filterPlayerTurn(table.players);
|
|
52102
|
-
this.
|
|
52103
|
+
this.v92_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
52103
52104
|
return newTable;
|
|
52104
52105
|
};
|
|
52105
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52106
|
+
protoOf(PlayerTurnMechanicReducer).z92 = function (table, action) {
|
|
52106
52107
|
var player = getPlayer(table.players, action.w8s_1);
|
|
52107
52108
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, player.b6q_1.y66(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
52108
52109
|
};
|
|
52109
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52110
|
+
protoOf(PlayerTurnMechanicReducer).q94 = function (table) {
|
|
52110
52111
|
// Inline function 'kotlin.collections.map' call
|
|
52111
52112
|
var this_0 = table.players;
|
|
52112
52113
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -52119,7 +52120,7 @@
|
|
|
52119
52120
|
}
|
|
52120
52121
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
52121
52122
|
};
|
|
52122
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52123
|
+
protoOf(PlayerTurnMechanicReducer).y92 = function (table, playerId, newConnectionState, reconnectUntilTime) {
|
|
52123
52124
|
var players = table.players;
|
|
52124
52125
|
var player = getPlayer(players, playerId);
|
|
52125
52126
|
var previousConnection = player.b6q_1.n65_1;
|
|
@@ -52142,7 +52143,7 @@
|
|
|
52142
52143
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
52143
52144
|
tmp = tmp6_$this.y66(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
52144
52145
|
}
|
|
52145
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.v6q(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
52146
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.v6q(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.w92_1.v94(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
52146
52147
|
};
|
|
52147
52148
|
function onCurrentScene($this, sceneId, sceneData, actId, actData, table, previousSceneId) {
|
|
52148
52149
|
var sceneInfo = new SceneInfo(sceneId, previousSceneId, actId, sceneData, actData);
|
|
@@ -52174,7 +52175,7 @@
|
|
|
52174
52175
|
var _iterator__ex2g4s = players.l();
|
|
52175
52176
|
while (_iterator__ex2g4s.m()) {
|
|
52176
52177
|
var item = _iterator__ex2g4s.n();
|
|
52177
|
-
var tmp$ret$1 = $this.
|
|
52178
|
+
var tmp$ret$1 = $this.m92_1.o8o(item, getValue(scene.p76_1, item.playerId), scene.t76_1);
|
|
52178
52179
|
destination.j(tmp$ret$1);
|
|
52179
52180
|
}
|
|
52180
52181
|
|
|
@@ -52195,12 +52196,12 @@
|
|
|
52195
52196
|
}
|
|
52196
52197
|
|
|
52197
52198
|
var tmp7_requestedCardDecks = tmp_0;
|
|
52198
|
-
var tmp1_$this = $this.
|
|
52199
|
+
var tmp1_$this = $this.p92_1;
|
|
52199
52200
|
var tmp2_gameHistory = table.gameHistory;
|
|
52200
52201
|
var tmp3_playersCards = scene.p76_1;
|
|
52201
52202
|
var tmp4_whoShuffleCardsPlayerId = scene.t76_1;
|
|
52202
52203
|
var tmp5_randomData = scene.q76_1;
|
|
52203
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
52204
|
+
var tmp8_gameHistory = tmp1_$this.w94(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
52204
52205
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
52205
52206
|
case 'EARN_POINTS':
|
|
52206
52207
|
var tmp$ret$5;
|
|
@@ -52218,7 +52219,7 @@
|
|
|
52218
52219
|
var tmp10_newPlayersCards = scene_0.u76_1;
|
|
52219
52220
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
52220
52221
|
var tmp12_config = table.config;
|
|
52221
|
-
var updatedCardDeck = $this.
|
|
52222
|
+
var updatedCardDeck = $this.x94(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
52222
52223
|
// Inline function 'kotlin.collections.map' call
|
|
52223
52224
|
|
|
52224
52225
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -52227,21 +52228,21 @@
|
|
|
52227
52228
|
var _iterator__ex2g4s_0 = players.l();
|
|
52228
52229
|
while (_iterator__ex2g4s_0.m()) {
|
|
52229
52230
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
52230
|
-
var tmp2_$this = $this.
|
|
52231
|
+
var tmp2_$this = $this.m92_1;
|
|
52231
52232
|
var tmp3_config = table.config;
|
|
52232
52233
|
var tmp4_distributedCards = getValue(scene_0.u76_1, item_0.playerId);
|
|
52233
52234
|
var tmp0_safe_receiver = scene_0.v76_1;
|
|
52234
52235
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
|
|
52235
52236
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
52236
52237
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
52237
|
-
var tmp$ret$6 = tmp2_$this.
|
|
52238
|
+
var tmp$ret$6 = tmp2_$this.m94(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
52238
52239
|
destination_0.j(tmp$ret$6);
|
|
52239
52240
|
}
|
|
52240
52241
|
|
|
52241
|
-
var tmp13_$this = $this.
|
|
52242
|
+
var tmp13_$this = $this.p92_1;
|
|
52242
52243
|
var tmp14_gameHistory = table.gameHistory;
|
|
52243
52244
|
var tmp15_playersCards = scene_0.u76_1;
|
|
52244
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
52245
|
+
var tmp17_gameHistory = tmp13_$this.y94(tmp15_playersCards, tmp14_gameHistory);
|
|
52245
52246
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
52246
52247
|
case 'CALC_POINTS':
|
|
52247
52248
|
var tmp$ret$9;
|
|
@@ -52264,12 +52265,12 @@
|
|
|
52264
52265
|
var _iterator__ex2g4s_1 = players.l();
|
|
52265
52266
|
while (_iterator__ex2g4s_1.m()) {
|
|
52266
52267
|
var item_1 = _iterator__ex2g4s_1.n();
|
|
52267
|
-
var tmp$ret$10 = $this.
|
|
52268
|
+
var tmp$ret$10 = $this.m92_1.n94(item_1, calcPointsSceneData);
|
|
52268
52269
|
destination_1.j(tmp$ret$10);
|
|
52269
52270
|
}
|
|
52270
52271
|
|
|
52271
52272
|
var updatedPlayers = destination_1;
|
|
52272
|
-
var tmp19_$this = $this.
|
|
52273
|
+
var tmp19_$this = $this.p92_1;
|
|
52273
52274
|
var tmp20_gameHistory = table.gameHistory;
|
|
52274
52275
|
var tmp21_points = calcPointsSceneData.j76_1;
|
|
52275
52276
|
var tmp22_roundContractState = calcPointsSceneData.n76(whoChoseSuitPlayerId);
|
|
@@ -52309,7 +52310,7 @@
|
|
|
52309
52310
|
|
|
52310
52311
|
var tmp26_playersGameAnalytics = tmp_3;
|
|
52311
52312
|
var tmp27_playersAchievements = calcPointsSceneData.k76_1;
|
|
52312
|
-
var tmp28_gameHistory = tmp19_$this.
|
|
52313
|
+
var tmp28_gameHistory = tmp19_$this.z94(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
|
|
52313
52314
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
|
|
52314
52315
|
default:
|
|
52315
52316
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -52341,30 +52342,30 @@
|
|
|
52341
52342
|
}
|
|
52342
52343
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
52343
52344
|
return function (tbl) {
|
|
52344
|
-
return this$0.
|
|
52345
|
+
return this$0.n92_1.q94(tbl);
|
|
52345
52346
|
};
|
|
52346
52347
|
}
|
|
52347
52348
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
52348
52349
|
return function (tbl) {
|
|
52349
|
-
return this$0.
|
|
52350
|
+
return this$0.o92_1.a95(tbl);
|
|
52350
52351
|
};
|
|
52351
52352
|
}
|
|
52352
52353
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
52353
|
-
this.
|
|
52354
|
-
this.
|
|
52355
|
-
this.
|
|
52356
|
-
this.
|
|
52357
|
-
this.
|
|
52358
|
-
this.
|
|
52359
|
-
}
|
|
52360
|
-
protoOf(SceneReducer).
|
|
52354
|
+
this.m92_1 = playerSceneReducer;
|
|
52355
|
+
this.n92_1 = playerTurnMechanicReducer;
|
|
52356
|
+
this.o92_1 = tableLifecycleReducer;
|
|
52357
|
+
this.p92_1 = gameHistoryReducer;
|
|
52358
|
+
this.q92_1 = dealerReducer;
|
|
52359
|
+
this.r92_1 = gameParamsProvider;
|
|
52360
|
+
}
|
|
52361
|
+
protoOf(SceneReducer).s92 = function (table, sceneId, sceneData, actId, actData) {
|
|
52361
52362
|
var previousSceneId = table.sceneInfo.r7p_1;
|
|
52362
52363
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.u7p_1, sceneData)) {
|
|
52363
52364
|
throw new MechanicException('Payload was set twice');
|
|
52364
52365
|
}
|
|
52365
52366
|
return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
52366
52367
|
};
|
|
52367
|
-
protoOf(SceneReducer).
|
|
52368
|
+
protoOf(SceneReducer).x94 = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
52368
52369
|
// Inline function 'kotlin.collections.map' call
|
|
52369
52370
|
// Inline function 'kotlin.collections.mapTo' call
|
|
52370
52371
|
var destination = ArrayList_init_$Create$(newPlayersCards.o());
|
|
@@ -52378,19 +52379,19 @@
|
|
|
52378
52379
|
// Inline function 'kotlin.let' call
|
|
52379
52380
|
var it = flatten(destination);
|
|
52380
52381
|
var tmp;
|
|
52381
|
-
if (this.
|
|
52382
|
-
tmp = this.
|
|
52382
|
+
if (this.r92_1.u8e(config)) {
|
|
52383
|
+
tmp = this.q92_1.q5e(it, cardDeck.d7f_1);
|
|
52383
52384
|
} else {
|
|
52384
52385
|
tmp = it;
|
|
52385
52386
|
}
|
|
52386
52387
|
var playersCardsToRemove = tmp;
|
|
52387
52388
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
52388
|
-
var cards = this.
|
|
52389
|
+
var cards = this.q92_1.p5e(cardDeck.c7f_1, cardsToRemove);
|
|
52389
52390
|
return cardDeck.w87(cards, VOID, newTopOpenedCard);
|
|
52390
52391
|
};
|
|
52391
52392
|
function TeamsMechanicReducer() {
|
|
52392
52393
|
}
|
|
52393
|
-
protoOf(TeamsMechanicReducer).
|
|
52394
|
+
protoOf(TeamsMechanicReducer).u93 = function (players, action) {
|
|
52394
52395
|
// Inline function 'kotlin.collections.map' call
|
|
52395
52396
|
var this_0 = action.r8s_1.e67_1;
|
|
52396
52397
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -52430,10 +52431,10 @@
|
|
|
52430
52431
|
return destination_1;
|
|
52431
52432
|
};
|
|
52432
52433
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
52433
|
-
this.
|
|
52434
|
-
this.
|
|
52434
|
+
this.q93_1 = logger;
|
|
52435
|
+
this.r93_1 = gameHistoryReducer;
|
|
52435
52436
|
}
|
|
52436
|
-
protoOf(TradeMechanicReducer).
|
|
52437
|
+
protoOf(TradeMechanicReducer).t93 = function (state, action) {
|
|
52437
52438
|
var table = state.n6i();
|
|
52438
52439
|
// Inline function 'kotlin.with' call
|
|
52439
52440
|
var player = getPlayer(table.players, action.o8m_1);
|
|
@@ -52441,7 +52442,7 @@
|
|
|
52441
52442
|
var it = player.d6q_1.y6u();
|
|
52442
52443
|
var tmp;
|
|
52443
52444
|
if (it == null) {
|
|
52444
|
-
this.
|
|
52445
|
+
this.q93_1.w(VOID, "Can't support this circle increment");
|
|
52445
52446
|
tmp = player.d6q_1.r6q_1;
|
|
52446
52447
|
} else {
|
|
52447
52448
|
tmp = it;
|
|
@@ -52469,17 +52470,17 @@
|
|
|
52469
52470
|
destination.j(tmp$ret$2);
|
|
52470
52471
|
}
|
|
52471
52472
|
var tmp_2 = destination;
|
|
52472
|
-
var tmp0_$this = this.
|
|
52473
|
+
var tmp0_$this = this.r93_1;
|
|
52473
52474
|
var tmp1_playerId = player.playerId;
|
|
52474
52475
|
var tmp2_suit = action.m8m_1;
|
|
52475
52476
|
var tmp3_gameHistory = table.gameHistory;
|
|
52476
52477
|
var tmp4_players = table.players;
|
|
52477
52478
|
var tmp5_playersMode = table.config.playersMode;
|
|
52478
|
-
tmp_0 = state.m8p(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
52479
|
+
tmp_0 = state.m8p(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.b95(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
52479
52480
|
}
|
|
52480
52481
|
return tmp_0;
|
|
52481
52482
|
};
|
|
52482
|
-
protoOf(TradeMechanicReducer).
|
|
52483
|
+
protoOf(TradeMechanicReducer).s93 = function (state, action) {
|
|
52483
52484
|
var table = state.n6i();
|
|
52484
52485
|
// Inline function 'kotlin.collections.map' call
|
|
52485
52486
|
var this_0 = table.players;
|
|
@@ -52497,13 +52498,13 @@
|
|
|
52497
52498
|
return valueToFind.v6v_1 === value.v6v_1;
|
|
52498
52499
|
}
|
|
52499
52500
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
52500
|
-
this.
|
|
52501
|
-
this.
|
|
52502
|
-
this.
|
|
52503
|
-
this.
|
|
52504
|
-
this.
|
|
52501
|
+
this.a93_1 = teamsLogicProvider;
|
|
52502
|
+
this.b93_1 = combinationsInteractor;
|
|
52503
|
+
this.c93_1 = dealerReducer;
|
|
52504
|
+
this.d93_1 = playerHandReducer;
|
|
52505
|
+
this.e93_1 = gameHistoryReducer;
|
|
52505
52506
|
}
|
|
52506
|
-
protoOf(CombinationsMechanicReducer).
|
|
52507
|
+
protoOf(CombinationsMechanicReducer).c95 = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
52507
52508
|
var bellaCombination = first(playerCombinations.e89_1);
|
|
52508
52509
|
var player = getPlayer(players, playerCombinations.d89_1);
|
|
52509
52510
|
if (bellaCombination.x6v_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -52512,7 +52513,7 @@
|
|
|
52512
52513
|
var tmp;
|
|
52513
52514
|
if (config.rules.protectBella) {
|
|
52514
52515
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
52515
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
52516
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.a93_1.k8d(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
52516
52517
|
var tmp_0;
|
|
52517
52518
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
52518
52519
|
tmp_0 = bellaCombination.h6w(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -52526,7 +52527,7 @@
|
|
|
52526
52527
|
return tmp;
|
|
52527
52528
|
}
|
|
52528
52529
|
};
|
|
52529
|
-
protoOf(CombinationsMechanicReducer).
|
|
52530
|
+
protoOf(CombinationsMechanicReducer).f93 = function (state, action) {
|
|
52530
52531
|
var table = state.n6i();
|
|
52531
52532
|
var players = table.players;
|
|
52532
52533
|
var config = table.config;
|
|
@@ -52557,7 +52558,7 @@
|
|
|
52557
52558
|
}
|
|
52558
52559
|
var passedPlayersCombinations = destination;
|
|
52559
52560
|
// Inline function 'kotlin.collections.filterNot' call
|
|
52560
|
-
var tmp0 = this.
|
|
52561
|
+
var tmp0 = this.b93_1.h8h(players);
|
|
52561
52562
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
52562
52563
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
52563
52564
|
var _iterator__ex2g4s_1 = tmp0.l();
|
|
@@ -52604,10 +52605,10 @@
|
|
|
52604
52605
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
|
|
52605
52606
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
52606
52607
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
52607
|
-
var tmp0_$this = this.
|
|
52608
|
+
var tmp0_$this = this.d93_1;
|
|
52608
52609
|
var tmp1_playerId = item_1.playerId;
|
|
52609
52610
|
var tmp2_hand = item_1.e6q_1;
|
|
52610
|
-
var tmp_1 = tmp0_$this.
|
|
52611
|
+
var tmp_1 = tmp0_$this.l94(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
52611
52612
|
tmp = item_1.v6q(VOID, VOID, VOID, VOID, tmp_1, item_1.f6q_1.c6v(VOID, updateOrAddItems(item_1.f6q_1.v6r_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
52612
52613
|
} else {
|
|
52613
52614
|
tmp = item_1;
|
|
@@ -52615,9 +52616,9 @@
|
|
|
52615
52616
|
var tmp$ret$19 = tmp;
|
|
52616
52617
|
destination_4.j(tmp$ret$19);
|
|
52617
52618
|
}
|
|
52618
|
-
return state.m8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
52619
|
+
return state.m8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e93_1.d95(action.e8t_1, table.gameHistory)));
|
|
52619
52620
|
};
|
|
52620
|
-
protoOf(CombinationsMechanicReducer).
|
|
52621
|
+
protoOf(CombinationsMechanicReducer).p93 = function (state, action) {
|
|
52621
52622
|
var table = state.n6i();
|
|
52622
52623
|
var player = getPlayer(table.players, action.c8t_1);
|
|
52623
52624
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -52672,13 +52673,13 @@
|
|
|
52672
52673
|
// Inline function 'kotlin.let' call
|
|
52673
52674
|
|
|
52674
52675
|
var cards = player.c6q_1;
|
|
52675
|
-
var newCards = this.
|
|
52676
|
-
var tmp1_cards = this.
|
|
52676
|
+
var newCards = this.c93_1.q5e(cards, trumpSevenCard);
|
|
52677
|
+
var tmp1_cards = this.c93_1.r5e(newCards, trumpCard);
|
|
52677
52678
|
var tmp3_players = updateItem(table.players, player.v6q(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
52678
|
-
var tmp4_gameHistory = this.
|
|
52679
|
+
var tmp4_gameHistory = this.e93_1.e95(player.playerId, listOf(announcedCombination.w6v_1), VOID, table.gameHistory);
|
|
52679
52680
|
return state.m8p(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
52680
52681
|
case 6:
|
|
52681
|
-
return state.m8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
52682
|
+
return state.m8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e93_1.e95(player.playerId, listOf(announcedCombination.w6v_1), VOID, table.gameHistory)));
|
|
52682
52683
|
default:
|
|
52683
52684
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
52684
52685
|
}
|
|
@@ -52759,7 +52760,7 @@
|
|
|
52759
52760
|
destination.j(tmp$ret$1);
|
|
52760
52761
|
}
|
|
52761
52762
|
var updatedCombinations = destination;
|
|
52762
|
-
var tmp1_cards = $this.
|
|
52763
|
+
var tmp1_cards = $this.j93_1.q5e(player.c6q_1, card);
|
|
52763
52764
|
var tmp2_points = player.f6q_1.c6v(VOID, updatedCombinations);
|
|
52764
52765
|
var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
52765
52766
|
return player.v6q(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
|
|
@@ -52778,11 +52779,11 @@
|
|
|
52778
52779
|
}
|
|
52779
52780
|
var tmp2_combinations = tmp;
|
|
52780
52781
|
var tmp4_points = tmp0_$this.c6v(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
52781
|
-
var tmp5_hand = $this.
|
|
52782
|
+
var tmp5_hand = $this.l93_1.k94(player.e6q_1, combinations);
|
|
52782
52783
|
return player.v6q(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
52783
52784
|
}
|
|
52784
52785
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
52785
|
-
var bellaCombination = $this.
|
|
52786
|
+
var bellaCombination = $this.i93_1.g8h(players);
|
|
52786
52787
|
// Inline function 'kotlin.collections.associate' call
|
|
52787
52788
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
52788
52789
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -52803,7 +52804,7 @@
|
|
|
52803
52804
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.d89_1 === player.playerId;
|
|
52804
52805
|
var tmp;
|
|
52805
52806
|
if (isGotLastBribe) {
|
|
52806
|
-
tmp = $this.
|
|
52807
|
+
tmp = $this.h93_1.k6v(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_150.a88(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
|
|
52807
52808
|
} else {
|
|
52808
52809
|
tmp = null;
|
|
52809
52810
|
}
|
|
@@ -52823,7 +52824,7 @@
|
|
|
52823
52824
|
}
|
|
52824
52825
|
}
|
|
52825
52826
|
var tmp$ret$2 = tmp$ret$1;
|
|
52826
|
-
tmp_1 = $this.
|
|
52827
|
+
tmp_1 = $this.g93_1.c95(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
52827
52828
|
} else {
|
|
52828
52829
|
tmp_1 = null;
|
|
52829
52830
|
}
|
|
@@ -52888,15 +52889,15 @@
|
|
|
52888
52889
|
return value1.v6v_1 === value2.v6v_1;
|
|
52889
52890
|
}
|
|
52890
52891
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
52891
|
-
this.
|
|
52892
|
-
this.
|
|
52893
|
-
this.
|
|
52894
|
-
this.
|
|
52895
|
-
this.
|
|
52896
|
-
this.
|
|
52897
|
-
this.
|
|
52898
|
-
}
|
|
52899
|
-
protoOf(EarnPointsMechanicReducer).
|
|
52892
|
+
this.g93_1 = combinationsMechanicReducer;
|
|
52893
|
+
this.h93_1 = combinationsFactory;
|
|
52894
|
+
this.i93_1 = combinationsInteractor;
|
|
52895
|
+
this.j93_1 = dealerReducer;
|
|
52896
|
+
this.k93_1 = gameHistoryReducer;
|
|
52897
|
+
this.l93_1 = playerHandReducer;
|
|
52898
|
+
this.m93_1 = logger;
|
|
52899
|
+
}
|
|
52900
|
+
protoOf(EarnPointsMechanicReducer).o93 = function (state, action) {
|
|
52900
52901
|
var table = state.n6i();
|
|
52901
52902
|
var player = getPlayer(table.players, action.t8m_1);
|
|
52902
52903
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.t8m_1, table.cardsOnTable.o(), action.r8m_1));
|
|
@@ -52918,13 +52919,13 @@
|
|
|
52918
52919
|
var tmp$ret$0 = item.k75_1;
|
|
52919
52920
|
destination.j(tmp$ret$0);
|
|
52920
52921
|
}
|
|
52921
|
-
tmp = this.
|
|
52922
|
+
tmp = this.k93_1.e95(tmp_0, destination, VOID, table.gameHistory);
|
|
52922
52923
|
}
|
|
52923
52924
|
var tmp1_elvis_lhs = tmp;
|
|
52924
52925
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
52925
52926
|
return state.m8p(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
52926
52927
|
};
|
|
52927
|
-
protoOf(EarnPointsMechanicReducer).
|
|
52928
|
+
protoOf(EarnPointsMechanicReducer).n93 = function (state, action) {
|
|
52928
52929
|
var table = state.n6i();
|
|
52929
52930
|
var players = table.players;
|
|
52930
52931
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -52949,7 +52950,7 @@
|
|
|
52949
52950
|
destination_0.j(tmp$ret$3);
|
|
52950
52951
|
}
|
|
52951
52952
|
if (!(toSet(destination_0).o() === 1)) {
|
|
52952
|
-
this.
|
|
52953
|
+
this.m93_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
52953
52954
|
}
|
|
52954
52955
|
var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.w8m_1, players, config);
|
|
52955
52956
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -52965,7 +52966,7 @@
|
|
|
52965
52966
|
destination_1.j(tmp$ret$6);
|
|
52966
52967
|
}
|
|
52967
52968
|
var tmp3_gameInfo = table.gameInfo.t86(VOID, VOID, table.gameInfo.round.copy(VOID, action.x8m_1));
|
|
52968
|
-
var tmp4_gameHistory = this.
|
|
52969
|
+
var tmp4_gameHistory = this.k93_1.f95(action.w8m_1, bribe, action.x8m_1, playersCombinations, table.gameHistory);
|
|
52969
52970
|
return state.m8p(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
52970
52971
|
};
|
|
52971
52972
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -52973,7 +52974,7 @@
|
|
|
52973
52974
|
return metadata;
|
|
52974
52975
|
}
|
|
52975
52976
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
52976
|
-
$this.
|
|
52977
|
+
$this.u94_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
52977
52978
|
}
|
|
52978
52979
|
var tmp0_safe_receiver = metadata.randomData;
|
|
52979
52980
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -52985,12 +52986,12 @@
|
|
|
52985
52986
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
|
|
52986
52987
|
}
|
|
52987
52988
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
52988
|
-
this.
|
|
52989
|
-
this.
|
|
52990
|
-
this.
|
|
52991
|
-
this.
|
|
52989
|
+
this.r94_1 = pointsInteractor;
|
|
52990
|
+
this.s94_1 = teamsLogicProvider;
|
|
52991
|
+
this.t94_1 = gameLogicConfig;
|
|
52992
|
+
this.u94_1 = logger;
|
|
52992
52993
|
}
|
|
52993
|
-
protoOf(GameHistoryReducer).
|
|
52994
|
+
protoOf(GameHistoryReducer).g95 = function (gameHistory) {
|
|
52994
52995
|
var roundNumber = gameHistory.rounds.length;
|
|
52995
52996
|
var tmp0 = gameHistory.rounds;
|
|
52996
52997
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -53002,7 +53003,7 @@
|
|
|
53002
53003
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
53003
53004
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
53004
53005
|
};
|
|
53005
|
-
protoOf(GameHistoryReducer).
|
|
53006
|
+
protoOf(GameHistoryReducer).w94 = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
53006
53007
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
53007
53008
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.d7f_1, System_instance.ck());
|
|
53008
53009
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -53020,14 +53021,14 @@
|
|
|
53020
53021
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
53021
53022
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_159.initial() : tmp0_elvis_lhs));
|
|
53022
53023
|
};
|
|
53023
|
-
protoOf(GameHistoryReducer).
|
|
53024
|
+
protoOf(GameHistoryReducer).b95 = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
53024
53025
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
53025
53026
|
var tmp;
|
|
53026
53027
|
if (playersMode.isTeamGame) {
|
|
53027
53028
|
// Inline function 'kotlin.arrayOf' call
|
|
53028
53029
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
53029
53030
|
// Inline function 'kotlin.js.asDynamic' call
|
|
53030
|
-
tmp = [playerId, this.
|
|
53031
|
+
tmp = [playerId, this.s94_1.k8d(playerId, players).playerId];
|
|
53031
53032
|
} else {
|
|
53032
53033
|
// Inline function 'kotlin.arrayOf' call
|
|
53033
53034
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -53037,7 +53038,7 @@
|
|
|
53037
53038
|
var roundCommitted = tmp;
|
|
53038
53039
|
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)));
|
|
53039
53040
|
};
|
|
53040
|
-
protoOf(GameHistoryReducer).
|
|
53041
|
+
protoOf(GameHistoryReducer).y94 = function (playersCards, gameHistory) {
|
|
53041
53042
|
// Inline function 'kotlin.collections.mapValues' call
|
|
53042
53043
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
53043
53044
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
|
|
@@ -53051,14 +53052,14 @@
|
|
|
53051
53052
|
}
|
|
53052
53053
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
|
|
53053
53054
|
};
|
|
53054
|
-
protoOf(GameHistoryReducer).
|
|
53055
|
+
protoOf(GameHistoryReducer).h95 = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
53055
53056
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
|
|
53056
53057
|
};
|
|
53057
|
-
protoOf(GameHistoryReducer).
|
|
53058
|
+
protoOf(GameHistoryReducer).e95 = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
53058
53059
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
53059
|
-
return $super === VOID ? this.
|
|
53060
|
+
return $super === VOID ? this.h95(playerId, combinations, combinationsStates, gameHistory) : $super.h95.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
53060
53061
|
};
|
|
53061
|
-
protoOf(GameHistoryReducer).
|
|
53062
|
+
protoOf(GameHistoryReducer).f95 = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
53062
53063
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.u7e_1, numberOfBribe, System_instance.ck()));
|
|
53063
53064
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
53064
53065
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -53117,7 +53118,7 @@
|
|
|
53117
53118
|
}
|
|
53118
53119
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
53119
53120
|
};
|
|
53120
|
-
protoOf(GameHistoryReducer).
|
|
53121
|
+
protoOf(GameHistoryReducer).d95 = function (winnerCombinations, gameHistory) {
|
|
53121
53122
|
// Inline function 'kotlin.collections.map' call
|
|
53122
53123
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53123
53124
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -53133,7 +53134,7 @@
|
|
|
53133
53134
|
}
|
|
53134
53135
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
53135
53136
|
};
|
|
53136
|
-
protoOf(GameHistoryReducer).
|
|
53137
|
+
protoOf(GameHistoryReducer).v94 = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
53137
53138
|
if (playerConnection == null) {
|
|
53138
53139
|
return gameHistory;
|
|
53139
53140
|
}
|
|
@@ -53145,17 +53146,17 @@
|
|
|
53145
53146
|
tmp = false;
|
|
53146
53147
|
}
|
|
53147
53148
|
var isShortDisconnectState = tmp;
|
|
53148
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
53149
|
+
if (isSupportedReason && !isShortDisconnectState || this.t94_1.verboseGameHistory) {
|
|
53149
53150
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.t65_1, playerConnection.a66(), System_instance.ck())));
|
|
53150
53151
|
}
|
|
53151
53152
|
return gameHistory;
|
|
53152
53153
|
};
|
|
53153
|
-
protoOf(GameHistoryReducer).
|
|
53154
|
+
protoOf(GameHistoryReducer).z94 = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
53154
53155
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
53155
53156
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
53156
53157
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_159.initial() : tmp0_elvis_lhs;
|
|
53157
53158
|
var tmp;
|
|
53158
|
-
if (this.
|
|
53159
|
+
if (this.t94_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
53159
53160
|
// Inline function 'kotlin.collections.map' call
|
|
53160
53161
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53161
53162
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -53170,7 +53171,7 @@
|
|
|
53170
53171
|
tmp = currentMetadata;
|
|
53171
53172
|
}
|
|
53172
53173
|
var updatedMetadata = tmp;
|
|
53173
|
-
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
53174
|
+
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.r94_1.c8l(points), System_instance.ck())));
|
|
53174
53175
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
53175
53176
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
53176
53177
|
};
|
|
@@ -53195,7 +53196,7 @@
|
|
|
53195
53196
|
tmp = cardDeck;
|
|
53196
53197
|
}
|
|
53197
53198
|
var newCardDeck = tmp;
|
|
53198
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
53199
|
+
return new PreviousRound(bribes, newCardDeck, $this.k95_1.d8l(players, config));
|
|
53199
53200
|
}
|
|
53200
53201
|
function roundFinishedGameInfoReducer($this, table) {
|
|
53201
53202
|
var gameInfo = table.gameInfo;
|
|
@@ -53248,10 +53249,10 @@
|
|
|
53248
53249
|
return points.b6v(0, emptyList(), emptyList());
|
|
53249
53250
|
}
|
|
53250
53251
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
53251
|
-
this.
|
|
53252
|
-
this.
|
|
53252
|
+
this.k95_1 = pointsInteractor;
|
|
53253
|
+
this.l95_1 = historyReducer;
|
|
53253
53254
|
}
|
|
53254
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53255
|
+
protoOf(TableLifecycleReducerImpl).i95 = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
53255
53256
|
var tmp = Companion_instance_147;
|
|
53256
53257
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
53257
53258
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -53283,7 +53284,7 @@
|
|
|
53283
53284
|
}
|
|
53284
53285
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
53285
53286
|
};
|
|
53286
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53287
|
+
protoOf(TableLifecycleReducerImpl).e94 = function (table) {
|
|
53287
53288
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
53288
53289
|
// Inline function 'kotlin.collections.map' call
|
|
53289
53290
|
var this_0 = table.players;
|
|
@@ -53298,10 +53299,10 @@
|
|
|
53298
53299
|
var tmp2_cardsOnTable = emptyList();
|
|
53299
53300
|
var tmp3_bribes = emptyList();
|
|
53300
53301
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
53301
|
-
var tmp5_gameHistory = this.
|
|
53302
|
+
var tmp5_gameHistory = this.l95_1.g95(table.gameHistory);
|
|
53302
53303
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
53303
53304
|
};
|
|
53304
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53305
|
+
protoOf(TableLifecycleReducerImpl).a95 = function (table) {
|
|
53305
53306
|
// Inline function 'kotlin.collections.map' call
|
|
53306
53307
|
var this_0 = table.players;
|
|
53307
53308
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53312,9 +53313,9 @@
|
|
|
53312
53313
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
53313
53314
|
destination.j(tmp$ret$0);
|
|
53314
53315
|
}
|
|
53315
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
53316
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.l95_1.g95(table.gameHistory));
|
|
53316
53317
|
};
|
|
53317
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53318
|
+
protoOf(TableLifecycleReducerImpl).j95 = function (table, newGameId) {
|
|
53318
53319
|
// Inline function 'kotlin.collections.map' call
|
|
53319
53320
|
var this_0 = table.players;
|
|
53320
53321
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53353,93 +53354,93 @@
|
|
|
53353
53354
|
return true;
|
|
53354
53355
|
}
|
|
53355
53356
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
53356
|
-
this.
|
|
53357
|
-
this.
|
|
53358
|
-
this.
|
|
53359
|
-
this.
|
|
53357
|
+
this.m95_1 = $isEnableForPlayer;
|
|
53358
|
+
this.n95_1 = $playerTurnInteractor;
|
|
53359
|
+
this.o95_1 = $logger;
|
|
53360
|
+
this.p95_1 = $playerTurnMechanicReducer;
|
|
53360
53361
|
}
|
|
53361
53362
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).q6d = function (action) {
|
|
53362
53363
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
53363
53364
|
};
|
|
53364
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
53365
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
|
|
53365
53366
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
53366
53367
|
var tmp$ret$0;
|
|
53367
53368
|
$l$block: {
|
|
53368
53369
|
var table = state.n6i();
|
|
53369
53370
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
53370
|
-
if (!this.
|
|
53371
|
+
if (!this.m95_1(player)) {
|
|
53371
53372
|
tmp$ret$0 = state;
|
|
53372
53373
|
break $l$block;
|
|
53373
53374
|
}
|
|
53374
|
-
var turnModel = this.
|
|
53375
|
+
var turnModel = this.n95_1.z8l(player, tmp2);
|
|
53375
53376
|
var tmp;
|
|
53376
53377
|
if (turnModel == null) {
|
|
53377
|
-
this.
|
|
53378
|
+
this.o95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
53378
53379
|
tmp = state;
|
|
53379
53380
|
} else {
|
|
53380
|
-
tmp = state.m8p(this.
|
|
53381
|
+
tmp = state.m8p(this.p95_1.p94(table, turnModel));
|
|
53381
53382
|
}
|
|
53382
53383
|
tmp$ret$0 = tmp;
|
|
53383
53384
|
}
|
|
53384
53385
|
return tmp$ret$0;
|
|
53385
53386
|
};
|
|
53386
53387
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
|
|
53387
|
-
return this.
|
|
53388
|
+
return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53388
53389
|
};
|
|
53389
53390
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
53390
53391
|
return true;
|
|
53391
53392
|
}
|
|
53392
53393
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
53393
|
-
this.
|
|
53394
|
-
this.
|
|
53395
|
-
this.
|
|
53396
|
-
this.
|
|
53394
|
+
this.q95_1 = $isEnableForPlayer;
|
|
53395
|
+
this.r95_1 = $playerTurnInteractor;
|
|
53396
|
+
this.s95_1 = $logger;
|
|
53397
|
+
this.t95_1 = $playerTurnMechanicReducer;
|
|
53397
53398
|
}
|
|
53398
53399
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).q6d = function (action) {
|
|
53399
53400
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
53400
53401
|
};
|
|
53401
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
53402
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
|
|
53402
53403
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
53403
53404
|
var tmp$ret$0;
|
|
53404
53405
|
$l$block: {
|
|
53405
53406
|
var table = state.n6i();
|
|
53406
53407
|
var player = getPlayerTurn(tmp2, table.players);
|
|
53407
|
-
if (player == null || !this.
|
|
53408
|
+
if (player == null || !this.q95_1(player)) {
|
|
53408
53409
|
tmp$ret$0 = state;
|
|
53409
53410
|
break $l$block;
|
|
53410
53411
|
}
|
|
53411
|
-
var turnModel = this.
|
|
53412
|
+
var turnModel = this.r95_1.z8l(player, tmp2);
|
|
53412
53413
|
var tmp;
|
|
53413
53414
|
if (turnModel == null) {
|
|
53414
|
-
this.
|
|
53415
|
+
this.s95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
53415
53416
|
tmp = state;
|
|
53416
53417
|
} else {
|
|
53417
|
-
tmp = state.m8p(this.
|
|
53418
|
+
tmp = state.m8p(this.t95_1.p94(table, turnModel));
|
|
53418
53419
|
}
|
|
53419
53420
|
tmp$ret$0 = tmp;
|
|
53420
53421
|
}
|
|
53421
53422
|
return tmp$ret$0;
|
|
53422
53423
|
};
|
|
53423
53424
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
|
|
53424
|
-
return this.
|
|
53425
|
+
return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53425
53426
|
};
|
|
53426
53427
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
53427
53428
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
53428
53429
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
53429
53430
|
}
|
|
53430
53431
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
53431
|
-
this.
|
|
53432
|
-
this.
|
|
53432
|
+
this.u95_1 = $playerTurnInteractor;
|
|
53433
|
+
this.v95_1 = $playerTurnMechanicReducer;
|
|
53433
53434
|
}
|
|
53434
53435
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).q6d = function (action) {
|
|
53435
53436
|
return isInterface(action, NextPlayerTurnAction);
|
|
53436
53437
|
};
|
|
53437
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
53438
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
|
|
53438
53439
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
53439
53440
|
var tmp$ret$0;
|
|
53440
53441
|
$l$block: {
|
|
53441
53442
|
var table = state.n6i();
|
|
53442
|
-
var tmp0_elvis_lhs = this.
|
|
53443
|
+
var tmp0_elvis_lhs = this.u95_1.y8l(tmp2, table);
|
|
53443
53444
|
var tmp;
|
|
53444
53445
|
if (tmp0_elvis_lhs == null) {
|
|
53445
53446
|
tmp$ret$0 = state;
|
|
@@ -53448,12 +53449,12 @@
|
|
|
53448
53449
|
tmp = tmp0_elvis_lhs;
|
|
53449
53450
|
}
|
|
53450
53451
|
var turnModel = tmp;
|
|
53451
|
-
tmp$ret$0 = state.m8p(this.
|
|
53452
|
+
tmp$ret$0 = state.m8p(this.v95_1.o94(table, turnModel));
|
|
53452
53453
|
}
|
|
53453
53454
|
return tmp$ret$0;
|
|
53454
53455
|
};
|
|
53455
53456
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
|
|
53456
|
-
return this.
|
|
53457
|
+
return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53457
53458
|
};
|
|
53458
53459
|
function get_isCreated(_this__u8e3s4) {
|
|
53459
53460
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -53466,7 +53467,7 @@
|
|
|
53466
53467
|
}
|
|
53467
53468
|
function Companion_165() {
|
|
53468
53469
|
}
|
|
53469
|
-
protoOf(Companion_165).
|
|
53470
|
+
protoOf(Companion_165).w95 = function (payload) {
|
|
53470
53471
|
var tmp;
|
|
53471
53472
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
53472
53473
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -53498,27 +53499,27 @@
|
|
|
53498
53499
|
tmp = payloadMapper;
|
|
53499
53500
|
}
|
|
53500
53501
|
payloadMapper = tmp;
|
|
53501
|
-
this.
|
|
53502
|
-
this.
|
|
53502
|
+
this.x95_1 = logger;
|
|
53503
|
+
this.y95_1 = payloadMapper;
|
|
53503
53504
|
}
|
|
53504
53505
|
protoOf(CallbackWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
53505
|
-
this.
|
|
53506
|
+
this.x95_1.d(tag, message, this.y95_1(payload));
|
|
53506
53507
|
};
|
|
53507
53508
|
protoOf(CallbackWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
53508
|
-
this.
|
|
53509
|
+
this.x95_1.e(tag, message, exception, this.y95_1(payload));
|
|
53509
53510
|
};
|
|
53510
53511
|
protoOf(CallbackWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
53511
|
-
this.
|
|
53512
|
+
this.x95_1.i(tag, message, this.y95_1(payload));
|
|
53512
53513
|
};
|
|
53513
53514
|
protoOf(CallbackWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
53514
|
-
this.
|
|
53515
|
+
this.x95_1.v(tag, message, exception, this.y95_1(payload));
|
|
53515
53516
|
};
|
|
53516
53517
|
protoOf(CallbackWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
53517
|
-
this.
|
|
53518
|
+
this.x95_1.w(tag, message, exception, this.y95_1(payload));
|
|
53518
53519
|
};
|
|
53519
53520
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
53520
|
-
this.
|
|
53521
|
-
this.
|
|
53521
|
+
this.h96_1 = $$this$unsafeFlow;
|
|
53522
|
+
this.i96_1 = $types;
|
|
53522
53523
|
CoroutineImpl.call(this, resultContinuation);
|
|
53523
53524
|
}
|
|
53524
53525
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).s4u = function (value, $completion) {
|
|
@@ -53539,15 +53540,15 @@
|
|
|
53539
53540
|
case 0:
|
|
53540
53541
|
this.s8_1 = 5;
|
|
53541
53542
|
var tmp_0 = this;
|
|
53542
|
-
tmp_0.
|
|
53543
|
+
tmp_0.l96_1 = this.h96_1;
|
|
53543
53544
|
var tmp_1 = this;
|
|
53544
|
-
tmp_1.
|
|
53545
|
+
tmp_1.k96_1 = this.j96_1;
|
|
53545
53546
|
this.r8_1 = 1;
|
|
53546
53547
|
continue $sm;
|
|
53547
53548
|
case 1:
|
|
53548
|
-
var $this$transform = this.
|
|
53549
|
-
var value = this.
|
|
53550
|
-
if (contains(this.
|
|
53549
|
+
var $this$transform = this.l96_1;
|
|
53550
|
+
var value = this.k96_1;
|
|
53551
|
+
if (contains(this.i96_1, value.type)) {
|
|
53551
53552
|
this.r8_1 = 3;
|
|
53552
53553
|
suspendResult = $this$transform.x27(value, this);
|
|
53553
53554
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -53587,8 +53588,8 @@
|
|
|
53587
53588
|
while (true);
|
|
53588
53589
|
};
|
|
53589
53590
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).t4u = function (value, completion) {
|
|
53590
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
53591
|
-
i.
|
|
53591
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.h96_1, this.i96_1, completion);
|
|
53592
|
+
i.j96_1 = value;
|
|
53592
53593
|
return i;
|
|
53593
53594
|
};
|
|
53594
53595
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -53601,8 +53602,8 @@
|
|
|
53601
53602
|
}
|
|
53602
53603
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
53603
53604
|
CoroutineImpl.call(this, resultContinuation);
|
|
53604
|
-
this.
|
|
53605
|
-
this.
|
|
53605
|
+
this.u96_1 = _this__u8e3s4;
|
|
53606
|
+
this.v96_1 = collector;
|
|
53606
53607
|
}
|
|
53607
53608
|
protoOf($collectCOROUTINE$).z8 = function () {
|
|
53608
53609
|
var suspendResult = this.t8_1;
|
|
@@ -53612,10 +53613,10 @@
|
|
|
53612
53613
|
switch (tmp) {
|
|
53613
53614
|
case 0:
|
|
53614
53615
|
this.s8_1 = 2;
|
|
53615
|
-
var $this$unsafeFlow = this.
|
|
53616
|
+
var $this$unsafeFlow = this.v96_1;
|
|
53616
53617
|
this.r8_1 = 1;
|
|
53617
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
53618
|
-
suspendResult = this.
|
|
53618
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.u96_1.x96_1, null);
|
|
53619
|
+
suspendResult = this.u96_1.w96_1.j27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
53619
53620
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53620
53621
|
return suspendResult;
|
|
53621
53622
|
}
|
|
@@ -53639,8 +53640,8 @@
|
|
|
53639
53640
|
};
|
|
53640
53641
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
53641
53642
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53642
|
-
$this.
|
|
53643
|
-
var tmp0_elvis_lhs = $this.
|
|
53643
|
+
$this.a97_1;
|
|
53644
|
+
var tmp0_elvis_lhs = $this.y96_1(payload);
|
|
53644
53645
|
var tmp;
|
|
53645
53646
|
if (tmp0_elvis_lhs == null) {
|
|
53646
53647
|
return Unit_instance;
|
|
@@ -53649,7 +53650,7 @@
|
|
|
53649
53650
|
}
|
|
53650
53651
|
var key = tmp;
|
|
53651
53652
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
53652
|
-
var this_0 = $this.
|
|
53653
|
+
var this_0 = $this.b97_1;
|
|
53653
53654
|
var value = this_0.b2(key);
|
|
53654
53655
|
var tmp_0;
|
|
53655
53656
|
if (value == null) {
|
|
@@ -53661,7 +53662,7 @@
|
|
|
53661
53662
|
}
|
|
53662
53663
|
var logger = tmp_0;
|
|
53663
53664
|
var tmp1_key = key.t6g();
|
|
53664
|
-
logger.
|
|
53665
|
+
logger.c97_1.d2a(new LoggerOutputDataDto(type, tmp1_key, tag, message, stackTrace));
|
|
53665
53666
|
}
|
|
53666
53667
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
53667
53668
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -53671,35 +53672,35 @@
|
|
|
53671
53672
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
53672
53673
|
controller = controller === VOID ? null : controller;
|
|
53673
53674
|
job = job === VOID ? null : job;
|
|
53674
|
-
this.
|
|
53675
|
-
this.
|
|
53676
|
-
this.
|
|
53675
|
+
this.c97_1 = flow;
|
|
53676
|
+
this.d97_1 = controller;
|
|
53677
|
+
this.e97_1 = job;
|
|
53677
53678
|
}
|
|
53678
|
-
protoOf(LoggerModel).
|
|
53679
|
-
this.
|
|
53680
|
-
var tmp0_safe_receiver = this.
|
|
53679
|
+
protoOf(LoggerModel).f97 = function () {
|
|
53680
|
+
this.c97_1.h2a();
|
|
53681
|
+
var tmp0_safe_receiver = this.e97_1;
|
|
53681
53682
|
if (tmp0_safe_receiver == null)
|
|
53682
53683
|
null;
|
|
53683
53684
|
else {
|
|
53684
53685
|
tmp0_safe_receiver.n1q();
|
|
53685
53686
|
}
|
|
53686
53687
|
};
|
|
53687
|
-
protoOf(LoggerModel).
|
|
53688
|
+
protoOf(LoggerModel).g97 = function (flow, controller, job) {
|
|
53688
53689
|
return new LoggerModel(flow, controller, job);
|
|
53689
53690
|
};
|
|
53690
|
-
protoOf(LoggerModel).
|
|
53691
|
-
flow = flow === VOID ? this.
|
|
53692
|
-
controller = controller === VOID ? this.
|
|
53693
|
-
job = job === VOID ? this.
|
|
53694
|
-
return $super === VOID ? this.
|
|
53691
|
+
protoOf(LoggerModel).h97 = function (flow, controller, job, $super) {
|
|
53692
|
+
flow = flow === VOID ? this.c97_1 : flow;
|
|
53693
|
+
controller = controller === VOID ? this.d97_1 : controller;
|
|
53694
|
+
job = job === VOID ? this.e97_1 : job;
|
|
53695
|
+
return $super === VOID ? this.g97(flow, controller, job) : $super.g97.call(this, flow, controller, job);
|
|
53695
53696
|
};
|
|
53696
53697
|
protoOf(LoggerModel).toString = function () {
|
|
53697
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
53698
|
+
return 'LoggerModel(flow=' + toString(this.c97_1) + ', controller=' + toString_0(this.d97_1) + ', job=' + toString_0(this.e97_1) + ')';
|
|
53698
53699
|
};
|
|
53699
53700
|
protoOf(LoggerModel).hashCode = function () {
|
|
53700
|
-
var result = hashCode(this.
|
|
53701
|
-
result = imul(result, 31) + (this.c97_1 == null ? 0 : hashCode(this.c97_1)) | 0;
|
|
53701
|
+
var result = hashCode(this.c97_1);
|
|
53702
53702
|
result = imul(result, 31) + (this.d97_1 == null ? 0 : hashCode(this.d97_1)) | 0;
|
|
53703
|
+
result = imul(result, 31) + (this.e97_1 == null ? 0 : hashCode(this.e97_1)) | 0;
|
|
53703
53704
|
return result;
|
|
53704
53705
|
};
|
|
53705
53706
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -53707,18 +53708,18 @@
|
|
|
53707
53708
|
return true;
|
|
53708
53709
|
if (!(other instanceof LoggerModel))
|
|
53709
53710
|
return false;
|
|
53710
|
-
if (!equals(this.b97_1, other.b97_1))
|
|
53711
|
-
return false;
|
|
53712
53711
|
if (!equals(this.c97_1, other.c97_1))
|
|
53713
53712
|
return false;
|
|
53714
53713
|
if (!equals(this.d97_1, other.d97_1))
|
|
53715
53714
|
return false;
|
|
53715
|
+
if (!equals(this.e97_1, other.e97_1))
|
|
53716
|
+
return false;
|
|
53716
53717
|
return true;
|
|
53717
53718
|
};
|
|
53718
53719
|
function Companion_166() {
|
|
53719
|
-
this.
|
|
53720
|
+
this.i97_1 = 1000;
|
|
53720
53721
|
}
|
|
53721
|
-
protoOf(Companion_166).
|
|
53722
|
+
protoOf(Companion_166).j97 = function (payload) {
|
|
53722
53723
|
var tmp;
|
|
53723
53724
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
53724
53725
|
tmp = payload.id;
|
|
@@ -53735,7 +53736,7 @@
|
|
|
53735
53736
|
}
|
|
53736
53737
|
return tmp;
|
|
53737
53738
|
};
|
|
53738
|
-
protoOf(Companion_166).
|
|
53739
|
+
protoOf(Companion_166).k97 = function (payload) {
|
|
53739
53740
|
var tmp;
|
|
53740
53741
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
53741
53742
|
tmp = first(payload.users).p64_1;
|
|
@@ -53753,13 +53754,13 @@
|
|
|
53753
53754
|
return Companion_instance_171;
|
|
53754
53755
|
}
|
|
53755
53756
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
53756
|
-
this.
|
|
53757
|
+
this.l97_1 = function_0;
|
|
53757
53758
|
}
|
|
53758
53759
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).x27 = function (value, $completion) {
|
|
53759
|
-
return this.
|
|
53760
|
+
return this.l97_1(value, $completion);
|
|
53760
53761
|
};
|
|
53761
53762
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
53762
|
-
return this.
|
|
53763
|
+
return this.l97_1;
|
|
53763
53764
|
};
|
|
53764
53765
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
53765
53766
|
var tmp;
|
|
@@ -53783,8 +53784,8 @@
|
|
|
53783
53784
|
return null;
|
|
53784
53785
|
}
|
|
53785
53786
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
53786
|
-
this.
|
|
53787
|
-
this.
|
|
53787
|
+
this.w96_1 = $this;
|
|
53788
|
+
this.x96_1 = $types;
|
|
53788
53789
|
}
|
|
53789
53790
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).y27 = function (collector, $completion) {
|
|
53790
53791
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -53804,26 +53805,26 @@
|
|
|
53804
53805
|
}
|
|
53805
53806
|
payloadToLoggerKeyMapper = tmp;
|
|
53806
53807
|
enabled = enabled === VOID ? true : enabled;
|
|
53807
|
-
this.
|
|
53808
|
-
this.
|
|
53808
|
+
this.y96_1 = payloadToLoggerKeyMapper;
|
|
53809
|
+
this.z96_1 = enabled;
|
|
53809
53810
|
var tmp_0 = this;
|
|
53810
53811
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
53811
|
-
tmp_0.
|
|
53812
|
+
tmp_0.a97_1 = get_atomicfu$reentrantLock();
|
|
53812
53813
|
var tmp_1 = this;
|
|
53813
53814
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
53814
|
-
tmp_1.
|
|
53815
|
+
tmp_1.b97_1 = LinkedHashMap_init_$Create$();
|
|
53815
53816
|
}
|
|
53816
53817
|
protoOf(FileLoggerOutputImpl).c1l = function (_set____db54di) {
|
|
53817
|
-
this.
|
|
53818
|
+
this.z96_1 = _set____db54di;
|
|
53818
53819
|
};
|
|
53819
53820
|
protoOf(FileLoggerOutputImpl).d1l = function () {
|
|
53820
|
-
return this.
|
|
53821
|
+
return this.z96_1;
|
|
53821
53822
|
};
|
|
53822
|
-
protoOf(FileLoggerOutputImpl).
|
|
53823
|
+
protoOf(FileLoggerOutputImpl).m97 = function (loggerKey, types) {
|
|
53823
53824
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53824
|
-
this.
|
|
53825
|
+
this.a97_1;
|
|
53825
53826
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
53826
|
-
var this_0 = this.
|
|
53827
|
+
var this_0 = this.b97_1;
|
|
53827
53828
|
var value = this_0.b2(loggerKey);
|
|
53828
53829
|
var tmp;
|
|
53829
53830
|
if (value == null) {
|
|
@@ -53836,26 +53837,26 @@
|
|
|
53836
53837
|
var logger = tmp;
|
|
53837
53838
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
53838
53839
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
53839
|
-
var this_1 = logger.
|
|
53840
|
+
var this_1 = logger.c97_1;
|
|
53840
53841
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
53841
53842
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
53842
53843
|
};
|
|
53843
53844
|
protoOf(FileLoggerOutputImpl).e8y = function (loggerKey) {
|
|
53844
53845
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53845
|
-
this.
|
|
53846
|
-
var tmp0_safe_receiver = this.
|
|
53846
|
+
this.a97_1;
|
|
53847
|
+
var tmp0_safe_receiver = this.b97_1.b2(loggerKey);
|
|
53847
53848
|
if (tmp0_safe_receiver == null)
|
|
53848
53849
|
null;
|
|
53849
53850
|
else {
|
|
53850
|
-
tmp0_safe_receiver.
|
|
53851
|
+
tmp0_safe_receiver.f97();
|
|
53851
53852
|
}
|
|
53852
|
-
this.
|
|
53853
|
+
this.b97_1.f2(loggerKey);
|
|
53853
53854
|
};
|
|
53854
53855
|
protoOf(FileLoggerOutputImpl).d8y = function (loggerKey, job, controller) {
|
|
53855
53856
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53856
|
-
this.
|
|
53857
|
+
this.a97_1;
|
|
53857
53858
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
53858
|
-
var this_0 = this.
|
|
53859
|
+
var this_0 = this.b97_1;
|
|
53859
53860
|
var value = this_0.b2(loggerKey);
|
|
53860
53861
|
var tmp;
|
|
53861
53862
|
if (value == null) {
|
|
@@ -53865,30 +53866,30 @@
|
|
|
53865
53866
|
} else {
|
|
53866
53867
|
tmp = value;
|
|
53867
53868
|
}
|
|
53868
|
-
var updatedModel = tmp.
|
|
53869
|
+
var updatedModel = tmp.h97(VOID, controller, job);
|
|
53869
53870
|
// Inline function 'kotlin.collections.set' call
|
|
53870
|
-
this.
|
|
53871
|
+
this.b97_1.e2(loggerKey, updatedModel);
|
|
53871
53872
|
};
|
|
53872
53873
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
53873
53874
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53874
|
-
this.
|
|
53875
|
+
this.a97_1;
|
|
53875
53876
|
// Inline function 'kotlin.collections.forEach' call
|
|
53876
53877
|
// Inline function 'kotlin.collections.iterator' call
|
|
53877
|
-
var _iterator__ex2g4s = this.
|
|
53878
|
+
var _iterator__ex2g4s = this.b97_1.u().l();
|
|
53878
53879
|
while (_iterator__ex2g4s.m()) {
|
|
53879
53880
|
var element = _iterator__ex2g4s.n();
|
|
53880
|
-
element.w().
|
|
53881
|
+
element.w().f97();
|
|
53881
53882
|
}
|
|
53882
|
-
this.
|
|
53883
|
+
this.b97_1.h2();
|
|
53883
53884
|
};
|
|
53884
53885
|
protoOf(FileLoggerOutputImpl).x1k = function (tag, message, payload) {
|
|
53885
|
-
if (!this.
|
|
53886
|
+
if (!this.z96_1)
|
|
53886
53887
|
return Unit_instance;
|
|
53887
53888
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
53888
53889
|
log$default(this, tmp0_type, tag, message, payload);
|
|
53889
53890
|
};
|
|
53890
53891
|
protoOf(FileLoggerOutputImpl).y1k = function (tag, message, exception, payload) {
|
|
53891
|
-
if (!this.
|
|
53892
|
+
if (!this.z96_1)
|
|
53892
53893
|
return Unit_instance;
|
|
53893
53894
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
53894
53895
|
var tmp;
|
|
@@ -53903,13 +53904,13 @@
|
|
|
53903
53904
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
53904
53905
|
};
|
|
53905
53906
|
protoOf(FileLoggerOutputImpl).b1l = function (tag, message, payload) {
|
|
53906
|
-
if (!this.
|
|
53907
|
+
if (!this.z96_1)
|
|
53907
53908
|
return Unit_instance;
|
|
53908
53909
|
var tmp0_type = LogType_INFO_getInstance();
|
|
53909
53910
|
log(this, tmp0_type, tag, message, payload, null);
|
|
53910
53911
|
};
|
|
53911
53912
|
protoOf(FileLoggerOutputImpl).a1l = function (tag, message, exception, payload) {
|
|
53912
|
-
if (!this.
|
|
53913
|
+
if (!this.z96_1)
|
|
53913
53914
|
return Unit_instance;
|
|
53914
53915
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
53915
53916
|
var tmp;
|
|
@@ -53924,7 +53925,7 @@
|
|
|
53924
53925
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
53925
53926
|
};
|
|
53926
53927
|
protoOf(FileLoggerOutputImpl).z1k = function (tag, message, exception, payload) {
|
|
53927
|
-
if (!this.
|
|
53928
|
+
if (!this.z96_1)
|
|
53928
53929
|
return Unit_instance;
|
|
53929
53930
|
var tmp4_type = LogType_WARN_getInstance();
|
|
53930
53931
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -54464,9 +54465,9 @@
|
|
|
54464
54465
|
}
|
|
54465
54466
|
}
|
|
54466
54467
|
function GameHelperImpl(logger) {
|
|
54467
|
-
this.
|
|
54468
|
+
this.q97_1 = logger;
|
|
54468
54469
|
}
|
|
54469
|
-
protoOf(GameHelperImpl).
|
|
54470
|
+
protoOf(GameHelperImpl).n97 = function (store, playerIds, includeBots) {
|
|
54470
54471
|
var state = store.state;
|
|
54471
54472
|
var tmp;
|
|
54472
54473
|
if (!state.o6i()) {
|
|
@@ -54512,7 +54513,7 @@
|
|
|
54512
54513
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
54513
54514
|
return copyToArray(destination_1);
|
|
54514
54515
|
};
|
|
54515
|
-
protoOf(GameHelperImpl).
|
|
54516
|
+
protoOf(GameHelperImpl).o97 = function (store, playerIds, includeBots) {
|
|
54516
54517
|
var state = store.state;
|
|
54517
54518
|
var tmp;
|
|
54518
54519
|
if (!state.o6i()) {
|
|
@@ -54683,10 +54684,10 @@
|
|
|
54683
54684
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
54684
54685
|
return copyToArray(destination);
|
|
54685
54686
|
};
|
|
54686
|
-
protoOf(GameHelperImpl).
|
|
54687
|
+
protoOf(GameHelperImpl).p97 = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
54687
54688
|
var roomMode = mapToRoomMode(mode);
|
|
54688
54689
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
54689
|
-
this.
|
|
54690
|
+
this.q97_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
54690
54691
|
var options = Companion_instance_155.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
54691
54692
|
var playersMode = this.mapPlayers(players);
|
|
54692
54693
|
var pointsMode = this.mapPoints(points);
|
|
@@ -55121,40 +55122,40 @@
|
|
|
55121
55122
|
function getRandomAvatarData_0($this) {
|
|
55122
55123
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
55123
55124
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
55124
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
55125
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.u97()), avatarSet);
|
|
55125
55126
|
}
|
|
55126
55127
|
function getAvatarUrlByIndex($this, data) {
|
|
55127
55128
|
return mapToPattern($this, data);
|
|
55128
55129
|
}
|
|
55129
55130
|
function getNicknameByIndex($this, data) {
|
|
55130
|
-
return data.
|
|
55131
|
+
return data.w97_1.x97(data.v97_1);
|
|
55131
55132
|
}
|
|
55132
55133
|
function mapToPattern($this, data) {
|
|
55133
|
-
return 'debertz://raspberry.games/' + data.
|
|
55134
|
+
return 'debertz://raspberry.games/' + data.w97_1.p2_1 + '/' + data.v97_1;
|
|
55134
55135
|
}
|
|
55135
55136
|
function Companion_167() {
|
|
55136
55137
|
Companion_instance_172 = this;
|
|
55137
|
-
this.
|
|
55138
|
+
this.y97_1 = 'debertz://raspberry.games';
|
|
55138
55139
|
var tmp = this;
|
|
55139
55140
|
// Inline function 'kotlin.arrayOf' call
|
|
55140
55141
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55141
55142
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55142
|
-
tmp.
|
|
55143
|
+
tmp.z97_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
55143
55144
|
var tmp_0 = this;
|
|
55144
55145
|
// Inline function 'kotlin.arrayOf' call
|
|
55145
55146
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55146
55147
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55147
|
-
tmp_0.
|
|
55148
|
+
tmp_0.a98_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'];
|
|
55148
55149
|
var tmp_1 = this;
|
|
55149
55150
|
// Inline function 'kotlin.arrayOf' call
|
|
55150
55151
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55151
55152
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55152
|
-
tmp_1.
|
|
55153
|
+
tmp_1.b98_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
55153
55154
|
var tmp_2 = this;
|
|
55154
55155
|
// Inline function 'kotlin.arrayOf' call
|
|
55155
55156
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55156
55157
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55157
|
-
tmp_2.
|
|
55158
|
+
tmp_2.c98_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'];
|
|
55158
55159
|
}
|
|
55159
55160
|
var Companion_instance_172;
|
|
55160
55161
|
function Companion_getInstance_174() {
|
|
@@ -55165,14 +55166,14 @@
|
|
|
55165
55166
|
function AvatarSet(name, ordinal) {
|
|
55166
55167
|
Enum.call(this, name, ordinal);
|
|
55167
55168
|
}
|
|
55168
|
-
protoOf(AvatarSet).
|
|
55169
|
+
protoOf(AvatarSet).u97 = function () {
|
|
55169
55170
|
var tmp;
|
|
55170
55171
|
switch (this.p2_1) {
|
|
55171
55172
|
case 0:
|
|
55172
|
-
tmp = Companion_getInstance_174().
|
|
55173
|
+
tmp = Companion_getInstance_174().a98_1.length;
|
|
55173
55174
|
break;
|
|
55174
55175
|
case 1:
|
|
55175
|
-
tmp = Companion_getInstance_174().
|
|
55176
|
+
tmp = Companion_getInstance_174().c98_1.length;
|
|
55176
55177
|
break;
|
|
55177
55178
|
default:
|
|
55178
55179
|
noWhenBranchMatchedException();
|
|
@@ -55180,14 +55181,14 @@
|
|
|
55180
55181
|
}
|
|
55181
55182
|
return tmp;
|
|
55182
55183
|
};
|
|
55183
|
-
protoOf(AvatarSet).
|
|
55184
|
+
protoOf(AvatarSet).x97 = function (index) {
|
|
55184
55185
|
var tmp;
|
|
55185
55186
|
switch (this.p2_1) {
|
|
55186
55187
|
case 0:
|
|
55187
|
-
tmp = Companion_getInstance_174().
|
|
55188
|
+
tmp = Companion_getInstance_174().a98_1[index];
|
|
55188
55189
|
break;
|
|
55189
55190
|
case 1:
|
|
55190
|
-
tmp = Companion_getInstance_174().
|
|
55191
|
+
tmp = Companion_getInstance_174().c98_1[index];
|
|
55191
55192
|
break;
|
|
55192
55193
|
default:
|
|
55193
55194
|
noWhenBranchMatchedException();
|
|
@@ -55196,8 +55197,8 @@
|
|
|
55196
55197
|
return tmp;
|
|
55197
55198
|
};
|
|
55198
55199
|
function AvatarData(index, avatarSet) {
|
|
55199
|
-
this.
|
|
55200
|
-
this.
|
|
55200
|
+
this.v97_1 = index;
|
|
55201
|
+
this.w97_1 = avatarSet;
|
|
55201
55202
|
}
|
|
55202
55203
|
function AvatarSet_ORIGIN_getInstance() {
|
|
55203
55204
|
AvatarSet_initEntries();
|
|
@@ -55210,7 +55211,7 @@
|
|
|
55210
55211
|
function GameResourcesImpl() {
|
|
55211
55212
|
Companion_getInstance_174();
|
|
55212
55213
|
}
|
|
55213
|
-
protoOf(GameResourcesImpl).
|
|
55214
|
+
protoOf(GameResourcesImpl).r97 = function (playerId, existingNicknames) {
|
|
55214
55215
|
return createUser(this, playerId, existingNicknames);
|
|
55215
55216
|
};
|
|
55216
55217
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -55251,45 +55252,45 @@
|
|
|
55251
55252
|
}
|
|
55252
55253
|
var WARN;
|
|
55253
55254
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
55254
|
-
this.
|
|
55255
|
+
this.d98_1 = loggerCallback;
|
|
55255
55256
|
}
|
|
55256
55257
|
protoOf(LoggerCallbacksWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
55257
|
-
this.
|
|
55258
|
+
this.d98_1('debug', tag, message, null, payload);
|
|
55258
55259
|
};
|
|
55259
55260
|
protoOf(LoggerCallbacksWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
55260
|
-
this.
|
|
55261
|
+
this.d98_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
55261
55262
|
};
|
|
55262
55263
|
protoOf(LoggerCallbacksWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
55263
|
-
this.
|
|
55264
|
+
this.d98_1('debug', tag, message, null, payload);
|
|
55264
55265
|
};
|
|
55265
55266
|
protoOf(LoggerCallbacksWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
55266
|
-
this.
|
|
55267
|
+
this.d98_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
55267
55268
|
};
|
|
55268
55269
|
protoOf(LoggerCallbacksWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
55269
|
-
this.
|
|
55270
|
+
this.d98_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
55270
55271
|
};
|
|
55271
55272
|
function ParserHelper() {
|
|
55272
55273
|
}
|
|
55273
55274
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
55274
|
-
this.
|
|
55275
|
-
this.
|
|
55275
|
+
this.e98_1 = json;
|
|
55276
|
+
this.f98_1 = encoderDecoderProvider;
|
|
55276
55277
|
}
|
|
55277
55278
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
55278
|
-
return this.
|
|
55279
|
+
return this.f98_1.h8e(mapToDto_20(action));
|
|
55279
55280
|
};
|
|
55280
55281
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
55281
|
-
return mapFromDto_16(this.
|
|
55282
|
+
return mapFromDto_16(this.f98_1.k8e(json), fromPlayerId);
|
|
55282
55283
|
};
|
|
55283
55284
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
55284
|
-
return this.
|
|
55285
|
+
return this.f98_1.i8e(mapToDto_74(action));
|
|
55285
55286
|
};
|
|
55286
55287
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
55287
55288
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55288
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
55289
|
+
var this_0 = mapFromClientDtoListWithPayload(this.f98_1.l8e(json), playerId, engine);
|
|
55289
55290
|
return copyToArray(this_0);
|
|
55290
55291
|
};
|
|
55291
55292
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
55292
|
-
var tmp0 = this.
|
|
55293
|
+
var tmp0 = this.e98_1;
|
|
55293
55294
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55294
55295
|
var value = mapToDto_31(round);
|
|
55295
55296
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55300,7 +55301,7 @@
|
|
|
55300
55301
|
return tmp0.ep(tmp$ret$1, value);
|
|
55301
55302
|
};
|
|
55302
55303
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
55303
|
-
var tmp0 = this.
|
|
55304
|
+
var tmp0 = this.e98_1;
|
|
55304
55305
|
// Inline function 'kotlin.collections.map' call
|
|
55305
55306
|
var this_0 = round.items;
|
|
55306
55307
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -55322,7 +55323,7 @@
|
|
|
55322
55323
|
return tmp0.ep(tmp$ret$4, destination);
|
|
55323
55324
|
};
|
|
55324
55325
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
55325
|
-
var tmp0 = this.
|
|
55326
|
+
var tmp0 = this.e98_1;
|
|
55326
55327
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55327
55328
|
var value = mapToDto_33(metadata);
|
|
55328
55329
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55333,7 +55334,7 @@
|
|
|
55333
55334
|
return tmp0.ep(tmp$ret$1, value);
|
|
55334
55335
|
};
|
|
55335
55336
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
55336
|
-
var tmp0 = this.
|
|
55337
|
+
var tmp0 = this.e98_1;
|
|
55337
55338
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55338
55339
|
var value = mapToDto_59(config);
|
|
55339
55340
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55344,7 +55345,7 @@
|
|
|
55344
55345
|
return tmp0.ep(tmp$ret$1, value);
|
|
55345
55346
|
};
|
|
55346
55347
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
55347
|
-
var tmp0 = this.
|
|
55348
|
+
var tmp0 = this.e98_1;
|
|
55348
55349
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55349
55350
|
var value = mapToDto_95(transition);
|
|
55350
55351
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55356,7 +55357,7 @@
|
|
|
55356
55357
|
};
|
|
55357
55358
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
55358
55359
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
55359
|
-
var this_0 = this.
|
|
55360
|
+
var this_0 = this.e98_1;
|
|
55360
55361
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
55361
55362
|
var this_1 = this_0.ds();
|
|
55362
55363
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -55367,7 +55368,7 @@
|
|
|
55367
55368
|
};
|
|
55368
55369
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
55369
55370
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
55370
|
-
var this_0 = this.
|
|
55371
|
+
var this_0 = this.e98_1;
|
|
55371
55372
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
55372
55373
|
var this_1 = this_0.ds();
|
|
55373
55374
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -55377,7 +55378,7 @@
|
|
|
55377
55378
|
return mapFromDto_97(tmp$ret$2);
|
|
55378
55379
|
};
|
|
55379
55380
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
55380
|
-
var tmp0 = this.
|
|
55381
|
+
var tmp0 = this.e98_1;
|
|
55381
55382
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55382
55383
|
var value = mapToDto_126(table);
|
|
55383
55384
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55388,11 +55389,11 @@
|
|
|
55388
55389
|
return tmp0.ep(tmp$ret$1, value);
|
|
55389
55390
|
};
|
|
55390
55391
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
55391
|
-
return mapFromDto_63(this.
|
|
55392
|
+
return mapFromDto_63(this.f98_1.j8e(json));
|
|
55392
55393
|
};
|
|
55393
55394
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
55394
55395
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
55395
|
-
var this_0 = this.
|
|
55396
|
+
var this_0 = this.e98_1;
|
|
55396
55397
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
55397
55398
|
var this_1 = this_0.ds();
|
|
55398
55399
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -55405,16 +55406,16 @@
|
|
|
55405
55406
|
function RatingHelper() {
|
|
55406
55407
|
}
|
|
55407
55408
|
function RatingHelperImpl(userRatingInteractor) {
|
|
55408
|
-
this.
|
|
55409
|
+
this.g98_1 = userRatingInteractor;
|
|
55409
55410
|
}
|
|
55410
55411
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
55411
|
-
return this.
|
|
55412
|
+
return this.g98_1.n8l(league, rating);
|
|
55412
55413
|
};
|
|
55413
55414
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
55414
|
-
return this.
|
|
55415
|
+
return this.g98_1.p8l(rating);
|
|
55415
55416
|
};
|
|
55416
55417
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
55417
|
-
return this.
|
|
55418
|
+
return this.g98_1.o8l();
|
|
55418
55419
|
};
|
|
55419
55420
|
function engineHelpersModule() {
|
|
55420
55421
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -55519,14 +55520,14 @@
|
|
|
55519
55520
|
return new GameResourcesImpl();
|
|
55520
55521
|
}
|
|
55521
55522
|
function _get_logger__rkp4sl_3($this) {
|
|
55522
|
-
var tmp0 = $this.
|
|
55523
|
+
var tmp0 = $this.i98_1;
|
|
55523
55524
|
var tmp = KProperty1;
|
|
55524
55525
|
// Inline function 'kotlin.getValue' call
|
|
55525
55526
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
55526
55527
|
return tmp0.w();
|
|
55527
55528
|
}
|
|
55528
55529
|
function _get_di__ndbzja($this) {
|
|
55529
|
-
var tmp0 = $this.
|
|
55530
|
+
var tmp0 = $this.j98_1;
|
|
55530
55531
|
var tmp = KProperty1;
|
|
55531
55532
|
// Inline function 'kotlin.getValue' call
|
|
55532
55533
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -55535,11 +55536,11 @@
|
|
|
55535
55536
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
55536
55537
|
return function () {
|
|
55537
55538
|
var tmp;
|
|
55538
|
-
if (this$0.
|
|
55539
|
+
if (this$0.h98_1 == null) {
|
|
55539
55540
|
tmp = null;
|
|
55540
55541
|
} else {
|
|
55541
55542
|
// Inline function 'kotlin.let' call
|
|
55542
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
55543
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.h98_1)]));
|
|
55543
55544
|
}
|
|
55544
55545
|
var tmp1_elvis_lhs = tmp;
|
|
55545
55546
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -55629,11 +55630,11 @@
|
|
|
55629
55630
|
}
|
|
55630
55631
|
function EngineHelpersFactory(loggerCallback) {
|
|
55631
55632
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
55632
|
-
this.
|
|
55633
|
+
this.h98_1 = loggerCallback;
|
|
55633
55634
|
var tmp = this;
|
|
55634
|
-
tmp.
|
|
55635
|
+
tmp.i98_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
55635
55636
|
var tmp_0 = this;
|
|
55636
|
-
tmp_0.
|
|
55637
|
+
tmp_0.j98_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
55637
55638
|
var tmp_1 = this;
|
|
55638
55639
|
// Inline function 'org.kodein.di.instance' call
|
|
55639
55640
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -55642,7 +55643,7 @@
|
|
|
55642
55643
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
55643
55644
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
55644
55645
|
var tmp_4 = KProperty1;
|
|
55645
|
-
tmp_1.
|
|
55646
|
+
tmp_1.k98_1 = tmp_3.a63(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
55646
55647
|
var tmp_5 = this;
|
|
55647
55648
|
// Inline function 'org.kodein.di.instance' call
|
|
55648
55649
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -55651,7 +55652,7 @@
|
|
|
55651
55652
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
55652
55653
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
55653
55654
|
var tmp_8 = KProperty1;
|
|
55654
|
-
tmp_5.
|
|
55655
|
+
tmp_5.l98_1 = tmp_7.a63(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
55655
55656
|
var tmp_9 = this;
|
|
55656
55657
|
// Inline function 'org.kodein.di.instance' call
|
|
55657
55658
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -55660,7 +55661,7 @@
|
|
|
55660
55661
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
55661
55662
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
55662
55663
|
var tmp_12 = KProperty1;
|
|
55663
|
-
tmp_9.
|
|
55664
|
+
tmp_9.m98_1 = tmp_11.a63(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
55664
55665
|
var tmp_13 = this;
|
|
55665
55666
|
// Inline function 'org.kodein.di.instance' call
|
|
55666
55667
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -55669,31 +55670,31 @@
|
|
|
55669
55670
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
55670
55671
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
55671
55672
|
var tmp_16 = KProperty1;
|
|
55672
|
-
tmp_13.
|
|
55673
|
+
tmp_13.n98_1 = tmp_15.a63(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
55673
55674
|
}
|
|
55674
|
-
protoOf(EngineHelpersFactory).
|
|
55675
|
-
var tmp0 = this.
|
|
55675
|
+
protoOf(EngineHelpersFactory).o98 = function () {
|
|
55676
|
+
var tmp0 = this.k98_1;
|
|
55676
55677
|
var tmp = KProperty1;
|
|
55677
55678
|
// Inline function 'kotlin.getValue' call
|
|
55678
55679
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
55679
55680
|
return tmp0.w();
|
|
55680
55681
|
};
|
|
55681
|
-
protoOf(EngineHelpersFactory).
|
|
55682
|
-
var tmp0 = this.
|
|
55682
|
+
protoOf(EngineHelpersFactory).p98 = function () {
|
|
55683
|
+
var tmp0 = this.l98_1;
|
|
55683
55684
|
var tmp = KProperty1;
|
|
55684
55685
|
// Inline function 'kotlin.getValue' call
|
|
55685
55686
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
55686
55687
|
return tmp0.w();
|
|
55687
55688
|
};
|
|
55688
|
-
protoOf(EngineHelpersFactory).
|
|
55689
|
-
var tmp0 = this.
|
|
55689
|
+
protoOf(EngineHelpersFactory).q98 = function () {
|
|
55690
|
+
var tmp0 = this.m98_1;
|
|
55690
55691
|
var tmp = KProperty1;
|
|
55691
55692
|
// Inline function 'kotlin.getValue' call
|
|
55692
55693
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
55693
55694
|
return tmp0.w();
|
|
55694
55695
|
};
|
|
55695
|
-
protoOf(EngineHelpersFactory).
|
|
55696
|
-
var tmp0 = this.
|
|
55696
|
+
protoOf(EngineHelpersFactory).r98 = function () {
|
|
55697
|
+
var tmp0 = this.n98_1;
|
|
55697
55698
|
var tmp = KProperty1;
|
|
55698
55699
|
// Inline function 'kotlin.getValue' call
|
|
55699
55700
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -56345,7 +56346,7 @@
|
|
|
56345
56346
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
56346
56347
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
56347
56348
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
56348
|
-
protoOf(FileLoggerOutputImpl).
|
|
56349
|
+
protoOf(FileLoggerOutputImpl).y8z = observe$default;
|
|
56349
56350
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
56350
56351
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
56351
56352
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -56365,10 +56366,10 @@
|
|
|
56365
56366
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
56366
56367
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
56367
56368
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
56368
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
56369
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
56370
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
56371
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
56369
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).o98);
|
|
56370
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).p98);
|
|
56371
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).q98);
|
|
56372
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).r98);
|
|
56372
56373
|
//endregion
|
|
56373
56374
|
//region block: init
|
|
56374
56375
|
Companion_instance_5 = new Companion_0();
|