game_client_logic_deb 1.3.77 → 1.3.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +4730 -4723
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +12 -1
- package/Logic_Debertz-game_client.js +264 -271
- package/Logic_Debertz-game_client.js.map +1 -1
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
45
45
|
var interfaceMeta = kotlin_kotlin.$_$.g9;
|
|
46
46
|
var SuspendFunction1 = kotlin_kotlin.$_$.o8;
|
|
47
|
-
var AppState_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
47
|
+
var AppState_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.c4;
|
|
48
48
|
var emptyList = kotlin_kotlin.$_$.c6;
|
|
49
49
|
var BaseGame = kotlin_com_gamewithcats_game_engine_engine.$_$.m3;
|
|
50
50
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
var GameLogger = kotlin_com_gamewithcats_game_engine_core.$_$.n2;
|
|
59
59
|
var plus = kotlin_kotlin.$_$.d7;
|
|
60
60
|
var listOfNotNull = kotlin_kotlin.$_$.u6;
|
|
61
|
-
var GameStore = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
61
|
+
var GameStore = kotlin_com_gamewithcats_game_engine_engine.$_$.o3;
|
|
62
62
|
var KProperty1 = kotlin_kotlin.$_$.ka;
|
|
63
63
|
var getPropertyCallableRef = kotlin_kotlin.$_$.d9;
|
|
64
64
|
var Exception = kotlin_kotlin.$_$.ub;
|
|
@@ -96,10 +96,9 @@
|
|
|
96
96
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
97
97
|
var DeveloperConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.y;
|
|
98
98
|
var MessageFactory = kotlin_com_gamewithcats_game_engine_engine.$_$.h1;
|
|
99
|
-
var LogicReduxConfig_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.x3;
|
|
100
99
|
var BotReduxConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.x;
|
|
101
|
-
var get_engineGameModule = kotlin_com_gamewithcats_game_engine_engine.$_$.g1;
|
|
102
100
|
var LogicReduxConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.z;
|
|
101
|
+
var get_engineGameModule = kotlin_com_gamewithcats_game_engine_engine.$_$.g1;
|
|
103
102
|
var NotImplementedError_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
104
103
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.zc;
|
|
105
104
|
var StoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.u2;
|
|
@@ -117,21 +116,22 @@
|
|
|
117
116
|
var FinishPlayerReason = kotlin_com_gamewithcats_game_engine_core.$_$.b1;
|
|
118
117
|
var TerminatedAction = kotlin_com_gamewithcats_game_engine_engine.$_$.o2;
|
|
119
118
|
var getGrowth = kotlin_com_gamewithcats_game_engine_core.$_$.z;
|
|
120
|
-
var Companion_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
121
|
-
var ValidationCode_CARD_VALIDATION_HAS_TRUMP_CARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
122
|
-
var ValidationCode_CARD_VALIDATION_HAS_SAME_CARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
123
|
-
var ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
119
|
+
var Companion_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.e4;
|
|
120
|
+
var ValidationCode_CARD_VALIDATION_HAS_TRUMP_CARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.r3;
|
|
121
|
+
var ValidationCode_CARD_VALIDATION_HAS_SAME_CARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.q3;
|
|
122
|
+
var ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.p3;
|
|
124
123
|
var DebertzTable = kotlin_com_gamewithcats_game_engine_engine.$_$.w;
|
|
125
124
|
var singleOrNull = kotlin_kotlin.$_$.h7;
|
|
126
125
|
var to = kotlin_kotlin.$_$.fd;
|
|
127
126
|
var Pair = kotlin_kotlin.$_$.zb;
|
|
128
127
|
var List = kotlin_kotlin.$_$.x4;
|
|
129
|
-
var Companion_getInstance_0 = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
128
|
+
var Companion_getInstance_0 = kotlin_com_gamewithcats_game_engine_engine.$_$.h4;
|
|
130
129
|
var get_isChoosePartnerScene = kotlin_com_gamewithcats_game_engine_engine.$_$.t;
|
|
131
130
|
var get_isPreviewScene = kotlin_com_gamewithcats_game_engine_engine.$_$.v;
|
|
132
|
-
var ClearAction_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
131
|
+
var ClearAction_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.f4;
|
|
133
132
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
|
|
134
133
|
var ExitFromClientAction = kotlin_com_gamewithcats_game_engine_engine.$_$.p1;
|
|
134
|
+
var GameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.n3;
|
|
135
135
|
var MutableSharedFlow$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
136
136
|
var Logger_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.h4;
|
|
137
137
|
var get_isCreated_0 = kotlin_com_gamewithcats_game_engine_engine.$_$.a1;
|
|
@@ -155,17 +155,17 @@
|
|
|
155
155
|
var NotValidateIfGameFinishing = kotlin_com_gamewithcats_game_engine_core.$_$.y1;
|
|
156
156
|
var ReleaseBufferTriggerAction = kotlin_com_gamewithcats_game_engine_core.$_$.c2;
|
|
157
157
|
var IgnoreLoggerAction = kotlin_com_gamewithcats_game_engine_engine.$_$.c3;
|
|
158
|
-
var CommonStoreContract_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
158
|
+
var CommonStoreContract_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.a4;
|
|
159
159
|
var CombinationCheckerProvider = kotlin_com_gamewithcats_game_engine_engine.$_$.j1;
|
|
160
160
|
var LastCardInteractor = kotlin_com_gamewithcats_game_engine_engine.$_$.i1;
|
|
161
|
-
var BotGameStoreContract_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
161
|
+
var BotGameStoreContract_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.z3;
|
|
162
162
|
var GameMechanicLogicInteractor = kotlin_com_gamewithcats_game_engine_engine.$_$.k1;
|
|
163
163
|
var PlayerTurnInteractor = kotlin_com_gamewithcats_game_engine_engine.$_$.m1;
|
|
164
164
|
var PlayerTurnMechanicReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.f3;
|
|
165
165
|
var listOfNotNull_0 = kotlin_kotlin.$_$.t6;
|
|
166
166
|
var setPlayerTurnReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.i3;
|
|
167
167
|
var playerTurnTimeoutMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.z2;
|
|
168
|
-
var GameMechanicStoreContract_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
168
|
+
var GameMechanicStoreContract_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.b4;
|
|
169
169
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
170
170
|
var Default_getInstance = kotlin_kotlin.$_$.c4;
|
|
171
171
|
var putPlayerLastCardMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.w2;
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
var middleware = kotlin_com_gamewithcats_game_engine_core.$_$.r1;
|
|
190
190
|
var MessageMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.e2;
|
|
191
191
|
var PutCardMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.j2;
|
|
192
|
-
var Companion_getInstance_1 = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
192
|
+
var Companion_getInstance_1 = kotlin_com_gamewithcats_game_engine_engine.$_$.d4;
|
|
193
193
|
var CombinationActData = kotlin_com_gamewithcats_game_engine_engine.$_$.p;
|
|
194
194
|
var SuitChoiceMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.m2;
|
|
195
195
|
var PreviewSceneData = kotlin_com_gamewithcats_game_engine_engine.$_$.q;
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
var contains = kotlin_kotlin.$_$.k5;
|
|
220
220
|
var GameErrorReason = kotlin_com_gamewithcats_game_engine_core.$_$.c1;
|
|
221
221
|
var get_isEarnPointScene = kotlin_com_gamewithcats_game_engine_engine.$_$.u;
|
|
222
|
-
var Companion_getInstance_2 = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
222
|
+
var Companion_getInstance_2 = kotlin_com_gamewithcats_game_engine_engine.$_$.g4;
|
|
223
223
|
var NavigationMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.f2;
|
|
224
224
|
var Reducer = kotlin_com_gamewithcats_game_engine_core.$_$.p1;
|
|
225
225
|
var TextMessage = kotlin_com_gamewithcats_game_engine_engine.$_$.f;
|
|
@@ -228,12 +228,12 @@
|
|
|
228
228
|
var WinnerCombinationsMessage = kotlin_com_gamewithcats_game_engine_engine.$_$.d;
|
|
229
229
|
var AnnouncedCombinationMessage = kotlin_com_gamewithcats_game_engine_engine.$_$.c;
|
|
230
230
|
var BaseMechanicLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.d3;
|
|
231
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
232
|
-
var GameLifecycleState_FINISHED_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
233
|
-
var GameLifecycleState_FINISHING_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
231
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.s3;
|
|
232
|
+
var GameLifecycleState_FINISHED_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.u3;
|
|
233
|
+
var GameLifecycleState_FINISHING_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.v3;
|
|
234
234
|
var filterByGameWinner = kotlin_com_gamewithcats_game_engine_engine.$_$.k;
|
|
235
235
|
var firstOrNull = kotlin_kotlin.$_$.h6;
|
|
236
|
-
var GameLifecycleState_CREATING_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
236
|
+
var GameLifecycleState_CREATING_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.t3;
|
|
237
237
|
var filterByPlayerId = kotlin_com_gamewithcats_game_engine_core.$_$.f;
|
|
238
238
|
var filterWhoChoseSuit = kotlin_com_gamewithcats_game_engine_engine.$_$.l;
|
|
239
239
|
var filterWhoShuffleCards = kotlin_com_gamewithcats_game_engine_engine.$_$.m;
|
|
@@ -262,8 +262,9 @@
|
|
|
262
262
|
var PlatformGameLogger_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.g4;
|
|
263
263
|
var values = kotlin_com_gamewithcats_game_engine_core.$_$.w;
|
|
264
264
|
var toList = kotlin_kotlin.$_$.q7;
|
|
265
|
-
var DeveloperConfig_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
266
|
-
var BotReduxConfig_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.
|
|
265
|
+
var DeveloperConfig_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.x3;
|
|
266
|
+
var BotReduxConfig_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.w3;
|
|
267
|
+
var LogicReduxConfig_init_$Create$ = kotlin_com_gamewithcats_game_engine_engine.$_$.y3;
|
|
267
268
|
var toList_0 = kotlin_kotlin.$_$.p7;
|
|
268
269
|
var gameStatisticsMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.v2;
|
|
269
270
|
//endregion
|
|
@@ -866,7 +867,7 @@
|
|
|
866
867
|
case 0:
|
|
867
868
|
this.nj_1 = 2;
|
|
868
869
|
this.mj_1 = 1;
|
|
869
|
-
suspendResult = this.f4m_1.d10(this.g4m_1.
|
|
870
|
+
suspendResult = this.f4m_1.d10(this.g4m_1.h2x(), this);
|
|
870
871
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
871
872
|
return suspendResult;
|
|
872
873
|
}
|
|
@@ -1388,7 +1389,7 @@
|
|
|
1388
1389
|
case 0:
|
|
1389
1390
|
this.nj_1 = 2;
|
|
1390
1391
|
this.mj_1 = 1;
|
|
1391
|
-
suspendResult = this.b4q_1.d10(this.c4q_1.
|
|
1392
|
+
suspendResult = this.b4q_1.d10(this.c4q_1.h2x(), this);
|
|
1392
1393
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1393
1394
|
return suspendResult;
|
|
1394
1395
|
}
|
|
@@ -1856,12 +1857,12 @@
|
|
|
1856
1857
|
};
|
|
1857
1858
|
ClientReduxConfig.$metadata$ = classMeta('ClientReduxConfig');
|
|
1858
1859
|
function toPlayerVM(_this__u8e3s4, currentPlayerId, party) {
|
|
1859
|
-
var tmp2_userInfo = _this__u8e3s4.
|
|
1860
|
-
var tmp3_selectedSuit = _this__u8e3s4.
|
|
1861
|
-
var tmp4_isGameCreator = _this__u8e3s4.
|
|
1862
|
-
var tmp5_isShuffleCards = _this__u8e3s4.
|
|
1860
|
+
var tmp2_userInfo = _this__u8e3s4.n30_1;
|
|
1861
|
+
var tmp3_selectedSuit = _this__u8e3s4.p30_1.i31_1 ? party.i3k_1 : null;
|
|
1862
|
+
var tmp4_isGameCreator = _this__u8e3s4.p30_1.x30_1;
|
|
1863
|
+
var tmp5_isShuffleCards = _this__u8e3s4.p30_1.a31_1;
|
|
1863
1864
|
var tmp6_isCurrentPlayer = currentPlayerId === _this__u8e3s4.x2k();
|
|
1864
|
-
var tmp0_safe_receiver = party.
|
|
1865
|
+
var tmp0_safe_receiver = party.i3k_1;
|
|
1865
1866
|
var tmp;
|
|
1866
1867
|
if (tmp0_safe_receiver == null) {
|
|
1867
1868
|
tmp = null;
|
|
@@ -1873,7 +1874,7 @@
|
|
|
1873
1874
|
// Inline function 'com.debertz.logic.client.data.models.toPlayerVM.<anonymous>' call
|
|
1874
1875
|
var tmp$ret$1;
|
|
1875
1876
|
// Inline function 'kotlin.collections.sumOf' call
|
|
1876
|
-
var tmp0_sumOf = _this__u8e3s4.
|
|
1877
|
+
var tmp0_sumOf = _this__u8e3s4.s30_1.e33_1;
|
|
1877
1878
|
var sum = 0;
|
|
1878
1879
|
var tmp0_iterator = tmp0_sumOf.f();
|
|
1879
1880
|
while (tmp0_iterator.g()) {
|
|
@@ -1894,11 +1895,11 @@
|
|
|
1894
1895
|
return new PlayerViewModel(tmp2_userInfo, tmp3_selectedSuit, tmp5_isShuffleCards, tmp6_isCurrentPlayer, tmp4_isGameCreator, tmp7_points);
|
|
1895
1896
|
}
|
|
1896
1897
|
function toStateVM(_this__u8e3s4) {
|
|
1897
|
-
return new PlayerStateViewModel(_this__u8e3s4.x2k(), _this__u8e3s4.
|
|
1898
|
+
return new PlayerStateViewModel(_this__u8e3s4.x2k(), _this__u8e3s4.o30_1.q2l_1, _this__u8e3s4.o30_1.u2l_1, _this__u8e3s4.o30_1.r2l_1);
|
|
1898
1899
|
}
|
|
1899
1900
|
function toVM(_this__u8e3s4, players) {
|
|
1900
|
-
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.y4r_1).
|
|
1901
|
-
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.x4r_1).
|
|
1901
|
+
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.y4r_1).n30_1;
|
|
1902
|
+
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.x4r_1).n30_1;
|
|
1902
1903
|
var tmp2_cards = _this__u8e3s4.z4r_1;
|
|
1903
1904
|
return new LastBribeViewModel(tmp1_whoPutFirstCardUser, tmp0_whoGotBribeUser, tmp2_cards);
|
|
1904
1905
|
}
|
|
@@ -1914,7 +1915,7 @@
|
|
|
1914
1915
|
// Inline function 'kotlin.contracts.contract' call
|
|
1915
1916
|
var tmp$ret$0;
|
|
1916
1917
|
// Inline function 'com.debertz.logic.client.data.models.toVM.<anonymous>' call
|
|
1917
|
-
tmp$ret$0 = getPlayer(players, _this__u8e3s4.b4s_1).
|
|
1918
|
+
tmp$ret$0 = getPlayer(players, _this__u8e3s4.b4s_1).n30_1;
|
|
1918
1919
|
tmp$ret$1 = tmp$ret$0;
|
|
1919
1920
|
tmp = tmp$ret$1;
|
|
1920
1921
|
}
|
|
@@ -1929,14 +1930,14 @@
|
|
|
1929
1930
|
// Inline function 'kotlin.contracts.contract' call
|
|
1930
1931
|
var tmp$ret$2;
|
|
1931
1932
|
// Inline function 'com.debertz.logic.client.data.models.toVM.<anonymous>' call
|
|
1932
|
-
tmp$ret$2 = getPlayer(players, _this__u8e3s4.c4s_1).
|
|
1933
|
+
tmp$ret$2 = getPlayer(players, _this__u8e3s4.c4s_1).n30_1;
|
|
1933
1934
|
tmp$ret$3 = tmp$ret$2;
|
|
1934
1935
|
tmp_0 = tmp$ret$3;
|
|
1935
1936
|
}
|
|
1936
1937
|
var tmp4_whoChoseSuitUserInfo = tmp_0;
|
|
1937
|
-
var tmp5_playersMode = config.
|
|
1938
|
-
var tmp6_pointsMode = config.
|
|
1939
|
-
var tmp7_rulesSetType = config.
|
|
1938
|
+
var tmp5_playersMode = config.o3h_1;
|
|
1939
|
+
var tmp6_pointsMode = config.p3h_1;
|
|
1940
|
+
var tmp7_rulesSetType = config.m3h_1;
|
|
1940
1941
|
return new GameInfoViewModel(tmp2_trump, tmp6_pointsMode, tmp5_playersMode, points, tmp4_whoChoseSuitUserInfo, tmp3_whoShuffleCardsUserInfo, tmp7_rulesSetType);
|
|
1941
1942
|
}
|
|
1942
1943
|
function SceneViewModel(partyNumber, sceneId, previousSceneId) {
|
|
@@ -1976,7 +1977,7 @@
|
|
|
1976
1977
|
this.k4s_1 = isGameCreator;
|
|
1977
1978
|
this.l4s_1 = points;
|
|
1978
1979
|
}
|
|
1979
|
-
PlayerViewModel.prototype.
|
|
1980
|
+
PlayerViewModel.prototype.l30 = function () {
|
|
1980
1981
|
return this.i4s_1;
|
|
1981
1982
|
};
|
|
1982
1983
|
PlayerViewModel.prototype.x2k = function () {
|
|
@@ -2480,7 +2481,7 @@
|
|
|
2480
2481
|
this.f4u_1 = isFinished;
|
|
2481
2482
|
this.g4u_1 = isAccepted;
|
|
2482
2483
|
}
|
|
2483
|
-
ExpectantWrapper.prototype.
|
|
2484
|
+
ExpectantWrapper.prototype.g2x = function () {
|
|
2484
2485
|
return this.d4u_1;
|
|
2485
2486
|
};
|
|
2486
2487
|
ExpectantWrapper.prototype.h4u = function () {
|
|
@@ -2613,9 +2614,9 @@
|
|
|
2613
2614
|
return clientScenesDIModule;
|
|
2614
2615
|
}
|
|
2615
2616
|
var clientScenesDIModule;
|
|
2616
|
-
function createGameClientDI(currentPlayerId, clientConfig, developerConfig, clientReduxConfig, botConfig, externalReducers, externalMiddlewares) {
|
|
2617
|
+
function createGameClientDI(currentPlayerId, clientConfig, developerConfig, clientReduxConfig, logicReduxConfig, botConfig, externalReducers, externalMiddlewares) {
|
|
2617
2618
|
init_properties_DI_kt_pa5hx();
|
|
2618
|
-
return Module_init_$Create$('Client Game DI module', false, null, createGameClientDI$lambda(clientConfig, currentPlayerId, externalReducers, externalMiddlewares, developerConfig, clientReduxConfig, botConfig), 6, null);
|
|
2619
|
+
return Module_init_$Create$('Client Game DI module', false, null, createGameClientDI$lambda(clientConfig, currentPlayerId, externalReducers, externalMiddlewares, developerConfig, clientReduxConfig, botConfig, logicReduxConfig), 6, null);
|
|
2619
2620
|
}
|
|
2620
2621
|
function createClientSingleGameDI(currentPlayerId, externalReducers, externalMiddlewares) {
|
|
2621
2622
|
init_properties_DI_kt_pa5hx();
|
|
@@ -3721,15 +3722,12 @@
|
|
|
3721
3722
|
return $botConfig;
|
|
3722
3723
|
};
|
|
3723
3724
|
}
|
|
3724
|
-
function createGameClientDI$lambda$lambda_3($
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
function createGameClientDI$lambda$lambda_4($this$singleton) {
|
|
3729
|
-
init_properties_DI_kt_pa5hx();
|
|
3730
|
-
return LogicReduxConfig_init_$Create$(false, false, false, 7, null);
|
|
3725
|
+
function createGameClientDI$lambda$lambda_3($logicReduxConfig) {
|
|
3726
|
+
return function ($this$singleton) {
|
|
3727
|
+
return $logicReduxConfig;
|
|
3728
|
+
};
|
|
3731
3729
|
}
|
|
3732
|
-
function createGameClientDI$lambda($clientConfig, $currentPlayerId, $externalReducers, $externalMiddlewares, $developerConfig, $clientReduxConfig, $botConfig) {
|
|
3730
|
+
function createGameClientDI$lambda($clientConfig, $currentPlayerId, $externalReducers, $externalMiddlewares, $developerConfig, $clientReduxConfig, $botConfig, $logicReduxConfig) {
|
|
3733
3731
|
return function ($this$$receiver) {
|
|
3734
3732
|
var tmp$ret$1;
|
|
3735
3733
|
// Inline function 'org.kodein.di.bind' call
|
|
@@ -3811,67 +3809,43 @@
|
|
|
3811
3809
|
tmp$ret$14 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
3812
3810
|
tmp$ret$15 = new Singleton(tmp_19, tmp_20, tmp_21, tmp$ret$14, null, true, tmp3_singleton);
|
|
3813
3811
|
tmp_18.h2e(tmp$ret$15);
|
|
3814
|
-
var
|
|
3815
|
-
|
|
3816
|
-
var
|
|
3817
|
-
|
|
3818
|
-
var
|
|
3819
|
-
$
|
|
3820
|
-
|
|
3821
|
-
|
|
3812
|
+
var tmp$ret$17;
|
|
3813
|
+
// Inline function 'org.kodein.di.bind' call
|
|
3814
|
+
var tmp$ret$16;
|
|
3815
|
+
// Inline function 'org.kodein.type.generic' call
|
|
3816
|
+
var tmp_23 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
3817
|
+
tmp$ret$16 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE();
|
|
3818
|
+
tmp$ret$17 = $this$$receiver.s2e(tmp$ret$16, null, null);
|
|
3819
|
+
var tmp_24 = tmp$ret$17;
|
|
3820
|
+
var tmp$ret$19;
|
|
3821
|
+
// Inline function 'org.kodein.di.singleton' call
|
|
3822
|
+
var tmp4_singleton = createGameClientDI$lambda$lambda_3($logicReduxConfig);
|
|
3823
|
+
var tmp_25 = $this$$receiver.e2e();
|
|
3824
|
+
var tmp_26 = $this$$receiver.f2e();
|
|
3825
|
+
var tmp_27 = $this$$receiver.g2e();
|
|
3826
|
+
var tmp$ret$18;
|
|
3827
|
+
// Inline function 'org.kodein.type.generic' call
|
|
3828
|
+
var tmp_28 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
3829
|
+
tmp$ret$18 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE();
|
|
3830
|
+
tmp$ret$19 = new Singleton(tmp_25, tmp_26, tmp_27, tmp$ret$18, null, true, tmp4_singleton);
|
|
3831
|
+
tmp_24.h2e(tmp$ret$19);
|
|
3832
|
+
var tmp_29 = get_engineGameModule();
|
|
3833
|
+
$this$$receiver.u2e(tmp_29, false, 2, null);
|
|
3834
|
+
var tmp_30 = get_clientBufferModule();
|
|
3835
|
+
$this$$receiver.u2e(tmp_30, false, 2, null);
|
|
3836
|
+
var tmp_31 = get_clientEngineModule();
|
|
3837
|
+
$this$$receiver.u2e(tmp_31, false, 2, null);
|
|
3838
|
+
var tmp_32 = get_clientScenesDIModule();
|
|
3839
|
+
$this$$receiver.u2e(tmp_32, false, 2, null);
|
|
3822
3840
|
var tmp0_subject = $clientConfig.g4t_1;
|
|
3823
3841
|
var tmp0 = tmp0_subject.e5_1;
|
|
3824
|
-
var
|
|
3842
|
+
var tmp_33;
|
|
3825
3843
|
switch (tmp0) {
|
|
3826
3844
|
case 0:
|
|
3827
|
-
|
|
3828
|
-
// Inline function 'org.kodein.di.bind' call
|
|
3829
|
-
var tmp$ret$16;
|
|
3830
|
-
// Inline function 'org.kodein.type.generic' call
|
|
3831
|
-
var tmp_28 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
3832
|
-
tmp$ret$16 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE();
|
|
3833
|
-
tmp$ret$17 = $this$$receiver.s2e(tmp$ret$16, null, null);
|
|
3834
|
-
|
|
3835
|
-
var tmp_29 = tmp$ret$17;
|
|
3836
|
-
var tmp$ret$19;
|
|
3837
|
-
// Inline function 'org.kodein.di.singleton' call
|
|
3838
|
-
var tmp4_singleton = createGameClientDI$lambda$lambda_3;
|
|
3839
|
-
var tmp_30 = $this$$receiver.e2e();
|
|
3840
|
-
var tmp_31 = $this$$receiver.f2e();
|
|
3841
|
-
var tmp_32 = $this$$receiver.g2e();
|
|
3842
|
-
var tmp$ret$18;
|
|
3843
|
-
// Inline function 'org.kodein.type.generic' call
|
|
3844
|
-
var tmp_33 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
3845
|
-
tmp$ret$18 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE();
|
|
3846
|
-
tmp$ret$19 = new Singleton(tmp_30, tmp_31, tmp_32, tmp$ret$18, null, true, tmp4_singleton);
|
|
3847
|
-
|
|
3848
|
-
tmp_29.h2e(tmp$ret$19);
|
|
3849
|
-
tmp_27 = createClientSingleGameDI($currentPlayerId, $externalReducers, $externalMiddlewares);
|
|
3845
|
+
tmp_33 = createClientSingleGameDI($currentPlayerId, $externalReducers, $externalMiddlewares);
|
|
3850
3846
|
break;
|
|
3851
3847
|
case 1:
|
|
3852
|
-
|
|
3853
|
-
// Inline function 'org.kodein.di.bind' call
|
|
3854
|
-
var tmp$ret$20;
|
|
3855
|
-
// Inline function 'org.kodein.type.generic' call
|
|
3856
|
-
var tmp_34 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
3857
|
-
tmp$ret$20 = isInterface(tmp_34, TypeToken) ? tmp_34 : THROW_CCE();
|
|
3858
|
-
tmp$ret$21 = $this$$receiver.s2e(tmp$ret$20, null, null);
|
|
3859
|
-
|
|
3860
|
-
var tmp_35 = tmp$ret$21;
|
|
3861
|
-
var tmp$ret$23;
|
|
3862
|
-
// Inline function 'org.kodein.di.singleton' call
|
|
3863
|
-
var tmp5_singleton = createGameClientDI$lambda$lambda_4;
|
|
3864
|
-
var tmp_36 = $this$$receiver.e2e();
|
|
3865
|
-
var tmp_37 = $this$$receiver.f2e();
|
|
3866
|
-
var tmp_38 = $this$$receiver.g2e();
|
|
3867
|
-
var tmp$ret$22;
|
|
3868
|
-
// Inline function 'org.kodein.type.generic' call
|
|
3869
|
-
var tmp_39 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
3870
|
-
tmp$ret$22 = isInterface(tmp_39, TypeToken) ? tmp_39 : THROW_CCE();
|
|
3871
|
-
tmp$ret$23 = new Singleton(tmp_36, tmp_37, tmp_38, tmp$ret$22, null, true, tmp5_singleton);
|
|
3872
|
-
|
|
3873
|
-
tmp_35.h2e(tmp$ret$23);
|
|
3874
|
-
tmp_27 = createClientMultiplayerGameDI($currentPlayerId, $externalReducers, $externalMiddlewares);
|
|
3848
|
+
tmp_33 = createClientMultiplayerGameDI($currentPlayerId, $externalReducers, $externalMiddlewares);
|
|
3875
3849
|
break;
|
|
3876
3850
|
case 2:
|
|
3877
3851
|
throw NotImplementedError_init_$Create$(null, 1, null);
|
|
@@ -3879,8 +3853,8 @@
|
|
|
3879
3853
|
noWhenBranchMatchedException();
|
|
3880
3854
|
break;
|
|
3881
3855
|
}
|
|
3882
|
-
var
|
|
3883
|
-
$this$$receiver.u2e(
|
|
3856
|
+
var tmp_34 = tmp_33;
|
|
3857
|
+
$this$$receiver.u2e(tmp_34, false, 2, null);
|
|
3884
3858
|
return Unit_getInstance();
|
|
3885
3859
|
};
|
|
3886
3860
|
}
|
|
@@ -4526,10 +4500,10 @@
|
|
|
4526
4500
|
if (!state.o3v() ? !get_isCreated(state) : false) {
|
|
4527
4501
|
return new InBuffer('InSceneBufferUseCase.isTableExists');
|
|
4528
4502
|
}
|
|
4529
|
-
var table = state.
|
|
4503
|
+
var table = state.h2x();
|
|
4530
4504
|
if (!(action == null) ? isInterface(action, InSceneAction) : false) {
|
|
4531
4505
|
var tmp;
|
|
4532
|
-
if (action.u48(table.
|
|
4506
|
+
if (action.u48(table.d3u_1.w3x_1)) {
|
|
4533
4507
|
tmp = OutBuffer_init_$Create$('InSceneBufferUseCase.inScene', false, 2, null);
|
|
4534
4508
|
} else {
|
|
4535
4509
|
tmp = new InBuffer('InSceneBufferUseCase.inScene');
|
|
@@ -4550,7 +4524,7 @@
|
|
|
4550
4524
|
var tmp;
|
|
4551
4525
|
var tmp_0;
|
|
4552
4526
|
if (isInterface(reason, FinishPlayerReason)) {
|
|
4553
|
-
tmp_0 = !(reason.x2k() === get_currentPlayer(state.
|
|
4527
|
+
tmp_0 = !(reason.x2k() === get_currentPlayer(state.h2x()).x2k());
|
|
4554
4528
|
} else {
|
|
4555
4529
|
tmp_0 = false;
|
|
4556
4530
|
}
|
|
@@ -4578,7 +4552,7 @@
|
|
|
4578
4552
|
PutCardValidatorInteractor.$metadata$ = interfaceMeta('PutCardValidatorInteractor');
|
|
4579
4553
|
function checkIsPartnerGetBribe($this, winCard, playerId, players) {
|
|
4580
4554
|
var partner = $this.w4v_1.f40(playerId, players);
|
|
4581
|
-
return winCard.
|
|
4555
|
+
return winCard.x39_1 === partner.x2k();
|
|
4582
4556
|
}
|
|
4583
4557
|
function checkHasHigherCard($this, winCard, playerCard, gameCards, trump) {
|
|
4584
4558
|
var tmp;
|
|
@@ -4611,9 +4585,9 @@
|
|
|
4611
4585
|
this.x4v_1 = gameLogicProvider;
|
|
4612
4586
|
}
|
|
4613
4587
|
PutCardValidatorInteractorImpl.prototype.v4v = function (playerCard, player, table) {
|
|
4614
|
-
var trump = table.
|
|
4615
|
-
var playerCards = player.
|
|
4616
|
-
var cardsOnTable = table.
|
|
4588
|
+
var trump = table.h3u_1.v3u_1.q3x();
|
|
4589
|
+
var playerCards = player.q30_1;
|
|
4590
|
+
var cardsOnTable = table.e3u_1;
|
|
4617
4591
|
var tmp0_elvis_lhs = Companion_getInstance().r3v(cardsOnTable);
|
|
4618
4592
|
var tmp;
|
|
4619
4593
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -4622,16 +4596,16 @@
|
|
|
4622
4596
|
tmp = tmp0_elvis_lhs;
|
|
4623
4597
|
}
|
|
4624
4598
|
var firstCard = tmp;
|
|
4625
|
-
var firstCardSuit = firstCard.
|
|
4599
|
+
var firstCardSuit = firstCard.z39_1.p2p();
|
|
4626
4600
|
var playerCardSuit = playerCard.p2p();
|
|
4627
4601
|
var tmp_0;
|
|
4628
4602
|
if (playerCardSuit.equals(firstCardSuit)) {
|
|
4629
4603
|
var winCard = this.x4v_1.v40(cardsOnTable, trump);
|
|
4630
4604
|
var fistCardIsTrump = firstCardSuit.equals(trump);
|
|
4631
|
-
var playersMode = table.
|
|
4632
|
-
var isPartnerCantGetBribeInTeamGame = !playersMode.isTeamGame ? true : playersMode.isTeamGame ? !checkIsPartnerGetBribe(this, winCard, player.x2k(), table.
|
|
4605
|
+
var playersMode = table.b3u_1.o3h_1;
|
|
4606
|
+
var isPartnerCantGetBribeInTeamGame = !playersMode.isTeamGame ? true : playersMode.isTeamGame ? !checkIsPartnerGetBribe(this, winCard, player.x2k(), table.c3u_1) : false;
|
|
4633
4607
|
var tmp_1;
|
|
4634
|
-
if (((table.
|
|
4608
|
+
if (((table.b3u_1.l3h_1.v2m_1 ? fistCardIsTrump : false) ? isPartnerCantGetBribeInTeamGame : false) ? checkHasHigherCard(this, winCard.z39_1, playerCard, playerCards, trump) : false) {
|
|
4635
4609
|
tmp_1 = ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance();
|
|
4636
4610
|
} else {
|
|
4637
4611
|
tmp_1 = null;
|
|
@@ -4735,7 +4709,7 @@
|
|
|
4735
4709
|
case 0:
|
|
4736
4710
|
this.nj_1 = 2;
|
|
4737
4711
|
this.mj_1 = 1;
|
|
4738
|
-
suspendResult = this.g4w_1.d10(this.h4w_1.
|
|
4712
|
+
suspendResult = this.g4w_1.d10(this.h4w_1.b3u_1, this);
|
|
4739
4713
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4740
4714
|
return suspendResult;
|
|
4741
4715
|
}
|
|
@@ -4829,7 +4803,7 @@
|
|
|
4829
4803
|
case 0:
|
|
4830
4804
|
this.nj_1 = 2;
|
|
4831
4805
|
this.mj_1 = 1;
|
|
4832
|
-
var tmp_0 = this.e4x_1.
|
|
4806
|
+
var tmp_0 = this.e4x_1.h2x().c3u_1;
|
|
4833
4807
|
var tmp0_safe_receiver = get_clientStateOrNull_0(this.e4x_1);
|
|
4834
4808
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d4v_1;
|
|
4835
4809
|
var tmp_1;
|
|
@@ -5060,7 +5034,7 @@
|
|
|
5060
5034
|
var tmp0_iterator = this.f4z_1.f();
|
|
5061
5035
|
while (tmp0_iterator.g()) {
|
|
5062
5036
|
var item = tmp0_iterator.h();
|
|
5063
|
-
this.g4z_1.a(item.
|
|
5037
|
+
this.g4z_1.a(item.n30_1);
|
|
5064
5038
|
}
|
|
5065
5039
|
|
|
5066
5040
|
suspendResult = this.e4z_1.d10(this.g4z_1, this);
|
|
@@ -5254,11 +5228,11 @@
|
|
|
5254
5228
|
this.b51_1 = this.a51_1.w2v_1;
|
|
5255
5229
|
var tmp_0 = this;
|
|
5256
5230
|
var tmp0_safe_receiver = this.b51_1;
|
|
5257
|
-
tmp_0.c51_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5231
|
+
tmp_0.c51_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d3u_1;
|
|
5258
5232
|
var tmp1_safe_receiver = this.b51_1;
|
|
5259
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
5260
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
5261
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
5233
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h3u_1;
|
|
5234
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.v3u_1;
|
|
5235
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g3k_1;
|
|
5262
5236
|
var tmp_1 = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
5263
5237
|
var tmp5_safe_receiver = this.c51_1;
|
|
5264
5238
|
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.w3x_1;
|
|
@@ -5654,7 +5628,7 @@
|
|
|
5654
5628
|
this.mj_1 = 1;
|
|
5655
5629
|
var tmp0_safe_receiver = get_clientStateOrNull_0(this.k54_1);
|
|
5656
5630
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k4v_1;
|
|
5657
|
-
suspendResult = this.j54_1.d10(tmp1_safe_receiver == null ? null : toVM(tmp1_safe_receiver, this.k54_1.
|
|
5631
|
+
suspendResult = this.j54_1.d10(tmp1_safe_receiver == null ? null : toVM(tmp1_safe_receiver, this.k54_1.h2x().c3u_1), this);
|
|
5658
5632
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5659
5633
|
return suspendResult;
|
|
5660
5634
|
}
|
|
@@ -5749,10 +5723,10 @@
|
|
|
5749
5723
|
case 0:
|
|
5750
5724
|
this.nj_1 = 2;
|
|
5751
5725
|
this.mj_1 = 1;
|
|
5752
|
-
this.h55_1 = (get_isPreviewScene(this.g55_1.
|
|
5726
|
+
this.h55_1 = (get_isPreviewScene(this.g55_1.h2x().d3u_1.w3x_1) ? true : get_isChoosePartnerScene(this.g55_1.h2x().d3u_1.w3x_1)) ? null : this.f55_1.j4y_1.p44(this.g55_1.h2x().c3u_1, this.g55_1.h2x().b3u_1);
|
|
5753
5727
|
var tmp0_safe_receiver = get_clientStateOrNull_0(this.g55_1);
|
|
5754
5728
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l4v_1;
|
|
5755
|
-
suspendResult = this.e55_1.d10(tmp1_safe_receiver == null ? null : toVM_0(tmp1_safe_receiver, this.g55_1.
|
|
5729
|
+
suspendResult = this.e55_1.d10(tmp1_safe_receiver == null ? null : toVM_0(tmp1_safe_receiver, this.g55_1.h2x().b3u_1, this.g55_1.h2x().c3u_1, this.h55_1), this);
|
|
5756
5730
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5757
5731
|
return suspendResult;
|
|
5758
5732
|
}
|
|
@@ -7001,6 +6975,12 @@
|
|
|
7001
6975
|
BaseGameMechanic.prototype.x5d = function () {
|
|
7002
6976
|
return this.h4y_1.x5d();
|
|
7003
6977
|
};
|
|
6978
|
+
BaseGameMechanic.prototype.g2x = function () {
|
|
6979
|
+
return this.f4y_1.am().h2x().y3t_1;
|
|
6980
|
+
};
|
|
6981
|
+
BaseGameMechanic.prototype.h2x = function () {
|
|
6982
|
+
return this.f4y_1.am().h2x();
|
|
6983
|
+
};
|
|
7004
6984
|
BaseGameMechanic.prototype.onCreate = function () {
|
|
7005
6985
|
this.f4y_1.x4n(new InitClientStateAction(this.g4y_1));
|
|
7006
6986
|
};
|
|
@@ -7009,7 +6989,7 @@
|
|
|
7009
6989
|
this.f4y_1.ad();
|
|
7010
6990
|
};
|
|
7011
6991
|
BaseGameMechanic.prototype.getConfig = function () {
|
|
7012
|
-
return this.f4y_1.am().
|
|
6992
|
+
return this.f4y_1.am().h2x().b3u_1;
|
|
7013
6993
|
};
|
|
7014
6994
|
BaseGameMechanic.prototype.getClientConfig = function () {
|
|
7015
6995
|
return get_clientState_0(this.f4y_1.am()).a4v_1;
|
|
@@ -7239,7 +7219,7 @@
|
|
|
7239
7219
|
};
|
|
7240
7220
|
BaseGameMechanic.prototype.playerExit = function () {
|
|
7241
7221
|
if (get_isCreated(this.f4y_1.am())) {
|
|
7242
|
-
this.f4y_1.x4n(new ExitFromClientAction(get_currentPlayer(this.f4y_1.am().
|
|
7222
|
+
this.f4y_1.x4n(new ExitFromClientAction(get_currentPlayer(this.f4y_1.am().h2x()).x2k()));
|
|
7243
7223
|
}
|
|
7244
7224
|
};
|
|
7245
7225
|
BaseGameMechanic.prototype.observeRestartGameExpectant = function () {
|
|
@@ -7279,9 +7259,21 @@
|
|
|
7279
7259
|
return distinctUntilChanged(tmp$ret$9);
|
|
7280
7260
|
};
|
|
7281
7261
|
BaseGameMechanic.$metadata$ = classMeta('BaseGameMechanic', [GameMechanic, PlayersSceneContract]);
|
|
7262
|
+
Object.defineProperty(BaseGameMechanic.prototype, 'id', {
|
|
7263
|
+
configurable: true,
|
|
7264
|
+
get: function () {
|
|
7265
|
+
return this.g2x();
|
|
7266
|
+
}
|
|
7267
|
+
});
|
|
7268
|
+
Object.defineProperty(BaseGameMechanic.prototype, 'table', {
|
|
7269
|
+
configurable: true,
|
|
7270
|
+
get: function () {
|
|
7271
|
+
return this.h2x();
|
|
7272
|
+
}
|
|
7273
|
+
});
|
|
7282
7274
|
function GameMechanic() {
|
|
7283
7275
|
}
|
|
7284
|
-
GameMechanic.$metadata$ = interfaceMeta('GameMechanic', [PlayersSceneContract]);
|
|
7276
|
+
GameMechanic.$metadata$ = interfaceMeta('GameMechanic', [PlayersSceneContract, GameStoreContract]);
|
|
7285
7277
|
function MultiplayerEventsProvider() {
|
|
7286
7278
|
}
|
|
7287
7279
|
MultiplayerEventsProvider.$metadata$ = interfaceMeta('MultiplayerEventsProvider');
|
|
@@ -8048,8 +8040,8 @@
|
|
|
8048
8040
|
case 0:
|
|
8049
8041
|
this.nj_1 = 2;
|
|
8050
8042
|
this.mj_1 = 1;
|
|
8051
|
-
this.b5k_1 = getPlayer(this.a5k_1.
|
|
8052
|
-
suspendResult = this.y5j_1.d10(toPlayerVM(this.b5k_1, get_currentPlayer(this.a5k_1).x2k(), this.a5k_1.
|
|
8043
|
+
this.b5k_1 = getPlayer(this.a5k_1.c3u_1, this.z5j_1);
|
|
8044
|
+
suspendResult = this.y5j_1.d10(toPlayerVM(this.b5k_1, get_currentPlayer(this.a5k_1).x2k(), this.a5k_1.h3u_1.v3u_1), this);
|
|
8053
8045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8054
8046
|
return suspendResult;
|
|
8055
8047
|
}
|
|
@@ -8144,7 +8136,7 @@
|
|
|
8144
8136
|
this.nj_1 = 2;
|
|
8145
8137
|
this.mj_1 = 1;
|
|
8146
8138
|
var tmp_0 = this;
|
|
8147
|
-
tmp_0.y5k_1 = this.x5k_1.
|
|
8139
|
+
tmp_0.y5k_1 = this.x5k_1.c3u_1;
|
|
8148
8140
|
var tmp_1 = this;
|
|
8149
8141
|
tmp_1.z5k_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this.y5k_1, 10));
|
|
8150
8142
|
var tmp0_iterator = this.y5k_1.f();
|
|
@@ -8248,7 +8240,7 @@
|
|
|
8248
8240
|
case 0:
|
|
8249
8241
|
this.nj_1 = 2;
|
|
8250
8242
|
this.mj_1 = 1;
|
|
8251
|
-
this.w5l_1 = getPlayer(this.v5l_1.
|
|
8243
|
+
this.w5l_1 = getPlayer(this.v5l_1.c3u_1, this.u5l_1);
|
|
8252
8244
|
suspendResult = this.t5l_1.d10(toStateVM(this.w5l_1), this);
|
|
8253
8245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8254
8246
|
return suspendResult;
|
|
@@ -8345,7 +8337,7 @@
|
|
|
8345
8337
|
case 0:
|
|
8346
8338
|
this.nj_1 = 2;
|
|
8347
8339
|
this.mj_1 = 1;
|
|
8348
|
-
this.v5m_1 = getPlayer(this.u5m_1.
|
|
8340
|
+
this.v5m_1 = getPlayer(this.u5m_1.h2x().c3u_1, this.s5m_1);
|
|
8349
8341
|
var tmp0_safe_receiver = findMessageForPlayer(this.t5m_1, this.v5m_1.x2k(), get_clientState_0(this.u5m_1).b4v_1);
|
|
8350
8342
|
var tmp_0;
|
|
8351
8343
|
if (tmp0_safe_receiver == null) {
|
|
@@ -8449,8 +8441,8 @@
|
|
|
8449
8441
|
case 0:
|
|
8450
8442
|
this.nj_1 = 2;
|
|
8451
8443
|
this.mj_1 = 1;
|
|
8452
|
-
this.u5n_1 = getPlayer(this.t5n_1.
|
|
8453
|
-
suspendResult = this.r5n_1.d10(this.u5n_1.
|
|
8444
|
+
this.u5n_1 = getPlayer(this.t5n_1.c3u_1, this.s5n_1);
|
|
8445
|
+
suspendResult = this.r5n_1.d10(this.u5n_1.o30_1.t2l_1, this);
|
|
8454
8446
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8455
8447
|
return suspendResult;
|
|
8456
8448
|
}
|
|
@@ -8525,7 +8517,7 @@
|
|
|
8525
8517
|
function getPlayersVM(_this__u8e3s4, $this) {
|
|
8526
8518
|
var tmp$ret$2;
|
|
8527
8519
|
// Inline function 'kotlin.collections.map' call
|
|
8528
|
-
var tmp0_map = _this__u8e3s4.
|
|
8520
|
+
var tmp0_map = _this__u8e3s4.c3u_1;
|
|
8529
8521
|
var tmp$ret$1;
|
|
8530
8522
|
// Inline function 'kotlin.collections.mapTo' call
|
|
8531
8523
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -8534,7 +8526,7 @@
|
|
|
8534
8526
|
var item = tmp0_iterator.h();
|
|
8535
8527
|
var tmp$ret$0;
|
|
8536
8528
|
// Inline function 'com.debertz.logic.client.domain.scenes.delegates.PlayersSceneContractImpl.getPlayersVM.<anonymous>' call
|
|
8537
|
-
tmp$ret$0 = toPlayerVM(item, get_currentPlayer(_this__u8e3s4).x2k(), _this__u8e3s4.
|
|
8529
|
+
tmp$ret$0 = toPlayerVM(item, get_currentPlayer(_this__u8e3s4).x2k(), _this__u8e3s4.h3u_1.v3u_1);
|
|
8538
8530
|
tmp0_mapTo.a(tmp$ret$0);
|
|
8539
8531
|
}
|
|
8540
8532
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -8575,7 +8567,7 @@
|
|
|
8575
8567
|
var element_0 = tmp0_iterator_0.h();
|
|
8576
8568
|
var tmp$ret$3;
|
|
8577
8569
|
// Inline function 'com.debertz.logic.client.domain.scenes.delegates.PlayersSceneContractImpl.findMessageForPlayer.<anonymous>' call
|
|
8578
|
-
tmp$ret$3 = element_0.
|
|
8570
|
+
tmp$ret$3 = element_0.f2y();
|
|
8579
8571
|
if (tmp$ret$3) {
|
|
8580
8572
|
tmp0_filterTo_0.a(element_0);
|
|
8581
8573
|
}
|
|
@@ -8602,7 +8594,7 @@
|
|
|
8602
8594
|
var element_1 = iterator.s();
|
|
8603
8595
|
var tmp$ret$9;
|
|
8604
8596
|
// Inline function 'com.debertz.logic.client.domain.scenes.delegates.PlayersSceneContractImpl.findMessageForPlayer.<anonymous>' call
|
|
8605
|
-
tmp$ret$9 = element_1.
|
|
8597
|
+
tmp$ret$9 = element_1.n2y().i2l_1 === playerId;
|
|
8606
8598
|
if (tmp$ret$9) {
|
|
8607
8599
|
tmp$ret$10 = element_1;
|
|
8608
8600
|
break $l$block;
|
|
@@ -8745,7 +8737,7 @@
|
|
|
8745
8737
|
return this.t5o_1;
|
|
8746
8738
|
};
|
|
8747
8739
|
PlayersSceneContractImpl.prototype.r5d = function () {
|
|
8748
|
-
return getPlayersVM(this.t5o_1.am().
|
|
8740
|
+
return getPlayersVM(this.t5o_1.am().h2x(), this);
|
|
8749
8741
|
};
|
|
8750
8742
|
PlayersSceneContractImpl.prototype.x5d = function () {
|
|
8751
8743
|
var tmp$ret$2;
|
|
@@ -9103,7 +9095,7 @@
|
|
|
9103
9095
|
});
|
|
9104
9096
|
function SceneTutorialAction() {
|
|
9105
9097
|
}
|
|
9106
|
-
SceneTutorialAction.prototype.
|
|
9098
|
+
SceneTutorialAction.prototype.h3b = function () {
|
|
9107
9099
|
return this.n5p_1;
|
|
9108
9100
|
};
|
|
9109
9101
|
SceneTutorialAction.$metadata$ = classMeta('SceneTutorialAction', undefined, undefined, undefined, undefined, ClientUIAction.prototype);
|
|
@@ -9184,7 +9176,7 @@
|
|
|
9184
9176
|
UpdateConfigAction.prototype.s5p = function () {
|
|
9185
9177
|
return this.t5p_1;
|
|
9186
9178
|
};
|
|
9187
|
-
UpdateConfigAction.prototype.
|
|
9179
|
+
UpdateConfigAction.prototype.t30 = function () {
|
|
9188
9180
|
return this.u5p_1;
|
|
9189
9181
|
};
|
|
9190
9182
|
UpdateConfigAction.prototype.t3w = function () {
|
|
@@ -9193,7 +9185,7 @@
|
|
|
9193
9185
|
UpdateConfigAction.prototype.s3w = function () {
|
|
9194
9186
|
return this.w5p_1;
|
|
9195
9187
|
};
|
|
9196
|
-
UpdateConfigAction.prototype.
|
|
9188
|
+
UpdateConfigAction.prototype.q3u = function () {
|
|
9197
9189
|
return this.x5p_1;
|
|
9198
9190
|
};
|
|
9199
9191
|
UpdateConfigAction.prototype.toString = function () {
|
|
@@ -9373,7 +9365,7 @@
|
|
|
9373
9365
|
this.g5q_1 = acceptedCombinations;
|
|
9374
9366
|
this.h5q_1 = declinedCombinations;
|
|
9375
9367
|
}
|
|
9376
|
-
CombinationToAnnounceAction.prototype.
|
|
9368
|
+
CombinationToAnnounceAction.prototype.g33 = function () {
|
|
9377
9369
|
return this.f5q_1;
|
|
9378
9370
|
};
|
|
9379
9371
|
CombinationToAnnounceAction.prototype.b5q = function () {
|
|
@@ -9707,7 +9699,7 @@
|
|
|
9707
9699
|
return plus(listOfNotNull([_get_clientReduxConfig__v0cgfa_0(this).v4r_1 ? expectantLifecycleReducer() : null, _get_clientReduxConfig__v0cgfa_0(this).v4r_1 ? expectantActionReducer() : null, bufferReducer(), messageReducer(), _get_clientReduxConfig__v0cgfa_0(this).t4r_1 ? sceneActivationReducer() : null, clientResetMessagesAfterSelectedTrumpReducer(_get_logger__rkp4sl(this)), clientResetMessagesAfterBribeReducer(_get_logger__rkp4sl(this)), clientUIReducer(this.q5q_1, _get_clientLifecycleReducer__6ihp6m(this), _get_logger__rkp4sl(this)), clientResetProcessingCardReducer(), clientSceneReducer(_get_logger__rkp4sl(this), _get_clientLifecycleReducer__6ihp6m(this)), clientCombinationToAnnounceStateOnPlayerTurnReducer(_get_clientCombinationsReducer__u5899o(this))]), this.r5q_1.b4a());
|
|
9708
9700
|
};
|
|
9709
9701
|
ClientGameStoreContract.prototype.c4a = function () {
|
|
9710
|
-
return plus(listOfNotNull([checkValidCurrentPlayerIdMiddleware(this.q5q_1, _get_logger__rkp4sl(this)), checkExpectantsMiddleware(_get_logger__rkp4sl(this)), _get_clientReduxConfig__v0cgfa_0(this).u4r_1 ? validateCardOnMoveMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl(this)) : null, clientShowDisabledCardMessageMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl(this)), clientCheckCombinationsMiddleware(_get_asyncProvider__jbpyhw(this), _get_combinationCheckerProvider__vrxymk(this)), finishingGameWhenPlayerLeftMiddleware(this.q5q_1), startResetTimerForInfoMessageMiddleware(), clearTimersWhenErrorMiddleware(), resetInfoMessageWhenShownMiddleware(), messagesMiddleware(_get_messageFactory__6vg0vc(this), _get_pointsInteractor__5t71wv(this)), _get_botConfig__cpaxzc(this).
|
|
9702
|
+
return plus(listOfNotNull([checkValidCurrentPlayerIdMiddleware(this.q5q_1, _get_logger__rkp4sl(this)), checkExpectantsMiddleware(_get_logger__rkp4sl(this)), _get_clientReduxConfig__v0cgfa_0(this).u4r_1 ? validateCardOnMoveMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl(this)) : null, clientShowDisabledCardMessageMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl(this)), clientCheckCombinationsMiddleware(_get_asyncProvider__jbpyhw(this), _get_combinationCheckerProvider__vrxymk(this)), finishingGameWhenPlayerLeftMiddleware(this.q5q_1), startResetTimerForInfoMessageMiddleware(), clearTimersWhenErrorMiddleware(), resetInfoMessageWhenShownMiddleware(), messagesMiddleware(_get_messageFactory__6vg0vc(this), _get_pointsInteractor__5t71wv(this)), _get_botConfig__cpaxzc(this).j2x_1 ? clientPutCurrentPlayerLastCardMiddleware(this.q5q_1, _get_asyncProvider__jbpyhw(this), _get_lastCardInteractor__h6lq3w(this)) : null]), this.r5q_1.c4a());
|
|
9711
9703
|
};
|
|
9712
9704
|
ClientGameStoreContract.$metadata$ = classMeta('ClientGameStoreContract', [StoreContract]);
|
|
9713
9705
|
function messageFactory$factory() {
|
|
@@ -9959,14 +9951,14 @@
|
|
|
9959
9951
|
OnlineGameStoreContract.prototype.b4a = function () {
|
|
9960
9952
|
var tmp = plus(this.e5r_1.b4a(), listOfNotNull_0(clientErrorStateWhenFinishingGameReducer(_get_clientLifecycleReducer__6ihp6m_0(this))));
|
|
9961
9953
|
var tmp_0;
|
|
9962
|
-
if (_get_developerConfig__pjcmw5(this).
|
|
9954
|
+
if (_get_developerConfig__pjcmw5(this).s2x_1) {
|
|
9963
9955
|
tmp_0 = this.f5r_1.b4a();
|
|
9964
9956
|
} else {
|
|
9965
9957
|
tmp_0 = emptyList();
|
|
9966
9958
|
}
|
|
9967
9959
|
var tmp_1 = plus(tmp, tmp_0);
|
|
9968
9960
|
var tmp_2;
|
|
9969
|
-
if (_get_logicConfig__52ww9d(this).
|
|
9961
|
+
if (_get_logicConfig__52ww9d(this).w2x_1) {
|
|
9970
9962
|
tmp_2 = listOf([setPlayerTurnReducer(_get_logger__rkp4sl_0(this), _get_playerTurnInteractor__lczh1o(this), _get_playerTurnMechanicReducer__y10a87(this)), clientResetPlayerTurnAfterExpectantCreatedReducer(_get_logger__rkp4sl_0(this), _get_playerTurnInteractor__lczh1o(this), _get_playerTurnMechanicReducer__y10a87(this)), clientResetPlayerTurnAfterAnswerReducer(_get_logger__rkp4sl_0(this), _get_playerTurnInteractor__lczh1o(this), _get_playerTurnMechanicReducer__y10a87(this))]);
|
|
9971
9963
|
} else {
|
|
9972
9964
|
tmp_2 = emptyList();
|
|
@@ -9976,14 +9968,14 @@
|
|
|
9976
9968
|
OnlineGameStoreContract.prototype.c4a = function () {
|
|
9977
9969
|
var tmp = this.e5r_1.c4a();
|
|
9978
9970
|
var tmp_0;
|
|
9979
|
-
if (_get_developerConfig__pjcmw5(this).
|
|
9971
|
+
if (_get_developerConfig__pjcmw5(this).s2x_1) {
|
|
9980
9972
|
var tmp_1 = this.f5r_1.c4a();
|
|
9981
9973
|
var tmp_2 = playerTurnTimeoutMiddleware();
|
|
9982
9974
|
tmp_0 = plus(tmp_1, listOf([tmp_2, reloadTimersWhenContinueGameMiddleware$default(false, null, OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3(this), 2, null)]));
|
|
9983
9975
|
} else {
|
|
9984
9976
|
tmp_0 = emptyList();
|
|
9985
9977
|
}
|
|
9986
|
-
return plus(plus(tmp, tmp_0), listOfNotNull([announceCombinationMiddleware(), clientSceneLifecycleMiddleware(), _get_logicConfig__52ww9d(this).
|
|
9978
|
+
return plus(plus(tmp, tmp_0), listOfNotNull([announceCombinationMiddleware(), clientSceneLifecycleMiddleware(), _get_logicConfig__52ww9d(this).v2x_1 ? clientConsumeFromClientActionsMiddleware(_get_gameLogicInteractor__895s7o(this)) : null]));
|
|
9987
9979
|
};
|
|
9988
9980
|
OnlineGameStoreContract.$metadata$ = classMeta('OnlineGameStoreContract', [StoreContract]);
|
|
9989
9981
|
function gameLogicInteractor$factory() {
|
|
@@ -10078,7 +10070,7 @@
|
|
|
10078
10070
|
tmp$ret$0_0 = Unit_getInstance();
|
|
10079
10071
|
tmp$ret$1 = tmp_0.c2g(tmp$ret$0, null);
|
|
10080
10072
|
tmp$ret$1_0 = Unit_getInstance();
|
|
10081
|
-
if (tmp$ret$1.
|
|
10073
|
+
if (tmp$ret$1.s2x_1) {
|
|
10082
10074
|
tmp = null;
|
|
10083
10075
|
} else {
|
|
10084
10076
|
tmp = listOf_0(currentPlayerId);
|
|
@@ -10135,7 +10127,7 @@
|
|
|
10135
10127
|
}
|
|
10136
10128
|
function SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this$0) {
|
|
10137
10129
|
return function (it) {
|
|
10138
|
-
return !(it === this$0.n5r_1) ? true : _get_developerConfig__pjcmw5_0(this$0).
|
|
10130
|
+
return !(it === this$0.n5r_1) ? true : _get_developerConfig__pjcmw5_0(this$0).s2x_1;
|
|
10139
10131
|
};
|
|
10140
10132
|
}
|
|
10141
10133
|
function SingleGameStoreContract(di, currentPlayerId, clientGameStoreContract, gameMechanicStoreContract, botGameStoreContract) {
|
|
@@ -10205,9 +10197,9 @@
|
|
|
10205
10197
|
var tmp = plus(plus(this.o5r_1.c4a(), this.q5r_1.c4a()), this.p5r_1.c4a());
|
|
10206
10198
|
var tmp_0 = announceCombinationMiddleware();
|
|
10207
10199
|
var tmp_1 = playerTurnTimeoutMiddleware();
|
|
10208
|
-
var tmp_2 = _get_botConfig__cpaxzc_0(this).
|
|
10209
|
-
var tmp_3 = _get_botConfig__cpaxzc_0(this).
|
|
10210
|
-
return plus(tmp, listOfNotNull([tmp_0, tmp_1, reloadTimersWhenContinueGameMiddleware(tmp_2, tmp_3, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_0(this), this.n5r_1, _get_clientStatisticsInteractor__s4ngf8(this)), exitAndSaveGameMiddleware(this.n5r_1, _get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), saveGameWhenAppOnBackgroundMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameWhenErrorMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), _get_botConfig__cpaxzc_0(this).
|
|
10200
|
+
var tmp_2 = _get_botConfig__cpaxzc_0(this).l2x_1;
|
|
10201
|
+
var tmp_3 = _get_botConfig__cpaxzc_0(this).k2x_1 ? Default_getInstance() : null;
|
|
10202
|
+
return plus(tmp, listOfNotNull([tmp_0, tmp_1, reloadTimersWhenContinueGameMiddleware(tmp_2, tmp_3, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_0(this), this.n5r_1, _get_clientStatisticsInteractor__s4ngf8(this)), exitAndSaveGameMiddleware(this.n5r_1, _get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), saveGameWhenAppOnBackgroundMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameWhenErrorMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), _get_botConfig__cpaxzc_0(this).j2x_1 ? putPlayerLastCardMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_lastCardInteractor__h6lq3w_0(this)) : null]));
|
|
10211
10203
|
};
|
|
10212
10204
|
SingleGameStoreContract.$metadata$ = classMeta('SingleGameStoreContract', [StoreContract]);
|
|
10213
10205
|
function clientStatisticsInteractor$factory() {
|
|
@@ -10428,10 +10420,10 @@
|
|
|
10428
10420
|
_no_name_provided__qut3iv_34.prototype.t4b = function (store, next, action) {
|
|
10429
10421
|
// Inline function 'com.debertz.logic.client.redux.middlewares.clientCheckCombinationsMiddleware.<anonymous>' call
|
|
10430
10422
|
var tmp0__anonymous__q1qw7t = action instanceof CardPutAction ? action : THROW_CCE();
|
|
10431
|
-
var table = store.state.
|
|
10423
|
+
var table = store.state.h2x();
|
|
10432
10424
|
var player = get_currentPlayer(table);
|
|
10433
10425
|
next(tmp0__anonymous__q1qw7t);
|
|
10434
|
-
var playerCombinations = player.
|
|
10426
|
+
var playerCombinations = player.s30_1.d33_1;
|
|
10435
10427
|
var tmp$ret$2;
|
|
10436
10428
|
// Inline function 'kotlin.collections.map' call
|
|
10437
10429
|
var tmp0_map = this.x5r_1.p42(playerCombinations);
|
|
@@ -10464,7 +10456,7 @@
|
|
|
10464
10456
|
var tmp;
|
|
10465
10457
|
var tmp_0;
|
|
10466
10458
|
var tmp_1;
|
|
10467
|
-
if (table.
|
|
10459
|
+
if (table.h3u_1.v3u_1.h3k_1 === 0) {
|
|
10468
10460
|
var tmp$ret$5;
|
|
10469
10461
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
10470
10462
|
tmp$ret$5 = !findFirstRoundCombinations.k();
|
|
@@ -10716,7 +10708,7 @@
|
|
|
10716
10708
|
if (!(card == null)) {
|
|
10717
10709
|
store.dispatch(new CardPutAction(card, acceptedCombinations, declinedCombinations));
|
|
10718
10710
|
} else {
|
|
10719
|
-
store.dispatch(new CombinationChoiceFromClientAction(get_currentPlayer(store.state.
|
|
10711
|
+
store.dispatch(new CombinationChoiceFromClientAction(get_currentPlayer(store.state.h2x()).x2k(), tmp0__anonymous__q1qw7t.i5q_1));
|
|
10720
10712
|
}
|
|
10721
10713
|
};
|
|
10722
10714
|
_no_name_provided__qut3iv_35.prototype.g2r = function (store, next, action) {
|
|
@@ -10737,7 +10729,7 @@
|
|
|
10737
10729
|
_no_name_provided__qut3iv_36.prototype.t4b = function (store, next, action) {
|
|
10738
10730
|
// Inline function 'com.debertz.logic.client.redux.middlewares.clientSceneLifecycleMiddleware.<anonymous>' call
|
|
10739
10731
|
var tmp0__anonymous__q1qw7t = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
10740
|
-
store.dispatch(new SceneEndedMechanicAction(store.state.
|
|
10732
|
+
store.dispatch(new SceneEndedMechanicAction(store.state.h2x().d3u_1.w3x_1));
|
|
10741
10733
|
store.dispatch(new SceneStartedMechanicAction(tmp0__anonymous__q1qw7t.z44_1));
|
|
10742
10734
|
next(tmp0__anonymous__q1qw7t);
|
|
10743
10735
|
};
|
|
@@ -10823,9 +10815,9 @@
|
|
|
10823
10815
|
this.nj_1 = 1;
|
|
10824
10816
|
var nextTurnPlayerId = singleOrNull(this.u5s_1.h48());
|
|
10825
10817
|
if (!(nextTurnPlayerId == null) ? this.v5s_1 === nextTurnPlayerId : false) {
|
|
10826
|
-
var nextTurnPlayer = getPlayer(this.w5s_1.
|
|
10818
|
+
var nextTurnPlayer = getPlayer(this.w5s_1.c3u_1, nextTurnPlayerId);
|
|
10827
10819
|
if (this.x5s_1.o42(nextTurnPlayer)) {
|
|
10828
|
-
var gameCard = single(nextTurnPlayer.
|
|
10820
|
+
var gameCard = single(nextTurnPlayer.q30_1);
|
|
10829
10821
|
var tmp_0 = new ProcessingCard(gameCard, null);
|
|
10830
10822
|
var newAction = CardPutAction_init_$Create$(tmp_0, null, null, 6, null);
|
|
10831
10823
|
this.y5s_1.l2q(null, clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda_0(this.z5s_1, newAction, null), 1, null);
|
|
@@ -10865,7 +10857,7 @@
|
|
|
10865
10857
|
_no_name_provided__qut3iv_37.prototype.t4b = function (store, next, action) {
|
|
10866
10858
|
// Inline function 'com.debertz.logic.client.redux.middlewares.lastbribe.clientPutCurrentPlayerLastCardMiddleware.<anonymous>' call
|
|
10867
10859
|
var tmp0__anonymous__q1qw7t = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
10868
|
-
var table = store.state.
|
|
10860
|
+
var table = store.state.h2x();
|
|
10869
10861
|
next(tmp0__anonymous__q1qw7t);
|
|
10870
10862
|
this.b5t_1.n2q(null, clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda_0(tmp0__anonymous__q1qw7t, this.c5t_1, table, this.d5t_1, this.b5t_1, store, null), 1, null);
|
|
10871
10863
|
};
|
|
@@ -10888,7 +10880,7 @@
|
|
|
10888
10880
|
if (tmp1_subject === 'PREVIEW') {
|
|
10889
10881
|
var tmp$ret$1;
|
|
10890
10882
|
// Inline function 'kotlin.with' call
|
|
10891
|
-
var tmp0_with = state.
|
|
10883
|
+
var tmp0_with = state.h2x();
|
|
10892
10884
|
// Inline function 'kotlin.contracts.contract' call
|
|
10893
10885
|
var tmp$ret$0;
|
|
10894
10886
|
$l$block: {
|
|
@@ -10901,13 +10893,13 @@
|
|
|
10901
10893
|
throw new MechanicException('Required ' + getKClass(PreviewSceneData).of() + ', current scene is ' + tmp0_requireSceneData);
|
|
10902
10894
|
}
|
|
10903
10895
|
var scene = tmp$ret$0;
|
|
10904
|
-
var player = getPlayer(tmp0_with.
|
|
10905
|
-
tmp$ret$1 = store.dispatch(new MessageMechanicAction($factory.x41(player.
|
|
10896
|
+
var player = getPlayer(tmp0_with.c3u_1, scene.z3b_1);
|
|
10897
|
+
tmp$ret$1 = store.dispatch(new MessageMechanicAction($factory.x41(player.n30_1)));
|
|
10906
10898
|
tmp_0 = tmp$ret$1;
|
|
10907
10899
|
} else {
|
|
10908
10900
|
Companion_getInstance_0();
|
|
10909
10901
|
if (tmp1_subject === 'CALC_POINTS') {
|
|
10910
|
-
tmp_0 = store.dispatch(new MessageMechanicAction($factory.b42(state.
|
|
10902
|
+
tmp_0 = store.dispatch(new MessageMechanicAction($factory.b42(state.h2x().h3u_1.v3u_1, $pointsInteractor.p44(state.h2x().c3u_1, state.h2x().b3u_1))));
|
|
10911
10903
|
}
|
|
10912
10904
|
}
|
|
10913
10905
|
tmp = tmp_0;
|
|
@@ -10915,16 +10907,16 @@
|
|
|
10915
10907
|
if (tmp0_subject instanceof SuitChoiceMechanicAction) {
|
|
10916
10908
|
var tmp$ret$2;
|
|
10917
10909
|
// Inline function 'kotlin.with' call
|
|
10918
|
-
var tmp1_with = state.
|
|
10910
|
+
var tmp1_with = state.h2x();
|
|
10919
10911
|
// Inline function 'kotlin.contracts.contract' call
|
|
10920
|
-
var player_0 = getPlayer(tmp1_with.
|
|
10921
|
-
tmp$ret$2 = store.dispatch(new MessageMechanicAction($factory.a42(player_0.
|
|
10912
|
+
var player_0 = getPlayer(tmp1_with.c3u_1, action.g45_1);
|
|
10913
|
+
tmp$ret$2 = store.dispatch(new MessageMechanicAction($factory.a42(player_0.p30_1.y32(), !(action.i45_1 == null), player_0.n30_1)));
|
|
10922
10914
|
tmp = tmp$ret$2;
|
|
10923
10915
|
} else {
|
|
10924
10916
|
if (tmp0_subject instanceof ExpectantCreatedClientAction) {
|
|
10925
10917
|
var tmp$ret$7;
|
|
10926
10918
|
// Inline function 'kotlin.with' call
|
|
10927
|
-
var tmp2_with = state.
|
|
10919
|
+
var tmp2_with = state.h2x();
|
|
10928
10920
|
// Inline function 'kotlin.contracts.contract' call
|
|
10929
10921
|
var expectantAction = action.m5q_1.e4u_1;
|
|
10930
10922
|
var tmp_1;
|
|
@@ -10934,7 +10926,7 @@
|
|
|
10934
10926
|
var tmp$ret$3;
|
|
10935
10927
|
$l$block_0: {
|
|
10936
10928
|
// Inline function 'com.debertz.logic.data.models.scenes.requireActData' call
|
|
10937
|
-
var tmp0_requireActData = tmp2_with.
|
|
10929
|
+
var tmp0_requireActData = tmp2_with.d3u_1.a3y_1;
|
|
10938
10930
|
if (tmp0_requireActData instanceof CombinationActData) {
|
|
10939
10931
|
tmp$ret$3 = tmp0_requireActData;
|
|
10940
10932
|
break $l$block_0;
|
|
@@ -10942,11 +10934,11 @@
|
|
|
10942
10934
|
throw new MechanicException('Required ' + getKClass(CombinationActData).of() + ', current act is ' + tmp0_requireActData);
|
|
10943
10935
|
}
|
|
10944
10936
|
var combinationActData = tmp$ret$3;
|
|
10945
|
-
var player_1 = getPlayer(tmp2_with.
|
|
10937
|
+
var player_1 = getPlayer(tmp2_with.c3u_1, expectantAction.y48_1);
|
|
10946
10938
|
var tmp_3 = store.dispatch;
|
|
10947
10939
|
var tmp$ret$6;
|
|
10948
10940
|
// Inline function 'kotlin.collections.map' call
|
|
10949
|
-
var tmp1_map = combinationActData.
|
|
10941
|
+
var tmp1_map = combinationActData.o3a_1;
|
|
10950
10942
|
var tmp$ret$5;
|
|
10951
10943
|
// Inline function 'kotlin.collections.mapTo' call
|
|
10952
10944
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -10955,12 +10947,12 @@
|
|
|
10955
10947
|
var item = tmp0_iterator.h();
|
|
10956
10948
|
var tmp$ret$4;
|
|
10957
10949
|
// Inline function 'com.debertz.logic.client.redux.middlewares.messages.messagesMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
10958
|
-
tmp$ret$4 = item.
|
|
10950
|
+
tmp$ret$4 = item.s3a_1;
|
|
10959
10951
|
tmp0_mapTo.a(tmp$ret$4);
|
|
10960
10952
|
}
|
|
10961
10953
|
tmp$ret$5 = tmp0_mapTo;
|
|
10962
10954
|
tmp$ret$6 = tmp$ret$5;
|
|
10963
|
-
tmp_2 = tmp_3(new MessageMechanicAction($factory.y41(tmp$ret$6, player_1.
|
|
10955
|
+
tmp_2 = tmp_3(new MessageMechanicAction($factory.y41(tmp$ret$6, player_1.n30_1)));
|
|
10964
10956
|
}
|
|
10965
10957
|
tmp_1 = tmp_2;
|
|
10966
10958
|
} else {
|
|
@@ -10970,7 +10962,7 @@
|
|
|
10970
10962
|
tmp_1 = tmp_4(new InfoMessageAction($factory.d42('GAME_RESTART_EVENT_ID')));
|
|
10971
10963
|
} else {
|
|
10972
10964
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
10973
|
-
var message = $factory.z41(expectantAction.c49_1, tmp2_with.
|
|
10965
|
+
var message = $factory.z41(expectantAction.c49_1, tmp2_with.c3u_1);
|
|
10974
10966
|
tmp_1 = store.dispatch(new InfoMessageAction(message));
|
|
10975
10967
|
}
|
|
10976
10968
|
}
|
|
@@ -10981,7 +10973,7 @@
|
|
|
10981
10973
|
if (tmp0_subject instanceof PutCardMechanicAction) {
|
|
10982
10974
|
var tmp$ret$13;
|
|
10983
10975
|
// Inline function 'kotlin.with' call
|
|
10984
|
-
var tmp3_with = state.
|
|
10976
|
+
var tmp3_with = state.h2x();
|
|
10985
10977
|
// Inline function 'kotlin.contracts.contract' call
|
|
10986
10978
|
var tmp$ret$12;
|
|
10987
10979
|
// Inline function 'com.debertz.logic.client.redux.middlewares.messages.messagesMiddleware.<anonymous>.<anonymous>' call
|
|
@@ -10993,7 +10985,7 @@
|
|
|
10993
10985
|
var tmp$ret$11;
|
|
10994
10986
|
// Inline function 'kotlin.let' call
|
|
10995
10987
|
// Inline function 'kotlin.contracts.contract' call
|
|
10996
|
-
var player_2 = getPlayer(tmp3_with.
|
|
10988
|
+
var player_2 = getPlayer(tmp3_with.c3u_1, action.k45_1);
|
|
10997
10989
|
var tmp_6 = store.dispatch;
|
|
10998
10990
|
var tmp$ret$10;
|
|
10999
10991
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -11005,12 +10997,12 @@
|
|
|
11005
10997
|
var item_0 = tmp0_iterator_0.h();
|
|
11006
10998
|
var tmp$ret$8;
|
|
11007
10999
|
// Inline function 'com.debertz.logic.client.redux.middlewares.messages.messagesMiddleware.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
11008
|
-
tmp$ret$8 = item_0.
|
|
11000
|
+
tmp$ret$8 = item_0.s3a_1;
|
|
11009
11001
|
tmp0_mapTo_0.a(tmp$ret$8);
|
|
11010
11002
|
}
|
|
11011
11003
|
tmp$ret$9 = tmp0_mapTo_0;
|
|
11012
11004
|
tmp$ret$10 = tmp$ret$9;
|
|
11013
|
-
tmp$ret$11 = tmp_6(new MessageMechanicAction($factory.y41(tmp$ret$10, player_2.
|
|
11005
|
+
tmp$ret$11 = tmp_6(new MessageMechanicAction($factory.y41(tmp$ret$10, player_2.n30_1)));
|
|
11014
11006
|
tmp_5 = Unit_getInstance();
|
|
11015
11007
|
}
|
|
11016
11008
|
tmp$ret$12 = tmp_5;
|
|
@@ -11020,9 +11012,9 @@
|
|
|
11020
11012
|
if (tmp0_subject instanceof WinnerCombinationsMechanicAction) {
|
|
11021
11013
|
var tmp$ret$14;
|
|
11022
11014
|
// Inline function 'kotlin.with' call
|
|
11023
|
-
var tmp4_with = state.
|
|
11015
|
+
var tmp4_with = state.h2x();
|
|
11024
11016
|
// Inline function 'kotlin.contracts.contract' call
|
|
11025
|
-
var message_0 = $factory.z41(action.c49_1, tmp4_with.
|
|
11017
|
+
var message_0 = $factory.z41(action.c49_1, tmp4_with.c3u_1);
|
|
11026
11018
|
tmp$ret$14 = store.dispatch(new MessageMechanicAction(message_0));
|
|
11027
11019
|
tmp = tmp$ret$14;
|
|
11028
11020
|
} else {
|
|
@@ -11136,27 +11128,27 @@
|
|
|
11136
11128
|
// Inline function 'com.debertz.logic.client.redux.middlewares.online.clientConsumeFromClientActionsMiddleware.<anonymous>' call
|
|
11137
11129
|
var tmp0__anonymous__q1qw7t = action instanceof FromClientAction ? action : THROW_CCE();
|
|
11138
11130
|
var state = store.state;
|
|
11139
|
-
var table = state.
|
|
11131
|
+
var table = state.h2x();
|
|
11140
11132
|
var tmp0_subject = tmp0__anonymous__q1qw7t;
|
|
11141
11133
|
var tmp;
|
|
11142
11134
|
if (tmp0_subject instanceof MessageFromClientAction) {
|
|
11143
|
-
tmp = listOf_0(this.f5t_1.z43(tmp0__anonymous__q1qw7t, table.
|
|
11135
|
+
tmp = listOf_0(this.f5t_1.z43(tmp0__anonymous__q1qw7t, table.c3u_1));
|
|
11144
11136
|
} else {
|
|
11145
11137
|
if (tmp0_subject instanceof PartnerSelectedFromClientAction) {
|
|
11146
|
-
tmp = listOf_0(this.f5t_1.a44(tmp0__anonymous__q1qw7t, state.
|
|
11138
|
+
tmp = listOf_0(this.f5t_1.a44(tmp0__anonymous__q1qw7t, state.h2x().c3u_1));
|
|
11147
11139
|
} else {
|
|
11148
11140
|
if (tmp0_subject instanceof PlayerReadyFromClientAction) {
|
|
11149
11141
|
tmp = listOf_0(this.f5t_1.b44(tmp0__anonymous__q1qw7t));
|
|
11150
11142
|
} else {
|
|
11151
11143
|
if (tmp0_subject instanceof SuitChoiceFromClientAction) {
|
|
11152
|
-
tmp = listOf_0(this.f5t_1.c44(tmp0__anonymous__q1qw7t, table.
|
|
11144
|
+
tmp = listOf_0(this.f5t_1.c44(tmp0__anonymous__q1qw7t, table.c3u_1, table.b3u_1));
|
|
11153
11145
|
} else {
|
|
11154
11146
|
if (tmp0_subject instanceof CombinationChoiceFromClientAction) {
|
|
11155
|
-
tmp = listOf_0(this.f5t_1.d44(tmp0__anonymous__q1qw7t, state.
|
|
11147
|
+
tmp = listOf_0(this.f5t_1.d44(tmp0__anonymous__q1qw7t, state.h2x()));
|
|
11156
11148
|
} else {
|
|
11157
11149
|
if (tmp0_subject instanceof CardFromClientAction) {
|
|
11158
|
-
var newCardsOnTheTable = plus_0(table.
|
|
11159
|
-
var cardMechanicAction = this.f5t_1.e44(tmp0__anonymous__q1qw7t, newCardsOnTheTable, table.
|
|
11150
|
+
var newCardsOnTheTable = plus_0(table.e3u_1, new CardOnTheTable(tmp0__anonymous__q1qw7t.playerId, table.e3u_1.i(), tmp0__anonymous__q1qw7t.r3i_1));
|
|
11151
|
+
var cardMechanicAction = this.f5t_1.e44(tmp0__anonymous__q1qw7t, newCardsOnTheTable, table.c3u_1, table.b3u_1);
|
|
11160
11152
|
tmp = listOf_0(cardMechanicAction);
|
|
11161
11153
|
} else {
|
|
11162
11154
|
tmp = emptyList();
|
|
@@ -11344,7 +11336,7 @@
|
|
|
11344
11336
|
this.r5u_1 = this.m5u_1.state;
|
|
11345
11337
|
if (this.r5u_1.o3v()) {
|
|
11346
11338
|
this.mj_1 = 1;
|
|
11347
|
-
suspendResult = this.n5u_1.s4v(this.r5u_1.
|
|
11339
|
+
suspendResult = this.n5u_1.s4v(this.r5u_1.h2x(), get_clientState_0(this.r5u_1), this);
|
|
11348
11340
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11349
11341
|
return suspendResult;
|
|
11350
11342
|
}
|
|
@@ -11473,7 +11465,7 @@
|
|
|
11473
11465
|
// Inline function 'kotlin.collections.forEach' call
|
|
11474
11466
|
var tmp$ret$2;
|
|
11475
11467
|
// Inline function 'kotlin.collections.filter' call
|
|
11476
|
-
var tmp0_filter = filterPlayerTurn(table.
|
|
11468
|
+
var tmp0_filter = filterPlayerTurn(table.c3u_1);
|
|
11477
11469
|
var tmp$ret$1;
|
|
11478
11470
|
// Inline function 'kotlin.collections.filterTo' call
|
|
11479
11471
|
var tmp0_filterTo = ArrayList_init_$Create$_0();
|
|
@@ -11495,8 +11487,8 @@
|
|
|
11495
11487
|
var element_0 = tmp0_iterator_0.h();
|
|
11496
11488
|
// Inline function 'com.debertz.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>.<anonymous>' call
|
|
11497
11489
|
var tmp = store.dispatch;
|
|
11498
|
-
var tmp_0 = new PlayerTurnTimerTag(element_0.x2k(), element_0.
|
|
11499
|
-
var tmp_1 = getStartPlayerStepTimerDelayMillis(element_0, table.
|
|
11490
|
+
var tmp_0 = new PlayerTurnTimerTag(element_0.x2k(), element_0.o30_1.s2m());
|
|
11491
|
+
var tmp_1 = getStartPlayerStepTimerDelayMillis(element_0, table.b3u_1, this.x5u_1, this.y5u_1);
|
|
11500
11492
|
tmp(StartTimerAction_init_$Create$(tmp_0, tmp_1, new Long(0, 0), TimerType_DELAY_getInstance(), 4, null));
|
|
11501
11493
|
}
|
|
11502
11494
|
};
|
|
@@ -11589,7 +11581,7 @@
|
|
|
11589
11581
|
_no_name_provided__qut3iv_45.prototype.t4b = function (store, next, action) {
|
|
11590
11582
|
// Inline function 'com.debertz.logic.client.redux.middlewares.single.removeSavedGameMiddleware.<anonymous>' call
|
|
11591
11583
|
var tmp0__anonymous__q1qw7t = action instanceof PartyEndedAction ? action : THROW_CCE();
|
|
11592
|
-
var id = store.state.
|
|
11584
|
+
var id = store.state.h2x().y3t_1;
|
|
11593
11585
|
next(tmp0__anonymous__q1qw7t);
|
|
11594
11586
|
this.m5v_1.n2q(null, removeSavedGameMiddleware$o$handle$slambda_0(tmp0__anonymous__q1qw7t, this.n5v_1, id, null), 1, null);
|
|
11595
11587
|
};
|
|
@@ -11708,7 +11700,7 @@
|
|
|
11708
11700
|
this.nj_1 = 3;
|
|
11709
11701
|
if (!this.i5w_1.o5p_1 ? this.j5w_1.o3v() : false) {
|
|
11710
11702
|
this.mj_1 = 1;
|
|
11711
|
-
suspendResult = this.k5w_1.s4v(this.j5w_1.
|
|
11703
|
+
suspendResult = this.k5w_1.s4v(this.j5w_1.h2x(), get_clientState_0(this.j5w_1), this);
|
|
11712
11704
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11713
11705
|
return suspendResult;
|
|
11714
11706
|
}
|
|
@@ -12029,7 +12021,7 @@
|
|
|
12029
12021
|
next(tmp0__anonymous__q1qw7t);
|
|
12030
12022
|
var tmp$ret$2;
|
|
12031
12023
|
// Inline function 'kotlin.collections.filter' call
|
|
12032
|
-
var tmp0_filter = tmp0__anonymous__q1qw7t.
|
|
12024
|
+
var tmp0_filter = tmp0__anonymous__q1qw7t.q3u();
|
|
12033
12025
|
var tmp$ret$1;
|
|
12034
12026
|
// Inline function 'kotlin.collections.filterTo' call
|
|
12035
12027
|
var tmp0_filterTo = ArrayList_init_$Create$_0();
|
|
@@ -12081,8 +12073,8 @@
|
|
|
12081
12073
|
// Inline function 'com.debertz.logic.client.redux.middlewares.validation.clientShowDisabledCardMessageMiddleware.<anonymous>' call
|
|
12082
12074
|
var tmp0__anonymous__q1qw7t = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
12083
12075
|
var state = store.state;
|
|
12084
|
-
if (get_isEarnPointScene(state.
|
|
12085
|
-
var validationCode = this.k5x_1.v4v(tmp0__anonymous__q1qw7t.d5q_1, get_currentPlayer(state.
|
|
12076
|
+
if (get_isEarnPointScene(state.h2x().d3u_1.w3x_1)) {
|
|
12077
|
+
var validationCode = this.k5x_1.v4v(tmp0__anonymous__q1qw7t.d5q_1, get_currentPlayer(state.h2x()), state.h2x());
|
|
12086
12078
|
if (!(validationCode == null)) {
|
|
12087
12079
|
store.dispatch(new InfoMessageAction(this.l5x_1.c42(validationCode)));
|
|
12088
12080
|
} else {
|
|
@@ -12114,8 +12106,8 @@
|
|
|
12114
12106
|
var tmp0__anonymous__q1qw7t = action instanceof CardPutAction ? action : THROW_CCE();
|
|
12115
12107
|
var state = store.state;
|
|
12116
12108
|
var cardNotValidCount = 0;
|
|
12117
|
-
var player = get_currentPlayer(state.
|
|
12118
|
-
var validationCode = this.n5x_1.v4v(tmp0__anonymous__q1qw7t.y5p_1.y2p_1, player, state.
|
|
12109
|
+
var player = get_currentPlayer(state.h2x());
|
|
12110
|
+
var validationCode = this.n5x_1.v4v(tmp0__anonymous__q1qw7t.y5p_1.y2p_1, player, state.h2x());
|
|
12119
12111
|
if (!(validationCode == null)) {
|
|
12120
12112
|
var tmp0 = cardNotValidCount;
|
|
12121
12113
|
cardNotValidCount = tmp0 + 1 | 0;
|
|
@@ -12160,8 +12152,8 @@
|
|
|
12160
12152
|
throw new MechanicException('Required ' + getKClass(CombinationActData).of() + ', current act is ' + tmp0_requireActData);
|
|
12161
12153
|
}
|
|
12162
12154
|
var actData = tmp$ret$0;
|
|
12163
|
-
if (currentPlayerId === actData.
|
|
12164
|
-
return new CombinationToAnnounceState(actData.
|
|
12155
|
+
if (currentPlayerId === actData.u3a()) {
|
|
12156
|
+
return new CombinationToAnnounceState(actData.o3a_1, null, null);
|
|
12165
12157
|
}
|
|
12166
12158
|
}
|
|
12167
12159
|
return null;
|
|
@@ -12178,12 +12170,12 @@
|
|
|
12178
12170
|
$l$block: {
|
|
12179
12171
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientCombinationToAnnounceStateOnPlayerTurnReducer.<anonymous>' call
|
|
12180
12172
|
var tmp0__anonymous__q1qw7t = isInterface(action, NavigationMechanicAction) ? action : THROW_CCE();
|
|
12181
|
-
var table = state.
|
|
12173
|
+
var table = state.h2x();
|
|
12182
12174
|
var actId = tmp0__anonymous__q1qw7t.actId;
|
|
12183
12175
|
Companion_getInstance_2();
|
|
12184
12176
|
if (actId === 'COMBINATION') {
|
|
12185
12177
|
var tmp = get_clientState_0(state);
|
|
12186
|
-
var tmp_0 = this.r5x_1.q5x(get_currentPlayer(table).x2k(), table.
|
|
12178
|
+
var tmp_0 = this.r5x_1.q5x(get_currentPlayer(table).x2k(), table.d3u_1);
|
|
12187
12179
|
var tmp_1 = tmp.s5x(null, null, null, null, null, false, false, false, false, tmp_0, null, null, null, null, null, 32255, null);
|
|
12188
12180
|
tmp$ret$0 = state.v46(null, tmp_1, null, null, null, 29, null);
|
|
12189
12181
|
break $l$block;
|
|
@@ -12302,19 +12294,19 @@
|
|
|
12302
12294
|
var tmp0_subject = item;
|
|
12303
12295
|
var tmp;
|
|
12304
12296
|
if (tmp0_subject instanceof TextMessage) {
|
|
12305
|
-
tmp = item.
|
|
12297
|
+
tmp = item.q2z(null, null, null, false, null, 23, null);
|
|
12306
12298
|
} else {
|
|
12307
12299
|
if (tmp0_subject instanceof PhraseMessage) {
|
|
12308
|
-
tmp = item.
|
|
12300
|
+
tmp = item.q2z(null, null, null, false, null, 23, null);
|
|
12309
12301
|
} else {
|
|
12310
12302
|
if (tmp0_subject instanceof AnnouncedCombinationMessage) {
|
|
12311
|
-
tmp = item.
|
|
12303
|
+
tmp = item.u2y(null, null, null, false, null, 23, null);
|
|
12312
12304
|
} else {
|
|
12313
12305
|
if (tmp0_subject instanceof WinnerCombinationsMessage) {
|
|
12314
|
-
tmp = item.
|
|
12306
|
+
tmp = item.g2z(null, null, false, null, 11, null);
|
|
12315
12307
|
} else {
|
|
12316
12308
|
if (tmp0_subject instanceof PreviousPartyPointsMessage) {
|
|
12317
|
-
tmp = item.
|
|
12309
|
+
tmp = item.m2y(0, null, null, false, null, 23, null);
|
|
12318
12310
|
} else {
|
|
12319
12311
|
var tmp_0 = "updateMessagesAsNotShown: Can't support this message " + item;
|
|
12320
12312
|
gameLogger.r2q(null, tmp_0, null, 5, null);
|
|
@@ -12372,7 +12364,7 @@
|
|
|
12372
12364
|
var tmp1_gameTable = action.e49_1;
|
|
12373
12365
|
var tmp;
|
|
12374
12366
|
if (clientState == null) {
|
|
12375
|
-
tmp = Companion_getInstance_7().j5y(this.e5y_1, this.h5y_1.q5x(get_currentPlayer(action.e49_1).x2k(), action.e49_1.
|
|
12367
|
+
tmp = Companion_getInstance_7().j5y(this.e5y_1, this.h5y_1.q5x(get_currentPlayer(action.e49_1).x2k(), action.e49_1.d3u_1));
|
|
12376
12368
|
} else {
|
|
12377
12369
|
tmp = this.g5y_1.y5x(clientState);
|
|
12378
12370
|
}
|
|
@@ -12386,12 +12378,12 @@
|
|
|
12386
12378
|
ClientMechanicLifecycleReducer.prototype.s4i = function (state, action) {
|
|
12387
12379
|
var tmp0_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
12388
12380
|
var tmp1_terminationGameReason = action.b48_1;
|
|
12389
|
-
var tmp2_gameTable = this.g5y_1.v5x(state.
|
|
12381
|
+
var tmp2_gameTable = this.g5y_1.v5x(state.h2x(), get_clientState_0(state));
|
|
12390
12382
|
var tmp3_payload = this.g5y_1.y5x(get_clientState_0(state));
|
|
12391
12383
|
return state.v46(tmp2_gameTable, tmp3_payload, tmp0_gameLifecycleState, tmp1_terminationGameReason, null, 16, null);
|
|
12392
12384
|
};
|
|
12393
12385
|
ClientMechanicLifecycleReducer.prototype.q4i = function (state, action) {
|
|
12394
|
-
var tmp = this.x4i_1.a4j(state.
|
|
12386
|
+
var tmp = this.x4i_1.a4j(state.h2x());
|
|
12395
12387
|
var tmp_0 = get_clientState_0(state);
|
|
12396
12388
|
var tmp_1 = this.g5y_1.w5x(tmp_0, ClientLifecycleReducer$partyFinishedMessagesReducer$ref(this.g5y_1));
|
|
12397
12389
|
return state.v46(tmp, tmp_1, null, null, null, 28, null);
|
|
@@ -12488,7 +12480,7 @@
|
|
|
12488
12480
|
} else {
|
|
12489
12481
|
Companion_getInstance_0();
|
|
12490
12482
|
if (tmp0_subject === 'CALC_POINTS') {
|
|
12491
|
-
var gameFinished = !(firstOrNull(filterByGameWinner(state.
|
|
12483
|
+
var gameFinished = !(firstOrNull(filterByGameWinner(state.h2x().c3u_1)) == null);
|
|
12492
12484
|
var tmp_6;
|
|
12493
12485
|
if (gameFinished) {
|
|
12494
12486
|
var tmp_7 = get_clientState_0(state);
|
|
@@ -12561,7 +12553,7 @@
|
|
|
12561
12553
|
var tmp_11 = get_clientState_0(state);
|
|
12562
12554
|
var tmp_12;
|
|
12563
12555
|
if (tmp0__anonymous__q1qw7t.l5p_1) {
|
|
12564
|
-
var cards = last(state.
|
|
12556
|
+
var cards = last(state.h2x().f3u_1).k3g_1;
|
|
12565
12557
|
var tmp$ret$1;
|
|
12566
12558
|
$l$block_0: {
|
|
12567
12559
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -12572,7 +12564,7 @@
|
|
|
12572
12564
|
var element = tmp0_iterator.h();
|
|
12573
12565
|
var tmp$ret$0;
|
|
12574
12566
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>' call
|
|
12575
|
-
tmp$ret$0 = element.
|
|
12567
|
+
tmp$ret$0 = element.x39_1 === this.m5y_1;
|
|
12576
12568
|
if (tmp$ret$0) {
|
|
12577
12569
|
if (found) {
|
|
12578
12570
|
tmp$ret$1 = null;
|
|
@@ -12604,8 +12596,8 @@
|
|
|
12604
12596
|
tmp_13 = tmp1_elvis_lhs;
|
|
12605
12597
|
}
|
|
12606
12598
|
var currentPlayerCard = tmp_13;
|
|
12607
|
-
var tmp_15 = first(cards).
|
|
12608
|
-
var tmp_16 = getWhoGotBribe(state.
|
|
12599
|
+
var tmp_15 = first(cards).x39_1;
|
|
12600
|
+
var tmp_16 = getWhoGotBribe(state.h2x().c3u_1).x2k();
|
|
12609
12601
|
var tmp$ret$5;
|
|
12610
12602
|
// Inline function 'kotlin.collections.map' call
|
|
12611
12603
|
var tmp1_map = sortWithItem(cards, currentPlayerCard);
|
|
@@ -12617,7 +12609,7 @@
|
|
|
12617
12609
|
var item = tmp0_iterator_0.h();
|
|
12618
12610
|
var tmp$ret$3;
|
|
12619
12611
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>' call
|
|
12620
|
-
tmp$ret$3 = item.
|
|
12612
|
+
tmp$ret$3 = item.z39_1;
|
|
12621
12613
|
tmp0_mapTo.a(tmp$ret$3);
|
|
12622
12614
|
}
|
|
12623
12615
|
tmp$ret$4 = tmp0_mapTo;
|
|
@@ -12634,8 +12626,8 @@
|
|
|
12634
12626
|
var tmp_19 = get_clientState_0(state);
|
|
12635
12627
|
var tmp_20;
|
|
12636
12628
|
if (tmp0__anonymous__q1qw7t.m5p_1) {
|
|
12637
|
-
var players = state.
|
|
12638
|
-
var tmp4_trump = state.
|
|
12629
|
+
var players = state.h2x().c3u_1;
|
|
12630
|
+
var tmp4_trump = state.h2x().currentTrump;
|
|
12639
12631
|
var tmp3_safe_receiver = singleOrNull(filterWhoChoseSuit(players));
|
|
12640
12632
|
var tmp5_whoChoseSuitPlayerId = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.x2k();
|
|
12641
12633
|
var tmp2_safe_receiver = singleOrNull(filterWhoShuffleCards(players));
|
|
@@ -12676,7 +12668,7 @@
|
|
|
12676
12668
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>' call
|
|
12677
12669
|
var tmp$ret$8;
|
|
12678
12670
|
// Inline function 'kotlin.collections.map' call
|
|
12679
|
-
var tmp0_map = state.
|
|
12671
|
+
var tmp0_map = state.h2x().c3u_1;
|
|
12680
12672
|
var tmp$ret$7;
|
|
12681
12673
|
// Inline function 'kotlin.collections.mapTo' call
|
|
12682
12674
|
var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
@@ -12687,8 +12679,8 @@
|
|
|
12687
12679
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
12688
12680
|
var updatedUser = firstOrNull(filterByPlayerId(tmp7_safe_receiver, item_0.x2k()));
|
|
12689
12681
|
var tmp0_elvis_lhs = updatedUser;
|
|
12690
|
-
var tmp_30 = tmp0_elvis_lhs == null ? item_0.
|
|
12691
|
-
tmp$ret$6 = item_0.
|
|
12682
|
+
var tmp_30 = tmp0_elvis_lhs == null ? item_0.n30_1 : tmp0_elvis_lhs;
|
|
12683
|
+
tmp$ret$6 = item_0.l31(tmp_30, null, null, null, null, null, 62, null);
|
|
12692
12684
|
tmp0_mapTo_0.a(tmp$ret$6);
|
|
12693
12685
|
}
|
|
12694
12686
|
tmp$ret$7 = tmp0_mapTo_0;
|
|
@@ -12698,18 +12690,18 @@
|
|
|
12698
12690
|
tmp_29 = tmp$ret$10;
|
|
12699
12691
|
}
|
|
12700
12692
|
var updatedPlayers = tmp_29;
|
|
12701
|
-
var tmp_31 = state.
|
|
12702
|
-
var tmp11_$this = state.
|
|
12693
|
+
var tmp_31 = state.h2x();
|
|
12694
|
+
var tmp11_$this = state.h2x().b3u_1;
|
|
12703
12695
|
var tmp9_elvis_lhs = tmp0__anonymous__q1qw7t.v5p_1;
|
|
12704
|
-
var tmp12_rulesSetType = tmp9_elvis_lhs == null ? state.
|
|
12696
|
+
var tmp12_rulesSetType = tmp9_elvis_lhs == null ? state.h2x().b3u_1.m3h_1 : tmp9_elvis_lhs;
|
|
12705
12697
|
var tmp8_elvis_lhs = tmp0__anonymous__q1qw7t.w5p_1;
|
|
12706
|
-
var tmp13_rules = tmp8_elvis_lhs == null ? state.
|
|
12698
|
+
var tmp13_rules = tmp8_elvis_lhs == null ? state.h2x().b3u_1.l3h_1 : tmp8_elvis_lhs;
|
|
12707
12699
|
var tmp10_elvis_lhs = tmp0__anonymous__q1qw7t.u5p_1;
|
|
12708
|
-
var tmp14_options = tmp10_elvis_lhs == null ? state.
|
|
12700
|
+
var tmp14_options = tmp10_elvis_lhs == null ? state.h2x().b3u_1.n3h_1 : tmp10_elvis_lhs;
|
|
12709
12701
|
var tmp_32 = tmp11_$this.y3w(tmp13_rules, tmp12_rulesSetType, tmp14_options, null, null, 0, 56, null);
|
|
12710
12702
|
var tmp15_elvis_lhs = updatedPlayers;
|
|
12711
|
-
var tmp_33 = tmp15_elvis_lhs == null ? state.
|
|
12712
|
-
var tmp_34 = tmp_31.
|
|
12703
|
+
var tmp_33 = tmp15_elvis_lhs == null ? state.h2x().c3u_1 : tmp15_elvis_lhs;
|
|
12704
|
+
var tmp_34 = tmp_31.b3v(null, null, null, tmp_32, tmp_33, null, null, null, null, null, 999, null);
|
|
12713
12705
|
var tmp_35 = get_clientState_0(state);
|
|
12714
12706
|
var tmp16_elvis_lhs = tmp0__anonymous__q1qw7t.t5p_1;
|
|
12715
12707
|
var tmp_36 = tmp16_elvis_lhs == null ? get_clientState_0(state).a4v_1 : tmp16_elvis_lhs;
|
|
@@ -12916,11 +12908,11 @@
|
|
|
12916
12908
|
function updateVoiceCount(table, action) {
|
|
12917
12909
|
var message = action.r48_1;
|
|
12918
12910
|
if (message instanceof PhraseMessage) {
|
|
12919
|
-
var player = getPlayer(table.
|
|
12920
|
-
var tmp = player.
|
|
12921
|
-
var tmp_0 = player.
|
|
12922
|
-
var tmp_1 = updateItem(table.
|
|
12923
|
-
return table.
|
|
12911
|
+
var player = getPlayer(table.c3u_1, message.m2z_1.i2l_1);
|
|
12912
|
+
var tmp = player.p30_1.f31_1 - 1 | 0;
|
|
12913
|
+
var tmp_0 = player.p30_1.a33(false, 0, false, false, false, false, false, 0, tmp, false, null, false, false, 7935, null);
|
|
12914
|
+
var tmp_1 = updateItem(table.c3u_1, player.l31(null, null, tmp_0, null, null, null, 59, null), get_byIdPlayerPredicate()(player.x2k()));
|
|
12915
|
+
return table.b3v(null, null, null, null, tmp_1, null, null, null, null, null, 1007, null);
|
|
12924
12916
|
}
|
|
12925
12917
|
return table;
|
|
12926
12918
|
}
|
|
@@ -12934,7 +12926,7 @@
|
|
|
12934
12926
|
// Inline function 'com.debertz.logic.client.redux.redusers.messageReducer.<anonymous>' call
|
|
12935
12927
|
var tmp0__anonymous__q1qw7t = action instanceof MessageMechanicAction ? action : THROW_CCE();
|
|
12936
12928
|
var clientState = get_clientState_0(state);
|
|
12937
|
-
var tmp = updateVoiceCount(state.
|
|
12929
|
+
var tmp = updateVoiceCount(state.h2x(), tmp0__anonymous__q1qw7t);
|
|
12938
12930
|
var tmp_0 = plus_0(clientState.b4v_1, tmp0__anonymous__q1qw7t.r48_1);
|
|
12939
12931
|
var tmp_1 = clientState.s5x(null, tmp_0, null, null, null, false, false, false, false, null, null, null, null, null, null, 32765, null);
|
|
12940
12932
|
tmp$ret$0 = state.v46(tmp, tmp_1, null, null, null, 28, null);
|
|
@@ -13173,10 +13165,10 @@
|
|
|
13173
13165
|
var expectantAction = tmp0__anonymous__q1qw7t.m5q_1.e4u_1;
|
|
13174
13166
|
var tmp;
|
|
13175
13167
|
if (expectantAction instanceof TeamsDataMechanicAction) {
|
|
13176
|
-
tmp = getGameCreator(state.
|
|
13168
|
+
tmp = getGameCreator(state.h2x().c3u_1);
|
|
13177
13169
|
} else {
|
|
13178
13170
|
if (expectantAction instanceof CombinationChoiceMechanicAction) {
|
|
13179
|
-
tmp = getPlayer(state.
|
|
13171
|
+
tmp = getPlayer(state.h2x().c3u_1, expectantAction.y48_1);
|
|
13180
13172
|
} else {
|
|
13181
13173
|
tmp = null;
|
|
13182
13174
|
}
|
|
@@ -13201,7 +13193,7 @@
|
|
|
13201
13193
|
var turnModel = tmp_1;
|
|
13202
13194
|
var tmp_2 = 'clientResetPlayerTurnAfterExpectantCreatedReducer: ' + turnModel;
|
|
13203
13195
|
this.v5y_1.m2t('PlayerTurn', tmp_2, null, 4, null);
|
|
13204
|
-
var tmp_3 = this.w5y_1.h4j(state.
|
|
13196
|
+
var tmp_3 = this.w5y_1.h4j(state.h2x(), turnModel);
|
|
13205
13197
|
tmp$ret$0 = state.v46(tmp_3, null, null, null, null, 30, null);
|
|
13206
13198
|
}
|
|
13207
13199
|
return tmp$ret$0;
|
|
@@ -13235,7 +13227,7 @@
|
|
|
13235
13227
|
tmp = null;
|
|
13236
13228
|
} else {
|
|
13237
13229
|
if (isInterface(tmp0_subject, PlayerTurnIdAnswerAction)) {
|
|
13238
|
-
tmp = getPlayer(state.
|
|
13230
|
+
tmp = getPlayer(state.h2x().c3u_1, tmp0__anonymous__q1qw7t.w48());
|
|
13239
13231
|
} else {
|
|
13240
13232
|
throw IllegalStateException_init_$Create$("clientResetPlayerTurnAfterAnswerReducer: Can't support this action " + tmp0__anonymous__q1qw7t);
|
|
13241
13233
|
}
|
|
@@ -13260,7 +13252,7 @@
|
|
|
13260
13252
|
var turnModel = tmp_2;
|
|
13261
13253
|
var tmp_3 = 'clientResetPlayerTurnReducer: ' + turnModel;
|
|
13262
13254
|
this.y5y_1.m2t('PlayerTurn', tmp_3, null, 4, null);
|
|
13263
|
-
var tmp_4 = this.z5y_1.h4j(state.
|
|
13255
|
+
var tmp_4 = this.z5y_1.h4j(state.h2x(), turnModel);
|
|
13264
13256
|
tmp$ret$0 = state.v46(tmp_4, null, null, null, null, 30, null);
|
|
13265
13257
|
}
|
|
13266
13258
|
return tmp$ret$0;
|
|
@@ -13300,7 +13292,7 @@
|
|
|
13300
13292
|
if (reason instanceof PlayerLostConnectionReason) {
|
|
13301
13293
|
var tmp$ret$1;
|
|
13302
13294
|
// Inline function 'kotlin.takeUnless' call
|
|
13303
|
-
var tmp0_takeUnless = getPlayer(tmp0_safe_receiver.
|
|
13295
|
+
var tmp0_takeUnless = getPlayer(tmp0_safe_receiver.c3u_1, reason.a2l_1).n30_1;
|
|
13304
13296
|
// Inline function 'kotlin.contracts.contract' call
|
|
13305
13297
|
var tmp_1;
|
|
13306
13298
|
var tmp$ret$0;
|
|
@@ -13317,7 +13309,7 @@
|
|
|
13317
13309
|
if (reason instanceof PlayerTimeoutReason) {
|
|
13318
13310
|
var tmp$ret$3;
|
|
13319
13311
|
// Inline function 'kotlin.takeUnless' call
|
|
13320
|
-
var tmp1_takeUnless = getPlayer(tmp0_safe_receiver.
|
|
13312
|
+
var tmp1_takeUnless = getPlayer(tmp0_safe_receiver.c3u_1, reason.e2l_1).n30_1;
|
|
13321
13313
|
// Inline function 'kotlin.contracts.contract' call
|
|
13322
13314
|
var tmp_2;
|
|
13323
13315
|
var tmp$ret$2;
|
|
@@ -13336,7 +13328,7 @@
|
|
|
13336
13328
|
if (reason.w2k_1 === get_currentPlayer(tmp0_safe_receiver).x2k()) {
|
|
13337
13329
|
tmp_3 = null;
|
|
13338
13330
|
} else {
|
|
13339
|
-
tmp_3 = ErrorState_init_$Create$(null, getPlayer(tmp0_safe_receiver.
|
|
13331
|
+
tmp_3 = ErrorState_init_$Create$(null, getPlayer(tmp0_safe_receiver.c3u_1, reason.w2k_1).n30_1, reason, 1, null);
|
|
13340
13332
|
}
|
|
13341
13333
|
tmp_0 = tmp_3;
|
|
13342
13334
|
} else {
|
|
@@ -13542,7 +13534,7 @@
|
|
|
13542
13534
|
this.n4v_1 = error;
|
|
13543
13535
|
this.o4v_1 = tutorial;
|
|
13544
13536
|
}
|
|
13545
|
-
ClientState.prototype.
|
|
13537
|
+
ClientState.prototype.j3u = function () {
|
|
13546
13538
|
return this.a4v_1;
|
|
13547
13539
|
};
|
|
13548
13540
|
ClientState.prototype.f5z = function () {
|
|
@@ -13557,7 +13549,7 @@
|
|
|
13557
13549
|
ClientState.prototype.i5z = function () {
|
|
13558
13550
|
return this.e4v_1;
|
|
13559
13551
|
};
|
|
13560
|
-
ClientState.prototype.
|
|
13552
|
+
ClientState.prototype.g33 = function () {
|
|
13561
13553
|
return this.j4v_1;
|
|
13562
13554
|
};
|
|
13563
13555
|
ClientState.prototype.j5z = function () {
|
|
@@ -13664,7 +13656,7 @@
|
|
|
13664
13656
|
this.z5r_1 = acceptedCombinations;
|
|
13665
13657
|
this.a5s_1 = declinedCombinations;
|
|
13666
13658
|
}
|
|
13667
|
-
CombinationToAnnounceState.prototype.
|
|
13659
|
+
CombinationToAnnounceState.prototype.g33 = function () {
|
|
13668
13660
|
return this.y5r_1;
|
|
13669
13661
|
};
|
|
13670
13662
|
CombinationToAnnounceState.prototype.b5q = function () {
|
|
@@ -13718,7 +13710,7 @@
|
|
|
13718
13710
|
ErrorState.prototype.p1 = function () {
|
|
13719
13711
|
return this.p5y_1;
|
|
13720
13712
|
};
|
|
13721
|
-
ErrorState.prototype.
|
|
13713
|
+
ErrorState.prototype.n2y = function () {
|
|
13722
13714
|
return this.q5y_1;
|
|
13723
13715
|
};
|
|
13724
13716
|
ErrorState.prototype.o3w = function () {
|
|
@@ -13778,7 +13770,7 @@
|
|
|
13778
13770
|
});
|
|
13779
13771
|
Object.defineProperty(ErrorState.prototype, 'userInfo', {
|
|
13780
13772
|
configurable: true,
|
|
13781
|
-
get: ErrorState.prototype.
|
|
13773
|
+
get: ErrorState.prototype.n2y
|
|
13782
13774
|
});
|
|
13783
13775
|
Object.defineProperty(ErrorState.prototype, 'reason', {
|
|
13784
13776
|
configurable: true,
|
|
@@ -13884,17 +13876,17 @@
|
|
|
13884
13876
|
var tmp;
|
|
13885
13877
|
var tmp$ret$0;
|
|
13886
13878
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
13887
|
-
var tmp0_isNotEmpty = filterByGameWinner(_this__u8e3s4.
|
|
13879
|
+
var tmp0_isNotEmpty = filterByGameWinner(_this__u8e3s4.c3u_1);
|
|
13888
13880
|
tmp$ret$0 = !tmp0_isNotEmpty.k();
|
|
13889
13881
|
if (tmp$ret$0) {
|
|
13890
|
-
tmp = get_currentPlayer(_this__u8e3s4).
|
|
13882
|
+
tmp = get_currentPlayer(_this__u8e3s4).o30_1.w2l();
|
|
13891
13883
|
} else {
|
|
13892
13884
|
tmp = false;
|
|
13893
13885
|
}
|
|
13894
13886
|
return tmp;
|
|
13895
13887
|
}
|
|
13896
13888
|
function get_currentPlayer(_this__u8e3s4) {
|
|
13897
|
-
return first(_this__u8e3s4.
|
|
13889
|
+
return first(_this__u8e3s4.c3u_1);
|
|
13898
13890
|
}
|
|
13899
13891
|
function getOrNullExpectant(_this__u8e3s4, clazz) {
|
|
13900
13892
|
var tmp$ret$5;
|
|
@@ -13938,9 +13930,9 @@
|
|
|
13938
13930
|
function createGameClientController(loggerCallback) {
|
|
13939
13931
|
return new GameClientEngineControllerImpl(loggerCallback);
|
|
13940
13932
|
}
|
|
13941
|
-
function createDI($this, logger, currentPlayerId, clientConfig, developerConfig, botConfig, clientReduxConfig, externalReducers, externalMiddlewares) {
|
|
13933
|
+
function createDI($this, logger, currentPlayerId, clientConfig, developerConfig, botConfig, clientReduxConfig, logicReduxConfig, externalReducers, externalMiddlewares) {
|
|
13942
13934
|
var tmp = Companion_getInstance_3();
|
|
13943
|
-
return tmp.y2e(false, GameClientEngineControllerImpl$createDI$lambda(currentPlayerId, clientConfig, developerConfig, clientReduxConfig, botConfig, externalReducers, externalMiddlewares, logger), 1, null);
|
|
13935
|
+
return tmp.y2e(false, GameClientEngineControllerImpl$createDI$lambda(currentPlayerId, clientConfig, developerConfig, clientReduxConfig, logicReduxConfig, botConfig, externalReducers, externalMiddlewares, logger), 1, null);
|
|
13944
13936
|
}
|
|
13945
13937
|
function _no_name_provided__qut3iv_68($item) {
|
|
13946
13938
|
this.s5z_1 = $item;
|
|
@@ -13968,7 +13960,7 @@
|
|
|
13968
13960
|
function GameClientEngineControllerImpl$createDI$lambda$lambda_0($this$singleton) {
|
|
13969
13961
|
return new MultiplayerEventsProviderImpl();
|
|
13970
13962
|
}
|
|
13971
|
-
function GameClientEngineControllerImpl$createDI$lambda($currentPlayerId, $clientConfig, $developerConfig, $clientReduxConfig, $botConfig, $externalReducers, $externalMiddlewares, $logger) {
|
|
13963
|
+
function GameClientEngineControllerImpl$createDI$lambda($currentPlayerId, $clientConfig, $developerConfig, $clientReduxConfig, $logicReduxConfig, $botConfig, $externalReducers, $externalMiddlewares, $logger) {
|
|
13972
13964
|
return function ($this$invoke) {
|
|
13973
13965
|
var tmp$ret$1;
|
|
13974
13966
|
// Inline function 'org.kodein.di.bind' call
|
|
@@ -14012,7 +14004,7 @@
|
|
|
14012
14004
|
tmp_6.h2e(tmp$ret$7);
|
|
14013
14005
|
var tmp_11 = get_coreModule();
|
|
14014
14006
|
$this$invoke.u2e(tmp_11, false, 2, null);
|
|
14015
|
-
var tmp_12 = createGameClientDI($currentPlayerId, $clientConfig, $developerConfig, $clientReduxConfig, $botConfig, $externalReducers, $externalMiddlewares);
|
|
14007
|
+
var tmp_12 = createGameClientDI($currentPlayerId, $clientConfig, $developerConfig, $clientReduxConfig, $logicReduxConfig, $botConfig, $externalReducers, $externalMiddlewares);
|
|
14016
14008
|
$this$invoke.u2e(tmp_12, false, 2, null);
|
|
14017
14009
|
return Unit_getInstance();
|
|
14018
14010
|
};
|
|
@@ -14054,6 +14046,7 @@
|
|
|
14054
14046
|
var tmp_1 = DeveloperConfig_init_$Create$(isAutoStepCurrentPlayer, false, 2, null);
|
|
14055
14047
|
var tmp_2 = BotReduxConfig_init_$Create$(botExitsWhenNGameNumberIsFinished, false, false, false, 14, null);
|
|
14056
14048
|
var tmp_3 = ClientReduxConfig_init_$Create$(false, false, false, 2, null);
|
|
14049
|
+
var tmp_4 = LogicReduxConfig_init_$Create$(false, false, false, 3, null);
|
|
14057
14050
|
var tmp$ret$5;
|
|
14058
14051
|
// Inline function 'kotlin.collections.map' call
|
|
14059
14052
|
var tmp$ret$4;
|
|
@@ -14075,8 +14068,8 @@
|
|
|
14075
14068
|
}
|
|
14076
14069
|
tmp$ret$4 = tmp0_mapTo;
|
|
14077
14070
|
tmp$ret$5 = tmp$ret$4;
|
|
14078
|
-
var
|
|
14079
|
-
var
|
|
14071
|
+
var tmp_5 = toList_0(tmp$ret$5);
|
|
14072
|
+
var tmp_6 = listOf_0(gameStatisticsMiddleware());
|
|
14080
14073
|
var tmp$ret$8;
|
|
14081
14074
|
// Inline function 'kotlin.collections.map' call
|
|
14082
14075
|
var tmp$ret$7;
|
|
@@ -14095,32 +14088,32 @@
|
|
|
14095
14088
|
}
|
|
14096
14089
|
tmp$ret$7 = tmp0_mapTo_0;
|
|
14097
14090
|
tmp$ret$8 = tmp$ret$7;
|
|
14098
|
-
var di = createDI(this, logger, currentPlayerId, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, plus(
|
|
14091
|
+
var di = createDI(this, logger, currentPlayerId, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, plus(tmp_6, toList_0(tmp$ret$8)));
|
|
14099
14092
|
var tmp$ret$10;
|
|
14100
14093
|
// Inline function 'org.kodein.di.instance' call
|
|
14101
14094
|
var tmp0_instance = get_direct(di);
|
|
14102
|
-
var
|
|
14095
|
+
var tmp_7 = tmp0_instance.u2f();
|
|
14103
14096
|
var tmp$ret$9;
|
|
14104
14097
|
// Inline function 'org.kodein.type.generic' call
|
|
14105
|
-
var
|
|
14106
|
-
tmp$ret$9 = isInterface(
|
|
14107
|
-
tmp$ret$10 =
|
|
14098
|
+
var tmp_8 = typeToken(createKType(getKClass(OnlineGameMechanic), arrayOf([]), false));
|
|
14099
|
+
tmp$ret$9 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
14100
|
+
tmp$ret$10 = tmp_7.c2g(tmp$ret$9, null);
|
|
14108
14101
|
var gameMechanic = tmp$ret$10;
|
|
14109
14102
|
var tmp$ret$12;
|
|
14110
14103
|
// Inline function 'org.kodein.di.instance' call
|
|
14111
14104
|
var tmp1_instance = get_direct(di);
|
|
14112
|
-
var
|
|
14105
|
+
var tmp_9 = tmp1_instance.u2f();
|
|
14113
14106
|
var tmp$ret$11;
|
|
14114
14107
|
// Inline function 'org.kodein.type.generic' call
|
|
14115
|
-
var
|
|
14116
|
-
tmp$ret$11 = isInterface(
|
|
14117
|
-
tmp$ret$12 =
|
|
14108
|
+
var tmp_10 = typeToken(createKType(getKClass(GameClient), arrayOf([]), false));
|
|
14109
|
+
tmp$ret$11 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
14110
|
+
tmp$ret$12 = tmp_9.c2g(tmp$ret$11, null);
|
|
14118
14111
|
var gameClient = tmp$ret$12;
|
|
14119
14112
|
var tmp2_safe_receiver = loggerOutputWithTablePayload;
|
|
14120
14113
|
if (tmp2_safe_receiver == null) {
|
|
14121
14114
|
} else {
|
|
14122
|
-
var
|
|
14123
|
-
|
|
14115
|
+
var tmp_11 = tmp2_safe_receiver;
|
|
14116
|
+
tmp_11.w4j_1 = GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$lambda(gameClient);
|
|
14124
14117
|
}
|
|
14125
14118
|
return gameMechanic;
|
|
14126
14119
|
};
|