client_plugin_logic_deb 1.8.355 → 1.8.356
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-client_plugin.d.ts +1 -1
- package/Logic_Debertz-client_plugin.js +2098 -2098
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +13 -9
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +403 -300
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +613 -613
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +29 -29
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -309,6 +309,9 @@
|
|
|
309
309
|
var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
310
310
|
var mapWithIndex = kotlin_io_raspberryapps_game_engine_core.$_$.s;
|
|
311
311
|
var copyToArray = kotlin_kotlin.$_$.d7;
|
|
312
|
+
var toMutableList = kotlin_kotlin.$_$.v9;
|
|
313
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
314
|
+
var toList_0 = kotlin_kotlin.$_$.q9;
|
|
312
315
|
var CardOnTable = kotlin_io_raspberryapps_game_engine_engine.$_$.c3;
|
|
313
316
|
var plus_0 = kotlin_kotlin.$_$.x8;
|
|
314
317
|
var KtMap = kotlin_kotlin.$_$.v5;
|
|
@@ -319,7 +322,6 @@
|
|
|
319
322
|
var get_byIdPlayerPredicate = kotlin_io_raspberryapps_game_engine_core.$_$.l;
|
|
320
323
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
321
324
|
var combine = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
322
|
-
var toList_0 = kotlin_kotlin.$_$.q9;
|
|
323
325
|
var filterWhoChoseSuit = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
|
|
324
326
|
var SuitChoiceFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v4;
|
|
325
327
|
var ValidationCode_SUIT_VALIDATION_NEED_TO_PLAY_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.v8;
|
|
@@ -392,7 +394,6 @@
|
|
|
392
394
|
var GameAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v5;
|
|
393
395
|
var PlayerTurnTimerTag_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.m9;
|
|
394
396
|
var getInitialPlayerTurnTimerDelayMillis = kotlin_io_raspberryapps_game_engine_engine.$_$.r7;
|
|
395
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
396
397
|
var Reason_INTERNAL_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
|
|
397
398
|
var get_isEarnPointScene = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
|
|
398
399
|
var NavigationMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j6;
|
|
@@ -435,7 +436,6 @@
|
|
|
435
436
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
436
437
|
var take_0 = kotlin_kotlin.$_$.m9;
|
|
437
438
|
var reversed = kotlin_kotlin.$_$.b9;
|
|
438
|
-
var toMutableList = kotlin_kotlin.$_$.v9;
|
|
439
439
|
var updated = kotlin_io_raspberryapps_game_engine_core.$_$.f4;
|
|
440
440
|
var Comparator = kotlin_kotlin.$_$.fg;
|
|
441
441
|
var coerceAtLeast = kotlin_kotlin.$_$.dd;
|
|
@@ -541,12 +541,13 @@
|
|
|
541
541
|
initMetadataForCompanion(Companion, VOID, [SerializerFactory]);
|
|
542
542
|
initMetadataForClass(BadgeType, 'BadgeType', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_9});
|
|
543
543
|
initMetadataForClass(ClientAppSavedState, 'ClientAppSavedState');
|
|
544
|
-
initMetadataForInterface(
|
|
545
|
-
initMetadataForInterface(
|
|
544
|
+
initMetadataForInterface(ElementTransition, 'ElementTransition');
|
|
545
|
+
initMetadataForInterface(TableCardsTransition, 'TableCardsTransition', VOID, VOID, [ElementTransition]);
|
|
546
|
+
initMetadataForInterface(PlayerTransition, 'PlayerTransition', VOID, VOID, [ElementTransition]);
|
|
546
547
|
initMetadataForClass(PutCardOnTableTransition, 'PutCardOnTableTransition', VOID, VOID, [PlayerIdContract, TableCardsTransition, PlayerTransition]);
|
|
547
548
|
initMetadataForClass(PickUpBribeTransition, 'PickUpBribeTransition', VOID, VOID, [TableCardsTransition]);
|
|
548
|
-
initMetadataForClass(SwapCardsTransition, 'SwapCardsTransition');
|
|
549
|
-
initMetadataForClass(ShuffleCardDeckTransition, 'ShuffleCardDeckTransition');
|
|
549
|
+
initMetadataForClass(SwapCardsTransition, 'SwapCardsTransition', VOID, VOID, [ElementTransition]);
|
|
550
|
+
initMetadataForClass(ShuffleCardDeckTransition, 'ShuffleCardDeckTransition', VOID, VOID, [ElementTransition]);
|
|
550
551
|
initMetadataForClass(CardDistributionTransition, 'CardDistributionTransition', VOID, VOID, [PlayerTransition]);
|
|
551
552
|
initMetadataForClass(ShowCombinationTransition, 'ShowCombinationTransition', VOID, VOID, [PlayerTransition, TableCardsTransition]);
|
|
552
553
|
initMetadataForClass(CardInHandTransition, 'CardInHandTransition');
|
|
@@ -845,7 +846,7 @@
|
|
|
845
846
|
initMetadataForClass(PassIgnoreBufferActionUseCase, 'PassIgnoreBufferActionUseCase', PassIgnoreBufferActionUseCase);
|
|
846
847
|
initMetadataForClass(PassTerminatedActionBufferUseCase, 'PassTerminatedActionBufferUseCase', PassTerminatedActionBufferUseCase);
|
|
847
848
|
initMetadataForClass(WaitPlayerAnswerBufferUseCase, 'WaitPlayerAnswerBufferUseCase', WaitPlayerAnswerBufferUseCase);
|
|
848
|
-
initMetadataForClass(
|
|
849
|
+
initMetadataForClass(WaitUntilInterceptorFinishedBufferUseCase, 'WaitUntilInterceptorFinishedBufferUseCase', WaitUntilInterceptorFinishedBufferUseCase);
|
|
849
850
|
initMetadataForClass(WaitWhenSceneIsActiveBufferUseCase, 'WaitWhenSceneIsActiveBufferUseCase', WaitWhenSceneIsActiveBufferUseCase);
|
|
850
851
|
initMetadataForInterface(ClientGameHistoryInteractor, 'ClientGameHistoryInteractor', VOID, VOID, VOID, [4]);
|
|
851
852
|
initMetadataForInterface(ClientStatisticsInteractor, 'ClientStatisticsInteractor', VOID, VOID, VOID, [3, 1]);
|
|
@@ -1031,7 +1032,7 @@
|
|
|
1031
1032
|
initMetadataForClass(ObserverStrategy, 'ObserverStrategy', VOID, Enum);
|
|
1032
1033
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
1033
1034
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
1034
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
1035
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ExpectantContract, ControlsContract, SceneActionsContract]);
|
|
1035
1036
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
1036
1037
|
initMetadataForLambda(TableSceneImpl$observeControlsMode$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
1037
1038
|
initMetadataForCoroutine($collectCOROUTINE$_40, CoroutineImpl);
|
|
@@ -1222,10 +1223,10 @@
|
|
|
1222
1223
|
initMetadataForClass(TutorialPassedAction, 'TutorialPassedAction', VOID, ClientAction);
|
|
1223
1224
|
initMetadataForObject(ResetErrorAction, 'ResetErrorAction', VOID, ClientAction, [ClientAction, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
|
|
1224
1225
|
initMetadataForClass(SceneTutorialAction, 'SceneTutorialAction', VOID, ClientAction);
|
|
1225
|
-
initMetadataForClass(
|
|
1226
|
-
initMetadataForClass(
|
|
1227
|
-
initMetadataForClass(
|
|
1228
|
-
initMetadataForClass(
|
|
1226
|
+
initMetadataForClass(InterceptorLifecycleAction, 'InterceptorLifecycleAction', VOID, VOID, [Action]);
|
|
1227
|
+
initMetadataForClass(InterceptorStageCompletedClientAction, 'InterceptorStageCompletedClientAction', VOID, InterceptorLifecycleAction);
|
|
1228
|
+
initMetadataForClass(InterceptorFinishedClientAction, 'InterceptorFinishedClientAction', VOID, InterceptorLifecycleAction, [InterceptorLifecycleAction, ReleaseBufferTriggerAction]);
|
|
1229
|
+
initMetadataForClass(InterceptorCreatedClientAction, 'InterceptorCreatedClientAction', VOID, InterceptorLifecycleAction);
|
|
1229
1230
|
initMetadataForClass(ClientCommonStoreContract, 'ClientCommonStoreContract', VOID, VOID, [StoreContract]);
|
|
1230
1231
|
initMetadataForClass(OnlineGameStoreContract, 'OnlineGameStoreContract', VOID, VOID, [StoreContract]);
|
|
1231
1232
|
initMetadataForClass(SingleGameStoreContract, 'SingleGameStoreContract', VOID, VOID, [StoreContract]);
|
|
@@ -1277,7 +1278,7 @@
|
|
|
1277
1278
|
initMetadataForClass(bufferReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1278
1279
|
initMetadataForClass(clientErrorStateWhenTerminationActionReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1279
1280
|
initMetadataForClass(expectantLifecycleReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1280
|
-
initMetadataForClass(
|
|
1281
|
+
initMetadataForClass(interceptorActionReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1281
1282
|
function reducers(currentPlayerId) {
|
|
1282
1283
|
return listOf([this.se8(currentPlayerId), this.te8(currentPlayerId), this.ue8(currentPlayerId), this.ve8(currentPlayerId)]);
|
|
1283
1284
|
}
|
|
@@ -1325,7 +1326,7 @@
|
|
|
1325
1326
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig(VOID, false) : logicConfig;
|
|
1326
1327
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
1327
1328
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
1328
|
-
return $super === VOID ? this.
|
|
1329
|
+
return $super === VOID ? this.lea(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, coreConfig) : $super.lea.call(this, currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, coreConfig);
|
|
1329
1330
|
}
|
|
1330
1331
|
initMetadataForInterface(GameClientEngineController, 'GameClientEngineController');
|
|
1331
1332
|
initMetadataForClass(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -3117,6 +3118,8 @@
|
|
|
3117
3118
|
return false;
|
|
3118
3119
|
return true;
|
|
3119
3120
|
};
|
|
3121
|
+
function ElementTransition() {
|
|
3122
|
+
}
|
|
3120
3123
|
function CardInHandTransition(mode, index, fromCard, toCard) {
|
|
3121
3124
|
this.oai_1 = mode;
|
|
3122
3125
|
this.pai_1 = index;
|
|
@@ -5576,7 +5579,7 @@
|
|
|
5576
5579
|
tmp0_serialDesc.l4s('config', false);
|
|
5577
5580
|
tmp0_serialDesc.l4s('messages', false);
|
|
5578
5581
|
tmp0_serialDesc.l4s('infoMessage', false);
|
|
5579
|
-
tmp0_serialDesc.l4s('
|
|
5582
|
+
tmp0_serialDesc.l4s('interceptedActions', false);
|
|
5580
5583
|
tmp0_serialDesc.l4s('bufferedActions', false);
|
|
5581
5584
|
tmp0_serialDesc.l4s('chatOpened', false);
|
|
5582
5585
|
tmp0_serialDesc.l4s('settingsOpened', false);
|
|
@@ -5766,14 +5769,14 @@
|
|
|
5766
5769
|
new $serializer_0();
|
|
5767
5770
|
return $serializer_instance_0;
|
|
5768
5771
|
}
|
|
5769
|
-
function ClientStateDto_init_$Init$(seen0, config, messages, infoMessage,
|
|
5772
|
+
function ClientStateDto_init_$Init$(seen0, config, messages, infoMessage, interceptedActions, bufferedActions, chatOpened, settingsOpened, uiState, isSceneActive, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial, serializationConstructorMarker, $this) {
|
|
5770
5773
|
if (!(65535 === (65535 & seen0))) {
|
|
5771
5774
|
throwMissingFieldException(seen0, 65535, $serializer_getInstance_15().rap_1);
|
|
5772
5775
|
}
|
|
5773
5776
|
$this.tap_1 = config;
|
|
5774
5777
|
$this.uap_1 = messages;
|
|
5775
5778
|
$this.vap_1 = infoMessage;
|
|
5776
|
-
$this.wap_1 =
|
|
5779
|
+
$this.wap_1 = interceptedActions;
|
|
5777
5780
|
$this.xap_1 = bufferedActions;
|
|
5778
5781
|
$this.yap_1 = chatOpened;
|
|
5779
5782
|
$this.zap_1 = settingsOpened;
|
|
@@ -5788,15 +5791,15 @@
|
|
|
5788
5791
|
$this.iaq_1 = tutorial;
|
|
5789
5792
|
return $this;
|
|
5790
5793
|
}
|
|
5791
|
-
function ClientStateDto_init_$Create$(seen0, config, messages, infoMessage,
|
|
5792
|
-
return ClientStateDto_init_$Init$(seen0, config, messages, infoMessage,
|
|
5794
|
+
function ClientStateDto_init_$Create$(seen0, config, messages, infoMessage, interceptedActions, bufferedActions, chatOpened, settingsOpened, uiState, isSceneActive, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial, serializationConstructorMarker) {
|
|
5795
|
+
return ClientStateDto_init_$Init$(seen0, config, messages, infoMessage, interceptedActions, bufferedActions, chatOpened, settingsOpened, uiState, isSceneActive, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial, serializationConstructorMarker, objectCreate(protoOf(ClientStateDto)));
|
|
5793
5796
|
}
|
|
5794
|
-
function ClientStateDto(config, messages, infoMessage,
|
|
5797
|
+
function ClientStateDto(config, messages, infoMessage, interceptedActions, bufferedActions, chatOpened, settingsOpened, uiState, isSceneActive, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial) {
|
|
5795
5798
|
Companion_getInstance_16();
|
|
5796
5799
|
this.tap_1 = config;
|
|
5797
5800
|
this.uap_1 = messages;
|
|
5798
5801
|
this.vap_1 = infoMessage;
|
|
5799
|
-
this.wap_1 =
|
|
5802
|
+
this.wap_1 = interceptedActions;
|
|
5800
5803
|
this.xap_1 = bufferedActions;
|
|
5801
5804
|
this.yap_1 = chatOpened;
|
|
5802
5805
|
this.zap_1 = settingsOpened;
|
|
@@ -5811,7 +5814,7 @@
|
|
|
5811
5814
|
this.iaq_1 = tutorial;
|
|
5812
5815
|
}
|
|
5813
5816
|
protoOf(ClientStateDto).toString = function () {
|
|
5814
|
-
return 'ClientStateDto(config=' + this.tap_1.toString() + ', messages=' + toString(this.uap_1) + ', infoMessage=' + toString_0(this.vap_1) + ',
|
|
5817
|
+
return 'ClientStateDto(config=' + this.tap_1.toString() + ', messages=' + toString(this.uap_1) + ', infoMessage=' + toString_0(this.vap_1) + ', interceptedActions=' + toString(this.wap_1) + ', bufferedActions=' + toString(this.xap_1) + ', chatOpened=' + this.yap_1 + ', settingsOpened=' + this.zap_1 + ', uiState=' + toString_0(this.aaq_1) + ', isSceneActive=' + this.baq_1 + ', combinationsToAnnounce=' + toString_0(this.caq_1) + ', lastBribe=' + toString_0(this.daq_1) + ', gameInfo=' + toString_0(this.eaq_1) + ', processingCard=' + toString_0(this.faq_1) + ', transitions=' + toString_0(this.gaq_1) + ', error=' + toString_0(this.haq_1) + ', tutorial=' + this.iaq_1 + ')';
|
|
5815
5818
|
};
|
|
5816
5819
|
protoOf(ClientStateDto).hashCode = function () {
|
|
5817
5820
|
var result = this.tap_1.hashCode();
|
|
@@ -17866,7 +17869,7 @@
|
|
|
17866
17869
|
}
|
|
17867
17870
|
function getClientBufferModule$lambda$lambda($externalBufferUseCases) {
|
|
17868
17871
|
return function ($this$singleton) {
|
|
17869
|
-
var tmp = plus(listOf([new WaitWhenSceneIsActiveBufferUseCase(), new
|
|
17872
|
+
var tmp = plus(listOf([new WaitWhenSceneIsActiveBufferUseCase(), new WaitUntilInterceptorFinishedBufferUseCase(), new WaitPlayerAnswerBufferUseCase(), new PassIgnoreBufferActionUseCase(), new CheckSceneBufferUseCase(), new PassTerminatedActionBufferUseCase(), new PassErrorActionBufferUseCase()]), $externalBufferUseCases);
|
|
17870
17873
|
// Inline function 'org.kodein.di.instance' call
|
|
17871
17874
|
var tmp_0 = $this$singleton.s6d();
|
|
17872
17875
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -18247,7 +18250,7 @@
|
|
|
18247
18250
|
}
|
|
18248
18251
|
return new AvoidBuffer('WaitPlayerAnswerBufferUseCase');
|
|
18249
18252
|
};
|
|
18250
|
-
function
|
|
18253
|
+
function isCurrentInterceptorFinished($this, action, notFinished) {
|
|
18251
18254
|
var tmp0_elvis_lhs = singleOrNull(notFinished);
|
|
18252
18255
|
var tmp;
|
|
18253
18256
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -18255,22 +18258,22 @@
|
|
|
18255
18258
|
} else {
|
|
18256
18259
|
tmp = tmp0_elvis_lhs;
|
|
18257
18260
|
}
|
|
18258
|
-
var
|
|
18259
|
-
var tmp1_elvis_lhs = action instanceof
|
|
18261
|
+
var intercepted = tmp;
|
|
18262
|
+
var tmp1_elvis_lhs = action instanceof InterceptorFinishedClientAction ? action : null;
|
|
18260
18263
|
var tmp_0;
|
|
18261
18264
|
if (tmp1_elvis_lhs == null) {
|
|
18262
18265
|
return false;
|
|
18263
18266
|
} else {
|
|
18264
18267
|
tmp_0 = tmp1_elvis_lhs;
|
|
18265
18268
|
}
|
|
18266
|
-
var
|
|
18267
|
-
return
|
|
18269
|
+
var interceptedAction = tmp_0;
|
|
18270
|
+
return intercepted.gap_1 === interceptedAction.rb6_1;
|
|
18268
18271
|
}
|
|
18269
|
-
function
|
|
18272
|
+
function WaitUntilInterceptorFinishedBufferUseCase() {
|
|
18270
18273
|
}
|
|
18271
|
-
protoOf(
|
|
18274
|
+
protoOf(WaitUntilInterceptorFinishedBufferUseCase).ib6 = function (state, action) {
|
|
18272
18275
|
if (!state.v77() && !get_isCreated(state)) {
|
|
18273
|
-
return new PutInBuffer('
|
|
18276
|
+
return new PutInBuffer('WaitUntilInterceptorFinishedBufferUseCase.isTableExists');
|
|
18274
18277
|
}
|
|
18275
18278
|
var clientState = get_clientPayload(state);
|
|
18276
18279
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -18285,10 +18288,10 @@
|
|
|
18285
18288
|
}
|
|
18286
18289
|
}
|
|
18287
18290
|
var notFinished = destination;
|
|
18288
|
-
if (notFinished.p() ||
|
|
18289
|
-
return new AvoidBuffer('
|
|
18291
|
+
if (notFinished.p() || isCurrentInterceptorFinished(this, action, notFinished)) {
|
|
18292
|
+
return new AvoidBuffer('WaitUntilInterceptorFinishedBufferUseCase');
|
|
18290
18293
|
}
|
|
18291
|
-
return new PutInBuffer('
|
|
18294
|
+
return new PutInBuffer('WaitUntilInterceptorFinishedBufferUseCase.interceptor');
|
|
18292
18295
|
};
|
|
18293
18296
|
function WaitWhenSceneIsActiveBufferUseCase() {
|
|
18294
18297
|
}
|
|
@@ -24775,9 +24778,9 @@
|
|
|
24775
24778
|
destination_0.e(item instanceof InterceptableActionWrapper ? item : THROW_CCE());
|
|
24776
24779
|
}
|
|
24777
24780
|
|
|
24778
|
-
var
|
|
24781
|
+
var notInterceptedAction = singleOrNull(destination_0) == null;
|
|
24779
24782
|
var tmp_2;
|
|
24780
|
-
if (isSceneActive &&
|
|
24783
|
+
if (isSceneActive && notInterceptedAction) {
|
|
24781
24784
|
var player = get_currentPlayer(it.u77());
|
|
24782
24785
|
var tmp_3;
|
|
24783
24786
|
if (player.o7a_1.g7f_1) {
|
|
@@ -25396,8 +25399,26 @@
|
|
|
25396
25399
|
this.mcm_1 = this.kcm_1;
|
|
25397
25400
|
this.ncm_1 = this.lcm_1;
|
|
25398
25401
|
this.l9_1 = 1;
|
|
25399
|
-
var
|
|
25400
|
-
|
|
25402
|
+
var tmp0 = this.ncm_1;
|
|
25403
|
+
var tmp$ret$0;
|
|
25404
|
+
l$ret$1: do {
|
|
25405
|
+
if (!tmp0.eb4_1.pb4_1) {
|
|
25406
|
+
tmp$ret$0 = emptyList();
|
|
25407
|
+
break l$ret$1;
|
|
25408
|
+
}
|
|
25409
|
+
var tmp0_0 = tmp0.mb4_1;
|
|
25410
|
+
var destination = ArrayList_init_$Create$_0();
|
|
25411
|
+
var _iterator__ex2g4s = tmp0_0.j();
|
|
25412
|
+
while (_iterator__ex2g4s.k()) {
|
|
25413
|
+
var element = _iterator__ex2g4s.l();
|
|
25414
|
+
if (!(element == null) ? isInterface(element, ElementTransition) : false) {
|
|
25415
|
+
destination.e(element);
|
|
25416
|
+
}
|
|
25417
|
+
}
|
|
25418
|
+
tmp$ret$0 = destination;
|
|
25419
|
+
}
|
|
25420
|
+
while (false);
|
|
25421
|
+
suspendResult = this.mcm_1.g1c(tmp$ret$0, this);
|
|
25401
25422
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
25402
25423
|
return suspendResult;
|
|
25403
25424
|
}
|
|
@@ -26022,7 +26043,7 @@
|
|
|
26022
26043
|
if (tmp === 0) {
|
|
26023
26044
|
this.m9_1 = 1;
|
|
26024
26045
|
if (get_isCreated(this.gcq_1.state)) {
|
|
26025
|
-
this.gcq_1.dispatch(new
|
|
26046
|
+
this.gcq_1.dispatch(new InterceptorStageCompletedClientAction(this.ecq_1));
|
|
26026
26047
|
}
|
|
26027
26048
|
return Unit_instance;
|
|
26028
26049
|
} else if (tmp === 1) {
|
|
@@ -26070,7 +26091,7 @@
|
|
|
26070
26091
|
if (tmp === 0) {
|
|
26071
26092
|
this.m9_1 = 1;
|
|
26072
26093
|
if (get_isCreated(this.rcq_1.state)) {
|
|
26073
|
-
this.rcq_1.dispatch(new
|
|
26094
|
+
this.rcq_1.dispatch(new InterceptorFinishedClientAction(this.pcq_1));
|
|
26074
26095
|
}
|
|
26075
26096
|
return Unit_instance;
|
|
26076
26097
|
} else if (tmp === 1) {
|
|
@@ -28017,7 +28038,24 @@
|
|
|
28017
28038
|
var table = state.u77();
|
|
28018
28039
|
var clientPayload = get_clientPayload(state);
|
|
28019
28040
|
var cards = Companion_instance_82.kd5(get_currentPlayer(table).playerId, table.cardsOnTable, mapWithIndex(table.players), clientPayload.lb4_1);
|
|
28020
|
-
|
|
28041
|
+
var tmp0 = clientPayload.cb4_1;
|
|
28042
|
+
var destination = ArrayList_init_$Create$_0();
|
|
28043
|
+
var _iterator__ex2g4s = tmp0.j();
|
|
28044
|
+
while (_iterator__ex2g4s.k()) {
|
|
28045
|
+
var element = _iterator__ex2g4s.l();
|
|
28046
|
+
if (getKClass(PickUpBribeMechanicAction).bb(element.hap_1)) {
|
|
28047
|
+
destination.e(element);
|
|
28048
|
+
}
|
|
28049
|
+
}
|
|
28050
|
+
|
|
28051
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
28052
|
+
var _iterator__ex2g4s_0 = destination.j();
|
|
28053
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
28054
|
+
var item = _iterator__ex2g4s_0.l();
|
|
28055
|
+
destination_0.e(item instanceof InterceptableActionWrapper ? item : THROW_CCE());
|
|
28056
|
+
}
|
|
28057
|
+
|
|
28058
|
+
suspendResult = this.id5_1.g1c(new CardsOnTableViewModel(cards, getPickUpBribeViewModel(this.ed5_1, singleOrNull(destination_0), table.players)), this);
|
|
28021
28059
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
28022
28060
|
return suspendResult;
|
|
28023
28061
|
}
|
|
@@ -28125,32 +28163,36 @@
|
|
|
28125
28163
|
var table = state.u77();
|
|
28126
28164
|
var clientPayload = get_clientPayload(state);
|
|
28127
28165
|
var cardsOnTable = getCardsOnTableFromStateV2(this.id6_1, table, clientPayload);
|
|
28128
|
-
var
|
|
28129
|
-
var
|
|
28166
|
+
var tmp0 = clientPayload.mb4_1;
|
|
28167
|
+
var destination = ArrayList_init_$Create$_0();
|
|
28168
|
+
var _iterator__ex2g4s = tmp0.j();
|
|
28130
28169
|
while (_iterator__ex2g4s.k()) {
|
|
28131
|
-
var
|
|
28132
|
-
|
|
28170
|
+
var element = _iterator__ex2g4s.l();
|
|
28171
|
+
if (!(element == null) ? isInterface(element, TableCardsTransition) : false) {
|
|
28172
|
+
destination.e(element);
|
|
28173
|
+
}
|
|
28133
28174
|
}
|
|
28134
28175
|
|
|
28135
|
-
var
|
|
28136
|
-
var
|
|
28137
|
-
var
|
|
28138
|
-
var _iterator__ex2g4s_0 = tmp0.j();
|
|
28176
|
+
var tableCardsTransitions = destination;
|
|
28177
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(cardsOnTable, 10));
|
|
28178
|
+
var _iterator__ex2g4s_0 = cardsOnTable.j();
|
|
28139
28179
|
while (_iterator__ex2g4s_0.k()) {
|
|
28140
|
-
var
|
|
28141
|
-
|
|
28142
|
-
|
|
28143
|
-
|
|
28144
|
-
|
|
28145
|
-
|
|
28146
|
-
|
|
28147
|
-
|
|
28148
|
-
|
|
28180
|
+
var item = _iterator__ex2g4s_0.l();
|
|
28181
|
+
destination_0.e(item.aan_1);
|
|
28182
|
+
}
|
|
28183
|
+
|
|
28184
|
+
var cards = destination_0;
|
|
28185
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
28186
|
+
var _iterator__ex2g4s_1 = tableCardsTransitions.j();
|
|
28187
|
+
while (_iterator__ex2g4s_1.k()) {
|
|
28188
|
+
var element_0 = _iterator__ex2g4s_1.l();
|
|
28189
|
+
if (element_0.tah(copyToArray(cards).slice())) {
|
|
28190
|
+
destination_1.e(element_0);
|
|
28149
28191
|
}
|
|
28150
28192
|
}
|
|
28151
28193
|
|
|
28152
|
-
var currentTransitions =
|
|
28153
|
-
suspendResult = this.md6_1.g1c(new CardsOnTableViewModelV2(cardsOnTable, firstOrNull(currentTransitions)), this);
|
|
28194
|
+
var currentTransitions = destination_1;
|
|
28195
|
+
suspendResult = this.md6_1.g1c(new CardsOnTableViewModelV2(removeCardsWhenTransaction(this.id6_1, cardsOnTable, tableCardsTransitions), firstOrNull(currentTransitions)), this);
|
|
28154
28196
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
28155
28197
|
return suspendResult;
|
|
28156
28198
|
}
|
|
@@ -28437,6 +28479,43 @@
|
|
|
28437
28479
|
}
|
|
28438
28480
|
while (true);
|
|
28439
28481
|
};
|
|
28482
|
+
function removeCardsWhenTransaction($this, _this__u8e3s4, transition) {
|
|
28483
|
+
var updatedCards = toMutableList(_this__u8e3s4);
|
|
28484
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
28485
|
+
if (!transition.p()) {
|
|
28486
|
+
var _iterator__ex2g4s = transition.j();
|
|
28487
|
+
while (_iterator__ex2g4s.k()) {
|
|
28488
|
+
var tableCardsTransition = _iterator__ex2g4s.l();
|
|
28489
|
+
if (tableCardsTransition instanceof PutCardOnTableTransition) {
|
|
28490
|
+
var tmp$ret$2;
|
|
28491
|
+
$l$block: {
|
|
28492
|
+
// Inline function 'kotlin.collections.first' call
|
|
28493
|
+
var _iterator__ex2g4s_0 = updatedCards.j();
|
|
28494
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
28495
|
+
var element = _iterator__ex2g4s_0.l();
|
|
28496
|
+
if (element.aan_1.equals(tableCardsTransition.zah_1)) {
|
|
28497
|
+
tmp$ret$2 = element;
|
|
28498
|
+
break $l$block;
|
|
28499
|
+
}
|
|
28500
|
+
}
|
|
28501
|
+
throw NoSuchElementException_init_$Create$('Collection contains no element matching the predicate.');
|
|
28502
|
+
}
|
|
28503
|
+
updatedCards.b2(tmp$ret$2);
|
|
28504
|
+
} else {
|
|
28505
|
+
var tmp;
|
|
28506
|
+
if (tableCardsTransition instanceof PickUpBribeTransition) {
|
|
28507
|
+
tmp = true;
|
|
28508
|
+
} else {
|
|
28509
|
+
tmp = tableCardsTransition instanceof ShowCombinationTransition;
|
|
28510
|
+
}
|
|
28511
|
+
if (!tmp) {
|
|
28512
|
+
noWhenBranchMatchedException();
|
|
28513
|
+
}
|
|
28514
|
+
}
|
|
28515
|
+
}
|
|
28516
|
+
}
|
|
28517
|
+
return toList_0(updatedCards);
|
|
28518
|
+
}
|
|
28440
28519
|
function getCardsOnTableFromStateV2($this, table, clientPayload) {
|
|
28441
28520
|
var currentPlayerId = get_currentPlayer(table).playerId;
|
|
28442
28521
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -28491,77 +28570,49 @@
|
|
|
28491
28570
|
}
|
|
28492
28571
|
return destination;
|
|
28493
28572
|
}
|
|
28494
|
-
function getPickUpBribeViewModel($this,
|
|
28495
|
-
|
|
28496
|
-
// Inline function 'kotlin.collections.filter' call
|
|
28497
|
-
var tmp0 = clientPayload.cb4_1;
|
|
28498
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
28499
|
-
var destination = ArrayList_init_$Create$_0();
|
|
28500
|
-
var _iterator__ex2g4s = tmp0.j();
|
|
28501
|
-
while (_iterator__ex2g4s.k()) {
|
|
28502
|
-
var element = _iterator__ex2g4s.l();
|
|
28503
|
-
if (getKClass(PickUpBribeMechanicAction).bb(element.hap_1)) {
|
|
28504
|
-
destination.e(element);
|
|
28505
|
-
}
|
|
28506
|
-
}
|
|
28507
|
-
// Inline function 'kotlin.collections.map' call
|
|
28508
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
28509
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
28510
|
-
var _iterator__ex2g4s_0 = destination.j();
|
|
28511
|
-
while (_iterator__ex2g4s_0.k()) {
|
|
28512
|
-
var item = _iterator__ex2g4s_0.l();
|
|
28513
|
-
var tmp$ret$3 = item instanceof InterceptableActionWrapper ? item : THROW_CCE();
|
|
28514
|
-
destination_0.e(tmp$ret$3);
|
|
28515
|
-
}
|
|
28516
|
-
var tmp0_elvis_lhs = singleOrNull(destination_0);
|
|
28517
|
-
var tmp;
|
|
28518
|
-
if (tmp0_elvis_lhs == null) {
|
|
28573
|
+
function getPickUpBribeViewModel($this, interceptedPickUpBribeMechanicAction, players) {
|
|
28574
|
+
if (interceptedPickUpBribeMechanicAction == null)
|
|
28519
28575
|
return null;
|
|
28520
|
-
|
|
28521
|
-
|
|
28522
|
-
}
|
|
28523
|
-
var mechanicAction = tmp;
|
|
28524
|
-
var tmp_0;
|
|
28525
|
-
if (mechanicAction.hap_1.o8l_1 === 0) {
|
|
28576
|
+
var tmp;
|
|
28577
|
+
if (interceptedPickUpBribeMechanicAction.hap_1.o8l_1 === 0) {
|
|
28526
28578
|
// Inline function 'kotlin.collections.flatMap' call
|
|
28527
|
-
var tmp0_0 = table.players;
|
|
28528
28579
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
28529
|
-
var
|
|
28530
|
-
var
|
|
28531
|
-
while (
|
|
28532
|
-
var
|
|
28533
|
-
var list = filterWithFirstCardOrBela(
|
|
28534
|
-
addAll(
|
|
28580
|
+
var destination = ArrayList_init_$Create$_0();
|
|
28581
|
+
var _iterator__ex2g4s = players.j();
|
|
28582
|
+
while (_iterator__ex2g4s.k()) {
|
|
28583
|
+
var element = _iterator__ex2g4s.l();
|
|
28584
|
+
var list = filterWithFirstCardOrBela(element.q7a_1.u7g_1);
|
|
28585
|
+
addAll(destination, list);
|
|
28535
28586
|
}
|
|
28536
|
-
var tmp$ret$
|
|
28587
|
+
var tmp$ret$3;
|
|
28537
28588
|
$l$block_0: {
|
|
28538
28589
|
// Inline function 'kotlin.collections.any' call
|
|
28539
|
-
var
|
|
28540
|
-
if (isInterface(
|
|
28541
|
-
|
|
28590
|
+
var tmp_0;
|
|
28591
|
+
if (isInterface(destination, Collection)) {
|
|
28592
|
+
tmp_0 = destination.p();
|
|
28542
28593
|
} else {
|
|
28543
|
-
|
|
28594
|
+
tmp_0 = false;
|
|
28544
28595
|
}
|
|
28545
|
-
if (
|
|
28546
|
-
tmp$ret$
|
|
28596
|
+
if (tmp_0) {
|
|
28597
|
+
tmp$ret$3 = false;
|
|
28547
28598
|
break $l$block_0;
|
|
28548
28599
|
}
|
|
28549
|
-
var
|
|
28550
|
-
while (
|
|
28551
|
-
var
|
|
28552
|
-
if (
|
|
28553
|
-
tmp$ret$
|
|
28600
|
+
var _iterator__ex2g4s_0 = destination.j();
|
|
28601
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
28602
|
+
var element_0 = _iterator__ex2g4s_0.l();
|
|
28603
|
+
if (element_0.w7k_1.equals(CombinationState_ACCEPTED_getInstance())) {
|
|
28604
|
+
tmp$ret$3 = true;
|
|
28554
28605
|
break $l$block_0;
|
|
28555
28606
|
}
|
|
28556
28607
|
}
|
|
28557
|
-
tmp$ret$
|
|
28608
|
+
tmp$ret$3 = false;
|
|
28558
28609
|
}
|
|
28559
|
-
|
|
28610
|
+
tmp = tmp$ret$3;
|
|
28560
28611
|
} else {
|
|
28561
|
-
|
|
28612
|
+
tmp = false;
|
|
28562
28613
|
}
|
|
28563
|
-
var hasAcceptedCombinations =
|
|
28564
|
-
var expectant = mapToExpectant(
|
|
28614
|
+
var hasAcceptedCombinations = tmp;
|
|
28615
|
+
var expectant = mapToExpectant(interceptedPickUpBribeMechanicAction);
|
|
28565
28616
|
return new PickUpBribeExpectantViewModel(expectant, hasAcceptedCombinations);
|
|
28566
28617
|
}
|
|
28567
28618
|
function getWinnerCombinationsViewModel($this, clientStatePayload) {
|
|
@@ -28768,7 +28819,7 @@
|
|
|
28768
28819
|
return this.h1c(collector, $completion);
|
|
28769
28820
|
};
|
|
28770
28821
|
function EarnPointsSceneContractImpl$observeCardsOnTheTable$lambda(old, new_0) {
|
|
28771
|
-
return equals(old.u77().cardsOnTable, new_0.u77().cardsOnTable) && equals(get_clientPayload(old).lb4_1, get_clientPayload(new_0).lb4_1) && equals(get_clientPayload(old).
|
|
28822
|
+
return equals(old.u77().cardsOnTable, new_0.u77().cardsOnTable) && equals(get_clientPayload(old).lb4_1, get_clientPayload(new_0).lb4_1) && equals(get_clientPayload(old).cb4_1, get_clientPayload(new_0).cb4_1);
|
|
28772
28823
|
}
|
|
28773
28824
|
function EarnPointsSceneContractImpl$observeCardsOnTheTable$$inlined$map$1($this, this$0) {
|
|
28774
28825
|
this.xd5_1 = $this;
|
|
@@ -31013,6 +31064,7 @@
|
|
|
31013
31064
|
}
|
|
31014
31065
|
function getCardDeckV2($this, table, clientPayload) {
|
|
31015
31066
|
var cardDeck = table.cardDeck;
|
|
31067
|
+
// Inline function 'games.jass.logic.client.redux.state.ClientStatePayload.getTransitionsIsInstance' call
|
|
31016
31068
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
31017
31069
|
var tmp0 = clientPayload.mb4_1;
|
|
31018
31070
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
@@ -31051,6 +31103,8 @@
|
|
|
31051
31103
|
tmp = CardDeckState_ACTIVE_getInstance();
|
|
31052
31104
|
break;
|
|
31053
31105
|
case 'EARN_POINTS':
|
|
31106
|
+
// Inline function 'games.jass.logic.client.redux.state.ClientStatePayload.getTransitionsIsInstance' call
|
|
31107
|
+
|
|
31054
31108
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
31055
31109
|
|
|
31056
31110
|
var tmp0 = clientPayload.mb4_1;
|
|
@@ -31122,8 +31176,8 @@
|
|
|
31122
31176
|
var updatedCardsOnTable = tmp;
|
|
31123
31177
|
return updatedCardsOnTable == null ? null : toVM_0(updatedCardsOnTable, getPlayerIndex(players, playerId));
|
|
31124
31178
|
};
|
|
31125
|
-
protoOf(Companion_72).kd5 = function (currentPlayerId, cardsOnTable, players,
|
|
31126
|
-
var placedCard =
|
|
31179
|
+
protoOf(Companion_72).kd5 = function (currentPlayerId, cardsOnTable, players, playerCardOnTable) {
|
|
31180
|
+
var placedCard = playerCardOnTable == null ? null : playerCardOnTable.e6t_1;
|
|
31127
31181
|
var tmp;
|
|
31128
31182
|
var tmp_0;
|
|
31129
31183
|
if (!(placedCard == null)) {
|
|
@@ -31861,7 +31915,8 @@
|
|
|
31861
31915
|
var tmp$ret$2 = new TableSceneContractImpl$observePlayersHands$$inlined$map$1(this_0);
|
|
31862
31916
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
31863
31917
|
var this_1 = distinctUntilChanged(tmp$ret$2);
|
|
31864
|
-
|
|
31918
|
+
var tmp$ret$3 = transformLatest(this_1, TableSceneContractImpl$observePlayersHands$slambda_0(this, null));
|
|
31919
|
+
return distinctUntilChanged(tmp$ret$3);
|
|
31865
31920
|
};
|
|
31866
31921
|
protoOf(TableSceneContractImpl).ock = function (playerId) {
|
|
31867
31922
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
@@ -33019,64 +33074,64 @@
|
|
|
33019
33074
|
}
|
|
33020
33075
|
function SceneTutorialAction() {
|
|
33021
33076
|
}
|
|
33022
|
-
function
|
|
33023
|
-
|
|
33024
|
-
this.re0_1 =
|
|
33077
|
+
function InterceptorStageCompletedClientAction(id) {
|
|
33078
|
+
InterceptorLifecycleAction.call(this);
|
|
33079
|
+
this.re0_1 = id;
|
|
33025
33080
|
}
|
|
33026
|
-
protoOf(
|
|
33027
|
-
return '
|
|
33081
|
+
protoOf(InterceptorStageCompletedClientAction).toString = function () {
|
|
33082
|
+
return 'InterceptorStageCompletedClientAction(id=' + this.re0_1 + ')';
|
|
33028
33083
|
};
|
|
33029
|
-
protoOf(
|
|
33084
|
+
protoOf(InterceptorStageCompletedClientAction).hashCode = function () {
|
|
33030
33085
|
return getStringHashCode(this.re0_1);
|
|
33031
33086
|
};
|
|
33032
|
-
protoOf(
|
|
33087
|
+
protoOf(InterceptorStageCompletedClientAction).equals = function (other) {
|
|
33033
33088
|
if (this === other)
|
|
33034
33089
|
return true;
|
|
33035
|
-
if (!(other instanceof
|
|
33090
|
+
if (!(other instanceof InterceptorStageCompletedClientAction))
|
|
33036
33091
|
return false;
|
|
33037
|
-
var tmp0_other_with_cast = other instanceof
|
|
33092
|
+
var tmp0_other_with_cast = other instanceof InterceptorStageCompletedClientAction ? other : THROW_CCE();
|
|
33038
33093
|
if (!(this.re0_1 === tmp0_other_with_cast.re0_1))
|
|
33039
33094
|
return false;
|
|
33040
33095
|
return true;
|
|
33041
33096
|
};
|
|
33042
|
-
function
|
|
33043
|
-
|
|
33044
|
-
this.rb6_1 =
|
|
33097
|
+
function InterceptorFinishedClientAction(id) {
|
|
33098
|
+
InterceptorLifecycleAction.call(this);
|
|
33099
|
+
this.rb6_1 = id;
|
|
33045
33100
|
}
|
|
33046
|
-
protoOf(
|
|
33047
|
-
return '
|
|
33101
|
+
protoOf(InterceptorFinishedClientAction).toString = function () {
|
|
33102
|
+
return 'InterceptorFinishedClientAction(id=' + this.rb6_1 + ')';
|
|
33048
33103
|
};
|
|
33049
|
-
protoOf(
|
|
33104
|
+
protoOf(InterceptorFinishedClientAction).hashCode = function () {
|
|
33050
33105
|
return getStringHashCode(this.rb6_1);
|
|
33051
33106
|
};
|
|
33052
|
-
protoOf(
|
|
33107
|
+
protoOf(InterceptorFinishedClientAction).equals = function (other) {
|
|
33053
33108
|
if (this === other)
|
|
33054
33109
|
return true;
|
|
33055
|
-
if (!(other instanceof
|
|
33110
|
+
if (!(other instanceof InterceptorFinishedClientAction))
|
|
33056
33111
|
return false;
|
|
33057
|
-
var tmp0_other_with_cast = other instanceof
|
|
33112
|
+
var tmp0_other_with_cast = other instanceof InterceptorFinishedClientAction ? other : THROW_CCE();
|
|
33058
33113
|
if (!(this.rb6_1 === tmp0_other_with_cast.rb6_1))
|
|
33059
33114
|
return false;
|
|
33060
33115
|
return true;
|
|
33061
33116
|
};
|
|
33062
|
-
function
|
|
33117
|
+
function InterceptorLifecycleAction() {
|
|
33063
33118
|
}
|
|
33064
|
-
function
|
|
33065
|
-
|
|
33119
|
+
function InterceptorCreatedClientAction(expectant) {
|
|
33120
|
+
InterceptorLifecycleAction.call(this);
|
|
33066
33121
|
this.se0_1 = expectant;
|
|
33067
33122
|
}
|
|
33068
|
-
protoOf(
|
|
33123
|
+
protoOf(InterceptorCreatedClientAction).toString = function () {
|
|
33069
33124
|
return 'ExpectantCreatedClientAction(id: ' + this.se0_1.gap_1 + ', expectant=' + parseActionName(this.se0_1.hap_1) + ')';
|
|
33070
33125
|
};
|
|
33071
|
-
protoOf(
|
|
33126
|
+
protoOf(InterceptorCreatedClientAction).hashCode = function () {
|
|
33072
33127
|
return this.se0_1.hashCode();
|
|
33073
33128
|
};
|
|
33074
|
-
protoOf(
|
|
33129
|
+
protoOf(InterceptorCreatedClientAction).equals = function (other) {
|
|
33075
33130
|
if (this === other)
|
|
33076
33131
|
return true;
|
|
33077
|
-
if (!(other instanceof
|
|
33132
|
+
if (!(other instanceof InterceptorCreatedClientAction))
|
|
33078
33133
|
return false;
|
|
33079
|
-
var tmp0_other_with_cast = other instanceof
|
|
33134
|
+
var tmp0_other_with_cast = other instanceof InterceptorCreatedClientAction ? other : THROW_CCE();
|
|
33080
33135
|
if (!this.se0_1.equals(tmp0_other_with_cast.se0_1))
|
|
33081
33136
|
return false;
|
|
33082
33137
|
return true;
|
|
@@ -33387,7 +33442,7 @@
|
|
|
33387
33442
|
tmp_43.ge1_1 = tmp_45.a6i(this, getPropertyCallableRef('clientGameHistoryInteractor', 1, tmp_46, ClientCommonStoreContract$_get_clientGameHistoryInteractor_$ref_2ivcgn(), null));
|
|
33388
33443
|
}
|
|
33389
33444
|
protoOf(ClientCommonStoreContract).v9q = function () {
|
|
33390
|
-
return plus(listOfNotNull([_get_gameClientConfig__xfscic_0(this).validateExpectantActions ? expectantLifecycleReducer() : null, _get_gameClientConfig__xfscic_0(this).validateExpectantActions ?
|
|
33445
|
+
return plus(listOfNotNull([_get_gameClientConfig__xfscic_0(this).validateExpectantActions ? expectantLifecycleReducer() : null, _get_gameClientConfig__xfscic_0(this).validateExpectantActions ? interceptorActionReducer() : null, bufferReducer(), messageReducer(), _get_gameClientConfig__xfscic_0(this).validateSceneActiveState ? sceneActivationReducer() : null, clientResetMessagesAfterSelectedTrumpReducer(_get_logger__rkp4sl_0(this)), clientResetMessagesAfterBribeReducer(_get_logger__rkp4sl_0(this)), clientUIReducer(this.te0_1), clientResetProcessingCardReducer(), clientSceneReducer(_get_logger__rkp4sl_0(this), _get_clientLifecycleReducer__6ihp6m(this)), clientCombinationToAnnounceStateOnPlayerTurnReducer(_get_clientCombinationsReducer__u5899o(this))]), this.ue0_1.v9q());
|
|
33391
33446
|
};
|
|
33392
33447
|
protoOf(ClientCommonStoreContract).w9q = function () {
|
|
33393
33448
|
return plus(plus(plus(plus(listOfNotNull([checkValidCurrentPlayerIdMiddleware(this.te0_1, _get_logger__rkp4sl_0(this)), checkExpectantsMiddleware(_get_logger__rkp4sl_0(this))]), listOfNotNull([_get_gameClientConfig__xfscic_0(this).validateCardOnMove ? validateCardOnMoveMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl_0(this)) : null, clientShowDisabledCardMessageMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl_0(this)), clientCheckCombinationsMiddleware(_get_combinationProvider__3gs1n3(this), _get_playerTurnTagProvider__7cizx8(this)), gameHistoryMiddleware(_get_asyncProvider__jbpyhw(this), _get_clientGameHistoryInteractor__6os8wx(this)), finishingGameWhenPlayerExitsMiddleware(_get_gameClientConfig__xfscic_0(this)), startResetTimerForInfoMessageMiddleware(), clearTimersWhenErrorMiddleware(), resetInfoMessageWhenShownMiddleware(), roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this))])), bufferMiddleware(_get_bufferInteractor__bbjsb2_0(this))), expectantMiddlewares()), this.ue0_1.w9q());
|
|
@@ -34226,7 +34281,7 @@
|
|
|
34226
34281
|
}
|
|
34227
34282
|
$origDispatch(action);
|
|
34228
34283
|
} else {
|
|
34229
|
-
$store.dispatch(new
|
|
34284
|
+
$store.dispatch(new InterceptorCreatedClientAction(new InterceptableActionWrapper($idsProvider.u6w(), action)));
|
|
34230
34285
|
}
|
|
34231
34286
|
tmp = Unit_instance;
|
|
34232
34287
|
} else {
|
|
@@ -34710,12 +34765,12 @@
|
|
|
34710
34765
|
function expectantsLifecycleMiddleware$$inlined$middlewareForActionType$1() {
|
|
34711
34766
|
}
|
|
34712
34767
|
protoOf(expectantsLifecycleMiddleware$$inlined$middlewareForActionType$1).w6y = function (action) {
|
|
34713
|
-
return action instanceof
|
|
34768
|
+
return action instanceof InterceptorLifecycleAction;
|
|
34714
34769
|
};
|
|
34715
34770
|
protoOf(expectantsLifecycleMiddleware$$inlined$middlewareForActionType$1).n70 = function (store, next, action) {
|
|
34716
|
-
var action_0 = action instanceof
|
|
34771
|
+
var action_0 = action instanceof InterceptorLifecycleAction ? action : THROW_CCE();
|
|
34717
34772
|
var tmp;
|
|
34718
|
-
if (action_0 instanceof
|
|
34773
|
+
if (action_0 instanceof InterceptorCreatedClientAction) {
|
|
34719
34774
|
var expectantAction = action_0.se0_1.hap_1;
|
|
34720
34775
|
var tmp_0;
|
|
34721
34776
|
if (expectantAction.m6y()) {
|
|
@@ -34725,10 +34780,10 @@
|
|
|
34725
34780
|
}
|
|
34726
34781
|
tmp = tmp_0;
|
|
34727
34782
|
} else {
|
|
34728
|
-
if (action_0 instanceof
|
|
34729
|
-
tmp = listOf_0(new
|
|
34783
|
+
if (action_0 instanceof InterceptorStageCompletedClientAction) {
|
|
34784
|
+
tmp = listOf_0(new InterceptorFinishedClientAction(action_0.re0_1));
|
|
34730
34785
|
} else {
|
|
34731
|
-
if (action_0 instanceof
|
|
34786
|
+
if (action_0 instanceof InterceptorFinishedClientAction) {
|
|
34732
34787
|
tmp = emptyList();
|
|
34733
34788
|
} else {
|
|
34734
34789
|
noWhenBranchMatchedException();
|
|
@@ -34756,7 +34811,7 @@
|
|
|
34756
34811
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
34757
34812
|
var timerTag = action_0.s6y_1;
|
|
34758
34813
|
if (timerTag instanceof ExpectantTimerTag) {
|
|
34759
|
-
store.dispatch(new
|
|
34814
|
+
store.dispatch(new InterceptorFinishedClientAction(timerTag.he3_1));
|
|
34760
34815
|
}
|
|
34761
34816
|
next(action_0);
|
|
34762
34817
|
};
|
|
@@ -35027,7 +35082,7 @@
|
|
|
35027
35082
|
onSuitSelectMessages(this$0, store, action.z8k_1, action.x8k_1);
|
|
35028
35083
|
tmp = Unit_instance;
|
|
35029
35084
|
} else {
|
|
35030
|
-
if (action instanceof
|
|
35085
|
+
if (action instanceof InterceptorCreatedClientAction) {
|
|
35031
35086
|
onExpectantCreatedMessages$default(this$0, store, action);
|
|
35032
35087
|
tmp = Unit_instance;
|
|
35033
35088
|
} else {
|
|
@@ -35072,7 +35127,7 @@
|
|
|
35072
35127
|
}
|
|
35073
35128
|
tmp = tmp_1;
|
|
35074
35129
|
} else {
|
|
35075
|
-
if (action instanceof
|
|
35130
|
+
if (action instanceof InterceptorCreatedClientAction) {
|
|
35076
35131
|
onExpectantCreatedMessages(this$0, store, action, listOf_0($currentPlayerId));
|
|
35077
35132
|
tmp = Unit_instance;
|
|
35078
35133
|
} else {
|
|
@@ -35945,7 +36000,7 @@
|
|
|
35945
36000
|
}
|
|
35946
36001
|
throw NoSuchElementException_init_$Create$('Collection contains no element matching the predicate.');
|
|
35947
36002
|
}
|
|
35948
|
-
tmp(new
|
|
36003
|
+
tmp(new InterceptorFinishedClientAction(tmp$ret$3.gap_1));
|
|
35949
36004
|
} else {
|
|
35950
36005
|
if (transition instanceof PickUpBribeTransition) {
|
|
35951
36006
|
var tmp_1 = store.dispatch;
|
|
@@ -35964,7 +36019,7 @@
|
|
|
35964
36019
|
}
|
|
35965
36020
|
throw NoSuchElementException_init_$Create$('Collection contains no element matching the predicate.');
|
|
35966
36021
|
}
|
|
35967
|
-
tmp_1(new
|
|
36022
|
+
tmp_1(new InterceptorFinishedClientAction(tmp$ret$5.gap_1));
|
|
35968
36023
|
} else {
|
|
35969
36024
|
if (transition instanceof ShowCombinationTransition) {
|
|
35970
36025
|
var tmp_3 = store.dispatch;
|
|
@@ -35983,7 +36038,7 @@
|
|
|
35983
36038
|
}
|
|
35984
36039
|
throw NoSuchElementException_init_$Create$('Collection contains no element matching the predicate.');
|
|
35985
36040
|
}
|
|
35986
|
-
tmp_3(new
|
|
36041
|
+
tmp_3(new InterceptorFinishedClientAction(tmp$ret$7.gap_1));
|
|
35987
36042
|
} else {
|
|
35988
36043
|
noWhenBranchMatchedException();
|
|
35989
36044
|
}
|
|
@@ -36006,13 +36061,13 @@
|
|
|
36006
36061
|
this.je7_1 = $logger;
|
|
36007
36062
|
}
|
|
36008
36063
|
protoOf(checkExpectantsMiddleware$$inlined$middlewareForActionType$1).w6y = function (action) {
|
|
36009
|
-
return action instanceof
|
|
36064
|
+
return action instanceof InterceptorLifecycleAction;
|
|
36010
36065
|
};
|
|
36011
36066
|
protoOf(checkExpectantsMiddleware$$inlined$middlewareForActionType$1).n70 = function (store, next, action) {
|
|
36012
|
-
var tmp4 = action instanceof
|
|
36067
|
+
var tmp4 = action instanceof InterceptorLifecycleAction ? action : THROW_CCE();
|
|
36013
36068
|
$l$block_7: {
|
|
36014
36069
|
var expectants = get_clientPayload(store.state).cb4_1;
|
|
36015
|
-
if (tmp4 instanceof
|
|
36070
|
+
if (tmp4 instanceof InterceptorFinishedClientAction) {
|
|
36016
36071
|
var tmp$ret$0;
|
|
36017
36072
|
$l$block_0: {
|
|
36018
36073
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -36042,7 +36097,7 @@
|
|
|
36042
36097
|
break $l$block_7;
|
|
36043
36098
|
}
|
|
36044
36099
|
} else {
|
|
36045
|
-
if (tmp4 instanceof
|
|
36100
|
+
if (tmp4 instanceof InterceptorCreatedClientAction) {
|
|
36046
36101
|
var tmp$ret$3;
|
|
36047
36102
|
$l$block_3: {
|
|
36048
36103
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -36072,7 +36127,7 @@
|
|
|
36072
36127
|
break $l$block_7;
|
|
36073
36128
|
}
|
|
36074
36129
|
} else {
|
|
36075
|
-
if (tmp4 instanceof
|
|
36130
|
+
if (tmp4 instanceof InterceptorStageCompletedClientAction) {
|
|
36076
36131
|
var tmp$ret$5;
|
|
36077
36132
|
$l$block_6: {
|
|
36078
36133
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -36289,13 +36344,13 @@
|
|
|
36289
36344
|
var tmp2_uiState = state.eb4_1;
|
|
36290
36345
|
var tmp3_isSceneActive = state.fb4_1;
|
|
36291
36346
|
var tmp4_error = state.nb4_1;
|
|
36292
|
-
var
|
|
36347
|
+
var tmp5_interceptedActions = state.cb4_1;
|
|
36293
36348
|
var tmp6_bufferedActions = state.db4_1;
|
|
36294
36349
|
var tmp7_combinationsToAnnounce = state.ib4_1;
|
|
36295
36350
|
var tmp8_messages = state.ab4_1;
|
|
36296
36351
|
var tmp9_processingCard = state.lb4_1;
|
|
36297
36352
|
var tmp10_transitions = state.mb4_1;
|
|
36298
|
-
return Companion_instance_83.ye7(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions,
|
|
36353
|
+
return Companion_instance_83.ye7(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_interceptedActions, tmp7_combinationsToAnnounce, tmp9_processingCard, tmp4_error, tmp10_transitions);
|
|
36299
36354
|
}
|
|
36300
36355
|
};
|
|
36301
36356
|
protoOf(ClientLifecycleReducer).ae8 = function (messages) {
|
|
@@ -36899,18 +36954,18 @@
|
|
|
36899
36954
|
function expectantLifecycleReducer$$inlined$reducerForActionType$1() {
|
|
36900
36955
|
}
|
|
36901
36956
|
protoOf(expectantLifecycleReducer$$inlined$reducerForActionType$1).w6y = function (action) {
|
|
36902
|
-
return action instanceof
|
|
36957
|
+
return action instanceof InterceptorLifecycleAction;
|
|
36903
36958
|
};
|
|
36904
36959
|
protoOf(expectantLifecycleReducer$$inlined$reducerForActionType$1).ra1 = function (state, action) {
|
|
36905
|
-
var action_0 = action instanceof
|
|
36960
|
+
var action_0 = action instanceof InterceptorLifecycleAction ? action : THROW_CCE();
|
|
36906
36961
|
var clientState = get_clientPayload(state);
|
|
36907
36962
|
var tmp;
|
|
36908
|
-
if (action_0 instanceof
|
|
36909
|
-
var
|
|
36910
|
-
var
|
|
36911
|
-
tmp = state.v9n(VOID, clientState.me3(VOID, VOID, VOID,
|
|
36963
|
+
if (action_0 instanceof InterceptorCreatedClientAction) {
|
|
36964
|
+
var updatedInterceptedActions = plus_0(clientState.cb4_1, action_0.se0_1);
|
|
36965
|
+
var updatedBufferedActions = plus_0(clientState.db4_1, action_0.se0_1.hap_1);
|
|
36966
|
+
tmp = state.v9n(VOID, clientState.me3(VOID, VOID, VOID, updatedInterceptedActions, updatedBufferedActions));
|
|
36912
36967
|
} else {
|
|
36913
|
-
if (action_0 instanceof
|
|
36968
|
+
if (action_0 instanceof InterceptorFinishedClientAction) {
|
|
36914
36969
|
// Inline function 'kotlin.collections.single' call
|
|
36915
36970
|
var single = null;
|
|
36916
36971
|
var found = false;
|
|
@@ -36938,10 +36993,10 @@
|
|
|
36938
36993
|
destination.e(element_0);
|
|
36939
36994
|
}
|
|
36940
36995
|
}
|
|
36941
|
-
var
|
|
36942
|
-
tmp = state.v9n(VOID, clientState.me3(VOID, VOID, VOID,
|
|
36996
|
+
var updatedInterceptedActions_0 = plus_0(destination, expectant.lap(VOID, VOID, true));
|
|
36997
|
+
tmp = state.v9n(VOID, clientState.me3(VOID, VOID, VOID, updatedInterceptedActions_0));
|
|
36943
36998
|
} else {
|
|
36944
|
-
if (action_0 instanceof
|
|
36999
|
+
if (action_0 instanceof InterceptorStageCompletedClientAction) {
|
|
36945
37000
|
tmp = state;
|
|
36946
37001
|
} else {
|
|
36947
37002
|
noWhenBranchMatchedException();
|
|
@@ -36953,16 +37008,16 @@
|
|
|
36953
37008
|
protoOf(expectantLifecycleReducer$$inlined$reducerForActionType$1).o70 = function (state, action) {
|
|
36954
37009
|
return this.ra1((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
36955
37010
|
};
|
|
36956
|
-
function
|
|
37011
|
+
function interceptorActionReducer() {
|
|
36957
37012
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
36958
|
-
return new
|
|
37013
|
+
return new interceptorActionReducer$$inlined$reducerForActionType$1();
|
|
36959
37014
|
}
|
|
36960
|
-
function
|
|
37015
|
+
function interceptorActionReducer$$inlined$reducerForActionType$1() {
|
|
36961
37016
|
}
|
|
36962
|
-
protoOf(
|
|
37017
|
+
protoOf(interceptorActionReducer$$inlined$reducerForActionType$1).w6y = function (action) {
|
|
36963
37018
|
return isInterface(action, InterceptableAction);
|
|
36964
37019
|
};
|
|
36965
|
-
protoOf(
|
|
37020
|
+
protoOf(interceptorActionReducer$$inlined$reducerForActionType$1).ra1 = function (state, action) {
|
|
36966
37021
|
var action_0 = isInterface(action, InterceptableAction) ? action : THROW_CCE();
|
|
36967
37022
|
var clientPayload = get_clientPayload(state);
|
|
36968
37023
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -36976,10 +37031,10 @@
|
|
|
36976
37031
|
destination.e(element);
|
|
36977
37032
|
}
|
|
36978
37033
|
}
|
|
36979
|
-
var
|
|
36980
|
-
return state.v9n(VOID, clientPayload.me3(VOID, VOID, VOID,
|
|
37034
|
+
var updatedInterceptedActions = destination;
|
|
37035
|
+
return state.v9n(VOID, clientPayload.me3(VOID, VOID, VOID, updatedInterceptedActions));
|
|
36981
37036
|
};
|
|
36982
|
-
protoOf(
|
|
37037
|
+
protoOf(interceptorActionReducer$$inlined$reducerForActionType$1).o70 = function (state, action) {
|
|
36983
37038
|
return this.ra1((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
36984
37039
|
};
|
|
36985
37040
|
function TransitionsReducer() {
|
|
@@ -37389,10 +37444,10 @@
|
|
|
37389
37444
|
this.ne9_1 = $currentPlayerId;
|
|
37390
37445
|
}
|
|
37391
37446
|
protoOf(TransitionsReducerImpl$addTransitionWhenExpectant$$inlined$reducerForActionType$1).w6y = function (action) {
|
|
37392
|
-
return action instanceof
|
|
37447
|
+
return action instanceof InterceptorCreatedClientAction;
|
|
37393
37448
|
};
|
|
37394
37449
|
protoOf(TransitionsReducerImpl$addTransitionWhenExpectant$$inlined$reducerForActionType$1).ra1 = function (state, action) {
|
|
37395
|
-
var action_0 = action instanceof
|
|
37450
|
+
var action_0 = action instanceof InterceptorCreatedClientAction ? action : THROW_CCE();
|
|
37396
37451
|
var clientPayload = get_clientPayload(state);
|
|
37397
37452
|
var expectantAction = action_0.se0_1.hap_1;
|
|
37398
37453
|
var tmp;
|
|
@@ -37521,6 +37576,38 @@
|
|
|
37521
37576
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
37522
37577
|
return new TransitionsReducerImpl$addTransitionWhenExpectant$$inlined$reducerForActionType$1(this, currentPlayerId);
|
|
37523
37578
|
};
|
|
37579
|
+
function removeCardsWhenTransaction_0($this, _this__u8e3s4, playerId, transitions) {
|
|
37580
|
+
var updatedCards = toMutableList(_this__u8e3s4);
|
|
37581
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
37582
|
+
if (!transitions.p()) {
|
|
37583
|
+
var _iterator__ex2g4s = transitions.j();
|
|
37584
|
+
while (_iterator__ex2g4s.k()) {
|
|
37585
|
+
var playerTransition = _iterator__ex2g4s.l();
|
|
37586
|
+
if (playerTransition instanceof CardDistributionTransition) {
|
|
37587
|
+
// Inline function 'kotlin.collections.map' call
|
|
37588
|
+
var this_0 = getValue(playerTransition.lai_1, playerId);
|
|
37589
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
37590
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
37591
|
+
var _iterator__ex2g4s_0 = this_0.j();
|
|
37592
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
37593
|
+
var item = _iterator__ex2g4s_0.l();
|
|
37594
|
+
var tmp$ret$1 = item.rai_1;
|
|
37595
|
+
destination.e(tmp$ret$1);
|
|
37596
|
+
}
|
|
37597
|
+
updatedCards.c2(destination);
|
|
37598
|
+
} else {
|
|
37599
|
+
if (playerTransition instanceof PutCardOnTableTransition) {
|
|
37600
|
+
updatedCards.b2(playerTransition.yah_1);
|
|
37601
|
+
} else {
|
|
37602
|
+
if (!(playerTransition instanceof ShowCombinationTransition)) {
|
|
37603
|
+
noWhenBranchMatchedException();
|
|
37604
|
+
}
|
|
37605
|
+
}
|
|
37606
|
+
}
|
|
37607
|
+
}
|
|
37608
|
+
}
|
|
37609
|
+
return toList_0(updatedCards);
|
|
37610
|
+
}
|
|
37524
37611
|
function getCombinations($this, playerId, cardsOnTable, clientPayload) {
|
|
37525
37612
|
var tmp0_safe_receiver = getWinnerExpectant($this, playerId, clientPayload.cb4_1);
|
|
37526
37613
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dap_1;
|
|
@@ -37749,46 +37836,48 @@
|
|
|
37749
37836
|
protoOf(PlayerHandSelector).udn = function (playerId, isGameActive, table, clientPayload) {
|
|
37750
37837
|
var player = getPlayer(table.players, playerId);
|
|
37751
37838
|
var isCurrentPlayer = player.playerId === get_currentPlayer(table).playerId;
|
|
37839
|
+
// Inline function 'games.jass.logic.client.redux.state.ClientStatePayload.getTransitionsIsInstance' call
|
|
37840
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
37841
|
+
var tmp0 = clientPayload.mb4_1;
|
|
37842
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
37843
|
+
var destination = ArrayList_init_$Create$_0();
|
|
37844
|
+
var _iterator__ex2g4s = tmp0.j();
|
|
37845
|
+
while (_iterator__ex2g4s.k()) {
|
|
37846
|
+
var element = _iterator__ex2g4s.l();
|
|
37847
|
+
if (!(element == null) ? isInterface(element, PlayerTransition) : false) {
|
|
37848
|
+
destination.e(element);
|
|
37849
|
+
}
|
|
37850
|
+
}
|
|
37851
|
+
// Inline function 'kotlin.collections.filter' call
|
|
37852
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
37853
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
37854
|
+
var _iterator__ex2g4s_0 = destination.j();
|
|
37855
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
37856
|
+
var element_0 = _iterator__ex2g4s_0.l();
|
|
37857
|
+
if (element_0.b6s(playerId)) {
|
|
37858
|
+
destination_0.e(element_0);
|
|
37859
|
+
}
|
|
37860
|
+
}
|
|
37861
|
+
var playerTransitions = destination_0;
|
|
37752
37862
|
var tmp1_playerId = player.playerId;
|
|
37753
37863
|
var tmp2_cards = player.n7a_1;
|
|
37754
37864
|
var tmp3_players = mapWithIndex(table.players);
|
|
37755
37865
|
var tmp0_safe_receiver = clientPayload.lb4_1;
|
|
37756
37866
|
var tmp4_processingCardOnTable = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e6t_1;
|
|
37757
|
-
var playerCards = this.
|
|
37867
|
+
var playerCards = removeCardsWhenTransaction_0(this, this.pe9(tmp1_playerId, isCurrentPlayer, tmp2_cards, tmp3_players, tmp4_processingCardOnTable), playerId, playerTransitions);
|
|
37758
37868
|
var cardsStateVM = this.oe9(isCurrentPlayer, playerCards, isGameActive, table, clientPayload);
|
|
37759
37869
|
var highlightedCards = this.od9(isCurrentPlayer, clientPayload.ib4_1);
|
|
37760
|
-
var tmp0 = clientPayload.mb4_1;
|
|
37761
|
-
var tmp$ret$1;
|
|
37762
|
-
$l$block: {
|
|
37763
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
37764
|
-
var _iterator__ex2g4s = tmp0.j();
|
|
37765
|
-
while (_iterator__ex2g4s.k()) {
|
|
37766
|
-
var element = _iterator__ex2g4s.l();
|
|
37767
|
-
var tmp;
|
|
37768
|
-
if (isInterface(element, PlayerTransition)) {
|
|
37769
|
-
tmp = element.b6s(playerId);
|
|
37770
|
-
} else {
|
|
37771
|
-
tmp = false;
|
|
37772
|
-
}
|
|
37773
|
-
if (tmp) {
|
|
37774
|
-
tmp$ret$1 = element;
|
|
37775
|
-
break $l$block;
|
|
37776
|
-
}
|
|
37777
|
-
}
|
|
37778
|
-
tmp$ret$1 = null;
|
|
37779
|
-
}
|
|
37780
|
-
var currentPlayerTransition = tmp$ret$1;
|
|
37781
37870
|
// Inline function 'kotlin.collections.map' call
|
|
37782
37871
|
var this_0 = sortedWith(playerCards, new CardSuitSortingComparator(clientPayload.zb3_1.yan_1));
|
|
37783
37872
|
// Inline function 'kotlin.collections.mapTo' call
|
|
37784
|
-
var
|
|
37785
|
-
var
|
|
37786
|
-
while (
|
|
37787
|
-
var item =
|
|
37788
|
-
var tmp$ret$
|
|
37789
|
-
|
|
37873
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
37874
|
+
var _iterator__ex2g4s_1 = this_0.j();
|
|
37875
|
+
while (_iterator__ex2g4s_1.k()) {
|
|
37876
|
+
var item = _iterator__ex2g4s_1.l();
|
|
37877
|
+
var tmp$ret$6 = new CardViewModelV2(item, cardsStateVM.dan(item), highlightedCards.v1(item));
|
|
37878
|
+
destination_1.e(tmp$ret$6);
|
|
37790
37879
|
}
|
|
37791
|
-
return new PlayerHandViewModelV2(playerId,
|
|
37880
|
+
return new PlayerHandViewModelV2(playerId, destination_1, firstOrNull(playerTransitions));
|
|
37792
37881
|
};
|
|
37793
37882
|
protoOf(PlayerHandSelector).oe9 = function (isCurrentPlayer, cards, isGameActive, table, clientPayload) {
|
|
37794
37883
|
var currentPlayer = get_currentPlayer(table);
|
|
@@ -37827,6 +37916,20 @@
|
|
|
37827
37916
|
var index = getItemIndex(players, get_byIdPlayerPredicate()(playerId));
|
|
37828
37917
|
return generateHiddenPlayerHandCards(cards.m(), index);
|
|
37829
37918
|
};
|
|
37919
|
+
protoOf(PlayerHandSelector).pe9 = function (playerId, isCurrentPlayer, cards, players, processingCardOnTable) {
|
|
37920
|
+
var updatedCards = toMutableList(cards);
|
|
37921
|
+
if (isCurrentPlayer && !(processingCardOnTable == null)) {
|
|
37922
|
+
updatedCards.b2(processingCardOnTable);
|
|
37923
|
+
}
|
|
37924
|
+
if (updatedCards.p()) {
|
|
37925
|
+
return emptyList();
|
|
37926
|
+
}
|
|
37927
|
+
if (isCurrentPlayer || this.md9_1.areOpponentsCardsOpened) {
|
|
37928
|
+
return updatedCards;
|
|
37929
|
+
}
|
|
37930
|
+
var index = getItemIndex(players, get_byIdPlayerPredicate()(playerId));
|
|
37931
|
+
return generateHiddenPlayerHandCards(updatedCards.m(), index);
|
|
37932
|
+
};
|
|
37830
37933
|
protoOf(PlayerHandSelector).od9 = function (isCurrentPlayer, combinationsToAnnounce) {
|
|
37831
37934
|
if (!isCurrentPlayer) {
|
|
37832
37935
|
return emptyList();
|
|
@@ -37869,8 +37972,8 @@
|
|
|
37869
37972
|
protoOf(Companion_73).we7 = function (config, uiState, isSceneActive, messages, bufferedActions, error) {
|
|
37870
37973
|
return new ClientStatePayload(config, messages, VOID, VOID, bufferedActions, uiState, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
37871
37974
|
};
|
|
37872
|
-
protoOf(Companion_73).ye7 = function (config, uiState, isSceneActive, messages, bufferedActions,
|
|
37873
|
-
return new ClientStatePayload(config, messages, VOID,
|
|
37975
|
+
protoOf(Companion_73).ye7 = function (config, uiState, isSceneActive, messages, bufferedActions, interceptedActions, combinationsToAnnounce, processingCard, error, transitions) {
|
|
37976
|
+
return new ClientStatePayload(config, messages, VOID, interceptedActions, bufferedActions, uiState, isSceneActive, VOID, VOID, combinationsToAnnounce, VOID, VOID, processingCard, transitions, error);
|
|
37874
37977
|
};
|
|
37875
37978
|
protoOf(Companion_73).ze7 = function (config, uiState, isSceneActive) {
|
|
37876
37979
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, uiState, isSceneActive);
|
|
@@ -37879,10 +37982,10 @@
|
|
|
37879
37982
|
function Companion_getInstance_83() {
|
|
37880
37983
|
return Companion_instance_83;
|
|
37881
37984
|
}
|
|
37882
|
-
function ClientStatePayload(config, messages, infoMessage,
|
|
37985
|
+
function ClientStatePayload(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial) {
|
|
37883
37986
|
messages = messages === VOID ? emptyList() : messages;
|
|
37884
37987
|
infoMessage = infoMessage === VOID ? null : infoMessage;
|
|
37885
|
-
|
|
37988
|
+
interceptedActions = interceptedActions === VOID ? emptyList() : interceptedActions;
|
|
37886
37989
|
bufferedActions = bufferedActions === VOID ? emptyList() : bufferedActions;
|
|
37887
37990
|
isSceneActive = isSceneActive === VOID ? true : isSceneActive;
|
|
37888
37991
|
chatOpened = chatOpened === VOID ? false : chatOpened;
|
|
@@ -37897,7 +38000,7 @@
|
|
|
37897
38000
|
this.zb3_1 = config;
|
|
37898
38001
|
this.ab4_1 = messages;
|
|
37899
38002
|
this.bb4_1 = infoMessage;
|
|
37900
|
-
this.cb4_1 =
|
|
38003
|
+
this.cb4_1 = interceptedActions;
|
|
37901
38004
|
this.db4_1 = bufferedActions;
|
|
37902
38005
|
this.eb4_1 = uiState;
|
|
37903
38006
|
this.fb4_1 = isSceneActive;
|
|
@@ -37914,14 +38017,14 @@
|
|
|
37914
38017
|
protoOf(ClientStatePayload).rdt = function () {
|
|
37915
38018
|
return !this.fb4_1;
|
|
37916
38019
|
};
|
|
37917
|
-
protoOf(ClientStatePayload).
|
|
37918
|
-
return new ClientStatePayload(config, messages, infoMessage,
|
|
38020
|
+
protoOf(ClientStatePayload).qe9 = function (config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial) {
|
|
38021
|
+
return new ClientStatePayload(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
37919
38022
|
};
|
|
37920
|
-
protoOf(ClientStatePayload).me3 = function (config, messages, infoMessage,
|
|
38023
|
+
protoOf(ClientStatePayload).me3 = function (config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial, $super) {
|
|
37921
38024
|
config = config === VOID ? this.zb3_1 : config;
|
|
37922
38025
|
messages = messages === VOID ? this.ab4_1 : messages;
|
|
37923
38026
|
infoMessage = infoMessage === VOID ? this.bb4_1 : infoMessage;
|
|
37924
|
-
|
|
38027
|
+
interceptedActions = interceptedActions === VOID ? this.cb4_1 : interceptedActions;
|
|
37925
38028
|
bufferedActions = bufferedActions === VOID ? this.db4_1 : bufferedActions;
|
|
37926
38029
|
uiState = uiState === VOID ? this.eb4_1 : uiState;
|
|
37927
38030
|
isSceneActive = isSceneActive === VOID ? this.fb4_1 : isSceneActive;
|
|
@@ -37934,10 +38037,10 @@
|
|
|
37934
38037
|
transitions = transitions === VOID ? this.mb4_1 : transitions;
|
|
37935
38038
|
error = error === VOID ? this.nb4_1 : error;
|
|
37936
38039
|
tutorial = tutorial === VOID ? this.ob4_1 : tutorial;
|
|
37937
|
-
return $super === VOID ? this.
|
|
38040
|
+
return $super === VOID ? this.qe9(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial) : $super.qe9.call(this, config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
37938
38041
|
};
|
|
37939
38042
|
protoOf(ClientStatePayload).toString = function () {
|
|
37940
|
-
return 'ClientStatePayload(config=' + this.zb3_1.toString() + ', messages=' + toString(this.ab4_1) + ', infoMessage=' + toString_0(this.bb4_1) + ',
|
|
38043
|
+
return 'ClientStatePayload(config=' + this.zb3_1.toString() + ', messages=' + toString(this.ab4_1) + ', infoMessage=' + toString_0(this.bb4_1) + ', interceptedActions=' + toString(this.cb4_1) + ', bufferedActions=' + toString(this.db4_1) + ', uiState=' + this.eb4_1.toString() + ', isSceneActive=' + this.fb4_1 + ', chatOpened=' + this.gb4_1 + ', settingsOpened=' + this.hb4_1 + ', combinationsToAnnounce=' + toString_0(this.ib4_1) + ', lastBribe=' + toString_0(this.jb4_1) + ', gameInfo=' + toString_0(this.kb4_1) + ', processingCard=' + toString_0(this.lb4_1) + ', transitions=' + toString(this.mb4_1) + ', error=' + toString_0(this.nb4_1) + ', tutorial=' + this.ob4_1 + ')';
|
|
37941
38044
|
};
|
|
37942
38045
|
protoOf(ClientStatePayload).hashCode = function () {
|
|
37943
38046
|
var result = this.zb3_1.hashCode();
|
|
@@ -38085,7 +38188,7 @@
|
|
|
38085
38188
|
function Companion_74() {
|
|
38086
38189
|
}
|
|
38087
38190
|
protoOf(Companion_74).rb4 = function () {
|
|
38088
|
-
return new UIState(
|
|
38191
|
+
return new UIState(false, false);
|
|
38089
38192
|
};
|
|
38090
38193
|
var Companion_instance_84;
|
|
38091
38194
|
function Companion_getInstance_84() {
|
|
@@ -38098,13 +38201,13 @@
|
|
|
38098
38201
|
protoOf(UIState).rb4 = function () {
|
|
38099
38202
|
return this.pb4_1 && this.qb4_1;
|
|
38100
38203
|
};
|
|
38101
|
-
protoOf(UIState).
|
|
38204
|
+
protoOf(UIState).re9 = function (created, focused) {
|
|
38102
38205
|
return new UIState(created, focused);
|
|
38103
38206
|
};
|
|
38104
38207
|
protoOf(UIState).ne8 = function (created, focused, $super) {
|
|
38105
38208
|
created = created === VOID ? this.pb4_1 : created;
|
|
38106
38209
|
focused = focused === VOID ? this.qb4_1 : focused;
|
|
38107
|
-
return $super === VOID ? this.
|
|
38210
|
+
return $super === VOID ? this.re9(created, focused) : $super.re9.call(this, created, focused);
|
|
38108
38211
|
};
|
|
38109
38212
|
protoOf(UIState).toString = function () {
|
|
38110
38213
|
return 'UIState(created=' + this.pb4_1 + ', focused=' + this.qb4_1 + ')';
|
|
@@ -38185,7 +38288,7 @@
|
|
|
38185
38288
|
function onError($this, message, payload) {
|
|
38186
38289
|
var tmp0_elvis_lhs = payload instanceof TerminationGameReason ? payload : null;
|
|
38187
38290
|
var reason = tmp0_elvis_lhs == null ? new GameErrorReason(Reason_INTERNAL_ERROR_getInstance()) : tmp0_elvis_lhs;
|
|
38188
|
-
var tmp1_safe_receiver = $this.
|
|
38291
|
+
var tmp1_safe_receiver = $this.xe9_1;
|
|
38189
38292
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver();
|
|
38190
38293
|
if (tmp2_safe_receiver == null)
|
|
38191
38294
|
null;
|
|
@@ -38194,8 +38297,8 @@
|
|
|
38194
38297
|
}
|
|
38195
38298
|
}
|
|
38196
38299
|
function ShowErrorLoggerOutputImpl$onError$slambda($message, $reason, resultContinuation) {
|
|
38197
|
-
this.
|
|
38198
|
-
this.
|
|
38300
|
+
this.gea_1 = $message;
|
|
38301
|
+
this.hea_1 = $reason;
|
|
38199
38302
|
CoroutineImpl.call(this, resultContinuation);
|
|
38200
38303
|
}
|
|
38201
38304
|
protoOf(ShowErrorLoggerOutputImpl$onError$slambda).kbt = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -38215,7 +38318,7 @@
|
|
|
38215
38318
|
var tmp = this.l9_1;
|
|
38216
38319
|
if (tmp === 0) {
|
|
38217
38320
|
this.m9_1 = 1;
|
|
38218
|
-
this.
|
|
38321
|
+
this.jea_1.dispatch(new ErrorAction(new ErrorState(this.gea_1, VOID, this.hea_1)));
|
|
38219
38322
|
return Unit_instance;
|
|
38220
38323
|
} else if (tmp === 1) {
|
|
38221
38324
|
throw this.o9_1;
|
|
@@ -38227,9 +38330,9 @@
|
|
|
38227
38330
|
while (true);
|
|
38228
38331
|
};
|
|
38229
38332
|
protoOf(ShowErrorLoggerOutputImpl$onError$slambda).lbt = function ($this$dispatchAsync, store, completion) {
|
|
38230
|
-
var i = new ShowErrorLoggerOutputImpl$onError$slambda(this.
|
|
38231
|
-
i.
|
|
38232
|
-
i.
|
|
38333
|
+
var i = new ShowErrorLoggerOutputImpl$onError$slambda(this.gea_1, this.hea_1, completion);
|
|
38334
|
+
i.iea_1 = $this$dispatchAsync;
|
|
38335
|
+
i.jea_1 = store;
|
|
38233
38336
|
return i;
|
|
38234
38337
|
};
|
|
38235
38338
|
function ShowErrorLoggerOutputImpl$onError$slambda_0($message, $reason, resultContinuation) {
|
|
@@ -38243,21 +38346,21 @@
|
|
|
38243
38346
|
function ShowErrorLoggerOutputImpl(skipWarnings, gameClientProvider) {
|
|
38244
38347
|
skipWarnings = skipWarnings === VOID ? true : skipWarnings;
|
|
38245
38348
|
gameClientProvider = gameClientProvider === VOID ? null : gameClientProvider;
|
|
38246
|
-
this.
|
|
38247
|
-
this.
|
|
38349
|
+
this.we9_1 = skipWarnings;
|
|
38350
|
+
this.xe9_1 = gameClientProvider;
|
|
38248
38351
|
}
|
|
38249
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
38250
|
-
this.ve9_1 = _set____db54di;
|
|
38251
|
-
};
|
|
38252
|
-
protoOf(ShowErrorLoggerOutputImpl).se9 = function () {
|
|
38253
|
-
return this.ve9_1;
|
|
38254
|
-
};
|
|
38255
|
-
protoOf(ShowErrorLoggerOutputImpl).te9 = function (_set____db54di) {
|
|
38352
|
+
protoOf(ShowErrorLoggerOutputImpl).se9 = function (_set____db54di) {
|
|
38256
38353
|
this.we9_1 = _set____db54di;
|
|
38257
38354
|
};
|
|
38258
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
38355
|
+
protoOf(ShowErrorLoggerOutputImpl).te9 = function () {
|
|
38259
38356
|
return this.we9_1;
|
|
38260
38357
|
};
|
|
38358
|
+
protoOf(ShowErrorLoggerOutputImpl).ue9 = function (_set____db54di) {
|
|
38359
|
+
this.xe9_1 = _set____db54di;
|
|
38360
|
+
};
|
|
38361
|
+
protoOf(ShowErrorLoggerOutputImpl).ve9 = function () {
|
|
38362
|
+
return this.xe9_1;
|
|
38363
|
+
};
|
|
38261
38364
|
protoOf(ShowErrorLoggerOutputImpl).cp = function (tag, message, payload) {
|
|
38262
38365
|
};
|
|
38263
38366
|
protoOf(ShowErrorLoggerOutputImpl).dp = function (tag, message, exception, payload) {
|
|
@@ -38268,7 +38371,7 @@
|
|
|
38268
38371
|
protoOf(ShowErrorLoggerOutputImpl).fp = function (tag, message, exception, payload) {
|
|
38269
38372
|
};
|
|
38270
38373
|
protoOf(ShowErrorLoggerOutputImpl).ep = function (tag, message, exception, payload) {
|
|
38271
|
-
if (!this.
|
|
38374
|
+
if (!this.we9_1) {
|
|
38272
38375
|
onError(this, message, payload);
|
|
38273
38376
|
}
|
|
38274
38377
|
};
|
|
@@ -38278,14 +38381,14 @@
|
|
|
38278
38381
|
return new GameClientEngineControllerImpl(loggerCallback);
|
|
38279
38382
|
}
|
|
38280
38383
|
function _get_logger__rkp4sl_1($this) {
|
|
38281
|
-
var tmp0 = $this.
|
|
38384
|
+
var tmp0 = $this.nea_1;
|
|
38282
38385
|
var tmp = KProperty1;
|
|
38283
38386
|
// Inline function 'kotlin.getValue' call
|
|
38284
38387
|
getPropertyCallableRef('logger', 1, tmp, GameClientEngineControllerImpl$_get_logger_$ref_da2dm5(), null);
|
|
38285
38388
|
return tmp0.u();
|
|
38286
38389
|
}
|
|
38287
38390
|
function _get_di__ndbzja($this) {
|
|
38288
|
-
var tmp0 = $this.
|
|
38391
|
+
var tmp0 = $this.oea_1;
|
|
38289
38392
|
var tmp = KProperty1;
|
|
38290
38393
|
// Inline function 'kotlin.getValue' call
|
|
38291
38394
|
getPropertyCallableRef('di', 1, tmp, GameClientEngineControllerImpl$_get_di_$ref_2o2v5u(), null);
|
|
@@ -38350,13 +38453,13 @@
|
|
|
38350
38453
|
};
|
|
38351
38454
|
}
|
|
38352
38455
|
function GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1($reducer) {
|
|
38353
|
-
this.
|
|
38456
|
+
this.qea_1 = $reducer;
|
|
38354
38457
|
}
|
|
38355
38458
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).w6y = function (action) {
|
|
38356
38459
|
return isInterface(action, Action);
|
|
38357
38460
|
};
|
|
38358
38461
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).ra1 = function (state, action) {
|
|
38359
|
-
return this.
|
|
38462
|
+
return this.qea_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
38360
38463
|
};
|
|
38361
38464
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).o70 = function (state, action) {
|
|
38362
38465
|
return this.ra1((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -38477,12 +38580,12 @@
|
|
|
38477
38580
|
function GameClientEngineControllerImpl(loggerCallback, production) {
|
|
38478
38581
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
38479
38582
|
production = production === VOID ? true : production;
|
|
38480
|
-
this.
|
|
38583
|
+
this.mea_1 = loggerCallback;
|
|
38481
38584
|
AppEnvironment_getInstance().n76(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
38482
38585
|
var tmp = this;
|
|
38483
|
-
tmp.
|
|
38586
|
+
tmp.nea_1 = lazy_0(GameClientEngineControllerImpl$logger$delegate$lambda);
|
|
38484
38587
|
var tmp_0 = this;
|
|
38485
|
-
tmp_0.
|
|
38588
|
+
tmp_0.oea_1 = lazy_0(GameClientEngineControllerImpl$di$delegate$lambda(this));
|
|
38486
38589
|
var tmp_1 = this;
|
|
38487
38590
|
// Inline function 'org.kodein.di.instance' call
|
|
38488
38591
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -38491,10 +38594,10 @@
|
|
|
38491
38594
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
38492
38595
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
38493
38596
|
var tmp_4 = KProperty1;
|
|
38494
|
-
tmp_1.
|
|
38597
|
+
tmp_1.pea_1 = tmp_3.a6i(this, getPropertyCallableRef('parser', 1, tmp_4, GameClientEngineControllerImpl$_get_parser_$ref_1fv1b8(), null));
|
|
38495
38598
|
}
|
|
38496
|
-
protoOf(GameClientEngineControllerImpl).
|
|
38497
|
-
var tmp0 = this.
|
|
38599
|
+
protoOf(GameClientEngineControllerImpl).kea = function () {
|
|
38600
|
+
var tmp0 = this.pea_1;
|
|
38498
38601
|
var tmp = KProperty1;
|
|
38499
38602
|
// Inline function 'kotlin.getValue' call
|
|
38500
38603
|
getPropertyCallableRef('parser', 1, tmp, GameClientEngineControllerImpl$_get_parser_$ref_1fv1b8_0(), null);
|
|
@@ -38506,7 +38609,7 @@
|
|
|
38506
38609
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
38507
38610
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
38508
38611
|
};
|
|
38509
|
-
protoOf(GameClientEngineControllerImpl).
|
|
38612
|
+
protoOf(GameClientEngineControllerImpl).lea = function (currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, coreConfig) {
|
|
38510
38613
|
var tmp;
|
|
38511
38614
|
if (coreConfig.fileLogsEnabled) {
|
|
38512
38615
|
tmp = new FileLoggerOutputImpl();
|
|
@@ -38515,8 +38618,8 @@
|
|
|
38515
38618
|
}
|
|
38516
38619
|
var fileLoggerOutput = tmp;
|
|
38517
38620
|
var tmp_0;
|
|
38518
|
-
if (!(this.
|
|
38519
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
38621
|
+
if (!(this.mea_1 == null)) {
|
|
38622
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.mea_1));
|
|
38520
38623
|
} else {
|
|
38521
38624
|
tmp_0 = null;
|
|
38522
38625
|
}
|
|
@@ -38777,17 +38880,17 @@
|
|
|
38777
38880
|
defineProp(protoOf(ResetErrorAction), 'actionTag', function () {
|
|
38778
38881
|
return this.i6y();
|
|
38779
38882
|
});
|
|
38780
|
-
protoOf(
|
|
38781
|
-
defineProp(protoOf(
|
|
38883
|
+
protoOf(InterceptorLifecycleAction).i6y = get_actionTag;
|
|
38884
|
+
defineProp(protoOf(InterceptorLifecycleAction), 'actionTag', function () {
|
|
38782
38885
|
return this.i6y();
|
|
38783
38886
|
});
|
|
38784
|
-
defineProp(protoOf(
|
|
38887
|
+
defineProp(protoOf(InterceptorStageCompletedClientAction), 'actionTag', function () {
|
|
38785
38888
|
return this.i6y();
|
|
38786
38889
|
});
|
|
38787
|
-
defineProp(protoOf(
|
|
38890
|
+
defineProp(protoOf(InterceptorFinishedClientAction), 'actionTag', function () {
|
|
38788
38891
|
return this.i6y();
|
|
38789
38892
|
});
|
|
38790
|
-
defineProp(protoOf(
|
|
38893
|
+
defineProp(protoOf(InterceptorCreatedClientAction), 'actionTag', function () {
|
|
38791
38894
|
return this.i6y();
|
|
38792
38895
|
});
|
|
38793
38896
|
protoOf(ExpectantTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
@@ -38804,18 +38907,18 @@
|
|
|
38804
38907
|
protoOf(ShowErrorLoggerOutputImpl).v = v;
|
|
38805
38908
|
protoOf(ShowErrorLoggerOutputImpl).w = w;
|
|
38806
38909
|
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'skipWarnings', function () {
|
|
38807
|
-
return this.
|
|
38910
|
+
return this.te9();
|
|
38808
38911
|
}, function (value) {
|
|
38809
|
-
this.
|
|
38912
|
+
this.se9(value);
|
|
38810
38913
|
});
|
|
38811
38914
|
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'gameClientProvider', function () {
|
|
38812
|
-
return this.
|
|
38915
|
+
return this.ve9();
|
|
38813
38916
|
}, function (value) {
|
|
38814
|
-
this.
|
|
38917
|
+
this.ue9(value);
|
|
38815
38918
|
});
|
|
38816
38919
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngineWithLogic = createOnlineGameEngineWithLogic;
|
|
38817
38920
|
defineProp(protoOf(GameClientEngineControllerImpl), 'parser', function () {
|
|
38818
|
-
return this.
|
|
38921
|
+
return this.kea();
|
|
38819
38922
|
});
|
|
38820
38923
|
//endregion
|
|
38821
38924
|
//region block: init
|
|
@@ -38909,35 +39012,35 @@
|
|
|
38909
39012
|
_.$_$.d = mapFromDto_11;
|
|
38910
39013
|
_.$_$.e = mapFromDto_27;
|
|
38911
39014
|
_.$_$.f = mapFromDto_12;
|
|
38912
|
-
_.$_$.g =
|
|
38913
|
-
_.$_$.h =
|
|
38914
|
-
_.$_$.i =
|
|
38915
|
-
_.$_$.j =
|
|
38916
|
-
_.$_$.k =
|
|
38917
|
-
_.$_$.l =
|
|
38918
|
-
_.$_$.m =
|
|
38919
|
-
_.$_$.n =
|
|
38920
|
-
_.$_$.o =
|
|
38921
|
-
_.$_$.p =
|
|
38922
|
-
_.$_$.q =
|
|
38923
|
-
_.$_$.r =
|
|
38924
|
-
_.$_$.s =
|
|
38925
|
-
_.$_$.t =
|
|
38926
|
-
_.$_$.u =
|
|
38927
|
-
_.$_$.v =
|
|
38928
|
-
_.$_$.w =
|
|
38929
|
-
_.$_$.x =
|
|
38930
|
-
_.$_$.y =
|
|
38931
|
-
_.$_$.z =
|
|
38932
|
-
_.$_$.a1 =
|
|
38933
|
-
_.$_$.b1 =
|
|
38934
|
-
_.$_$.c1 =
|
|
38935
|
-
_.$_$.d1 =
|
|
38936
|
-
_.$_$.e1 =
|
|
38937
|
-
_.$_$.f1 =
|
|
38938
|
-
_.$_$.g1 =
|
|
38939
|
-
_.$_$.h1 =
|
|
38940
|
-
_.$_$.i1 =
|
|
39015
|
+
_.$_$.g = mapToDto_75;
|
|
39016
|
+
_.$_$.h = mapToDto_72;
|
|
39017
|
+
_.$_$.i = mapToDto_38;
|
|
39018
|
+
_.$_$.j = mapToDto_68;
|
|
39019
|
+
_.$_$.k = mapToDto_74;
|
|
39020
|
+
_.$_$.l = mapToDto_76;
|
|
39021
|
+
_.$_$.m = mapToDto_60;
|
|
39022
|
+
_.$_$.n = mapToDto_34;
|
|
39023
|
+
_.$_$.o = mapToDto_64;
|
|
39024
|
+
_.$_$.p = mapToDto_66;
|
|
39025
|
+
_.$_$.q = mapToDto_62;
|
|
39026
|
+
_.$_$.r = mapToDto_42;
|
|
39027
|
+
_.$_$.s = mapToDto_59;
|
|
39028
|
+
_.$_$.t = mapToDto_77;
|
|
39029
|
+
_.$_$.u = mapToDto_70;
|
|
39030
|
+
_.$_$.v = mapToDto_33;
|
|
39031
|
+
_.$_$.w = mapToDto_69;
|
|
39032
|
+
_.$_$.x = mapToDto_61;
|
|
39033
|
+
_.$_$.y = mapToDto_67;
|
|
39034
|
+
_.$_$.z = mapToDto_65;
|
|
39035
|
+
_.$_$.a1 = mapToDto_71;
|
|
39036
|
+
_.$_$.b1 = mapToDto_21;
|
|
39037
|
+
_.$_$.c1 = mapToDto_26;
|
|
39038
|
+
_.$_$.d1 = mapToDto_50;
|
|
39039
|
+
_.$_$.e1 = mapToDto_73;
|
|
39040
|
+
_.$_$.f1 = mapToDto_63;
|
|
39041
|
+
_.$_$.g1 = mapToDto_47;
|
|
39042
|
+
_.$_$.h1 = mapToDto_58;
|
|
39043
|
+
_.$_$.i1 = mapToDto_32;
|
|
38941
39044
|
_.$_$.j1 = HistoryViewModelDto;
|
|
38942
39045
|
_.$_$.k1 = CardDeckViewModelDtoV2;
|
|
38943
39046
|
_.$_$.l1 = CardDeckViewModelDto;
|