raspberry_games_server_game_logic 1.8.418 → 1.8.420
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-ai_module.js.map +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +866 -849
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +13 -11
- package/Logic_Debertz-game_server.js +885 -889
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1221,11 +1221,11 @@
|
|
|
1221
1221
|
initMetadataForClass(RevengeRoomTransition, 'RevengeRoomTransition', VOID, VOID, [GameTransition]);
|
|
1222
1222
|
initMetadataForClass(GameToRoomTransition, 'GameToRoomTransition', VOID, VOID, [GameTransition]);
|
|
1223
1223
|
initMetadataForClass(MechanicAction, 'MechanicAction', VOID, VOID, [BufferedAction]);
|
|
1224
|
-
initMetadataForInterface(FirstMechanicAction, 'FirstMechanicAction', VOID, VOID, [Action, IgnoreBufferForAction]);
|
|
1225
1224
|
initMetadataForInterface(PlayerOrderChangeMechanicAction, 'PlayerOrderChangeMechanicAction', VOID, VOID, [Action]);
|
|
1226
|
-
|
|
1225
|
+
initMetadataForInterface(FirstMechanicAction, 'FirstMechanicAction', VOID, VOID, [Action, IgnoreBufferForAction, PlayerOrderChangeMechanicAction]);
|
|
1226
|
+
initMetadataForClass(StartGameMechanicAction, 'StartGameMechanicAction', VOID, MechanicAction, [MechanicAction, FirstMechanicAction]);
|
|
1227
1227
|
initMetadataForClass(StartNewGameMechanicAction, 'StartNewGameMechanicAction', VOID, MechanicAction);
|
|
1228
|
-
initMetadataForClass(ContinueGameMechanicAction, 'ContinueGameMechanicAction', VOID, MechanicAction, [MechanicAction, FirstMechanicAction,
|
|
1228
|
+
initMetadataForClass(ContinueGameMechanicAction, 'ContinueGameMechanicAction', VOID, MechanicAction, [MechanicAction, FirstMechanicAction, NotValidateIfGameFinished]);
|
|
1229
1229
|
initMetadataForCompanion(Companion_170);
|
|
1230
1230
|
initMetadataForInterface(TerminatedAction, 'TerminatedAction', VOID, VOID, [Action]);
|
|
1231
1231
|
initMetadataForClass(FinishingGameMechanicAction, 'FinishingGameMechanicAction', VOID, MechanicAction, [MechanicAction, TerminatedAction, NotValidateIfGameFinishing]);
|
|
@@ -1356,21 +1356,21 @@
|
|
|
1356
1356
|
tmp = types;
|
|
1357
1357
|
}
|
|
1358
1358
|
types = tmp;
|
|
1359
|
-
return $super === VOID ? this.
|
|
1359
|
+
return $super === VOID ? this.y9n(loggerKey, types) : $super.y9n.call(this, loggerKey, types);
|
|
1360
1360
|
}
|
|
1361
1361
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1362
1362
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput]);
|
|
1363
1363
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1364
1364
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1365
|
-
return $super === VOID ? this.
|
|
1365
|
+
return $super === VOID ? this.z9n(store, playerIds, includeBots) : $super.z9n.call(this, store, playerIds, includeBots);
|
|
1366
1366
|
}
|
|
1367
1367
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1368
1368
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1369
|
-
return $super === VOID ? this.
|
|
1369
|
+
return $super === VOID ? this.a9o(store, playerIds, includeBots) : $super.a9o.call(this, store, playerIds, includeBots);
|
|
1370
1370
|
}
|
|
1371
1371
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1372
1372
|
league = league === VOID ? null : league;
|
|
1373
|
-
return $super === VOID ? this.
|
|
1373
|
+
return $super === VOID ? this.b9o(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.b9o.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1374
1374
|
}
|
|
1375
1375
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1376
1376
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1383,7 +1383,7 @@
|
|
|
1383
1383
|
tmp = existingNicknames;
|
|
1384
1384
|
}
|
|
1385
1385
|
existingNicknames = tmp;
|
|
1386
|
-
return $super === VOID ? this.
|
|
1386
|
+
return $super === VOID ? this.d9o(playerId, existingNicknames) : $super.d9o.call(this, playerId, existingNicknames);
|
|
1387
1387
|
}
|
|
1388
1388
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1389
1389
|
initMetadataForCompanion(Companion_174);
|
|
@@ -50799,11 +50799,27 @@
|
|
|
50799
50799
|
return this.x94_1;
|
|
50800
50800
|
};
|
|
50801
50801
|
protoOf(PlayerConnectionChangedMechanicAction).p96 = function () {
|
|
50802
|
+
return this.originState.isClientDisconnectReason;
|
|
50803
|
+
};
|
|
50804
|
+
protoOf(PlayerConnectionChangedMechanicAction).q96 = function () {
|
|
50802
50805
|
var tmp;
|
|
50803
50806
|
if (this.state.isDisconnecting) {
|
|
50804
|
-
|
|
50807
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
50808
|
+
var tmp0 = this.causeState;
|
|
50809
|
+
var tmp$ret$1;
|
|
50810
|
+
$l$block: {
|
|
50811
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
50812
|
+
if (tmp0 == null) {
|
|
50813
|
+
var message = 'Required value was null.';
|
|
50814
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
50815
|
+
} else {
|
|
50816
|
+
tmp$ret$1 = tmp0;
|
|
50817
|
+
break $l$block;
|
|
50818
|
+
}
|
|
50819
|
+
}
|
|
50820
|
+
tmp = tmp$ret$1;
|
|
50805
50821
|
} else {
|
|
50806
|
-
tmp = this.state
|
|
50822
|
+
tmp = this.state;
|
|
50807
50823
|
}
|
|
50808
50824
|
return tmp;
|
|
50809
50825
|
};
|
|
@@ -50869,7 +50885,7 @@
|
|
|
50869
50885
|
protoOf(PlayerConnectionChangedMechanicAction).q66 = function () {
|
|
50870
50886
|
return this.x94_1;
|
|
50871
50887
|
};
|
|
50872
|
-
protoOf(PlayerConnectionChangedMechanicAction).
|
|
50888
|
+
protoOf(PlayerConnectionChangedMechanicAction).r96 = function (playerId, state, causeState, isNoneActivePlayers, reconnectUntilTime, aid) {
|
|
50873
50889
|
return new PlayerConnectionChangedMechanicAction(playerId, state, causeState, isNoneActivePlayers, reconnectUntilTime, aid);
|
|
50874
50890
|
};
|
|
50875
50891
|
protoOf(PlayerConnectionChangedMechanicAction).copy = function (playerId, state, causeState, isNoneActivePlayers, reconnectUntilTime, aid, $super) {
|
|
@@ -50879,7 +50895,7 @@
|
|
|
50879
50895
|
isNoneActivePlayers = isNoneActivePlayers === VOID ? this.isNoneActivePlayers : isNoneActivePlayers;
|
|
50880
50896
|
reconnectUntilTime = reconnectUntilTime === VOID ? this.reconnectUntilTime : reconnectUntilTime;
|
|
50881
50897
|
aid = aid === VOID ? this.x94_1 : aid;
|
|
50882
|
-
return $super === VOID ? this.
|
|
50898
|
+
return $super === VOID ? this.r96(playerId, state, causeState, isNoneActivePlayers, reconnectUntilTime, aid) : $super.r96.call(this, playerId, state, causeState, isNoneActivePlayers, reconnectUntilTime, aid);
|
|
50883
50899
|
};
|
|
50884
50900
|
protoOf(PlayerConnectionChangedMechanicAction).hashCode = function () {
|
|
50885
50901
|
var result = getStringHashCode(this.playerId);
|
|
@@ -50927,13 +50943,13 @@
|
|
|
50927
50943
|
protoOf(MessageMechanicAction).pe = function () {
|
|
50928
50944
|
return this.w94_1;
|
|
50929
50945
|
};
|
|
50930
|
-
protoOf(MessageMechanicAction).
|
|
50946
|
+
protoOf(MessageMechanicAction).s96 = function (message, aid) {
|
|
50931
50947
|
return new MessageMechanicAction(message, aid);
|
|
50932
50948
|
};
|
|
50933
50949
|
protoOf(MessageMechanicAction).copy = function (message, aid, $super) {
|
|
50934
50950
|
message = message === VOID ? this.message : message;
|
|
50935
50951
|
aid = aid === VOID ? this.w94_1 : aid;
|
|
50936
|
-
return $super === VOID ? this.
|
|
50952
|
+
return $super === VOID ? this.s96(message, aid) : $super.s96.call(this, message, aid);
|
|
50937
50953
|
};
|
|
50938
50954
|
protoOf(MessageMechanicAction).toString = function () {
|
|
50939
50955
|
return 'MessageMechanicAction(message=' + toString(this.message) + ', aid=' + this.w94_1 + ')';
|
|
@@ -51466,20 +51482,20 @@
|
|
|
51466
51482
|
}
|
|
51467
51483
|
function SceneEndedMechanicAction(sceneId) {
|
|
51468
51484
|
SceneLifecycleAction.call(this);
|
|
51469
|
-
this.
|
|
51485
|
+
this.t96_1 = sceneId;
|
|
51470
51486
|
}
|
|
51471
51487
|
protoOf(SceneEndedMechanicAction).toString = function () {
|
|
51472
|
-
return 'SceneEndedMechanicAction(sceneId=' + this.
|
|
51488
|
+
return 'SceneEndedMechanicAction(sceneId=' + this.t96_1 + ')';
|
|
51473
51489
|
};
|
|
51474
51490
|
protoOf(SceneEndedMechanicAction).hashCode = function () {
|
|
51475
|
-
return getStringHashCode(this.
|
|
51491
|
+
return getStringHashCode(this.t96_1);
|
|
51476
51492
|
};
|
|
51477
51493
|
protoOf(SceneEndedMechanicAction).equals = function (other) {
|
|
51478
51494
|
if (this === other)
|
|
51479
51495
|
return true;
|
|
51480
51496
|
if (!(other instanceof SceneEndedMechanicAction))
|
|
51481
51497
|
return false;
|
|
51482
|
-
if (!(this.
|
|
51498
|
+
if (!(this.t96_1 === other.t96_1))
|
|
51483
51499
|
return false;
|
|
51484
51500
|
return true;
|
|
51485
51501
|
};
|
|
@@ -51487,36 +51503,36 @@
|
|
|
51487
51503
|
}
|
|
51488
51504
|
function SceneStartedMechanicAction(sceneId) {
|
|
51489
51505
|
SceneLifecycleAction.call(this);
|
|
51490
|
-
this.
|
|
51506
|
+
this.u96_1 = sceneId;
|
|
51491
51507
|
}
|
|
51492
51508
|
protoOf(SceneStartedMechanicAction).toString = function () {
|
|
51493
|
-
return 'SceneStartedMechanicAction(sceneId=' + this.
|
|
51509
|
+
return 'SceneStartedMechanicAction(sceneId=' + this.u96_1 + ')';
|
|
51494
51510
|
};
|
|
51495
51511
|
protoOf(SceneStartedMechanicAction).hashCode = function () {
|
|
51496
|
-
return getStringHashCode(this.
|
|
51512
|
+
return getStringHashCode(this.u96_1);
|
|
51497
51513
|
};
|
|
51498
51514
|
protoOf(SceneStartedMechanicAction).equals = function (other) {
|
|
51499
51515
|
if (this === other)
|
|
51500
51516
|
return true;
|
|
51501
51517
|
if (!(other instanceof SceneStartedMechanicAction))
|
|
51502
51518
|
return false;
|
|
51503
|
-
if (!(this.
|
|
51519
|
+
if (!(this.u96_1 === other.u96_1))
|
|
51504
51520
|
return false;
|
|
51505
51521
|
return true;
|
|
51506
51522
|
};
|
|
51507
51523
|
function SceneActStartedMechanicAction(sceneId, actId, actData) {
|
|
51508
51524
|
SceneLifecycleAction.call(this);
|
|
51509
|
-
this.
|
|
51510
|
-
this.
|
|
51511
|
-
this.
|
|
51525
|
+
this.v96_1 = sceneId;
|
|
51526
|
+
this.w96_1 = actId;
|
|
51527
|
+
this.x96_1 = actData;
|
|
51512
51528
|
}
|
|
51513
51529
|
protoOf(SceneActStartedMechanicAction).toString = function () {
|
|
51514
|
-
return 'SceneActStartedMechanicAction(sceneId=' + this.
|
|
51530
|
+
return 'SceneActStartedMechanicAction(sceneId=' + this.v96_1 + ', actId=' + this.w96_1 + ', actData=' + toString_0(this.x96_1) + ')';
|
|
51515
51531
|
};
|
|
51516
51532
|
protoOf(SceneActStartedMechanicAction).hashCode = function () {
|
|
51517
|
-
var result = getStringHashCode(this.
|
|
51518
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
51519
|
-
result = imul(result, 31) + (this.
|
|
51533
|
+
var result = getStringHashCode(this.v96_1);
|
|
51534
|
+
result = imul(result, 31) + getStringHashCode(this.w96_1) | 0;
|
|
51535
|
+
result = imul(result, 31) + (this.x96_1 == null ? 0 : hashCode(this.x96_1)) | 0;
|
|
51520
51536
|
return result;
|
|
51521
51537
|
};
|
|
51522
51538
|
protoOf(SceneActStartedMechanicAction).equals = function (other) {
|
|
@@ -51524,70 +51540,70 @@
|
|
|
51524
51540
|
return true;
|
|
51525
51541
|
if (!(other instanceof SceneActStartedMechanicAction))
|
|
51526
51542
|
return false;
|
|
51527
|
-
if (!(this.u96_1 === other.u96_1))
|
|
51528
|
-
return false;
|
|
51529
51543
|
if (!(this.v96_1 === other.v96_1))
|
|
51530
51544
|
return false;
|
|
51531
|
-
if (!
|
|
51545
|
+
if (!(this.w96_1 === other.w96_1))
|
|
51546
|
+
return false;
|
|
51547
|
+
if (!equals(this.x96_1, other.x96_1))
|
|
51532
51548
|
return false;
|
|
51533
51549
|
return true;
|
|
51534
51550
|
};
|
|
51535
51551
|
function SceneActEndedMechanicAction(actId) {
|
|
51536
51552
|
SceneLifecycleAction.call(this);
|
|
51537
|
-
this.
|
|
51553
|
+
this.y96_1 = actId;
|
|
51538
51554
|
}
|
|
51539
51555
|
protoOf(SceneActEndedMechanicAction).toString = function () {
|
|
51540
|
-
return 'SceneActEndedMechanicAction(actId=' + this.
|
|
51556
|
+
return 'SceneActEndedMechanicAction(actId=' + this.y96_1 + ')';
|
|
51541
51557
|
};
|
|
51542
51558
|
protoOf(SceneActEndedMechanicAction).hashCode = function () {
|
|
51543
|
-
return getStringHashCode(this.
|
|
51559
|
+
return getStringHashCode(this.y96_1);
|
|
51544
51560
|
};
|
|
51545
51561
|
protoOf(SceneActEndedMechanicAction).equals = function (other) {
|
|
51546
51562
|
if (this === other)
|
|
51547
51563
|
return true;
|
|
51548
51564
|
if (!(other instanceof SceneActEndedMechanicAction))
|
|
51549
51565
|
return false;
|
|
51550
|
-
if (!(this.
|
|
51566
|
+
if (!(this.y96_1 === other.y96_1))
|
|
51551
51567
|
return false;
|
|
51552
51568
|
return true;
|
|
51553
51569
|
};
|
|
51554
51570
|
function _get_playerTurnInteractor__lczh1o($this) {
|
|
51555
|
-
var tmp0 = $this.
|
|
51571
|
+
var tmp0 = $this.c97_1;
|
|
51556
51572
|
var tmp = KProperty1;
|
|
51557
51573
|
// Inline function 'kotlin.getValue' call
|
|
51558
51574
|
getPropertyCallableRef('playerTurnInteractor', 1, tmp, BotGameStoreContract$_get_playerTurnInteractor_$ref_2a4gib_0(), null);
|
|
51559
51575
|
return tmp0.x();
|
|
51560
51576
|
}
|
|
51561
51577
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
51562
|
-
var tmp0 = $this.
|
|
51578
|
+
var tmp0 = $this.d97_1;
|
|
51563
51579
|
var tmp = KProperty1;
|
|
51564
51580
|
// Inline function 'kotlin.getValue' call
|
|
51565
51581
|
getPropertyCallableRef('playerAnswerInteractor', 1, tmp, BotGameStoreContract$_get_playerAnswerInteractor_$ref_aqlhf8_0(), null);
|
|
51566
51582
|
return tmp0.x();
|
|
51567
51583
|
}
|
|
51568
51584
|
function _get_botConfig__cpaxzc($this) {
|
|
51569
|
-
var tmp0 = $this.
|
|
51585
|
+
var tmp0 = $this.e97_1;
|
|
51570
51586
|
var tmp = KProperty1;
|
|
51571
51587
|
// Inline function 'kotlin.getValue' call
|
|
51572
51588
|
getPropertyCallableRef('botConfig', 1, tmp, BotGameStoreContract$_get_botConfig_$ref_qriotp_0(), null);
|
|
51573
51589
|
return tmp0.x();
|
|
51574
51590
|
}
|
|
51575
51591
|
function _get_asyncProvider__jbpyhw_0($this) {
|
|
51576
|
-
var tmp0 = $this.
|
|
51592
|
+
var tmp0 = $this.f97_1;
|
|
51577
51593
|
var tmp = KProperty1;
|
|
51578
51594
|
// Inline function 'kotlin.getValue' call
|
|
51579
51595
|
getPropertyCallableRef('asyncProvider', 1, tmp, BotGameStoreContract$_get_asyncProvider_$ref_jml095_0(), null);
|
|
51580
51596
|
return tmp0.x();
|
|
51581
51597
|
}
|
|
51582
51598
|
function _get_conversationCache__95j15a($this) {
|
|
51583
|
-
var tmp0 = $this.
|
|
51599
|
+
var tmp0 = $this.g97_1;
|
|
51584
51600
|
var tmp = KProperty1;
|
|
51585
51601
|
// Inline function 'kotlin.getValue' call
|
|
51586
51602
|
getPropertyCallableRef('conversationCache', 1, tmp, BotGameStoreContract$_get_conversationCache_$ref_plkavr_0(), null);
|
|
51587
51603
|
return tmp0.x();
|
|
51588
51604
|
}
|
|
51589
51605
|
function _get_botChatInteractor__17f3on($this) {
|
|
51590
|
-
var tmp0 = $this.
|
|
51606
|
+
var tmp0 = $this.h97_1;
|
|
51591
51607
|
var tmp = KProperty1;
|
|
51592
51608
|
// Inline function 'kotlin.getValue' call
|
|
51593
51609
|
getPropertyCallableRef('botChatInteractor', 1, tmp, BotGameStoreContract$_get_botChatInteractor_$ref_7l4rb6_0(), null);
|
|
@@ -51656,10 +51672,10 @@
|
|
|
51656
51672
|
function BotGameStoreContract$_get_middlewares_$lambda_3w52fv(this$0) {
|
|
51657
51673
|
return function (playerId) {
|
|
51658
51674
|
var tmp;
|
|
51659
|
-
var tmp0_safe_receiver = this$0.
|
|
51675
|
+
var tmp0_safe_receiver = this$0.z96_1;
|
|
51660
51676
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1(playerId);
|
|
51661
51677
|
if (tmp1_elvis_lhs == null ? true : tmp1_elvis_lhs) {
|
|
51662
|
-
var tmp2_safe_receiver = this$0.
|
|
51678
|
+
var tmp2_safe_receiver = this$0.a97_1;
|
|
51663
51679
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u1(playerId);
|
|
51664
51680
|
tmp = !(tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs);
|
|
51665
51681
|
} else {
|
|
@@ -51672,9 +51688,9 @@
|
|
|
51672
51688
|
enableBotForPlayersIds = enableBotForPlayersIds === VOID ? null : enableBotForPlayersIds;
|
|
51673
51689
|
disableBotForPlayersIds = disableBotForPlayersIds === VOID ? null : disableBotForPlayersIds;
|
|
51674
51690
|
mergeTimers = mergeTimers === VOID ? false : mergeTimers;
|
|
51675
|
-
this.
|
|
51676
|
-
this.
|
|
51677
|
-
this.
|
|
51691
|
+
this.z96_1 = enableBotForPlayersIds;
|
|
51692
|
+
this.a97_1 = disableBotForPlayersIds;
|
|
51693
|
+
this.b97_1 = mergeTimers;
|
|
51678
51694
|
var tmp = this;
|
|
51679
51695
|
// Inline function 'org.kodein.di.instance' call
|
|
51680
51696
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51682,7 +51698,7 @@
|
|
|
51682
51698
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
51683
51699
|
var tmp_1 = Instance(di, tmp$ret$0, null);
|
|
51684
51700
|
var tmp_2 = KProperty1;
|
|
51685
|
-
tmp.
|
|
51701
|
+
tmp.c97_1 = tmp_1.w64(this, getPropertyCallableRef('playerTurnInteractor', 1, tmp_2, BotGameStoreContract$_get_playerTurnInteractor_$ref_2a4gib(), null));
|
|
51686
51702
|
var tmp_3 = this;
|
|
51687
51703
|
// Inline function 'org.kodein.di.instance' call
|
|
51688
51704
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51690,7 +51706,7 @@
|
|
|
51690
51706
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
51691
51707
|
var tmp_5 = Instance(di, tmp$ret$2, null);
|
|
51692
51708
|
var tmp_6 = KProperty1;
|
|
51693
|
-
tmp_3.
|
|
51709
|
+
tmp_3.d97_1 = tmp_5.w64(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_6, BotGameStoreContract$_get_playerAnswerInteractor_$ref_aqlhf8(), null));
|
|
51694
51710
|
var tmp_7 = this;
|
|
51695
51711
|
// Inline function 'org.kodein.di.instance' call
|
|
51696
51712
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51698,7 +51714,7 @@
|
|
|
51698
51714
|
var tmp$ret$4 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
51699
51715
|
var tmp_9 = Instance(di, tmp$ret$4, null);
|
|
51700
51716
|
var tmp_10 = KProperty1;
|
|
51701
|
-
tmp_7.
|
|
51717
|
+
tmp_7.e97_1 = tmp_9.w64(this, getPropertyCallableRef('botConfig', 1, tmp_10, BotGameStoreContract$_get_botConfig_$ref_qriotp(), null));
|
|
51702
51718
|
var tmp_11 = this;
|
|
51703
51719
|
// Inline function 'org.kodein.di.instance' call
|
|
51704
51720
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51706,7 +51722,7 @@
|
|
|
51706
51722
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
51707
51723
|
var tmp_13 = Instance(di, tmp$ret$6, null);
|
|
51708
51724
|
var tmp_14 = KProperty1;
|
|
51709
|
-
tmp_11.
|
|
51725
|
+
tmp_11.f97_1 = tmp_13.w64(this, getPropertyCallableRef('asyncProvider', 1, tmp_14, BotGameStoreContract$_get_asyncProvider_$ref_jml095(), null));
|
|
51710
51726
|
var tmp_15 = this;
|
|
51711
51727
|
// Inline function 'org.kodein.di.instance' call
|
|
51712
51728
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51714,7 +51730,7 @@
|
|
|
51714
51730
|
var tmp$ret$8 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
51715
51731
|
var tmp_17 = Instance(di, tmp$ret$8, null);
|
|
51716
51732
|
var tmp_18 = KProperty1;
|
|
51717
|
-
tmp_15.
|
|
51733
|
+
tmp_15.g97_1 = tmp_17.w64(this, getPropertyCallableRef('conversationCache', 1, tmp_18, BotGameStoreContract$_get_conversationCache_$ref_plkavr(), null));
|
|
51718
51734
|
var tmp_19 = this;
|
|
51719
51735
|
// Inline function 'org.kodein.di.instanceOrNull' call
|
|
51720
51736
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51722,12 +51738,12 @@
|
|
|
51722
51738
|
var tmp$ret$10 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
51723
51739
|
var tmp_21 = InstanceOrNull(di, tmp$ret$10, null);
|
|
51724
51740
|
var tmp_22 = KProperty1;
|
|
51725
|
-
tmp_19.
|
|
51741
|
+
tmp_19.h97_1 = tmp_21.w64(this, getPropertyCallableRef('botChatInteractor', 1, tmp_22, BotGameStoreContract$_get_botChatInteractor_$ref_7l4rb6(), null));
|
|
51726
51742
|
}
|
|
51727
|
-
protoOf(BotGameStoreContract).
|
|
51743
|
+
protoOf(BotGameStoreContract).i97 = function () {
|
|
51728
51744
|
return emptyList();
|
|
51729
51745
|
};
|
|
51730
|
-
protoOf(BotGameStoreContract).
|
|
51746
|
+
protoOf(BotGameStoreContract).j97 = function () {
|
|
51731
51747
|
var isEnableBotForPlayer = BotGameStoreContract$_get_middlewares_$lambda_3w52fv(this);
|
|
51732
51748
|
// Inline function 'kotlin.collections.buildList' call
|
|
51733
51749
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
@@ -51735,7 +51751,7 @@
|
|
|
51735
51751
|
var this_0 = ArrayList_init_$Create$_0();
|
|
51736
51752
|
var tmp0_playerTurnInteractor = _get_playerTurnInteractor__lczh1o(this);
|
|
51737
51753
|
var tmp1_botConfig = _get_botConfig__cpaxzc(this);
|
|
51738
|
-
var tmp2_mergeTimers = this.
|
|
51754
|
+
var tmp2_mergeTimers = this.b97_1;
|
|
51739
51755
|
this_0.j(playerTurnTimerStartMiddleware(tmp1_botConfig, tmp0_playerTurnInteractor, isEnableBotForPlayer, tmp2_mergeTimers));
|
|
51740
51756
|
this_0.j(playerTurnTimerStopMiddleware(isEnableBotForPlayer));
|
|
51741
51757
|
this_0.j(botLogicMiddleware(_get_playerAnswerInteractor__msggz1(this), _get_botConfig__cpaxzc(this), _get_asyncProvider__jbpyhw_0(this)));
|
|
@@ -51753,35 +51769,35 @@
|
|
|
51753
51769
|
return this_0.e3();
|
|
51754
51770
|
};
|
|
51755
51771
|
function _get_coreConfig__mqagba($this) {
|
|
51756
|
-
var tmp0 = $this.
|
|
51772
|
+
var tmp0 = $this.m97_1;
|
|
51757
51773
|
var tmp = KProperty1;
|
|
51758
51774
|
// Inline function 'kotlin.getValue' call
|
|
51759
51775
|
getPropertyCallableRef('coreConfig', 1, tmp, FileLoggerStoreContract$_get_coreConfig_$ref_k46wui_0(), null);
|
|
51760
51776
|
return tmp0.x();
|
|
51761
51777
|
}
|
|
51762
51778
|
function _get_fileSystem__siywv4($this) {
|
|
51763
|
-
var tmp0 = $this.
|
|
51779
|
+
var tmp0 = $this.n97_1;
|
|
51764
51780
|
var tmp = KProperty1;
|
|
51765
51781
|
// Inline function 'kotlin.getValue' call
|
|
51766
51782
|
getPropertyCallableRef('fileSystem', 1, tmp, FileLoggerStoreContract$_get_fileSystem_$ref_xs2hec_0(), null);
|
|
51767
51783
|
return tmp0.x();
|
|
51768
51784
|
}
|
|
51769
51785
|
function _get_asyncProvider__jbpyhw_1($this) {
|
|
51770
|
-
var tmp0 = $this.
|
|
51786
|
+
var tmp0 = $this.o97_1;
|
|
51771
51787
|
var tmp = KProperty1;
|
|
51772
51788
|
// Inline function 'kotlin.getValue' call
|
|
51773
51789
|
getPropertyCallableRef('asyncProvider', 1, tmp, FileLoggerStoreContract$_get_asyncProvider_$ref_ace63a_0(), null);
|
|
51774
51790
|
return tmp0.x();
|
|
51775
51791
|
}
|
|
51776
51792
|
function _get_loggerFactory__q2kddj($this) {
|
|
51777
|
-
var tmp0 = $this.
|
|
51793
|
+
var tmp0 = $this.p97_1;
|
|
51778
51794
|
var tmp = KProperty1;
|
|
51779
51795
|
// Inline function 'kotlin.getValue' call
|
|
51780
51796
|
getPropertyCallableRef('loggerFactory', 1, tmp, FileLoggerStoreContract$_get_loggerFactory_$ref_ue4jhl_0(), null);
|
|
51781
51797
|
return tmp0.x();
|
|
51782
51798
|
}
|
|
51783
51799
|
function _get_fileLoggerOutput__qasyxu($this) {
|
|
51784
|
-
var tmp0 = $this.
|
|
51800
|
+
var tmp0 = $this.q97_1;
|
|
51785
51801
|
var tmp = KProperty1;
|
|
51786
51802
|
// Inline function 'kotlin.getValue' call
|
|
51787
51803
|
getPropertyCallableRef('fileLoggerOutput', 1, tmp, FileLoggerStoreContract$_get_fileLoggerOutput_$ref_abxrqi_0(), null);
|
|
@@ -51839,8 +51855,8 @@
|
|
|
51839
51855
|
}
|
|
51840
51856
|
function FileLoggerStoreContract(di, currentPlayerId, loggerKeyMapper) {
|
|
51841
51857
|
currentPlayerId = currentPlayerId === VOID ? null : currentPlayerId;
|
|
51842
|
-
this.
|
|
51843
|
-
this.
|
|
51858
|
+
this.k97_1 = currentPlayerId;
|
|
51859
|
+
this.l97_1 = loggerKeyMapper;
|
|
51844
51860
|
var tmp = this;
|
|
51845
51861
|
// Inline function 'org.kodein.di.instance' call
|
|
51846
51862
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51848,7 +51864,7 @@
|
|
|
51848
51864
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
51849
51865
|
var tmp_1 = Instance(di, tmp$ret$0, null);
|
|
51850
51866
|
var tmp_2 = KProperty1;
|
|
51851
|
-
tmp.
|
|
51867
|
+
tmp.m97_1 = tmp_1.w64(this, getPropertyCallableRef('coreConfig', 1, tmp_2, FileLoggerStoreContract$_get_coreConfig_$ref_k46wui(), null));
|
|
51852
51868
|
var tmp_3 = this;
|
|
51853
51869
|
// Inline function 'org.kodein.di.instance' call
|
|
51854
51870
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51856,7 +51872,7 @@
|
|
|
51856
51872
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
51857
51873
|
var tmp_5 = Instance(di, tmp$ret$2, null);
|
|
51858
51874
|
var tmp_6 = KProperty1;
|
|
51859
|
-
tmp_3.
|
|
51875
|
+
tmp_3.n97_1 = tmp_5.w64(this, getPropertyCallableRef('fileSystem', 1, tmp_6, FileLoggerStoreContract$_get_fileSystem_$ref_xs2hec(), null));
|
|
51860
51876
|
var tmp_7 = this;
|
|
51861
51877
|
// Inline function 'org.kodein.di.instance' call
|
|
51862
51878
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51864,7 +51880,7 @@
|
|
|
51864
51880
|
var tmp$ret$4 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
51865
51881
|
var tmp_9 = Instance(di, tmp$ret$4, null);
|
|
51866
51882
|
var tmp_10 = KProperty1;
|
|
51867
|
-
tmp_7.
|
|
51883
|
+
tmp_7.o97_1 = tmp_9.w64(this, getPropertyCallableRef('asyncProvider', 1, tmp_10, FileLoggerStoreContract$_get_asyncProvider_$ref_ace63a(), null));
|
|
51868
51884
|
var tmp_11 = this;
|
|
51869
51885
|
// Inline function 'org.kodein.di.instance' call
|
|
51870
51886
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51872,7 +51888,7 @@
|
|
|
51872
51888
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
51873
51889
|
var tmp_13 = Instance(di, tmp$ret$6, null);
|
|
51874
51890
|
var tmp_14 = KProperty1;
|
|
51875
|
-
tmp_11.
|
|
51891
|
+
tmp_11.p97_1 = tmp_13.w64(this, getPropertyCallableRef('loggerFactory', 1, tmp_14, FileLoggerStoreContract$_get_loggerFactory_$ref_ue4jhl(), null));
|
|
51876
51892
|
var tmp_15 = this;
|
|
51877
51893
|
// Inline function 'org.kodein.di.instanceOrNull' call
|
|
51878
51894
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -51880,15 +51896,15 @@
|
|
|
51880
51896
|
var tmp$ret$8 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
51881
51897
|
var tmp_17 = InstanceOrNull(di, tmp$ret$8, null);
|
|
51882
51898
|
var tmp_18 = KProperty1;
|
|
51883
|
-
tmp_15.
|
|
51899
|
+
tmp_15.q97_1 = tmp_17.w64(this, getPropertyCallableRef('fileLoggerOutput', 1, tmp_18, FileLoggerStoreContract$_get_fileLoggerOutput_$ref_abxrqi(), null));
|
|
51884
51900
|
}
|
|
51885
|
-
protoOf(FileLoggerStoreContract).
|
|
51901
|
+
protoOf(FileLoggerStoreContract).i97 = function () {
|
|
51886
51902
|
return emptyList();
|
|
51887
51903
|
};
|
|
51888
|
-
protoOf(FileLoggerStoreContract).
|
|
51904
|
+
protoOf(FileLoggerStoreContract).j97 = function () {
|
|
51889
51905
|
var tmp;
|
|
51890
51906
|
if (_get_coreConfig__mqagba(this).fileLogsEnabled && !(_get_fileLoggerOutput__qasyxu(this) == null)) {
|
|
51891
|
-
var tmp0_currentPlayerId = this.
|
|
51907
|
+
var tmp0_currentPlayerId = this.k97_1;
|
|
51892
51908
|
var tmp1_asyncProvider = _get_asyncProvider__jbpyhw_1(this);
|
|
51893
51909
|
var tmp2_loggerFactory = _get_loggerFactory__q2kddj(this);
|
|
51894
51910
|
var tmp0 = _get_fileLoggerOutput__qasyxu(this);
|
|
@@ -51904,7 +51920,7 @@
|
|
|
51904
51920
|
}
|
|
51905
51921
|
}
|
|
51906
51922
|
var tmp3_loggerOutput = tmp$ret$1;
|
|
51907
|
-
var tmp4_loggerKeyMapper = this.
|
|
51923
|
+
var tmp4_loggerKeyMapper = this.l97_1;
|
|
51908
51924
|
tmp = fileLoggerByGameIdMiddleware(tmp0_currentPlayerId, tmp2_loggerFactory, tmp1_asyncProvider, tmp3_loggerOutput, tmp4_loggerKeyMapper);
|
|
51909
51925
|
} else {
|
|
51910
51926
|
tmp = null;
|
|
@@ -51922,70 +51938,70 @@
|
|
|
51922
51938
|
return listOfNotNull([tmp_0, tmp_1]);
|
|
51923
51939
|
};
|
|
51924
51940
|
function _get_logger__rkp4sl_0($this) {
|
|
51925
|
-
var tmp0 = $this.
|
|
51941
|
+
var tmp0 = $this.u97_1;
|
|
51926
51942
|
var tmp = KProperty1;
|
|
51927
51943
|
// Inline function 'kotlin.getValue' call
|
|
51928
51944
|
getPropertyCallableRef('logger', 1, tmp, GameMechanicStoreContract$_get_logger_$ref_lmegjz_0(), null);
|
|
51929
51945
|
return tmp0.x();
|
|
51930
51946
|
}
|
|
51931
51947
|
function _get_sceneFactory__scjsbx($this) {
|
|
51932
|
-
var tmp0 = $this.
|
|
51948
|
+
var tmp0 = $this.v97_1;
|
|
51933
51949
|
var tmp = KProperty1;
|
|
51934
51950
|
// Inline function 'kotlin.getValue' call
|
|
51935
51951
|
getPropertyCallableRef('sceneFactory', 1, tmp, GameMechanicStoreContract$_get_sceneFactory_$ref_2v9noj_0(), null);
|
|
51936
51952
|
return tmp0.x();
|
|
51937
51953
|
}
|
|
51938
51954
|
function _get_sceneRouter__ee4ncs($this) {
|
|
51939
|
-
var tmp0 = $this.
|
|
51955
|
+
var tmp0 = $this.w97_1;
|
|
51940
51956
|
var tmp = KProperty1;
|
|
51941
51957
|
// Inline function 'kotlin.getValue' call
|
|
51942
51958
|
getPropertyCallableRef('sceneRouter', 1, tmp, GameMechanicStoreContract$_get_sceneRouter_$ref_xrjha4_0(), null);
|
|
51943
51959
|
return tmp0.x();
|
|
51944
51960
|
}
|
|
51945
51961
|
function _get_gameLogicInteractor__895s7o($this) {
|
|
51946
|
-
var tmp0 = $this.
|
|
51962
|
+
var tmp0 = $this.x97_1;
|
|
51947
51963
|
var tmp = KProperty1;
|
|
51948
51964
|
// Inline function 'kotlin.getValue' call
|
|
51949
51965
|
getPropertyCallableRef('gameLogicInteractor', 1, tmp, GameMechanicStoreContract$_get_gameLogicInteractor_$ref_7lr5h0_0(), null);
|
|
51950
51966
|
return tmp0.x();
|
|
51951
51967
|
}
|
|
51952
51968
|
function _get_idsProvider__fnfajc($this) {
|
|
51953
|
-
var tmp0 = $this.
|
|
51969
|
+
var tmp0 = $this.y97_1;
|
|
51954
51970
|
var tmp = KProperty1;
|
|
51955
51971
|
// Inline function 'kotlin.getValue' call
|
|
51956
51972
|
getPropertyCallableRef('idsProvider', 1, tmp, GameMechanicStoreContract$_get_idsProvider_$ref_2swsy8_0(), null);
|
|
51957
51973
|
return tmp0.x();
|
|
51958
51974
|
}
|
|
51959
51975
|
function _get_engineLogicConfig__l11qpf($this) {
|
|
51960
|
-
var tmp0 = $this.
|
|
51976
|
+
var tmp0 = $this.z97_1;
|
|
51961
51977
|
var tmp = KProperty1;
|
|
51962
51978
|
// Inline function 'kotlin.getValue' call
|
|
51963
51979
|
getPropertyCallableRef('engineLogicConfig', 1, tmp, GameMechanicStoreContract$_get_engineLogicConfig_$ref_gaushn_0(), null);
|
|
51964
51980
|
return tmp0.x();
|
|
51965
51981
|
}
|
|
51966
51982
|
function _get_sceneValidationInteractor__iffomr($this) {
|
|
51967
|
-
var tmp0 = $this.
|
|
51983
|
+
var tmp0 = $this.a98_1;
|
|
51968
51984
|
var tmp = KProperty1;
|
|
51969
51985
|
// Inline function 'kotlin.getValue' call
|
|
51970
51986
|
getPropertyCallableRef('sceneValidationInteractor', 1, tmp, GameMechanicStoreContract$_get_sceneValidationInteractor_$ref_7hx9kr_0(), null);
|
|
51971
51987
|
return tmp0.x();
|
|
51972
51988
|
}
|
|
51973
51989
|
function _get_gameLifecycleInteractor__du3q5c($this) {
|
|
51974
|
-
var tmp0 = $this.
|
|
51990
|
+
var tmp0 = $this.b98_1;
|
|
51975
51991
|
var tmp = KProperty1;
|
|
51976
51992
|
// Inline function 'kotlin.getValue' call
|
|
51977
51993
|
getPropertyCallableRef('gameLifecycleInteractor', 1, tmp, GameMechanicStoreContract$_get_gameLifecycleInteractor_$ref_561es8_0(), null);
|
|
51978
51994
|
return tmp0.x();
|
|
51979
51995
|
}
|
|
51980
51996
|
function _get_asyncProvider__jbpyhw_2($this) {
|
|
51981
|
-
var tmp0 = $this.
|
|
51997
|
+
var tmp0 = $this.c98_1;
|
|
51982
51998
|
var tmp = KProperty1;
|
|
51983
51999
|
// Inline function 'kotlin.getValue' call
|
|
51984
52000
|
getPropertyCallableRef('asyncProvider', 1, tmp, GameMechanicStoreContract$_get_asyncProvider_$ref_7q5q24_0(), null);
|
|
51985
52001
|
return tmp0.x();
|
|
51986
52002
|
}
|
|
51987
52003
|
function _get_mechanicReducers__ipi0tc($this) {
|
|
51988
|
-
var tmp0 = $this.
|
|
52004
|
+
var tmp0 = $this.d98_1;
|
|
51989
52005
|
var tmp = KProperty1;
|
|
51990
52006
|
// Inline function 'kotlin.getValue' call
|
|
51991
52007
|
getPropertyCallableRef('mechanicReducers', 1, tmp, GameMechanicStoreContract$_get_mechanicReducers_$ref_cuxqhi_0(), null);
|
|
@@ -52093,9 +52109,9 @@
|
|
|
52093
52109
|
}
|
|
52094
52110
|
function GameMechanicStoreContract(di, currentPlayerId, resetPlayerTurnByMechanicActions, playerTurnStoreContract) {
|
|
52095
52111
|
playerTurnStoreContract = playerTurnStoreContract === VOID ? new PlayerTurnStoreContract(di, resetPlayerTurnByMechanicActions, currentPlayerId) : playerTurnStoreContract;
|
|
52096
|
-
this.
|
|
52097
|
-
this.
|
|
52098
|
-
this.
|
|
52112
|
+
this.r97_1 = currentPlayerId;
|
|
52113
|
+
this.s97_1 = resetPlayerTurnByMechanicActions;
|
|
52114
|
+
this.t97_1 = playerTurnStoreContract;
|
|
52099
52115
|
var tmp = this;
|
|
52100
52116
|
// Inline function 'org.kodein.di.instance' call
|
|
52101
52117
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52103,7 +52119,7 @@
|
|
|
52103
52119
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
52104
52120
|
var tmp_1 = Instance(di, tmp$ret$0, null);
|
|
52105
52121
|
var tmp_2 = KProperty1;
|
|
52106
|
-
tmp.
|
|
52122
|
+
tmp.u97_1 = tmp_1.w64(this, getPropertyCallableRef('logger', 1, tmp_2, GameMechanicStoreContract$_get_logger_$ref_lmegjz(), null));
|
|
52107
52123
|
var tmp_3 = this;
|
|
52108
52124
|
// Inline function 'org.kodein.di.instance' call
|
|
52109
52125
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52111,7 +52127,7 @@
|
|
|
52111
52127
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
52112
52128
|
var tmp_5 = Instance(di, tmp$ret$2, null);
|
|
52113
52129
|
var tmp_6 = KProperty1;
|
|
52114
|
-
tmp_3.
|
|
52130
|
+
tmp_3.v97_1 = tmp_5.w64(this, getPropertyCallableRef('sceneFactory', 1, tmp_6, GameMechanicStoreContract$_get_sceneFactory_$ref_2v9noj(), null));
|
|
52115
52131
|
var tmp_7 = this;
|
|
52116
52132
|
// Inline function 'org.kodein.di.instance' call
|
|
52117
52133
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52119,7 +52135,7 @@
|
|
|
52119
52135
|
var tmp$ret$4 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
52120
52136
|
var tmp_9 = Instance(di, tmp$ret$4, null);
|
|
52121
52137
|
var tmp_10 = KProperty1;
|
|
52122
|
-
tmp_7.
|
|
52138
|
+
tmp_7.w97_1 = tmp_9.w64(this, getPropertyCallableRef('sceneRouter', 1, tmp_10, GameMechanicStoreContract$_get_sceneRouter_$ref_xrjha4(), null));
|
|
52123
52139
|
var tmp_11 = this;
|
|
52124
52140
|
// Inline function 'org.kodein.di.instance' call
|
|
52125
52141
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52127,7 +52143,7 @@
|
|
|
52127
52143
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
52128
52144
|
var tmp_13 = Instance(di, tmp$ret$6, null);
|
|
52129
52145
|
var tmp_14 = KProperty1;
|
|
52130
|
-
tmp_11.
|
|
52146
|
+
tmp_11.x97_1 = tmp_13.w64(this, getPropertyCallableRef('gameLogicInteractor', 1, tmp_14, GameMechanicStoreContract$_get_gameLogicInteractor_$ref_7lr5h0(), null));
|
|
52131
52147
|
var tmp_15 = this;
|
|
52132
52148
|
// Inline function 'org.kodein.di.instance' call
|
|
52133
52149
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52135,7 +52151,7 @@
|
|
|
52135
52151
|
var tmp$ret$8 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
52136
52152
|
var tmp_17 = Instance(di, tmp$ret$8, null);
|
|
52137
52153
|
var tmp_18 = KProperty1;
|
|
52138
|
-
tmp_15.
|
|
52154
|
+
tmp_15.y97_1 = tmp_17.w64(this, getPropertyCallableRef('idsProvider', 1, tmp_18, GameMechanicStoreContract$_get_idsProvider_$ref_2swsy8(), null));
|
|
52139
52155
|
var tmp_19 = this;
|
|
52140
52156
|
// Inline function 'org.kodein.di.instance' call
|
|
52141
52157
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52143,7 +52159,7 @@
|
|
|
52143
52159
|
var tmp$ret$10 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
52144
52160
|
var tmp_21 = Instance(di, tmp$ret$10, null);
|
|
52145
52161
|
var tmp_22 = KProperty1;
|
|
52146
|
-
tmp_19.
|
|
52162
|
+
tmp_19.z97_1 = tmp_21.w64(this, getPropertyCallableRef('engineLogicConfig', 1, tmp_22, GameMechanicStoreContract$_get_engineLogicConfig_$ref_gaushn(), null));
|
|
52147
52163
|
var tmp_23 = this;
|
|
52148
52164
|
// Inline function 'org.kodein.di.instance' call
|
|
52149
52165
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52151,7 +52167,7 @@
|
|
|
52151
52167
|
var tmp$ret$12 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
52152
52168
|
var tmp_25 = Instance(di, tmp$ret$12, null);
|
|
52153
52169
|
var tmp_26 = KProperty1;
|
|
52154
|
-
tmp_23.
|
|
52170
|
+
tmp_23.a98_1 = tmp_25.w64(this, getPropertyCallableRef('sceneValidationInteractor', 1, tmp_26, GameMechanicStoreContract$_get_sceneValidationInteractor_$ref_7hx9kr(), null));
|
|
52155
52171
|
var tmp_27 = this;
|
|
52156
52172
|
// Inline function 'org.kodein.di.instance' call
|
|
52157
52173
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52159,7 +52175,7 @@
|
|
|
52159
52175
|
var tmp$ret$14 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE();
|
|
52160
52176
|
var tmp_29 = Instance(di, tmp$ret$14, null);
|
|
52161
52177
|
var tmp_30 = KProperty1;
|
|
52162
|
-
tmp_27.
|
|
52178
|
+
tmp_27.b98_1 = tmp_29.w64(this, getPropertyCallableRef('gameLifecycleInteractor', 1, tmp_30, GameMechanicStoreContract$_get_gameLifecycleInteractor_$ref_561es8(), null));
|
|
52163
52179
|
var tmp_31 = this;
|
|
52164
52180
|
// Inline function 'org.kodein.di.instance' call
|
|
52165
52181
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52167,7 +52183,7 @@
|
|
|
52167
52183
|
var tmp$ret$16 = isInterface(tmp_32, TypeToken) ? tmp_32 : THROW_CCE();
|
|
52168
52184
|
var tmp_33 = Instance(di, tmp$ret$16, null);
|
|
52169
52185
|
var tmp_34 = KProperty1;
|
|
52170
|
-
tmp_31.
|
|
52186
|
+
tmp_31.c98_1 = tmp_33.w64(this, getPropertyCallableRef('asyncProvider', 1, tmp_34, GameMechanicStoreContract$_get_asyncProvider_$ref_7q5q24(), null));
|
|
52171
52187
|
var tmp_35 = this;
|
|
52172
52188
|
// Inline function 'org.kodein.di.instance' call
|
|
52173
52189
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52175,12 +52191,12 @@
|
|
|
52175
52191
|
var tmp$ret$18 = isInterface(tmp_36, TypeToken) ? tmp_36 : THROW_CCE();
|
|
52176
52192
|
var tmp_37 = Instance(di, tmp$ret$18, null);
|
|
52177
52193
|
var tmp_38 = KProperty1;
|
|
52178
|
-
tmp_35.
|
|
52194
|
+
tmp_35.d98_1 = tmp_37.w64(this, getPropertyCallableRef('mechanicReducers', 1, tmp_38, GameMechanicStoreContract$_get_mechanicReducers_$ref_cuxqhi(), null));
|
|
52179
52195
|
}
|
|
52180
|
-
protoOf(GameMechanicStoreContract).h97 = function () {
|
|
52181
|
-
return plus_0(plus(listOf(_get_mechanicReducers__ipi0tc(this).n98()), this.s97_1.h97()), fromClientReducer());
|
|
52182
|
-
};
|
|
52183
52196
|
protoOf(GameMechanicStoreContract).i97 = function () {
|
|
52197
|
+
return plus_0(plus(listOf(_get_mechanicReducers__ipi0tc(this).o98()), this.t97_1.i97()), fromClientReducer());
|
|
52198
|
+
};
|
|
52199
|
+
protoOf(GameMechanicStoreContract).j97 = function () {
|
|
52184
52200
|
var tmp = sceneLifecycleMiddleware(_get_sceneFactory__scjsbx(this), _get_sceneRouter__ee4ncs(this), _get_sceneValidationInteractor__iffomr(this), _get_asyncProvider__jbpyhw_2(this));
|
|
52185
52201
|
var tmp0_sceneRouter = _get_sceneRouter__ee4ncs(this);
|
|
52186
52202
|
var tmp1_idsProvider = _get_idsProvider__fnfajc(this);
|
|
@@ -52191,24 +52207,24 @@
|
|
|
52191
52207
|
var tmp5_logger = _get_logger__rkp4sl_0(this);
|
|
52192
52208
|
var tmp6_gameMechanicLogicInteractor = _get_gameLogicInteractor__895s7o(this);
|
|
52193
52209
|
var tmp7_engineLogicConfig = _get_engineLogicConfig__l11qpf(this);
|
|
52194
|
-
return plus(listOfNotNull([tmp, tmp_0, consumeFromClientActionsMiddleware(tmp6_gameMechanicLogicInteractor, tmp5_logger, tmp7_engineLogicConfig)]), this.
|
|
52210
|
+
return plus(listOfNotNull([tmp, tmp_0, consumeFromClientActionsMiddleware(tmp6_gameMechanicLogicInteractor, tmp5_logger, tmp7_engineLogicConfig)]), this.t97_1.j97());
|
|
52195
52211
|
};
|
|
52196
52212
|
function _get_playerTurnInteractor__lczh1o_0($this) {
|
|
52197
|
-
var tmp0 = $this.
|
|
52213
|
+
var tmp0 = $this.r98_1;
|
|
52198
52214
|
var tmp = KProperty1;
|
|
52199
52215
|
// Inline function 'kotlin.getValue' call
|
|
52200
52216
|
getPropertyCallableRef('playerTurnInteractor', 1, tmp, PlayerTurnStoreContract$_get_playerTurnInteractor_$ref_n35qz6_0(), null);
|
|
52201
52217
|
return tmp0.x();
|
|
52202
52218
|
}
|
|
52203
52219
|
function _get_playerTurnMechanicReducer__y10a87($this) {
|
|
52204
|
-
var tmp0 = $this.
|
|
52220
|
+
var tmp0 = $this.s98_1;
|
|
52205
52221
|
var tmp = KProperty1;
|
|
52206
52222
|
// Inline function 'kotlin.getValue' call
|
|
52207
52223
|
getPropertyCallableRef('playerTurnMechanicReducer', 1, tmp, PlayerTurnStoreContract$_get_playerTurnMechanicReducer_$ref_uz8xwn_0(), null);
|
|
52208
52224
|
return tmp0.x();
|
|
52209
52225
|
}
|
|
52210
52226
|
function _get_logger__rkp4sl_1($this) {
|
|
52211
|
-
var tmp0 = $this.
|
|
52227
|
+
var tmp0 = $this.t98_1;
|
|
52212
52228
|
var tmp = KProperty1;
|
|
52213
52229
|
// Inline function 'kotlin.getValue' call
|
|
52214
52230
|
getPropertyCallableRef('logger', 1, tmp, PlayerTurnStoreContract$_get_logger_$ref_5edgd5_0(), null);
|
|
@@ -52246,17 +52262,17 @@
|
|
|
52246
52262
|
}
|
|
52247
52263
|
function PlayerTurnStoreContract$_get_reducers_$lambda_rtq1w8(this$0) {
|
|
52248
52264
|
return function (player) {
|
|
52249
|
-
return this$0.
|
|
52265
|
+
return this$0.p98_1 || player.playerId === this$0.q98_1;
|
|
52250
52266
|
};
|
|
52251
52267
|
}
|
|
52252
52268
|
function PlayerTurnStoreContract$_get_reducers_$lambda_rtq1w8_0(this$0) {
|
|
52253
52269
|
return function (it) {
|
|
52254
|
-
return !(it.playerId === this$0.
|
|
52270
|
+
return !(it.playerId === this$0.q98_1);
|
|
52255
52271
|
};
|
|
52256
52272
|
}
|
|
52257
52273
|
function PlayerTurnStoreContract(di, resetPlayerTurnByMechanicActions, currentPlayerId) {
|
|
52258
|
-
this.
|
|
52259
|
-
this.
|
|
52274
|
+
this.p98_1 = resetPlayerTurnByMechanicActions;
|
|
52275
|
+
this.q98_1 = currentPlayerId;
|
|
52260
52276
|
var tmp = this;
|
|
52261
52277
|
// Inline function 'org.kodein.di.instance' call
|
|
52262
52278
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52264,7 +52280,7 @@
|
|
|
52264
52280
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
52265
52281
|
var tmp_1 = Instance(di, tmp$ret$0, null);
|
|
52266
52282
|
var tmp_2 = KProperty1;
|
|
52267
|
-
tmp.
|
|
52283
|
+
tmp.r98_1 = tmp_1.w64(this, getPropertyCallableRef('playerTurnInteractor', 1, tmp_2, PlayerTurnStoreContract$_get_playerTurnInteractor_$ref_n35qz6(), null));
|
|
52268
52284
|
var tmp_3 = this;
|
|
52269
52285
|
// Inline function 'org.kodein.di.instance' call
|
|
52270
52286
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52272,7 +52288,7 @@
|
|
|
52272
52288
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
52273
52289
|
var tmp_5 = Instance(di, tmp$ret$2, null);
|
|
52274
52290
|
var tmp_6 = KProperty1;
|
|
52275
|
-
tmp_3.
|
|
52291
|
+
tmp_3.s98_1 = tmp_5.w64(this, getPropertyCallableRef('playerTurnMechanicReducer', 1, tmp_6, PlayerTurnStoreContract$_get_playerTurnMechanicReducer_$ref_uz8xwn(), null));
|
|
52276
52292
|
var tmp_7 = this;
|
|
52277
52293
|
// Inline function 'org.kodein.di.instance' call
|
|
52278
52294
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52280,15 +52296,15 @@
|
|
|
52280
52296
|
var tmp$ret$4 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
52281
52297
|
var tmp_9 = Instance(di, tmp$ret$4, null);
|
|
52282
52298
|
var tmp_10 = KProperty1;
|
|
52283
|
-
tmp_7.
|
|
52299
|
+
tmp_7.t98_1 = tmp_9.w64(this, getPropertyCallableRef('logger', 1, tmp_10, PlayerTurnStoreContract$_get_logger_$ref_5edgd5(), null));
|
|
52284
52300
|
}
|
|
52285
|
-
protoOf(PlayerTurnStoreContract).
|
|
52301
|
+
protoOf(PlayerTurnStoreContract).i97 = function () {
|
|
52286
52302
|
var tmp = _get_playerTurnInteractor__lczh1o_0(this);
|
|
52287
52303
|
var tmp_0 = _get_playerTurnMechanicReducer__y10a87(this);
|
|
52288
52304
|
var tmp_1 = _get_logger__rkp4sl_1(this);
|
|
52289
52305
|
var tmp_2 = resetPlayerTurnWhenAnswerFromActionReducer(tmp, tmp_0, tmp_1, PlayerTurnStoreContract$_get_reducers_$lambda_rtq1w8(this));
|
|
52290
52306
|
var tmp_3;
|
|
52291
|
-
if (!this.
|
|
52307
|
+
if (!this.p98_1) {
|
|
52292
52308
|
var tmp_4 = _get_playerTurnInteractor__lczh1o_0(this);
|
|
52293
52309
|
var tmp_5 = _get_playerTurnMechanicReducer__y10a87(this);
|
|
52294
52310
|
var tmp_6 = _get_logger__rkp4sl_1(this);
|
|
@@ -52298,20 +52314,20 @@
|
|
|
52298
52314
|
}
|
|
52299
52315
|
return listOfNotNull([tmp_2, tmp_3, setPlayerTurnReducer(_get_playerTurnInteractor__lczh1o_0(this), _get_playerTurnMechanicReducer__y10a87(this))]);
|
|
52300
52316
|
};
|
|
52301
|
-
protoOf(PlayerTurnStoreContract).
|
|
52317
|
+
protoOf(PlayerTurnStoreContract).j97 = function () {
|
|
52302
52318
|
return emptyList();
|
|
52303
52319
|
};
|
|
52304
52320
|
function StoreContract() {
|
|
52305
52321
|
}
|
|
52306
52322
|
function _get_jobsProvider__7sw2pw($this) {
|
|
52307
|
-
var tmp0 = $this.
|
|
52323
|
+
var tmp0 = $this.u98_1;
|
|
52308
52324
|
var tmp = KProperty1;
|
|
52309
52325
|
// Inline function 'kotlin.getValue' call
|
|
52310
52326
|
getPropertyCallableRef('jobsProvider', 1, tmp, TimersStoreContract$_get_jobsProvider_$ref_exljta_0(), null);
|
|
52311
52327
|
return tmp0.x();
|
|
52312
52328
|
}
|
|
52313
52329
|
function _get_asyncProvider__jbpyhw_3($this) {
|
|
52314
|
-
var tmp0 = $this.
|
|
52330
|
+
var tmp0 = $this.v98_1;
|
|
52315
52331
|
var tmp = KProperty1;
|
|
52316
52332
|
// Inline function 'kotlin.getValue' call
|
|
52317
52333
|
getPropertyCallableRef('asyncProvider', 1, tmp, TimersStoreContract$_get_asyncProvider_$ref_n5hpw_0(), null);
|
|
@@ -52345,7 +52361,7 @@
|
|
|
52345
52361
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
52346
52362
|
var tmp_1 = Instance(di, tmp$ret$0, null);
|
|
52347
52363
|
var tmp_2 = KProperty1;
|
|
52348
|
-
tmp.
|
|
52364
|
+
tmp.u98_1 = tmp_1.w64(this, getPropertyCallableRef('jobsProvider', 1, tmp_2, TimersStoreContract$_get_jobsProvider_$ref_exljta(), null));
|
|
52349
52365
|
var tmp_3 = this;
|
|
52350
52366
|
// Inline function 'org.kodein.di.instance' call
|
|
52351
52367
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52353,37 +52369,37 @@
|
|
|
52353
52369
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
52354
52370
|
var tmp_5 = Instance(di, tmp$ret$2, null);
|
|
52355
52371
|
var tmp_6 = KProperty1;
|
|
52356
|
-
tmp_3.
|
|
52372
|
+
tmp_3.v98_1 = tmp_5.w64(this, getPropertyCallableRef('asyncProvider', 1, tmp_6, TimersStoreContract$_get_asyncProvider_$ref_n5hpw(), null));
|
|
52357
52373
|
}
|
|
52358
|
-
protoOf(TimersStoreContract).
|
|
52374
|
+
protoOf(TimersStoreContract).i97 = function () {
|
|
52359
52375
|
return listOf(timerReducer());
|
|
52360
52376
|
};
|
|
52361
|
-
protoOf(TimersStoreContract).
|
|
52377
|
+
protoOf(TimersStoreContract).j97 = function () {
|
|
52362
52378
|
return listOf_0([timerMiddleware(_get_asyncProvider__jbpyhw_3(this), _get_jobsProvider__7sw2pw(this)), clearTimersWhenFinishingGameMiddleware()]);
|
|
52363
52379
|
};
|
|
52364
52380
|
function _get_logger__rkp4sl_2($this) {
|
|
52365
|
-
var tmp0 = $this.
|
|
52381
|
+
var tmp0 = $this.z98_1;
|
|
52366
52382
|
var tmp = KProperty1;
|
|
52367
52383
|
// Inline function 'kotlin.getValue' call
|
|
52368
52384
|
getPropertyCallableRef('logger', 1, tmp, ValidationStoreContract$_get_logger_$ref_l1gwno_0(), null);
|
|
52369
52385
|
return tmp0.x();
|
|
52370
52386
|
}
|
|
52371
52387
|
function _get_engineLogicConfig__l11qpf_0($this) {
|
|
52372
|
-
var tmp0 = $this.
|
|
52388
|
+
var tmp0 = $this.a99_1;
|
|
52373
52389
|
var tmp = KProperty1;
|
|
52374
52390
|
// Inline function 'kotlin.getValue' call
|
|
52375
52391
|
getPropertyCallableRef('engineLogicConfig', 1, tmp, ValidationStoreContract$_get_engineLogicConfig_$ref_v7kyew_0(), null);
|
|
52376
52392
|
return tmp0.x();
|
|
52377
52393
|
}
|
|
52378
52394
|
function _get_tagProvider__62phve($this) {
|
|
52379
|
-
var tmp0 = $this.
|
|
52395
|
+
var tmp0 = $this.b99_1;
|
|
52380
52396
|
var tmp = KProperty1;
|
|
52381
52397
|
// Inline function 'kotlin.getValue' call
|
|
52382
52398
|
getPropertyCallableRef('tagProvider', 1, tmp, ValidationStoreContract$_get_tagProvider_$ref_is794l_0(), null);
|
|
52383
52399
|
return tmp0.x();
|
|
52384
52400
|
}
|
|
52385
52401
|
function _get_idsProvider__fnfajc_0($this) {
|
|
52386
|
-
var tmp0 = $this.
|
|
52402
|
+
var tmp0 = $this.c99_1;
|
|
52387
52403
|
var tmp = KProperty1;
|
|
52388
52404
|
// Inline function 'kotlin.getValue' call
|
|
52389
52405
|
getPropertyCallableRef('idsProvider', 1, tmp, ValidationStoreContract$_get_idsProvider_$ref_mh1wlv_0(), null);
|
|
@@ -52430,9 +52446,9 @@
|
|
|
52430
52446
|
};
|
|
52431
52447
|
}
|
|
52432
52448
|
function ValidationStoreContract(di, isServer, localGameMechanicActions, currentPlayerId) {
|
|
52433
|
-
this.
|
|
52434
|
-
this.
|
|
52435
|
-
this.
|
|
52449
|
+
this.w98_1 = isServer;
|
|
52450
|
+
this.x98_1 = localGameMechanicActions;
|
|
52451
|
+
this.y98_1 = currentPlayerId;
|
|
52436
52452
|
var tmp = this;
|
|
52437
52453
|
// Inline function 'org.kodein.di.instance' call
|
|
52438
52454
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52440,7 +52456,7 @@
|
|
|
52440
52456
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
52441
52457
|
var tmp_1 = Instance(di, tmp$ret$0, null);
|
|
52442
52458
|
var tmp_2 = KProperty1;
|
|
52443
|
-
tmp.
|
|
52459
|
+
tmp.z98_1 = tmp_1.w64(this, getPropertyCallableRef('logger', 1, tmp_2, ValidationStoreContract$_get_logger_$ref_l1gwno(), null));
|
|
52444
52460
|
var tmp_3 = this;
|
|
52445
52461
|
// Inline function 'org.kodein.di.instance' call
|
|
52446
52462
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52448,7 +52464,7 @@
|
|
|
52448
52464
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
52449
52465
|
var tmp_5 = Instance(di, tmp$ret$2, null);
|
|
52450
52466
|
var tmp_6 = KProperty1;
|
|
52451
|
-
tmp_3.
|
|
52467
|
+
tmp_3.a99_1 = tmp_5.w64(this, getPropertyCallableRef('engineLogicConfig', 1, tmp_6, ValidationStoreContract$_get_engineLogicConfig_$ref_v7kyew(), null));
|
|
52452
52468
|
var tmp_7 = this;
|
|
52453
52469
|
// Inline function 'org.kodein.di.instance' call
|
|
52454
52470
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52456,7 +52472,7 @@
|
|
|
52456
52472
|
var tmp$ret$4 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
52457
52473
|
var tmp_9 = Instance(di, tmp$ret$4, null);
|
|
52458
52474
|
var tmp_10 = KProperty1;
|
|
52459
|
-
tmp_7.
|
|
52475
|
+
tmp_7.b99_1 = tmp_9.w64(this, getPropertyCallableRef('tagProvider', 1, tmp_10, ValidationStoreContract$_get_tagProvider_$ref_is794l(), null));
|
|
52460
52476
|
var tmp_11 = this;
|
|
52461
52477
|
// Inline function 'org.kodein.di.instance' call
|
|
52462
52478
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -52464,82 +52480,82 @@
|
|
|
52464
52480
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
52465
52481
|
var tmp_13 = Instance(di, tmp$ret$6, null);
|
|
52466
52482
|
var tmp_14 = KProperty1;
|
|
52467
|
-
tmp_11.
|
|
52483
|
+
tmp_11.c99_1 = tmp_13.w64(this, getPropertyCallableRef('idsProvider', 1, tmp_14, ValidationStoreContract$_get_idsProvider_$ref_mh1wlv(), null));
|
|
52468
52484
|
}
|
|
52469
|
-
protoOf(ValidationStoreContract).
|
|
52485
|
+
protoOf(ValidationStoreContract).i97 = function () {
|
|
52470
52486
|
return emptyList();
|
|
52471
52487
|
};
|
|
52472
|
-
protoOf(ValidationStoreContract).
|
|
52488
|
+
protoOf(ValidationStoreContract).j97 = function () {
|
|
52473
52489
|
var tmp0_logger = _get_logger__rkp4sl_2(this);
|
|
52474
|
-
var tmp1_sendErrorToClient = this.
|
|
52490
|
+
var tmp1_sendErrorToClient = this.w98_1;
|
|
52475
52491
|
var tmp2_idsProvider = _get_idsProvider__fnfajc_0(this);
|
|
52476
52492
|
var playerConnectionValidationMiddlewares = new PlayerConnectionValidationMiddlewares(tmp2_idsProvider, tmp0_logger, tmp1_sendErrorToClient);
|
|
52477
52493
|
var tmp3_tagProvider = _get_tagProvider__62phve(this);
|
|
52478
52494
|
var tmp4_logger = _get_logger__rkp4sl_2(this);
|
|
52479
52495
|
var tmp5_engineLogicConfig = _get_engineLogicConfig__l11qpf_0(this);
|
|
52480
|
-
var tmp6_sendErrorToClient = this.
|
|
52496
|
+
var tmp6_sendErrorToClient = this.w98_1;
|
|
52481
52497
|
var tmp7_idsProvider = _get_idsProvider__fnfajc_0(this);
|
|
52482
52498
|
var playerTurnValidationMiddlewares = new PlayerTurnValidationMiddlewares(tmp3_tagProvider, tmp6_sendErrorToClient, tmp5_engineLogicConfig, tmp4_logger, tmp7_idsProvider);
|
|
52483
52499
|
var tmp8_logger = _get_logger__rkp4sl_2(this);
|
|
52484
|
-
var tmp9_sendErrorToClient = this.
|
|
52500
|
+
var tmp9_sendErrorToClient = this.w98_1;
|
|
52485
52501
|
var tmp10_idsProvider = _get_idsProvider__fnfajc_0(this);
|
|
52486
|
-
var tmp11_validateEventsDuplication = this.
|
|
52502
|
+
var tmp11_validateEventsDuplication = this.w98_1;
|
|
52487
52503
|
var fromClientValidationMiddleware = new FromClientValidationMiddleware(tmp10_idsProvider, tmp8_logger, tmp11_validateEventsDuplication, tmp9_sendErrorToClient);
|
|
52488
52504
|
var toClientValidationMiddleware = new ToClientValidationMiddleware(_get_logger__rkp4sl_2(this));
|
|
52489
52505
|
var tmp;
|
|
52490
|
-
if (this.
|
|
52491
|
-
tmp = plus_0(listOf_0([playerTurnValidationMiddlewares.
|
|
52506
|
+
if (this.w98_1) {
|
|
52507
|
+
tmp = plus_0(listOf_0([playerTurnValidationMiddlewares.s99(), playerTurnValidationMiddlewares.k99()]), playerConnectionValidationMiddlewares.w99());
|
|
52492
52508
|
} else {
|
|
52493
|
-
var tmp12_currentPlayerId = this.
|
|
52494
|
-
var tmp13_localGameMechanicActions = this.
|
|
52495
|
-
var tmp_0 = playerTurnValidationMiddlewares.
|
|
52509
|
+
var tmp12_currentPlayerId = this.y98_1;
|
|
52510
|
+
var tmp13_localGameMechanicActions = this.x98_1;
|
|
52511
|
+
var tmp_0 = playerTurnValidationMiddlewares.i99(listOf(new LocalAnswerOnlyCheck(tmp13_localGameMechanicActions, tmp12_currentPlayerId)));
|
|
52496
52512
|
var tmp_1;
|
|
52497
|
-
if (!this.
|
|
52498
|
-
tmp_1 = playerTurnValidationMiddlewares.
|
|
52513
|
+
if (!this.x98_1) {
|
|
52514
|
+
tmp_1 = playerTurnValidationMiddlewares.j99(listOf(new NotCurrentPlayerCheck(this.y98_1)));
|
|
52499
52515
|
} else {
|
|
52500
52516
|
tmp_1 = null;
|
|
52501
52517
|
}
|
|
52502
|
-
tmp = plus(listOfNotNull([tmp_0, tmp_1, playerTurnValidationMiddlewares.
|
|
52518
|
+
tmp = plus(listOfNotNull([tmp_0, tmp_1, playerTurnValidationMiddlewares.k99()]), listOfNotNull([_get_engineLogicConfig__l11qpf_0(this).validateTestMode ? checkGameTestPointsMiddleware(_get_logger__rkp4sl_2(this)) : null, fromClientValidationMiddleware.p99(), toClientValidationMiddleware.p99(), checkGameIsNotTerminatedMiddleware(_get_logger__rkp4sl_2(this)), checkValidSceneMiddleware(_get_logger__rkp4sl_2(this)), checkValidSceneActMiddleware(_get_logger__rkp4sl_2(this)), checkCardDuplicatesForBribesMiddleware(_get_logger__rkp4sl_2(this)), checkCardDuplicatesForScenesMiddleware(_get_logger__rkp4sl_2(this)), gameIsNotFinishedTimeoutMiddleware(_get_logger__rkp4sl_2(this)), gameIsNotFinishedTimerStartMiddleware(), gameIsNotFinishedTimerStopMiddleware()]));
|
|
52503
52519
|
}
|
|
52504
52520
|
return tmp;
|
|
52505
52521
|
};
|
|
52506
52522
|
function LocalAnswerOnlyCheck(localGameMechanicActions, currentPlayerId) {
|
|
52507
|
-
this.
|
|
52508
|
-
this.
|
|
52523
|
+
this.x99_1 = localGameMechanicActions;
|
|
52524
|
+
this.y99_1 = currentPlayerId;
|
|
52509
52525
|
}
|
|
52510
|
-
protoOf(LocalAnswerOnlyCheck).y99 = function (state, action) {
|
|
52511
|
-
return this.w99_1 || this.x99_1 === action.playerId;
|
|
52512
|
-
};
|
|
52513
52526
|
protoOf(LocalAnswerOnlyCheck).z99 = function (state, action) {
|
|
52514
|
-
return this.
|
|
52527
|
+
return this.x99_1 || this.y99_1 === action.playerId;
|
|
52528
|
+
};
|
|
52529
|
+
protoOf(LocalAnswerOnlyCheck).a9a = function (state, action) {
|
|
52530
|
+
return this.z99(state, isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE());
|
|
52515
52531
|
};
|
|
52516
52532
|
function NotCurrentPlayerCheck(currentPlayerId) {
|
|
52517
|
-
this.
|
|
52533
|
+
this.b9a_1 = currentPlayerId;
|
|
52518
52534
|
}
|
|
52519
|
-
protoOf(NotCurrentPlayerCheck).
|
|
52535
|
+
protoOf(NotCurrentPlayerCheck).c9a = function (state, action) {
|
|
52520
52536
|
var playerTurn = getPlayerTurn(action, state.x6r().players);
|
|
52521
|
-
return !(playerTurn == null) && !(this.
|
|
52537
|
+
return !(playerTurn == null) && !(this.b9a_1 === playerTurn.playerId);
|
|
52522
52538
|
};
|
|
52523
|
-
protoOf(NotCurrentPlayerCheck).
|
|
52524
|
-
return this.
|
|
52539
|
+
protoOf(NotCurrentPlayerCheck).a9a = function (state, action) {
|
|
52540
|
+
return this.c9a(state, isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE());
|
|
52525
52541
|
};
|
|
52526
52542
|
function consumeFromClientActionsMiddleware(gameMechanicLogicInteractor, logger, engineLogicConfig) {
|
|
52527
52543
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
52528
52544
|
return new consumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1(engineLogicConfig, logger, gameMechanicLogicInteractor);
|
|
52529
52545
|
}
|
|
52530
52546
|
function consumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $gameMechanicLogicInteractor) {
|
|
52531
|
-
this.
|
|
52532
|
-
this.
|
|
52533
|
-
this.
|
|
52547
|
+
this.d9a_1 = $engineLogicConfig;
|
|
52548
|
+
this.e9a_1 = $logger;
|
|
52549
|
+
this.f9a_1 = $gameMechanicLogicInteractor;
|
|
52534
52550
|
}
|
|
52535
52551
|
protoOf(consumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
52536
52552
|
return action instanceof FromClientAction;
|
|
52537
52553
|
};
|
|
52538
52554
|
protoOf(consumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1).u6h = function (store, next, action) {
|
|
52539
52555
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
52540
|
-
if (this.
|
|
52556
|
+
if (this.d9a_1.validateIfMainThread) {
|
|
52541
52557
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
52542
|
-
var logger = this.
|
|
52558
|
+
var logger = this.e9a_1;
|
|
52543
52559
|
var tmp;
|
|
52544
52560
|
try {
|
|
52545
52561
|
assertIfMainThread('consumeFromClientActionsMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -52562,16 +52578,16 @@
|
|
|
52562
52578
|
next(action_0);
|
|
52563
52579
|
var tmp_1;
|
|
52564
52580
|
if (action_0 instanceof MessageFromClientAction) {
|
|
52565
|
-
tmp_1 = listOfNotNull_0(this.
|
|
52581
|
+
tmp_1 = listOfNotNull_0(this.f9a_1.i8x(action_0, table.players));
|
|
52566
52582
|
} else {
|
|
52567
52583
|
if (action_0 instanceof PartnerSelectedFromClientAction) {
|
|
52568
|
-
tmp_1 = listOf(this.
|
|
52584
|
+
tmp_1 = listOf(this.f9a_1.j8x(action_0, table.players));
|
|
52569
52585
|
} else {
|
|
52570
52586
|
if (action_0 instanceof PlayerReadyFromClientAction) {
|
|
52571
|
-
tmp_1 = listOf(this.
|
|
52587
|
+
tmp_1 = listOf(this.f9a_1.k8x(action_0));
|
|
52572
52588
|
} else {
|
|
52573
52589
|
if (action_0 instanceof SuitChoiceFromClientAction) {
|
|
52574
|
-
var mechanicAction = this.
|
|
52590
|
+
var mechanicAction = this.f9a_1.l8x(action_0, table.players, table.config);
|
|
52575
52591
|
var tmp_2;
|
|
52576
52592
|
if (mechanicAction.p8z_1 == null) {
|
|
52577
52593
|
tmp_2 = null;
|
|
@@ -52582,31 +52598,31 @@
|
|
|
52582
52598
|
tmp_1 = listOfNotNull([mechanicAction, tmp_2]);
|
|
52583
52599
|
} else {
|
|
52584
52600
|
if (action_0 instanceof CombinationChoiceFromClientAction) {
|
|
52585
|
-
tmp_1 = listOf(this.
|
|
52601
|
+
tmp_1 = listOf(this.f9a_1.m8x(action_0, table));
|
|
52586
52602
|
} else {
|
|
52587
52603
|
if (action_0 instanceof CardFromClientAction) {
|
|
52588
52604
|
// Inline function 'kotlin.with' call
|
|
52589
52605
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
52590
52606
|
var actions = ArrayList_init_$Create$_0();
|
|
52591
52607
|
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action_0.v7s_1, table.cardsOnTable.o(), action_0.y7s_1));
|
|
52592
|
-
var cardMechanicAction = this.
|
|
52608
|
+
var cardMechanicAction = this.f9a_1.n8x(action_0, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
|
|
52593
52609
|
actions.j(cardMechanicAction);
|
|
52594
52610
|
var shouldValidateBribe = newCardsOnTheTable.o() === table.config.playersMode.count;
|
|
52595
52611
|
if (shouldValidateBribe) {
|
|
52596
|
-
var tmp0_safe_receiver = this.
|
|
52612
|
+
var tmp0_safe_receiver = this.f9a_1.o8x(action_0, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
|
|
52597
52613
|
if (tmp0_safe_receiver == null)
|
|
52598
52614
|
null;
|
|
52599
52615
|
else {
|
|
52600
52616
|
// Inline function 'kotlin.apply' call
|
|
52601
52617
|
actions.j(tmp0_safe_receiver);
|
|
52602
52618
|
}
|
|
52603
|
-
var bribeMechanicAction = this.
|
|
52619
|
+
var bribeMechanicAction = this.f9a_1.p8x(action_0, table.gameInfo.round, newCardsOnTheTable, table.players, table.config);
|
|
52604
52620
|
actions.j(bribeMechanicAction);
|
|
52605
52621
|
}
|
|
52606
52622
|
tmp_1 = actions;
|
|
52607
52623
|
} else {
|
|
52608
52624
|
if (action_0 instanceof TakeAllRemainingCardsFromClientAction) {
|
|
52609
|
-
tmp_1 = listOf(this.
|
|
52625
|
+
tmp_1 = listOf(this.f9a_1.q8x(action_0, table.players, table.cardsOnTable));
|
|
52610
52626
|
} else {
|
|
52611
52627
|
if (action_0 instanceof ExitFromClientAction) {
|
|
52612
52628
|
tmp_1 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_LEFT_getInstance(), action_0.i7t_1));
|
|
@@ -52662,11 +52678,11 @@
|
|
|
52662
52678
|
asyncProvider.i6c(VOID, handleRandomMessage$slambda_0(store, botChatInteractor, playerId, triggerReason, isEnableBotChatForPlayer, null));
|
|
52663
52679
|
}
|
|
52664
52680
|
function botChatPutCardMiddleware$o$handle$slambda($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation) {
|
|
52665
|
-
this.
|
|
52666
|
-
this.
|
|
52667
|
-
this.
|
|
52668
|
-
this.
|
|
52669
|
-
this.
|
|
52681
|
+
this.o9a_1 = $botChatInteractor;
|
|
52682
|
+
this.p9a_1 = $store;
|
|
52683
|
+
this.q9a_1 = $messageText;
|
|
52684
|
+
this.r9a_1 = $action;
|
|
52685
|
+
this.s9a_1 = $isEnableBotChatForPlayer;
|
|
52670
52686
|
CoroutineImpl.call(this, resultContinuation);
|
|
52671
52687
|
}
|
|
52672
52688
|
protoOf(botChatPutCardMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -52696,7 +52712,7 @@
|
|
|
52696
52712
|
continue $sm;
|
|
52697
52713
|
case 1:
|
|
52698
52714
|
this.s8_1 = 2;
|
|
52699
|
-
suspendResult = this.
|
|
52715
|
+
suspendResult = this.o9a_1.n8r(this.p9a_1.state.x6r(), this.q9a_1, this.r9a_1.message.playerId, this.s9a_1, this);
|
|
52700
52716
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
52701
52717
|
return suspendResult;
|
|
52702
52718
|
}
|
|
@@ -52705,7 +52721,7 @@
|
|
|
52705
52721
|
case 2:
|
|
52706
52722
|
var generatedMessage = suspendResult;
|
|
52707
52723
|
if (!(generatedMessage == null)) {
|
|
52708
|
-
this.
|
|
52724
|
+
this.p9a_1.dispatch(new MessageMechanicAction(generatedMessage));
|
|
52709
52725
|
}
|
|
52710
52726
|
|
|
52711
52727
|
return Unit_instance;
|
|
@@ -52724,8 +52740,8 @@
|
|
|
52724
52740
|
while (true);
|
|
52725
52741
|
};
|
|
52726
52742
|
protoOf(botChatPutCardMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
52727
|
-
var i = new botChatPutCardMiddleware$o$handle$slambda(this.
|
|
52728
|
-
i.
|
|
52743
|
+
var i = new botChatPutCardMiddleware$o$handle$slambda(this.o9a_1, this.p9a_1, this.q9a_1, this.r9a_1, this.s9a_1, completion);
|
|
52744
|
+
i.t9a_1 = $this$launchDefault;
|
|
52729
52745
|
return i;
|
|
52730
52746
|
};
|
|
52731
52747
|
function botChatPutCardMiddleware$o$handle$slambda_0($botChatInteractor, $store, $messageText, $action, $isEnableBotChatForPlayer, resultContinuation) {
|
|
@@ -52737,10 +52753,10 @@
|
|
|
52737
52753
|
return l;
|
|
52738
52754
|
}
|
|
52739
52755
|
function botChatPutCardMiddleware$$inlined$middlewareForActionType$1($conversationCache, $botChatInteractor, $asyncProvider, $isEnableBotChatForPlayer) {
|
|
52740
|
-
this.
|
|
52741
|
-
this.
|
|
52742
|
-
this.
|
|
52743
|
-
this.
|
|
52756
|
+
this.u9a_1 = $conversationCache;
|
|
52757
|
+
this.v9a_1 = $botChatInteractor;
|
|
52758
|
+
this.w9a_1 = $asyncProvider;
|
|
52759
|
+
this.x9a_1 = $isEnableBotChatForPlayer;
|
|
52744
52760
|
}
|
|
52745
52761
|
protoOf(botChatPutCardMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
52746
52762
|
return action instanceof MechanicAction;
|
|
@@ -52751,17 +52767,17 @@
|
|
|
52751
52767
|
if (action_0 instanceof MessageMechanicAction) {
|
|
52752
52768
|
var message = action_0.message;
|
|
52753
52769
|
if (message instanceof TextMessage) {
|
|
52754
|
-
this.
|
|
52770
|
+
this.u9a_1.y9a(store.state.x6r().roomId, message.message);
|
|
52755
52771
|
}
|
|
52756
52772
|
}
|
|
52757
52773
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
52758
52774
|
if (shouldGenerateRandomMessage()) {
|
|
52759
|
-
handleRandomMessage(store, action_0.x8z_1, this.
|
|
52775
|
+
handleRandomMessage(store, action_0.x8z_1, this.v9a_1, this.w9a_1, this.x9a_1, 'card played');
|
|
52760
52776
|
}
|
|
52761
52777
|
} else {
|
|
52762
52778
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
52763
52779
|
if (shouldGenerateRandomMessage()) {
|
|
52764
|
-
handleRandomMessage(store, action_0.r8z_1, this.
|
|
52780
|
+
handleRandomMessage(store, action_0.r8z_1, this.v9a_1, this.w9a_1, this.x9a_1, 'suit chosen');
|
|
52765
52781
|
}
|
|
52766
52782
|
} else {
|
|
52767
52783
|
if (action_0 instanceof SceneMechanicAction) {
|
|
@@ -52771,7 +52787,7 @@
|
|
|
52771
52787
|
null;
|
|
52772
52788
|
else {
|
|
52773
52789
|
// Inline function 'kotlin.let' call
|
|
52774
|
-
handleRandomMessage(store, tmp1_safe_receiver, this.
|
|
52790
|
+
handleRandomMessage(store, tmp1_safe_receiver, this.v9a_1, this.w9a_1, this.x9a_1, 'scene change');
|
|
52775
52791
|
}
|
|
52776
52792
|
}
|
|
52777
52793
|
} else {
|
|
@@ -52792,7 +52808,7 @@
|
|
|
52792
52808
|
}
|
|
52793
52809
|
var messageText = tmp_0;
|
|
52794
52810
|
if (!(messageText == null)) {
|
|
52795
|
-
this.
|
|
52811
|
+
this.w9a_1.i6c(VOID, botChatPutCardMiddleware$o$handle$slambda_0(this.v9a_1, store, messageText, action_0, this.x9a_1, null));
|
|
52796
52812
|
}
|
|
52797
52813
|
}
|
|
52798
52814
|
}
|
|
@@ -52804,11 +52820,11 @@
|
|
|
52804
52820
|
return this.u6h(store, next, action);
|
|
52805
52821
|
};
|
|
52806
52822
|
function handleRandomMessage$slambda($store, $botChatInteractor, $playerId, $triggerReason, $isEnableBotChatForPlayer, resultContinuation) {
|
|
52807
|
-
this.
|
|
52808
|
-
this.
|
|
52809
|
-
this.
|
|
52810
|
-
this.
|
|
52811
|
-
this.
|
|
52823
|
+
this.h9b_1 = $store;
|
|
52824
|
+
this.i9b_1 = $botChatInteractor;
|
|
52825
|
+
this.j9b_1 = $playerId;
|
|
52826
|
+
this.k9b_1 = $triggerReason;
|
|
52827
|
+
this.l9b_1 = $isEnableBotChatForPlayer;
|
|
52812
52828
|
CoroutineImpl.call(this, resultContinuation);
|
|
52813
52829
|
}
|
|
52814
52830
|
protoOf(handleRandomMessage$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -52837,9 +52853,9 @@
|
|
|
52837
52853
|
|
|
52838
52854
|
continue $sm;
|
|
52839
52855
|
case 1:
|
|
52840
|
-
var tmp0_table = this.
|
|
52856
|
+
var tmp0_table = this.h9b_1.state.x6r();
|
|
52841
52857
|
this.s8_1 = 2;
|
|
52842
|
-
suspendResult = this.
|
|
52858
|
+
suspendResult = this.i9b_1.p8r(tmp0_table, this.j9b_1, this.k9b_1, this.l9b_1, this);
|
|
52843
52859
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
52844
52860
|
return suspendResult;
|
|
52845
52861
|
}
|
|
@@ -52848,7 +52864,7 @@
|
|
|
52848
52864
|
case 2:
|
|
52849
52865
|
var generatedMessage = suspendResult;
|
|
52850
52866
|
if (!(generatedMessage == null)) {
|
|
52851
|
-
this.
|
|
52867
|
+
this.h9b_1.dispatch(new MessageMechanicAction(generatedMessage));
|
|
52852
52868
|
}
|
|
52853
52869
|
|
|
52854
52870
|
return Unit_instance;
|
|
@@ -52867,8 +52883,8 @@
|
|
|
52867
52883
|
while (true);
|
|
52868
52884
|
};
|
|
52869
52885
|
protoOf(handleRandomMessage$slambda).c2d = function ($this$launchDefault, completion) {
|
|
52870
|
-
var i = new handleRandomMessage$slambda(this.
|
|
52871
|
-
i.
|
|
52886
|
+
var i = new handleRandomMessage$slambda(this.h9b_1, this.i9b_1, this.j9b_1, this.k9b_1, this.l9b_1, completion);
|
|
52887
|
+
i.m9b_1 = $this$launchDefault;
|
|
52872
52888
|
return i;
|
|
52873
52889
|
};
|
|
52874
52890
|
function handleRandomMessage$slambda_0($store, $botChatInteractor, $playerId, $triggerReason, $isEnableBotChatForPlayer, resultContinuation) {
|
|
@@ -52884,11 +52900,11 @@
|
|
|
52884
52900
|
return new botLogicMiddleware$$inlined$middlewareForActionType$1(asyncProvider, playerAnswerInteractor, botConfig);
|
|
52885
52901
|
}
|
|
52886
52902
|
function botLogicMiddleware$o$handle$slambda($table, $action, $store, $playerAnswerInteractor, $botConfig, resultContinuation) {
|
|
52887
|
-
this.
|
|
52888
|
-
this.
|
|
52889
|
-
this.
|
|
52890
|
-
this.
|
|
52891
|
-
this.
|
|
52903
|
+
this.v9b_1 = $table;
|
|
52904
|
+
this.w9b_1 = $action;
|
|
52905
|
+
this.x9b_1 = $store;
|
|
52906
|
+
this.y9b_1 = $playerAnswerInteractor;
|
|
52907
|
+
this.z9b_1 = $botConfig;
|
|
52892
52908
|
CoroutineImpl.call(this, resultContinuation);
|
|
52893
52909
|
}
|
|
52894
52910
|
protoOf(botLogicMiddleware$o$handle$slambda).b2d = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -52907,7 +52923,7 @@
|
|
|
52907
52923
|
var tmp = this.s8_1;
|
|
52908
52924
|
if (tmp === 0) {
|
|
52909
52925
|
this.t8_1 = 1;
|
|
52910
|
-
var this_0 = filterPlayerTurn(this.
|
|
52926
|
+
var this_0 = filterPlayerTurn(this.v9b_1.players);
|
|
52911
52927
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
52912
52928
|
var _iterator__ex2g4s = this_0.l();
|
|
52913
52929
|
while (_iterator__ex2g4s.m()) {
|
|
@@ -52915,11 +52931,11 @@
|
|
|
52915
52931
|
destination.j(item.playerId);
|
|
52916
52932
|
}
|
|
52917
52933
|
var playersTurns = destination;
|
|
52918
|
-
var _iterator__ex2g4s_0 = this.
|
|
52934
|
+
var _iterator__ex2g4s_0 = this.w9b_1.b93_1.l();
|
|
52919
52935
|
while (_iterator__ex2g4s_0.m()) {
|
|
52920
52936
|
var element = _iterator__ex2g4s_0.n();
|
|
52921
52937
|
if (playersTurns.u1(element)) {
|
|
52922
|
-
this.
|
|
52938
|
+
this.x9b_1.dispatch(this.y9b_1.f8t(element, this.v9b_1, this.z9b_1));
|
|
52923
52939
|
}
|
|
52924
52940
|
}
|
|
52925
52941
|
return Unit_instance;
|
|
@@ -52933,8 +52949,8 @@
|
|
|
52933
52949
|
while (true);
|
|
52934
52950
|
};
|
|
52935
52951
|
protoOf(botLogicMiddleware$o$handle$slambda).c2d = function ($this$launchDefaultWithLock, completion) {
|
|
52936
|
-
var i = new botLogicMiddleware$o$handle$slambda(this.
|
|
52937
|
-
i.
|
|
52952
|
+
var i = new botLogicMiddleware$o$handle$slambda(this.v9b_1, this.w9b_1, this.x9b_1, this.y9b_1, this.z9b_1, completion);
|
|
52953
|
+
i.a9c_1 = $this$launchDefaultWithLock;
|
|
52938
52954
|
return i;
|
|
52939
52955
|
};
|
|
52940
52956
|
function botLogicMiddleware$o$handle$slambda_0($table, $action, $store, $playerAnswerInteractor, $botConfig, resultContinuation) {
|
|
@@ -52946,9 +52962,9 @@
|
|
|
52946
52962
|
return l;
|
|
52947
52963
|
}
|
|
52948
52964
|
function botLogicMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $playerAnswerInteractor, $botConfig) {
|
|
52949
|
-
this.
|
|
52950
|
-
this.
|
|
52951
|
-
this.
|
|
52965
|
+
this.b9c_1 = $asyncProvider;
|
|
52966
|
+
this.c9c_1 = $playerAnswerInteractor;
|
|
52967
|
+
this.d9c_1 = $botConfig;
|
|
52952
52968
|
}
|
|
52953
52969
|
protoOf(botLogicMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
52954
52970
|
return action instanceof AskBotAction;
|
|
@@ -52957,7 +52973,7 @@
|
|
|
52957
52973
|
var action_0 = action instanceof AskBotAction ? action : THROW_CCE();
|
|
52958
52974
|
var table = store.state.x6r();
|
|
52959
52975
|
next(action_0);
|
|
52960
|
-
this.
|
|
52976
|
+
this.b9c_1.k6c(VOID, botLogicMiddleware$o$handle$slambda_0(table, action_0, store, this.c9c_1, this.d9c_1, null));
|
|
52961
52977
|
};
|
|
52962
52978
|
protoOf(botLogicMiddleware$$inlined$middlewareForActionType$1).e6g = function (store, next, action) {
|
|
52963
52979
|
return this.u6h(store, next, action);
|
|
@@ -52969,7 +52985,7 @@
|
|
|
52969
52985
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
52970
52986
|
tmp.h8n_1 = LinkedHashMap_init_$Create$();
|
|
52971
52987
|
}
|
|
52972
|
-
protoOf(ConversationHistoryCache).
|
|
52988
|
+
protoOf(ConversationHistoryCache).y9a = function (roomId, message) {
|
|
52973
52989
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
52974
52990
|
var this_0 = this.h8n_1;
|
|
52975
52991
|
var value = this_0.c2(roomId);
|
|
@@ -52999,9 +53015,9 @@
|
|
|
52999
53015
|
return new prefetchRandomOrgPoolMiddleware$$inlined$middlewareForActionType$1(dealerConfig, poolProvider, prefetchWhenPoolAtMost, asyncProvider, cardsDealerProvider);
|
|
53000
53016
|
}
|
|
53001
53017
|
function prefetchRandomOrgPoolMiddleware$o$handle$slambda($cardsDealerProvider, $dealerStrategy, $poolProvider, resultContinuation) {
|
|
53002
|
-
this.
|
|
53003
|
-
this.
|
|
53004
|
-
this.
|
|
53018
|
+
this.m9c_1 = $cardsDealerProvider;
|
|
53019
|
+
this.n9c_1 = $dealerStrategy;
|
|
53020
|
+
this.o9c_1 = $poolProvider;
|
|
53005
53021
|
CoroutineImpl.call(this, resultContinuation);
|
|
53006
53022
|
}
|
|
53007
53023
|
protoOf(prefetchRandomOrgPoolMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -53021,11 +53037,11 @@
|
|
|
53021
53037
|
switch (tmp) {
|
|
53022
53038
|
case 0:
|
|
53023
53039
|
this.t8_1 = 3;
|
|
53024
|
-
var cardsCount = this.
|
|
53040
|
+
var cardsCount = this.m9c_1.r5e(5, 0);
|
|
53025
53041
|
var tmp0_max = cardsCount - 1 | 0;
|
|
53026
|
-
var tmp1_signed = this.
|
|
53042
|
+
var tmp1_signed = this.n9c_1.equals(DealerStrategy_RANDOM_ORG_SIGNED_getInstance());
|
|
53027
53043
|
this.s8_1 = 1;
|
|
53028
|
-
suspendResult = this.
|
|
53044
|
+
suspendResult = this.o9c_1.m58(0, tmp0_max, cardsCount, tmp1_signed, new Long(30000, 0), this);
|
|
53029
53045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53030
53046
|
return suspendResult;
|
|
53031
53047
|
}
|
|
@@ -53054,8 +53070,8 @@
|
|
|
53054
53070
|
while (true);
|
|
53055
53071
|
};
|
|
53056
53072
|
protoOf(prefetchRandomOrgPoolMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
53057
|
-
var i = new prefetchRandomOrgPoolMiddleware$o$handle$slambda(this.
|
|
53058
|
-
i.
|
|
53073
|
+
var i = new prefetchRandomOrgPoolMiddleware$o$handle$slambda(this.m9c_1, this.n9c_1, this.o9c_1, completion);
|
|
53074
|
+
i.p9c_1 = $this$launchDefault;
|
|
53059
53075
|
return i;
|
|
53060
53076
|
};
|
|
53061
53077
|
function prefetchRandomOrgPoolMiddleware$o$handle$slambda_0($cardsDealerProvider, $dealerStrategy, $poolProvider, resultContinuation) {
|
|
@@ -53067,11 +53083,11 @@
|
|
|
53067
53083
|
return l;
|
|
53068
53084
|
}
|
|
53069
53085
|
function prefetchRandomOrgPoolMiddleware$$inlined$middlewareForActionType$1($dealerConfig, $poolProvider, $prefetchWhenPoolAtMost, $asyncProvider, $cardsDealerProvider) {
|
|
53070
|
-
this.
|
|
53071
|
-
this.
|
|
53072
|
-
this.
|
|
53073
|
-
this.
|
|
53074
|
-
this.
|
|
53086
|
+
this.q9c_1 = $dealerConfig;
|
|
53087
|
+
this.r9c_1 = $poolProvider;
|
|
53088
|
+
this.s9c_1 = $prefetchWhenPoolAtMost;
|
|
53089
|
+
this.t9c_1 = $asyncProvider;
|
|
53090
|
+
this.u9c_1 = $cardsDealerProvider;
|
|
53075
53091
|
}
|
|
53076
53092
|
protoOf(prefetchRandomOrgPoolMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
53077
53093
|
return action instanceof GameAction;
|
|
@@ -53087,9 +53103,9 @@
|
|
|
53087
53103
|
if (tmp) {
|
|
53088
53104
|
var table = store.state.x6r();
|
|
53089
53105
|
var tmp0_elvis_lhs = table.config.dealerStrategy;
|
|
53090
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
53091
|
-
if (dealerStrategy.isRandomOrg() && this.
|
|
53092
|
-
this.
|
|
53106
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.q9c_1.dealerStrategy : tmp0_elvis_lhs;
|
|
53107
|
+
if (dealerStrategy.isRandomOrg() && this.r9c_1.getRandomPoolsCount() <= this.s9c_1) {
|
|
53108
|
+
this.t9c_1.i6c(VOID, prefetchRandomOrgPoolMiddleware$o$handle$slambda_0(this.u9c_1, dealerStrategy, this.r9c_1, null));
|
|
53093
53109
|
}
|
|
53094
53110
|
}
|
|
53095
53111
|
next(action_0);
|
|
@@ -53102,8 +53118,8 @@
|
|
|
53102
53118
|
return new sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1(asyncProvider, provider);
|
|
53103
53119
|
}
|
|
53104
53120
|
function sendFromClientEventsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
53105
|
-
this.
|
|
53106
|
-
this.
|
|
53121
|
+
this.d9d_1 = $provider;
|
|
53122
|
+
this.e9d_1 = $action;
|
|
53107
53123
|
CoroutineImpl.call(this, resultContinuation);
|
|
53108
53124
|
}
|
|
53109
53125
|
protoOf(sendFromClientEventsMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -53124,7 +53140,7 @@
|
|
|
53124
53140
|
case 0:
|
|
53125
53141
|
this.t8_1 = 2;
|
|
53126
53142
|
this.s8_1 = 1;
|
|
53127
|
-
suspendResult = this.
|
|
53143
|
+
suspendResult = this.d9d_1.g8r(this.e9d_1, this);
|
|
53128
53144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53129
53145
|
return suspendResult;
|
|
53130
53146
|
}
|
|
@@ -53147,8 +53163,8 @@
|
|
|
53147
53163
|
while (true);
|
|
53148
53164
|
};
|
|
53149
53165
|
protoOf(sendFromClientEventsMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
53150
|
-
var i = new sendFromClientEventsMiddleware$o$handle$slambda(this.
|
|
53151
|
-
i.
|
|
53166
|
+
var i = new sendFromClientEventsMiddleware$o$handle$slambda(this.d9d_1, this.e9d_1, completion);
|
|
53167
|
+
i.f9d_1 = $this$launchDefault;
|
|
53152
53168
|
return i;
|
|
53153
53169
|
};
|
|
53154
53170
|
function sendFromClientEventsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -53160,15 +53176,15 @@
|
|
|
53160
53176
|
return l;
|
|
53161
53177
|
}
|
|
53162
53178
|
function sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $provider) {
|
|
53163
|
-
this.
|
|
53164
|
-
this.
|
|
53179
|
+
this.g9d_1 = $asyncProvider;
|
|
53180
|
+
this.h9d_1 = $provider;
|
|
53165
53181
|
}
|
|
53166
53182
|
protoOf(sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
53167
53183
|
return action instanceof FromClientAction;
|
|
53168
53184
|
};
|
|
53169
53185
|
protoOf(sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1).u6h = function (store, next, action) {
|
|
53170
53186
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
53171
|
-
this.
|
|
53187
|
+
this.g9d_1.i6c(VOID, sendFromClientEventsMiddleware$o$handle$slambda_0(this.h9d_1, action_0, null));
|
|
53172
53188
|
next(action_0);
|
|
53173
53189
|
};
|
|
53174
53190
|
protoOf(sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1).e6g = function (store, next, action) {
|
|
@@ -53228,8 +53244,8 @@
|
|
|
53228
53244
|
}
|
|
53229
53245
|
}
|
|
53230
53246
|
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {
|
|
53231
|
-
this.
|
|
53232
|
-
this.
|
|
53247
|
+
this.i9d_1 = $scenePositionProvider;
|
|
53248
|
+
this.j9d_1 = $logger;
|
|
53233
53249
|
}
|
|
53234
53250
|
protoOf(roundLifecycleMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
53235
53251
|
return action instanceof MechanicAction;
|
|
@@ -53244,7 +53260,7 @@
|
|
|
53244
53260
|
if (action_0 instanceof SceneMechanicAction) {
|
|
53245
53261
|
var table_0 = store.state.x6r();
|
|
53246
53262
|
var tmp1_subject = action_0.l8z_1;
|
|
53247
|
-
if (tmp1_subject === this.
|
|
53263
|
+
if (tmp1_subject === this.i9d_1.z91(table_0.config, table_0.gameHistory.isFirstRound, table_0.gameInfo.h8i())) {
|
|
53248
53264
|
var tmp = store.dispatch;
|
|
53249
53265
|
var tmp2_id = table_0.id;
|
|
53250
53266
|
var tmp3_gameId = table_0.gameId;
|
|
@@ -53266,7 +53282,7 @@
|
|
|
53266
53282
|
var tmp8_gameHistory = table_0.gameHistory;
|
|
53267
53283
|
var tmp9_roomMode = table_0.config.mode;
|
|
53268
53284
|
tmp(new RoundStartedAction(tmp2_id, tmp3_gameId, tmp6_roundNumber, tmp4_players, tmp5_isFirstRound, tmp7_gameNumber, tmp9_roomMode, tmp8_gameHistory));
|
|
53269
|
-
} else if (tmp1_subject === this.
|
|
53285
|
+
} else if (tmp1_subject === this.i9d_1.a92()) {
|
|
53270
53286
|
var tmp0 = action_0.sceneData;
|
|
53271
53287
|
var tmp$ret$4;
|
|
53272
53288
|
$l$block: {
|
|
@@ -53346,7 +53362,7 @@
|
|
|
53346
53362
|
tmp_3 = destination_2;
|
|
53347
53363
|
}
|
|
53348
53364
|
var playerAchievements = tmp_3;
|
|
53349
|
-
validateRatingChange(this.
|
|
53365
|
+
validateRatingChange(this.j9d_1, playerAchievements);
|
|
53350
53366
|
var tmp_4 = store.dispatch;
|
|
53351
53367
|
var tmp15_id = table_0.id;
|
|
53352
53368
|
var tmp16_gameId = table_0.gameId;
|
|
@@ -53440,8 +53456,8 @@
|
|
|
53440
53456
|
return true;
|
|
53441
53457
|
}
|
|
53442
53458
|
function putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1($lastCardInteractor, $isEnableForPlayer) {
|
|
53443
|
-
this.
|
|
53444
|
-
this.
|
|
53459
|
+
this.k9d_1 = $lastCardInteractor;
|
|
53460
|
+
this.l9d_1 = $isEnableForPlayer;
|
|
53445
53461
|
}
|
|
53446
53462
|
protoOf(putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
53447
53463
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -53450,7 +53466,7 @@
|
|
|
53450
53466
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
53451
53467
|
next(action_0);
|
|
53452
53468
|
var tmp0_table = store.state.x6r();
|
|
53453
|
-
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.
|
|
53469
|
+
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.k9d_1, this.l9d_1);
|
|
53454
53470
|
if (newAction == null)
|
|
53455
53471
|
null;
|
|
53456
53472
|
else {
|
|
@@ -53473,14 +53489,14 @@
|
|
|
53473
53489
|
var controller = $loggerFactory.q6e(gameId, roomId, $currentPlayerId);
|
|
53474
53490
|
var loggerKey = $loggerKeyMapper(gameId);
|
|
53475
53491
|
var job = $asyncProvider.i6c(VOID, fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0(controller, $loggerOutput, loggerKey, null));
|
|
53476
|
-
$loggerOutput.
|
|
53492
|
+
$loggerOutput.m9d(loggerKey, job, controller);
|
|
53477
53493
|
}
|
|
53478
53494
|
function fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj($loggerOutput, loggerKey) {
|
|
53479
|
-
$loggerOutput.
|
|
53495
|
+
$loggerOutput.n9d(loggerKey);
|
|
53480
53496
|
}
|
|
53481
53497
|
function fileLoggerByGameIdMiddleware$o$handle$slambda$slambda($loggerOutput, $loggerKey, resultContinuation) {
|
|
53482
|
-
this.
|
|
53483
|
-
this.
|
|
53498
|
+
this.w9d_1 = $loggerOutput;
|
|
53499
|
+
this.x9d_1 = $loggerKey;
|
|
53484
53500
|
CoroutineImpl.call(this, resultContinuation);
|
|
53485
53501
|
}
|
|
53486
53502
|
protoOf(fileLoggerByGameIdMiddleware$o$handle$slambda$slambda).b2d = function ($this$withContext, $completion) {
|
|
@@ -53499,7 +53515,7 @@
|
|
|
53499
53515
|
var tmp = this.s8_1;
|
|
53500
53516
|
if (tmp === 0) {
|
|
53501
53517
|
this.t8_1 = 1;
|
|
53502
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
53518
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.w9d_1, this.x9d_1);
|
|
53503
53519
|
return Unit_instance;
|
|
53504
53520
|
} else if (tmp === 1) {
|
|
53505
53521
|
throw this.v8_1;
|
|
@@ -53511,8 +53527,8 @@
|
|
|
53511
53527
|
while (true);
|
|
53512
53528
|
};
|
|
53513
53529
|
protoOf(fileLoggerByGameIdMiddleware$o$handle$slambda$slambda).c2d = function ($this$withContext, completion) {
|
|
53514
|
-
var i = new fileLoggerByGameIdMiddleware$o$handle$slambda$slambda(this.
|
|
53515
|
-
i.
|
|
53530
|
+
var i = new fileLoggerByGameIdMiddleware$o$handle$slambda$slambda(this.w9d_1, this.x9d_1, completion);
|
|
53531
|
+
i.y9d_1 = $this$withContext;
|
|
53516
53532
|
return i;
|
|
53517
53533
|
};
|
|
53518
53534
|
function fileLoggerByGameIdMiddleware$o$handle$slambda$slambda_0($loggerOutput, $loggerKey, resultContinuation) {
|
|
@@ -53524,8 +53540,8 @@
|
|
|
53524
53540
|
return l;
|
|
53525
53541
|
}
|
|
53526
53542
|
function fileLoggerByGameIdMiddleware$o$handle$slambda($loggerOutput, $loggerKey, resultContinuation) {
|
|
53527
|
-
this.
|
|
53528
|
-
this.
|
|
53543
|
+
this.h9e_1 = $loggerOutput;
|
|
53544
|
+
this.i9e_1 = $loggerKey;
|
|
53529
53545
|
CoroutineImpl.call(this, resultContinuation);
|
|
53530
53546
|
}
|
|
53531
53547
|
protoOf(fileLoggerByGameIdMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -53554,7 +53570,7 @@
|
|
|
53554
53570
|
|
|
53555
53571
|
continue $sm;
|
|
53556
53572
|
case 1:
|
|
53557
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
53573
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.h9e_1, this.i9e_1);
|
|
53558
53574
|
this.t8_1 = 5;
|
|
53559
53575
|
this.s8_1 = 2;
|
|
53560
53576
|
continue $sm;
|
|
@@ -53565,10 +53581,10 @@
|
|
|
53565
53581
|
this.t8_1 = 5;
|
|
53566
53582
|
var tmp_0 = this.v8_1;
|
|
53567
53583
|
if (tmp_0 instanceof CancellationException) {
|
|
53568
|
-
this.
|
|
53584
|
+
this.k9e_1 = this.v8_1;
|
|
53569
53585
|
this.s8_1 = 4;
|
|
53570
53586
|
var tmp_1 = NonCancellable_getInstance();
|
|
53571
|
-
suspendResult = withContext(tmp_1, fileLoggerByGameIdMiddleware$o$handle$slambda$slambda_0(this.
|
|
53587
|
+
suspendResult = withContext(tmp_1, fileLoggerByGameIdMiddleware$o$handle$slambda$slambda_0(this.h9e_1, this.i9e_1, null), this);
|
|
53572
53588
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53573
53589
|
return suspendResult;
|
|
53574
53590
|
}
|
|
@@ -53578,7 +53594,7 @@
|
|
|
53578
53594
|
}
|
|
53579
53595
|
|
|
53580
53596
|
case 4:
|
|
53581
|
-
throw this.
|
|
53597
|
+
throw this.k9e_1;
|
|
53582
53598
|
case 5:
|
|
53583
53599
|
throw this.v8_1;
|
|
53584
53600
|
}
|
|
@@ -53594,8 +53610,8 @@
|
|
|
53594
53610
|
while (true);
|
|
53595
53611
|
};
|
|
53596
53612
|
protoOf(fileLoggerByGameIdMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
53597
|
-
var i = new fileLoggerByGameIdMiddleware$o$handle$slambda(this.
|
|
53598
|
-
i.
|
|
53613
|
+
var i = new fileLoggerByGameIdMiddleware$o$handle$slambda(this.h9e_1, this.i9e_1, completion);
|
|
53614
|
+
i.j9e_1 = $this$launchDefault;
|
|
53599
53615
|
return i;
|
|
53600
53616
|
};
|
|
53601
53617
|
function fileLoggerByGameIdMiddleware$o$handle$slambda_0($loggerOutput, $loggerKey, resultContinuation) {
|
|
@@ -53607,11 +53623,11 @@
|
|
|
53607
53623
|
return l;
|
|
53608
53624
|
}
|
|
53609
53625
|
function fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1($loggerFactory, $currentPlayerId, $loggerKeyMapper, $asyncProvider, $loggerOutput) {
|
|
53610
|
-
this.
|
|
53611
|
-
this.
|
|
53612
|
-
this.
|
|
53613
|
-
this.
|
|
53614
|
-
this.
|
|
53626
|
+
this.l9e_1 = $loggerFactory;
|
|
53627
|
+
this.m9e_1 = $currentPlayerId;
|
|
53628
|
+
this.n9e_1 = $loggerKeyMapper;
|
|
53629
|
+
this.o9e_1 = $asyncProvider;
|
|
53630
|
+
this.p9e_1 = $loggerOutput;
|
|
53615
53631
|
}
|
|
53616
53632
|
protoOf(fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
53617
53633
|
return action instanceof MechanicAction;
|
|
@@ -53620,19 +53636,19 @@
|
|
|
53620
53636
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
53621
53637
|
next(action_0);
|
|
53622
53638
|
if (isInterface(action_0, FirstMechanicAction)) {
|
|
53623
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
53639
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.l9e_1, this.m9e_1, this.n9e_1, this.o9e_1, this.p9e_1, action_0.id, action_0.id);
|
|
53624
53640
|
} else {
|
|
53625
53641
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
53626
|
-
var loggerKey = this.
|
|
53627
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
53628
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
53642
|
+
var loggerKey = this.n9e_1(action_0.previousGameId);
|
|
53643
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.p9e_1, loggerKey);
|
|
53644
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.l9e_1, this.m9e_1, this.n9e_1, this.o9e_1, this.p9e_1, action_0.gameId, store.state.x6r().id);
|
|
53629
53645
|
} else {
|
|
53630
53646
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
53631
53647
|
var tmp1_safe_receiver = store.state.tableOrNull;
|
|
53632
53648
|
var gameId = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
53633
53649
|
if (!(gameId == null)) {
|
|
53634
|
-
var loggerKey_0 = this.
|
|
53635
|
-
this.
|
|
53650
|
+
var loggerKey_0 = this.n9e_1(gameId);
|
|
53651
|
+
this.o9e_1.i6c(VOID, fileLoggerByGameIdMiddleware$o$handle$slambda_0(this.p9e_1, loggerKey_0, null));
|
|
53636
53652
|
}
|
|
53637
53653
|
}
|
|
53638
53654
|
}
|
|
@@ -53642,8 +53658,8 @@
|
|
|
53642
53658
|
return this.u6h(store, next, action);
|
|
53643
53659
|
};
|
|
53644
53660
|
function clearLogFilesMiddleware$o$handle$slambda($fileSystem, $coreConfig, resultContinuation) {
|
|
53645
|
-
this.
|
|
53646
|
-
this.
|
|
53661
|
+
this.y9e_1 = $fileSystem;
|
|
53662
|
+
this.z9e_1 = $coreConfig;
|
|
53647
53663
|
CoroutineImpl.call(this, resultContinuation);
|
|
53648
53664
|
}
|
|
53649
53665
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -53664,7 +53680,7 @@
|
|
|
53664
53680
|
case 0:
|
|
53665
53681
|
this.t8_1 = 2;
|
|
53666
53682
|
this.s8_1 = 1;
|
|
53667
|
-
suspendResult = this.
|
|
53683
|
+
suspendResult = this.y9e_1.o6e(this.z9e_1.requireDirectoryPath, this);
|
|
53668
53684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53669
53685
|
return suspendResult;
|
|
53670
53686
|
}
|
|
@@ -53687,8 +53703,8 @@
|
|
|
53687
53703
|
while (true);
|
|
53688
53704
|
};
|
|
53689
53705
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
53690
|
-
var i = new clearLogFilesMiddleware$o$handle$slambda(this.
|
|
53691
|
-
i.
|
|
53706
|
+
var i = new clearLogFilesMiddleware$o$handle$slambda(this.y9e_1, this.z9e_1, completion);
|
|
53707
|
+
i.a9f_1 = $this$launchDefault;
|
|
53692
53708
|
return i;
|
|
53693
53709
|
};
|
|
53694
53710
|
function clearLogFilesMiddleware$o$handle$slambda_0($fileSystem, $coreConfig, resultContinuation) {
|
|
@@ -53700,29 +53716,29 @@
|
|
|
53700
53716
|
return l;
|
|
53701
53717
|
}
|
|
53702
53718
|
function clearLogFilesMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $fileSystem, $coreConfig) {
|
|
53703
|
-
this.
|
|
53704
|
-
this.
|
|
53705
|
-
this.
|
|
53719
|
+
this.b9f_1 = $asyncProvider;
|
|
53720
|
+
this.c9f_1 = $fileSystem;
|
|
53721
|
+
this.d9f_1 = $coreConfig;
|
|
53706
53722
|
}
|
|
53707
53723
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
53708
53724
|
return action instanceof ClearAction;
|
|
53709
53725
|
};
|
|
53710
53726
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).u6h = function (store, next, action) {
|
|
53711
53727
|
var action_0 = action instanceof ClearAction ? action : THROW_CCE();
|
|
53712
|
-
this.
|
|
53728
|
+
this.b9f_1.i6c(VOID, clearLogFilesMiddleware$o$handle$slambda_0(this.c9f_1, this.d9f_1, null));
|
|
53713
53729
|
next(action_0);
|
|
53714
53730
|
};
|
|
53715
53731
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).e6g = function (store, next, action) {
|
|
53716
53732
|
return this.u6h(store, next, action);
|
|
53717
53733
|
};
|
|
53718
53734
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
53719
|
-
this.
|
|
53735
|
+
this.e9f_1 = function_0;
|
|
53720
53736
|
}
|
|
53721
53737
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).n28 = function (value, $completion) {
|
|
53722
|
-
return this.
|
|
53738
|
+
return this.e9f_1(value, $completion);
|
|
53723
53739
|
};
|
|
53724
53740
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b3 = function () {
|
|
53725
|
-
return this.
|
|
53741
|
+
return this.e9f_1;
|
|
53726
53742
|
};
|
|
53727
53743
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
53728
53744
|
var tmp;
|
|
@@ -53743,17 +53759,17 @@
|
|
|
53743
53759
|
return hashCode(this.b3());
|
|
53744
53760
|
};
|
|
53745
53761
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
53746
|
-
this.
|
|
53762
|
+
this.n9f_1 = $controller;
|
|
53747
53763
|
CoroutineImpl.call(this, resultContinuation);
|
|
53748
53764
|
}
|
|
53749
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
53750
|
-
var tmp = this.
|
|
53765
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).p9f = function (it, $completion) {
|
|
53766
|
+
var tmp = this.q9f(it, $completion);
|
|
53751
53767
|
tmp.u8_1 = Unit_instance;
|
|
53752
53768
|
tmp.v8_1 = null;
|
|
53753
53769
|
return tmp.a9();
|
|
53754
53770
|
};
|
|
53755
53771
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).i9 = function (p1, $completion) {
|
|
53756
|
-
return this.
|
|
53772
|
+
return this.p9f(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
53757
53773
|
};
|
|
53758
53774
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).a9 = function () {
|
|
53759
53775
|
var suspendResult = this.u8_1;
|
|
@@ -53763,9 +53779,9 @@
|
|
|
53763
53779
|
switch (tmp) {
|
|
53764
53780
|
case 0:
|
|
53765
53781
|
this.t8_1 = 2;
|
|
53766
|
-
var log = this.
|
|
53782
|
+
var log = this.o9f_1.toMessageLog();
|
|
53767
53783
|
this.s8_1 = 1;
|
|
53768
|
-
suspendResult = this.
|
|
53784
|
+
suspendResult = this.n9f_1.q6f(log, this);
|
|
53769
53785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53770
53786
|
return suspendResult;
|
|
53771
53787
|
}
|
|
@@ -53787,23 +53803,23 @@
|
|
|
53787
53803
|
}
|
|
53788
53804
|
while (true);
|
|
53789
53805
|
};
|
|
53790
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
53791
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.
|
|
53792
|
-
i.
|
|
53806
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).q9f = function (it, completion) {
|
|
53807
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.n9f_1, completion);
|
|
53808
|
+
i.o9f_1 = it;
|
|
53793
53809
|
return i;
|
|
53794
53810
|
};
|
|
53795
53811
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
53796
53812
|
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
53797
53813
|
var l = function (it, $completion) {
|
|
53798
|
-
return i.
|
|
53814
|
+
return i.p9f(it, $completion);
|
|
53799
53815
|
};
|
|
53800
53816
|
l.$arity = 1;
|
|
53801
53817
|
return l;
|
|
53802
53818
|
}
|
|
53803
53819
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
53804
|
-
this.
|
|
53805
|
-
this.
|
|
53806
|
-
this.
|
|
53820
|
+
this.z9f_1 = $controller;
|
|
53821
|
+
this.a9g_1 = $$loggerOutput;
|
|
53822
|
+
this.b9g_1 = $loggerKey;
|
|
53807
53823
|
CoroutineImpl.call(this, resultContinuation);
|
|
53808
53824
|
}
|
|
53809
53825
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -53824,7 +53840,7 @@
|
|
|
53824
53840
|
case 0:
|
|
53825
53841
|
this.t8_1 = 3;
|
|
53826
53842
|
this.s8_1 = 1;
|
|
53827
|
-
suspendResult = this.
|
|
53843
|
+
suspendResult = this.z9f_1.p6f(this);
|
|
53828
53844
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53829
53845
|
return suspendResult;
|
|
53830
53846
|
}
|
|
@@ -53832,8 +53848,8 @@
|
|
|
53832
53848
|
continue $sm;
|
|
53833
53849
|
case 1:
|
|
53834
53850
|
this.s8_1 = 2;
|
|
53835
|
-
var tmp_0 = this.
|
|
53836
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
53851
|
+
var tmp_0 = this.a9g_1.d9g(this.b9g_1);
|
|
53852
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.z9f_1, null);
|
|
53837
53853
|
suspendResult = tmp_0.n27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
53838
53854
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53839
53855
|
return suspendResult;
|
|
@@ -53857,8 +53873,8 @@
|
|
|
53857
53873
|
while (true);
|
|
53858
53874
|
};
|
|
53859
53875
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).c2d = function ($this$launchDefault, completion) {
|
|
53860
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
53861
|
-
i.
|
|
53876
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.z9f_1, this.a9g_1, this.b9g_1, completion);
|
|
53877
|
+
i.c9g_1 = $this$launchDefault;
|
|
53862
53878
|
return i;
|
|
53863
53879
|
};
|
|
53864
53880
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
@@ -53975,20 +53991,20 @@
|
|
|
53975
53991
|
return null;
|
|
53976
53992
|
}
|
|
53977
53993
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $gameLifecycleInteractor) {
|
|
53978
|
-
this.
|
|
53979
|
-
this.
|
|
53980
|
-
this.
|
|
53981
|
-
this.
|
|
53982
|
-
this.
|
|
53994
|
+
this.e9g_1 = $engineLogicConfig;
|
|
53995
|
+
this.f9g_1 = $logger;
|
|
53996
|
+
this.g9g_1 = $sceneRouter;
|
|
53997
|
+
this.h9g_1 = $idsProvider;
|
|
53998
|
+
this.i9g_1 = $gameLifecycleInteractor;
|
|
53983
53999
|
}
|
|
53984
54000
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
53985
54001
|
return action instanceof MechanicAction;
|
|
53986
54002
|
};
|
|
53987
54003
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).u6h = function (store, next, action) {
|
|
53988
54004
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
53989
|
-
if (this.
|
|
54005
|
+
if (this.e9g_1.validateIfMainThread) {
|
|
53990
54006
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
53991
|
-
var logger = this.
|
|
54007
|
+
var logger = this.f9g_1;
|
|
53992
54008
|
var tmp;
|
|
53993
54009
|
try {
|
|
53994
54010
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -54015,16 +54031,16 @@
|
|
|
54015
54031
|
if (equals(action_0.p93_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
54016
54032
|
tmp_2 = listOf(createHostDealerAct(action_0.s93_1));
|
|
54017
54033
|
} else {
|
|
54018
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
54034
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.g9g_1.y91(action_0.p93_1, true).l92_1));
|
|
54019
54035
|
}
|
|
54020
54036
|
tmp_1 = tmp_2;
|
|
54021
54037
|
} else {
|
|
54022
54038
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
54023
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
54039
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.g9g_1.y91(state.x6r().config, false).l92_1));
|
|
54024
54040
|
} else {
|
|
54025
54041
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
54026
54042
|
var tmp1_config = state.x6r().config;
|
|
54027
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
54043
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.g9g_1.z91(tmp1_config, false, false).l92_1));
|
|
54028
54044
|
} else {
|
|
54029
54045
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
54030
54046
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.x6r().sceneInfo.y80_1));
|
|
@@ -54032,7 +54048,7 @@
|
|
|
54032
54048
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
54033
54049
|
var tmp2_readyPlayerId = action_0.playerId;
|
|
54034
54050
|
var tmp3_table = state.x6r();
|
|
54035
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(tmp2_readyPlayerId, tmp3_table, this.
|
|
54051
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(tmp2_readyPlayerId, tmp3_table, this.h9g_1, this.e9g_1, this.f9g_1, this.i9g_1));
|
|
54036
54052
|
} else {
|
|
54037
54053
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
54038
54054
|
var tmp_3;
|
|
@@ -54189,12 +54205,12 @@
|
|
|
54189
54205
|
}
|
|
54190
54206
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
54191
54207
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
54192
|
-
this.
|
|
54193
|
-
this.
|
|
54194
|
-
this.
|
|
54208
|
+
this.j9g_1 = playersIds;
|
|
54209
|
+
this.k9g_1 = tag;
|
|
54210
|
+
this.l9g_1 = afterReconnection;
|
|
54195
54211
|
}
|
|
54196
54212
|
protoOf(PlayerTurnTimerTag).v65 = function () {
|
|
54197
|
-
return single(this.
|
|
54213
|
+
return single(this.j9g_1);
|
|
54198
54214
|
};
|
|
54199
54215
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
54200
54216
|
if (this === other)
|
|
@@ -54203,13 +54219,13 @@
|
|
|
54203
54219
|
return false;
|
|
54204
54220
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
54205
54221
|
THROW_CCE();
|
|
54206
|
-
return equals(this.
|
|
54222
|
+
return equals(this.j9g_1, other.j9g_1);
|
|
54207
54223
|
};
|
|
54208
54224
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
54209
|
-
return hashCode(this.
|
|
54225
|
+
return hashCode(this.j9g_1);
|
|
54210
54226
|
};
|
|
54211
54227
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
54212
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
54228
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.j9g_1) + ', tag=' + this.k9g_1 + ', afterReconnection=' + this.l9g_1 + ')';
|
|
54213
54229
|
};
|
|
54214
54230
|
function playerTurnTimerStartMiddleware(botConfig, playerTurnInteractor, isEnableTimerForPlayer, mergeTimers) {
|
|
54215
54231
|
mergeTimers = mergeTimers === VOID ? false : mergeTimers;
|
|
@@ -54252,10 +54268,10 @@
|
|
|
54252
54268
|
return tmp;
|
|
54253
54269
|
}
|
|
54254
54270
|
function playerTurnTimerStartMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
54255
|
-
this.
|
|
54256
|
-
this.
|
|
54257
|
-
this.
|
|
54258
|
-
this.
|
|
54271
|
+
this.m9g_1 = $isEnableTimerForPlayer;
|
|
54272
|
+
this.n9g_1 = $playerTurnInteractor;
|
|
54273
|
+
this.o9g_1 = $botConfig;
|
|
54274
|
+
this.p9g_1 = $mergeTimers;
|
|
54259
54275
|
}
|
|
54260
54276
|
protoOf(playerTurnTimerStartMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
54261
54277
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -54271,14 +54287,14 @@
|
|
|
54271
54287
|
var _iterator__ex2g4s = tmp0.l();
|
|
54272
54288
|
while (_iterator__ex2g4s.m()) {
|
|
54273
54289
|
var element = _iterator__ex2g4s.n();
|
|
54274
|
-
if (this.
|
|
54290
|
+
if (this.m9g_1(element)) {
|
|
54275
54291
|
destination.j(element);
|
|
54276
54292
|
}
|
|
54277
54293
|
}
|
|
54278
54294
|
var startTimerForPlayers = destination;
|
|
54279
54295
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54280
54296
|
if (!startTimerForPlayers.r()) {
|
|
54281
|
-
var playerTurnModel = this.
|
|
54297
|
+
var playerTurnModel = this.n9g_1.b8z(action_0, table);
|
|
54282
54298
|
if (!(playerTurnModel == null)) {
|
|
54283
54299
|
// Inline function 'kotlin.collections.map' call
|
|
54284
54300
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -54286,11 +54302,11 @@
|
|
|
54286
54302
|
var _iterator__ex2g4s_0 = startTimerForPlayers.l();
|
|
54287
54303
|
while (_iterator__ex2g4s_0.m()) {
|
|
54288
54304
|
var item = _iterator__ex2g4s_0.n();
|
|
54289
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
54305
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.o9g_1.isDelayForBot, this.o9g_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
54290
54306
|
destination_0.j(tmp$ret$4);
|
|
54291
54307
|
}
|
|
54292
54308
|
var timeForPlayers = destination_0;
|
|
54293
|
-
if (this.
|
|
54309
|
+
if (this.p9g_1) {
|
|
54294
54310
|
// Inline function 'kotlin.collections.groupBy' call
|
|
54295
54311
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
54296
54312
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -54364,14 +54380,14 @@
|
|
|
54364
54380
|
return this.u6h(store, next, action);
|
|
54365
54381
|
};
|
|
54366
54382
|
function playerTurnTimerStopMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
54367
|
-
this.
|
|
54383
|
+
this.q9g_1 = $isEnableBotForPlayer;
|
|
54368
54384
|
}
|
|
54369
54385
|
protoOf(playerTurnTimerStopMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
54370
54386
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
54371
54387
|
};
|
|
54372
54388
|
protoOf(playerTurnTimerStopMiddleware$$inlined$middlewareForActionType$1).u6h = function (store, next, action) {
|
|
54373
54389
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
54374
|
-
if (this.
|
|
54390
|
+
if (this.q9g_1(action_0.playerId)) {
|
|
54375
54391
|
var table = store.state.x6r();
|
|
54376
54392
|
var player = getPlayer(table.players, action_0.playerId);
|
|
54377
54393
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -54392,7 +54408,7 @@
|
|
|
54392
54408
|
var _iterator__ex2g4s_0 = destination.l();
|
|
54393
54409
|
while (_iterator__ex2g4s_0.m()) {
|
|
54394
54410
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
54395
|
-
if (element_0.
|
|
54411
|
+
if (element_0.j9g_1.u1(action_0.playerId) && element_0.k9g_1 === player.i6v_1.p68()) {
|
|
54396
54412
|
tmp$ret$3 = element_0;
|
|
54397
54413
|
break $l$block;
|
|
54398
54414
|
}
|
|
@@ -54414,8 +54430,8 @@
|
|
|
54414
54430
|
return new clearOnFinishMiddleware$$inlined$middlewareForActionType$1(asyncProvider, operationsToWait);
|
|
54415
54431
|
}
|
|
54416
54432
|
function clearOnFinishMiddleware$o$handle$slambda($operationsToWait, $store, resultContinuation) {
|
|
54417
|
-
this.
|
|
54418
|
-
this.
|
|
54433
|
+
this.z9g_1 = $operationsToWait;
|
|
54434
|
+
this.a9h_1 = $store;
|
|
54419
54435
|
CoroutineImpl.call(this, resultContinuation);
|
|
54420
54436
|
}
|
|
54421
54437
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -54435,18 +54451,18 @@
|
|
|
54435
54451
|
switch (tmp) {
|
|
54436
54452
|
case 0:
|
|
54437
54453
|
this.t8_1 = 4;
|
|
54438
|
-
this.
|
|
54454
|
+
this.c9h_1 = this.z9g_1.l();
|
|
54439
54455
|
this.s8_1 = 1;
|
|
54440
54456
|
continue $sm;
|
|
54441
54457
|
case 1:
|
|
54442
|
-
if (!this.
|
|
54458
|
+
if (!this.c9h_1.m()) {
|
|
54443
54459
|
this.s8_1 = 3;
|
|
54444
54460
|
continue $sm;
|
|
54445
54461
|
}
|
|
54446
54462
|
|
|
54447
|
-
var element = this.
|
|
54463
|
+
var element = this.c9h_1.n();
|
|
54448
54464
|
this.s8_1 = 2;
|
|
54449
|
-
suspendResult = element.
|
|
54465
|
+
suspendResult = element.d9h(this);
|
|
54450
54466
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
54451
54467
|
return suspendResult;
|
|
54452
54468
|
}
|
|
@@ -54456,8 +54472,8 @@
|
|
|
54456
54472
|
this.s8_1 = 1;
|
|
54457
54473
|
continue $sm;
|
|
54458
54474
|
case 3:
|
|
54459
|
-
var tmp_0 = this.
|
|
54460
|
-
var tmp0_safe_receiver = this.
|
|
54475
|
+
var tmp_0 = this.a9h_1.dispatch;
|
|
54476
|
+
var tmp0_safe_receiver = this.a9h_1.state.x6q_1;
|
|
54461
54477
|
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t92_1));
|
|
54462
54478
|
return Unit_instance;
|
|
54463
54479
|
case 4:
|
|
@@ -54475,8 +54491,8 @@
|
|
|
54475
54491
|
while (true);
|
|
54476
54492
|
};
|
|
54477
54493
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
54478
|
-
var i = new clearOnFinishMiddleware$o$handle$slambda(this.
|
|
54479
|
-
i.
|
|
54494
|
+
var i = new clearOnFinishMiddleware$o$handle$slambda(this.z9g_1, this.a9h_1, completion);
|
|
54495
|
+
i.b9h_1 = $this$launchDefault;
|
|
54480
54496
|
return i;
|
|
54481
54497
|
};
|
|
54482
54498
|
function clearOnFinishMiddleware$o$handle$slambda_0($operationsToWait, $store, resultContinuation) {
|
|
@@ -54488,15 +54504,15 @@
|
|
|
54488
54504
|
return l;
|
|
54489
54505
|
}
|
|
54490
54506
|
function clearOnFinishMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $operationsToWait) {
|
|
54491
|
-
this.
|
|
54492
|
-
this.
|
|
54507
|
+
this.e9h_1 = $asyncProvider;
|
|
54508
|
+
this.f9h_1 = $operationsToWait;
|
|
54493
54509
|
}
|
|
54494
54510
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
54495
54511
|
return action instanceof FinishGameMechanicAction;
|
|
54496
54512
|
};
|
|
54497
54513
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).u6h = function (store, next, action) {
|
|
54498
54514
|
next(action instanceof FinishGameMechanicAction ? action : THROW_CCE());
|
|
54499
|
-
this.
|
|
54515
|
+
this.e9h_1.i6c(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.f9h_1, store, null));
|
|
54500
54516
|
};
|
|
54501
54517
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).e6g = function (store, next, action) {
|
|
54502
54518
|
return this.u6h(store, next, action);
|
|
@@ -54506,12 +54522,12 @@
|
|
|
54506
54522
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
54507
54523
|
}
|
|
54508
54524
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
54509
|
-
this.
|
|
54510
|
-
this.
|
|
54511
|
-
this.
|
|
54512
|
-
this.
|
|
54513
|
-
this.
|
|
54514
|
-
this.
|
|
54525
|
+
this.o9h_1 = $action;
|
|
54526
|
+
this.p9h_1 = $sceneFactory;
|
|
54527
|
+
this.q9h_1 = $table;
|
|
54528
|
+
this.r9h_1 = $router;
|
|
54529
|
+
this.s9h_1 = $store;
|
|
54530
|
+
this.t9h_1 = $sceneValidationInteractor;
|
|
54515
54531
|
CoroutineImpl.call(this, resultContinuation);
|
|
54516
54532
|
}
|
|
54517
54533
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -54531,10 +54547,10 @@
|
|
|
54531
54547
|
switch (tmp) {
|
|
54532
54548
|
case 0:
|
|
54533
54549
|
this.t8_1 = 3;
|
|
54534
|
-
var tmp0_subject = this.
|
|
54550
|
+
var tmp0_subject = this.o9h_1;
|
|
54535
54551
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
54536
54552
|
this.s8_1 = 1;
|
|
54537
|
-
suspendResult = this.
|
|
54553
|
+
suspendResult = this.p9h_1.u91(this.o9h_1.u96_1, this.q9h_1, this);
|
|
54538
54554
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
54539
54555
|
return suspendResult;
|
|
54540
54556
|
}
|
|
@@ -54542,37 +54558,37 @@
|
|
|
54542
54558
|
} else {
|
|
54543
54559
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
54544
54560
|
var tmp_0 = this;
|
|
54545
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
54561
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.q9h_1.players));
|
|
54546
54562
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
54547
|
-
var nextSceneCommand = this.
|
|
54563
|
+
var nextSceneCommand = this.r9h_1.f92(this.o9h_1.t96_1, !(gameWinnerPlayerId == null), false, this.q9h_1.config);
|
|
54548
54564
|
var tmp_1;
|
|
54549
54565
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
54550
54566
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.l92_1));
|
|
54551
54567
|
} else {
|
|
54552
54568
|
noWhenBranchMatchedException();
|
|
54553
54569
|
}
|
|
54554
|
-
tmp_0.
|
|
54570
|
+
tmp_0.v9h_1 = tmp_1;
|
|
54555
54571
|
this.s8_1 = 2;
|
|
54556
54572
|
continue $sm;
|
|
54557
54573
|
} else {
|
|
54558
54574
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
54559
54575
|
var tmp_2 = this;
|
|
54560
|
-
this.
|
|
54561
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
54562
|
-
tmp_2.
|
|
54576
|
+
this.t9h_1.c92(this.s9h_1.state.y6q_1, 'Timers are not empty before scene act ' + this.o9h_1.v96_1 + ', ' + this.o9h_1.w96_1);
|
|
54577
|
+
var mechanicAction = new SceneActMechanicAction(this.o9h_1.v96_1, this.o9h_1.w96_1, this.o9h_1.x96_1);
|
|
54578
|
+
tmp_2.v9h_1 = listOf(mechanicAction);
|
|
54563
54579
|
this.s8_1 = 2;
|
|
54564
54580
|
continue $sm;
|
|
54565
54581
|
} else {
|
|
54566
54582
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
54567
54583
|
var tmp_3 = this;
|
|
54568
|
-
var navigationCommand = this.
|
|
54584
|
+
var navigationCommand = this.r9h_1.h92(this.o9h_1.y96_1, this.q9h_1);
|
|
54569
54585
|
var tmp_4;
|
|
54570
54586
|
if (navigationCommand instanceof FinishActNext) {
|
|
54571
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
54587
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.q9h_1.sceneInfo.y80_1));
|
|
54572
54588
|
} else {
|
|
54573
54589
|
if (navigationCommand instanceof MoveActNext) {
|
|
54574
54590
|
var tmp9_actId = navigationCommand.n92_1;
|
|
54575
|
-
var tmp0 = this.
|
|
54591
|
+
var tmp0 = this.q9h_1.sceneInfo.b81_1;
|
|
54576
54592
|
var tmp$ret$2;
|
|
54577
54593
|
l$ret$3: do {
|
|
54578
54594
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -54584,13 +54600,13 @@
|
|
|
54584
54600
|
while (false);
|
|
54585
54601
|
var tmp10_sceneData = tmp$ret$2;
|
|
54586
54602
|
var tmp11_payload = navigationCommand.o92_1;
|
|
54587
|
-
var actData = this.
|
|
54588
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
54603
|
+
var actData = this.p9h_1.v91(tmp9_actId, tmp10_sceneData, tmp11_payload, this.q9h_1);
|
|
54604
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.q9h_1.sceneInfo.y80_1, navigationCommand.n92_1, actData));
|
|
54589
54605
|
} else {
|
|
54590
54606
|
noWhenBranchMatchedException();
|
|
54591
54607
|
}
|
|
54592
54608
|
}
|
|
54593
|
-
tmp_3.
|
|
54609
|
+
tmp_3.v9h_1 = tmp_4;
|
|
54594
54610
|
this.s8_1 = 2;
|
|
54595
54611
|
continue $sm;
|
|
54596
54612
|
} else {
|
|
@@ -54604,19 +54620,19 @@
|
|
|
54604
54620
|
break;
|
|
54605
54621
|
case 1:
|
|
54606
54622
|
var sceneData = suspendResult;
|
|
54607
|
-
var navigationActCommand = this.
|
|
54623
|
+
var navigationActCommand = this.r9h_1.e92(sceneData, this.q9h_1);
|
|
54608
54624
|
var tmp_6;
|
|
54609
54625
|
if (navigationActCommand == null) {
|
|
54610
54626
|
tmp_6 = null;
|
|
54611
54627
|
} else {
|
|
54612
54628
|
var tmp0_actId = navigationActCommand.n92_1;
|
|
54613
54629
|
var tmp1_payload = navigationActCommand.o92_1;
|
|
54614
|
-
tmp_6 = this.
|
|
54630
|
+
tmp_6 = this.p9h_1.v91(tmp0_actId, sceneData, tmp1_payload, this.q9h_1);
|
|
54615
54631
|
}
|
|
54616
54632
|
|
|
54617
54633
|
var actData_0 = tmp_6;
|
|
54618
|
-
var state = this.
|
|
54619
|
-
this.
|
|
54634
|
+
var state = this.s9h_1.state;
|
|
54635
|
+
this.t9h_1.c92(state.y6q_1, 'Timers are not empty before scene ' + this.o9h_1.u96_1);
|
|
54620
54636
|
var tmp_7;
|
|
54621
54637
|
if (equals(state.x6r().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
54622
54638
|
var tmp2_safe_receiver = state.x6r().sceneInfo.c81_1;
|
|
@@ -54642,18 +54658,18 @@
|
|
|
54642
54658
|
}
|
|
54643
54659
|
|
|
54644
54660
|
var currentTurnPlayerId = tmp_7;
|
|
54645
|
-
var tmp5_sceneId = this.
|
|
54661
|
+
var tmp5_sceneId = this.o9h_1.u96_1;
|
|
54646
54662
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
54647
54663
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
54648
|
-
this.
|
|
54664
|
+
this.v9h_1 = listOfNotNull_0(mechanicAction_0);
|
|
54649
54665
|
this.s8_1 = 2;
|
|
54650
54666
|
continue $sm;
|
|
54651
54667
|
case 2:
|
|
54652
|
-
var navigationActions = this.
|
|
54668
|
+
var navigationActions = this.v9h_1;
|
|
54653
54669
|
var _iterator__ex2g4s = navigationActions.l();
|
|
54654
54670
|
while (_iterator__ex2g4s.m()) {
|
|
54655
54671
|
var element = _iterator__ex2g4s.n();
|
|
54656
|
-
this.
|
|
54672
|
+
this.s9h_1.dispatch(element);
|
|
54657
54673
|
}
|
|
54658
54674
|
|
|
54659
54675
|
return Unit_instance;
|
|
@@ -54672,8 +54688,8 @@
|
|
|
54672
54688
|
while (true);
|
|
54673
54689
|
};
|
|
54674
54690
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
54675
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.
|
|
54676
|
-
i.
|
|
54691
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.o9h_1, this.p9h_1, this.q9h_1, this.r9h_1, this.s9h_1, this.t9h_1, completion);
|
|
54692
|
+
i.u9h_1 = $this$launchDefault;
|
|
54677
54693
|
return i;
|
|
54678
54694
|
};
|
|
54679
54695
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -54685,10 +54701,10 @@
|
|
|
54685
54701
|
return l;
|
|
54686
54702
|
}
|
|
54687
54703
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
54688
|
-
this.
|
|
54689
|
-
this.
|
|
54690
|
-
this.
|
|
54691
|
-
this.
|
|
54704
|
+
this.w9h_1 = $asyncProvider;
|
|
54705
|
+
this.x9h_1 = $sceneFactory;
|
|
54706
|
+
this.y9h_1 = $router;
|
|
54707
|
+
this.z9h_1 = $sceneValidationInteractor;
|
|
54692
54708
|
}
|
|
54693
54709
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
54694
54710
|
return action instanceof SceneLifecycleAction;
|
|
@@ -54697,7 +54713,7 @@
|
|
|
54697
54713
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
54698
54714
|
var table = store.state.x6r();
|
|
54699
54715
|
next(action_0);
|
|
54700
|
-
this.
|
|
54716
|
+
this.w9h_1.i6c(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.x9h_1, table, this.y9h_1, store, this.z9h_1, null));
|
|
54701
54717
|
};
|
|
54702
54718
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).e6g = function (store, next, action) {
|
|
54703
54719
|
return this.u6h(store, next, action);
|
|
@@ -54743,7 +54759,7 @@
|
|
|
54743
54759
|
return new checkBotsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
54744
54760
|
}
|
|
54745
54761
|
function checkBotsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
54746
|
-
this.
|
|
54762
|
+
this.a9i_1 = $logger;
|
|
54747
54763
|
}
|
|
54748
54764
|
protoOf(checkBotsMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
54749
54765
|
return action instanceof SceneMechanicAction;
|
|
@@ -54791,7 +54807,7 @@
|
|
|
54791
54807
|
var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.n67_1);
|
|
54792
54808
|
destination.j(tmp$ret$2);
|
|
54793
54809
|
}
|
|
54794
|
-
this.
|
|
54810
|
+
this.a9i_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
|
|
54795
54811
|
}
|
|
54796
54812
|
}
|
|
54797
54813
|
next(action_0);
|
|
@@ -54804,7 +54820,7 @@
|
|
|
54804
54820
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
54805
54821
|
}
|
|
54806
54822
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
54807
|
-
this.
|
|
54823
|
+
this.b9i_1 = $logger;
|
|
54808
54824
|
}
|
|
54809
54825
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
54810
54826
|
return action instanceof PutCardMechanicAction;
|
|
@@ -54837,7 +54853,7 @@
|
|
|
54837
54853
|
var bribes = destination;
|
|
54838
54854
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
54839
54855
|
if (!bribes.r()) {
|
|
54840
|
-
this.
|
|
54856
|
+
this.b9i_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.u8z_1.toString() + ', bribes = ' + toString(bribes));
|
|
54841
54857
|
}
|
|
54842
54858
|
}
|
|
54843
54859
|
next(action_0);
|
|
@@ -54850,7 +54866,7 @@
|
|
|
54850
54866
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
54851
54867
|
}
|
|
54852
54868
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
54853
|
-
this.
|
|
54869
|
+
this.c9i_1 = $logger;
|
|
54854
54870
|
}
|
|
54855
54871
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
54856
54872
|
return action instanceof SceneMechanicAction;
|
|
@@ -55067,7 +55083,7 @@
|
|
|
55067
55083
|
}
|
|
55068
55084
|
var notValidMessage = tmp;
|
|
55069
55085
|
if (!(notValidMessage == null)) {
|
|
55070
|
-
this.
|
|
55086
|
+
this.c9i_1.w('Validation', toString_0(notValidMessage));
|
|
55071
55087
|
}
|
|
55072
55088
|
}
|
|
55073
55089
|
}
|
|
@@ -55155,7 +55171,7 @@
|
|
|
55155
55171
|
};
|
|
55156
55172
|
}
|
|
55157
55173
|
function gameIsNotFinishedTimeoutMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
55158
|
-
this.
|
|
55174
|
+
this.d9i_1 = $logger;
|
|
55159
55175
|
}
|
|
55160
55176
|
protoOf(gameIsNotFinishedTimeoutMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55161
55177
|
return action instanceof TimerTickAction;
|
|
@@ -55165,7 +55181,7 @@
|
|
|
55165
55181
|
next(action_0);
|
|
55166
55182
|
var tmp = action_0.b6g_1;
|
|
55167
55183
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
55168
|
-
this.
|
|
55184
|
+
this.d9i_1.w('Validation', 'gameIsNotFinishedTimeoutMiddleware: finish event is not received');
|
|
55169
55185
|
store.dispatch(new FinishGameMechanicAction(store.state.p92().s92_1, store.state.x6r().isGameFinished));
|
|
55170
55186
|
}
|
|
55171
55187
|
};
|
|
@@ -55230,7 +55246,7 @@
|
|
|
55230
55246
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
55231
55247
|
}
|
|
55232
55248
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
55233
|
-
this.
|
|
55249
|
+
this.e9i_1 = $logger;
|
|
55234
55250
|
}
|
|
55235
55251
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55236
55252
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -55238,7 +55254,7 @@
|
|
|
55238
55254
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).u6h = function (store, next, action) {
|
|
55239
55255
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
55240
55256
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
55241
|
-
this.
|
|
55257
|
+
this.e9i_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
55242
55258
|
}
|
|
55243
55259
|
next(action_0);
|
|
55244
55260
|
};
|
|
@@ -55254,7 +55270,7 @@
|
|
|
55254
55270
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
55255
55271
|
}
|
|
55256
55272
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
55257
|
-
this.
|
|
55273
|
+
this.f9i_1 = $logger;
|
|
55258
55274
|
}
|
|
55259
55275
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55260
55276
|
return action instanceof SceneMechanicAction;
|
|
@@ -55265,7 +55281,7 @@
|
|
|
55265
55281
|
if (state.z6r()) {
|
|
55266
55282
|
var sceneInfo = state.x6r().sceneInfo;
|
|
55267
55283
|
if (!get_isWaitingScene(sceneInfo.y80_1) && Companion_instance_5.g6s(sceneInfo.y80_1, action_0.l8z_1) && equals(sceneInfo.b81_1, action_0.sceneData)) {
|
|
55268
|
-
this.
|
|
55284
|
+
this.f9i_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
55269
55285
|
}
|
|
55270
55286
|
}
|
|
55271
55287
|
next(action_0);
|
|
@@ -55274,7 +55290,7 @@
|
|
|
55274
55290
|
return this.u6h(store, next, action);
|
|
55275
55291
|
};
|
|
55276
55292
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
55277
|
-
this.
|
|
55293
|
+
this.g9i_1 = $logger;
|
|
55278
55294
|
}
|
|
55279
55295
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55280
55296
|
return action instanceof SceneActMechanicAction;
|
|
@@ -55285,7 +55301,7 @@
|
|
|
55285
55301
|
if (state.z6r()) {
|
|
55286
55302
|
var sceneInfo = state.x6r().sceneInfo;
|
|
55287
55303
|
if (Companion_instance_5.g6s(sceneInfo.y80_1, action_0.d8z_1) && sceneInfo.a81_1 === action_0.e8z_1 && equals(sceneInfo.c81_1, action_0.f8z_1)) {
|
|
55288
|
-
this.
|
|
55304
|
+
this.g9i_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
55289
55305
|
}
|
|
55290
55306
|
}
|
|
55291
55307
|
next(action_0);
|
|
@@ -55314,7 +55330,7 @@
|
|
|
55314
55330
|
var _iterator__ex2g4s = enableCheckWhen.l();
|
|
55315
55331
|
while (_iterator__ex2g4s.m()) {
|
|
55316
55332
|
var element = _iterator__ex2g4s.n();
|
|
55317
|
-
if (!element.
|
|
55333
|
+
if (!element.a9a(state, action)) {
|
|
55318
55334
|
tmp$ret$0 = false;
|
|
55319
55335
|
break $l$block_0;
|
|
55320
55336
|
}
|
|
@@ -55339,13 +55355,13 @@
|
|
|
55339
55355
|
function sendErrorToClient($this, store, playerId, message, reason) {
|
|
55340
55356
|
var tmp = store.dispatch;
|
|
55341
55357
|
var tmp1_table = store.state.x6r();
|
|
55342
|
-
var tmp2_aid = $this.
|
|
55358
|
+
var tmp2_aid = $this.l99_1.d6e();
|
|
55343
55359
|
var tmp3_deliveryPayload = Companion_instance_173.userFromTable(tmp2_aid, tmp1_table, playerId);
|
|
55344
55360
|
var tmp4_error = new ErrorState(message, VOID, new GameErrorReason(reason));
|
|
55345
55361
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
55346
55362
|
}
|
|
55347
55363
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
55348
|
-
this.
|
|
55364
|
+
this.h9i_1 = this$0;
|
|
55349
55365
|
}
|
|
55350
55366
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55351
55367
|
return action instanceof FromClientAction;
|
|
@@ -55371,18 +55387,18 @@
|
|
|
55371
55387
|
var tmp$ret$1 = item.playerId;
|
|
55372
55388
|
destination.j(tmp$ret$1);
|
|
55373
55389
|
}
|
|
55374
|
-
this.
|
|
55390
|
+
this.h9i_1.m99_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
55375
55391
|
break $l$block_3;
|
|
55376
55392
|
}
|
|
55377
55393
|
if (!get_isCreated(store.state)) {
|
|
55378
55394
|
if (table.sceneInfo.b7g()) {
|
|
55379
|
-
this.
|
|
55395
|
+
this.h9i_1.m99_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
55380
55396
|
} else {
|
|
55381
55397
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
55382
|
-
if (this.
|
|
55383
|
-
sendErrorToClient(this.
|
|
55398
|
+
if (this.h9i_1.o99_1) {
|
|
55399
|
+
sendErrorToClient(this.h9i_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
55384
55400
|
}
|
|
55385
|
-
this.
|
|
55401
|
+
this.h9i_1.m99_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
55386
55402
|
}
|
|
55387
55403
|
break $l$block_3;
|
|
55388
55404
|
}
|
|
@@ -55390,18 +55406,18 @@
|
|
|
55390
55406
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n67_1;
|
|
55391
55407
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
55392
55408
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
55393
|
-
if (this.
|
|
55394
|
-
sendErrorToClient(this.
|
|
55409
|
+
if (this.h9i_1.o99_1) {
|
|
55410
|
+
sendErrorToClient(this.h9i_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
55395
55411
|
}
|
|
55396
|
-
this.
|
|
55412
|
+
this.h9i_1.m99_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
55397
55413
|
break $l$block_3;
|
|
55398
55414
|
}
|
|
55399
|
-
if (this.
|
|
55415
|
+
if (this.h9i_1.n99_1 && checkIfEventIsDuplicated(this.h9i_1, table, tmp4)) {
|
|
55400
55416
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
55401
|
-
if (this.
|
|
55402
|
-
sendErrorToClient(this.
|
|
55417
|
+
if (this.h9i_1.o99_1) {
|
|
55418
|
+
sendErrorToClient(this.h9i_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
55403
55419
|
}
|
|
55404
|
-
this.
|
|
55420
|
+
this.h9i_1.m99_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
55405
55421
|
break $l$block_3;
|
|
55406
55422
|
}
|
|
55407
55423
|
next(tmp4);
|
|
@@ -55411,12 +55427,12 @@
|
|
|
55411
55427
|
return this.u6h(store, next, action);
|
|
55412
55428
|
};
|
|
55413
55429
|
function FromClientValidationMiddleware(idsProvider, logger, validateEventsDuplication, sendErrorToClient) {
|
|
55414
|
-
this.
|
|
55415
|
-
this.
|
|
55416
|
-
this.
|
|
55417
|
-
this.
|
|
55430
|
+
this.l99_1 = idsProvider;
|
|
55431
|
+
this.m99_1 = logger;
|
|
55432
|
+
this.n99_1 = validateEventsDuplication;
|
|
55433
|
+
this.o99_1 = sendErrorToClient;
|
|
55418
55434
|
}
|
|
55419
|
-
protoOf(FromClientValidationMiddleware).
|
|
55435
|
+
protoOf(FromClientValidationMiddleware).p99 = function () {
|
|
55420
55436
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55421
55437
|
return new FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this);
|
|
55422
55438
|
};
|
|
@@ -55448,13 +55464,13 @@
|
|
|
55448
55464
|
}
|
|
55449
55465
|
function sendErrorToClient_0($this, store, playerId, message, reason) {
|
|
55450
55466
|
var tmp = store.dispatch;
|
|
55451
|
-
var tmp0_deliveryPayload = Companion_instance_173.userFromTable($this.
|
|
55467
|
+
var tmp0_deliveryPayload = Companion_instance_173.userFromTable($this.t99_1.d6e(), store.state.x6r(), playerId);
|
|
55452
55468
|
var tmp1_error = new ErrorState(message, VOID, new GameErrorReason(reason));
|
|
55453
55469
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
55454
55470
|
}
|
|
55455
55471
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
55456
|
-
this.
|
|
55457
|
-
this.
|
|
55472
|
+
this.i9i_1 = $enableCheckWhen;
|
|
55473
|
+
this.j9i_1 = this$0;
|
|
55458
55474
|
}
|
|
55459
55475
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55460
55476
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -55463,7 +55479,7 @@
|
|
|
55463
55479
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
55464
55480
|
$l$block_2: {
|
|
55465
55481
|
var state = store.state;
|
|
55466
|
-
if (!isEnabledCheck(this.
|
|
55482
|
+
if (!isEnabledCheck(this.i9i_1, state, tmp4)) {
|
|
55467
55483
|
next(tmp4);
|
|
55468
55484
|
break $l$block_2;
|
|
55469
55485
|
}
|
|
@@ -55483,23 +55499,23 @@
|
|
|
55483
55499
|
var tmp$ret$1 = item.playerId;
|
|
55484
55500
|
destination.j(tmp$ret$1);
|
|
55485
55501
|
}
|
|
55486
|
-
this.
|
|
55502
|
+
this.j9i_1.u99_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
55487
55503
|
break $l$block_2;
|
|
55488
55504
|
}
|
|
55489
55505
|
var table = store.state.x6r();
|
|
55490
55506
|
var player = getPlayer(table.players, tmp4.z92_1);
|
|
55491
55507
|
var tmp0_safe_receiver = player.i6v_1.h67_1;
|
|
55492
55508
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n67_1;
|
|
55493
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
55509
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.j9i_1, connectionState, tmp4.y92_1);
|
|
55494
55510
|
var duplicate = _destruct__k2r9zo.oe();
|
|
55495
55511
|
var report = _destruct__k2r9zo.pe();
|
|
55496
55512
|
if (!(connectionState == null) && duplicate) {
|
|
55497
55513
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
55498
55514
|
if (report) {
|
|
55499
|
-
if (this.
|
|
55500
|
-
sendErrorToClient_0(this.
|
|
55515
|
+
if (this.j9i_1.v99_1) {
|
|
55516
|
+
sendErrorToClient_0(this.j9i_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
55501
55517
|
}
|
|
55502
|
-
this.
|
|
55518
|
+
this.j9i_1.u99_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
55503
55519
|
}
|
|
55504
55520
|
break $l$block_2;
|
|
55505
55521
|
} else {
|
|
@@ -55511,26 +55527,26 @@
|
|
|
55511
55527
|
return this.u6h(store, next, action);
|
|
55512
55528
|
};
|
|
55513
55529
|
function PlayerConnectionValidationMiddlewares(idsProvider, logger, sendErrorToClient) {
|
|
55514
|
-
this.
|
|
55515
|
-
this.
|
|
55516
|
-
this.
|
|
55530
|
+
this.t99_1 = idsProvider;
|
|
55531
|
+
this.u99_1 = logger;
|
|
55532
|
+
this.v99_1 = sendErrorToClient;
|
|
55517
55533
|
}
|
|
55518
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
55534
|
+
protoOf(PlayerConnectionValidationMiddlewares).k9i = function (enableCheckWhen) {
|
|
55519
55535
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55520
55536
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
55521
55537
|
};
|
|
55522
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
55538
|
+
protoOf(PlayerConnectionValidationMiddlewares).w99 = function (enableCheckWhen, $super) {
|
|
55523
55539
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
55524
|
-
return $super === VOID ? this.
|
|
55540
|
+
return $super === VOID ? this.k9i(enableCheckWhen) : $super.k9i.call(this, enableCheckWhen);
|
|
55525
55541
|
};
|
|
55526
55542
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
55527
55543
|
return function () {
|
|
55528
|
-
return this$0.
|
|
55544
|
+
return this$0.d99_1.f90($action, $table);
|
|
55529
55545
|
};
|
|
55530
55546
|
}
|
|
55531
55547
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
55532
55548
|
return function () {
|
|
55533
|
-
return this$0.
|
|
55549
|
+
return this$0.d99_1.g90($action, $table);
|
|
55534
55550
|
};
|
|
55535
55551
|
}
|
|
55536
55552
|
function isWrongPlayerTurn($this, store, playersWithTurn, player, action) {
|
|
@@ -55555,10 +55571,10 @@
|
|
|
55555
55571
|
destination_0.j(tmp$ret$3);
|
|
55556
55572
|
}
|
|
55557
55573
|
var message = 'Is not player turn:' + ('expected = ' + toString(destination_0) + ', ') + ('actual = ' + player.playerId);
|
|
55558
|
-
if ($this.
|
|
55574
|
+
if ($this.e99_1) {
|
|
55559
55575
|
sendErrorToClient_1($this, store, player.playerId, message, Reason_WRONG_PLAYER_TURN_getInstance());
|
|
55560
55576
|
}
|
|
55561
|
-
$this.
|
|
55577
|
+
$this.g99_1.w('Validation', message + ', action: ' + toString(action), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
55562
55578
|
return true;
|
|
55563
55579
|
}
|
|
55564
55580
|
return false;
|
|
@@ -55571,7 +55587,7 @@
|
|
|
55571
55587
|
tmp = null;
|
|
55572
55588
|
} else {
|
|
55573
55589
|
// Inline function 'kotlin.let' call
|
|
55574
|
-
tmp = $this.
|
|
55590
|
+
tmp = $this.d99_1.h90(tmp1_safe_receiver, store.state.x6r().gameInfo.round);
|
|
55575
55591
|
}
|
|
55576
55592
|
var receivedTag = tmp;
|
|
55577
55593
|
if (!(receivedTag == null) && !Companion_instance_2.q65(receivedTag, 'v5')) {
|
|
@@ -55595,7 +55611,7 @@
|
|
|
55595
55611
|
destination_0.j(tmp$ret$5);
|
|
55596
55612
|
}
|
|
55597
55613
|
var message = 'Wrong version for IdempotencyTag:' + tmp_0 + ('actual = ' + toString(destination_0));
|
|
55598
|
-
$this.
|
|
55614
|
+
$this.g99_1.v('Validation', message + ', action: ' + toString(action));
|
|
55599
55615
|
return false;
|
|
55600
55616
|
}
|
|
55601
55617
|
var actualTag = receivedTag == null ? fallbackTag() : receivedTag;
|
|
@@ -55624,7 +55640,7 @@
|
|
|
55624
55640
|
if (sendErrorToClient) {
|
|
55625
55641
|
sendErrorToClient_1($this, store, player.playerId, message_0, Reason_WRONG_PLAYER_TURN_getInstance());
|
|
55626
55642
|
}
|
|
55627
|
-
$this.
|
|
55643
|
+
$this.g99_1.w('Validation', message_0 + ', action: ' + toString(action), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
55628
55644
|
return true;
|
|
55629
55645
|
} else if (!(actualTag == expectedTag)) {
|
|
55630
55646
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -55650,7 +55666,7 @@
|
|
|
55650
55666
|
if (sendErrorToClient) {
|
|
55651
55667
|
sendErrorToClient_1($this, store, player.playerId, message_1, Reason_WRONG_PLAYER_TURN_getInstance());
|
|
55652
55668
|
}
|
|
55653
|
-
$this.
|
|
55669
|
+
$this.g99_1.w('Validation', message_1 + ', action: ' + toString(action), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
55654
55670
|
return true;
|
|
55655
55671
|
}
|
|
55656
55672
|
return false;
|
|
@@ -55661,13 +55677,13 @@
|
|
|
55661
55677
|
}
|
|
55662
55678
|
function sendErrorToClient_1($this, store, playerId, message, reason) {
|
|
55663
55679
|
var tmp = store.dispatch;
|
|
55664
|
-
var tmp0_deliveryPayload = Companion_instance_173.userFromTable($this.
|
|
55680
|
+
var tmp0_deliveryPayload = Companion_instance_173.userFromTable($this.h99_1.d6e(), store.state.x6r(), playerId);
|
|
55665
55681
|
var tmp1_error = new ErrorState(message, VOID, new GameErrorReason(reason));
|
|
55666
55682
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
55667
55683
|
}
|
|
55668
55684
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
55669
|
-
this.
|
|
55670
|
-
this.
|
|
55685
|
+
this.l9i_1 = $enableCheckWhen;
|
|
55686
|
+
this.m9i_1 = this$0;
|
|
55671
55687
|
}
|
|
55672
55688
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55673
55689
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -55676,19 +55692,19 @@
|
|
|
55676
55692
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
55677
55693
|
$l$block_1: {
|
|
55678
55694
|
var state = store.state;
|
|
55679
|
-
if (!isEnabledCheck(this.
|
|
55695
|
+
if (!isEnabledCheck(this.l9i_1, state, tmp4)) {
|
|
55680
55696
|
next(tmp4);
|
|
55681
55697
|
break $l$block_1;
|
|
55682
55698
|
}
|
|
55683
55699
|
var table = state.x6r();
|
|
55684
55700
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
55685
55701
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
55686
|
-
if (isWrongPlayerTurn(this.
|
|
55702
|
+
if (isWrongPlayerTurn(this.m9i_1, store, playersWithTurn, player, tmp4)) {
|
|
55687
55703
|
break $l$block_1;
|
|
55688
55704
|
}
|
|
55689
55705
|
var tmp;
|
|
55690
|
-
if (this.
|
|
55691
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
55706
|
+
if (this.m9i_1.f99_1.validateFromClientActionTags) {
|
|
55707
|
+
tmp = isWrongPlayerTurnTag$default(this.m9i_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.m9i_1, tmp4, table));
|
|
55692
55708
|
} else {
|
|
55693
55709
|
tmp = false;
|
|
55694
55710
|
}
|
|
@@ -55702,8 +55718,8 @@
|
|
|
55702
55718
|
return this.u6h(store, next, action);
|
|
55703
55719
|
};
|
|
55704
55720
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
55705
|
-
this.
|
|
55706
|
-
this.
|
|
55721
|
+
this.n9i_1 = $enableCheckWhen;
|
|
55722
|
+
this.o9i_1 = this$0;
|
|
55707
55723
|
}
|
|
55708
55724
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55709
55725
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -55713,17 +55729,17 @@
|
|
|
55713
55729
|
$l$block_1: {
|
|
55714
55730
|
var table = store.state.x6r();
|
|
55715
55731
|
var player = getPlayerTurn(tmp4, table.players);
|
|
55716
|
-
if (player == null || !isEnabledCheck(this.
|
|
55732
|
+
if (player == null || !isEnabledCheck(this.n9i_1, store.state, tmp4)) {
|
|
55717
55733
|
next(tmp4);
|
|
55718
55734
|
break $l$block_1;
|
|
55719
55735
|
}
|
|
55720
55736
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
55721
|
-
if (isWrongPlayerTurn(this.
|
|
55737
|
+
if (isWrongPlayerTurn(this.o9i_1, store, playersWithTurn, player, tmp4)) {
|
|
55722
55738
|
break $l$block_1;
|
|
55723
55739
|
}
|
|
55724
55740
|
var tmp;
|
|
55725
|
-
if (this.
|
|
55726
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
55741
|
+
if (this.o9i_1.f99_1.validateFromClientActionTags) {
|
|
55742
|
+
tmp = isWrongPlayerTurnTag(this.o9i_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.o9i_1, tmp4, table), this.o9i_1.e99_1);
|
|
55727
55743
|
} else {
|
|
55728
55744
|
tmp = false;
|
|
55729
55745
|
}
|
|
@@ -55737,8 +55753,8 @@
|
|
|
55737
55753
|
return this.u6h(store, next, action);
|
|
55738
55754
|
};
|
|
55739
55755
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
55740
|
-
this.
|
|
55741
|
-
this.
|
|
55756
|
+
this.p9i_1 = $enableCheckWhen;
|
|
55757
|
+
this.q9i_1 = this$0;
|
|
55742
55758
|
}
|
|
55743
55759
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55744
55760
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -55747,7 +55763,7 @@
|
|
|
55747
55763
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
55748
55764
|
$l$block_1: {
|
|
55749
55765
|
var state = store.state;
|
|
55750
|
-
if (!isEnabledCheck(this.
|
|
55766
|
+
if (!isEnabledCheck(this.p9i_1, state, tmp4)) {
|
|
55751
55767
|
next(tmp4);
|
|
55752
55768
|
break $l$block_1;
|
|
55753
55769
|
}
|
|
@@ -55782,7 +55798,7 @@
|
|
|
55782
55798
|
destination.j(tmp$ret$3);
|
|
55783
55799
|
}
|
|
55784
55800
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.e96()));
|
|
55785
|
-
this.
|
|
55801
|
+
this.q9i_1.g99_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
55786
55802
|
} else {
|
|
55787
55803
|
next(tmp4);
|
|
55788
55804
|
}
|
|
@@ -55792,41 +55808,41 @@
|
|
|
55792
55808
|
return this.u6h(store, next, action);
|
|
55793
55809
|
};
|
|
55794
55810
|
function PlayerTurnValidationMiddlewares(tagProvider, sendErrorToClient, engineLogicConfig, logger, idsProvider) {
|
|
55795
|
-
this.
|
|
55796
|
-
this.
|
|
55797
|
-
this.
|
|
55798
|
-
this.
|
|
55799
|
-
this.
|
|
55811
|
+
this.d99_1 = tagProvider;
|
|
55812
|
+
this.e99_1 = sendErrorToClient;
|
|
55813
|
+
this.f99_1 = engineLogicConfig;
|
|
55814
|
+
this.g99_1 = logger;
|
|
55815
|
+
this.h99_1 = idsProvider;
|
|
55800
55816
|
}
|
|
55801
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
55817
|
+
protoOf(PlayerTurnValidationMiddlewares).i99 = function (enableCheckWhen) {
|
|
55802
55818
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55803
55819
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
55804
55820
|
};
|
|
55805
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
55821
|
+
protoOf(PlayerTurnValidationMiddlewares).s99 = function (enableCheckWhen, $super) {
|
|
55806
55822
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
55807
|
-
return $super === VOID ? this.
|
|
55823
|
+
return $super === VOID ? this.i99(enableCheckWhen) : $super.i99.call(this, enableCheckWhen);
|
|
55808
55824
|
};
|
|
55809
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
55825
|
+
protoOf(PlayerTurnValidationMiddlewares).j99 = function (enableCheckWhen) {
|
|
55810
55826
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55811
55827
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
55812
55828
|
};
|
|
55813
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
55829
|
+
protoOf(PlayerTurnValidationMiddlewares).r9i = function (enableCheckWhen) {
|
|
55814
55830
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55815
55831
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
55816
55832
|
};
|
|
55817
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
55833
|
+
protoOf(PlayerTurnValidationMiddlewares).k99 = function (enableCheckWhen, $super) {
|
|
55818
55834
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
55819
|
-
return $super === VOID ? this.
|
|
55835
|
+
return $super === VOID ? this.r9i(enableCheckWhen) : $super.r9i.call(this, enableCheckWhen);
|
|
55820
55836
|
};
|
|
55821
55837
|
function Companion_171() {
|
|
55822
|
-
this.
|
|
55838
|
+
this.s9i_1 = 50;
|
|
55823
55839
|
}
|
|
55824
55840
|
var Companion_instance_176;
|
|
55825
55841
|
function Companion_getInstance_178() {
|
|
55826
55842
|
return Companion_instance_176;
|
|
55827
55843
|
}
|
|
55828
55844
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
55829
|
-
this.
|
|
55845
|
+
this.t9i_1 = this$0;
|
|
55830
55846
|
}
|
|
55831
55847
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).f6g = function (action) {
|
|
55832
55848
|
return action instanceof MechanicAction;
|
|
@@ -55837,19 +55853,19 @@
|
|
|
55837
55853
|
var aid = tmp4.aid;
|
|
55838
55854
|
if (!store.state.z6r()) {
|
|
55839
55855
|
if (!(aid == null)) {
|
|
55840
|
-
this.
|
|
55856
|
+
this.t9i_1.r99_1.od(aid);
|
|
55841
55857
|
}
|
|
55842
55858
|
next(tmp4);
|
|
55843
55859
|
break $l$block_0;
|
|
55844
55860
|
}
|
|
55845
|
-
if (!(aid == null) && this.
|
|
55846
|
-
this.
|
|
55861
|
+
if (!(aid == null) && this.t9i_1.r99_1.u1(aid)) {
|
|
55862
|
+
this.t9i_1.q99_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
55847
55863
|
break $l$block_0;
|
|
55848
55864
|
}
|
|
55849
55865
|
if (!(aid == null)) {
|
|
55850
|
-
this.
|
|
55851
|
-
if (this.
|
|
55852
|
-
this.
|
|
55866
|
+
this.t9i_1.r99_1.od(aid);
|
|
55867
|
+
if (this.t9i_1.r99_1.kd_1 > 50) {
|
|
55868
|
+
this.t9i_1.r99_1.pd();
|
|
55853
55869
|
}
|
|
55854
55870
|
}
|
|
55855
55871
|
next(tmp4);
|
|
@@ -55859,10 +55875,10 @@
|
|
|
55859
55875
|
return this.u6h(store, next, action);
|
|
55860
55876
|
};
|
|
55861
55877
|
function ToClientValidationMiddleware(logger) {
|
|
55862
|
-
this.
|
|
55863
|
-
this.
|
|
55878
|
+
this.q99_1 = logger;
|
|
55879
|
+
this.r99_1 = ArrayDeque_init_$Create$();
|
|
55864
55880
|
}
|
|
55865
|
-
protoOf(ToClientValidationMiddleware).
|
|
55881
|
+
protoOf(ToClientValidationMiddleware).p99 = function () {
|
|
55866
55882
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
55867
55883
|
return new ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this);
|
|
55868
55884
|
};
|
|
@@ -55875,12 +55891,12 @@
|
|
|
55875
55891
|
protoOf(clearReducer$$inlined$reducerForActionType$1).f6g = function (action) {
|
|
55876
55892
|
return action instanceof ClearAction;
|
|
55877
55893
|
};
|
|
55878
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
55894
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).u9i = function (state, action) {
|
|
55879
55895
|
action instanceof ClearAction || THROW_CCE();
|
|
55880
55896
|
return state.r92(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
55881
55897
|
};
|
|
55882
55898
|
protoOf(clearReducer$$inlined$reducerForActionType$1).v6h = function (state, action) {
|
|
55883
|
-
return this.
|
|
55899
|
+
return this.u9i((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
55884
55900
|
};
|
|
55885
55901
|
function fromClientReducer() {
|
|
55886
55902
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -55891,7 +55907,7 @@
|
|
|
55891
55907
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).f6g = function (action) {
|
|
55892
55908
|
return action instanceof FromClientAction;
|
|
55893
55909
|
};
|
|
55894
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
55910
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).u9i = function (state, action) {
|
|
55895
55911
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
55896
55912
|
var tmp;
|
|
55897
55913
|
var tmp_0;
|
|
@@ -55948,11 +55964,11 @@
|
|
|
55948
55964
|
return tmp;
|
|
55949
55965
|
};
|
|
55950
55966
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).v6h = function (state, action) {
|
|
55951
|
-
return this.
|
|
55967
|
+
return this.u9i((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
55952
55968
|
};
|
|
55953
55969
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
55954
55970
|
return function (tbl) {
|
|
55955
|
-
return this$0.
|
|
55971
|
+
return this$0.k98_1.b9j(tbl, $action.l8z_1, $action.sceneData, $action.m8z_1, $action.n8z_1);
|
|
55956
55972
|
};
|
|
55957
55973
|
}
|
|
55958
55974
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -55961,22 +55977,22 @@
|
|
|
55961
55977
|
if ($action.m8z_1 == null) {
|
|
55962
55978
|
tmp = tbl;
|
|
55963
55979
|
} else {
|
|
55964
|
-
tmp = this$0.
|
|
55980
|
+
tmp = this$0.l98_1.c9j(tbl, $action);
|
|
55965
55981
|
}
|
|
55966
55982
|
return tmp;
|
|
55967
55983
|
};
|
|
55968
55984
|
}
|
|
55969
55985
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
55970
|
-
this.
|
|
55986
|
+
this.d9j_1 = this$0;
|
|
55971
55987
|
}
|
|
55972
55988
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).f6g = function (action) {
|
|
55973
55989
|
return action instanceof MechanicAction;
|
|
55974
55990
|
};
|
|
55975
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
55991
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).u9i = function (state, action) {
|
|
55976
55992
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
55977
|
-
if (this.
|
|
55993
|
+
if (this.d9j_1.m98_1.validateIfMainThread) {
|
|
55978
55994
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
55979
|
-
var logger = this.
|
|
55995
|
+
var logger = this.d9j_1.n98_1;
|
|
55980
55996
|
var tmp;
|
|
55981
55997
|
try {
|
|
55982
55998
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -55997,53 +56013,53 @@
|
|
|
55997
56013
|
}
|
|
55998
56014
|
var tmp_1;
|
|
55999
56015
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
56000
|
-
tmp_1 = this.
|
|
56016
|
+
tmp_1 = this.d9j_1.e98_1.l9k(state, action_0);
|
|
56001
56017
|
} else {
|
|
56002
56018
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
56003
|
-
tmp_1 = this.
|
|
56019
|
+
tmp_1 = this.d9j_1.e98_1.k9k(state, action_0);
|
|
56004
56020
|
} else {
|
|
56005
56021
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
56006
|
-
tmp_1 = this.
|
|
56022
|
+
tmp_1 = this.d9j_1.e98_1.j9k(state, action_0);
|
|
56007
56023
|
} else {
|
|
56008
56024
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
56009
|
-
tmp_1 = this.
|
|
56025
|
+
tmp_1 = this.d9j_1.e98_1.i9k(state, action_0);
|
|
56010
56026
|
} else {
|
|
56011
56027
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
56012
|
-
tmp_1 = this.
|
|
56028
|
+
tmp_1 = this.d9j_1.e98_1.h9k(state, action_0);
|
|
56013
56029
|
} else {
|
|
56014
56030
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
56015
|
-
tmp_1 = this.
|
|
56031
|
+
tmp_1 = this.d9j_1.e98_1.g9k(state, action_0);
|
|
56016
56032
|
} else {
|
|
56017
56033
|
if (action_0 instanceof ErrorAction) {
|
|
56018
|
-
tmp_1 = this.
|
|
56034
|
+
tmp_1 = this.d9j_1.e98_1.f9k(state, action_0);
|
|
56019
56035
|
} else {
|
|
56020
56036
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
56021
|
-
tmp_1 = state.r92(state.x6r().copy(VOID, VOID, VOID, VOID, this.
|
|
56037
|
+
tmp_1 = state.r92(state.x6r().copy(VOID, VOID, VOID, VOID, this.d9j_1.f98_1.e9k(state.x6r().players, action_0)));
|
|
56022
56038
|
} else {
|
|
56023
56039
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
56024
|
-
tmp_1 = this.
|
|
56040
|
+
tmp_1 = this.d9j_1.g98_1.d9k(state, action_0);
|
|
56025
56041
|
} else {
|
|
56026
56042
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
56027
|
-
tmp_1 = this.
|
|
56043
|
+
tmp_1 = this.d9j_1.g98_1.c9k(state, action_0);
|
|
56028
56044
|
} else {
|
|
56029
56045
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
56030
|
-
tmp_1 = this.
|
|
56046
|
+
tmp_1 = this.d9j_1.i98_1.z9j(state, action_0);
|
|
56031
56047
|
} else {
|
|
56032
56048
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
56033
|
-
tmp_1 = this.
|
|
56049
|
+
tmp_1 = this.d9j_1.h98_1.y9j(state, action_0);
|
|
56034
56050
|
} else {
|
|
56035
56051
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
56036
|
-
tmp_1 = this.
|
|
56052
|
+
tmp_1 = this.d9j_1.h98_1.x9j(state, action_0);
|
|
56037
56053
|
} else {
|
|
56038
56054
|
if (action_0 instanceof TakeAllRemainingCardsMechanicAction) {
|
|
56039
|
-
tmp_1 = this.
|
|
56055
|
+
tmp_1 = this.d9j_1.h98_1.w9j(state, action_0);
|
|
56040
56056
|
} else {
|
|
56041
56057
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
56042
|
-
tmp_1 = this.
|
|
56058
|
+
tmp_1 = this.d9j_1.i98_1.o9j(state, action_0);
|
|
56043
56059
|
} else {
|
|
56044
56060
|
if (action_0 instanceof SceneMechanicAction) {
|
|
56045
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
56046
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
56061
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.d9j_1, action_0);
|
|
56062
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.d9j_1)]);
|
|
56047
56063
|
// Inline function 'kotlin.collections.fold' call
|
|
56048
56064
|
var accumulator = state.x6r();
|
|
56049
56065
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -56055,13 +56071,13 @@
|
|
|
56055
56071
|
tmp_1 = state.r92(tmp$ret$3);
|
|
56056
56072
|
} else {
|
|
56057
56073
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
56058
|
-
tmp_1 = state.r92(this.
|
|
56074
|
+
tmp_1 = state.r92(this.d9j_1.l98_1.c9j(state.x6r(), action_0));
|
|
56059
56075
|
} else {
|
|
56060
56076
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
56061
|
-
tmp_1 = state.r92(this.
|
|
56077
|
+
tmp_1 = state.r92(this.d9j_1.j98_1.i9j(state.x6r(), action_0));
|
|
56062
56078
|
} else {
|
|
56063
56079
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
56064
|
-
tmp_1 = state.r92(this.
|
|
56080
|
+
tmp_1 = state.r92(this.d9j_1.j98_1.h9j(state.x6r(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
56065
56081
|
} else {
|
|
56066
56082
|
if (action_0 instanceof MessageMechanicAction) {
|
|
56067
56083
|
tmp_1 = state;
|
|
@@ -56090,21 +56106,21 @@
|
|
|
56090
56106
|
return tmp_1;
|
|
56091
56107
|
};
|
|
56092
56108
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).v6h = function (state, action) {
|
|
56093
|
-
return this.
|
|
56109
|
+
return this.u9i((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
56094
56110
|
};
|
|
56095
56111
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
56096
|
-
this.
|
|
56097
|
-
this.
|
|
56098
|
-
this.
|
|
56099
|
-
this.
|
|
56100
|
-
this.
|
|
56101
|
-
this.
|
|
56102
|
-
this.
|
|
56103
|
-
this.
|
|
56104
|
-
this.
|
|
56105
|
-
this.
|
|
56106
|
-
}
|
|
56107
|
-
protoOf(MechanicReducers).
|
|
56112
|
+
this.e98_1 = gameLifecycleReducer;
|
|
56113
|
+
this.f98_1 = teamsMechanicReducer;
|
|
56114
|
+
this.g98_1 = tradeMechanicReducer;
|
|
56115
|
+
this.h98_1 = earnPointsMechanicReducer;
|
|
56116
|
+
this.i98_1 = combinationsMechanicReducer;
|
|
56117
|
+
this.j98_1 = playerTurnMechanicReducer;
|
|
56118
|
+
this.k98_1 = sceneReducer;
|
|
56119
|
+
this.l98_1 = sceneActReducer;
|
|
56120
|
+
this.m98_1 = engineLogicConfig;
|
|
56121
|
+
this.n98_1 = logger;
|
|
56122
|
+
}
|
|
56123
|
+
protoOf(MechanicReducers).o98 = function () {
|
|
56108
56124
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
56109
56125
|
return new MechanicReducers$reducer$$inlined$reducerForActionType$1(this);
|
|
56110
56126
|
};
|
|
@@ -56117,7 +56133,7 @@
|
|
|
56117
56133
|
protoOf(timerReducer$$inlined$reducerForActionType$1).f6g = function (action) {
|
|
56118
56134
|
return action instanceof TimerAction;
|
|
56119
56135
|
};
|
|
56120
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
56136
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).u9i = function (state, action) {
|
|
56121
56137
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
56122
56138
|
var tmp;
|
|
56123
56139
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -56145,7 +56161,7 @@
|
|
|
56145
56161
|
return tmp;
|
|
56146
56162
|
};
|
|
56147
56163
|
protoOf(timerReducer$$inlined$reducerForActionType$1).v6h = function (state, action) {
|
|
56148
|
-
return this.
|
|
56164
|
+
return this.u9i((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
56149
56165
|
};
|
|
56150
56166
|
function playerTurnReducer($this, action, table) {
|
|
56151
56167
|
var tmp0 = action.actData;
|
|
@@ -56250,7 +56266,7 @@
|
|
|
56250
56266
|
}
|
|
56251
56267
|
function SceneActReducer() {
|
|
56252
56268
|
}
|
|
56253
|
-
protoOf(SceneActReducer).
|
|
56269
|
+
protoOf(SceneActReducer).c9j = function (table, action) {
|
|
56254
56270
|
var tmp;
|
|
56255
56271
|
if (action.actId === 'WAITING_ACT') {
|
|
56256
56272
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.z8m(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -56287,47 +56303,47 @@
|
|
|
56287
56303
|
function MechanicLifecycleReducer() {
|
|
56288
56304
|
}
|
|
56289
56305
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
56290
|
-
this.
|
|
56291
|
-
this.
|
|
56306
|
+
this.m9k_1 = tableLifecycleReducer;
|
|
56307
|
+
this.n9k_1 = randomPoolProvider;
|
|
56292
56308
|
}
|
|
56293
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
56309
|
+
protoOf(BaseMechanicLifecycleReducer).j9k = function (state, action) {
|
|
56294
56310
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
56295
56311
|
var tmp1_tableOrNull = action.table;
|
|
56296
56312
|
var tmp2_payload = action.payload;
|
|
56297
56313
|
return state.r92(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
56298
56314
|
};
|
|
56299
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
56300
|
-
this.
|
|
56315
|
+
protoOf(BaseMechanicLifecycleReducer).k9k = function (state, action) {
|
|
56316
|
+
this.n9k_1.n58(action.previousGameId);
|
|
56301
56317
|
return state;
|
|
56302
56318
|
};
|
|
56303
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
56319
|
+
protoOf(BaseMechanicLifecycleReducer).i9k = function (state, action) {
|
|
56304
56320
|
var tmp0_safe_receiver = state.tableOrNull;
|
|
56305
56321
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
56306
56322
|
if (tmp1_safe_receiver == null)
|
|
56307
56323
|
null;
|
|
56308
56324
|
else {
|
|
56309
56325
|
// Inline function 'kotlin.apply' call
|
|
56310
|
-
this.
|
|
56326
|
+
this.n9k_1.n58(tmp1_safe_receiver);
|
|
56311
56327
|
}
|
|
56312
56328
|
return state.r92(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.x93_1, action.z93_1));
|
|
56313
56329
|
};
|
|
56314
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
56330
|
+
protoOf(BaseMechanicLifecycleReducer).h9k = function (state, action) {
|
|
56315
56331
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
56316
56332
|
var tmp0_safe_receiver = state.x6q_1;
|
|
56317
56333
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v92(action.b94_1);
|
|
56318
56334
|
return state.r92(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.b94_1) : tmp1_elvis_lhs);
|
|
56319
56335
|
};
|
|
56320
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
56321
|
-
return state.r92(this.
|
|
56336
|
+
protoOf(BaseMechanicLifecycleReducer).g9k = function (state, action) {
|
|
56337
|
+
return state.r92(this.m9k_1.o9k(state.x6r()));
|
|
56322
56338
|
};
|
|
56323
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
56339
|
+
protoOf(BaseMechanicLifecycleReducer).f9k = function (state, action) {
|
|
56324
56340
|
var tmp0_safe_receiver = state.tableOrNull;
|
|
56325
56341
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
56326
56342
|
if (tmp1_safe_receiver == null)
|
|
56327
56343
|
null;
|
|
56328
56344
|
else {
|
|
56329
56345
|
// Inline function 'kotlin.apply' call
|
|
56330
|
-
this.
|
|
56346
|
+
this.n9k_1.n58(tmp1_safe_receiver);
|
|
56331
56347
|
}
|
|
56332
56348
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
56333
56349
|
var tmp2_safe_receiver = state.x6q_1;
|
|
@@ -56347,19 +56363,19 @@
|
|
|
56347
56363
|
return value1.id === value2.id;
|
|
56348
56364
|
}
|
|
56349
56365
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
56350
|
-
this.
|
|
56351
|
-
this.
|
|
56352
|
-
this.
|
|
56353
|
-
this.
|
|
56366
|
+
this.p9k_1 = pointsInteractor;
|
|
56367
|
+
this.q9k_1 = playerHappinessProvider;
|
|
56368
|
+
this.r9k_1 = logger;
|
|
56369
|
+
this.s9k_1 = dealerConfig;
|
|
56354
56370
|
}
|
|
56355
|
-
protoOf(PlayerHandReducer).
|
|
56371
|
+
protoOf(PlayerHandReducer).t9k = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
56356
56372
|
// Inline function 'kotlin.collections.map' call
|
|
56357
56373
|
// Inline function 'kotlin.collections.mapTo' call
|
|
56358
56374
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
56359
56375
|
var _iterator__ex2g4s = combinations.l();
|
|
56360
56376
|
while (_iterator__ex2g4s.m()) {
|
|
56361
56377
|
var item = _iterator__ex2g4s.n();
|
|
56362
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
56378
|
+
var tmp$ret$0 = mapToRecord(item, this.p9k_1.y8w(item));
|
|
56363
56379
|
destination.j(tmp$ret$0);
|
|
56364
56380
|
}
|
|
56365
56381
|
var combinationRecords = destination;
|
|
@@ -56394,8 +56410,8 @@
|
|
|
56394
56410
|
return hand.r73(VOID, VOID, plus(hand.q70_1, combinationRecords), plus(hand.r70_1, combinationRecords));
|
|
56395
56411
|
}
|
|
56396
56412
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
56397
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
56398
|
-
var tmp_0 = this.
|
|
56413
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.s9k_1.dealerStrategy : tmp0_elvis_lhs;
|
|
56414
|
+
var tmp_0 = this.p9k_1.x8w(cards, selectedTrump, dealerStrategy);
|
|
56399
56415
|
// Inline function 'kotlin.collections.map' call
|
|
56400
56416
|
// Inline function 'kotlin.collections.mapTo' call
|
|
56401
56417
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -56406,11 +56422,11 @@
|
|
|
56406
56422
|
destination_0.j(tmp$ret$5);
|
|
56407
56423
|
}
|
|
56408
56424
|
var value = tmp_0 + sum(destination_0);
|
|
56409
|
-
var luckyFactor = this.
|
|
56410
|
-
Companion_instance_172.w8w(this.
|
|
56425
|
+
var luckyFactor = this.q9k_1.u8p(value, config.playersMode, dealerStrategy);
|
|
56426
|
+
Companion_instance_172.w8w(this.r9k_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.y70() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
|
|
56411
56427
|
return hand.r73(VOID, plus(hand.p70_1, listOf(Companion_instance_20.l73(luckyFactor, value))), plus(hand.q70_1, combinationRecords), plus(hand.r70_1, combinationRecords));
|
|
56412
56428
|
};
|
|
56413
|
-
protoOf(PlayerHandReducer).
|
|
56429
|
+
protoOf(PlayerHandReducer).u9k = function (hand, combinations) {
|
|
56414
56430
|
// Inline function 'kotlin.collections.map' call
|
|
56415
56431
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
56416
56432
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56418,20 +56434,20 @@
|
|
|
56418
56434
|
var _iterator__ex2g4s = this_0.l();
|
|
56419
56435
|
while (_iterator__ex2g4s.m()) {
|
|
56420
56436
|
var item = _iterator__ex2g4s.n();
|
|
56421
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
56437
|
+
var tmp$ret$0 = mapToRecord(item, this.p9k_1.y8w(item));
|
|
56422
56438
|
destination.j(tmp$ret$0);
|
|
56423
56439
|
}
|
|
56424
56440
|
var combinationRecords = destination;
|
|
56425
56441
|
var tmp = updateOrAddItems(hand.q70_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
56426
56442
|
return hand.r73(VOID, VOID, tmp, updateOrAddItems(hand.r70_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
56427
56443
|
};
|
|
56428
|
-
protoOf(PlayerHandReducer).
|
|
56444
|
+
protoOf(PlayerHandReducer).v9k = function (playerId, hand, updatedCombinations, config) {
|
|
56429
56445
|
if (updatedCombinations.r()) {
|
|
56430
56446
|
return hand;
|
|
56431
56447
|
}
|
|
56432
56448
|
var previousFactor = hand.b71();
|
|
56433
56449
|
if (previousFactor.a71_1 === 0.0) {
|
|
56434
|
-
return this.
|
|
56450
|
+
return this.u9k(hand, updatedCombinations);
|
|
56435
56451
|
}
|
|
56436
56452
|
// Inline function 'kotlin.collections.map' call
|
|
56437
56453
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56439,7 +56455,7 @@
|
|
|
56439
56455
|
var _iterator__ex2g4s = updatedCombinations.l();
|
|
56440
56456
|
while (_iterator__ex2g4s.m()) {
|
|
56441
56457
|
var item = _iterator__ex2g4s.n();
|
|
56442
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
56458
|
+
var tmp$ret$0 = mapToRecord(item, this.p9k_1.y8w(item));
|
|
56443
56459
|
destination.j(tmp$ret$0);
|
|
56444
56460
|
}
|
|
56445
56461
|
var updatedCombinationRecords = destination;
|
|
@@ -56499,9 +56515,9 @@
|
|
|
56499
56515
|
}
|
|
56500
56516
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
56501
56517
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
56502
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
56503
|
-
var updatedLuckyFactor = this.
|
|
56504
|
-
Companion_instance_172.w8w(this.
|
|
56518
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.s9k_1.dealerStrategy : tmp0_elvis_lhs;
|
|
56519
|
+
var updatedLuckyFactor = this.q9k_1.u8p(updatedValue, config.playersMode, dealerStrategy);
|
|
56520
|
+
Companion_instance_172.w8w(this.r9k_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.y70() + ', ') + ('value: ' + updatedValue + ', '));
|
|
56505
56521
|
// Inline function 'kotlin.collections.map' call
|
|
56506
56522
|
var this_0 = hand.p70_1;
|
|
56507
56523
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56531,7 +56547,7 @@
|
|
|
56531
56547
|
protoOf(PlayerSceneReducer).t91 = function (player, cards, whoShuffleCardsPlayerId) {
|
|
56532
56548
|
return player.j70(VOID, VOID, cards, player.k6v_1.h74(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
56533
56549
|
};
|
|
56534
|
-
protoOf(PlayerSceneReducer).
|
|
56550
|
+
protoOf(PlayerSceneReducer).w9k = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
56535
56551
|
// Inline function 'kotlin.collections.map' call
|
|
56536
56552
|
// Inline function 'kotlin.collections.mapTo' call
|
|
56537
56553
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -56544,7 +56560,7 @@
|
|
|
56544
56560
|
}
|
|
56545
56561
|
var detailedCombinations = destination;
|
|
56546
56562
|
var cards = plus(player.j6v_1, distributedCards);
|
|
56547
|
-
var hand = this.s91_1.
|
|
56563
|
+
var hand = this.s91_1.t9k(player.playerId, player.l6v_1, cards, detailedCombinations, selectedTrump, config);
|
|
56548
56564
|
var tmp;
|
|
56549
56565
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
56550
56566
|
if (!combinations.r()) {
|
|
@@ -56555,7 +56571,7 @@
|
|
|
56555
56571
|
var tmp0_points = tmp;
|
|
56556
56572
|
return player.j70(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
56557
56573
|
};
|
|
56558
|
-
protoOf(PlayerSceneReducer).
|
|
56574
|
+
protoOf(PlayerSceneReducer).x9k = function (player, sceneData) {
|
|
56559
56575
|
// Inline function 'kotlin.collections.single' call
|
|
56560
56576
|
var single = null;
|
|
56561
56577
|
var found = false;
|
|
@@ -56597,7 +56613,7 @@
|
|
|
56597
56613
|
var tmp10_earnedPoints = playerPointsCell.k76_1;
|
|
56598
56614
|
var tmp11_earnedCards = emptyList();
|
|
56599
56615
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
56600
|
-
var tmp15_hand = this.s91_1.
|
|
56616
|
+
var tmp15_hand = this.s91_1.u9k(player.l6v_1, updatedCombinations);
|
|
56601
56617
|
return player.j70(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
56602
56618
|
};
|
|
56603
56619
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -56627,7 +56643,7 @@
|
|
|
56627
56643
|
var tmp = System_instance.ck();
|
|
56628
56644
|
Companion_getInstance_4();
|
|
56629
56645
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
56630
|
-
var this_0 = config.timeoutTimeMillis * $this.
|
|
56646
|
+
var this_0 = config.timeoutTimeMillis * $this.g9j_1.playerTimeoutFactorToFinishStep;
|
|
56631
56647
|
var tmp$ret$0 = toDuration_1(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
56632
56648
|
return tmp.rk(tmp$ret$0);
|
|
56633
56649
|
}
|
|
@@ -56638,11 +56654,11 @@
|
|
|
56638
56654
|
return it.playerId;
|
|
56639
56655
|
}
|
|
56640
56656
|
function PlayerTurnMechanicReducer(logger, gameHistoryReducer, engineLogicConfig) {
|
|
56641
|
-
this.
|
|
56642
|
-
this.
|
|
56643
|
-
this.
|
|
56657
|
+
this.e9j_1 = logger;
|
|
56658
|
+
this.f9j_1 = gameHistoryReducer;
|
|
56659
|
+
this.g9j_1 = engineLogicConfig;
|
|
56644
56660
|
}
|
|
56645
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
56661
|
+
protoOf(PlayerTurnMechanicReducer).y9k = function (table, model) {
|
|
56646
56662
|
// Inline function 'com.logic.utils.copy' call
|
|
56647
56663
|
var this_0 = table.players;
|
|
56648
56664
|
// Inline function 'kotlin.apply' call
|
|
@@ -56653,7 +56669,7 @@
|
|
|
56653
56669
|
var element = _iterator__ex2g4s.n();
|
|
56654
56670
|
var player = getPlayer(table.players, element);
|
|
56655
56671
|
if (!(player.i6v_1.g67_1 == null)) {
|
|
56656
|
-
this.
|
|
56672
|
+
this.e9j_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.i6v_1.g67_1 + ', ') + ('new tag: ' + model.y71_1));
|
|
56657
56673
|
}
|
|
56658
56674
|
var tmp = Companion_instance_0;
|
|
56659
56675
|
var tmp_0 = System_instance.ck();
|
|
@@ -56667,25 +56683,25 @@
|
|
|
56667
56683
|
var newTable = table.copy(VOID, VOID, VOID, VOID, this_1);
|
|
56668
56684
|
var tmp_1 = 'onPlayerTurn: ' + model.toString() + ', ';
|
|
56669
56685
|
var tmp_2 = filterPlayerTurn(table.players);
|
|
56670
|
-
this.
|
|
56686
|
+
this.e9j_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
56671
56687
|
return newTable;
|
|
56672
56688
|
};
|
|
56673
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
56689
|
+
protoOf(PlayerTurnMechanicReducer).z9k = function (table, model) {
|
|
56674
56690
|
var player = getPlayer(table.players, model.v65());
|
|
56675
56691
|
if (player.i6v_1.g67_1 == null) {
|
|
56676
|
-
this.
|
|
56692
|
+
this.e9j_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.y71_1));
|
|
56677
56693
|
}
|
|
56678
56694
|
var newTable = table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j70(VOID, Companion_instance_0.w68(player.i6v_1)), get_byIdPlayerPredicate()(player.playerId)));
|
|
56679
56695
|
var tmp = 'onResetPlayerTurn: ' + model.toString() + ', ';
|
|
56680
56696
|
var tmp_0 = filterPlayerTurn(table.players);
|
|
56681
|
-
this.
|
|
56697
|
+
this.e9j_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
56682
56698
|
return newTable;
|
|
56683
56699
|
};
|
|
56684
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
56700
|
+
protoOf(PlayerTurnMechanicReducer).i9j = function (table, action) {
|
|
56685
56701
|
var player = getPlayer(table.players, action.j94_1);
|
|
56686
56702
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j70(VOID, player.i6v_1.x68(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
56687
56703
|
};
|
|
56688
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
56704
|
+
protoOf(PlayerTurnMechanicReducer).a9l = function (table) {
|
|
56689
56705
|
// Inline function 'kotlin.collections.map' call
|
|
56690
56706
|
var this_0 = table.players;
|
|
56691
56707
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56698,7 +56714,7 @@
|
|
|
56698
56714
|
}
|
|
56699
56715
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
56700
56716
|
};
|
|
56701
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
56717
|
+
protoOf(PlayerTurnMechanicReducer).h9j = function (table, playerId, newConnectionState, reconnectUntilTime) {
|
|
56702
56718
|
var players = table.players;
|
|
56703
56719
|
var player = getPlayer(players, playerId);
|
|
56704
56720
|
var previousConnection = player.i6v_1.h67_1;
|
|
@@ -56721,10 +56737,10 @@
|
|
|
56721
56737
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
56722
56738
|
tmp = tmp6_$this.x68(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
56723
56739
|
}
|
|
56724
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.j70(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
56740
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.j70(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.f9j_1.f9l(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
56725
56741
|
};
|
|
56726
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
56727
|
-
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.
|
|
56742
|
+
protoOf(PlayerTurnMechanicReducer).g9l = function (config) {
|
|
56743
|
+
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.e9j_1);
|
|
56728
56744
|
};
|
|
56729
56745
|
function onCurrentScene($this, sceneId, sceneData, actId, actData, table, previousSceneId) {
|
|
56730
56746
|
var sceneInfo = new SceneInfo(sceneId, previousSceneId, actId, sceneData, actData);
|
|
@@ -56756,7 +56772,7 @@
|
|
|
56756
56772
|
var _iterator__ex2g4s = players.l();
|
|
56757
56773
|
while (_iterator__ex2g4s.m()) {
|
|
56758
56774
|
var item = _iterator__ex2g4s.n();
|
|
56759
|
-
var tmp$ret$1 = $this.
|
|
56775
|
+
var tmp$ret$1 = $this.v9i_1.t91(item, getValue(scene.f7g_1, item.playerId), scene.j7g_1);
|
|
56760
56776
|
destination.j(tmp$ret$1);
|
|
56761
56777
|
}
|
|
56762
56778
|
|
|
@@ -56777,12 +56793,12 @@
|
|
|
56777
56793
|
}
|
|
56778
56794
|
|
|
56779
56795
|
var tmp7_requestedCardDecks = tmp_0;
|
|
56780
|
-
var tmp1_$this = $this.
|
|
56796
|
+
var tmp1_$this = $this.y9i_1;
|
|
56781
56797
|
var tmp2_gameHistory = table.gameHistory;
|
|
56782
56798
|
var tmp3_playersCards = scene.f7g_1;
|
|
56783
56799
|
var tmp4_whoShuffleCardsPlayerId = scene.j7g_1;
|
|
56784
56800
|
var tmp5_randomData = scene.g7g_1;
|
|
56785
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
56801
|
+
var tmp8_gameHistory = tmp1_$this.h9l(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
56786
56802
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
56787
56803
|
case 'EARN_POINTS':
|
|
56788
56804
|
var tmp$ret$5;
|
|
@@ -56800,7 +56816,7 @@
|
|
|
56800
56816
|
var tmp10_newPlayersCards = scene_0.l7g_1;
|
|
56801
56817
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
56802
56818
|
var tmp12_config = table.config;
|
|
56803
|
-
var updatedCardDeck = $this.
|
|
56819
|
+
var updatedCardDeck = $this.i9l(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
56804
56820
|
// Inline function 'kotlin.collections.map' call
|
|
56805
56821
|
|
|
56806
56822
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56809,21 +56825,21 @@
|
|
|
56809
56825
|
var _iterator__ex2g4s_0 = players.l();
|
|
56810
56826
|
while (_iterator__ex2g4s_0.m()) {
|
|
56811
56827
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
56812
|
-
var tmp2_$this = $this.
|
|
56828
|
+
var tmp2_$this = $this.v9i_1;
|
|
56813
56829
|
var tmp3_config = table.config;
|
|
56814
56830
|
var tmp4_distributedCards = getValue(scene_0.l7g_1, item_0.playerId);
|
|
56815
56831
|
var tmp0_safe_receiver = scene_0.m7g_1;
|
|
56816
56832
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c2(item_0.playerId);
|
|
56817
56833
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
56818
56834
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
56819
|
-
var tmp$ret$6 = tmp2_$this.
|
|
56835
|
+
var tmp$ret$6 = tmp2_$this.w9k(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
56820
56836
|
destination_0.j(tmp$ret$6);
|
|
56821
56837
|
}
|
|
56822
56838
|
|
|
56823
|
-
var tmp13_$this = $this.
|
|
56839
|
+
var tmp13_$this = $this.y9i_1;
|
|
56824
56840
|
var tmp14_gameHistory = table.gameHistory;
|
|
56825
56841
|
var tmp15_playersCards = scene_0.l7g_1;
|
|
56826
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
56842
|
+
var tmp17_gameHistory = tmp13_$this.j9l(tmp15_playersCards, tmp14_gameHistory);
|
|
56827
56843
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
56828
56844
|
case 'CALC_POINTS':
|
|
56829
56845
|
var tmp$ret$9;
|
|
@@ -56846,12 +56862,12 @@
|
|
|
56846
56862
|
var _iterator__ex2g4s_1 = players.l();
|
|
56847
56863
|
while (_iterator__ex2g4s_1.m()) {
|
|
56848
56864
|
var item_1 = _iterator__ex2g4s_1.n();
|
|
56849
|
-
var tmp$ret$10 = $this.
|
|
56865
|
+
var tmp$ret$10 = $this.v9i_1.x9k(item_1, calcPointsSceneData);
|
|
56850
56866
|
destination_1.j(tmp$ret$10);
|
|
56851
56867
|
}
|
|
56852
56868
|
|
|
56853
56869
|
var updatedPlayers = destination_1;
|
|
56854
|
-
var tmp19_$this = $this.
|
|
56870
|
+
var tmp19_$this = $this.y9i_1;
|
|
56855
56871
|
var tmp20_gameHistory = table.gameHistory;
|
|
56856
56872
|
var tmp21_points = calcPointsSceneData.z7f_1;
|
|
56857
56873
|
var tmp22_roundContractState = calcPointsSceneData.d7g(whoChoseSuitPlayerId);
|
|
@@ -56891,7 +56907,7 @@
|
|
|
56891
56907
|
|
|
56892
56908
|
var tmp26_playersGameAnalytics = tmp_3;
|
|
56893
56909
|
var tmp27_playersAchievements = calcPointsSceneData.a7g_1;
|
|
56894
|
-
var tmp28_gameHistory = tmp19_$this.
|
|
56910
|
+
var tmp28_gameHistory = tmp19_$this.k9l(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
|
|
56895
56911
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
|
|
56896
56912
|
default:
|
|
56897
56913
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -56923,30 +56939,30 @@
|
|
|
56923
56939
|
}
|
|
56924
56940
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
56925
56941
|
return function (tbl) {
|
|
56926
|
-
return this$0.
|
|
56942
|
+
return this$0.w9i_1.a9l(tbl);
|
|
56927
56943
|
};
|
|
56928
56944
|
}
|
|
56929
56945
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
56930
56946
|
return function (tbl) {
|
|
56931
|
-
return this$0.
|
|
56947
|
+
return this$0.x9i_1.l9l(tbl);
|
|
56932
56948
|
};
|
|
56933
56949
|
}
|
|
56934
56950
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
56935
|
-
this.
|
|
56936
|
-
this.
|
|
56937
|
-
this.
|
|
56938
|
-
this.
|
|
56939
|
-
this.
|
|
56940
|
-
this.
|
|
56941
|
-
}
|
|
56942
|
-
protoOf(SceneReducer).
|
|
56951
|
+
this.v9i_1 = playerSceneReducer;
|
|
56952
|
+
this.w9i_1 = playerTurnMechanicReducer;
|
|
56953
|
+
this.x9i_1 = tableLifecycleReducer;
|
|
56954
|
+
this.y9i_1 = gameHistoryReducer;
|
|
56955
|
+
this.z9i_1 = dealerReducer;
|
|
56956
|
+
this.a9j_1 = gameParamsProvider;
|
|
56957
|
+
}
|
|
56958
|
+
protoOf(SceneReducer).b9j = function (table, sceneId, sceneData, actId, actData) {
|
|
56943
56959
|
var previousSceneId = table.sceneInfo.y80_1;
|
|
56944
56960
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.b81_1, sceneData)) {
|
|
56945
56961
|
throw new MechanicException('Payload was set twice');
|
|
56946
56962
|
}
|
|
56947
56963
|
return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
56948
56964
|
};
|
|
56949
|
-
protoOf(SceneReducer).
|
|
56965
|
+
protoOf(SceneReducer).i9l = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
56950
56966
|
// Inline function 'kotlin.collections.map' call
|
|
56951
56967
|
// Inline function 'kotlin.collections.mapTo' call
|
|
56952
56968
|
var destination = ArrayList_init_$Create$(newPlayersCards.o());
|
|
@@ -56960,19 +56976,19 @@
|
|
|
56960
56976
|
// Inline function 'kotlin.let' call
|
|
56961
56977
|
var it = flatten(destination);
|
|
56962
56978
|
var tmp;
|
|
56963
|
-
if (this.
|
|
56964
|
-
tmp = this.
|
|
56979
|
+
if (this.a9j_1.x8q(config)) {
|
|
56980
|
+
tmp = this.z9i_1.m5g(it, cardDeck.z7p_1);
|
|
56965
56981
|
} else {
|
|
56966
56982
|
tmp = it;
|
|
56967
56983
|
}
|
|
56968
56984
|
var playersCardsToRemove = tmp;
|
|
56969
56985
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
56970
|
-
var cards = this.
|
|
56986
|
+
var cards = this.z9i_1.l5g(cardDeck.y7p_1, cardsToRemove);
|
|
56971
56987
|
return cardDeck.m8j(cards, VOID, newTopOpenedCard);
|
|
56972
56988
|
};
|
|
56973
56989
|
function TeamsMechanicReducer() {
|
|
56974
56990
|
}
|
|
56975
|
-
protoOf(TeamsMechanicReducer).
|
|
56991
|
+
protoOf(TeamsMechanicReducer).e9k = function (players, action) {
|
|
56976
56992
|
// Inline function 'kotlin.collections.map' call
|
|
56977
56993
|
var this_0 = action.team1.playerIds;
|
|
56978
56994
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -57012,10 +57028,10 @@
|
|
|
57012
57028
|
return destination_1;
|
|
57013
57029
|
};
|
|
57014
57030
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
57015
|
-
this.
|
|
57016
|
-
this.
|
|
57031
|
+
this.a9k_1 = logger;
|
|
57032
|
+
this.b9k_1 = gameHistoryReducer;
|
|
57017
57033
|
}
|
|
57018
|
-
protoOf(TradeMechanicReducer).
|
|
57034
|
+
protoOf(TradeMechanicReducer).d9k = function (state, action) {
|
|
57019
57035
|
var table = state.x6r();
|
|
57020
57036
|
// Inline function 'kotlin.with' call
|
|
57021
57037
|
var player = getPlayer(table.players, action.r8z_1);
|
|
@@ -57023,7 +57039,7 @@
|
|
|
57023
57039
|
var it = player.k6v_1.m74();
|
|
57024
57040
|
var tmp;
|
|
57025
57041
|
if (it == null) {
|
|
57026
|
-
this.
|
|
57042
|
+
this.a9k_1.w(VOID, "Can't support this circle increment");
|
|
57027
57043
|
tmp = player.k6v_1.e70_1;
|
|
57028
57044
|
} else {
|
|
57029
57045
|
tmp = it;
|
|
@@ -57051,17 +57067,17 @@
|
|
|
57051
57067
|
destination.j(tmp$ret$2);
|
|
57052
57068
|
}
|
|
57053
57069
|
var tmp_2 = destination;
|
|
57054
|
-
var tmp0_$this = this.
|
|
57070
|
+
var tmp0_$this = this.b9k_1;
|
|
57055
57071
|
var tmp1_playerId = player.playerId;
|
|
57056
57072
|
var tmp2_suit = action.p8z_1;
|
|
57057
57073
|
var tmp3_gameHistory = table.gameHistory;
|
|
57058
57074
|
var tmp4_players = table.players;
|
|
57059
57075
|
var tmp5_playersMode = table.config.playersMode;
|
|
57060
|
-
tmp_0 = state.r92(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
57076
|
+
tmp_0 = state.r92(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.m9l(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
57061
57077
|
}
|
|
57062
57078
|
return tmp_0;
|
|
57063
57079
|
};
|
|
57064
|
-
protoOf(TradeMechanicReducer).
|
|
57080
|
+
protoOf(TradeMechanicReducer).c9k = function (state, action) {
|
|
57065
57081
|
var table = state.x6r();
|
|
57066
57082
|
// Inline function 'kotlin.collections.map' call
|
|
57067
57083
|
var this_0 = table.players;
|
|
@@ -57079,13 +57095,13 @@
|
|
|
57079
57095
|
return valueToFind.i75_1 === value.i75_1;
|
|
57080
57096
|
}
|
|
57081
57097
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
57082
|
-
this.
|
|
57083
|
-
this.
|
|
57084
|
-
this.
|
|
57085
|
-
this.
|
|
57086
|
-
this.
|
|
57098
|
+
this.j9j_1 = teamsLogicProvider;
|
|
57099
|
+
this.k9j_1 = combinationsInteractor;
|
|
57100
|
+
this.l9j_1 = dealerReducer;
|
|
57101
|
+
this.m9j_1 = playerHandReducer;
|
|
57102
|
+
this.n9j_1 = gameHistoryReducer;
|
|
57087
57103
|
}
|
|
57088
|
-
protoOf(CombinationsMechanicReducer).
|
|
57104
|
+
protoOf(CombinationsMechanicReducer).n9l = function (whoGotBribePlayerId, playerCombinations, players, config, forceAccept) {
|
|
57089
57105
|
var bellaCombination = first(playerCombinations.u8k_1);
|
|
57090
57106
|
var player = getPlayer(players, playerCombinations.t8k_1);
|
|
57091
57107
|
if (forceAccept) {
|
|
@@ -57097,7 +57113,7 @@
|
|
|
57097
57113
|
var tmp;
|
|
57098
57114
|
if (config.rules.protectBella) {
|
|
57099
57115
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
57100
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
57116
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.j9j_1.j8p(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
57101
57117
|
var tmp_0;
|
|
57102
57118
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
57103
57119
|
tmp_0 = bellaCombination.u75(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -57111,7 +57127,7 @@
|
|
|
57111
57127
|
return tmp;
|
|
57112
57128
|
}
|
|
57113
57129
|
};
|
|
57114
|
-
protoOf(CombinationsMechanicReducer).
|
|
57130
|
+
protoOf(CombinationsMechanicReducer).o9j = function (state, action) {
|
|
57115
57131
|
var table = state.x6r();
|
|
57116
57132
|
var players = table.players;
|
|
57117
57133
|
var config = table.config;
|
|
@@ -57142,7 +57158,7 @@
|
|
|
57142
57158
|
}
|
|
57143
57159
|
var passedPlayersCombinations = destination;
|
|
57144
57160
|
// Inline function 'kotlin.collections.filterNot' call
|
|
57145
|
-
var tmp0 = this.
|
|
57161
|
+
var tmp0 = this.k9j_1.i8u(players);
|
|
57146
57162
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
57147
57163
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
57148
57164
|
var _iterator__ex2g4s_1 = tmp0.l();
|
|
@@ -57189,10 +57205,10 @@
|
|
|
57189
57205
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.c2(item_1.playerId);
|
|
57190
57206
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
57191
57207
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
57192
|
-
var tmp0_$this = this.
|
|
57208
|
+
var tmp0_$this = this.m9j_1;
|
|
57193
57209
|
var tmp1_playerId = item_1.playerId;
|
|
57194
57210
|
var tmp2_hand = item_1.l6v_1;
|
|
57195
|
-
var tmp_1 = tmp0_$this.
|
|
57211
|
+
var tmp_1 = tmp0_$this.v9k(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
57196
57212
|
tmp = item_1.j70(VOID, VOID, VOID, VOID, tmp_1, item_1.m6v_1.p74(VOID, updateOrAddItems(item_1.m6v_1.d71_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
57197
57213
|
} else {
|
|
57198
57214
|
tmp = item_1;
|
|
@@ -57200,9 +57216,9 @@
|
|
|
57200
57216
|
var tmp$ret$19 = tmp;
|
|
57201
57217
|
destination_4.j(tmp$ret$19);
|
|
57202
57218
|
}
|
|
57203
|
-
return state.r92(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
57219
|
+
return state.r92(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.n9j_1.o9l(action.u94_1, table.gameHistory)));
|
|
57204
57220
|
};
|
|
57205
|
-
protoOf(CombinationsMechanicReducer).
|
|
57221
|
+
protoOf(CombinationsMechanicReducer).z9j = function (state, action) {
|
|
57206
57222
|
var table = state.x6r();
|
|
57207
57223
|
var player = getPlayer(table.players, action.p94_1);
|
|
57208
57224
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -57257,13 +57273,13 @@
|
|
|
57257
57273
|
// Inline function 'kotlin.let' call
|
|
57258
57274
|
|
|
57259
57275
|
var cards = player.j6v_1;
|
|
57260
|
-
var newCards = this.
|
|
57261
|
-
var tmp1_cards = this.
|
|
57276
|
+
var newCards = this.l9j_1.m5g(cards, trumpSevenCard);
|
|
57277
|
+
var tmp1_cards = this.l9j_1.n5g(newCards, trumpCard);
|
|
57262
57278
|
var tmp3_players = updateItem(table.players, player.j70(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
57263
|
-
var tmp4_gameHistory = this.
|
|
57279
|
+
var tmp4_gameHistory = this.n9j_1.p9l(player.playerId, listOf(announcedCombination.j75_1), VOID, table.gameHistory);
|
|
57264
57280
|
return state.r92(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
57265
57281
|
case 6:
|
|
57266
|
-
return state.r92(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j70(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
57282
|
+
return state.r92(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.j70(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.n9j_1.p9l(player.playerId, listOf(announcedCombination.j75_1), VOID, table.gameHistory)));
|
|
57267
57283
|
default:
|
|
57268
57284
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
57269
57285
|
}
|
|
@@ -57344,7 +57360,7 @@
|
|
|
57344
57360
|
destination.j(tmp$ret$1);
|
|
57345
57361
|
}
|
|
57346
57362
|
var updatedCombinations = destination;
|
|
57347
|
-
var tmp1_cards = $this.
|
|
57363
|
+
var tmp1_cards = $this.s9j_1.m5g(player.j6v_1, card);
|
|
57348
57364
|
var tmp2_points = player.m6v_1.p74(VOID, updatedCombinations);
|
|
57349
57365
|
var tmp3_options = player.k6v_1.h74(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, canTakeAllRemainingCards);
|
|
57350
57366
|
var tmp4_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
@@ -57383,11 +57399,11 @@
|
|
|
57383
57399
|
}
|
|
57384
57400
|
var tmp2_combinations = tmp;
|
|
57385
57401
|
var tmp4_points = tmp0_$this.p74(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
57386
|
-
var tmp5_hand = $this.
|
|
57402
|
+
var tmp5_hand = $this.u9j_1.u9k(player.l6v_1, combinations);
|
|
57387
57403
|
return player.j70(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
57388
57404
|
}
|
|
57389
57405
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config, forceLastBribe, forceAcceptBella) {
|
|
57390
|
-
var bellaCombination = $this.
|
|
57406
|
+
var bellaCombination = $this.r9j_1.h8u(players);
|
|
57391
57407
|
// Inline function 'kotlin.collections.associate' call
|
|
57392
57408
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
57393
57409
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -57413,7 +57429,7 @@
|
|
|
57413
57429
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.t8k_1 === player.playerId;
|
|
57414
57430
|
var tmp;
|
|
57415
57431
|
if (isGotLastBribe) {
|
|
57416
|
-
tmp = $this.
|
|
57432
|
+
tmp = $this.q9j_1.x74(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_157.q8j(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
|
|
57417
57433
|
} else {
|
|
57418
57434
|
tmp = null;
|
|
57419
57435
|
}
|
|
@@ -57433,7 +57449,7 @@
|
|
|
57433
57449
|
}
|
|
57434
57450
|
}
|
|
57435
57451
|
var tmp$ret$2 = tmp$ret$1;
|
|
57436
|
-
tmp_1 = $this.
|
|
57452
|
+
tmp_1 = $this.p9j_1.n9l(whoGotBribePlayerId, tmp$ret$2, players, config, forceAcceptBella);
|
|
57437
57453
|
} else {
|
|
57438
57454
|
tmp_1 = null;
|
|
57439
57455
|
}
|
|
@@ -57480,15 +57496,15 @@
|
|
|
57480
57496
|
return value1.i75_1 === value2.i75_1;
|
|
57481
57497
|
}
|
|
57482
57498
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
57483
|
-
this.
|
|
57484
|
-
this.
|
|
57485
|
-
this.
|
|
57486
|
-
this.
|
|
57487
|
-
this.
|
|
57488
|
-
this.
|
|
57489
|
-
this.
|
|
57490
|
-
}
|
|
57491
|
-
protoOf(EarnPointsMechanicReducer).
|
|
57499
|
+
this.p9j_1 = combinationsMechanicReducer;
|
|
57500
|
+
this.q9j_1 = combinationsFactory;
|
|
57501
|
+
this.r9j_1 = combinationsInteractor;
|
|
57502
|
+
this.s9j_1 = dealerReducer;
|
|
57503
|
+
this.t9j_1 = gameHistoryReducer;
|
|
57504
|
+
this.u9j_1 = playerHandReducer;
|
|
57505
|
+
this.v9j_1 = logger;
|
|
57506
|
+
}
|
|
57507
|
+
protoOf(EarnPointsMechanicReducer).y9j = function (state, action) {
|
|
57492
57508
|
var table = state.x6r();
|
|
57493
57509
|
var player = getPlayer(table.players, action.x8z_1);
|
|
57494
57510
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.x8z_1, table.cardsOnTable.o(), action.u8z_1));
|
|
@@ -57516,13 +57532,13 @@
|
|
|
57516
57532
|
var tmp$ret$0 = item.a7f_1;
|
|
57517
57533
|
destination.j(tmp$ret$0);
|
|
57518
57534
|
}
|
|
57519
|
-
tmp_0 = this.
|
|
57535
|
+
tmp_0 = this.t9j_1.p9l(tmp_1, destination, VOID, table.gameHistory);
|
|
57520
57536
|
}
|
|
57521
57537
|
var tmp1_elvis_lhs = tmp_0;
|
|
57522
57538
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
57523
57539
|
return state.r92(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
57524
57540
|
};
|
|
57525
|
-
protoOf(EarnPointsMechanicReducer).
|
|
57541
|
+
protoOf(EarnPointsMechanicReducer).x9j = function (state, action) {
|
|
57526
57542
|
var table = state.x6r();
|
|
57527
57543
|
var players = table.players;
|
|
57528
57544
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -57547,7 +57563,7 @@
|
|
|
57547
57563
|
destination_0.j(tmp$ret$3);
|
|
57548
57564
|
}
|
|
57549
57565
|
if (!(toSet(destination_0).o() === 1)) {
|
|
57550
|
-
this.
|
|
57566
|
+
this.v9j_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
57551
57567
|
}
|
|
57552
57568
|
var playersCombinations = addPlayersCombinationsWhenPickBribe$default(this, action.a90_1, players, config);
|
|
57553
57569
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -57570,10 +57586,10 @@
|
|
|
57570
57586
|
destination_1.j(tmp$ret$6);
|
|
57571
57587
|
}
|
|
57572
57588
|
var tmp3_gameInfo = table.gameInfo.j8i(VOID, VOID, table.gameInfo.round.copy(VOID, action.b90_1));
|
|
57573
|
-
var tmp4_gameHistory = this.
|
|
57589
|
+
var tmp4_gameHistory = this.t9j_1.q9l(action.a90_1, bribe, action.b90_1, playersCombinations, table.gameHistory);
|
|
57574
57590
|
return state.r92(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
57575
57591
|
};
|
|
57576
|
-
protoOf(EarnPointsMechanicReducer).
|
|
57592
|
+
protoOf(EarnPointsMechanicReducer).w9j = function (state, action) {
|
|
57577
57593
|
var table = state.x6r();
|
|
57578
57594
|
var players = table.players;
|
|
57579
57595
|
var config = table.config;
|
|
@@ -57612,7 +57628,7 @@
|
|
|
57612
57628
|
destination.j(tmp$ret$4);
|
|
57613
57629
|
}
|
|
57614
57630
|
var tmp2_gameInfo = table.gameInfo.j8i(VOID, VOID, table.gameInfo.round.copy(VOID, config.playerHandCardsSize));
|
|
57615
|
-
var tmp3_gameHistory = this.
|
|
57631
|
+
var tmp3_gameHistory = this.t9j_1.r9l(action.r94_1, currentNumberOfBribe, playersCards, playersCombinations, table.gameHistory);
|
|
57616
57632
|
return state.r92(table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, tmp0_cardsOnTable, VOID, VOID, VOID, tmp2_gameInfo, tmp3_gameHistory));
|
|
57617
57633
|
};
|
|
57618
57634
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -57620,7 +57636,7 @@
|
|
|
57620
57636
|
return metadata;
|
|
57621
57637
|
}
|
|
57622
57638
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
57623
|
-
$this.
|
|
57639
|
+
$this.e9l_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
57624
57640
|
}
|
|
57625
57641
|
var tmp0_safe_receiver = metadata.randomData;
|
|
57626
57642
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -57632,12 +57648,12 @@
|
|
|
57632
57648
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_2(roundHistory.items, items))));
|
|
57633
57649
|
}
|
|
57634
57650
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
57635
|
-
this.
|
|
57636
|
-
this.
|
|
57637
|
-
this.
|
|
57638
|
-
this.
|
|
57651
|
+
this.b9l_1 = pointsInteractor;
|
|
57652
|
+
this.c9l_1 = teamsLogicProvider;
|
|
57653
|
+
this.d9l_1 = gameLogicConfig;
|
|
57654
|
+
this.e9l_1 = logger;
|
|
57639
57655
|
}
|
|
57640
|
-
protoOf(GameHistoryReducer).
|
|
57656
|
+
protoOf(GameHistoryReducer).s9l = function (gameHistory) {
|
|
57641
57657
|
var roundNumber = gameHistory.rounds.length;
|
|
57642
57658
|
var tmp0 = gameHistory.rounds;
|
|
57643
57659
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -57649,7 +57665,7 @@
|
|
|
57649
57665
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
57650
57666
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
57651
57667
|
};
|
|
57652
|
-
protoOf(GameHistoryReducer).
|
|
57668
|
+
protoOf(GameHistoryReducer).h9l = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
57653
57669
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
57654
57670
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.z7p_1, System_instance.ck());
|
|
57655
57671
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -57667,14 +57683,14 @@
|
|
|
57667
57683
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
57668
57684
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_166.initial() : tmp0_elvis_lhs));
|
|
57669
57685
|
};
|
|
57670
|
-
protoOf(GameHistoryReducer).
|
|
57686
|
+
protoOf(GameHistoryReducer).m9l = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
57671
57687
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
57672
57688
|
var tmp;
|
|
57673
57689
|
if (playersMode.isTeamGame) {
|
|
57674
57690
|
// Inline function 'kotlin.arrayOf' call
|
|
57675
57691
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
57676
57692
|
// Inline function 'kotlin.js.asDynamic' call
|
|
57677
|
-
tmp = [playerId, this.
|
|
57693
|
+
tmp = [playerId, this.c9l_1.j8p(playerId, players).playerId];
|
|
57678
57694
|
} else {
|
|
57679
57695
|
// Inline function 'kotlin.arrayOf' call
|
|
57680
57696
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -57684,7 +57700,7 @@
|
|
|
57684
57700
|
var roundCommitted = tmp;
|
|
57685
57701
|
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_2(currentRoundHistory.items, listOf(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.ck()))), roundCommitted)));
|
|
57686
57702
|
};
|
|
57687
|
-
protoOf(GameHistoryReducer).
|
|
57703
|
+
protoOf(GameHistoryReducer).j9l = function (playersCards, gameHistory) {
|
|
57688
57704
|
// Inline function 'kotlin.collections.mapValues' call
|
|
57689
57705
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
57690
57706
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
|
|
@@ -57698,14 +57714,14 @@
|
|
|
57698
57714
|
}
|
|
57699
57715
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
|
|
57700
57716
|
};
|
|
57701
|
-
protoOf(GameHistoryReducer).
|
|
57717
|
+
protoOf(GameHistoryReducer).t9l = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
57702
57718
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
|
|
57703
57719
|
};
|
|
57704
|
-
protoOf(GameHistoryReducer).
|
|
57720
|
+
protoOf(GameHistoryReducer).p9l = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
57705
57721
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
57706
|
-
return $super === VOID ? this.
|
|
57722
|
+
return $super === VOID ? this.t9l(playerId, combinations, combinationsStates, gameHistory) : $super.t9l.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
57707
57723
|
};
|
|
57708
|
-
protoOf(GameHistoryReducer).
|
|
57724
|
+
protoOf(GameHistoryReducer).q9l = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
57709
57725
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.q7p_1, numberOfBribe, System_instance.ck()));
|
|
57710
57726
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
57711
57727
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -57764,7 +57780,7 @@
|
|
|
57764
57780
|
}
|
|
57765
57781
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
57766
57782
|
};
|
|
57767
|
-
protoOf(GameHistoryReducer).
|
|
57783
|
+
protoOf(GameHistoryReducer).r9l = function (playerId, numberOfBribe, playersCards, playersCombinations, gameHistory) {
|
|
57768
57784
|
var tmp = listOf(new TakeAllRemainingCardsItem(playerId, numberOfBribe, playersCards, System_instance.ck()));
|
|
57769
57785
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
57770
57786
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -57823,7 +57839,7 @@
|
|
|
57823
57839
|
}
|
|
57824
57840
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
57825
57841
|
};
|
|
57826
|
-
protoOf(GameHistoryReducer).
|
|
57842
|
+
protoOf(GameHistoryReducer).o9l = function (winnerCombinations, gameHistory) {
|
|
57827
57843
|
// Inline function 'kotlin.collections.map' call
|
|
57828
57844
|
// Inline function 'kotlin.collections.mapTo' call
|
|
57829
57845
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -57839,7 +57855,7 @@
|
|
|
57839
57855
|
}
|
|
57840
57856
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
57841
57857
|
};
|
|
57842
|
-
protoOf(GameHistoryReducer).
|
|
57858
|
+
protoOf(GameHistoryReducer).f9l = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
57843
57859
|
if (playerConnection == null) {
|
|
57844
57860
|
return gameHistory;
|
|
57845
57861
|
}
|
|
@@ -57851,17 +57867,17 @@
|
|
|
57851
57867
|
tmp = false;
|
|
57852
57868
|
}
|
|
57853
57869
|
var isShortDisconnectState = tmp;
|
|
57854
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
57870
|
+
if (isSupportedReason && !isShortDisconnectState || this.d9l_1.verboseGameHistory) {
|
|
57855
57871
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.n67_1, playerConnection.v67(), System_instance.ck())));
|
|
57856
57872
|
}
|
|
57857
57873
|
return gameHistory;
|
|
57858
57874
|
};
|
|
57859
|
-
protoOf(GameHistoryReducer).
|
|
57875
|
+
protoOf(GameHistoryReducer).k9l = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
57860
57876
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
57861
57877
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
57862
57878
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_166.initial() : tmp0_elvis_lhs;
|
|
57863
57879
|
var tmp;
|
|
57864
|
-
if (this.
|
|
57880
|
+
if (this.d9l_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
57865
57881
|
// Inline function 'kotlin.collections.map' call
|
|
57866
57882
|
// Inline function 'kotlin.collections.mapTo' call
|
|
57867
57883
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -57876,7 +57892,7 @@
|
|
|
57876
57892
|
tmp = currentMetadata;
|
|
57877
57893
|
}
|
|
57878
57894
|
var updatedMetadata = tmp;
|
|
57879
|
-
var tmp1_items = plus_2(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
57895
|
+
var tmp1_items = plus_2(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.b9l_1.i8y(points), System_instance.ck())));
|
|
57880
57896
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
57881
57897
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
57882
57898
|
};
|
|
@@ -57901,7 +57917,7 @@
|
|
|
57901
57917
|
tmp = cardDeck;
|
|
57902
57918
|
}
|
|
57903
57919
|
var newCardDeck = tmp;
|
|
57904
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
57920
|
+
return new PreviousRound(bribes, newCardDeck, $this.w9l_1.j8y(players, config));
|
|
57905
57921
|
}
|
|
57906
57922
|
function roundFinishedGameInfoReducer($this, table) {
|
|
57907
57923
|
var gameInfo = table.gameInfo;
|
|
@@ -57946,10 +57962,10 @@
|
|
|
57946
57962
|
return points.o74(0, emptyList(), emptyList());
|
|
57947
57963
|
}
|
|
57948
57964
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
57949
|
-
this.
|
|
57950
|
-
this.
|
|
57965
|
+
this.w9l_1 = pointsInteractor;
|
|
57966
|
+
this.x9l_1 = historyReducer;
|
|
57951
57967
|
}
|
|
57952
|
-
protoOf(TableLifecycleReducerImpl).
|
|
57968
|
+
protoOf(TableLifecycleReducerImpl).u9l = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
57953
57969
|
var tmp = Companion_instance_154;
|
|
57954
57970
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
57955
57971
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -57981,7 +57997,7 @@
|
|
|
57981
57997
|
}
|
|
57982
57998
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
57983
57999
|
};
|
|
57984
|
-
protoOf(TableLifecycleReducerImpl).
|
|
58000
|
+
protoOf(TableLifecycleReducerImpl).o9k = function (table) {
|
|
57985
58001
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
57986
58002
|
// Inline function 'kotlin.collections.map' call
|
|
57987
58003
|
var this_0 = table.players;
|
|
@@ -57996,10 +58012,10 @@
|
|
|
57996
58012
|
var tmp2_cardsOnTable = emptyList();
|
|
57997
58013
|
var tmp3_bribes = emptyList();
|
|
57998
58014
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
57999
|
-
var tmp5_gameHistory = this.
|
|
58015
|
+
var tmp5_gameHistory = this.x9l_1.s9l(table.gameHistory);
|
|
58000
58016
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
58001
58017
|
};
|
|
58002
|
-
protoOf(TableLifecycleReducerImpl).
|
|
58018
|
+
protoOf(TableLifecycleReducerImpl).l9l = function (table) {
|
|
58003
58019
|
// Inline function 'kotlin.collections.map' call
|
|
58004
58020
|
var this_0 = table.players;
|
|
58005
58021
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -58010,9 +58026,9 @@
|
|
|
58010
58026
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
58011
58027
|
destination.j(tmp$ret$0);
|
|
58012
58028
|
}
|
|
58013
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
58029
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.x9l_1.s9l(table.gameHistory));
|
|
58014
58030
|
};
|
|
58015
|
-
protoOf(TableLifecycleReducerImpl).
|
|
58031
|
+
protoOf(TableLifecycleReducerImpl).v9l = function (table, newGameId) {
|
|
58016
58032
|
// Inline function 'kotlin.collections.map' call
|
|
58017
58033
|
var this_0 = table.players;
|
|
58018
58034
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -58051,93 +58067,93 @@
|
|
|
58051
58067
|
return true;
|
|
58052
58068
|
}
|
|
58053
58069
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
58054
|
-
this.
|
|
58055
|
-
this.
|
|
58056
|
-
this.
|
|
58057
|
-
this.
|
|
58070
|
+
this.y9l_1 = $isEnableForPlayer;
|
|
58071
|
+
this.z9l_1 = $playerTurnInteractor;
|
|
58072
|
+
this.a9m_1 = $logger;
|
|
58073
|
+
this.b9m_1 = $playerTurnMechanicReducer;
|
|
58058
58074
|
}
|
|
58059
58075
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).f6g = function (action) {
|
|
58060
58076
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
58061
58077
|
};
|
|
58062
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
58078
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).u9i = function (state, action) {
|
|
58063
58079
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
58064
58080
|
var tmp$ret$0;
|
|
58065
58081
|
$l$block: {
|
|
58066
58082
|
var table = state.x6r();
|
|
58067
58083
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
58068
|
-
if (!this.
|
|
58084
|
+
if (!this.y9l_1(player)) {
|
|
58069
58085
|
tmp$ret$0 = state;
|
|
58070
58086
|
break $l$block;
|
|
58071
58087
|
}
|
|
58072
|
-
var turnModel = this.
|
|
58088
|
+
var turnModel = this.z9l_1.c8z(player, tmp2);
|
|
58073
58089
|
var tmp;
|
|
58074
58090
|
if (turnModel == null) {
|
|
58075
|
-
this.
|
|
58091
|
+
this.a9m_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
58076
58092
|
tmp = state;
|
|
58077
58093
|
} else {
|
|
58078
|
-
tmp = state.r92(this.
|
|
58094
|
+
tmp = state.r92(this.b9m_1.z9k(table, turnModel));
|
|
58079
58095
|
}
|
|
58080
58096
|
tmp$ret$0 = tmp;
|
|
58081
58097
|
}
|
|
58082
58098
|
return tmp$ret$0;
|
|
58083
58099
|
};
|
|
58084
58100
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).v6h = function (state, action) {
|
|
58085
|
-
return this.
|
|
58101
|
+
return this.u9i((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58086
58102
|
};
|
|
58087
58103
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
58088
58104
|
return true;
|
|
58089
58105
|
}
|
|
58090
58106
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
58091
|
-
this.
|
|
58092
|
-
this.
|
|
58093
|
-
this.
|
|
58094
|
-
this.
|
|
58107
|
+
this.c9m_1 = $isEnableForPlayer;
|
|
58108
|
+
this.d9m_1 = $playerTurnInteractor;
|
|
58109
|
+
this.e9m_1 = $logger;
|
|
58110
|
+
this.f9m_1 = $playerTurnMechanicReducer;
|
|
58095
58111
|
}
|
|
58096
58112
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).f6g = function (action) {
|
|
58097
58113
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
58098
58114
|
};
|
|
58099
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
58115
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).u9i = function (state, action) {
|
|
58100
58116
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
58101
58117
|
var tmp$ret$0;
|
|
58102
58118
|
$l$block: {
|
|
58103
58119
|
var table = state.x6r();
|
|
58104
58120
|
var player = getPlayerTurn(tmp2, table.players);
|
|
58105
|
-
if (player == null || !this.
|
|
58121
|
+
if (player == null || !this.c9m_1(player)) {
|
|
58106
58122
|
tmp$ret$0 = state;
|
|
58107
58123
|
break $l$block;
|
|
58108
58124
|
}
|
|
58109
|
-
var turnModel = this.
|
|
58125
|
+
var turnModel = this.d9m_1.c8z(player, tmp2);
|
|
58110
58126
|
var tmp;
|
|
58111
58127
|
if (turnModel == null) {
|
|
58112
|
-
this.
|
|
58128
|
+
this.e9m_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
58113
58129
|
tmp = state;
|
|
58114
58130
|
} else {
|
|
58115
|
-
tmp = state.r92(this.
|
|
58131
|
+
tmp = state.r92(this.f9m_1.z9k(table, turnModel));
|
|
58116
58132
|
}
|
|
58117
58133
|
tmp$ret$0 = tmp;
|
|
58118
58134
|
}
|
|
58119
58135
|
return tmp$ret$0;
|
|
58120
58136
|
};
|
|
58121
58137
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).v6h = function (state, action) {
|
|
58122
|
-
return this.
|
|
58138
|
+
return this.u9i((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58123
58139
|
};
|
|
58124
58140
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
58125
58141
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
58126
58142
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
58127
58143
|
}
|
|
58128
58144
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
58129
|
-
this.
|
|
58130
|
-
this.
|
|
58145
|
+
this.g9m_1 = $playerTurnInteractor;
|
|
58146
|
+
this.h9m_1 = $playerTurnMechanicReducer;
|
|
58131
58147
|
}
|
|
58132
58148
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).f6g = function (action) {
|
|
58133
58149
|
return isInterface(action, NextPlayerTurnAction);
|
|
58134
58150
|
};
|
|
58135
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
58151
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).u9i = function (state, action) {
|
|
58136
58152
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
58137
58153
|
var tmp$ret$0;
|
|
58138
58154
|
$l$block: {
|
|
58139
58155
|
var table = state.x6r();
|
|
58140
|
-
var tmp0_elvis_lhs = this.
|
|
58156
|
+
var tmp0_elvis_lhs = this.g9m_1.b8z(tmp2, table);
|
|
58141
58157
|
var tmp;
|
|
58142
58158
|
if (tmp0_elvis_lhs == null) {
|
|
58143
58159
|
tmp$ret$0 = state;
|
|
@@ -58146,12 +58162,12 @@
|
|
|
58146
58162
|
tmp = tmp0_elvis_lhs;
|
|
58147
58163
|
}
|
|
58148
58164
|
var turnModel = tmp;
|
|
58149
|
-
tmp$ret$0 = state.r92(this.
|
|
58165
|
+
tmp$ret$0 = state.r92(this.h9m_1.y9k(table, turnModel));
|
|
58150
58166
|
}
|
|
58151
58167
|
return tmp$ret$0;
|
|
58152
58168
|
};
|
|
58153
58169
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).v6h = function (state, action) {
|
|
58154
|
-
return this.
|
|
58170
|
+
return this.u9i((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58155
58171
|
};
|
|
58156
58172
|
function get_isCreated(_this__u8e3s4) {
|
|
58157
58173
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -58167,7 +58183,7 @@
|
|
|
58167
58183
|
}
|
|
58168
58184
|
function Companion_172() {
|
|
58169
58185
|
}
|
|
58170
|
-
protoOf(Companion_172).
|
|
58186
|
+
protoOf(Companion_172).i9m = function (payload) {
|
|
58171
58187
|
var tmp;
|
|
58172
58188
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
58173
58189
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -58189,27 +58205,27 @@
|
|
|
58189
58205
|
return Companion_instance_177;
|
|
58190
58206
|
}
|
|
58191
58207
|
function CallbackWrapperLoggerOutput(logger, payloadMapper) {
|
|
58192
|
-
this.
|
|
58193
|
-
this.
|
|
58208
|
+
this.j9m_1 = logger;
|
|
58209
|
+
this.k9m_1 = payloadMapper;
|
|
58194
58210
|
}
|
|
58195
58211
|
protoOf(CallbackWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
58196
|
-
this.
|
|
58212
|
+
this.j9m_1.d(tag, message, this.k9m_1(payload));
|
|
58197
58213
|
};
|
|
58198
58214
|
protoOf(CallbackWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
58199
|
-
this.
|
|
58215
|
+
this.j9m_1.e(tag, message, exception, this.k9m_1(payload));
|
|
58200
58216
|
};
|
|
58201
58217
|
protoOf(CallbackWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
58202
|
-
this.
|
|
58218
|
+
this.j9m_1.i(tag, message, this.k9m_1(payload));
|
|
58203
58219
|
};
|
|
58204
58220
|
protoOf(CallbackWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
58205
|
-
this.
|
|
58221
|
+
this.j9m_1.v(tag, message, exception, this.k9m_1(payload));
|
|
58206
58222
|
};
|
|
58207
58223
|
protoOf(CallbackWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
58208
|
-
this.
|
|
58224
|
+
this.j9m_1.w(tag, message, exception, this.k9m_1(payload));
|
|
58209
58225
|
};
|
|
58210
58226
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
58211
|
-
this.
|
|
58212
|
-
this.
|
|
58227
|
+
this.t9m_1 = $$this$unsafeFlow;
|
|
58228
|
+
this.u9m_1 = $types;
|
|
58213
58229
|
CoroutineImpl.call(this, resultContinuation);
|
|
58214
58230
|
}
|
|
58215
58231
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).w2h = function (value, $completion) {
|
|
@@ -58230,15 +58246,15 @@
|
|
|
58230
58246
|
case 0:
|
|
58231
58247
|
this.t8_1 = 5;
|
|
58232
58248
|
var tmp_0 = this;
|
|
58233
|
-
tmp_0.
|
|
58249
|
+
tmp_0.x9m_1 = this.t9m_1;
|
|
58234
58250
|
var tmp_1 = this;
|
|
58235
|
-
tmp_1.
|
|
58251
|
+
tmp_1.w9m_1 = this.v9m_1;
|
|
58236
58252
|
this.s8_1 = 1;
|
|
58237
58253
|
continue $sm;
|
|
58238
58254
|
case 1:
|
|
58239
|
-
var $this$transform = this.
|
|
58240
|
-
var value = this.
|
|
58241
|
-
if (contains(this.
|
|
58255
|
+
var $this$transform = this.x9m_1;
|
|
58256
|
+
var value = this.w9m_1;
|
|
58257
|
+
if (contains(this.u9m_1, value.type)) {
|
|
58242
58258
|
this.s8_1 = 3;
|
|
58243
58259
|
suspendResult = $this$transform.n28(value, this);
|
|
58244
58260
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -58278,8 +58294,8 @@
|
|
|
58278
58294
|
while (true);
|
|
58279
58295
|
};
|
|
58280
58296
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).x2h = function (value, completion) {
|
|
58281
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
58282
|
-
i.
|
|
58297
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.t9m_1, this.u9m_1, completion);
|
|
58298
|
+
i.v9m_1 = value;
|
|
58283
58299
|
return i;
|
|
58284
58300
|
};
|
|
58285
58301
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -58292,8 +58308,8 @@
|
|
|
58292
58308
|
}
|
|
58293
58309
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
58294
58310
|
CoroutineImpl.call(this, resultContinuation);
|
|
58295
|
-
this.
|
|
58296
|
-
this.
|
|
58311
|
+
this.g9n_1 = _this__u8e3s4;
|
|
58312
|
+
this.h9n_1 = collector;
|
|
58297
58313
|
}
|
|
58298
58314
|
protoOf($collectCOROUTINE$).a9 = function () {
|
|
58299
58315
|
var suspendResult = this.u8_1;
|
|
@@ -58303,10 +58319,10 @@
|
|
|
58303
58319
|
switch (tmp) {
|
|
58304
58320
|
case 0:
|
|
58305
58321
|
this.t8_1 = 2;
|
|
58306
|
-
var $this$unsafeFlow = this.
|
|
58322
|
+
var $this$unsafeFlow = this.h9n_1;
|
|
58307
58323
|
this.s8_1 = 1;
|
|
58308
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
58309
|
-
suspendResult = this.
|
|
58324
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.g9n_1.j9n_1, null);
|
|
58325
|
+
suspendResult = this.g9n_1.i9n_1.n27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
58310
58326
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
58311
58327
|
return suspendResult;
|
|
58312
58328
|
}
|
|
@@ -58330,8 +58346,8 @@
|
|
|
58330
58346
|
};
|
|
58331
58347
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
58332
58348
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
58333
|
-
$this.
|
|
58334
|
-
var tmp0_elvis_lhs = $this.
|
|
58349
|
+
$this.m9n_1;
|
|
58350
|
+
var tmp0_elvis_lhs = $this.k9n_1(payload);
|
|
58335
58351
|
var tmp;
|
|
58336
58352
|
if (tmp0_elvis_lhs == null) {
|
|
58337
58353
|
return Unit_instance;
|
|
@@ -58340,7 +58356,7 @@
|
|
|
58340
58356
|
}
|
|
58341
58357
|
var key = tmp;
|
|
58342
58358
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
58343
|
-
var this_0 = $this.
|
|
58359
|
+
var this_0 = $this.n9n_1;
|
|
58344
58360
|
var value = this_0.c2(key);
|
|
58345
58361
|
var tmp_0;
|
|
58346
58362
|
if (value == null) {
|
|
@@ -58352,7 +58368,7 @@
|
|
|
58352
58368
|
}
|
|
58353
58369
|
var logger = tmp_0;
|
|
58354
58370
|
var tmp1_key = key.p6l();
|
|
58355
|
-
logger.
|
|
58371
|
+
logger.o9n_1.i2b(new LoggerOutputDataDto(type, tmp1_key, tag, message, stackTrace));
|
|
58356
58372
|
}
|
|
58357
58373
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
58358
58374
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -58362,35 +58378,35 @@
|
|
|
58362
58378
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
58363
58379
|
controller = controller === VOID ? null : controller;
|
|
58364
58380
|
job = job === VOID ? null : job;
|
|
58365
|
-
this.
|
|
58366
|
-
this.
|
|
58367
|
-
this.
|
|
58381
|
+
this.o9n_1 = flow;
|
|
58382
|
+
this.p9n_1 = controller;
|
|
58383
|
+
this.q9n_1 = job;
|
|
58368
58384
|
}
|
|
58369
|
-
protoOf(LoggerModel).
|
|
58370
|
-
this.
|
|
58371
|
-
var tmp0_safe_receiver = this.
|
|
58385
|
+
protoOf(LoggerModel).r9n = function () {
|
|
58386
|
+
this.o9n_1.m2b();
|
|
58387
|
+
var tmp0_safe_receiver = this.q9n_1;
|
|
58372
58388
|
if (tmp0_safe_receiver == null)
|
|
58373
58389
|
null;
|
|
58374
58390
|
else {
|
|
58375
58391
|
tmp0_safe_receiver.o1q();
|
|
58376
58392
|
}
|
|
58377
58393
|
};
|
|
58378
|
-
protoOf(LoggerModel).
|
|
58394
|
+
protoOf(LoggerModel).s9n = function (flow, controller, job) {
|
|
58379
58395
|
return new LoggerModel(flow, controller, job);
|
|
58380
58396
|
};
|
|
58381
|
-
protoOf(LoggerModel).
|
|
58382
|
-
flow = flow === VOID ? this.
|
|
58383
|
-
controller = controller === VOID ? this.
|
|
58384
|
-
job = job === VOID ? this.
|
|
58385
|
-
return $super === VOID ? this.
|
|
58397
|
+
protoOf(LoggerModel).t9n = function (flow, controller, job, $super) {
|
|
58398
|
+
flow = flow === VOID ? this.o9n_1 : flow;
|
|
58399
|
+
controller = controller === VOID ? this.p9n_1 : controller;
|
|
58400
|
+
job = job === VOID ? this.q9n_1 : job;
|
|
58401
|
+
return $super === VOID ? this.s9n(flow, controller, job) : $super.s9n.call(this, flow, controller, job);
|
|
58386
58402
|
};
|
|
58387
58403
|
protoOf(LoggerModel).toString = function () {
|
|
58388
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
58404
|
+
return 'LoggerModel(flow=' + toString(this.o9n_1) + ', controller=' + toString_0(this.p9n_1) + ', job=' + toString_0(this.q9n_1) + ')';
|
|
58389
58405
|
};
|
|
58390
58406
|
protoOf(LoggerModel).hashCode = function () {
|
|
58391
|
-
var result = hashCode(this.
|
|
58392
|
-
result = imul(result, 31) + (this.o9n_1 == null ? 0 : hashCode(this.o9n_1)) | 0;
|
|
58407
|
+
var result = hashCode(this.o9n_1);
|
|
58393
58408
|
result = imul(result, 31) + (this.p9n_1 == null ? 0 : hashCode(this.p9n_1)) | 0;
|
|
58409
|
+
result = imul(result, 31) + (this.q9n_1 == null ? 0 : hashCode(this.q9n_1)) | 0;
|
|
58394
58410
|
return result;
|
|
58395
58411
|
};
|
|
58396
58412
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -58398,19 +58414,19 @@
|
|
|
58398
58414
|
return true;
|
|
58399
58415
|
if (!(other instanceof LoggerModel))
|
|
58400
58416
|
return false;
|
|
58401
|
-
if (!equals(this.n9n_1, other.n9n_1))
|
|
58402
|
-
return false;
|
|
58403
58417
|
if (!equals(this.o9n_1, other.o9n_1))
|
|
58404
58418
|
return false;
|
|
58405
58419
|
if (!equals(this.p9n_1, other.p9n_1))
|
|
58406
58420
|
return false;
|
|
58421
|
+
if (!equals(this.q9n_1, other.q9n_1))
|
|
58422
|
+
return false;
|
|
58407
58423
|
return true;
|
|
58408
58424
|
};
|
|
58409
58425
|
function Companion_173() {
|
|
58410
|
-
this.
|
|
58411
|
-
this.
|
|
58426
|
+
this.u9n_1 = 1000;
|
|
58427
|
+
this.v9n_1 = 'FileLoggerOutput';
|
|
58412
58428
|
}
|
|
58413
|
-
protoOf(Companion_173).
|
|
58429
|
+
protoOf(Companion_173).w9n = function (payload) {
|
|
58414
58430
|
var tmp;
|
|
58415
58431
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
58416
58432
|
tmp = payload.id;
|
|
@@ -58432,13 +58448,13 @@
|
|
|
58432
58448
|
return Companion_instance_178;
|
|
58433
58449
|
}
|
|
58434
58450
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
58435
|
-
this.
|
|
58451
|
+
this.x9n_1 = function_0;
|
|
58436
58452
|
}
|
|
58437
58453
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).n28 = function (value, $completion) {
|
|
58438
|
-
return this.
|
|
58454
|
+
return this.x9n_1(value, $completion);
|
|
58439
58455
|
};
|
|
58440
58456
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).b3 = function () {
|
|
58441
|
-
return this.
|
|
58457
|
+
return this.x9n_1;
|
|
58442
58458
|
};
|
|
58443
58459
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
58444
58460
|
var tmp;
|
|
@@ -58459,8 +58475,8 @@
|
|
|
58459
58475
|
return hashCode(this.b3());
|
|
58460
58476
|
};
|
|
58461
58477
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
58462
|
-
this.
|
|
58463
|
-
this.
|
|
58478
|
+
this.i9n_1 = $this;
|
|
58479
|
+
this.j9n_1 = $types;
|
|
58464
58480
|
}
|
|
58465
58481
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).o28 = function (collector, $completion) {
|
|
58466
58482
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -58473,26 +58489,26 @@
|
|
|
58473
58489
|
};
|
|
58474
58490
|
function FileLoggerOutputImpl(payloadToLoggerKeyMapper, enabled) {
|
|
58475
58491
|
enabled = enabled === VOID ? true : enabled;
|
|
58476
|
-
this.
|
|
58477
|
-
this.
|
|
58492
|
+
this.k9n_1 = payloadToLoggerKeyMapper;
|
|
58493
|
+
this.l9n_1 = enabled;
|
|
58478
58494
|
var tmp = this;
|
|
58479
58495
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
58480
|
-
tmp.
|
|
58496
|
+
tmp.m9n_1 = get_atomicfu$reentrantLock();
|
|
58481
58497
|
var tmp_0 = this;
|
|
58482
58498
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
58483
|
-
tmp_0.
|
|
58499
|
+
tmp_0.n9n_1 = LinkedHashMap_init_$Create$();
|
|
58484
58500
|
}
|
|
58485
58501
|
protoOf(FileLoggerOutputImpl).c1l = function (_set____db54di) {
|
|
58486
|
-
this.
|
|
58502
|
+
this.l9n_1 = _set____db54di;
|
|
58487
58503
|
};
|
|
58488
58504
|
protoOf(FileLoggerOutputImpl).d1l = function () {
|
|
58489
|
-
return this.
|
|
58505
|
+
return this.l9n_1;
|
|
58490
58506
|
};
|
|
58491
|
-
protoOf(FileLoggerOutputImpl).
|
|
58507
|
+
protoOf(FileLoggerOutputImpl).y9n = function (loggerKey, types) {
|
|
58492
58508
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
58493
|
-
this.
|
|
58509
|
+
this.m9n_1;
|
|
58494
58510
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
58495
|
-
var this_0 = this.
|
|
58511
|
+
var this_0 = this.n9n_1;
|
|
58496
58512
|
var value = this_0.c2(loggerKey);
|
|
58497
58513
|
var tmp;
|
|
58498
58514
|
if (value == null) {
|
|
@@ -58505,27 +58521,27 @@
|
|
|
58505
58521
|
var logger = tmp;
|
|
58506
58522
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
58507
58523
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
58508
|
-
var this_1 = logger.
|
|
58524
|
+
var this_1 = logger.o9n_1;
|
|
58509
58525
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
58510
58526
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
58511
58527
|
};
|
|
58512
|
-
protoOf(FileLoggerOutputImpl).
|
|
58528
|
+
protoOf(FileLoggerOutputImpl).n9d = function (loggerKey) {
|
|
58513
58529
|
this.d('FileLoggerOutput', 'destroy logger ' + toString(loggerKey));
|
|
58514
58530
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
58515
|
-
this.
|
|
58516
|
-
var tmp0_safe_receiver = this.
|
|
58531
|
+
this.m9n_1;
|
|
58532
|
+
var tmp0_safe_receiver = this.n9n_1.c2(loggerKey);
|
|
58517
58533
|
if (tmp0_safe_receiver == null)
|
|
58518
58534
|
null;
|
|
58519
58535
|
else {
|
|
58520
|
-
tmp0_safe_receiver.
|
|
58536
|
+
tmp0_safe_receiver.r9n();
|
|
58521
58537
|
}
|
|
58522
|
-
this.
|
|
58538
|
+
this.n9n_1.g2(loggerKey);
|
|
58523
58539
|
};
|
|
58524
|
-
protoOf(FileLoggerOutputImpl).
|
|
58540
|
+
protoOf(FileLoggerOutputImpl).m9d = function (loggerKey, job, controller) {
|
|
58525
58541
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
58526
|
-
this.
|
|
58542
|
+
this.m9n_1;
|
|
58527
58543
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
58528
|
-
var this_0 = this.
|
|
58544
|
+
var this_0 = this.n9n_1;
|
|
58529
58545
|
var value = this_0.c2(loggerKey);
|
|
58530
58546
|
var tmp;
|
|
58531
58547
|
if (value == null) {
|
|
@@ -58535,31 +58551,31 @@
|
|
|
58535
58551
|
} else {
|
|
58536
58552
|
tmp = value;
|
|
58537
58553
|
}
|
|
58538
|
-
var updatedModel = tmp.
|
|
58554
|
+
var updatedModel = tmp.t9n(VOID, controller, job);
|
|
58539
58555
|
// Inline function 'kotlin.collections.set' call
|
|
58540
|
-
this.
|
|
58556
|
+
this.n9n_1.f2(loggerKey, updatedModel);
|
|
58541
58557
|
this.d('FileLoggerOutput', 'create logger ' + toString(loggerKey));
|
|
58542
58558
|
};
|
|
58543
58559
|
protoOf(FileLoggerOutputImpl).i2 = function () {
|
|
58544
58560
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
58545
|
-
this.
|
|
58561
|
+
this.m9n_1;
|
|
58546
58562
|
// Inline function 'kotlin.collections.forEach' call
|
|
58547
58563
|
// Inline function 'kotlin.collections.iterator' call
|
|
58548
|
-
var _iterator__ex2g4s = this.
|
|
58564
|
+
var _iterator__ex2g4s = this.n9n_1.v().l();
|
|
58549
58565
|
while (_iterator__ex2g4s.m()) {
|
|
58550
58566
|
var element = _iterator__ex2g4s.n();
|
|
58551
|
-
element.x().
|
|
58567
|
+
element.x().r9n();
|
|
58552
58568
|
}
|
|
58553
|
-
this.
|
|
58569
|
+
this.n9n_1.i2();
|
|
58554
58570
|
};
|
|
58555
58571
|
protoOf(FileLoggerOutputImpl).x1k = function (tag, message, payload) {
|
|
58556
|
-
if (!this.
|
|
58572
|
+
if (!this.l9n_1)
|
|
58557
58573
|
return Unit_instance;
|
|
58558
58574
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
58559
58575
|
log$default(this, tmp0_type, tag, message, payload);
|
|
58560
58576
|
};
|
|
58561
58577
|
protoOf(FileLoggerOutputImpl).y1k = function (tag, message, exception, payload) {
|
|
58562
|
-
if (!this.
|
|
58578
|
+
if (!this.l9n_1)
|
|
58563
58579
|
return Unit_instance;
|
|
58564
58580
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
58565
58581
|
var tmp;
|
|
@@ -58574,13 +58590,13 @@
|
|
|
58574
58590
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
58575
58591
|
};
|
|
58576
58592
|
protoOf(FileLoggerOutputImpl).b1l = function (tag, message, payload) {
|
|
58577
|
-
if (!this.
|
|
58593
|
+
if (!this.l9n_1)
|
|
58578
58594
|
return Unit_instance;
|
|
58579
58595
|
var tmp0_type = LogType_INFO_getInstance();
|
|
58580
58596
|
log(this, tmp0_type, tag, message, payload, null);
|
|
58581
58597
|
};
|
|
58582
58598
|
protoOf(FileLoggerOutputImpl).a1l = function (tag, message, exception, payload) {
|
|
58583
|
-
if (!this.
|
|
58599
|
+
if (!this.l9n_1)
|
|
58584
58600
|
return Unit_instance;
|
|
58585
58601
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
58586
58602
|
var tmp;
|
|
@@ -58595,7 +58611,7 @@
|
|
|
58595
58611
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
58596
58612
|
};
|
|
58597
58613
|
protoOf(FileLoggerOutputImpl).z1k = function (tag, message, exception, payload) {
|
|
58598
|
-
if (!this.
|
|
58614
|
+
if (!this.l9n_1)
|
|
58599
58615
|
return Unit_instance;
|
|
58600
58616
|
var tmp4_type = LogType_WARN_getInstance();
|
|
58601
58617
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -59135,9 +59151,9 @@
|
|
|
59135
59151
|
}
|
|
59136
59152
|
}
|
|
59137
59153
|
function GameHelperImpl(logger) {
|
|
59138
|
-
this.
|
|
59154
|
+
this.c9o_1 = logger;
|
|
59139
59155
|
}
|
|
59140
|
-
protoOf(GameHelperImpl).
|
|
59156
|
+
protoOf(GameHelperImpl).z9n = function (store, playerIds, includeBots) {
|
|
59141
59157
|
var state = store.state;
|
|
59142
59158
|
var tmp;
|
|
59143
59159
|
if (!state.z6r()) {
|
|
@@ -59183,7 +59199,7 @@
|
|
|
59183
59199
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
59184
59200
|
return copyToArray(destination_1);
|
|
59185
59201
|
};
|
|
59186
|
-
protoOf(GameHelperImpl).
|
|
59202
|
+
protoOf(GameHelperImpl).a9o = function (store, playerIds, includeBots) {
|
|
59187
59203
|
var state = store.state;
|
|
59188
59204
|
var tmp;
|
|
59189
59205
|
if (!state.z6r()) {
|
|
@@ -59354,10 +59370,10 @@
|
|
|
59354
59370
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
59355
59371
|
return copyToArray(destination);
|
|
59356
59372
|
};
|
|
59357
|
-
protoOf(GameHelperImpl).
|
|
59373
|
+
protoOf(GameHelperImpl).b9o = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
59358
59374
|
var roomMode = mapToRoomMode(mode);
|
|
59359
59375
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
59360
|
-
this.
|
|
59376
|
+
this.c9o_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
59361
59377
|
var options = Companion_instance_162.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
59362
59378
|
var playersMode = this.mapPlayers(players);
|
|
59363
59379
|
var pointsMode = this.mapPoints(points);
|
|
@@ -59792,40 +59808,40 @@
|
|
|
59792
59808
|
function getRandomAvatarData_0($this) {
|
|
59793
59809
|
var avatarSetNumber = Default_getInstance().t(get_entries_6().o());
|
|
59794
59810
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
59795
|
-
return new AvatarData(Default_getInstance().t(avatarSet.
|
|
59811
|
+
return new AvatarData(Default_getInstance().t(avatarSet.g9o()), avatarSet);
|
|
59796
59812
|
}
|
|
59797
59813
|
function getAvatarUrlByIndex($this, data) {
|
|
59798
59814
|
return mapToPattern($this, data);
|
|
59799
59815
|
}
|
|
59800
59816
|
function getNicknameByIndex($this, data) {
|
|
59801
|
-
return data.
|
|
59817
|
+
return data.i9o_1.j9o(data.h9o_1);
|
|
59802
59818
|
}
|
|
59803
59819
|
function mapToPattern($this, data) {
|
|
59804
|
-
return 'debertz://raspberry.games/' + data.
|
|
59820
|
+
return 'debertz://raspberry.games/' + data.i9o_1.q2_1 + '/' + data.h9o_1;
|
|
59805
59821
|
}
|
|
59806
59822
|
function Companion_174() {
|
|
59807
59823
|
Companion_instance_179 = this;
|
|
59808
|
-
this.
|
|
59824
|
+
this.k9o_1 = 'debertz://raspberry.games';
|
|
59809
59825
|
var tmp = this;
|
|
59810
59826
|
// Inline function 'kotlin.arrayOf' call
|
|
59811
59827
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
59812
59828
|
// Inline function 'kotlin.js.asDynamic' call
|
|
59813
|
-
tmp.
|
|
59829
|
+
tmp.l9o_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
59814
59830
|
var tmp_0 = this;
|
|
59815
59831
|
// Inline function 'kotlin.arrayOf' call
|
|
59816
59832
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
59817
59833
|
// Inline function 'kotlin.js.asDynamic' call
|
|
59818
|
-
tmp_0.
|
|
59834
|
+
tmp_0.m9o_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'];
|
|
59819
59835
|
var tmp_1 = this;
|
|
59820
59836
|
// Inline function 'kotlin.arrayOf' call
|
|
59821
59837
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
59822
59838
|
// Inline function 'kotlin.js.asDynamic' call
|
|
59823
|
-
tmp_1.
|
|
59839
|
+
tmp_1.n9o_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
59824
59840
|
var tmp_2 = this;
|
|
59825
59841
|
// Inline function 'kotlin.arrayOf' call
|
|
59826
59842
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
59827
59843
|
// Inline function 'kotlin.js.asDynamic' call
|
|
59828
|
-
tmp_2.
|
|
59844
|
+
tmp_2.o9o_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'];
|
|
59829
59845
|
}
|
|
59830
59846
|
var Companion_instance_179;
|
|
59831
59847
|
function Companion_getInstance_181() {
|
|
@@ -59836,14 +59852,14 @@
|
|
|
59836
59852
|
function AvatarSet(name, ordinal) {
|
|
59837
59853
|
Enum.call(this, name, ordinal);
|
|
59838
59854
|
}
|
|
59839
|
-
protoOf(AvatarSet).
|
|
59855
|
+
protoOf(AvatarSet).g9o = function () {
|
|
59840
59856
|
var tmp;
|
|
59841
59857
|
switch (this.q2_1) {
|
|
59842
59858
|
case 0:
|
|
59843
|
-
tmp = Companion_getInstance_181().
|
|
59859
|
+
tmp = Companion_getInstance_181().m9o_1.length;
|
|
59844
59860
|
break;
|
|
59845
59861
|
case 1:
|
|
59846
|
-
tmp = Companion_getInstance_181().
|
|
59862
|
+
tmp = Companion_getInstance_181().o9o_1.length;
|
|
59847
59863
|
break;
|
|
59848
59864
|
default:
|
|
59849
59865
|
noWhenBranchMatchedException();
|
|
@@ -59851,14 +59867,14 @@
|
|
|
59851
59867
|
}
|
|
59852
59868
|
return tmp;
|
|
59853
59869
|
};
|
|
59854
|
-
protoOf(AvatarSet).
|
|
59870
|
+
protoOf(AvatarSet).j9o = function (index) {
|
|
59855
59871
|
var tmp;
|
|
59856
59872
|
switch (this.q2_1) {
|
|
59857
59873
|
case 0:
|
|
59858
|
-
tmp = Companion_getInstance_181().
|
|
59874
|
+
tmp = Companion_getInstance_181().m9o_1[index];
|
|
59859
59875
|
break;
|
|
59860
59876
|
case 1:
|
|
59861
|
-
tmp = Companion_getInstance_181().
|
|
59877
|
+
tmp = Companion_getInstance_181().o9o_1[index];
|
|
59862
59878
|
break;
|
|
59863
59879
|
default:
|
|
59864
59880
|
noWhenBranchMatchedException();
|
|
@@ -59867,8 +59883,8 @@
|
|
|
59867
59883
|
return tmp;
|
|
59868
59884
|
};
|
|
59869
59885
|
function AvatarData(index, avatarSet) {
|
|
59870
|
-
this.
|
|
59871
|
-
this.
|
|
59886
|
+
this.h9o_1 = index;
|
|
59887
|
+
this.i9o_1 = avatarSet;
|
|
59872
59888
|
}
|
|
59873
59889
|
function AvatarSet_ORIGIN_getInstance() {
|
|
59874
59890
|
AvatarSet_initEntries();
|
|
@@ -59881,7 +59897,7 @@
|
|
|
59881
59897
|
function GameResourcesImpl() {
|
|
59882
59898
|
Companion_getInstance_181();
|
|
59883
59899
|
}
|
|
59884
|
-
protoOf(GameResourcesImpl).
|
|
59900
|
+
protoOf(GameResourcesImpl).d9o = function (playerId, existingNicknames) {
|
|
59885
59901
|
return createUser(this, playerId, existingNicknames);
|
|
59886
59902
|
};
|
|
59887
59903
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -59922,45 +59938,45 @@
|
|
|
59922
59938
|
}
|
|
59923
59939
|
var WARN;
|
|
59924
59940
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
59925
|
-
this.
|
|
59941
|
+
this.p9o_1 = loggerCallback;
|
|
59926
59942
|
}
|
|
59927
59943
|
protoOf(LoggerCallbacksWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
59928
|
-
this.
|
|
59944
|
+
this.p9o_1('debug', tag, message, null, payload);
|
|
59929
59945
|
};
|
|
59930
59946
|
protoOf(LoggerCallbacksWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
59931
|
-
this.
|
|
59947
|
+
this.p9o_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
59932
59948
|
};
|
|
59933
59949
|
protoOf(LoggerCallbacksWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
59934
|
-
this.
|
|
59950
|
+
this.p9o_1('debug', tag, message, null, payload);
|
|
59935
59951
|
};
|
|
59936
59952
|
protoOf(LoggerCallbacksWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
59937
|
-
this.
|
|
59953
|
+
this.p9o_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
59938
59954
|
};
|
|
59939
59955
|
protoOf(LoggerCallbacksWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
59940
|
-
this.
|
|
59956
|
+
this.p9o_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
59941
59957
|
};
|
|
59942
59958
|
function ParserHelper() {
|
|
59943
59959
|
}
|
|
59944
59960
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
59945
|
-
this.
|
|
59946
|
-
this.
|
|
59961
|
+
this.q9o_1 = json;
|
|
59962
|
+
this.r9o_1 = encoderDecoderProvider;
|
|
59947
59963
|
}
|
|
59948
59964
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
59949
|
-
return this.
|
|
59965
|
+
return this.r9o_1.h8q(mapToDto_20(action));
|
|
59950
59966
|
};
|
|
59951
59967
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
59952
|
-
return mapFromDto_16(this.
|
|
59968
|
+
return mapFromDto_16(this.r9o_1.l8q(json), fromPlayerId);
|
|
59953
59969
|
};
|
|
59954
59970
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
59955
|
-
return this.
|
|
59971
|
+
return this.r9o_1.j8q(mapToDto_78(action));
|
|
59956
59972
|
};
|
|
59957
59973
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
59958
59974
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
59959
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
59975
|
+
var this_0 = mapFromClientDtoListWithPayload(this.r9o_1.m8q(json), playerId, engine);
|
|
59960
59976
|
return copyToArray(this_0);
|
|
59961
59977
|
};
|
|
59962
59978
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
59963
|
-
var tmp0 = this.
|
|
59979
|
+
var tmp0 = this.q9o_1;
|
|
59964
59980
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
59965
59981
|
var value = mapToDto_32(round);
|
|
59966
59982
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -59971,7 +59987,7 @@
|
|
|
59971
59987
|
return tmp0.ep(tmp$ret$1, value);
|
|
59972
59988
|
};
|
|
59973
59989
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
59974
|
-
var tmp0 = this.
|
|
59990
|
+
var tmp0 = this.q9o_1;
|
|
59975
59991
|
// Inline function 'kotlin.collections.map' call
|
|
59976
59992
|
var this_0 = round.items;
|
|
59977
59993
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59993,7 +60009,7 @@
|
|
|
59993
60009
|
return tmp0.ep(tmp$ret$4, destination);
|
|
59994
60010
|
};
|
|
59995
60011
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
59996
|
-
var tmp0 = this.
|
|
60012
|
+
var tmp0 = this.q9o_1;
|
|
59997
60013
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
59998
60014
|
var value = mapToDto_34(metadata);
|
|
59999
60015
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -60004,7 +60020,7 @@
|
|
|
60004
60020
|
return tmp0.ep(tmp$ret$1, value);
|
|
60005
60021
|
};
|
|
60006
60022
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
60007
|
-
var tmp0 = this.
|
|
60023
|
+
var tmp0 = this.q9o_1;
|
|
60008
60024
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
60009
60025
|
var value = mapToDto_63(config);
|
|
60010
60026
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -60015,7 +60031,7 @@
|
|
|
60015
60031
|
return tmp0.ep(tmp$ret$1, value);
|
|
60016
60032
|
};
|
|
60017
60033
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
60018
|
-
var tmp0 = this.
|
|
60034
|
+
var tmp0 = this.q9o_1;
|
|
60019
60035
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
60020
60036
|
var value = mapToDto_100(transition);
|
|
60021
60037
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -60027,7 +60043,7 @@
|
|
|
60027
60043
|
};
|
|
60028
60044
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
60029
60045
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
60030
|
-
var this_0 = this.
|
|
60046
|
+
var this_0 = this.q9o_1;
|
|
60031
60047
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
60032
60048
|
var this_1 = this_0.ds();
|
|
60033
60049
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -60038,7 +60054,7 @@
|
|
|
60038
60054
|
};
|
|
60039
60055
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
60040
60056
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
60041
|
-
var this_0 = this.
|
|
60057
|
+
var this_0 = this.q9o_1;
|
|
60042
60058
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
60043
60059
|
var this_1 = this_0.ds();
|
|
60044
60060
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -60048,7 +60064,7 @@
|
|
|
60048
60064
|
return mapFromDto_99(tmp$ret$2);
|
|
60049
60065
|
};
|
|
60050
60066
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
60051
|
-
var tmp0 = this.
|
|
60067
|
+
var tmp0 = this.q9o_1;
|
|
60052
60068
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
60053
60069
|
var value = mapToDto_131(table);
|
|
60054
60070
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -60059,11 +60075,11 @@
|
|
|
60059
60075
|
return tmp0.ep(tmp$ret$1, value);
|
|
60060
60076
|
};
|
|
60061
60077
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
60062
|
-
return mapFromDto_65(this.
|
|
60078
|
+
return mapFromDto_65(this.r9o_1.k8q(json));
|
|
60063
60079
|
};
|
|
60064
60080
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
60065
60081
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
60066
|
-
var this_0 = this.
|
|
60082
|
+
var this_0 = this.q9o_1;
|
|
60067
60083
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
60068
60084
|
var this_1 = this_0.ds();
|
|
60069
60085
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -60076,20 +60092,20 @@
|
|
|
60076
60092
|
function RatingHelper() {
|
|
60077
60093
|
}
|
|
60078
60094
|
function RatingHelperImpl(json, userRatingInteractor) {
|
|
60079
|
-
this.
|
|
60080
|
-
this.
|
|
60095
|
+
this.s9o_1 = json;
|
|
60096
|
+
this.t9o_1 = userRatingInteractor;
|
|
60081
60097
|
}
|
|
60082
60098
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
60083
|
-
return this.
|
|
60099
|
+
return this.t9o_1.u8y(league, rating);
|
|
60084
60100
|
};
|
|
60085
60101
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
60086
|
-
return this.
|
|
60102
|
+
return this.t9o_1.w8y(rating);
|
|
60087
60103
|
};
|
|
60088
60104
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
60089
|
-
return this.
|
|
60105
|
+
return this.t9o_1.v8y();
|
|
60090
60106
|
};
|
|
60091
60107
|
protoOf(RatingHelperImpl).getLeaguesConfigJson = function () {
|
|
60092
|
-
var tmp0 = this.
|
|
60108
|
+
var tmp0 = this.s9o_1;
|
|
60093
60109
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
60094
60110
|
var value = mapToDto_47(this.getLeaguesConfig());
|
|
60095
60111
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -60208,14 +60224,14 @@
|
|
|
60208
60224
|
return new GameResourcesImpl();
|
|
60209
60225
|
}
|
|
60210
60226
|
function _get_logger__rkp4sl_3($this) {
|
|
60211
|
-
var tmp0 = $this.
|
|
60227
|
+
var tmp0 = $this.v9o_1;
|
|
60212
60228
|
var tmp = KProperty1;
|
|
60213
60229
|
// Inline function 'kotlin.getValue' call
|
|
60214
60230
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
60215
60231
|
return tmp0.x();
|
|
60216
60232
|
}
|
|
60217
60233
|
function _get_di__ndbzja($this) {
|
|
60218
|
-
var tmp0 = $this.
|
|
60234
|
+
var tmp0 = $this.w9o_1;
|
|
60219
60235
|
var tmp = KProperty1;
|
|
60220
60236
|
// Inline function 'kotlin.getValue' call
|
|
60221
60237
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -60224,11 +60240,11 @@
|
|
|
60224
60240
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
60225
60241
|
return function () {
|
|
60226
60242
|
var tmp;
|
|
60227
|
-
if (this$0.
|
|
60243
|
+
if (this$0.u9o_1 == null) {
|
|
60228
60244
|
tmp = null;
|
|
60229
60245
|
} else {
|
|
60230
60246
|
// Inline function 'kotlin.let' call
|
|
60231
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
60247
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.u9o_1)]));
|
|
60232
60248
|
}
|
|
60233
60249
|
var tmp1_elvis_lhs = tmp;
|
|
60234
60250
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -60318,11 +60334,11 @@
|
|
|
60318
60334
|
}
|
|
60319
60335
|
function EngineHelpersFactory(loggerCallback) {
|
|
60320
60336
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
60321
|
-
this.
|
|
60337
|
+
this.u9o_1 = loggerCallback;
|
|
60322
60338
|
var tmp = this;
|
|
60323
|
-
tmp.
|
|
60339
|
+
tmp.v9o_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
60324
60340
|
var tmp_0 = this;
|
|
60325
|
-
tmp_0.
|
|
60341
|
+
tmp_0.w9o_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
60326
60342
|
var tmp_1 = this;
|
|
60327
60343
|
// Inline function 'org.kodein.di.instance' call
|
|
60328
60344
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -60331,7 +60347,7 @@
|
|
|
60331
60347
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
60332
60348
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
60333
60349
|
var tmp_4 = KProperty1;
|
|
60334
|
-
tmp_1.
|
|
60350
|
+
tmp_1.x9o_1 = tmp_3.w64(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
60335
60351
|
var tmp_5 = this;
|
|
60336
60352
|
// Inline function 'org.kodein.di.instance' call
|
|
60337
60353
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -60340,7 +60356,7 @@
|
|
|
60340
60356
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
60341
60357
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
60342
60358
|
var tmp_8 = KProperty1;
|
|
60343
|
-
tmp_5.
|
|
60359
|
+
tmp_5.y9o_1 = tmp_7.w64(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
60344
60360
|
var tmp_9 = this;
|
|
60345
60361
|
// Inline function 'org.kodein.di.instance' call
|
|
60346
60362
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -60349,7 +60365,7 @@
|
|
|
60349
60365
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
60350
60366
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
60351
60367
|
var tmp_12 = KProperty1;
|
|
60352
|
-
tmp_9.
|
|
60368
|
+
tmp_9.z9o_1 = tmp_11.w64(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
60353
60369
|
var tmp_13 = this;
|
|
60354
60370
|
// Inline function 'org.kodein.di.instance' call
|
|
60355
60371
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -60358,31 +60374,31 @@
|
|
|
60358
60374
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
60359
60375
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
60360
60376
|
var tmp_16 = KProperty1;
|
|
60361
|
-
tmp_13.
|
|
60377
|
+
tmp_13.a9p_1 = tmp_15.w64(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
60362
60378
|
}
|
|
60363
|
-
protoOf(EngineHelpersFactory).
|
|
60364
|
-
var tmp0 = this.
|
|
60379
|
+
protoOf(EngineHelpersFactory).b9p = function () {
|
|
60380
|
+
var tmp0 = this.x9o_1;
|
|
60365
60381
|
var tmp = KProperty1;
|
|
60366
60382
|
// Inline function 'kotlin.getValue' call
|
|
60367
60383
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
60368
60384
|
return tmp0.x();
|
|
60369
60385
|
};
|
|
60370
|
-
protoOf(EngineHelpersFactory).
|
|
60371
|
-
var tmp0 = this.
|
|
60386
|
+
protoOf(EngineHelpersFactory).c9p = function () {
|
|
60387
|
+
var tmp0 = this.y9o_1;
|
|
60372
60388
|
var tmp = KProperty1;
|
|
60373
60389
|
// Inline function 'kotlin.getValue' call
|
|
60374
60390
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
60375
60391
|
return tmp0.x();
|
|
60376
60392
|
};
|
|
60377
|
-
protoOf(EngineHelpersFactory).
|
|
60378
|
-
var tmp0 = this.
|
|
60393
|
+
protoOf(EngineHelpersFactory).d9p = function () {
|
|
60394
|
+
var tmp0 = this.z9o_1;
|
|
60379
60395
|
var tmp = KProperty1;
|
|
60380
60396
|
// Inline function 'kotlin.getValue' call
|
|
60381
60397
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
60382
60398
|
return tmp0.x();
|
|
60383
60399
|
};
|
|
60384
|
-
protoOf(EngineHelpersFactory).
|
|
60385
|
-
var tmp0 = this.
|
|
60400
|
+
protoOf(EngineHelpersFactory).e9p = function () {
|
|
60401
|
+
var tmp0 = this.a9p_1;
|
|
60386
60402
|
var tmp = KProperty1;
|
|
60387
60403
|
// Inline function 'kotlin.getValue' call
|
|
60388
60404
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -61248,6 +61264,7 @@
|
|
|
61248
61264
|
});
|
|
61249
61265
|
protoOf(PlayerConnectionChangedMechanicAction).ignoreValidation = ignoreValidation;
|
|
61250
61266
|
defineProp(protoOf(PlayerConnectionChangedMechanicAction), 'isShouldBeDisconnectedFromSockets', protoOf(PlayerConnectionChangedMechanicAction).p96);
|
|
61267
|
+
defineProp(protoOf(PlayerConnectionChangedMechanicAction), 'originState', protoOf(PlayerConnectionChangedMechanicAction).q96);
|
|
61251
61268
|
defineProp(protoOf(PlayerConnectionChangedMechanicAction), 'isDeleted', protoOf(PlayerConnectionChangedMechanicAction).h68);
|
|
61252
61269
|
defineProp(protoOf(PlayerConnectionChangedMechanicAction), 'actionTag', function () {
|
|
61253
61270
|
return this.r6f();
|
|
@@ -61344,7 +61361,7 @@
|
|
|
61344
61361
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
61345
61362
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
61346
61363
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
61347
|
-
protoOf(FileLoggerOutputImpl).
|
|
61364
|
+
protoOf(FileLoggerOutputImpl).d9g = observe$default;
|
|
61348
61365
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
61349
61366
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
61350
61367
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -61364,10 +61381,10 @@
|
|
|
61364
61381
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
61365
61382
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
61366
61383
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
61367
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
61368
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
61369
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
61370
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
61384
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).b9p);
|
|
61385
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).c9p);
|
|
61386
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).d9p);
|
|
61387
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).e9p);
|
|
61371
61388
|
//endregion
|
|
61372
61389
|
//region block: init
|
|
61373
61390
|
Companion_instance_5 = new Companion_0();
|