client_plugin_logic_deb 1.8.491 → 1.8.493
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-client_plugin.js +1912 -1912
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-game_client.js +87 -71
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +772 -772
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
package/Logic_Debertz-core.js
CHANGED
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
initMetadataForClass(BrowserCompressionService, 'BrowserCompressionService', BrowserCompressionService, VOID, [CompressionService], [2]);
|
|
454
454
|
//endregion
|
|
455
455
|
function GameEngineConfig() {
|
|
456
|
-
this.version = '1.8.
|
|
456
|
+
this.version = '1.8.493';
|
|
457
457
|
}
|
|
458
458
|
protoOf(GameEngineConfig).k47 = function () {
|
|
459
459
|
return this.version;
|
|
@@ -277,6 +277,7 @@
|
|
|
277
277
|
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j7;
|
|
278
278
|
var singleOrNull = kotlin_kotlin.$_$.v9;
|
|
279
279
|
var firstOrNull = kotlin_kotlin.$_$.v7;
|
|
280
|
+
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o7;
|
|
280
281
|
var getGrowth = kotlin_io_raspberryapps_game_engine_engine.$_$.n3;
|
|
281
282
|
var ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.s9;
|
|
282
283
|
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.mb;
|
|
@@ -387,7 +388,6 @@
|
|
|
387
388
|
var CombinationActData = kotlin_io_raspberryapps_game_engine_engine.$_$.l1;
|
|
388
389
|
var getWhoChoseSuit = kotlin_io_raspberryapps_game_engine_engine.$_$.d1;
|
|
389
390
|
var TradeSceneData = kotlin_io_raspberryapps_game_engine_engine.$_$.o1;
|
|
390
|
-
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o7;
|
|
391
391
|
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u7;
|
|
392
392
|
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r7;
|
|
393
393
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
initMetadataForClass(ObserverStrategy, 'ObserverStrategy', VOID, Enum);
|
|
1069
1069
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
1070
1070
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
1071
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
1071
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ControlsContract, ExpectantContract, SceneActionsContract]);
|
|
1072
1072
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
1073
1073
|
initMetadataForLambda(TableSceneImpl$observeControls$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
1074
1074
|
initMetadataForCoroutine($collectCOROUTINE$_41, CoroutineImpl);
|
|
@@ -1332,10 +1332,10 @@
|
|
|
1332
1332
|
initMetadataForClass(clientErrorStateWhenTerminationActionReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1333
1333
|
initMetadataForClass(expectantLifecycleReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1334
1334
|
initMetadataForClass(interceptorActionReducer$$inlined$reducerForActionType$1, VOID, VOID, VOID, [Reducer]);
|
|
1335
|
-
function reducers(currentPlayerId, useTransitions) {
|
|
1335
|
+
function reducers(currentPlayerId, useTransitions, isAutoStepCurrentPlayer) {
|
|
1336
1336
|
var tmp;
|
|
1337
1337
|
if (useTransitions) {
|
|
1338
|
-
tmp = listOf([this.pf3(currentPlayerId), this.qf3(currentPlayerId), this.rf3(currentPlayerId), this.sf3(currentPlayerId), this.tf3(), this.uf3(currentPlayerId), transitionFailsafeFlagReducer()]);
|
|
1338
|
+
tmp = listOf([this.pf3(currentPlayerId), this.qf3(currentPlayerId, isAutoStepCurrentPlayer), this.rf3(currentPlayerId), this.sf3(currentPlayerId), this.tf3(), this.uf3(currentPlayerId), transitionFailsafeFlagReducer()]);
|
|
1339
1339
|
} else {
|
|
1340
1340
|
tmp = emptyList();
|
|
1341
1341
|
}
|
|
@@ -1395,7 +1395,7 @@
|
|
|
1395
1395
|
ratingConfig = ratingConfig === VOID ? new RatingConfig() : ratingConfig;
|
|
1396
1396
|
leaguesConfig = leaguesConfig === VOID ? Companion_instance_6.defaultConfig() : leaguesConfig;
|
|
1397
1397
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
1398
|
-
return $super === VOID ? this.
|
|
1398
|
+
return $super === VOID ? this.of5(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig) : $super.of5.call(this, currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig);
|
|
1399
1399
|
}
|
|
1400
1400
|
initMetadataForInterface(GameClientEngineController, 'GameClientEngineController');
|
|
1401
1401
|
initMetadataForClass(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -19426,6 +19426,21 @@
|
|
|
19426
19426
|
tmp = tmp0_elvis_lhs;
|
|
19427
19427
|
}
|
|
19428
19428
|
var blocking = tmp;
|
|
19429
|
+
var tmp_0;
|
|
19430
|
+
var tmp_1;
|
|
19431
|
+
if (action instanceof PutCardMechanicAction) {
|
|
19432
|
+
tmp_1 = blocking instanceof PutCardOnTableTransition;
|
|
19433
|
+
} else {
|
|
19434
|
+
tmp_1 = false;
|
|
19435
|
+
}
|
|
19436
|
+
if (tmp_1) {
|
|
19437
|
+
tmp_0 = blocking.cbo_1 === action.h9f_1;
|
|
19438
|
+
} else {
|
|
19439
|
+
tmp_0 = false;
|
|
19440
|
+
}
|
|
19441
|
+
if (tmp_0) {
|
|
19442
|
+
return new AvoidBuffer('WaitWhenTransitionsActiveBufferUseCase.samePlayerPutCard');
|
|
19443
|
+
}
|
|
19429
19444
|
return new PutInBuffer('WaitWhenTransitionsActiveBufferUseCase.transitionActive(' + ('' + getKClassFromExpression(blocking).o() + '(' + blocking.b6c() + '))'));
|
|
19430
19445
|
};
|
|
19431
19446
|
function ClientGameHistoryInteractor() {
|
|
@@ -35162,7 +35177,7 @@
|
|
|
35162
35177
|
tmp_60.eex_1 = tmp_62.c1j(this, getPropertyCallableRef('gameLogger', 1, tmp_63, ClientOnlineGameStoreContract$_get_gameLogger_$ref_blu27b(), null));
|
|
35163
35178
|
}
|
|
35164
35179
|
protoOf(ClientOnlineGameStoreContract).uan = function () {
|
|
35165
|
-
var tmp = plus(plus(plus(plus(this.kew_1.uan(), _get_transitionsReducer__bsis4j(this).fex(this.jew_1, !_get_gameClientConfig__xfscic_1(this).validateExpectantActions)), listOf([_get_mechanicReducers__ipi0tc(this).cap(), clientErrorStateWhenTerminationActionReducer(_get_clientLifecycleReducer__6ihp6m_0(this))])), this.new_1.uan()), this.lew_1.uan());
|
|
35180
|
+
var tmp = plus(plus(plus(plus(this.kew_1.uan(), _get_transitionsReducer__bsis4j(this).fex(this.jew_1, !_get_gameClientConfig__xfscic_1(this).validateExpectantActions, _get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer)), listOf([_get_mechanicReducers__ipi0tc(this).cap(), clientErrorStateWhenTerminationActionReducer(_get_clientLifecycleReducer__6ihp6m_0(this))])), this.new_1.uan()), this.lew_1.uan());
|
|
35166
35181
|
var tmp_0;
|
|
35167
35182
|
if (_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer) {
|
|
35168
35183
|
tmp_0 = this.mew_1.uan();
|
|
@@ -35568,7 +35583,7 @@
|
|
|
35568
35583
|
tmp_48.dey_1 = tmp_50.c1j(this, getPropertyCallableRef('gameLogger', 1, tmp_51, ClientSingleGameStoreContract$_get_gameLogger_$ref_mi6elu(), null));
|
|
35569
35584
|
}
|
|
35570
35585
|
protoOf(ClientSingleGameStoreContract).uan = function () {
|
|
35571
|
-
return plus(plus(plus(plus(plus(this.nex_1.uan(), _get_transitionsReducer__bsis4j_0(this).fex(this.mex_1, !_get_gameClientConfig__xfscic_2(this).validateExpectantActions)), this.pex_1.uan()), this.oex_1.uan()), this.qex_1.uan()), this.rex_1.uan());
|
|
35586
|
+
return plus(plus(plus(plus(plus(this.nex_1.uan(), _get_transitionsReducer__bsis4j_0(this).fex(this.mex_1, !_get_gameClientConfig__xfscic_2(this).validateExpectantActions, _get_gameClientConfig__xfscic_2(this).isAutoStepCurrentPlayer)), this.pex_1.uan()), this.oex_1.uan()), this.qex_1.uan()), this.rex_1.uan());
|
|
35572
35587
|
};
|
|
35573
35588
|
protoOf(ClientSingleGameStoreContract).van = function () {
|
|
35574
35589
|
var messagesMiddleware = new MessagesMiddleware(_get_messageFactory__6vg0vc_1(this), _get_pointsInteractor__5t71wv_0(this), _get_teamsLogicProvider__u10pm6_0(this), !_get_gameClientConfig__xfscic_2(this).validateExpectantActions);
|
|
@@ -38885,9 +38900,10 @@
|
|
|
38885
38900
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1).l7k = function (state, action) {
|
|
38886
38901
|
return this.mb0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38887
38902
|
};
|
|
38888
|
-
function TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1($currentPlayerId, this$0) {
|
|
38903
|
+
function TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1($currentPlayerId, $isAutoStepCurrentPlayer, this$0) {
|
|
38889
38904
|
this.hf4_1 = $currentPlayerId;
|
|
38890
|
-
this.if4_1 =
|
|
38905
|
+
this.if4_1 = $isAutoStepCurrentPlayer;
|
|
38906
|
+
this.jf4_1 = this$0;
|
|
38891
38907
|
}
|
|
38892
38908
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).v7i = function (action) {
|
|
38893
38909
|
return action instanceof PutCardMechanicAction;
|
|
@@ -38896,11 +38912,11 @@
|
|
|
38896
38912
|
var tmp2 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
38897
38913
|
var tmp$ret$0;
|
|
38898
38914
|
$l$block: {
|
|
38899
|
-
if (tmp2.playerId === this.hf4_1) {
|
|
38915
|
+
if (tmp2.playerId === this.hf4_1 && !this.if4_1) {
|
|
38900
38916
|
tmp$ret$0 = state;
|
|
38901
38917
|
break $l$block;
|
|
38902
38918
|
}
|
|
38903
|
-
var updatedTransitions = addPutCardOnTableTransition(this.
|
|
38919
|
+
var updatedTransitions = addPutCardOnTableTransition(this.jf4_1, tmp2.playerId, this.hf4_1, tmp2.e9f_1, state.u7v(), get_clientPayload(state));
|
|
38904
38920
|
tmp$ret$0 = state.mak(VOID, get_clientPayload(state).tey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
38905
38921
|
}
|
|
38906
38922
|
return tmp$ret$0;
|
|
@@ -38909,8 +38925,8 @@
|
|
|
38909
38925
|
return this.mb0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38910
38926
|
};
|
|
38911
38927
|
function TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
38912
|
-
this.
|
|
38913
|
-
this.
|
|
38928
|
+
this.kf4_1 = this$0;
|
|
38929
|
+
this.lf4_1 = $currentPlayerId;
|
|
38914
38930
|
}
|
|
38915
38931
|
protoOf(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1).v7i = function (action) {
|
|
38916
38932
|
return action instanceof SceneMechanicAction;
|
|
@@ -38920,10 +38936,10 @@
|
|
|
38920
38936
|
var tmp;
|
|
38921
38937
|
switch (action_0.h9e_1) {
|
|
38922
38938
|
case 'TRADE':
|
|
38923
|
-
tmp = handleTradeScene(this.
|
|
38939
|
+
tmp = handleTradeScene(this.kf4_1, state, action_0, this.lf4_1);
|
|
38924
38940
|
break;
|
|
38925
38941
|
case 'EARN_POINTS':
|
|
38926
|
-
tmp = handleEarnPointsScene(this.
|
|
38942
|
+
tmp = handleEarnPointsScene(this.kf4_1, state, action_0, this.lf4_1);
|
|
38927
38943
|
break;
|
|
38928
38944
|
default:
|
|
38929
38945
|
tmp = state;
|
|
@@ -38935,8 +38951,8 @@
|
|
|
38935
38951
|
return this.mb0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38936
38952
|
};
|
|
38937
38953
|
function TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
38938
|
-
this.
|
|
38939
|
-
this.
|
|
38954
|
+
this.mf4_1 = this$0;
|
|
38955
|
+
this.nf4_1 = $currentPlayerId;
|
|
38940
38956
|
}
|
|
38941
38957
|
protoOf(TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1).v7i = function (action) {
|
|
38942
38958
|
return action instanceof WinnerCombinationsMechanicAction;
|
|
@@ -38944,7 +38960,7 @@
|
|
|
38944
38960
|
protoOf(TransitionsReducerImpl$addTransitionWhenShowCombinationReducer$$inlined$reducerForActionType$1).mb0 = function (state, action) {
|
|
38945
38961
|
var action_0 = action instanceof WinnerCombinationsMechanicAction ? action : THROW_CCE();
|
|
38946
38962
|
var clientPayload = get_clientPayload(state);
|
|
38947
|
-
var tmp = this.
|
|
38963
|
+
var tmp = this.mf4_1.xf3_1.f7g();
|
|
38948
38964
|
// Inline function 'kotlin.collections.associate' call
|
|
38949
38965
|
var this_0 = action_0.r9f_1;
|
|
38950
38966
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
@@ -38968,7 +38984,7 @@
|
|
|
38968
38984
|
var combinationCards = flatten(destination_0);
|
|
38969
38985
|
var tmp0_players = state.u7v().players;
|
|
38970
38986
|
var tmp1_processingCard = clientPayload.xbi_1;
|
|
38971
|
-
var openOrHiddenCards = getOpenOrHiddenCardsInHand(this.
|
|
38987
|
+
var openOrHiddenCards = getOpenOrHiddenCardsInHand(this.mf4_1, player, this.nf4_1, tmp0_players, tmp1_processingCard, combinationCards);
|
|
38972
38988
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
38973
38989
|
var this_2 = zip(combinationCards, openOrHiddenCards);
|
|
38974
38990
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -38998,7 +39014,7 @@
|
|
|
38998
39014
|
return this.mb0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
38999
39015
|
};
|
|
39000
39016
|
function TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1(this$0) {
|
|
39001
|
-
this.
|
|
39017
|
+
this.of4_1 = this$0;
|
|
39002
39018
|
}
|
|
39003
39019
|
protoOf(TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1).v7i = function (action) {
|
|
39004
39020
|
return action instanceof PickUpBribeMechanicAction;
|
|
@@ -39006,7 +39022,7 @@
|
|
|
39006
39022
|
protoOf(TransitionsReducerImpl$addTransitionWhenPickUpBribeReducer$$inlined$reducerForActionType$1).mb0 = function (state, action) {
|
|
39007
39023
|
var action_0 = action instanceof PickUpBribeMechanicAction ? action : THROW_CCE();
|
|
39008
39024
|
var clientPayload = get_clientPayload(state);
|
|
39009
|
-
var tmp = this.
|
|
39025
|
+
var tmp = this.of4_1.xf3_1.f7g();
|
|
39010
39026
|
// Inline function 'kotlin.collections.map' call
|
|
39011
39027
|
var this_0 = state.u7v().cardsOnTable;
|
|
39012
39028
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -39024,8 +39040,8 @@
|
|
|
39024
39040
|
return this.mb0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
39025
39041
|
};
|
|
39026
39042
|
function TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1(this$0, $currentPlayerId) {
|
|
39027
|
-
this.
|
|
39028
|
-
this.
|
|
39043
|
+
this.pf4_1 = this$0;
|
|
39044
|
+
this.qf4_1 = $currentPlayerId;
|
|
39029
39045
|
}
|
|
39030
39046
|
protoOf(TransitionsReducerImpl$addTransitionWhenCombinationChoiceReducer$$inlined$reducerForActionType$1).v7i = function (action) {
|
|
39031
39047
|
return action instanceof CombinationChoiceMechanicAction;
|
|
@@ -39037,8 +39053,8 @@
|
|
|
39037
39053
|
if (action_0.a9f_1 && combination.z8l_1.equals(CombinationType_SEVEN_TRUMP_getInstance())) {
|
|
39038
39054
|
var clientPayload = get_clientPayload(state);
|
|
39039
39055
|
var trumpCard = single(combination.fa1());
|
|
39040
|
-
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.
|
|
39041
|
-
var tmp0_id = this.
|
|
39056
|
+
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.pf4_1, trumpCard, getPlayer(state.u7v().players, action_0.playerId), this.qf4_1, state.u7v().players);
|
|
39057
|
+
var tmp0_id = this.pf4_1.xf3_1.f7g();
|
|
39042
39058
|
var tmp1_playerIds = listOf_0(action_0.playerId);
|
|
39043
39059
|
var tmp2_toCard2 = state.u7v().requireCardDeck.l93_1;
|
|
39044
39060
|
var tmp3_fromCard2 = state.u7v().requireCardDeck.l93_1;
|
|
@@ -39067,9 +39083,9 @@
|
|
|
39067
39083
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
39068
39084
|
return new TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1(this, currentPlayerId);
|
|
39069
39085
|
};
|
|
39070
|
-
protoOf(TransitionsReducerImpl).qf3 = function (currentPlayerId) {
|
|
39086
|
+
protoOf(TransitionsReducerImpl).qf3 = function (currentPlayerId, isAutoStepCurrentPlayer) {
|
|
39071
39087
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
39072
|
-
return new TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1(currentPlayerId, this);
|
|
39088
|
+
return new TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1(currentPlayerId, isAutoStepCurrentPlayer, this);
|
|
39073
39089
|
};
|
|
39074
39090
|
protoOf(TransitionsReducerImpl).rf3 = function (currentPlayerId) {
|
|
39075
39091
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -39387,7 +39403,7 @@
|
|
|
39387
39403
|
var tmp3_players = mapWithIndex(table.players);
|
|
39388
39404
|
var tmp0_safe_receiver = clientPayload.xbi_1;
|
|
39389
39405
|
var tmp4_processingCardOnTable = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7b_1;
|
|
39390
|
-
var playerCards = removeCardsWhenTransaction_0(this, this.
|
|
39406
|
+
var playerCards = removeCardsWhenTransaction_0(this, this.rf4(tmp1_playerId, isCurrentPlayer, tmp2_cards, tmp3_players, tmp4_processingCardOnTable), playerId, playerHandTransitions);
|
|
39391
39407
|
var cardsStateVM = this.ydz(isCurrentPlayer, playerCards, isGameActive, table, clientPayload);
|
|
39392
39408
|
var highlightedCards = this.ke8(isCurrentPlayer, clientPayload.ubi_1);
|
|
39393
39409
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -39470,7 +39486,7 @@
|
|
|
39470
39486
|
var index = getItemIndex(players, get_byIdPlayerPredicate()(playerId));
|
|
39471
39487
|
return generateHiddenPlayerHandCards(cards.g1(), index);
|
|
39472
39488
|
};
|
|
39473
|
-
protoOf(PlayerHandSelector).
|
|
39489
|
+
protoOf(PlayerHandSelector).rf4 = function (playerId, isCurrentPlayer, cards, players, processingCardOnTable) {
|
|
39474
39490
|
var updatedCards = toMutableList(cards);
|
|
39475
39491
|
if (isCurrentPlayer && !(processingCardOnTable == null)) {
|
|
39476
39492
|
updatedCards.y2(processingCardOnTable);
|
|
@@ -39516,12 +39532,12 @@
|
|
|
39516
39532
|
};
|
|
39517
39533
|
function Companion_81() {
|
|
39518
39534
|
}
|
|
39519
|
-
protoOf(Companion_81).
|
|
39535
|
+
protoOf(Companion_81).sf4 = function (config, combinationsToAnnounce) {
|
|
39520
39536
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, Companion_instance_93.o9z(), VOID, VOID, VOID, combinationsToAnnounce);
|
|
39521
39537
|
};
|
|
39522
39538
|
protoOf(Companion_81).hf3 = function (config, combinationsToAnnounce, $super) {
|
|
39523
39539
|
combinationsToAnnounce = combinationsToAnnounce === VOID ? null : combinationsToAnnounce;
|
|
39524
|
-
return $super === VOID ? this.
|
|
39540
|
+
return $super === VOID ? this.sf4(config, combinationsToAnnounce) : $super.sf4.call(this, config, combinationsToAnnounce);
|
|
39525
39541
|
};
|
|
39526
39542
|
protoOf(Companion_81).tf2 = function (config, uiState, isSceneActive, messages, bufferedActions, error) {
|
|
39527
39543
|
return new ClientStatePayload(config, messages, VOID, VOID, bufferedActions, uiState, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
@@ -39573,7 +39589,7 @@
|
|
|
39573
39589
|
protoOf(ClientStatePayload).jep = function () {
|
|
39574
39590
|
return !this.rbi_1;
|
|
39575
39591
|
};
|
|
39576
|
-
protoOf(ClientStatePayload).
|
|
39592
|
+
protoOf(ClientStatePayload).tf4 = function (config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, transitionFailsafeRunning, error, tutorial) {
|
|
39577
39593
|
return new ClientStatePayload(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, transitionFailsafeRunning, error, tutorial);
|
|
39578
39594
|
};
|
|
39579
39595
|
protoOf(ClientStatePayload).tey = function (config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, transitionFailsafeRunning, error, tutorial, $super) {
|
|
@@ -39594,7 +39610,7 @@
|
|
|
39594
39610
|
transitionFailsafeRunning = transitionFailsafeRunning === VOID ? this.zbi_1 : transitionFailsafeRunning;
|
|
39595
39611
|
error = error === VOID ? this.abj_1 : error;
|
|
39596
39612
|
tutorial = tutorial === VOID ? this.bbj_1 : tutorial;
|
|
39597
|
-
return $super === VOID ? this.
|
|
39613
|
+
return $super === VOID ? this.tf4(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, transitionFailsafeRunning, error, tutorial) : $super.tf4.call(this, config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, transitionFailsafeRunning, error, tutorial);
|
|
39598
39614
|
};
|
|
39599
39615
|
protoOf(ClientStatePayload).toString = function () {
|
|
39600
39616
|
return 'ClientStatePayload(config=' + this.lbi_1.toString() + ', messages=' + toString(this.mbi_1) + ', infoMessage=' + toString_0(this.nbi_1) + ', interceptedActions=' + toString(this.obi_1) + ', bufferedActions=' + toString(this.pbi_1) + ', uiState=' + this.qbi_1.toString() + ', isSceneActive=' + this.rbi_1 + ', chatOpened=' + this.sbi_1 + ', settingsOpened=' + this.tbi_1 + ', combinationsToAnnounce=' + toString_0(this.ubi_1) + ', lastBribe=' + toString_0(this.vbi_1) + ', gameInfo=' + toString_0(this.wbi_1) + ', processingCard=' + toString_0(this.xbi_1) + ', transitions=' + toString(this.ybi_1) + ', transitionFailsafeRunning=' + this.zbi_1 + ', error=' + toString_0(this.abj_1) + ', tutorial=' + this.bbj_1 + ')';
|
|
@@ -39757,13 +39773,13 @@
|
|
|
39757
39773
|
protoOf(UIState).hca = function () {
|
|
39758
39774
|
return this.fca_1 && this.gca_1;
|
|
39759
39775
|
};
|
|
39760
|
-
protoOf(UIState).
|
|
39776
|
+
protoOf(UIState).uf4 = function (created, focused) {
|
|
39761
39777
|
return new UIState(created, focused);
|
|
39762
39778
|
};
|
|
39763
39779
|
protoOf(UIState).vf2 = function (created, focused, $super) {
|
|
39764
39780
|
created = created === VOID ? this.fca_1 : created;
|
|
39765
39781
|
focused = focused === VOID ? this.gca_1 : focused;
|
|
39766
|
-
return $super === VOID ? this.
|
|
39782
|
+
return $super === VOID ? this.uf4(created, focused) : $super.uf4.call(this, created, focused);
|
|
39767
39783
|
};
|
|
39768
39784
|
protoOf(UIState).toString = function () {
|
|
39769
39785
|
return 'UIState(created=' + this.fca_1 + ', focused=' + this.gca_1 + ')';
|
|
@@ -39858,7 +39874,7 @@
|
|
|
39858
39874
|
function onError($this, message, payload) {
|
|
39859
39875
|
var tmp0_elvis_lhs = payload instanceof TerminationGameReason ? payload : null;
|
|
39860
39876
|
var reason = tmp0_elvis_lhs == null ? new GameErrorReason(Reason_INTERNAL_ERROR_getInstance()) : tmp0_elvis_lhs;
|
|
39861
|
-
var tmp1_safe_receiver = $this.
|
|
39877
|
+
var tmp1_safe_receiver = $this.af5_1;
|
|
39862
39878
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver();
|
|
39863
39879
|
if (tmp2_safe_receiver == null)
|
|
39864
39880
|
null;
|
|
@@ -39867,8 +39883,8 @@
|
|
|
39867
39883
|
}
|
|
39868
39884
|
}
|
|
39869
39885
|
function ShowErrorLoggerOutputImpl$onError$slambda($message, $reason, resultContinuation) {
|
|
39870
|
-
this.
|
|
39871
|
-
this.
|
|
39886
|
+
this.jf5_1 = $message;
|
|
39887
|
+
this.kf5_1 = $reason;
|
|
39872
39888
|
CoroutineImpl.call(this, resultContinuation);
|
|
39873
39889
|
}
|
|
39874
39890
|
protoOf(ShowErrorLoggerOutputImpl$onError$slambda).vcv = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -39888,7 +39904,7 @@
|
|
|
39888
39904
|
var tmp = this.i9_1;
|
|
39889
39905
|
if (tmp === 0) {
|
|
39890
39906
|
this.j9_1 = 1;
|
|
39891
|
-
this.
|
|
39907
|
+
this.mf5_1.dispatch(new ErrorAction(new ErrorState(this.jf5_1, VOID, this.kf5_1)));
|
|
39892
39908
|
return Unit_instance;
|
|
39893
39909
|
} else if (tmp === 1) {
|
|
39894
39910
|
throw this.l9_1;
|
|
@@ -39900,9 +39916,9 @@
|
|
|
39900
39916
|
while (true);
|
|
39901
39917
|
};
|
|
39902
39918
|
protoOf(ShowErrorLoggerOutputImpl$onError$slambda).wcv = function ($this$dispatchAsync, store, completion) {
|
|
39903
|
-
var i = new ShowErrorLoggerOutputImpl$onError$slambda(this.
|
|
39904
|
-
i.
|
|
39905
|
-
i.
|
|
39919
|
+
var i = new ShowErrorLoggerOutputImpl$onError$slambda(this.jf5_1, this.kf5_1, completion);
|
|
39920
|
+
i.lf5_1 = $this$dispatchAsync;
|
|
39921
|
+
i.mf5_1 = store;
|
|
39906
39922
|
return i;
|
|
39907
39923
|
};
|
|
39908
39924
|
function ShowErrorLoggerOutputImpl$onError$slambda_0($message, $reason, resultContinuation) {
|
|
@@ -39916,21 +39932,21 @@
|
|
|
39916
39932
|
function ShowErrorLoggerOutputImpl(skipWarnings, gameClientProvider) {
|
|
39917
39933
|
skipWarnings = skipWarnings === VOID ? true : skipWarnings;
|
|
39918
39934
|
gameClientProvider = gameClientProvider === VOID ? null : gameClientProvider;
|
|
39919
|
-
this.
|
|
39920
|
-
this.
|
|
39935
|
+
this.zf4_1 = skipWarnings;
|
|
39936
|
+
this.af5_1 = gameClientProvider;
|
|
39921
39937
|
}
|
|
39922
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
39923
|
-
this.yf4_1 = _set____db54di;
|
|
39924
|
-
};
|
|
39925
|
-
protoOf(ShowErrorLoggerOutputImpl).vf4 = function () {
|
|
39926
|
-
return this.yf4_1;
|
|
39927
|
-
};
|
|
39928
|
-
protoOf(ShowErrorLoggerOutputImpl).wf4 = function (_set____db54di) {
|
|
39938
|
+
protoOf(ShowErrorLoggerOutputImpl).vf4 = function (_set____db54di) {
|
|
39929
39939
|
this.zf4_1 = _set____db54di;
|
|
39930
39940
|
};
|
|
39931
|
-
protoOf(ShowErrorLoggerOutputImpl).
|
|
39941
|
+
protoOf(ShowErrorLoggerOutputImpl).wf4 = function () {
|
|
39932
39942
|
return this.zf4_1;
|
|
39933
39943
|
};
|
|
39944
|
+
protoOf(ShowErrorLoggerOutputImpl).xf4 = function (_set____db54di) {
|
|
39945
|
+
this.af5_1 = _set____db54di;
|
|
39946
|
+
};
|
|
39947
|
+
protoOf(ShowErrorLoggerOutputImpl).yf4 = function () {
|
|
39948
|
+
return this.af5_1;
|
|
39949
|
+
};
|
|
39934
39950
|
protoOf(ShowErrorLoggerOutputImpl).e5o = function (tag, message, payload) {
|
|
39935
39951
|
};
|
|
39936
39952
|
protoOf(ShowErrorLoggerOutputImpl).f5o = function (tag, message, exception, payload) {
|
|
@@ -39941,7 +39957,7 @@
|
|
|
39941
39957
|
protoOf(ShowErrorLoggerOutputImpl).h5o = function (tag, message, exception, payload) {
|
|
39942
39958
|
};
|
|
39943
39959
|
protoOf(ShowErrorLoggerOutputImpl).g5o = function (tag, message, exception, payload) {
|
|
39944
|
-
if (!this.
|
|
39960
|
+
if (!this.zf4_1) {
|
|
39945
39961
|
onError(this, message, payload);
|
|
39946
39962
|
}
|
|
39947
39963
|
};
|
|
@@ -39951,14 +39967,14 @@
|
|
|
39951
39967
|
return new GameClientEngineControllerImpl(loggerCallback);
|
|
39952
39968
|
}
|
|
39953
39969
|
function _get_logger__rkp4sl_0($this) {
|
|
39954
|
-
var tmp0 = $this.
|
|
39970
|
+
var tmp0 = $this.qf5_1;
|
|
39955
39971
|
var tmp = KProperty1;
|
|
39956
39972
|
// Inline function 'kotlin.getValue' call
|
|
39957
39973
|
getPropertyCallableRef('logger', 1, tmp, GameClientEngineControllerImpl$_get_logger_$ref_da2dm5(), null);
|
|
39958
39974
|
return tmp0.o1();
|
|
39959
39975
|
}
|
|
39960
39976
|
function _get_di__ndbzja($this) {
|
|
39961
|
-
var tmp0 = $this.
|
|
39977
|
+
var tmp0 = $this.rf5_1;
|
|
39962
39978
|
var tmp = KProperty1;
|
|
39963
39979
|
// Inline function 'kotlin.getValue' call
|
|
39964
39980
|
getPropertyCallableRef('di', 1, tmp, GameClientEngineControllerImpl$_get_di_$ref_2o2v5u(), null);
|
|
@@ -39975,8 +39991,8 @@
|
|
|
39975
39991
|
}
|
|
39976
39992
|
function createCallbackOutput($this, gameClient) {
|
|
39977
39993
|
var tmp;
|
|
39978
|
-
if (!($this.
|
|
39979
|
-
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.
|
|
39994
|
+
if (!($this.pf5_1 == null)) {
|
|
39995
|
+
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.pf5_1);
|
|
39980
39996
|
tmp = new CallbackWrapperLoggerOutput(tmp_0, GameClientEngineControllerImpl$createCallbackOutput$lambda(gameClient));
|
|
39981
39997
|
} else {
|
|
39982
39998
|
tmp = null;
|
|
@@ -40042,13 +40058,13 @@
|
|
|
40042
40058
|
};
|
|
40043
40059
|
}
|
|
40044
40060
|
function GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1($reducer) {
|
|
40045
|
-
this.
|
|
40061
|
+
this.tf5_1 = $reducer;
|
|
40046
40062
|
}
|
|
40047
40063
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).v7i = function (action) {
|
|
40048
40064
|
return isInterface(action, Action);
|
|
40049
40065
|
};
|
|
40050
40066
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).mb0 = function (state, action) {
|
|
40051
|
-
return this.
|
|
40067
|
+
return this.tf5_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
40052
40068
|
};
|
|
40053
40069
|
protoOf(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1).l7k = function (state, action) {
|
|
40054
40070
|
return this.mb0((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -40179,7 +40195,7 @@
|
|
|
40179
40195
|
function GameClientEngineControllerImpl(loggerCallback, production) {
|
|
40180
40196
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
40181
40197
|
production = production === VOID ? true : production;
|
|
40182
|
-
this.
|
|
40198
|
+
this.pf5_1 = loggerCallback;
|
|
40183
40199
|
var tmp = AppEnvironment_getInstance();
|
|
40184
40200
|
var tmp_0;
|
|
40185
40201
|
if (production) {
|
|
@@ -40189,9 +40205,9 @@
|
|
|
40189
40205
|
}
|
|
40190
40206
|
tmp.y7p(tmp_0);
|
|
40191
40207
|
var tmp_1 = this;
|
|
40192
|
-
tmp_1.
|
|
40208
|
+
tmp_1.qf5_1 = lazy_0(GameClientEngineControllerImpl$logger$delegate$lambda);
|
|
40193
40209
|
var tmp_2 = this;
|
|
40194
|
-
tmp_2.
|
|
40210
|
+
tmp_2.rf5_1 = lazy_0(GameClientEngineControllerImpl$di$delegate$lambda(this));
|
|
40195
40211
|
var tmp_3 = this;
|
|
40196
40212
|
// Inline function 'org.kodein.di.instance' call
|
|
40197
40213
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -40200,10 +40216,10 @@
|
|
|
40200
40216
|
var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
40201
40217
|
var tmp_5 = Instance(this_0, tmp$ret$0, null);
|
|
40202
40218
|
var tmp_6 = KProperty1;
|
|
40203
|
-
tmp_3.
|
|
40219
|
+
tmp_3.sf5_1 = tmp_5.c1j(this, getPropertyCallableRef('parser', 1, tmp_6, GameClientEngineControllerImpl$_get_parser_$ref_1fv1b8(), null));
|
|
40204
40220
|
}
|
|
40205
|
-
protoOf(GameClientEngineControllerImpl).
|
|
40206
|
-
var tmp0 = this.
|
|
40221
|
+
protoOf(GameClientEngineControllerImpl).nf5 = function () {
|
|
40222
|
+
var tmp0 = this.sf5_1;
|
|
40207
40223
|
var tmp = KProperty1;
|
|
40208
40224
|
// Inline function 'kotlin.getValue' call
|
|
40209
40225
|
getPropertyCallableRef('parser', 1, tmp, GameClientEngineControllerImpl$_get_parser_$ref_1fv1b8_0(), null);
|
|
@@ -40215,7 +40231,7 @@
|
|
|
40215
40231
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
40216
40232
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
40217
40233
|
};
|
|
40218
|
-
protoOf(GameClientEngineControllerImpl).
|
|
40234
|
+
protoOf(GameClientEngineControllerImpl).of5 = function (currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig) {
|
|
40219
40235
|
var combinedLogger = Companion_instance_8.hz();
|
|
40220
40236
|
var gameClient = {_v: null};
|
|
40221
40237
|
var tmp0_clientConfig = new ClientConfig(GameType_SERVER_getInstance(), get_entries());
|
|
@@ -40500,18 +40516,18 @@
|
|
|
40500
40516
|
protoOf(ShowErrorLoggerOutputImpl).v = v;
|
|
40501
40517
|
protoOf(ShowErrorLoggerOutputImpl).w = w;
|
|
40502
40518
|
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'skipWarnings', function () {
|
|
40503
|
-
return this.
|
|
40519
|
+
return this.wf4();
|
|
40504
40520
|
}, function (value) {
|
|
40505
|
-
this.
|
|
40521
|
+
this.vf4(value);
|
|
40506
40522
|
});
|
|
40507
40523
|
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'gameClientProvider', function () {
|
|
40508
|
-
return this.
|
|
40524
|
+
return this.yf4();
|
|
40509
40525
|
}, function (value) {
|
|
40510
|
-
this.
|
|
40526
|
+
this.xf4(value);
|
|
40511
40527
|
});
|
|
40512
40528
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngineWithLogic = createOnlineGameEngineWithLogic;
|
|
40513
40529
|
defineProp(protoOf(GameClientEngineControllerImpl), 'parser', function () {
|
|
40514
|
-
return this.
|
|
40530
|
+
return this.nf5();
|
|
40515
40531
|
});
|
|
40516
40532
|
//endregion
|
|
40517
40533
|
//region block: init
|