game_client_logic_deb 1.8.314 → 1.8.319
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +74 -53
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +9428 -9387
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +726 -687
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
61
61
|
var hashCode = kotlin_kotlin.$_$.ub;
|
|
62
62
|
var initMetadataForClass = kotlin_kotlin.$_$.vb;
|
|
63
|
-
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
63
|
+
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.u4;
|
|
64
64
|
var initMetadataForInterface = kotlin_kotlin.$_$.yb;
|
|
65
|
-
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
66
|
-
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
65
|
+
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.r4;
|
|
66
|
+
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.l4;
|
|
67
67
|
var emptyList = kotlin_kotlin.$_$.o7;
|
|
68
68
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
69
69
|
var arrayOf = kotlin_kotlin.$_$.ih;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.s1;
|
|
77
77
|
var plus = kotlin_kotlin.$_$.a9;
|
|
78
78
|
var listOfNotNull = kotlin_kotlin.$_$.p8;
|
|
79
|
-
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
79
|
+
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.t4;
|
|
80
80
|
var KProperty1 = kotlin_kotlin.$_$.rd;
|
|
81
81
|
var getPropertyCallableRef = kotlin_kotlin.$_$.sb;
|
|
82
82
|
var Exception = kotlin_kotlin.$_$.lg;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
var PlayerTimeoutReason = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
|
|
97
97
|
var PlayerLostConnectionReason = kotlin_io_raspberryapps_game_engine_core.$_$.n1;
|
|
98
98
|
var getPoint = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
|
|
99
|
-
var PlayerWaitingState_IDLE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
99
|
+
var PlayerWaitingState_IDLE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w3;
|
|
100
100
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t6;
|
|
101
101
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
102
102
|
var getPlayerIndex = kotlin_io_raspberryapps_game_engine_core.$_$.n;
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
var FromClientEventsObserver = kotlin_io_raspberryapps_game_engine_engine.$_$.u1;
|
|
150
150
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
|
|
151
151
|
var joinToString = kotlin_kotlin.$_$.g8;
|
|
152
|
-
var getDataClassName = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
152
|
+
var getDataClassName = kotlin_io_raspberryapps_game_engine_core.$_$.d3;
|
|
153
153
|
var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
154
154
|
var lazy_0 = kotlin_kotlin.$_$.rh;
|
|
155
|
-
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
155
|
+
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.q4;
|
|
156
156
|
var InSceneAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y2;
|
|
157
157
|
var getPlayerTurn = kotlin_io_raspberryapps_game_engine_engine.$_$.o3;
|
|
158
158
|
var PlayerTurnAnswerAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e3;
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
var filterPlayerTurn = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
164
164
|
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c3;
|
|
165
165
|
var singleOrNull = kotlin_kotlin.$_$.j9;
|
|
166
|
-
var ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
166
|
+
var ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.v4;
|
|
167
167
|
var Collection = kotlin_kotlin.$_$.s5;
|
|
168
|
-
var ValidationCode_CARD_VALIDATION_HAS_TRUMP_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
168
|
+
var ValidationCode_CARD_VALIDATION_HAS_TRUMP_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.x4;
|
|
169
169
|
var getGrowth = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
|
|
170
|
-
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
171
|
-
var ValidationCode_CARD_VALIDATION_HAS_SAME_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
170
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.f5;
|
|
171
|
+
var ValidationCode_CARD_VALIDATION_HAS_SAME_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.w4;
|
|
172
172
|
var emptyFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
173
173
|
var to = kotlin_kotlin.$_$.zh;
|
|
174
174
|
var get_isChoosePartnerScene = kotlin_io_raspberryapps_game_engine_engine.$_$.f1;
|
|
@@ -177,8 +177,8 @@
|
|
|
177
177
|
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p3;
|
|
178
178
|
var ExitFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h2;
|
|
179
179
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
180
|
-
var WaitingForConnectionReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
181
|
-
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
180
|
+
var WaitingForConnectionReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.y4;
|
|
181
|
+
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.s4;
|
|
182
182
|
var get_isFinishing = kotlin_io_raspberryapps_game_engine_engine.$_$.o1;
|
|
183
183
|
var get_isCreating = kotlin_io_raspberryapps_game_engine_engine.$_$.m1;
|
|
184
184
|
var get_isFinished = kotlin_io_raspberryapps_game_engine_engine.$_$.n1;
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.j1;
|
|
216
216
|
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.w1;
|
|
217
217
|
var DealerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.y1;
|
|
218
|
-
var
|
|
218
|
+
var MechanicReducers = kotlin_io_raspberryapps_game_engine_engine.$_$.j4;
|
|
219
219
|
var playerTurnTimeoutMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.c4;
|
|
220
220
|
var sendFromClientEventsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
|
|
221
221
|
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
|
|
@@ -229,17 +229,17 @@
|
|
|
229
229
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.r2;
|
|
230
230
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
231
231
|
var CombinationChoiceFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g2;
|
|
232
|
-
var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
232
|
+
var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
|
|
233
233
|
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
|
|
234
|
-
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
234
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.h5;
|
|
235
235
|
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
|
|
236
236
|
var WaitingActData = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
|
|
237
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
237
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.g5;
|
|
238
238
|
var RequestedCardDecksFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m2;
|
|
239
239
|
var CardDeckRequest = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
|
|
240
240
|
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h3;
|
|
241
241
|
var toLong = kotlin_kotlin.$_$.yc;
|
|
242
|
-
var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
242
|
+
var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d4;
|
|
243
243
|
var StartTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
244
244
|
var TimerTickAction = kotlin_io_raspberryapps_game_engine_core.$_$.l2;
|
|
245
245
|
var single = kotlin_kotlin.$_$.k9;
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
var StopTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.j2;
|
|
261
261
|
var Long = kotlin_kotlin.$_$.og;
|
|
262
262
|
var FromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i2;
|
|
263
|
-
var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
263
|
+
var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.z4;
|
|
264
264
|
var CardOnTable = kotlin_io_raspberryapps_game_engine_engine.$_$.c1;
|
|
265
265
|
var plus_0 = kotlin_kotlin.$_$.b9;
|
|
266
266
|
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l2;
|
|
@@ -273,14 +273,14 @@
|
|
|
273
273
|
var RoundStartedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q2;
|
|
274
274
|
var GameAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
|
|
275
275
|
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t2;
|
|
276
|
-
var PlayerTurnTimerTag_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
276
|
+
var PlayerTurnTimerTag_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.e5;
|
|
277
277
|
var getInitialPlayerTurnTimerDelayMillis = kotlin_io_raspberryapps_game_engine_engine.$_$.b4;
|
|
278
278
|
var contains = kotlin_kotlin.$_$.u6;
|
|
279
|
-
var Reason_INTERNAL_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
279
|
+
var Reason_INTERNAL_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
|
|
280
280
|
var get_isEarnPointScene = kotlin_io_raspberryapps_game_engine_engine.$_$.g1;
|
|
281
281
|
var NavigationMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b3;
|
|
282
|
-
var MessageLifecycle_ROOM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
283
|
-
var MessageLifecycle_GAME_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
282
|
+
var MessageLifecycle_ROOM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.z4;
|
|
283
|
+
var MessageLifecycle_GAME_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.y4;
|
|
284
284
|
var EventMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
|
|
285
285
|
var ServiceMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
|
|
286
286
|
var ValidationMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
|
|
@@ -292,18 +292,18 @@
|
|
|
292
292
|
var PhraseMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.f;
|
|
293
293
|
var TextMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.h;
|
|
294
294
|
var WhoShuffleCardsMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
|
|
295
|
-
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
296
|
-
var Companion_instance_3 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
297
|
-
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
295
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
|
|
296
|
+
var Companion_instance_3 = kotlin_io_raspberryapps_game_engine_core.$_$.l4;
|
|
297
|
+
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v3;
|
|
298
298
|
var Companion_getInstance = kotlin_kotlin.$_$.h5;
|
|
299
299
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
300
300
|
var toDuration = kotlin_kotlin.$_$.bg;
|
|
301
301
|
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.e4;
|
|
302
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
303
|
-
var GameLifecycleState_FINISHING_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
304
|
-
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
305
|
-
var GameLifecycleState_FINISHED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
306
|
-
var GameLifecycleState_CREATING_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
302
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.a5;
|
|
303
|
+
var GameLifecycleState_FINISHING_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.d5;
|
|
304
|
+
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.m4;
|
|
305
|
+
var GameLifecycleState_FINISHED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.c5;
|
|
306
|
+
var GameLifecycleState_CREATING_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.b5;
|
|
307
307
|
var lastOrNull = kotlin_kotlin.$_$.l8;
|
|
308
308
|
var filterWhoChoseSuit = kotlin_io_raspberryapps_game_engine_engine.$_$.r;
|
|
309
309
|
var filterWhoShuffleCards = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
var first = kotlin_kotlin.$_$.v7;
|
|
312
312
|
var getWhoGotLastBribe = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
|
|
313
313
|
var get_byIdPlayerPredicate = kotlin_io_raspberryapps_game_engine_core.$_$.k;
|
|
314
|
-
var updateItem = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
314
|
+
var updateItem = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
|
|
315
315
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
316
316
|
var mapWithIndex = kotlin_io_raspberryapps_game_engine_core.$_$.p;
|
|
317
317
|
var EarnPointsSceneData = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
@@ -330,27 +330,27 @@
|
|
|
330
330
|
var take_0 = kotlin_kotlin.$_$.q9;
|
|
331
331
|
var drop = kotlin_kotlin.$_$.n7;
|
|
332
332
|
var minus = kotlin_kotlin.$_$.v8;
|
|
333
|
-
var getItemIndex = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
333
|
+
var getItemIndex = kotlin_io_raspberryapps_game_engine_core.$_$.e3;
|
|
334
334
|
var generateHiddenPlayerHandCards = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
|
|
335
|
-
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
335
|
+
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.k4;
|
|
336
336
|
var LoggerOutput = kotlin_io_raspberryapps_cardgame_logger.$_$.a;
|
|
337
337
|
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.i1;
|
|
338
338
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
|
|
339
339
|
var Companion_instance_5 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
340
340
|
var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
341
341
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
342
|
-
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
343
|
-
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
344
|
-
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
345
|
-
var Companion_instance_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
346
|
-
var Companion_instance_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
342
|
+
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.p4;
|
|
343
|
+
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.o4;
|
|
344
|
+
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.n4;
|
|
345
|
+
var Companion_instance_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.j5;
|
|
346
|
+
var Companion_instance_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.i5;
|
|
347
347
|
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.h1;
|
|
348
|
-
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
349
|
-
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
350
|
-
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
351
|
-
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
352
|
-
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
353
|
-
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
348
|
+
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
|
|
349
|
+
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.r3;
|
|
350
|
+
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.q3;
|
|
351
|
+
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.a5;
|
|
352
|
+
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j4;
|
|
353
|
+
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k4;
|
|
354
354
|
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
355
355
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
356
356
|
var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
function observeClientStatePayload() {
|
|
377
377
|
// Inline function 'kotlinx.coroutines.flow.mapNotNull' call
|
|
378
378
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
379
|
-
var this_0 = this.
|
|
379
|
+
var this_0 = this.w6m();
|
|
380
380
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
381
381
|
return new _no_name_provided__qut3iv(this_0);
|
|
382
382
|
}
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
385
385
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
386
386
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
387
|
-
var this_0 = this.
|
|
387
|
+
var this_0 = this.w6m();
|
|
388
388
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
389
389
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
390
390
|
var this_1 = new _no_name_provided__qut3iv_0(this_0);
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
function observeStateIfTableExists() {
|
|
395
395
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
396
396
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
397
|
-
var this_0 = this.
|
|
397
|
+
var this_0 = this.w6m();
|
|
398
398
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
399
399
|
return new _no_name_provided__qut3iv_2(this_0);
|
|
400
400
|
}
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
initMetadataForInterface(ControlsContract, 'ControlsContract');
|
|
582
582
|
initMetadataForInterface(TradeSceneContract, 'TradeSceneContract');
|
|
583
583
|
initMetadataForInterface(EarnPointsSceneContract, 'EarnPointsSceneContract');
|
|
584
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
584
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ExpectantContract, ControlsContract, SceneActionsContract]);
|
|
585
585
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
586
586
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
587
587
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig(VOID, false) : logicConfig;
|
|
743
743
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
744
744
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
745
|
-
return this.
|
|
745
|
+
return this.cb3(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, coreConfig);
|
|
746
746
|
}
|
|
747
747
|
initMetadataForInterface(GameClientEngineController, 'GameClientEngineController');
|
|
748
748
|
initMetadataForClass(_no_name_provided__qut3iv_75, VOID, VOID, VOID, [Reducer]);
|
|
@@ -904,7 +904,7 @@
|
|
|
904
904
|
tmp_0.t9e_1 = this.q9e_1;
|
|
905
905
|
var tmp_1 = this;
|
|
906
906
|
tmp_1.u9e_1 = this.r9e_1;
|
|
907
|
-
if (this.u9e_1.
|
|
907
|
+
if (this.u9e_1.p6n()) {
|
|
908
908
|
this.j9_1 = 3;
|
|
909
909
|
suspendResult = this.t9e_1.e18(this.u9e_1, this);
|
|
910
910
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
tmp_1.s9f_1 = this.q9f_1;
|
|
1024
1024
|
this.j9_1 = 1;
|
|
1025
1025
|
var it = this.s9f_1;
|
|
1026
|
-
suspendResult = this.r9f_1.e18(it.
|
|
1026
|
+
suspendResult = this.r9f_1.e18(it.o6n(), this);
|
|
1027
1027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1028
1028
|
return suspendResult;
|
|
1029
1029
|
}
|
|
@@ -1125,7 +1125,7 @@
|
|
|
1125
1125
|
tmp_0.q9g_1 = this.n9g_1;
|
|
1126
1126
|
var tmp_1 = this;
|
|
1127
1127
|
tmp_1.r9g_1 = this.o9g_1;
|
|
1128
|
-
if (this.r9g_1.
|
|
1128
|
+
if (this.r9g_1.p6n()) {
|
|
1129
1129
|
this.j9_1 = 3;
|
|
1130
1130
|
suspendResult = this.q9g_1.e18(this.r9g_1, this);
|
|
1131
1131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1504,7 +1504,7 @@
|
|
|
1504
1504
|
tmp_0.x9i_1 = this.u9i_1;
|
|
1505
1505
|
var tmp_1 = this;
|
|
1506
1506
|
tmp_1.y9i_1 = this.v9i_1;
|
|
1507
|
-
if (this.y9i_1.
|
|
1507
|
+
if (this.y9i_1.p6n()) {
|
|
1508
1508
|
this.j9_1 = 3;
|
|
1509
1509
|
suspendResult = this.x9i_1.e18(this.y9i_1, this);
|
|
1510
1510
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
tmp_1.w9j_1 = this.u9j_1;
|
|
1624
1624
|
this.j9_1 = 1;
|
|
1625
1625
|
var it = this.w9j_1;
|
|
1626
|
-
suspendResult = this.v9j_1.e18(it.
|
|
1626
|
+
suspendResult = this.v9j_1.e18(it.o6n(), this);
|
|
1627
1627
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1628
1628
|
return suspendResult;
|
|
1629
1629
|
}
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
tmp_0.u9k_1 = this.r9k_1;
|
|
1726
1726
|
var tmp_1 = this;
|
|
1727
1727
|
tmp_1.v9k_1 = this.s9k_1;
|
|
1728
|
-
if (this.v9k_1.
|
|
1728
|
+
if (this.v9k_1.p6n()) {
|
|
1729
1729
|
this.j9_1 = 3;
|
|
1730
1730
|
suspendResult = this.u9k_1.e18(this.v9k_1, this);
|
|
1731
1731
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2000,8 +2000,8 @@
|
|
|
2000
2000
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2001
2001
|
tmp_5.n9l_1 = Instance(di, tmp$ret$6, null).d62(this, idsProvider$factory());
|
|
2002
2002
|
var tmp_7 = this;
|
|
2003
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
2004
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
2003
|
+
var tmp0_externalMiddlewares = plus(storeContract.p8y(), externalMiddlewares);
|
|
2004
|
+
var tmp1_externalReducers = plus(storeContract.o8y(), externalReducers);
|
|
2005
2005
|
var tmp2_externalEnhancers = listOfNotNull([applyBuffer(_get_bufferInteractor__bbjsb2(this)), _get_gameClientConfig__xfscic(this).validateExpectantActions ? applyExpectant(_get_logger__rkp4sl(this), _get_idsProvider__fnfajc(this), _get_bufferInteractor__bbjsb2(this)) : null]);
|
|
2006
2006
|
tmp_7.o9l_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares, tmp2_externalEnhancers);
|
|
2007
2007
|
}
|
|
@@ -2011,7 +2011,7 @@
|
|
|
2011
2011
|
protoOf(GameClientImpl).h9h = function () {
|
|
2012
2012
|
// Inline function 'kotlinx.coroutines.flow.mapNotNull' call
|
|
2013
2013
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2014
|
-
var this_0 = this.
|
|
2014
|
+
var this_0 = this.w6m();
|
|
2015
2015
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2016
2016
|
return new _no_name_provided__qut3iv_3(this_0);
|
|
2017
2017
|
};
|
|
@@ -2019,7 +2019,7 @@
|
|
|
2019
2019
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
2020
2020
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
2021
2021
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2022
|
-
var this_0 = this.
|
|
2022
|
+
var this_0 = this.w6m();
|
|
2023
2023
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2024
2024
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2025
2025
|
var this_1 = new _no_name_provided__qut3iv_4(this_0);
|
|
@@ -2029,12 +2029,12 @@
|
|
|
2029
2029
|
protoOf(GameClientImpl).j9h = function () {
|
|
2030
2030
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
2031
2031
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2032
|
-
var this_0 = this.
|
|
2032
|
+
var this_0 = this.w6m();
|
|
2033
2033
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2034
2034
|
return new _no_name_provided__qut3iv_6(this_0);
|
|
2035
2035
|
};
|
|
2036
|
-
protoOf(GameClientImpl).
|
|
2037
|
-
this.o9l_1.
|
|
2036
|
+
protoOf(GameClientImpl).n6n = function (block) {
|
|
2037
|
+
this.o9l_1.n6n(block);
|
|
2038
2038
|
};
|
|
2039
2039
|
function bufferInteractor$factory() {
|
|
2040
2040
|
return getPropertyCallableRef('bufferInteractor', 1, KProperty1, function (receiver) {
|
|
@@ -2191,7 +2191,7 @@
|
|
|
2191
2191
|
var tmp;
|
|
2192
2192
|
if (_this__u8e3s4 instanceof PlayerLostConnectionReason) {
|
|
2193
2193
|
// Inline function 'kotlin.takeUnless' call
|
|
2194
|
-
var this_0 = getPlayer(table.players, _this__u8e3s4.y68_1).
|
|
2194
|
+
var this_0 = getPlayer(table.players, _this__u8e3s4.y68_1).l6u_1;
|
|
2195
2195
|
// Inline function 'kotlin.contracts.contract' call
|
|
2196
2196
|
var tmp_0;
|
|
2197
2197
|
// Inline function 'games.jass.logic.client.data.models.mapToErrorState.<anonymous>' call
|
|
@@ -2205,7 +2205,7 @@
|
|
|
2205
2205
|
} else {
|
|
2206
2206
|
if (_this__u8e3s4 instanceof PlayerTimeoutReason) {
|
|
2207
2207
|
// Inline function 'kotlin.takeUnless' call
|
|
2208
|
-
var this_1 = getPlayer(table.players, _this__u8e3s4.c69_1).
|
|
2208
|
+
var this_1 = getPlayer(table.players, _this__u8e3s4.c69_1).l6u_1;
|
|
2209
2209
|
// Inline function 'kotlin.contracts.contract' call
|
|
2210
2210
|
var tmp_1;
|
|
2211
2211
|
// Inline function 'games.jass.logic.client.data.models.mapToErrorState.<anonymous>' call
|
|
@@ -2222,7 +2222,7 @@
|
|
|
2222
2222
|
if (_this__u8e3s4.d69_1 === get_currentPlayer(table).playerId) {
|
|
2223
2223
|
tmp_2 = null;
|
|
2224
2224
|
} else {
|
|
2225
|
-
tmp_2 = new ErrorState(VOID, getPlayer(table.players, _this__u8e3s4.d69_1).
|
|
2225
|
+
tmp_2 = new ErrorState(VOID, getPlayer(table.players, _this__u8e3s4.d69_1).l6u_1, _this__u8e3s4);
|
|
2226
2226
|
}
|
|
2227
2227
|
tmp = tmp_2;
|
|
2228
2228
|
} else {
|
|
@@ -2255,10 +2255,10 @@
|
|
|
2255
2255
|
return tmp;
|
|
2256
2256
|
}
|
|
2257
2257
|
function toPlayerVM(_this__u8e3s4, currentPlayerId, isGameFinished, round, isRatingUp, wasPlayerOffline) {
|
|
2258
|
-
var tmp4_userInfo = _this__u8e3s4.
|
|
2259
|
-
var tmp5_selectedSuit = _this__u8e3s4.
|
|
2260
|
-
var tmp6_isGameCreator = _this__u8e3s4.
|
|
2261
|
-
var tmp7_isShuffleCards = _this__u8e3s4.
|
|
2258
|
+
var tmp4_userInfo = _this__u8e3s4.l6u_1;
|
|
2259
|
+
var tmp5_selectedSuit = _this__u8e3s4.o6u_1.d6v_1 ? round.trump : null;
|
|
2260
|
+
var tmp6_isGameCreator = _this__u8e3s4.o6u_1.s6u_1;
|
|
2261
|
+
var tmp7_isShuffleCards = _this__u8e3s4.o6u_1.v6u_1;
|
|
2262
2262
|
var tmp8_isCurrentPlayer = currentPlayerId === _this__u8e3s4.playerId;
|
|
2263
2263
|
var tmp0_safe_receiver = round.trump;
|
|
2264
2264
|
var tmp;
|
|
@@ -2270,7 +2270,7 @@
|
|
|
2270
2270
|
// Inline function 'games.jass.logic.client.data.models.toPlayerVM.<anonymous>' call
|
|
2271
2271
|
// Inline function 'kotlin.collections.sumOf' call
|
|
2272
2272
|
var sum = 0;
|
|
2273
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
2273
|
+
var tmp0_iterator = _this__u8e3s4.q6u_1.h6w_1.j();
|
|
2274
2274
|
while (tmp0_iterator.k()) {
|
|
2275
2275
|
var element = tmp0_iterator.l();
|
|
2276
2276
|
var tmp_0 = sum;
|
|
@@ -2316,10 +2316,10 @@
|
|
|
2316
2316
|
return new PlayerViewModel(tmp4_userInfo, tmp5_selectedSuit, tmp7_isShuffleCards, tmp8_isCurrentPlayer, tmp6_isGameCreator, tmp9_points, tmp10_isRatingUp, tmp11_wasPlayerOffline);
|
|
2317
2317
|
}
|
|
2318
2318
|
function toStateVM(_this__u8e3s4, showConnectionStatus, isGameFinished, isStateActive) {
|
|
2319
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2319
|
+
var tmp0_safe_receiver = _this__u8e3s4.m6u_1.m6a_1;
|
|
2320
2320
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s6a_1;
|
|
2321
2321
|
var tmp5_playerId = _this__u8e3s4.playerId;
|
|
2322
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2322
|
+
var tmp1_safe_receiver = _this__u8e3s4.m6u_1.g6a_1;
|
|
2323
2323
|
var tmp;
|
|
2324
2324
|
if (tmp1_safe_receiver == null) {
|
|
2325
2325
|
tmp = null;
|
|
@@ -2336,7 +2336,7 @@
|
|
|
2336
2336
|
tmp = tmp_0;
|
|
2337
2337
|
}
|
|
2338
2338
|
var tmp6_startFromTime = tmp;
|
|
2339
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2339
|
+
var tmp2_safe_receiver = _this__u8e3s4.m6u_1.h6a_1;
|
|
2340
2340
|
var tmp_1;
|
|
2341
2341
|
if (tmp2_safe_receiver == null) {
|
|
2342
2342
|
tmp_1 = null;
|
|
@@ -2353,7 +2353,7 @@
|
|
|
2353
2353
|
tmp_1 = tmp_2;
|
|
2354
2354
|
}
|
|
2355
2355
|
var tmp7_playerTurnTimeout = tmp_1;
|
|
2356
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2356
|
+
var tmp3_safe_receiver = _this__u8e3s4.m6u_1.i6a_1;
|
|
2357
2357
|
var tmp_3;
|
|
2358
2358
|
if (tmp3_safe_receiver == null) {
|
|
2359
2359
|
tmp_3 = null;
|
|
@@ -2389,13 +2389,13 @@
|
|
|
2389
2389
|
tmp_5 = null;
|
|
2390
2390
|
}
|
|
2391
2391
|
var tmp9_connectionState = tmp_5;
|
|
2392
|
-
var tmp10_tag = _this__u8e3s4.
|
|
2393
|
-
var tmp11_state = isStateActive ? _this__u8e3s4.
|
|
2392
|
+
var tmp10_tag = _this__u8e3s4.m6u_1.l6a_1;
|
|
2393
|
+
var tmp11_state = isStateActive ? _this__u8e3s4.m6u_1.j6a_1 : PlayerWaitingState_IDLE_getInstance();
|
|
2394
2394
|
return new PlayerStateViewModel(tmp5_playerId, tmp10_tag, tmp11_state, tmp9_connectionState, tmp6_startFromTime, tmp7_playerTurnTimeout, tmp8_waitPlayerUntilTime);
|
|
2395
2395
|
}
|
|
2396
2396
|
function toVM(_this__u8e3s4, players) {
|
|
2397
|
-
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.c9m_1).
|
|
2398
|
-
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.b9m_1).
|
|
2397
|
+
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.c9m_1).l6u_1;
|
|
2398
|
+
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.b9m_1).l6u_1;
|
|
2399
2399
|
// Inline function 'kotlin.collections.map' call
|
|
2400
2400
|
var this_0 = _this__u8e3s4.d9m_1;
|
|
2401
2401
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2404,7 +2404,7 @@
|
|
|
2404
2404
|
while (tmp0_iterator.k()) {
|
|
2405
2405
|
var item = tmp0_iterator.l();
|
|
2406
2406
|
// Inline function 'games.jass.logic.client.data.models.toVM.<anonymous>' call
|
|
2407
|
-
var tmp$ret$0 = toVM_1(item, getPlayerIndex(players, item.
|
|
2407
|
+
var tmp$ret$0 = toVM_1(item, getPlayerIndex(players, item.r78_1));
|
|
2408
2408
|
destination.e(tmp$ret$0);
|
|
2409
2409
|
}
|
|
2410
2410
|
return new LastBribeViewModel(tmp1_whoPutFirstCardUser, tmp0_whoGotBribeUser, destination);
|
|
@@ -2418,7 +2418,7 @@
|
|
|
2418
2418
|
// Inline function 'kotlin.let' call
|
|
2419
2419
|
// Inline function 'kotlin.contracts.contract' call
|
|
2420
2420
|
// Inline function 'games.jass.logic.client.data.models.toVM.<anonymous>' call
|
|
2421
|
-
tmp = getPlayer(players, _this__u8e3s4.f9m_1).
|
|
2421
|
+
tmp = getPlayer(players, _this__u8e3s4.f9m_1).l6u_1;
|
|
2422
2422
|
}
|
|
2423
2423
|
var tmp4_whoShuffleCardsUserInfo = tmp;
|
|
2424
2424
|
var tmp_0;
|
|
@@ -2428,7 +2428,7 @@
|
|
|
2428
2428
|
// Inline function 'kotlin.let' call
|
|
2429
2429
|
// Inline function 'kotlin.contracts.contract' call
|
|
2430
2430
|
// Inline function 'games.jass.logic.client.data.models.toVM.<anonymous>' call
|
|
2431
|
-
tmp_0 = getPlayer(players, _this__u8e3s4.g9m_1).
|
|
2431
|
+
tmp_0 = getPlayer(players, _this__u8e3s4.g9m_1).l6u_1;
|
|
2432
2432
|
}
|
|
2433
2433
|
var tmp5_whoChoseSuitUserInfo = tmp_0;
|
|
2434
2434
|
var tmp6_playersMode = config.playersMode;
|
|
@@ -2444,16 +2444,16 @@
|
|
|
2444
2444
|
while (tmp0_iterator.k()) {
|
|
2445
2445
|
var item = tmp0_iterator.l();
|
|
2446
2446
|
// Inline function 'games.jass.logic.client.data.models.toVM.<anonymous>' call
|
|
2447
|
-
var tmp0_points = item.
|
|
2447
|
+
var tmp0_points = item.k7p_1;
|
|
2448
2448
|
// Inline function 'kotlin.collections.map' call
|
|
2449
|
-
var this_0 = item.
|
|
2449
|
+
var this_0 = item.j7p_1;
|
|
2450
2450
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2451
2451
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2452
2452
|
var tmp0_iterator_0 = this_0.j();
|
|
2453
2453
|
while (tmp0_iterator_0.k()) {
|
|
2454
2454
|
var item_0 = tmp0_iterator_0.l();
|
|
2455
2455
|
// Inline function 'games.jass.logic.client.data.models.toVM.<anonymous>.<anonymous>' call
|
|
2456
|
-
var tmp$ret$4 = getPlayer(players, item_0).
|
|
2456
|
+
var tmp$ret$4 = getPlayer(players, item_0).l6u_1;
|
|
2457
2457
|
destination_0.e(tmp$ret$4);
|
|
2458
2458
|
}
|
|
2459
2459
|
var tmp$ret$7 = new PointItemViewModel(destination_0, tmp0_points);
|
|
@@ -2469,9 +2469,9 @@
|
|
|
2469
2469
|
function toVM_1(_this__u8e3s4, index, isHighlighted, transition) {
|
|
2470
2470
|
isHighlighted = isHighlighted === VOID ? false : isHighlighted;
|
|
2471
2471
|
transition = transition === VOID ? null : transition;
|
|
2472
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
2473
|
-
var tmp1_card = _this__u8e3s4.
|
|
2474
|
-
var tmp2_position = _this__u8e3s4.
|
|
2472
|
+
var tmp0_playerId = _this__u8e3s4.r78_1;
|
|
2473
|
+
var tmp1_card = _this__u8e3s4.t78_1;
|
|
2474
|
+
var tmp2_position = _this__u8e3s4.s78_1;
|
|
2475
2475
|
return new CardOnTableViewModel(index, tmp0_playerId, tmp2_position, tmp1_card, isHighlighted, transition);
|
|
2476
2476
|
}
|
|
2477
2477
|
function SceneViewModel(roundNumber, sceneId, previousSceneId) {
|
|
@@ -2512,7 +2512,7 @@
|
|
|
2512
2512
|
this.q9m_1 = isRatingUp;
|
|
2513
2513
|
this.r9m_1 = wasPlayerOffline;
|
|
2514
2514
|
}
|
|
2515
|
-
protoOf(PlayerViewModel).
|
|
2515
|
+
protoOf(PlayerViewModel).r6u = function () {
|
|
2516
2516
|
return this.m9m_1;
|
|
2517
2517
|
};
|
|
2518
2518
|
protoOf(PlayerViewModel).z68 = function () {
|
|
@@ -2988,7 +2988,7 @@
|
|
|
2988
2988
|
protoOf(GameClientConfig).m9o = function () {
|
|
2989
2989
|
return this.areOpponentsCardsOpened;
|
|
2990
2990
|
};
|
|
2991
|
-
protoOf(GameClientConfig).
|
|
2991
|
+
protoOf(GameClientConfig).k8w = function () {
|
|
2992
2992
|
return this.sessionAnalytics;
|
|
2993
2993
|
};
|
|
2994
2994
|
protoOf(GameClientConfig).n9o = function () {
|
|
@@ -3304,22 +3304,22 @@
|
|
|
3304
3304
|
return tmp_0 instanceof Expectant ? tmp_0 : THROW_CCE();
|
|
3305
3305
|
}
|
|
3306
3306
|
function mapToExpectant_0(_this__u8e3s4, wrapper) {
|
|
3307
|
-
return new RestartGameExpectant(wrapper.f9p_1, _this__u8e3s4.
|
|
3307
|
+
return new RestartGameExpectant(wrapper.f9p_1, _this__u8e3s4.h8x_1);
|
|
3308
3308
|
}
|
|
3309
3309
|
function mapToExpectant_1(_this__u8e3s4, wrapper) {
|
|
3310
|
-
return new TeamsDataExpectant(wrapper.f9p_1, _this__u8e3s4.
|
|
3310
|
+
return new TeamsDataExpectant(wrapper.f9p_1, _this__u8e3s4.j8x_1, _this__u8e3s4.k8x_1);
|
|
3311
3311
|
}
|
|
3312
3312
|
function mapToExpectant_2(_this__u8e3s4, wrapper) {
|
|
3313
|
-
return new TrumpExpectant(wrapper.f9p_1, _this__u8e3s4.
|
|
3313
|
+
return new TrumpExpectant(wrapper.f9p_1, _this__u8e3s4.p8x_1);
|
|
3314
3314
|
}
|
|
3315
3315
|
function mapToExpectant_3(_this__u8e3s4, wrapper) {
|
|
3316
|
-
return new CombinationChoiceExpectant(wrapper.f9p_1, _this__u8e3s4.
|
|
3316
|
+
return new CombinationChoiceExpectant(wrapper.f9p_1, _this__u8e3s4.t8x_1, _this__u8e3s4.r8x_1, _this__u8e3s4.s8x_1);
|
|
3317
3317
|
}
|
|
3318
3318
|
function mapToExpectant_4(_this__u8e3s4, wrapper) {
|
|
3319
|
-
return new PickUpBribeExpectant(wrapper.f9p_1, _this__u8e3s4.
|
|
3319
|
+
return new PickUpBribeExpectant(wrapper.f9p_1, _this__u8e3s4.i8r_1, _this__u8e3s4.j8r_1);
|
|
3320
3320
|
}
|
|
3321
3321
|
function mapToExpectant_5(_this__u8e3s4, wrapper) {
|
|
3322
|
-
return new WinnerCombinationsExpectant(wrapper.f9p_1, _this__u8e3s4.
|
|
3322
|
+
return new WinnerCombinationsExpectant(wrapper.f9p_1, _this__u8e3s4.v8x_1);
|
|
3323
3323
|
}
|
|
3324
3324
|
function get_clientSerializerModule() {
|
|
3325
3325
|
_init_properties_ClientJsonSerializerModule_kt__gf47e9();
|
|
@@ -3349,22 +3349,22 @@
|
|
|
3349
3349
|
protoOf(GameHistoryViewModel).m5l = function () {
|
|
3350
3350
|
return this.gameId;
|
|
3351
3351
|
};
|
|
3352
|
-
protoOf(GameHistoryViewModel).
|
|
3352
|
+
protoOf(GameHistoryViewModel).c8b = function () {
|
|
3353
3353
|
return this.createdAt;
|
|
3354
3354
|
};
|
|
3355
3355
|
protoOf(GameHistoryViewModel).l9p = function () {
|
|
3356
3356
|
return this.gameType;
|
|
3357
3357
|
};
|
|
3358
|
-
protoOf(GameHistoryViewModel).
|
|
3358
|
+
protoOf(GameHistoryViewModel).o8b = function () {
|
|
3359
3359
|
return this.users;
|
|
3360
3360
|
};
|
|
3361
3361
|
protoOf(GameHistoryViewModel).j2v = function () {
|
|
3362
3362
|
return this.config;
|
|
3363
3363
|
};
|
|
3364
|
-
protoOf(GameHistoryViewModel).
|
|
3364
|
+
protoOf(GameHistoryViewModel).u8e = function () {
|
|
3365
3365
|
return this.gameWinners;
|
|
3366
3366
|
};
|
|
3367
|
-
protoOf(GameHistoryViewModel).
|
|
3367
|
+
protoOf(GameHistoryViewModel).r8e = function () {
|
|
3368
3368
|
return this.metadata;
|
|
3369
3369
|
};
|
|
3370
3370
|
protoOf(GameHistoryViewModel).equals = function (other) {
|
|
@@ -3460,10 +3460,10 @@
|
|
|
3460
3460
|
protoOf(RoundEndedHistoryViewModel).m5l = function () {
|
|
3461
3461
|
return this.gameId;
|
|
3462
3462
|
};
|
|
3463
|
-
protoOf(RoundEndedHistoryViewModel).
|
|
3463
|
+
protoOf(RoundEndedHistoryViewModel).q8e = function () {
|
|
3464
3464
|
return this.roundNumber;
|
|
3465
3465
|
};
|
|
3466
|
-
protoOf(RoundEndedHistoryViewModel).
|
|
3466
|
+
protoOf(RoundEndedHistoryViewModel).d8f = function () {
|
|
3467
3467
|
return this.items;
|
|
3468
3468
|
};
|
|
3469
3469
|
protoOf(RoundEndedHistoryViewModel).n9p = function () {
|
|
@@ -5006,13 +5006,13 @@
|
|
|
5006
5006
|
function CheckSceneBufferUseCase() {
|
|
5007
5007
|
}
|
|
5008
5008
|
protoOf(CheckSceneBufferUseCase).z9p = function (state, action) {
|
|
5009
|
-
if (!state.
|
|
5009
|
+
if (!state.p6n() && !get_isCreated(state)) {
|
|
5010
5010
|
return new PutInBuffer('CheckSceneBufferUseCase.isTableExists');
|
|
5011
5011
|
}
|
|
5012
|
-
var table = state.
|
|
5012
|
+
var table = state.o6n();
|
|
5013
5013
|
if (isInterface(action, InSceneAction)) {
|
|
5014
5014
|
var tmp;
|
|
5015
|
-
if (action.
|
|
5015
|
+
if (action.m8x(table.sceneInfo.z7t_1)) {
|
|
5016
5016
|
tmp = new AvoidBuffer('CheckSceneBufferUseCase.inScene');
|
|
5017
5017
|
} else {
|
|
5018
5018
|
tmp = new PutInBuffer('CheckSceneBufferUseCase.inScene');
|
|
@@ -5026,17 +5026,17 @@
|
|
|
5026
5026
|
this.a9r_1 = ignoreForPlayers;
|
|
5027
5027
|
}
|
|
5028
5028
|
protoOf(NextPlayerTurnBufferUseCase).z9p = function (state, action) {
|
|
5029
|
-
if (!state.
|
|
5029
|
+
if (!state.p6n() && !get_isCreated(state)) {
|
|
5030
5030
|
return new PutInBuffer('NextPlayerTurnBufferUseCase.isTableExists');
|
|
5031
5031
|
}
|
|
5032
|
-
var table = state.
|
|
5032
|
+
var table = state.o6n();
|
|
5033
5033
|
if (isInterface(action, PlayerTurnAnswerAction)) {
|
|
5034
5034
|
var playerTurn = getPlayerTurn(action, table.players);
|
|
5035
5035
|
if (playerTurn == null || this.a9r_1.v1(playerTurn.playerId)) {
|
|
5036
5036
|
return new AvoidBuffer('NextPlayerTurnBufferUseCase.ignored');
|
|
5037
5037
|
}
|
|
5038
5038
|
var tmp;
|
|
5039
|
-
if (playerTurn.
|
|
5039
|
+
if (playerTurn.m6u_1.n6a()) {
|
|
5040
5040
|
tmp = new AvoidBuffer('NextPlayerTurnBufferUseCase.playerTurn');
|
|
5041
5041
|
} else {
|
|
5042
5042
|
tmp = new PutInBuffer('NextPlayerTurnBufferUseCase.playerTurn: ' + ('expected = ' + playerTurn.playerId));
|
|
@@ -5049,8 +5049,8 @@
|
|
|
5049
5049
|
}
|
|
5050
5050
|
protoOf(PassErrorActionBufferUseCase).z9p = function (state, action) {
|
|
5051
5051
|
if (action instanceof ErrorAction) {
|
|
5052
|
-
var reason = action.
|
|
5053
|
-
return checkTerminatedReason(state.
|
|
5052
|
+
var reason = action.z8x_1.o7l_1;
|
|
5053
|
+
return checkTerminatedReason(state.x6m_1, false, reason, 'PassErrorActionBufferUseCase.checkTerminatedReason');
|
|
5054
5054
|
}
|
|
5055
5055
|
return new AvoidBuffer('PassErrorActionBufferUseCase');
|
|
5056
5056
|
};
|
|
@@ -5096,7 +5096,7 @@
|
|
|
5096
5096
|
}
|
|
5097
5097
|
}
|
|
5098
5098
|
}
|
|
5099
|
-
if (isGameFinished && !table.sceneInfo.
|
|
5099
|
+
if (isGameFinished && !table.sceneInfo.p8f()) {
|
|
5100
5100
|
return new PutInBuffer(debugLabel);
|
|
5101
5101
|
}
|
|
5102
5102
|
return new AvoidBuffer(debugLabel);
|
|
@@ -5112,22 +5112,22 @@
|
|
|
5112
5112
|
function PassTerminatedActionBufferUseCase() {
|
|
5113
5113
|
}
|
|
5114
5114
|
protoOf(PassTerminatedActionBufferUseCase).z9p = function (state, action) {
|
|
5115
|
-
if (!state.
|
|
5115
|
+
if (!state.p6n() && !get_isCreated(state)) {
|
|
5116
5116
|
return new PutInBuffer('PassTerminatedActionBufferUseCase: Table not exists');
|
|
5117
5117
|
}
|
|
5118
5118
|
if (isInterface(action, TerminatedAction)) {
|
|
5119
5119
|
var reason = action.reason;
|
|
5120
|
-
return checkTerminatedReason(state.
|
|
5120
|
+
return checkTerminatedReason(state.o6n(), action.isGameFinished, reason, 'PassTerminatedActionBufferUseCase.checkTerminatedReason');
|
|
5121
5121
|
}
|
|
5122
5122
|
return new AvoidBuffer('PassTerminatedActionBufferUseCase');
|
|
5123
5123
|
};
|
|
5124
5124
|
function WaitPlayerAnswerBufferUseCase() {
|
|
5125
5125
|
}
|
|
5126
5126
|
protoOf(WaitPlayerAnswerBufferUseCase).z9p = function (state, action) {
|
|
5127
|
-
if (!state.
|
|
5127
|
+
if (!state.p6n() && !get_isCreated(state)) {
|
|
5128
5128
|
return new PutInBuffer('WaitPlayerAnswerBufferUseCase.isTableExists');
|
|
5129
5129
|
}
|
|
5130
|
-
var table = state.
|
|
5130
|
+
var table = state.o6n();
|
|
5131
5131
|
if (isInterface(action, PlayerTurnAnswerAction)) {
|
|
5132
5132
|
return new AvoidBuffer('WaitPlayerAnswerBufferUseCase.playerTurnAnswer');
|
|
5133
5133
|
}
|
|
@@ -5137,7 +5137,7 @@
|
|
|
5137
5137
|
if (players.p()) {
|
|
5138
5138
|
tmp = new AvoidBuffer('WaitPlayerAnswerBufferUseCase.playerTurn');
|
|
5139
5139
|
} else {
|
|
5140
|
-
var tmp_0 = 'WaitPlayerAnswerBufferUseCase.playerTurn: ' + ('new turn = ' + toString(action.
|
|
5140
|
+
var tmp_0 = 'WaitPlayerAnswerBufferUseCase.playerTurn: ' + ('new turn = ' + toString(action.v8w()) + ', ');
|
|
5141
5141
|
// Inline function 'kotlin.collections.map' call
|
|
5142
5142
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5143
5143
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -5176,7 +5176,7 @@
|
|
|
5176
5176
|
function WaitUntilExpectantFinishedBufferUseCase() {
|
|
5177
5177
|
}
|
|
5178
5178
|
protoOf(WaitUntilExpectantFinishedBufferUseCase).z9p = function (state, action) {
|
|
5179
|
-
if (!state.
|
|
5179
|
+
if (!state.p6n() && !get_isCreated(state)) {
|
|
5180
5180
|
return new PutInBuffer('WaitUntilExpectantFinishedBufferUseCase.isTableExists');
|
|
5181
5181
|
}
|
|
5182
5182
|
var clientState = get_clientPayload_0(state);
|
|
@@ -5282,8 +5282,8 @@
|
|
|
5282
5282
|
return tmp;
|
|
5283
5283
|
}
|
|
5284
5284
|
function checkIsPartnerGetBribe($this, winCard, playerId, players) {
|
|
5285
|
-
var partner = $this.l9r_1.
|
|
5286
|
-
return winCard.
|
|
5285
|
+
var partner = $this.l9r_1.s8h(playerId, players);
|
|
5286
|
+
return winCard.r78_1 === partner.playerId;
|
|
5287
5287
|
}
|
|
5288
5288
|
function checkHasHigherCard($this, winCard, playerCard, gameCards, trump) {
|
|
5289
5289
|
var tmp;
|
|
@@ -5315,10 +5315,10 @@
|
|
|
5315
5315
|
}
|
|
5316
5316
|
protoOf(PutCardValidatorInteractorImpl).k9r = function (playerCard, player, table) {
|
|
5317
5317
|
var trump = table.gameInfo.round.selectedTrump;
|
|
5318
|
-
var playerCards = player.
|
|
5318
|
+
var playerCards = player.n6u_1;
|
|
5319
5319
|
var playerCardSuit = playerCard.x64();
|
|
5320
5320
|
var cardsOnTable = table.cardsOnTable;
|
|
5321
|
-
var tmp0_elvis_lhs = Companion_instance.
|
|
5321
|
+
var tmp0_elvis_lhs = Companion_instance.b8c(cardsOnTable);
|
|
5322
5322
|
var tmp;
|
|
5323
5323
|
if (tmp0_elvis_lhs == null) {
|
|
5324
5324
|
return null;
|
|
@@ -5326,9 +5326,9 @@
|
|
|
5326
5326
|
tmp = tmp0_elvis_lhs;
|
|
5327
5327
|
}
|
|
5328
5328
|
var firstCard = tmp;
|
|
5329
|
-
var firstCardSuit = firstCard.
|
|
5329
|
+
var firstCardSuit = firstCard.t78_1.x64();
|
|
5330
5330
|
var firstCardIsTrump = firstCardSuit.equals(trump);
|
|
5331
|
-
var winCard = this.m9r_1.
|
|
5331
|
+
var winCard = this.m9r_1.o8i(cardsOnTable, trump);
|
|
5332
5332
|
if (firstCardIsTrump && table.config.rules.needToPutHigherTrump) {
|
|
5333
5333
|
if (table.config.playersMode.isTeamGame && checkIsPartnerGetBribe(this, winCard, player.playerId, table.players)) {
|
|
5334
5334
|
var tmp_0;
|
|
@@ -5337,7 +5337,7 @@
|
|
|
5337
5337
|
tmp_0 = null;
|
|
5338
5338
|
break;
|
|
5339
5339
|
case 1:
|
|
5340
|
-
var tmp2_winCard = winCard.
|
|
5340
|
+
var tmp2_winCard = winCard.t78_1;
|
|
5341
5341
|
tmp_0 = isPlayerHasHigherTrumpShouldUseIt(this, playerCards, trump, firstCardSuit, tmp2_winCard, playerCard);
|
|
5342
5342
|
break;
|
|
5343
5343
|
case 2:
|
|
@@ -5349,7 +5349,7 @@
|
|
|
5349
5349
|
}
|
|
5350
5350
|
return tmp_0;
|
|
5351
5351
|
} else {
|
|
5352
|
-
var tmp3_winCard = winCard.
|
|
5352
|
+
var tmp3_winCard = winCard.t78_1;
|
|
5353
5353
|
return isPlayerHasHigherTrumpShouldUseIt(this, playerCards, trump, firstCardSuit, tmp3_winCard, playerCard);
|
|
5354
5354
|
}
|
|
5355
5355
|
}
|
|
@@ -5530,7 +5530,7 @@
|
|
|
5530
5530
|
tmp_1.w9s_1 = this.u9s_1;
|
|
5531
5531
|
this.j9_1 = 1;
|
|
5532
5532
|
var it = this.w9s_1;
|
|
5533
|
-
var tmp_2 = it.
|
|
5533
|
+
var tmp_2 = it.o6n().players;
|
|
5534
5534
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(it);
|
|
5535
5535
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l9q_1;
|
|
5536
5536
|
var tmp_3;
|
|
@@ -5771,7 +5771,7 @@
|
|
|
5771
5771
|
var tmp0_iterator = this_0.j();
|
|
5772
5772
|
while (tmp0_iterator.k()) {
|
|
5773
5773
|
var item = tmp0_iterator.l();
|
|
5774
|
-
destination.e(item.
|
|
5774
|
+
destination.e(item.l6u_1);
|
|
5775
5775
|
}
|
|
5776
5776
|
|
|
5777
5777
|
suspendResult = this.z9u_1.e18(destination, this);
|
|
@@ -5975,15 +5975,15 @@
|
|
|
5975
5975
|
var tmp_1 = this;
|
|
5976
5976
|
tmp_1.w9w_1 = this.u9w_1;
|
|
5977
5977
|
this.j9_1 = 1;
|
|
5978
|
-
var table = this.w9w_1.
|
|
5978
|
+
var table = this.w9w_1.x6m_1;
|
|
5979
5979
|
var sceneInfo = table == null ? null : table.sceneInfo;
|
|
5980
5980
|
var tmp2_safe_receiver = table == null ? null : table.gameInfo;
|
|
5981
5981
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.round;
|
|
5982
5982
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.roundNumber;
|
|
5983
5983
|
var tmp_2 = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
5984
|
-
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.
|
|
5984
|
+
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.z7t_1;
|
|
5985
5985
|
var tmp_3 = tmp6_elvis_lhs == null ? 'WAITING' : tmp6_elvis_lhs;
|
|
5986
|
-
suspendResult = this.v9w_1.e18(new SceneViewModel(tmp_2, tmp_3, sceneInfo == null ? null : sceneInfo.
|
|
5986
|
+
suspendResult = this.v9w_1.e18(new SceneViewModel(tmp_2, tmp_3, sceneInfo == null ? null : sceneInfo.a7u_1), this);
|
|
5987
5987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5988
5988
|
return suspendResult;
|
|
5989
5989
|
}
|
|
@@ -6187,9 +6187,9 @@
|
|
|
6187
6187
|
var it = this.s9y_1;
|
|
6188
6188
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(it);
|
|
6189
6189
|
var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w9q_1;
|
|
6190
|
-
var tmp1_safe_receiver = it.
|
|
6190
|
+
var tmp1_safe_receiver = it.x6m_1;
|
|
6191
6191
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.isGameFinished;
|
|
6192
|
-
suspendResult = this.r9y_1.e18(new GameLifecycleViewModel(it.
|
|
6192
|
+
suspendResult = this.r9y_1.e18(new GameLifecycleViewModel(it.z6m_1, it.a6n_1, tmp_2, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), this);
|
|
6193
6193
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6194
6194
|
return suspendResult;
|
|
6195
6195
|
}
|
|
@@ -6294,7 +6294,7 @@
|
|
|
6294
6294
|
var tmp0_iterator = this_0.j();
|
|
6295
6295
|
while (tmp0_iterator.k()) {
|
|
6296
6296
|
var item = tmp0_iterator.l();
|
|
6297
|
-
destination.e(new PlayerHandMetadataViewModel(item.playerId, item.
|
|
6297
|
+
destination.e(new PlayerHandMetadataViewModel(item.playerId, item.p6u_1.v6v(), item.p6u_1.e6w().c6w_1, item.p6u_1.m6y(), item.p6u_1.o6y()));
|
|
6298
6298
|
}
|
|
6299
6299
|
|
|
6300
6300
|
suspendResult = this.p9z_1.e18(new PlayersHandsMetadataViewModel(destination), this);
|
|
@@ -6501,7 +6501,7 @@
|
|
|
6501
6501
|
var it = this.ma1_1;
|
|
6502
6502
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(it);
|
|
6503
6503
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s9q_1;
|
|
6504
|
-
suspendResult = this.la1_1.e18(tmp1_safe_receiver == null ? null : toVM(tmp1_safe_receiver, it.
|
|
6504
|
+
suspendResult = this.la1_1.e18(tmp1_safe_receiver == null ? null : toVM(tmp1_safe_receiver, it.o6n().players), this);
|
|
6505
6505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6506
6506
|
return suspendResult;
|
|
6507
6507
|
}
|
|
@@ -6603,10 +6603,10 @@
|
|
|
6603
6603
|
tmp_1.la2_1 = this.ja2_1;
|
|
6604
6604
|
this.j9_1 = 1;
|
|
6605
6605
|
var it = this.la2_1;
|
|
6606
|
-
var points = get_isChoosePartnerScene(it.
|
|
6606
|
+
var points = get_isChoosePartnerScene(it.o6n().sceneInfo.z7t_1) ? null : this.ia2_1.a9u_1.n8p(it.o6n().players, it.o6n().config);
|
|
6607
6607
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(it);
|
|
6608
6608
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t9q_1;
|
|
6609
|
-
suspendResult = this.ka2_1.e18(tmp1_safe_receiver == null ? null : toVM_0(tmp1_safe_receiver, it.
|
|
6609
|
+
suspendResult = this.ka2_1.e18(tmp1_safe_receiver == null ? null : toVM_0(tmp1_safe_receiver, it.o6n().config, it.o6n().players, points), this);
|
|
6610
6610
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6611
6611
|
return suspendResult;
|
|
6612
6612
|
}
|
|
@@ -8642,7 +8642,7 @@
|
|
|
8642
8642
|
if (tmp === 0) {
|
|
8643
8643
|
this.k9_1 = 1;
|
|
8644
8644
|
if (get_isCreated(this.vaf_1.state)) {
|
|
8645
|
-
this.vaf_1.dispatch(new ExitFromClientAction(get_currentPlayer(this.vaf_1.state.
|
|
8645
|
+
this.vaf_1.dispatch(new ExitFromClientAction(get_currentPlayer(this.vaf_1.state.o6n()).playerId, false));
|
|
8646
8646
|
}
|
|
8647
8647
|
return Unit_instance;
|
|
8648
8648
|
} else if (tmp === 1) {
|
|
@@ -8763,26 +8763,26 @@
|
|
|
8763
8763
|
this.b9u_1 = gameHistoryInteractor;
|
|
8764
8764
|
}
|
|
8765
8765
|
protoOf(BaseGameMechanic).c5k = function () {
|
|
8766
|
-
return this.w9t_1.y69().
|
|
8766
|
+
return this.w9t_1.y69().o6n().id;
|
|
8767
8767
|
};
|
|
8768
|
-
protoOf(BaseGameMechanic).
|
|
8769
|
-
return this.w9t_1.y69().
|
|
8768
|
+
protoOf(BaseGameMechanic).o6n = function () {
|
|
8769
|
+
return this.w9t_1.y69().o6n();
|
|
8770
8770
|
};
|
|
8771
|
-
protoOf(BaseGameMechanic).
|
|
8772
|
-
return this.w9t_1.y69().
|
|
8771
|
+
protoOf(BaseGameMechanic).p6n = function () {
|
|
8772
|
+
return this.w9t_1.y69().p6n();
|
|
8773
8773
|
};
|
|
8774
|
-
protoOf(BaseGameMechanic).
|
|
8775
|
-
return this.w9t_1.y69().
|
|
8774
|
+
protoOf(BaseGameMechanic).q6n = function () {
|
|
8775
|
+
return this.w9t_1.y69().z6m_1;
|
|
8776
8776
|
};
|
|
8777
8777
|
protoOf(BaseGameMechanic).onCreate = function () {
|
|
8778
|
-
this.w9t_1.
|
|
8778
|
+
this.w9t_1.n6n(BaseGameMechanic$onCreate$slambda_0(this, null));
|
|
8779
8779
|
};
|
|
8780
8780
|
protoOf(BaseGameMechanic).onDestroy = function () {
|
|
8781
|
-
this.w9t_1.
|
|
8781
|
+
this.w9t_1.n6n(BaseGameMechanic$onDestroy$slambda_0(null));
|
|
8782
8782
|
this.w9t_1.d2();
|
|
8783
8783
|
};
|
|
8784
8784
|
protoOf(BaseGameMechanic).getConfig = function () {
|
|
8785
|
-
return this.w9t_1.y69().
|
|
8785
|
+
return this.w9t_1.y69().o6n().config;
|
|
8786
8786
|
};
|
|
8787
8787
|
protoOf(BaseGameMechanic).getClientConfig = function () {
|
|
8788
8788
|
return get_clientPayload_0(this.w9t_1.y69()).i9q_1;
|
|
@@ -8823,7 +8823,7 @@
|
|
|
8823
8823
|
protoOf(BaseGameMechanic).observeScene = function () {
|
|
8824
8824
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
8825
8825
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
8826
|
-
var this_0 = this.w9t_1.
|
|
8826
|
+
var this_0 = this.w9t_1.w6m();
|
|
8827
8827
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
8828
8828
|
var tmp$ret$2 = new _no_name_provided__qut3iv_12(this_0);
|
|
8829
8829
|
return distinctUntilChanged(tmp$ret$2);
|
|
@@ -8839,7 +8839,7 @@
|
|
|
8839
8839
|
protoOf(BaseGameMechanic).observeGameLifecycle = function () {
|
|
8840
8840
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
8841
8841
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
8842
|
-
var this_0 = this.w9t_1.
|
|
8842
|
+
var this_0 = this.w9t_1.w6m();
|
|
8843
8843
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
8844
8844
|
var tmp$ret$2 = new _no_name_provided__qut3iv_14(this_0);
|
|
8845
8845
|
return distinctUntilChanged(tmp$ret$2);
|
|
@@ -8909,25 +8909,25 @@
|
|
|
8909
8909
|
return distinctUntilChanged(tmp$ret$2);
|
|
8910
8910
|
};
|
|
8911
8911
|
protoOf(BaseGameMechanic).switchLastBribe = function (open) {
|
|
8912
|
-
this.w9t_1.
|
|
8912
|
+
this.w9t_1.n6n(BaseGameMechanic$switchLastBribe$slambda_0(open, null));
|
|
8913
8913
|
};
|
|
8914
8914
|
protoOf(BaseGameMechanic).switchGameInfo = function (open) {
|
|
8915
|
-
this.w9t_1.
|
|
8915
|
+
this.w9t_1.n6n(BaseGameMechanic$switchGameInfo$slambda_0(open, null));
|
|
8916
8916
|
};
|
|
8917
8917
|
protoOf(BaseGameMechanic).switchSettings = function (open) {
|
|
8918
|
-
this.w9t_1.
|
|
8918
|
+
this.w9t_1.n6n(BaseGameMechanic$switchSettings$slambda_0(open, null));
|
|
8919
8919
|
};
|
|
8920
8920
|
protoOf(BaseGameMechanic).switchChat = function (open) {
|
|
8921
|
-
this.w9t_1.
|
|
8921
|
+
this.w9t_1.n6n(BaseGameMechanic$switchChat$slambda_0(open, null));
|
|
8922
8922
|
};
|
|
8923
8923
|
protoOf(BaseGameMechanic).foreground = function (foreground) {
|
|
8924
|
-
this.w9t_1.
|
|
8924
|
+
this.w9t_1.n6n(BaseGameMechanic$foreground$slambda_0(foreground, null));
|
|
8925
8925
|
};
|
|
8926
8926
|
protoOf(BaseGameMechanic).updateConfig = function (updateConfig) {
|
|
8927
|
-
this.w9t_1.
|
|
8927
|
+
this.w9t_1.n6n(BaseGameMechanic$updateConfig$slambda_0(updateConfig, null));
|
|
8928
8928
|
};
|
|
8929
8929
|
protoOf(BaseGameMechanic).clientMessage = function (message) {
|
|
8930
|
-
this.w9t_1.
|
|
8930
|
+
this.w9t_1.n6n(BaseGameMechanic$clientMessage$slambda_0(message, null));
|
|
8931
8931
|
};
|
|
8932
8932
|
protoOf(BaseGameMechanic).observeShowTutorial = function () {
|
|
8933
8933
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
@@ -8938,10 +8938,10 @@
|
|
|
8938
8938
|
return distinctUntilChanged(tmp$ret$2);
|
|
8939
8939
|
};
|
|
8940
8940
|
protoOf(BaseGameMechanic).tutorialPassed = function (skipped) {
|
|
8941
|
-
this.w9t_1.
|
|
8941
|
+
this.w9t_1.n6n(BaseGameMechanic$tutorialPassed$slambda_0(skipped, null));
|
|
8942
8942
|
};
|
|
8943
8943
|
protoOf(BaseGameMechanic).playerExit = function () {
|
|
8944
|
-
this.w9t_1.
|
|
8944
|
+
this.w9t_1.n6n(BaseGameMechanic$playerExit$slambda_0(null));
|
|
8945
8945
|
};
|
|
8946
8946
|
protoOf(BaseGameMechanic).observeRestartGameExpectant = function () {
|
|
8947
8947
|
// Inline function 'games.jass.logic.client.utils.observeNotFinishedExpectant' call
|
|
@@ -8961,7 +8961,7 @@
|
|
|
8961
8961
|
return distinctUntilChanged(tmp$ret$9);
|
|
8962
8962
|
};
|
|
8963
8963
|
protoOf(BaseGameMechanic).error = function (error) {
|
|
8964
|
-
this.w9t_1.
|
|
8964
|
+
this.w9t_1.n6n(BaseGameMechanic$error$slambda_0(error, null));
|
|
8965
8965
|
};
|
|
8966
8966
|
protoOf(BaseGameMechanic).waitingForConnection = function () {
|
|
8967
8967
|
this.error(new ErrorState(VOID, VOID, WaitingForConnectionReason_getInstance()));
|
|
@@ -8995,7 +8995,7 @@
|
|
|
8995
8995
|
function OnlineGameMechanic() {
|
|
8996
8996
|
}
|
|
8997
8997
|
function passWhenIsCreating($this, store, action) {
|
|
8998
|
-
var gameLifecycleState = store.state.
|
|
8998
|
+
var gameLifecycleState = store.state.z6m_1;
|
|
8999
8999
|
if (get_isCreating(gameLifecycleState) || get_isFinished(gameLifecycleState)) {
|
|
9000
9000
|
store.dispatch(action);
|
|
9001
9001
|
} else if (get_isFinishing(gameLifecycleState)) {
|
|
@@ -9005,7 +9005,7 @@
|
|
|
9005
9005
|
}
|
|
9006
9006
|
}
|
|
9007
9007
|
function passWhenIsCreated($this, store, action) {
|
|
9008
|
-
var gameLifecycleState = store.state.
|
|
9008
|
+
var gameLifecycleState = store.state.z6m_1;
|
|
9009
9009
|
if (get_isCreated_0(gameLifecycleState)) {
|
|
9010
9010
|
store.dispatch(action);
|
|
9011
9011
|
} else {
|
|
@@ -9025,7 +9025,7 @@
|
|
|
9025
9025
|
}
|
|
9026
9026
|
}
|
|
9027
9027
|
function passWhenIsCreatedOrFinishing($this, store, action) {
|
|
9028
|
-
var gameLifecycleState = store.state.
|
|
9028
|
+
var gameLifecycleState = store.state.z6m_1;
|
|
9029
9029
|
if (get_isCreated_0(gameLifecycleState) || get_isFinishing(gameLifecycleState)) {
|
|
9030
9030
|
store.dispatch(action);
|
|
9031
9031
|
} else {
|
|
@@ -9113,7 +9113,7 @@
|
|
|
9113
9113
|
return this.wag_1;
|
|
9114
9114
|
};
|
|
9115
9115
|
protoOf(OnlineGameMechanicImpl).observeFromClientAction = function () {
|
|
9116
|
-
return this.xag_1.
|
|
9116
|
+
return this.xag_1.o8j();
|
|
9117
9117
|
};
|
|
9118
9118
|
protoOf(OnlineGameMechanicImpl).mechanicActions = function (actions) {
|
|
9119
9119
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -9129,7 +9129,7 @@
|
|
|
9129
9129
|
destination.e(tmp$ret$0);
|
|
9130
9130
|
}
|
|
9131
9131
|
this.yag_1.d('OnlineGameMechanic', 'mechanicActions = ' + toString(destination));
|
|
9132
|
-
this.w9t_1.
|
|
9132
|
+
this.w9t_1.n6n(OnlineGameMechanicImpl$mechanicActions$slambda_0(actions, this, null));
|
|
9133
9133
|
};
|
|
9134
9134
|
function SingleGameMechanic(currentPlayerId, persistentAppStateInteractor, statisticsInteractor, gameHistoryInteractor, gameClient, clientConfig, playersSceneContract, teamsMechanicReducer, pointsInteractor) {
|
|
9135
9135
|
BaseGameMechanic.call(this, gameClient, clientConfig, playersSceneContract, teamsMechanicReducer, pointsInteractor, gameHistoryInteractor);
|
|
@@ -9902,11 +9902,11 @@
|
|
|
9902
9902
|
var tmp$ret$0 = Unit_instance;
|
|
9903
9903
|
l$ret$1: do {
|
|
9904
9904
|
var state = this.hao_1;
|
|
9905
|
-
if (!state.
|
|
9905
|
+
if (!state.p6n()) {
|
|
9906
9906
|
tmp$ret$0 = null;
|
|
9907
9907
|
break l$ret$1;
|
|
9908
9908
|
}
|
|
9909
|
-
var table = state.
|
|
9909
|
+
var table = state.o6n();
|
|
9910
9910
|
var this_0 = table.players;
|
|
9911
9911
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
9912
9912
|
var tmp0_iterator = this_0.j();
|
|
@@ -10049,11 +10049,11 @@
|
|
|
10049
10049
|
var tmp$ret$0 = Unit_instance;
|
|
10050
10050
|
l$ret$1: do {
|
|
10051
10051
|
var state = this.oap_1;
|
|
10052
|
-
if (!state.
|
|
10052
|
+
if (!state.p6n()) {
|
|
10053
10053
|
tmp$ret$0 = null;
|
|
10054
10054
|
break l$ret$1;
|
|
10055
10055
|
}
|
|
10056
|
-
var table = state.
|
|
10056
|
+
var table = state.o6n();
|
|
10057
10057
|
var player = getPlayer(table.players, this.jap_1);
|
|
10058
10058
|
tmp$ret$0 = toStateVM(player, this.kap_1.mao_1.showPlayerConnectionState, table.isGameFinished, get_isCreated(state));
|
|
10059
10059
|
}
|
|
@@ -10187,11 +10187,11 @@
|
|
|
10187
10187
|
var tmp$ret$0 = Unit_instance;
|
|
10188
10188
|
l$ret$1: do {
|
|
10189
10189
|
var state = this.taq_1;
|
|
10190
|
-
if (!state.
|
|
10190
|
+
if (!state.p6n()) {
|
|
10191
10191
|
tmp$ret$0 = null;
|
|
10192
10192
|
break l$ret$1;
|
|
10193
10193
|
}
|
|
10194
|
-
var player = getPlayer(state.
|
|
10194
|
+
var player = getPlayer(state.o6n().players, this.paq_1);
|
|
10195
10195
|
var tmp0_safe_receiver = findMessageForPlayer(this.qaq_1, player.playerId, get_clientPayload_0(state).j9q_1);
|
|
10196
10196
|
var tmp_2;
|
|
10197
10197
|
if (tmp0_safe_receiver == null) {
|
|
@@ -10308,7 +10308,7 @@
|
|
|
10308
10308
|
var tmp_2 = this;
|
|
10309
10309
|
var table = this.var_1;
|
|
10310
10310
|
var player = getPlayer(table.players, this.rar_1);
|
|
10311
|
-
var tmp0_safe_receiver = player.
|
|
10311
|
+
var tmp0_safe_receiver = player.m6u_1.m6a_1;
|
|
10312
10312
|
tmp_2.war_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s6a_1;
|
|
10313
10313
|
if (this.war_1 == null) {
|
|
10314
10314
|
this.tar_1 = Unit_instance;
|
|
@@ -10452,7 +10452,7 @@
|
|
|
10452
10452
|
while (tmp0_iterator_0.k()) {
|
|
10453
10453
|
var element_0 = tmp0_iterator_0.l();
|
|
10454
10454
|
// Inline function 'games.jass.logic.client.domain.scenes.delegates.PlayersSceneContractImpl.findMessageForPlayer.<anonymous>' call
|
|
10455
|
-
if (element_0.
|
|
10455
|
+
if (element_0.r6q()) {
|
|
10456
10456
|
destination_0.e(element_0);
|
|
10457
10457
|
}
|
|
10458
10458
|
}
|
|
@@ -10469,7 +10469,7 @@
|
|
|
10469
10469
|
while (iterator.c5()) {
|
|
10470
10470
|
var element_1 = iterator.e5();
|
|
10471
10471
|
// Inline function 'games.jass.logic.client.domain.scenes.delegates.PlayersSceneContractImpl.findMessageForPlayer.<anonymous>' call
|
|
10472
|
-
if (element_1.
|
|
10472
|
+
if (element_1.w6r().o69_1 === playerId) {
|
|
10473
10473
|
tmp$ret$10 = element_1;
|
|
10474
10474
|
break $l$block;
|
|
10475
10475
|
}
|
|
@@ -10728,7 +10728,7 @@
|
|
|
10728
10728
|
return this.lao_1;
|
|
10729
10729
|
};
|
|
10730
10730
|
protoOf(PlayersSceneContractImpl).hag = function () {
|
|
10731
|
-
return getPlayersVM(this.lao_1.y69().
|
|
10731
|
+
return getPlayersVM(this.lao_1.y69().o6n(), this);
|
|
10732
10732
|
};
|
|
10733
10733
|
protoOf(PlayersSceneContractImpl).iag = function () {
|
|
10734
10734
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
@@ -10749,7 +10749,7 @@
|
|
|
10749
10749
|
protoOf(PlayersSceneContractImpl).kag = function () {
|
|
10750
10750
|
// Inline function 'kotlinx.coroutines.flow.mapNotNull' call
|
|
10751
10751
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
10752
|
-
var this_0 = this.lao_1.
|
|
10752
|
+
var this_0 = this.lao_1.w6m();
|
|
10753
10753
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
10754
10754
|
var tmp$ret$2 = new _no_name_provided__qut3iv_31(this_0, this);
|
|
10755
10755
|
return this.tal(distinctUntilChanged(tmp$ret$2));
|
|
@@ -10757,7 +10757,7 @@
|
|
|
10757
10757
|
protoOf(PlayersSceneContractImpl).lag = function (playerId) {
|
|
10758
10758
|
// Inline function 'kotlinx.coroutines.flow.mapNotNull' call
|
|
10759
10759
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
10760
|
-
var this_0 = this.lao_1.
|
|
10760
|
+
var this_0 = this.lao_1.w6m();
|
|
10761
10761
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
10762
10762
|
var tmp$ret$2 = new _no_name_provided__qut3iv_32(this_0, playerId, this);
|
|
10763
10763
|
return this.tal(distinctUntilChanged(tmp$ret$2));
|
|
@@ -10765,7 +10765,7 @@
|
|
|
10765
10765
|
protoOf(PlayersSceneContractImpl).mag = function (playerId) {
|
|
10766
10766
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
10767
10767
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
10768
|
-
var this_0 = this.lao_1.
|
|
10768
|
+
var this_0 = this.lao_1.w6m();
|
|
10769
10769
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
10770
10770
|
var tmp$ret$2 = new _no_name_provided__qut3iv_33(this_0, playerId, this);
|
|
10771
10771
|
return this.tal(distinctUntilChanged(tmp$ret$2));
|
|
@@ -11395,11 +11395,11 @@
|
|
|
11395
11395
|
var tmp$ret$24 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
11396
11396
|
tmp_23.rau_1 = Instance(di, tmp$ret$24, null).d62(this, clientGameHistoryInteractor$factory());
|
|
11397
11397
|
}
|
|
11398
|
-
protoOf(ClientCommonStoreContract).
|
|
11399
|
-
return plus(plus(this.dau_1.
|
|
11398
|
+
protoOf(ClientCommonStoreContract).o8y = function () {
|
|
11399
|
+
return plus(plus(this.dau_1.o8y(), listOfNotNull([_get_gameClientConfig__xfscic_0(this).validateExpectantActions ? expectantLifecycleReducer() : null, _get_gameClientConfig__xfscic_0(this).validateExpectantActions ? expectantActionReducer() : null, bufferReducer(), messageReducer(), _get_gameClientConfig__xfscic_0(this).validateSceneActiveState ? sceneActivationReducer() : null, clientResetMessagesAfterSelectedTrumpReducer(_get_logger__rkp4sl_0(this)), clientResetMessagesAfterBribeReducer(_get_logger__rkp4sl_0(this)), clientUIReducer(this.cau_1), clientResetProcessingCardReducer(), clientSceneReducer(_get_logger__rkp4sl_0(this), _get_clientLifecycleReducer__6ihp6m(this)), clientCombinationToAnnounceStateOnPlayerTurnReducer(_get_clientCombinationsReducer__u5899o(this)), _get_transitionsReducer__bsis4j(this).sau(this.cau_1), _get_transitionsReducer__bsis4j(this).tau(this.cau_1), _get_transitionsReducer__bsis4j(this).uau(), _get_transitionsReducer__bsis4j(this).vau(this.cau_1), _get_transitionsReducer__bsis4j(this).wau()])), this.eau_1.o8y());
|
|
11400
11400
|
};
|
|
11401
|
-
protoOf(ClientCommonStoreContract).
|
|
11402
|
-
return plus(plus(plus(plus(plus(this.dau_1.
|
|
11401
|
+
protoOf(ClientCommonStoreContract).p8y = function () {
|
|
11402
|
+
return plus(plus(plus(plus(plus(this.dau_1.p8y(), listOfNotNull([checkValidCurrentPlayerIdMiddleware(this.cau_1, _get_logger__rkp4sl_0(this)), checkExpectantsMiddleware(_get_logger__rkp4sl_0(this))])), listOfNotNull([_get_gameClientConfig__xfscic_0(this).validateCardOnMove ? validateCardOnMoveMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl_0(this)) : null, clientShowDisabledCardMessageMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl_0(this)), clientCheckCombinationsMiddleware(_get_combinationProvider__3gs1n3(this), _get_playerTurnTagProvider__7cizx8(this)), gameHistoryMiddleware(_get_asyncProvider__jbpyhw(this), _get_clientGameHistoryInteractor__6os8wx(this)), finishingGameWhenPlayerExitsMiddleware(_get_gameClientConfig__xfscic_0(this)), startResetTimerForInfoMessageMiddleware(), clearTimersWhenErrorMiddleware(), resetInfoMessageWhenShownMiddleware(), roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this))])), bufferMiddleware(_get_bufferInteractor__bbjsb2_0(this))), expectantMiddlewares()), this.eau_1.p8y());
|
|
11403
11403
|
};
|
|
11404
11404
|
function messageFactory$factory() {
|
|
11405
11405
|
return getPropertyCallableRef('messageFactory', 1, KProperty1, function (receiver) {
|
|
@@ -11609,6 +11609,12 @@
|
|
|
11609
11609
|
dealerInteractor$factory_0();
|
|
11610
11610
|
return this_0.u();
|
|
11611
11611
|
}
|
|
11612
|
+
function _get_mechanicReducers__ipi0tc($this) {
|
|
11613
|
+
// Inline function 'kotlin.getValue' call
|
|
11614
|
+
var this_0 = $this.pav_1;
|
|
11615
|
+
mechanicReducers$factory_0();
|
|
11616
|
+
return this_0.u();
|
|
11617
|
+
}
|
|
11612
11618
|
function OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3(this$0) {
|
|
11613
11619
|
return function (it) {
|
|
11614
11620
|
return it === this$0.xau_1;
|
|
@@ -11707,29 +11713,35 @@
|
|
|
11707
11713
|
var tmp_24 = typeToken(createKType(getKClass(DealerInteractor), arrayOf([]), false));
|
|
11708
11714
|
var tmp$ret$24 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
11709
11715
|
tmp_23.oav_1 = Instance(di, tmp$ret$24, null).d62(this, dealerInteractor$factory());
|
|
11716
|
+
var tmp_25 = this;
|
|
11717
|
+
// Inline function 'org.kodein.di.instance' call
|
|
11718
|
+
// Inline function 'org.kodein.type.generic' call
|
|
11719
|
+
var tmp_26 = typeToken(createKType(getKClass(MechanicReducers), arrayOf([]), false));
|
|
11720
|
+
var tmp$ret$26 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE();
|
|
11721
|
+
tmp_25.pav_1 = Instance(di, tmp$ret$26, null).d62(this, mechanicReducers$factory());
|
|
11710
11722
|
}
|
|
11711
|
-
protoOf(OnlineGameStoreContract).
|
|
11712
|
-
var tmp = plus(this.yau_1.
|
|
11723
|
+
protoOf(OnlineGameStoreContract).o8y = function () {
|
|
11724
|
+
var tmp = plus(this.yau_1.o8y(), listOfNotNull([_get_mechanicReducers__ipi0tc(this).y8z(), clientErrorStateWhenTerminationActionReducer(_get_clientLifecycleReducer__6ihp6m_0(this))]));
|
|
11713
11725
|
var tmp_0;
|
|
11714
11726
|
if (_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer) {
|
|
11715
|
-
tmp_0 = this.zau_1.
|
|
11727
|
+
tmp_0 = this.zau_1.o8y();
|
|
11716
11728
|
} else {
|
|
11717
11729
|
tmp_0 = emptyList();
|
|
11718
11730
|
}
|
|
11719
|
-
return plus(plus(plus(tmp, tmp_0), this.bav_1.
|
|
11731
|
+
return plus(plus(plus(tmp, tmp_0), this.bav_1.o8y()), this.aav_1.o8y());
|
|
11720
11732
|
};
|
|
11721
|
-
protoOf(OnlineGameStoreContract).
|
|
11733
|
+
protoOf(OnlineGameStoreContract).p8y = function () {
|
|
11722
11734
|
var messagesMiddleware = new MessagesMiddleware(_get_messageFactory__6vg0vc_0(this), _get_pointsInteractor__5t71wv(this), _get_teamsLogicProvider__u10pm6(this));
|
|
11723
|
-
var tmp = this.yau_1.
|
|
11735
|
+
var tmp = this.yau_1.p8y();
|
|
11724
11736
|
var tmp_0;
|
|
11725
11737
|
if (_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer) {
|
|
11726
|
-
var tmp_1 = this.zau_1.
|
|
11738
|
+
var tmp_1 = this.zau_1.p8y();
|
|
11727
11739
|
var tmp_2 = playerTurnTimeoutMiddleware(_get_asyncProvider__jbpyhw_0(this));
|
|
11728
11740
|
tmp_0 = plus(tmp_1, listOf([tmp_2, reloadTimersWhenContinueGameMiddleware(true, VOID, OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3(this))]));
|
|
11729
11741
|
} else {
|
|
11730
11742
|
tmp_0 = emptyList();
|
|
11731
11743
|
}
|
|
11732
|
-
var tmp_3 = plus(plus(plus(plus(tmp, tmp_0), this.bav_1.
|
|
11744
|
+
var tmp_3 = plus(plus(plus(plus(tmp, tmp_0), this.bav_1.p8y()), this.aav_1.p8y()), listOfNotNull([sendFromClientEventsMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_fromClientEventsObserver__a7vzd3(this)), announceCombinationMiddleware(_get_playerTurnTagProvider__7cizx8_0(this)), clientHostDealerMiddleware(this.xau_1, _get_dealerInteractor__6aitmv(this), _get_playerTurnTagProvider__7cizx8_0(this)), _get_logicConfig__52ww9d(this).supportBackwardActions ? clientConsumeFromClientActionsMiddleware(_get_gameLogicInteractor__895s7o(this)) : null, messagesMiddleware.tav(this.xau_1)]));
|
|
11733
11745
|
var tmp_4;
|
|
11734
11746
|
if (_get_botConfig__cpaxzc(this).autoStepLastCard) {
|
|
11735
11747
|
var tmp_5;
|
|
@@ -11810,6 +11822,11 @@
|
|
|
11810
11822
|
return _get_dealerInteractor__6aitmv(receiver);
|
|
11811
11823
|
}, null);
|
|
11812
11824
|
}
|
|
11825
|
+
function mechanicReducers$factory() {
|
|
11826
|
+
return getPropertyCallableRef('mechanicReducers', 1, KProperty1, function (receiver) {
|
|
11827
|
+
return _get_mechanicReducers__ipi0tc(receiver);
|
|
11828
|
+
}, null);
|
|
11829
|
+
}
|
|
11813
11830
|
function messageFactory$factory_2() {
|
|
11814
11831
|
return getPropertyCallableRef('messageFactory', 1, KProperty1, function (receiver) {
|
|
11815
11832
|
return _get_messageFactory__6vg0vc_0(receiver);
|
|
@@ -11875,74 +11892,79 @@
|
|
|
11875
11892
|
return _get_dealerInteractor__6aitmv(receiver);
|
|
11876
11893
|
}, null);
|
|
11877
11894
|
}
|
|
11895
|
+
function mechanicReducers$factory_0() {
|
|
11896
|
+
return getPropertyCallableRef('mechanicReducers', 1, KProperty1, function (receiver) {
|
|
11897
|
+
return _get_mechanicReducers__ipi0tc(receiver);
|
|
11898
|
+
}, null);
|
|
11899
|
+
}
|
|
11878
11900
|
function _get_messageFactory__6vg0vc_1($this) {
|
|
11879
11901
|
// Inline function 'kotlin.getValue' call
|
|
11880
|
-
var this_0 = $this.
|
|
11902
|
+
var this_0 = $this.zav_1;
|
|
11881
11903
|
messageFactory$factory_4();
|
|
11882
11904
|
return this_0.u();
|
|
11883
11905
|
}
|
|
11884
11906
|
function _get_pointsInteractor__5t71wv_0($this) {
|
|
11885
11907
|
// Inline function 'kotlin.getValue' call
|
|
11886
|
-
var this_0 = $this.
|
|
11908
|
+
var this_0 = $this.aaw_1;
|
|
11887
11909
|
pointsInteractor$factory_2();
|
|
11888
11910
|
return this_0.u();
|
|
11889
11911
|
}
|
|
11890
11912
|
function _get_teamsLogicProvider__u10pm6_0($this) {
|
|
11891
11913
|
// Inline function 'kotlin.getValue' call
|
|
11892
|
-
var this_0 = $this.
|
|
11914
|
+
var this_0 = $this.baw_1;
|
|
11893
11915
|
teamsLogicProvider$factory_2();
|
|
11894
11916
|
return this_0.u();
|
|
11895
11917
|
}
|
|
11896
11918
|
function _get_clientStatisticsInteractor__s4ngf8($this) {
|
|
11897
11919
|
// Inline function 'kotlin.getValue' call
|
|
11898
|
-
var this_0 = $this.
|
|
11920
|
+
var this_0 = $this.caw_1;
|
|
11899
11921
|
clientStatisticsInteractor$factory_0();
|
|
11900
11922
|
return this_0.u();
|
|
11901
11923
|
}
|
|
11902
11924
|
function _get_asyncProvider__jbpyhw_1($this) {
|
|
11903
11925
|
// Inline function 'kotlin.getValue' call
|
|
11904
|
-
var this_0 = $this.
|
|
11926
|
+
var this_0 = $this.daw_1;
|
|
11905
11927
|
asyncProvider$factory_4();
|
|
11906
11928
|
return this_0.u();
|
|
11907
11929
|
}
|
|
11908
11930
|
function _get_persistentAppStateInteractor__5jt7l7($this) {
|
|
11909
11931
|
// Inline function 'kotlin.getValue' call
|
|
11910
|
-
var this_0 = $this.
|
|
11932
|
+
var this_0 = $this.eaw_1;
|
|
11911
11933
|
persistentAppStateInteractor$factory_0();
|
|
11912
11934
|
return this_0.u();
|
|
11913
11935
|
}
|
|
11914
11936
|
function _get_gameClientConfig__xfscic_2($this) {
|
|
11915
11937
|
// Inline function 'kotlin.getValue' call
|
|
11916
|
-
var this_0 = $this.
|
|
11938
|
+
var this_0 = $this.faw_1;
|
|
11917
11939
|
gameClientConfig$factory_6();
|
|
11918
11940
|
return this_0.u();
|
|
11919
11941
|
}
|
|
11920
11942
|
function _get_botConfig__cpaxzc_0($this) {
|
|
11921
11943
|
// Inline function 'kotlin.getValue' call
|
|
11922
|
-
var this_0 = $this.
|
|
11944
|
+
var this_0 = $this.gaw_1;
|
|
11923
11945
|
botConfig$factory_2();
|
|
11924
11946
|
return this_0.u();
|
|
11925
11947
|
}
|
|
11926
11948
|
function _get_lastCardInteractor__h6lq3w_0($this) {
|
|
11927
11949
|
// Inline function 'kotlin.getValue' call
|
|
11928
|
-
var this_0 = $this.
|
|
11950
|
+
var this_0 = $this.haw_1;
|
|
11929
11951
|
lastCardInteractor$factory_2();
|
|
11930
11952
|
return this_0.u();
|
|
11931
11953
|
}
|
|
11932
11954
|
function _get_playerTurnTagProvider__7cizx8_1($this) {
|
|
11933
11955
|
// Inline function 'kotlin.getValue' call
|
|
11934
|
-
var this_0 = $this.
|
|
11956
|
+
var this_0 = $this.iaw_1;
|
|
11935
11957
|
playerTurnTagProvider$factory_4();
|
|
11936
11958
|
return this_0.u();
|
|
11937
11959
|
}
|
|
11938
11960
|
function SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this$0) {
|
|
11939
11961
|
return function (it) {
|
|
11940
|
-
return !(it === this$0.
|
|
11962
|
+
return !(it === this$0.uav_1) || _get_gameClientConfig__xfscic_2(this$0).isAutoStepCurrentPlayer;
|
|
11941
11963
|
};
|
|
11942
11964
|
}
|
|
11943
11965
|
function SingleGameStoreContract$_get_middlewares_$lambda_dj4vza_0(this$0) {
|
|
11944
11966
|
return function (player) {
|
|
11945
|
-
var isCurrentPlayer = player.playerId === this$0.
|
|
11967
|
+
var isCurrentPlayer = player.playerId === this$0.uav_1;
|
|
11946
11968
|
return !isCurrentPlayer || _get_gameClientConfig__xfscic_2(this$0).isAutoStepCurrentPlayer;
|
|
11947
11969
|
};
|
|
11948
11970
|
}
|
|
@@ -11968,88 +11990,88 @@
|
|
|
11968
11990
|
}
|
|
11969
11991
|
botGameStoreContract = tmp;
|
|
11970
11992
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di, currentPlayerId) : fileLoggerStoreContract;
|
|
11971
|
-
this.
|
|
11972
|
-
this.
|
|
11973
|
-
this.
|
|
11974
|
-
this.
|
|
11975
|
-
this.
|
|
11993
|
+
this.uav_1 = currentPlayerId;
|
|
11994
|
+
this.vav_1 = clientCommonStoreContract;
|
|
11995
|
+
this.wav_1 = gameMechanicStoreContract;
|
|
11996
|
+
this.xav_1 = botGameStoreContract;
|
|
11997
|
+
this.yav_1 = fileLoggerStoreContract;
|
|
11976
11998
|
var tmp_3 = this;
|
|
11977
11999
|
// Inline function 'org.kodein.di.instance' call
|
|
11978
12000
|
// Inline function 'org.kodein.type.generic' call
|
|
11979
12001
|
var tmp_4 = typeToken(createKType(getKClass(MessageFactory), arrayOf([]), false));
|
|
11980
12002
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
11981
|
-
tmp_3.
|
|
12003
|
+
tmp_3.zav_1 = Instance(di, tmp$ret$2, null).d62(this, messageFactory$factory_3());
|
|
11982
12004
|
var tmp_5 = this;
|
|
11983
12005
|
// Inline function 'org.kodein.di.instance' call
|
|
11984
12006
|
// Inline function 'org.kodein.type.generic' call
|
|
11985
12007
|
var tmp_6 = typeToken(createKType(getKClass(PointsInteractor), arrayOf([]), false));
|
|
11986
12008
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
11987
|
-
tmp_5.
|
|
12009
|
+
tmp_5.aaw_1 = Instance(di, tmp$ret$4, null).d62(this, pointsInteractor$factory_1());
|
|
11988
12010
|
var tmp_7 = this;
|
|
11989
12011
|
// Inline function 'org.kodein.di.instance' call
|
|
11990
12012
|
// Inline function 'org.kodein.type.generic' call
|
|
11991
12013
|
var tmp_8 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
11992
12014
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
11993
|
-
tmp_7.
|
|
12015
|
+
tmp_7.baw_1 = Instance(di, tmp$ret$6, null).d62(this, teamsLogicProvider$factory_1());
|
|
11994
12016
|
var tmp_9 = this;
|
|
11995
12017
|
// Inline function 'org.kodein.di.instance' call
|
|
11996
12018
|
// Inline function 'org.kodein.type.generic' call
|
|
11997
12019
|
var tmp_10 = typeToken(createKType(getKClass(ClientStatisticsInteractor), arrayOf([]), false));
|
|
11998
12020
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
11999
|
-
tmp_9.
|
|
12021
|
+
tmp_9.caw_1 = Instance(di, tmp$ret$8, null).d62(this, clientStatisticsInteractor$factory());
|
|
12000
12022
|
var tmp_11 = this;
|
|
12001
12023
|
// Inline function 'org.kodein.di.instance' call
|
|
12002
12024
|
// Inline function 'org.kodein.type.generic' call
|
|
12003
12025
|
var tmp_12 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
12004
12026
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
12005
|
-
tmp_11.
|
|
12027
|
+
tmp_11.daw_1 = Instance(di, tmp$ret$10, null).d62(this, asyncProvider$factory_3());
|
|
12006
12028
|
var tmp_13 = this;
|
|
12007
12029
|
// Inline function 'org.kodein.di.instance' call
|
|
12008
12030
|
// Inline function 'org.kodein.type.generic' call
|
|
12009
12031
|
var tmp_14 = typeToken(createKType(getKClass(PersistentAppStateInteractor), arrayOf([]), false));
|
|
12010
12032
|
var tmp$ret$12 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
12011
|
-
tmp_13.
|
|
12033
|
+
tmp_13.eaw_1 = Instance(di, tmp$ret$12, null).d62(this, persistentAppStateInteractor$factory());
|
|
12012
12034
|
var tmp_15 = this;
|
|
12013
12035
|
// Inline function 'org.kodein.di.instance' call
|
|
12014
12036
|
// Inline function 'org.kodein.type.generic' call
|
|
12015
12037
|
var tmp_16 = typeToken(createKType(getKClass(GameClientConfig), arrayOf([]), false));
|
|
12016
12038
|
var tmp$ret$14 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
12017
|
-
tmp_15.
|
|
12039
|
+
tmp_15.faw_1 = Instance(di, tmp$ret$14, null).d62(this, gameClientConfig$factory_5());
|
|
12018
12040
|
var tmp_17 = this;
|
|
12019
12041
|
// Inline function 'org.kodein.di.instance' call
|
|
12020
12042
|
// Inline function 'org.kodein.type.generic' call
|
|
12021
12043
|
var tmp_18 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
12022
12044
|
var tmp$ret$16 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
12023
|
-
tmp_17.
|
|
12045
|
+
tmp_17.gaw_1 = Instance(di, tmp$ret$16, null).d62(this, botConfig$factory_1());
|
|
12024
12046
|
var tmp_19 = this;
|
|
12025
12047
|
// Inline function 'org.kodein.di.instance' call
|
|
12026
12048
|
// Inline function 'org.kodein.type.generic' call
|
|
12027
12049
|
var tmp_20 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
12028
12050
|
var tmp$ret$18 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
12029
|
-
tmp_19.
|
|
12051
|
+
tmp_19.haw_1 = Instance(di, tmp$ret$18, null).d62(this, lastCardInteractor$factory_1());
|
|
12030
12052
|
var tmp_21 = this;
|
|
12031
12053
|
// Inline function 'org.kodein.di.instance' call
|
|
12032
12054
|
// Inline function 'org.kodein.type.generic' call
|
|
12033
12055
|
var tmp_22 = typeToken(createKType(getKClass(PlayerTurnTagProvider), arrayOf([]), false));
|
|
12034
12056
|
var tmp$ret$20 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
12035
|
-
tmp_21.
|
|
12057
|
+
tmp_21.iaw_1 = Instance(di, tmp$ret$20, null).d62(this, playerTurnTagProvider$factory_3());
|
|
12036
12058
|
}
|
|
12037
|
-
protoOf(SingleGameStoreContract).
|
|
12038
|
-
return plus(plus(plus(this.
|
|
12059
|
+
protoOf(SingleGameStoreContract).o8y = function () {
|
|
12060
|
+
return plus(plus(plus(this.vav_1.o8y(), this.xav_1.o8y()), this.wav_1.o8y()), this.yav_1.o8y());
|
|
12039
12061
|
};
|
|
12040
|
-
protoOf(SingleGameStoreContract).
|
|
12062
|
+
protoOf(SingleGameStoreContract).p8y = function () {
|
|
12041
12063
|
var messagesMiddleware = new MessagesMiddleware(_get_messageFactory__6vg0vc_1(this), _get_pointsInteractor__5t71wv_0(this), _get_teamsLogicProvider__u10pm6_0(this));
|
|
12042
|
-
var tmp = plus(plus(plus(this.
|
|
12043
|
-
var tmp_0 = messagesMiddleware.
|
|
12064
|
+
var tmp = plus(plus(plus(this.vav_1.p8y(), this.xav_1.p8y()), this.wav_1.p8y()), this.yav_1.p8y());
|
|
12065
|
+
var tmp_0 = messagesMiddleware.jaw();
|
|
12044
12066
|
var tmp_1 = announceCombinationMiddleware(_get_playerTurnTagProvider__7cizx8_1(this));
|
|
12045
12067
|
var tmp_2 = playerTurnTimeoutMiddleware(_get_asyncProvider__jbpyhw_1(this));
|
|
12046
12068
|
var tmp_3 = _get_botConfig__cpaxzc_0(this).isDelayForBot;
|
|
12047
12069
|
var tmp_4 = _get_botConfig__cpaxzc_0(this).simulateBotThinkingDelay ? Default_getInstance() : null;
|
|
12048
|
-
var tmp_5 = plus(tmp, listOfNotNull([tmp_0, tmp_1, tmp_2, reloadTimersWhenContinueGameMiddleware(tmp_3, tmp_4, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_1(this), this.
|
|
12070
|
+
var tmp_5 = plus(tmp, listOfNotNull([tmp_0, tmp_1, tmp_2, reloadTimersWhenContinueGameMiddleware(tmp_3, tmp_4, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_1(this), this.uav_1, _get_clientStatisticsInteractor__s4ngf8(this)), exitAndSaveGameMiddleware(this.uav_1, _get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this)), saveGameWhenAppOnBackgroundMiddleware(_get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameMiddleware(_get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameWhenErrorMiddleware(_get_asyncProvider__jbpyhw_1(this), _get_persistentAppStateInteractor__5jt7l7(this))]));
|
|
12049
12071
|
var tmp_6;
|
|
12050
12072
|
if (_get_botConfig__cpaxzc_0(this).autoStepLastCard) {
|
|
12051
12073
|
var tmp_7 = _get_lastCardInteractor__h6lq3w_0(this);
|
|
12052
|
-
tmp_6 = listOfNotNull([putPlayerLastCardMiddleware(tmp_7, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza_0(this)), !_get_gameClientConfig__xfscic_2(this).isAutoStepCurrentPlayer ? clientPutCurrentPlayerLastCardMiddleware(this.
|
|
12074
|
+
tmp_6 = listOfNotNull([putPlayerLastCardMiddleware(tmp_7, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza_0(this)), !_get_gameClientConfig__xfscic_2(this).isAutoStepCurrentPlayer ? clientPutCurrentPlayerLastCardMiddleware(this.uav_1, _get_lastCardInteractor__h6lq3w_0(this)) : null]);
|
|
12053
12075
|
} else {
|
|
12054
12076
|
tmp_6 = emptyList();
|
|
12055
12077
|
}
|
|
@@ -12248,8 +12270,8 @@
|
|
|
12248
12270
|
return new _no_name_provided__qut3iv_36(playerTurnTagProvider);
|
|
12249
12271
|
}
|
|
12250
12272
|
function _no_name_provided__qut3iv_35($combinationProvider, $playerTurnTagProvider) {
|
|
12251
|
-
this.
|
|
12252
|
-
this.
|
|
12273
|
+
this.kaw_1 = $combinationProvider;
|
|
12274
|
+
this.law_1 = $playerTurnTagProvider;
|
|
12253
12275
|
}
|
|
12254
12276
|
protoOf(_no_name_provided__qut3iv_35).n6i = function (action) {
|
|
12255
12277
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -12258,11 +12280,11 @@
|
|
|
12258
12280
|
// Inline function 'games.jass.logic.client.redux.middlewares.clientCheckCombinationsMiddleware.<anonymous>' call
|
|
12259
12281
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
12260
12282
|
next(action_0);
|
|
12261
|
-
var table = store.state.
|
|
12283
|
+
var table = store.state.o6n();
|
|
12262
12284
|
var player = get_currentPlayer(table);
|
|
12263
|
-
var playerCombinations = player.
|
|
12285
|
+
var playerCombinations = player.q6u_1.g6w_1;
|
|
12264
12286
|
// Inline function 'kotlin.collections.map' call
|
|
12265
|
-
var this_0 = this.
|
|
12287
|
+
var this_0 = this.kaw_1.r8k(playerCombinations);
|
|
12266
12288
|
// Inline function 'kotlin.collections.mapTo' call
|
|
12267
12289
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
12268
12290
|
var tmp0_iterator = this_0.j();
|
|
@@ -12374,7 +12396,7 @@
|
|
|
12374
12396
|
if (tmp_0) {
|
|
12375
12397
|
tmp = new CombinationToAnnounceAction(findFirstRoundCombinations, acceptedCombinations, declinedCombinations);
|
|
12376
12398
|
} else {
|
|
12377
|
-
var tmp0_safe_receiver = this.
|
|
12399
|
+
var tmp0_safe_receiver = this.kaw_1.s8k(action_0.sat_1.g6f_1, playerCombinations, table.config.rules.oneTryToProtectBella);
|
|
12378
12400
|
var findBellaCombination = tmp0_safe_receiver == null ? null : mapFromDetailed(tmp0_safe_receiver);
|
|
12379
12401
|
var tmp_6;
|
|
12380
12402
|
var tmp_7;
|
|
@@ -12455,7 +12477,7 @@
|
|
|
12455
12477
|
var tmp5_card = action_0.sat_1.g6f_1;
|
|
12456
12478
|
var tmp1_cardNumber = table.cardsOnTable.m();
|
|
12457
12479
|
var tmp2_round = table.gameInfo.round;
|
|
12458
|
-
var tmp6_tag = this.
|
|
12480
|
+
var tmp6_tag = this.law_1.b8l(tmp2_round, VOID, tmp1_cardNumber);
|
|
12459
12481
|
tmp_6 = new CardFromClientAction(tmp3_playerId, false, tmp6_tag, tmp5_card, tmp4_combinations);
|
|
12460
12482
|
}
|
|
12461
12483
|
tmp = tmp_6;
|
|
@@ -12467,7 +12489,7 @@
|
|
|
12467
12489
|
return this.e6k(store, next, action);
|
|
12468
12490
|
};
|
|
12469
12491
|
function _no_name_provided__qut3iv_36($playerTurnTagProvider) {
|
|
12470
|
-
this.
|
|
12492
|
+
this.maw_1 = $playerTurnTagProvider;
|
|
12471
12493
|
}
|
|
12472
12494
|
protoOf(_no_name_provided__qut3iv_36).n6i = function (action) {
|
|
12473
12495
|
return action instanceof AnnouncedCombinationAction;
|
|
@@ -12495,26 +12517,26 @@
|
|
|
12495
12517
|
}
|
|
12496
12518
|
var combinationsState = tmp$ret$1;
|
|
12497
12519
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
12498
|
-
var tmp0_elvis_lhs = combinationsState.
|
|
12520
|
+
var tmp0_elvis_lhs = combinationsState.oaw_1;
|
|
12499
12521
|
var acceptedCombinations = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
12500
12522
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
12501
|
-
var tmp0_elvis_lhs_0 = combinationsState.
|
|
12523
|
+
var tmp0_elvis_lhs_0 = combinationsState.paw_1;
|
|
12502
12524
|
var tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
12503
|
-
var declinedCombinations = plus(combinationsState.
|
|
12504
|
-
if (action_0.
|
|
12505
|
-
acceptedCombinations = plus(acceptedCombinations, combinationsState.
|
|
12525
|
+
var declinedCombinations = plus(combinationsState.naw_1, tmp$ret$4);
|
|
12526
|
+
if (action_0.qaw_1) {
|
|
12527
|
+
acceptedCombinations = plus(acceptedCombinations, combinationsState.naw_1);
|
|
12506
12528
|
} else {
|
|
12507
|
-
declinedCombinations = plus(declinedCombinations, combinationsState.
|
|
12529
|
+
declinedCombinations = plus(declinedCombinations, combinationsState.naw_1);
|
|
12508
12530
|
}
|
|
12509
12531
|
var card = clientState.u9q_1;
|
|
12510
12532
|
if (!(card == null)) {
|
|
12511
12533
|
store.dispatch(new PutCardAndCheckCombinationsAction(card, acceptedCombinations, declinedCombinations));
|
|
12512
12534
|
} else {
|
|
12513
|
-
var table = store.state.
|
|
12535
|
+
var table = store.state.o6n();
|
|
12514
12536
|
var tmp = store.dispatch;
|
|
12515
12537
|
var tmp0_playerId = get_currentPlayer(table).playerId;
|
|
12516
|
-
var tmp1_isAccepted = action_0.
|
|
12517
|
-
var tmp2_tag = this.
|
|
12538
|
+
var tmp1_isAccepted = action_0.qaw_1;
|
|
12539
|
+
var tmp2_tag = this.maw_1.z8k(table.sceneInfo, table.gameInfo.round);
|
|
12518
12540
|
tmp(new CombinationChoiceFromClientAction(tmp0_playerId, false, tmp2_tag, tmp1_isAccepted));
|
|
12519
12541
|
}
|
|
12520
12542
|
};
|
|
@@ -12526,7 +12548,7 @@
|
|
|
12526
12548
|
return new _no_name_provided__qut3iv_37(gameClientConfig);
|
|
12527
12549
|
}
|
|
12528
12550
|
function _no_name_provided__qut3iv_37($gameClientConfig) {
|
|
12529
|
-
this.
|
|
12551
|
+
this.raw_1 = $gameClientConfig;
|
|
12530
12552
|
}
|
|
12531
12553
|
protoOf(_no_name_provided__qut3iv_37).n6i = function (action) {
|
|
12532
12554
|
return action instanceof ExitFromClientAction;
|
|
@@ -12534,10 +12556,10 @@
|
|
|
12534
12556
|
protoOf(_no_name_provided__qut3iv_37).e6k = function (store, next, action) {
|
|
12535
12557
|
// Inline function 'games.jass.logic.client.redux.middlewares.finishingGameWhenPlayerExitsMiddleware.<anonymous>' call
|
|
12536
12558
|
var action_0 = action instanceof ExitFromClientAction ? action : THROW_CCE();
|
|
12537
|
-
var table = store.state.
|
|
12559
|
+
var table = store.state.x6m_1;
|
|
12538
12560
|
var tmp = store.dispatch;
|
|
12539
12561
|
var tmp_0;
|
|
12540
|
-
if (this.
|
|
12562
|
+
if (this.raw_1.sessionAnalytics) {
|
|
12541
12563
|
var tmp_1 = Companion_instance_0;
|
|
12542
12564
|
var tmp_2 = ProcessingReason_getInstance();
|
|
12543
12565
|
var tmp1_elvis_lhs = table == null ? null : table.isGameFinished;
|
|
@@ -12561,7 +12583,7 @@
|
|
|
12561
12583
|
return new _no_name_provided__qut3iv_38(bufferInteractor);
|
|
12562
12584
|
}
|
|
12563
12585
|
function _no_name_provided__qut3iv_38($bufferInteractor) {
|
|
12564
|
-
this.
|
|
12586
|
+
this.saw_1 = $bufferInteractor;
|
|
12565
12587
|
}
|
|
12566
12588
|
protoOf(_no_name_provided__qut3iv_38).n6i = function (action) {
|
|
12567
12589
|
return isInterface(action, ReleaseBufferTriggerAction);
|
|
@@ -12571,14 +12593,14 @@
|
|
|
12571
12593
|
var action_0 = isInterface(action, ReleaseBufferTriggerAction) ? action : THROW_CCE();
|
|
12572
12594
|
next(action_0);
|
|
12573
12595
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
12574
|
-
this.
|
|
12596
|
+
this.saw_1.t9p();
|
|
12575
12597
|
var state = store.state;
|
|
12576
12598
|
var bufferedActions = get_clientPayload_0(state).m9q_1;
|
|
12577
12599
|
var tmp;
|
|
12578
12600
|
var tmp_0;
|
|
12579
12601
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
12580
12602
|
if (!bufferedActions.p()) {
|
|
12581
|
-
tmp_0 = this.
|
|
12603
|
+
tmp_0 = this.saw_1.v9p(state, action_0);
|
|
12582
12604
|
} else {
|
|
12583
12605
|
tmp_0 = false;
|
|
12584
12606
|
}
|
|
@@ -12617,9 +12639,9 @@
|
|
|
12617
12639
|
return new _no_name_provided__qut3iv_39(currentPlayerId, dealerInteractor, tagProvider);
|
|
12618
12640
|
}
|
|
12619
12641
|
function _no_name_provided__qut3iv_39($currentPlayerId, $dealerInteractor, $tagProvider) {
|
|
12620
|
-
this.
|
|
12621
|
-
this.
|
|
12622
|
-
this.
|
|
12642
|
+
this.taw_1 = $currentPlayerId;
|
|
12643
|
+
this.uaw_1 = $dealerInteractor;
|
|
12644
|
+
this.vaw_1 = $tagProvider;
|
|
12623
12645
|
}
|
|
12624
12646
|
protoOf(_no_name_provided__qut3iv_39).n6i = function (action) {
|
|
12625
12647
|
return action instanceof MechanicAction;
|
|
@@ -12629,11 +12651,11 @@
|
|
|
12629
12651
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
12630
12652
|
next(action_0);
|
|
12631
12653
|
if (action_0 instanceof SceneActMechanicAction)
|
|
12632
|
-
if (action_0.
|
|
12654
|
+
if (action_0.n8q_1 === 'WAITING_ACT') {
|
|
12633
12655
|
var tmp$ret$0;
|
|
12634
12656
|
$l$block: {
|
|
12635
12657
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
12636
|
-
var this_0 = action_0.
|
|
12658
|
+
var this_0 = action_0.o8q_1;
|
|
12637
12659
|
if (this_0 instanceof WaitingActData) {
|
|
12638
12660
|
tmp$ret$0 = this_0;
|
|
12639
12661
|
break $l$block;
|
|
@@ -12641,16 +12663,16 @@
|
|
|
12641
12663
|
throw new MechanicException('Required ' + getKClass(WaitingActData).qa() + ', current act is ' + toString_0(this_0));
|
|
12642
12664
|
}
|
|
12643
12665
|
var waitingActData = tmp$ret$0;
|
|
12644
|
-
var requestPayload = waitingActData.
|
|
12666
|
+
var requestPayload = waitingActData.o79_1;
|
|
12645
12667
|
if (!(requestPayload == null)) {
|
|
12646
12668
|
if (requestPayload instanceof CardDeckRequest) {
|
|
12647
|
-
if (this.
|
|
12669
|
+
if (this.taw_1 === waitingActData.l79()) {
|
|
12648
12670
|
var tmp = store.dispatch;
|
|
12649
12671
|
// Inline function 'kotlin.collections.map' call
|
|
12650
12672
|
// Inline function 'kotlin.collections.map' call
|
|
12651
12673
|
// Inline function 'kotlin.collections.List' call
|
|
12652
12674
|
// Inline function 'kotlin.collections.MutableList' call
|
|
12653
|
-
var size = requestPayload.
|
|
12675
|
+
var size = requestPayload.m79_1;
|
|
12654
12676
|
var list = ArrayList_init_$Create$(size);
|
|
12655
12677
|
// Inline function 'kotlin.repeat' call
|
|
12656
12678
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -12670,7 +12692,7 @@
|
|
|
12670
12692
|
while (tmp0_iterator.k()) {
|
|
12671
12693
|
var item = tmp0_iterator.l();
|
|
12672
12694
|
// Inline function 'games.jass.logic.client.redux.middlewares.dealer.clientHostDealerMiddleware.<anonymous>.<anonymous>' call
|
|
12673
|
-
var tmp$ret$4 = this.
|
|
12695
|
+
var tmp$ret$4 = this.uaw_1.u8k();
|
|
12674
12696
|
destination.e(tmp$ret$4);
|
|
12675
12697
|
}
|
|
12676
12698
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -12679,11 +12701,11 @@
|
|
|
12679
12701
|
while (tmp0_iterator_0.k()) {
|
|
12680
12702
|
var item_0 = tmp0_iterator_0.l();
|
|
12681
12703
|
// Inline function 'games.jass.logic.client.redux.middlewares.dealer.clientHostDealerMiddleware.<anonymous>.<anonymous>' call
|
|
12682
|
-
var tmp$ret$7 = Companion_instance_1.
|
|
12704
|
+
var tmp$ret$7 = Companion_instance_1.y7m(item_0);
|
|
12683
12705
|
destination_0.e(tmp$ret$7);
|
|
12684
12706
|
}
|
|
12685
|
-
var tmp3_tag = this.
|
|
12686
|
-
tmp(new RequestedCardDecksFromClientAction(destination_0, this.
|
|
12707
|
+
var tmp3_tag = this.vaw_1.w8k(action_0.m8q_1, store.state.o6n().gameInfo.round);
|
|
12708
|
+
tmp(new RequestedCardDecksFromClientAction(destination_0, this.taw_1, false, tmp3_tag));
|
|
12687
12709
|
}
|
|
12688
12710
|
} else {
|
|
12689
12711
|
noWhenBranchMatchedException();
|
|
@@ -12706,13 +12728,13 @@
|
|
|
12706
12728
|
return new _no_name_provided__qut3iv_41();
|
|
12707
12729
|
}
|
|
12708
12730
|
function ExpectantTimerTag(id) {
|
|
12709
|
-
this.
|
|
12731
|
+
this.waw_1 = id;
|
|
12710
12732
|
}
|
|
12711
12733
|
protoOf(ExpectantTimerTag).toString = function () {
|
|
12712
|
-
return 'ExpectantTimerTag(id=' + this.
|
|
12734
|
+
return 'ExpectantTimerTag(id=' + this.waw_1 + ')';
|
|
12713
12735
|
};
|
|
12714
12736
|
protoOf(ExpectantTimerTag).hashCode = function () {
|
|
12715
|
-
return getStringHashCode(this.
|
|
12737
|
+
return getStringHashCode(this.waw_1);
|
|
12716
12738
|
};
|
|
12717
12739
|
protoOf(ExpectantTimerTag).equals = function (other) {
|
|
12718
12740
|
if (this === other)
|
|
@@ -12720,7 +12742,7 @@
|
|
|
12720
12742
|
if (!(other instanceof ExpectantTimerTag))
|
|
12721
12743
|
return false;
|
|
12722
12744
|
var tmp0_other_with_cast = other instanceof ExpectantTimerTag ? other : THROW_CCE();
|
|
12723
|
-
if (!(this.
|
|
12745
|
+
if (!(this.waw_1 === tmp0_other_with_cast.waw_1))
|
|
12724
12746
|
return false;
|
|
12725
12747
|
return true;
|
|
12726
12748
|
};
|
|
@@ -12737,7 +12759,7 @@
|
|
|
12737
12759
|
var expectantAction = action_0.zat_1.g9p_1;
|
|
12738
12760
|
var tmp_0;
|
|
12739
12761
|
if (expectantAction.e6i()) {
|
|
12740
|
-
tmp_0 = listOf_0(new StartTimerAction(new ExpectantTimerTag(action_0.zat_1.f9p_1), toLong(store.state.
|
|
12762
|
+
tmp_0 = listOf_0(new StartTimerAction(new ExpectantTimerTag(action_0.zat_1.f9p_1), toLong(store.state.o6n().config.options.timeForCountdownMillis), VOID, TimerType_DELAY_getInstance()));
|
|
12741
12763
|
} else {
|
|
12742
12764
|
tmp_0 = emptyList();
|
|
12743
12765
|
}
|
|
@@ -12776,7 +12798,7 @@
|
|
|
12776
12798
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
12777
12799
|
var timerTag = action_0.j6i_1;
|
|
12778
12800
|
if (timerTag instanceof ExpectantTimerTag) {
|
|
12779
|
-
store.dispatch(new ExpectantTimerFinishedClientAction(timerTag.
|
|
12801
|
+
store.dispatch(new ExpectantTimerFinishedClientAction(timerTag.waw_1));
|
|
12780
12802
|
}
|
|
12781
12803
|
next(action_0);
|
|
12782
12804
|
};
|
|
@@ -12788,19 +12810,19 @@
|
|
|
12788
12810
|
return new _no_name_provided__qut3iv_42(currentPlayerId, lastCardInteractor);
|
|
12789
12811
|
}
|
|
12790
12812
|
function getCardActionIfNeeded(action, currentPlayerId, table, lastCardInteractor) {
|
|
12791
|
-
var nextTurnPlayerId = singleOrNull(action.
|
|
12813
|
+
var nextTurnPlayerId = singleOrNull(action.v8w());
|
|
12792
12814
|
if (!(nextTurnPlayerId == null) && currentPlayerId === nextTurnPlayerId) {
|
|
12793
12815
|
var nextTurnPlayer = getPlayer(table.players, nextTurnPlayerId);
|
|
12794
|
-
if (lastCardInteractor.
|
|
12795
|
-
var gameCard = single(nextTurnPlayer.
|
|
12816
|
+
if (lastCardInteractor.l8k(nextTurnPlayer)) {
|
|
12817
|
+
var gameCard = single(nextTurnPlayer.n6u_1);
|
|
12796
12818
|
return new PutCardAndCheckCombinationsAction(new ProcessingCard(gameCard));
|
|
12797
12819
|
}
|
|
12798
12820
|
}
|
|
12799
12821
|
return null;
|
|
12800
12822
|
}
|
|
12801
12823
|
function _no_name_provided__qut3iv_42($currentPlayerId, $lastCardInteractor) {
|
|
12802
|
-
this.
|
|
12803
|
-
this.
|
|
12824
|
+
this.xaw_1 = $currentPlayerId;
|
|
12825
|
+
this.yaw_1 = $lastCardInteractor;
|
|
12804
12826
|
}
|
|
12805
12827
|
protoOf(_no_name_provided__qut3iv_42).n6i = function (action) {
|
|
12806
12828
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -12809,8 +12831,8 @@
|
|
|
12809
12831
|
// Inline function 'games.jass.logic.client.redux.middlewares.lastbribe.clientPutCurrentPlayerLastCardMiddleware.<anonymous>' call
|
|
12810
12832
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
12811
12833
|
next(action_0);
|
|
12812
|
-
var table = store.state.
|
|
12813
|
-
var newAction = getCardActionIfNeeded(action_0, this.
|
|
12834
|
+
var table = store.state.o6n();
|
|
12835
|
+
var newAction = getCardActionIfNeeded(action_0, this.xaw_1, table, this.yaw_1);
|
|
12814
12836
|
if (newAction == null)
|
|
12815
12837
|
null;
|
|
12816
12838
|
else {
|
|
@@ -12825,15 +12847,15 @@
|
|
|
12825
12847
|
function onSuitSelectMessages($this, store, playerId, selectedSuit) {
|
|
12826
12848
|
// Inline function 'kotlin.with' call
|
|
12827
12849
|
// Inline function 'kotlin.contracts.contract' call
|
|
12828
|
-
var $this$with = store.state.
|
|
12850
|
+
var $this$with = store.state.o6n();
|
|
12829
12851
|
var player = getPlayer($this$with.players, playerId);
|
|
12830
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
12852
|
+
store.dispatch(new MessageMechanicAction($this.qav_1.t8j(player.o6u_1.i6z(), selectedSuit, player.l6u_1)));
|
|
12831
12853
|
}
|
|
12832
12854
|
function onCardMessages($this, store, playerId, combinations) {
|
|
12833
12855
|
// Inline function 'kotlin.with' call
|
|
12834
12856
|
// Inline function 'kotlin.contracts.contract' call
|
|
12835
12857
|
// Inline function 'games.jass.logic.client.redux.middlewares.messages.MessagesMiddleware.onCardMessages.<anonymous>' call
|
|
12836
|
-
var $this$with = store.state.
|
|
12858
|
+
var $this$with = store.state.o6n();
|
|
12837
12859
|
var tmp;
|
|
12838
12860
|
if (combinations == null) {
|
|
12839
12861
|
tmp = null;
|
|
@@ -12849,10 +12871,10 @@
|
|
|
12849
12871
|
while (tmp0_iterator.k()) {
|
|
12850
12872
|
var item = tmp0_iterator.l();
|
|
12851
12873
|
// Inline function 'games.jass.logic.client.redux.middlewares.messages.MessagesMiddleware.onCardMessages.<anonymous>.<anonymous>.<anonymous>' call
|
|
12852
|
-
var tmp$ret$0 = item.
|
|
12874
|
+
var tmp$ret$0 = item.t79_1;
|
|
12853
12875
|
destination.e(tmp$ret$0);
|
|
12854
12876
|
}
|
|
12855
|
-
tmp_0(new MessageMechanicAction($this.
|
|
12877
|
+
tmp_0(new MessageMechanicAction($this.qav_1.r8j(destination, player.l6u_1)));
|
|
12856
12878
|
tmp = Unit_instance;
|
|
12857
12879
|
}
|
|
12858
12880
|
}
|
|
@@ -12862,7 +12884,7 @@
|
|
|
12862
12884
|
var tmp$ret$0;
|
|
12863
12885
|
$l$block: {
|
|
12864
12886
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
12865
|
-
var this_0 = state.
|
|
12887
|
+
var this_0 = state.o6n().sceneInfo.d7u_1;
|
|
12866
12888
|
if (this_0 instanceof CombinationActData) {
|
|
12867
12889
|
tmp$ret$0 = this_0;
|
|
12868
12890
|
break $l$block;
|
|
@@ -12870,40 +12892,40 @@
|
|
|
12870
12892
|
throw new MechanicException('Required ' + getKClass(CombinationActData).qa() + ', current act is ' + toString_0(this_0));
|
|
12871
12893
|
}
|
|
12872
12894
|
var combinationActData = tmp$ret$0;
|
|
12873
|
-
var player = getPlayer(state.
|
|
12895
|
+
var player = getPlayer(state.o6n().players, playerId);
|
|
12874
12896
|
var tmp = store.dispatch;
|
|
12875
12897
|
// Inline function 'kotlin.collections.map' call
|
|
12876
|
-
var this_1 = combinationActData.
|
|
12898
|
+
var this_1 = combinationActData.q79_1;
|
|
12877
12899
|
// Inline function 'kotlin.collections.mapTo' call
|
|
12878
12900
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
12879
12901
|
var tmp0_iterator = this_1.j();
|
|
12880
12902
|
while (tmp0_iterator.k()) {
|
|
12881
12903
|
var item = tmp0_iterator.l();
|
|
12882
12904
|
// Inline function 'games.jass.logic.client.redux.middlewares.messages.MessagesMiddleware.onCombinationChoiceMessages.<anonymous>' call
|
|
12883
|
-
var tmp$ret$1 = item.
|
|
12905
|
+
var tmp$ret$1 = item.t79_1;
|
|
12884
12906
|
destination.e(tmp$ret$1);
|
|
12885
12907
|
}
|
|
12886
|
-
tmp(new MessageMechanicAction($this.
|
|
12908
|
+
tmp(new MessageMechanicAction($this.qav_1.r8j(destination, player.l6u_1)));
|
|
12887
12909
|
}
|
|
12888
12910
|
}
|
|
12889
12911
|
function onWinnerCombinationMessages($this, store, winnerCombinations) {
|
|
12890
12912
|
// Inline function 'kotlin.with' call
|
|
12891
12913
|
// Inline function 'kotlin.contracts.contract' call
|
|
12892
|
-
var $this$with = store.state.
|
|
12893
|
-
var message = $this.
|
|
12914
|
+
var $this$with = store.state.o6n();
|
|
12915
|
+
var message = $this.qav_1.s8j(winnerCombinations, $this$with.players);
|
|
12894
12916
|
store.dispatch(new MessageMechanicAction(message));
|
|
12895
12917
|
}
|
|
12896
12918
|
function onSceneMessages($this, store, action) {
|
|
12897
12919
|
var state = store.state;
|
|
12898
|
-
var table = state.
|
|
12899
|
-
var tmp0_subject = action.
|
|
12920
|
+
var table = state.o6n();
|
|
12921
|
+
var tmp0_subject = action.u8q_1;
|
|
12900
12922
|
if (tmp0_subject === 'TRADE') {
|
|
12901
12923
|
var tmp;
|
|
12902
12924
|
if (table.config.playersMode.isTeamGame) {
|
|
12903
12925
|
var tmp$ret$0;
|
|
12904
12926
|
$l$block_0: {
|
|
12905
12927
|
// Inline function 'kotlin.collections.any' call
|
|
12906
|
-
var this_0 = $this.
|
|
12928
|
+
var this_0 = $this.sav_1.g8j(table.players);
|
|
12907
12929
|
var tmp_0;
|
|
12908
12930
|
if (isInterface(this_0, Collection)) {
|
|
12909
12931
|
tmp_0 = this_0.p();
|
|
@@ -12925,7 +12947,7 @@
|
|
|
12925
12947
|
var element_0 = tmp0_iterator_0.l();
|
|
12926
12948
|
var tmp_1 = sum;
|
|
12927
12949
|
// Inline function 'games.jass.logic.client.redux.middlewares.messages.MessagesMiddleware.onSceneMessages.<anonymous>.<anonymous>' call
|
|
12928
|
-
sum = tmp_1 + element_0.
|
|
12950
|
+
sum = tmp_1 + element_0.q6u_1.f6w_1 | 0;
|
|
12929
12951
|
}
|
|
12930
12952
|
if (sum >= table.config.pointsMode.value) {
|
|
12931
12953
|
tmp$ret$0 = true;
|
|
@@ -12954,7 +12976,7 @@
|
|
|
12954
12976
|
while (tmp0_iterator_1.k()) {
|
|
12955
12977
|
var element_1 = tmp0_iterator_1.l();
|
|
12956
12978
|
// Inline function 'games.jass.logic.client.redux.middlewares.messages.MessagesMiddleware.onSceneMessages.<anonymous>' call
|
|
12957
|
-
if (element_1.
|
|
12979
|
+
if (element_1.q6u_1.f6w_1 >= table.config.pointsMode.value) {
|
|
12958
12980
|
tmp$ret$4 = true;
|
|
12959
12981
|
break $l$block_2;
|
|
12960
12982
|
}
|
|
@@ -12965,7 +12987,7 @@
|
|
|
12965
12987
|
}
|
|
12966
12988
|
var hasWinners = tmp;
|
|
12967
12989
|
if (hasWinners) {
|
|
12968
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
12990
|
+
store.dispatch(new MessageMechanicAction($this.qav_1.w8j('ONE_MORE_ROUND_NEEDED_ID')));
|
|
12969
12991
|
}
|
|
12970
12992
|
var tmp$ret$6;
|
|
12971
12993
|
$l$block_3: {
|
|
@@ -12978,10 +13000,10 @@
|
|
|
12978
13000
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).qa() + ', current scene is ' + toString_0(this_2));
|
|
12979
13001
|
}
|
|
12980
13002
|
var scene = tmp$ret$6;
|
|
12981
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
12982
|
-
var randomData = scene.
|
|
13003
|
+
store.dispatch(new MessageMechanicAction($this.qav_1.q8j(getPlayer(table.players, scene.c7b_1).l6u_1, scene.a7b_1)));
|
|
13004
|
+
var randomData = scene.z7a_1;
|
|
12983
13005
|
if (!(randomData == null)) {
|
|
12984
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
13006
|
+
store.dispatch(new MessageMechanicAction($this.qav_1.a8k(randomData)));
|
|
12985
13007
|
}
|
|
12986
13008
|
} else if (tmp0_subject === 'CALC_POINTS') {
|
|
12987
13009
|
var tmp$ret$7;
|
|
@@ -12999,49 +13021,49 @@
|
|
|
12999
13021
|
var whoChoseSuitPlayerId = getWhoChoseSuit(table_0.players).playerId;
|
|
13000
13022
|
var tmp_3 = store.dispatch;
|
|
13001
13023
|
// Inline function 'kotlin.collections.map' call
|
|
13002
|
-
var this_4 = $this.
|
|
13024
|
+
var this_4 = $this.rav_1.m8p(scene_0.s7a_1);
|
|
13003
13025
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13004
13026
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
13005
13027
|
var tmp0_iterator_2 = this_4.j();
|
|
13006
13028
|
while (tmp0_iterator_2.k()) {
|
|
13007
13029
|
var item = tmp0_iterator_2.l();
|
|
13008
13030
|
// Inline function 'games.jass.logic.client.redux.middlewares.messages.MessagesMiddleware.onSceneMessages.<anonymous>' call
|
|
13009
|
-
var tmp0_points = item.
|
|
13031
|
+
var tmp0_points = item.k7p_1;
|
|
13010
13032
|
// Inline function 'kotlin.collections.map' call
|
|
13011
|
-
var this_5 = item.
|
|
13033
|
+
var this_5 = item.j7p_1;
|
|
13012
13034
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13013
13035
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_5, 10));
|
|
13014
13036
|
var tmp0_iterator_3 = this_5.j();
|
|
13015
13037
|
while (tmp0_iterator_3.k()) {
|
|
13016
13038
|
var item_0 = tmp0_iterator_3.l();
|
|
13017
13039
|
// Inline function 'games.jass.logic.client.redux.middlewares.messages.MessagesMiddleware.onSceneMessages.<anonymous>.<anonymous>' call
|
|
13018
|
-
var tmp$ret$8 = getPlayer(table_0.players, item_0).
|
|
13040
|
+
var tmp$ret$8 = getPlayer(table_0.players, item_0).l6u_1;
|
|
13019
13041
|
destination_0.e(tmp$ret$8);
|
|
13020
13042
|
}
|
|
13021
13043
|
var tmp$ret$11 = new PointItemViewModel(destination_0, tmp0_points);
|
|
13022
13044
|
destination.e(tmp$ret$11);
|
|
13023
13045
|
}
|
|
13024
|
-
tmp_3(new MessageMechanicAction($this.
|
|
13046
|
+
tmp_3(new MessageMechanicAction($this.qav_1.u8j(table_0.gameInfo.round, destination, scene_0.w7a(whoChoseSuitPlayerId), scene_0.v7a(whoChoseSuitPlayerId), scene_0.p7a_1)));
|
|
13025
13047
|
}
|
|
13026
13048
|
}
|
|
13027
13049
|
function onExpectantCreatedMessages($this, store, action, excludePlayersIds) {
|
|
13028
13050
|
// Inline function 'kotlin.with' call
|
|
13029
13051
|
// Inline function 'kotlin.contracts.contract' call
|
|
13030
|
-
var $this$with = store.state.
|
|
13052
|
+
var $this$with = store.state.o6n();
|
|
13031
13053
|
var expectantAction = action.zat_1.g9p_1;
|
|
13032
13054
|
if (expectantAction instanceof CombinationChoiceMechanicAction) {
|
|
13033
13055
|
if (excludePlayersIds.v1(expectantAction.playerId)) {
|
|
13034
13056
|
return Unit_instance;
|
|
13035
13057
|
}
|
|
13036
|
-
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.
|
|
13058
|
+
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.r8x_1);
|
|
13037
13059
|
} else {
|
|
13038
13060
|
if (expectantAction instanceof RestartGameMechanicAction) {
|
|
13039
|
-
var message = $this.
|
|
13061
|
+
var message = $this.qav_1.w8j('GAME_RESTART_EVENT_ID');
|
|
13040
13062
|
store.dispatch(new MessageMechanicAction(message));
|
|
13041
13063
|
store.dispatch(new InfoMessageAction(message));
|
|
13042
13064
|
} else {
|
|
13043
13065
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
13044
|
-
var message_0 = $this.
|
|
13066
|
+
var message_0 = $this.qav_1.s8j(expectantAction.v8x_1, $this$with.players);
|
|
13045
13067
|
store.dispatch(new InfoMessageAction(message_0));
|
|
13046
13068
|
}
|
|
13047
13069
|
}
|
|
@@ -13059,7 +13081,7 @@
|
|
|
13059
13081
|
tmp = Unit_instance;
|
|
13060
13082
|
} else {
|
|
13061
13083
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
13062
|
-
onSuitSelectMessages(this$0, store, action.
|
|
13084
|
+
onSuitSelectMessages(this$0, store, action.a8r_1, action.y8q_1);
|
|
13063
13085
|
tmp = Unit_instance;
|
|
13064
13086
|
} else {
|
|
13065
13087
|
if (action instanceof ExpectantCreatedClientAction) {
|
|
@@ -13067,11 +13089,11 @@
|
|
|
13067
13089
|
tmp = Unit_instance;
|
|
13068
13090
|
} else {
|
|
13069
13091
|
if (action instanceof PutCardMechanicAction) {
|
|
13070
|
-
onCardMessages(this$0, store, action.
|
|
13092
|
+
onCardMessages(this$0, store, action.f8r_1, action.e8r_1);
|
|
13071
13093
|
tmp = Unit_instance;
|
|
13072
13094
|
} else {
|
|
13073
13095
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
13074
|
-
onWinnerCombinationMessages(this$0, store, action.
|
|
13096
|
+
onWinnerCombinationMessages(this$0, store, action.v8x_1);
|
|
13075
13097
|
tmp = Unit_instance;
|
|
13076
13098
|
} else {
|
|
13077
13099
|
tmp = Unit_instance;
|
|
@@ -13094,7 +13116,7 @@
|
|
|
13094
13116
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
13095
13117
|
var tmp_0;
|
|
13096
13118
|
if (!(action.playerId === $currentPlayerId)) {
|
|
13097
|
-
onSuitSelectMessages(this$0, store, action.playerId, action.
|
|
13119
|
+
onSuitSelectMessages(this$0, store, action.playerId, action.y8q_1);
|
|
13098
13120
|
tmp_0 = Unit_instance;
|
|
13099
13121
|
}
|
|
13100
13122
|
tmp = tmp_0;
|
|
@@ -13102,7 +13124,7 @@
|
|
|
13102
13124
|
if (action instanceof PutCardMechanicAction) {
|
|
13103
13125
|
var tmp_1;
|
|
13104
13126
|
if (!(action.playerId === $currentPlayerId)) {
|
|
13105
|
-
onCardMessages(this$0, store, action.playerId, action.
|
|
13127
|
+
onCardMessages(this$0, store, action.playerId, action.e8r_1);
|
|
13106
13128
|
tmp_1 = Unit_instance;
|
|
13107
13129
|
}
|
|
13108
13130
|
tmp = tmp_1;
|
|
@@ -13112,29 +13134,29 @@
|
|
|
13112
13134
|
tmp = Unit_instance;
|
|
13113
13135
|
} else {
|
|
13114
13136
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
13115
|
-
onWinnerCombinationMessages(this$0, store, action.
|
|
13137
|
+
onWinnerCombinationMessages(this$0, store, action.v8x_1);
|
|
13116
13138
|
tmp = Unit_instance;
|
|
13117
13139
|
} else {
|
|
13118
13140
|
if (action instanceof SuitChoiceFromClientAction) {
|
|
13119
13141
|
var tmp_2;
|
|
13120
|
-
if (action.
|
|
13121
|
-
onSuitSelectMessages(this$0, store, action.
|
|
13142
|
+
if (action.z7l_1 === $currentPlayerId) {
|
|
13143
|
+
onSuitSelectMessages(this$0, store, action.z7l_1, action.c7m_1);
|
|
13122
13144
|
tmp_2 = Unit_instance;
|
|
13123
13145
|
}
|
|
13124
13146
|
tmp = tmp_2;
|
|
13125
13147
|
} else {
|
|
13126
13148
|
if (action instanceof CardFromClientAction) {
|
|
13127
13149
|
var tmp_3;
|
|
13128
|
-
if (action.
|
|
13129
|
-
onCardMessages(this$0, store, action.
|
|
13150
|
+
if (action.h7m_1 === $currentPlayerId) {
|
|
13151
|
+
onCardMessages(this$0, store, action.h7m_1, action.l7m_1);
|
|
13130
13152
|
tmp_3 = Unit_instance;
|
|
13131
13153
|
}
|
|
13132
13154
|
tmp = tmp_3;
|
|
13133
13155
|
} else {
|
|
13134
13156
|
if (action instanceof CombinationChoiceFromClientAction) {
|
|
13135
13157
|
var tmp_4;
|
|
13136
|
-
if (action.
|
|
13137
|
-
onCombinationChoiceMessages(this$0, store, action.
|
|
13158
|
+
if (action.d7m_1 === $currentPlayerId) {
|
|
13159
|
+
onCombinationChoiceMessages(this$0, store, action.d7m_1, action.g7m_1);
|
|
13138
13160
|
tmp_4 = Unit_instance;
|
|
13139
13161
|
}
|
|
13140
13162
|
tmp = tmp_4;
|
|
@@ -13153,14 +13175,14 @@
|
|
|
13153
13175
|
};
|
|
13154
13176
|
}
|
|
13155
13177
|
function MessagesMiddleware(factory, pointsInteractor, teamsLogicProvider) {
|
|
13156
|
-
this.
|
|
13157
|
-
this.
|
|
13158
|
-
this.
|
|
13178
|
+
this.qav_1 = factory;
|
|
13179
|
+
this.rav_1 = pointsInteractor;
|
|
13180
|
+
this.sav_1 = teamsLogicProvider;
|
|
13159
13181
|
}
|
|
13160
|
-
protoOf(MessagesMiddleware).
|
|
13182
|
+
protoOf(MessagesMiddleware).jaw = function () {
|
|
13161
13183
|
return middleware(MessagesMiddleware$middlewareEngine$lambda(this));
|
|
13162
13184
|
};
|
|
13163
|
-
protoOf(MessagesMiddleware).
|
|
13185
|
+
protoOf(MessagesMiddleware).tav = function (currentPlayerId) {
|
|
13164
13186
|
return middleware(MessagesMiddleware$middlewareClient$lambda(this, currentPlayerId));
|
|
13165
13187
|
};
|
|
13166
13188
|
function startResetTimerForInfoMessageMiddleware() {
|
|
@@ -13172,13 +13194,13 @@
|
|
|
13172
13194
|
return new _no_name_provided__qut3iv_44();
|
|
13173
13195
|
}
|
|
13174
13196
|
function ResetMessageTimerTag(message) {
|
|
13175
|
-
this.
|
|
13197
|
+
this.zaw_1 = message;
|
|
13176
13198
|
}
|
|
13177
13199
|
protoOf(ResetMessageTimerTag).toString = function () {
|
|
13178
|
-
return 'ResetMessageTimerTag(message=' + toString(this.
|
|
13200
|
+
return 'ResetMessageTimerTag(message=' + toString(this.zaw_1) + ')';
|
|
13179
13201
|
};
|
|
13180
13202
|
protoOf(ResetMessageTimerTag).hashCode = function () {
|
|
13181
|
-
return hashCode(this.
|
|
13203
|
+
return hashCode(this.zaw_1);
|
|
13182
13204
|
};
|
|
13183
13205
|
protoOf(ResetMessageTimerTag).equals = function (other) {
|
|
13184
13206
|
if (this === other)
|
|
@@ -13186,7 +13208,7 @@
|
|
|
13186
13208
|
if (!(other instanceof ResetMessageTimerTag))
|
|
13187
13209
|
return false;
|
|
13188
13210
|
var tmp0_other_with_cast = other instanceof ResetMessageTimerTag ? other : THROW_CCE();
|
|
13189
|
-
if (!equals(this.
|
|
13211
|
+
if (!equals(this.zaw_1, tmp0_other_with_cast.zaw_1))
|
|
13190
13212
|
return false;
|
|
13191
13213
|
return true;
|
|
13192
13214
|
};
|
|
@@ -13221,7 +13243,7 @@
|
|
|
13221
13243
|
var timerTag = action_0.j6i_1;
|
|
13222
13244
|
if (timerTag instanceof ResetMessageTimerTag) {
|
|
13223
13245
|
var clientPayload = get_clientPayload_0(store.state);
|
|
13224
|
-
if (equals(clientPayload.k9q_1, timerTag.
|
|
13246
|
+
if (equals(clientPayload.k9q_1, timerTag.zaw_1)) {
|
|
13225
13247
|
store.dispatch(new InfoMessageAction(null));
|
|
13226
13248
|
}
|
|
13227
13249
|
}
|
|
@@ -13235,7 +13257,7 @@
|
|
|
13235
13257
|
return new _no_name_provided__qut3iv_45(gameMechanicLogicInteractor);
|
|
13236
13258
|
}
|
|
13237
13259
|
function _no_name_provided__qut3iv_45($gameMechanicLogicInteractor) {
|
|
13238
|
-
this.
|
|
13260
|
+
this.aax_1 = $gameMechanicLogicInteractor;
|
|
13239
13261
|
}
|
|
13240
13262
|
protoOf(_no_name_provided__qut3iv_45).n6i = function (action) {
|
|
13241
13263
|
return action instanceof FromClientAction;
|
|
@@ -13244,33 +13266,33 @@
|
|
|
13244
13266
|
$l$block: {
|
|
13245
13267
|
// Inline function 'games.jass.logic.client.redux.middlewares.online.clientConsumeFromClientActionsMiddleware.<anonymous>' call
|
|
13246
13268
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
13247
|
-
var tmp0_safe_receiver = store.state.
|
|
13269
|
+
var tmp0_safe_receiver = store.state.x6m_1;
|
|
13248
13270
|
var version = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.version;
|
|
13249
13271
|
if (version == null || Toggles_instance.b68(version)) {
|
|
13250
13272
|
next(action_0);
|
|
13251
13273
|
break $l$block;
|
|
13252
13274
|
}
|
|
13253
|
-
var table = store.state.
|
|
13275
|
+
var table = store.state.o6n();
|
|
13254
13276
|
next(action_0);
|
|
13255
13277
|
var tmp;
|
|
13256
13278
|
if (action_0 instanceof MessageFromClientAction) {
|
|
13257
|
-
tmp = this.
|
|
13279
|
+
tmp = this.aax_1.p8o(action_0, table.players);
|
|
13258
13280
|
} else {
|
|
13259
13281
|
if (action_0 instanceof PartnerSelectedFromClientAction) {
|
|
13260
|
-
tmp = this.
|
|
13282
|
+
tmp = this.aax_1.q8o(action_0, table.players);
|
|
13261
13283
|
} else {
|
|
13262
13284
|
if (action_0 instanceof PlayerReadyFromClientAction) {
|
|
13263
|
-
tmp = this.
|
|
13285
|
+
tmp = this.aax_1.r8o(action_0);
|
|
13264
13286
|
} else {
|
|
13265
13287
|
if (action_0 instanceof SuitChoiceFromClientAction) {
|
|
13266
|
-
tmp = this.
|
|
13288
|
+
tmp = this.aax_1.s8o(action_0, table.players, table.config);
|
|
13267
13289
|
} else {
|
|
13268
13290
|
if (action_0 instanceof CombinationChoiceFromClientAction) {
|
|
13269
|
-
tmp = this.
|
|
13291
|
+
tmp = this.aax_1.t8o(action_0, table);
|
|
13270
13292
|
} else {
|
|
13271
13293
|
if (action_0 instanceof CardFromClientAction) {
|
|
13272
|
-
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action_0.
|
|
13273
|
-
var cardMechanicAction = this.
|
|
13294
|
+
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action_0.h7m_1, table.cardsOnTable.m(), action_0.k7m_1));
|
|
13295
|
+
var cardMechanicAction = this.aax_1.u8o(action_0, newCardsOnTheTable, table.players, table.config);
|
|
13274
13296
|
tmp = cardMechanicAction;
|
|
13275
13297
|
} else {
|
|
13276
13298
|
tmp = null;
|
|
@@ -13306,12 +13328,12 @@
|
|
|
13306
13328
|
// Inline function 'games.jass.logic.client.redux.middlewares.scenes.sceneActivationReducer.<anonymous>' call
|
|
13307
13329
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
13308
13330
|
var clientPayload = get_clientPayload_0(state);
|
|
13309
|
-
switch (action_0.
|
|
13331
|
+
switch (action_0.u8q_1) {
|
|
13310
13332
|
case 'CHOOSE_PARTNER':
|
|
13311
13333
|
case 'TRADE':
|
|
13312
13334
|
case 'EARN_POINTS':
|
|
13313
13335
|
case 'CALC_POINTS':
|
|
13314
|
-
var tmp$ret$0 = state.
|
|
13336
|
+
var tmp$ret$0 = state.f8u(VOID, clientPayload.bax(VOID, VOID, VOID, VOID, VOID, VOID, false));
|
|
13315
13337
|
break;
|
|
13316
13338
|
default:
|
|
13317
13339
|
tmp$ret$0 = state;
|
|
@@ -13327,9 +13349,9 @@
|
|
|
13327
13349
|
return new _no_name_provided__qut3iv_47(currentPlayerId, asyncProvider, persistentAppStateInteractor);
|
|
13328
13350
|
}
|
|
13329
13351
|
function exitAndSaveGameMiddleware$o$handle$slambda($store, $action, $persistentAppStateInteractor, resultContinuation) {
|
|
13330
|
-
this.
|
|
13331
|
-
this.
|
|
13332
|
-
this.
|
|
13352
|
+
this.kax_1 = $store;
|
|
13353
|
+
this.lax_1 = $action;
|
|
13354
|
+
this.max_1 = $persistentAppStateInteractor;
|
|
13333
13355
|
CoroutineImpl.call(this, resultContinuation);
|
|
13334
13356
|
}
|
|
13335
13357
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13349,16 +13371,16 @@
|
|
|
13349
13371
|
switch (tmp) {
|
|
13350
13372
|
case 0:
|
|
13351
13373
|
this.k9_1 = 2;
|
|
13352
|
-
this.
|
|
13353
|
-
if (!this.
|
|
13374
|
+
this.oax_1 = this.kax_1.state;
|
|
13375
|
+
if (!this.oax_1.p6n() || this.oax_1.o6n().isGameFinished) {
|
|
13354
13376
|
var tmp_0 = this;
|
|
13355
|
-
this.
|
|
13356
|
-
tmp_0.
|
|
13377
|
+
this.kax_1.dispatch(new FinishGameMechanicAction(new PlayerExitReason(this.lax_1.n8u_1), this.oax_1.o6n().isGameFinished));
|
|
13378
|
+
tmp_0.pax_1 = Unit_instance;
|
|
13357
13379
|
this.j9_1 = 3;
|
|
13358
13380
|
continue $sm;
|
|
13359
13381
|
} else {
|
|
13360
13382
|
this.j9_1 = 1;
|
|
13361
|
-
suspendResult = this.
|
|
13383
|
+
suspendResult = this.max_1.i9r(this.oax_1.o6n(), get_clientPayload_0(this.oax_1), true, this);
|
|
13362
13384
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13363
13385
|
return suspendResult;
|
|
13364
13386
|
}
|
|
@@ -13366,7 +13388,7 @@
|
|
|
13366
13388
|
}
|
|
13367
13389
|
|
|
13368
13390
|
case 1:
|
|
13369
|
-
this.
|
|
13391
|
+
this.pax_1 = suspendResult;
|
|
13370
13392
|
this.j9_1 = 3;
|
|
13371
13393
|
continue $sm;
|
|
13372
13394
|
case 2:
|
|
@@ -13386,8 +13408,8 @@
|
|
|
13386
13408
|
while (true);
|
|
13387
13409
|
};
|
|
13388
13410
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13389
|
-
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.
|
|
13390
|
-
i.
|
|
13411
|
+
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.kax_1, this.lax_1, this.max_1, completion);
|
|
13412
|
+
i.nax_1 = $this$launchDefault;
|
|
13391
13413
|
return i;
|
|
13392
13414
|
};
|
|
13393
13415
|
function exitAndSaveGameMiddleware$o$handle$slambda_0($store, $action, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -13399,9 +13421,9 @@
|
|
|
13399
13421
|
return l;
|
|
13400
13422
|
}
|
|
13401
13423
|
function _no_name_provided__qut3iv_47($currentPlayerId, $asyncProvider, $persistentAppStateInteractor) {
|
|
13402
|
-
this.
|
|
13403
|
-
this.
|
|
13404
|
-
this.
|
|
13424
|
+
this.qax_1 = $currentPlayerId;
|
|
13425
|
+
this.rax_1 = $asyncProvider;
|
|
13426
|
+
this.sax_1 = $persistentAppStateInteractor;
|
|
13405
13427
|
}
|
|
13406
13428
|
protoOf(_no_name_provided__qut3iv_47).n6i = function (action) {
|
|
13407
13429
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -13410,12 +13432,12 @@
|
|
|
13410
13432
|
$l$block: {
|
|
13411
13433
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.exitAndSaveGameMiddleware.<anonymous>' call
|
|
13412
13434
|
var action_0 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
13413
|
-
if (!(this.
|
|
13435
|
+
if (!(this.qax_1 === action_0.n8u_1)) {
|
|
13414
13436
|
next(action_0);
|
|
13415
13437
|
break $l$block;
|
|
13416
13438
|
}
|
|
13417
13439
|
next(action_0);
|
|
13418
|
-
this.
|
|
13440
|
+
this.rax_1.j6f(VOID, exitAndSaveGameMiddleware$o$handle$slambda_0(store, action_0, this.sax_1, null));
|
|
13419
13441
|
}
|
|
13420
13442
|
};
|
|
13421
13443
|
protoOf(_no_name_provided__qut3iv_47).m6i = function (store, next, action) {
|
|
@@ -13426,9 +13448,9 @@
|
|
|
13426
13448
|
return new _no_name_provided__qut3iv_48(asyncProvider, interactor);
|
|
13427
13449
|
}
|
|
13428
13450
|
function gameHistoryMiddleware$o$handle$slambda($action, $store, $interactor, resultContinuation) {
|
|
13429
|
-
this.
|
|
13430
|
-
this.
|
|
13431
|
-
this.
|
|
13451
|
+
this.bay_1 = $action;
|
|
13452
|
+
this.cay_1 = $store;
|
|
13453
|
+
this.day_1 = $interactor;
|
|
13432
13454
|
CoroutineImpl.call(this, resultContinuation);
|
|
13433
13455
|
}
|
|
13434
13456
|
protoOf(gameHistoryMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13448,22 +13470,22 @@
|
|
|
13448
13470
|
switch (tmp) {
|
|
13449
13471
|
case 0:
|
|
13450
13472
|
this.k9_1 = 4;
|
|
13451
|
-
this.
|
|
13452
|
-
var tmp_0 = this.
|
|
13473
|
+
this.fay_1 = this.bay_1;
|
|
13474
|
+
var tmp_0 = this.fay_1;
|
|
13453
13475
|
if (tmp_0 instanceof RoundStartedAction) {
|
|
13454
|
-
this.
|
|
13476
|
+
this.gay_1 = this.cay_1.state.o6n();
|
|
13455
13477
|
this.j9_1 = 2;
|
|
13456
|
-
suspendResult = this.
|
|
13478
|
+
suspendResult = this.day_1.f9r(this.bay_1.gameHistory, this.gay_1.config, this.gay_1.users, get_clientPayload_0(this.cay_1.state).i9q_1.e9o_1, this);
|
|
13457
13479
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13458
13480
|
return suspendResult;
|
|
13459
13481
|
}
|
|
13460
13482
|
continue $sm;
|
|
13461
13483
|
} else {
|
|
13462
|
-
var tmp_1 = this.
|
|
13484
|
+
var tmp_1 = this.fay_1;
|
|
13463
13485
|
if (tmp_1 instanceof RoundEndedAction) {
|
|
13464
|
-
this.
|
|
13486
|
+
this.hay_1 = this.cay_1.state.o6n();
|
|
13465
13487
|
this.j9_1 = 1;
|
|
13466
|
-
suspendResult = this.
|
|
13488
|
+
suspendResult = this.day_1.e9r(this.bay_1.gameHistory, this.hay_1.config, this.hay_1.users, get_clientPayload_0(this.cay_1.state).i9q_1.e9o_1, this);
|
|
13467
13489
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13468
13490
|
return suspendResult;
|
|
13469
13491
|
}
|
|
@@ -13497,8 +13519,8 @@
|
|
|
13497
13519
|
while (true);
|
|
13498
13520
|
};
|
|
13499
13521
|
protoOf(gameHistoryMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13500
|
-
var i = new gameHistoryMiddleware$o$handle$slambda(this.
|
|
13501
|
-
i.
|
|
13522
|
+
var i = new gameHistoryMiddleware$o$handle$slambda(this.bay_1, this.cay_1, this.day_1, completion);
|
|
13523
|
+
i.eay_1 = $this$launchDefault;
|
|
13502
13524
|
return i;
|
|
13503
13525
|
};
|
|
13504
13526
|
function gameHistoryMiddleware$o$handle$slambda_0($action, $store, $interactor, resultContinuation) {
|
|
@@ -13510,8 +13532,8 @@
|
|
|
13510
13532
|
return l;
|
|
13511
13533
|
}
|
|
13512
13534
|
function _no_name_provided__qut3iv_48($asyncProvider, $interactor) {
|
|
13513
|
-
this.
|
|
13514
|
-
this.
|
|
13535
|
+
this.iay_1 = $asyncProvider;
|
|
13536
|
+
this.jay_1 = $interactor;
|
|
13515
13537
|
}
|
|
13516
13538
|
protoOf(_no_name_provided__qut3iv_48).n6i = function (action) {
|
|
13517
13539
|
return action instanceof GameAction;
|
|
@@ -13520,7 +13542,7 @@
|
|
|
13520
13542
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.gameHistoryMiddleware.<anonymous>' call
|
|
13521
13543
|
var action_0 = action instanceof GameAction ? action : THROW_CCE();
|
|
13522
13544
|
next(action_0);
|
|
13523
|
-
this.
|
|
13545
|
+
this.iay_1.j6f(VOID, gameHistoryMiddleware$o$handle$slambda_0(action_0, store, this.jay_1, null));
|
|
13524
13546
|
};
|
|
13525
13547
|
protoOf(_no_name_provided__qut3iv_48).m6i = function (store, next, action) {
|
|
13526
13548
|
return this.e6k(store, next, action);
|
|
@@ -13531,9 +13553,9 @@
|
|
|
13531
13553
|
return new _no_name_provided__qut3iv_49(isEnableBotForPlayer, isDelayForBot, random);
|
|
13532
13554
|
}
|
|
13533
13555
|
function _no_name_provided__qut3iv_49($isEnableBotForPlayer, $isDelayForBot, $random) {
|
|
13534
|
-
this.
|
|
13535
|
-
this.
|
|
13536
|
-
this.
|
|
13556
|
+
this.kay_1 = $isEnableBotForPlayer;
|
|
13557
|
+
this.lay_1 = $isDelayForBot;
|
|
13558
|
+
this.may_1 = $random;
|
|
13537
13559
|
}
|
|
13538
13560
|
protoOf(_no_name_provided__qut3iv_49).n6i = function (action) {
|
|
13539
13561
|
return action instanceof ContinueGameMechanicAction;
|
|
@@ -13542,7 +13564,7 @@
|
|
|
13542
13564
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>' call
|
|
13543
13565
|
var action_0 = action instanceof ContinueGameMechanicAction ? action : THROW_CCE();
|
|
13544
13566
|
next(action_0);
|
|
13545
|
-
var table = action_0.
|
|
13567
|
+
var table = action_0.d8x_1;
|
|
13546
13568
|
// Inline function 'kotlin.collections.forEach' call
|
|
13547
13569
|
// Inline function 'kotlin.collections.filter' call
|
|
13548
13570
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -13552,7 +13574,7 @@
|
|
|
13552
13574
|
while (tmp0_iterator.k()) {
|
|
13553
13575
|
var element = tmp0_iterator.l();
|
|
13554
13576
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>.<anonymous>' call
|
|
13555
|
-
if (this.
|
|
13577
|
+
if (this.kay_1(element.playerId)) {
|
|
13556
13578
|
destination.e(element);
|
|
13557
13579
|
}
|
|
13558
13580
|
}
|
|
@@ -13560,7 +13582,7 @@
|
|
|
13560
13582
|
while (tmp0_iterator_0.k()) {
|
|
13561
13583
|
var element_0 = tmp0_iterator_0.l();
|
|
13562
13584
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>.<anonymous>' call
|
|
13563
|
-
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.
|
|
13585
|
+
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.m6u_1.b6c()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.lay_1, this.may_1), VOID, TimerType_DELAY_getInstance()));
|
|
13564
13586
|
}
|
|
13565
13587
|
};
|
|
13566
13588
|
protoOf(_no_name_provided__qut3iv_49).m6i = function (store, next, action) {
|
|
@@ -13571,9 +13593,9 @@
|
|
|
13571
13593
|
return new _no_name_provided__qut3iv_50(asyncProvider, persistentAppStateInteractor);
|
|
13572
13594
|
}
|
|
13573
13595
|
function removeSavedGameMiddleware$o$handle$slambda($action, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
13574
|
-
this.
|
|
13575
|
-
this.
|
|
13576
|
-
this.
|
|
13596
|
+
this.vay_1 = $action;
|
|
13597
|
+
this.way_1 = $persistentAppStateInteractor;
|
|
13598
|
+
this.xay_1 = $id;
|
|
13577
13599
|
CoroutineImpl.call(this, resultContinuation);
|
|
13578
13600
|
}
|
|
13579
13601
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13593,10 +13615,10 @@
|
|
|
13593
13615
|
switch (tmp) {
|
|
13594
13616
|
case 0:
|
|
13595
13617
|
this.k9_1 = 3;
|
|
13596
|
-
this.
|
|
13597
|
-
if (!(this.
|
|
13618
|
+
this.zay_1 = this.vay_1.gameWinners;
|
|
13619
|
+
if (!(this.zay_1 == null)) {
|
|
13598
13620
|
this.j9_1 = 1;
|
|
13599
|
-
suspendResult = this.
|
|
13621
|
+
suspendResult = this.way_1.j9r(this.xay_1, this);
|
|
13600
13622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13601
13623
|
return suspendResult;
|
|
13602
13624
|
}
|
|
@@ -13626,8 +13648,8 @@
|
|
|
13626
13648
|
while (true);
|
|
13627
13649
|
};
|
|
13628
13650
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13629
|
-
var i = new removeSavedGameMiddleware$o$handle$slambda(this.
|
|
13630
|
-
i.
|
|
13651
|
+
var i = new removeSavedGameMiddleware$o$handle$slambda(this.vay_1, this.way_1, this.xay_1, completion);
|
|
13652
|
+
i.yay_1 = $this$launchDefault;
|
|
13631
13653
|
return i;
|
|
13632
13654
|
};
|
|
13633
13655
|
function removeSavedGameMiddleware$o$handle$slambda_0($action, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
@@ -13639,8 +13661,8 @@
|
|
|
13639
13661
|
return l;
|
|
13640
13662
|
}
|
|
13641
13663
|
function _no_name_provided__qut3iv_50($asyncProvider, $persistentAppStateInteractor) {
|
|
13642
|
-
this.
|
|
13643
|
-
this.
|
|
13664
|
+
this.aaz_1 = $asyncProvider;
|
|
13665
|
+
this.baz_1 = $persistentAppStateInteractor;
|
|
13644
13666
|
}
|
|
13645
13667
|
protoOf(_no_name_provided__qut3iv_50).n6i = function (action) {
|
|
13646
13668
|
return action instanceof RoundEndedAction;
|
|
@@ -13648,9 +13670,9 @@
|
|
|
13648
13670
|
protoOf(_no_name_provided__qut3iv_50).e6k = function (store, next, action) {
|
|
13649
13671
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.removeSavedGameMiddleware.<anonymous>' call
|
|
13650
13672
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
13651
|
-
var id = store.state.
|
|
13673
|
+
var id = store.state.o6n().id;
|
|
13652
13674
|
next(action_0);
|
|
13653
|
-
this.
|
|
13675
|
+
this.aaz_1.j6f(VOID, removeSavedGameMiddleware$o$handle$slambda_0(action_0, this.baz_1, id, null));
|
|
13654
13676
|
};
|
|
13655
13677
|
protoOf(_no_name_provided__qut3iv_50).m6i = function (store, next, action) {
|
|
13656
13678
|
return this.e6k(store, next, action);
|
|
@@ -13660,8 +13682,8 @@
|
|
|
13660
13682
|
return new _no_name_provided__qut3iv_51(asyncProvider, persistentAppStateInteractor);
|
|
13661
13683
|
}
|
|
13662
13684
|
function removeSavedGameWhenErrorMiddleware$o$handle$slambda($store, $persistentAppStateInteractor, resultContinuation) {
|
|
13663
|
-
this.
|
|
13664
|
-
this.
|
|
13685
|
+
this.kaz_1 = $store;
|
|
13686
|
+
this.laz_1 = $persistentAppStateInteractor;
|
|
13665
13687
|
CoroutineImpl.call(this, resultContinuation);
|
|
13666
13688
|
}
|
|
13667
13689
|
protoOf(removeSavedGameWhenErrorMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13682,11 +13704,11 @@
|
|
|
13682
13704
|
case 0:
|
|
13683
13705
|
this.k9_1 = 2;
|
|
13684
13706
|
var tmp_0 = this;
|
|
13685
|
-
var tmp0_safe_receiver = this.
|
|
13707
|
+
var tmp0_safe_receiver = this.kaz_1.state.x6m_1;
|
|
13686
13708
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.id;
|
|
13687
|
-
tmp_0.
|
|
13709
|
+
tmp_0.naz_1 = tmp1_elvis_lhs == null ? 'temp_game_id' : tmp1_elvis_lhs;
|
|
13688
13710
|
this.j9_1 = 1;
|
|
13689
|
-
suspendResult = this.
|
|
13711
|
+
suspendResult = this.laz_1.j9r(this.naz_1, this);
|
|
13690
13712
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13691
13713
|
return suspendResult;
|
|
13692
13714
|
}
|
|
@@ -13709,8 +13731,8 @@
|
|
|
13709
13731
|
while (true);
|
|
13710
13732
|
};
|
|
13711
13733
|
protoOf(removeSavedGameWhenErrorMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13712
|
-
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.
|
|
13713
|
-
i.
|
|
13734
|
+
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.kaz_1, this.laz_1, completion);
|
|
13735
|
+
i.maz_1 = $this$launchDefault;
|
|
13714
13736
|
return i;
|
|
13715
13737
|
};
|
|
13716
13738
|
function removeSavedGameWhenErrorMiddleware$o$handle$slambda_0($store, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -13722,8 +13744,8 @@
|
|
|
13722
13744
|
return l;
|
|
13723
13745
|
}
|
|
13724
13746
|
function _no_name_provided__qut3iv_51($asyncProvider, $persistentAppStateInteractor) {
|
|
13725
|
-
this.
|
|
13726
|
-
this.
|
|
13747
|
+
this.oaz_1 = $asyncProvider;
|
|
13748
|
+
this.paz_1 = $persistentAppStateInteractor;
|
|
13727
13749
|
}
|
|
13728
13750
|
protoOf(_no_name_provided__qut3iv_51).n6i = function (action) {
|
|
13729
13751
|
return action instanceof ErrorAction;
|
|
@@ -13731,7 +13753,7 @@
|
|
|
13731
13753
|
protoOf(_no_name_provided__qut3iv_51).e6k = function (store, next, action) {
|
|
13732
13754
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.removeSavedGameWhenErrorMiddleware.<anonymous>' call
|
|
13733
13755
|
next(action instanceof ErrorAction ? action : THROW_CCE());
|
|
13734
|
-
this.
|
|
13756
|
+
this.oaz_1.j6f(VOID, removeSavedGameWhenErrorMiddleware$o$handle$slambda_0(store, this.paz_1, null));
|
|
13735
13757
|
};
|
|
13736
13758
|
protoOf(_no_name_provided__qut3iv_51).m6i = function (store, next, action) {
|
|
13737
13759
|
return this.e6k(store, next, action);
|
|
@@ -13741,9 +13763,9 @@
|
|
|
13741
13763
|
return new _no_name_provided__qut3iv_52(asyncProvider, persistentAppStateInteractor);
|
|
13742
13764
|
}
|
|
13743
13765
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda($action, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
13744
|
-
this.
|
|
13745
|
-
this.
|
|
13746
|
-
this.
|
|
13766
|
+
this.yaz_1 = $action;
|
|
13767
|
+
this.zaz_1 = $state;
|
|
13768
|
+
this.ab0_1 = $persistentAppStateInteractor;
|
|
13747
13769
|
CoroutineImpl.call(this, resultContinuation);
|
|
13748
13770
|
}
|
|
13749
13771
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13763,9 +13785,9 @@
|
|
|
13763
13785
|
switch (tmp) {
|
|
13764
13786
|
case 0:
|
|
13765
13787
|
this.k9_1 = 3;
|
|
13766
|
-
if (!this.
|
|
13788
|
+
if (!this.yaz_1.kat_1 && this.zaz_1.p6n() && !this.zaz_1.o6n().isGameFinished) {
|
|
13767
13789
|
this.j9_1 = 1;
|
|
13768
|
-
suspendResult = this.
|
|
13790
|
+
suspendResult = this.ab0_1.i9r(this.zaz_1.o6n(), get_clientPayload_0(this.zaz_1), false, this);
|
|
13769
13791
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13770
13792
|
return suspendResult;
|
|
13771
13793
|
}
|
|
@@ -13795,8 +13817,8 @@
|
|
|
13795
13817
|
while (true);
|
|
13796
13818
|
};
|
|
13797
13819
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13798
|
-
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.
|
|
13799
|
-
i.
|
|
13820
|
+
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.yaz_1, this.zaz_1, this.ab0_1, completion);
|
|
13821
|
+
i.bb0_1 = $this$launchDefault;
|
|
13800
13822
|
return i;
|
|
13801
13823
|
};
|
|
13802
13824
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0($action, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -13808,8 +13830,8 @@
|
|
|
13808
13830
|
return l;
|
|
13809
13831
|
}
|
|
13810
13832
|
function _no_name_provided__qut3iv_52($asyncProvider, $persistentAppStateInteractor) {
|
|
13811
|
-
this.
|
|
13812
|
-
this.
|
|
13833
|
+
this.cb0_1 = $asyncProvider;
|
|
13834
|
+
this.db0_1 = $persistentAppStateInteractor;
|
|
13813
13835
|
}
|
|
13814
13836
|
protoOf(_no_name_provided__qut3iv_52).n6i = function (action) {
|
|
13815
13837
|
return action instanceof ForegroundAction;
|
|
@@ -13819,7 +13841,7 @@
|
|
|
13819
13841
|
var action_0 = action instanceof ForegroundAction ? action : THROW_CCE();
|
|
13820
13842
|
var state = store.state;
|
|
13821
13843
|
next(action_0);
|
|
13822
|
-
this.
|
|
13844
|
+
this.cb0_1.j6f(VOID, saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0(action_0, state, this.db0_1, null));
|
|
13823
13845
|
};
|
|
13824
13846
|
protoOf(_no_name_provided__qut3iv_52).m6i = function (store, next, action) {
|
|
13825
13847
|
return this.e6k(store, next, action);
|
|
@@ -13829,9 +13851,9 @@
|
|
|
13829
13851
|
return new _no_name_provided__qut3iv_53(asyncProvider, currentPlayerId, clientStatisticsInteractor);
|
|
13830
13852
|
}
|
|
13831
13853
|
function statisticsMiddleware$o$handle$slambda($action, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
13832
|
-
this.
|
|
13833
|
-
this.
|
|
13834
|
-
this.
|
|
13854
|
+
this.mb0_1 = $action;
|
|
13855
|
+
this.nb0_1 = $currentPlayerId;
|
|
13856
|
+
this.ob0_1 = $clientStatisticsInteractor;
|
|
13835
13857
|
CoroutineImpl.call(this, resultContinuation);
|
|
13836
13858
|
}
|
|
13837
13859
|
protoOf(statisticsMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13851,26 +13873,26 @@
|
|
|
13851
13873
|
switch (tmp) {
|
|
13852
13874
|
case 0:
|
|
13853
13875
|
this.k9_1 = 4;
|
|
13854
|
-
this.
|
|
13876
|
+
this.qb0_1 = this.mb0_1.earnedBiggestPointPlayerId === this.nb0_1;
|
|
13855
13877
|
var tmp_0 = this;
|
|
13856
|
-
var tmp0_safe_receiver = this.
|
|
13857
|
-
tmp_0.
|
|
13878
|
+
var tmp0_safe_receiver = this.mb0_1.gameHistory.lastRoundHistory.winners;
|
|
13879
|
+
tmp_0.rb0_1 = (tmp0_safe_receiver == null ? null : contains(tmp0_safe_receiver, this.nb0_1)) === true;
|
|
13858
13880
|
var tmp_1 = this;
|
|
13859
|
-
var tmp1_safe_receiver = this.
|
|
13860
|
-
tmp_1.
|
|
13881
|
+
var tmp1_safe_receiver = this.mb0_1.gameHistory.lastRoundHistory.committed;
|
|
13882
|
+
tmp_1.sb0_1 = (tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, this.nb0_1)) === true;
|
|
13861
13883
|
this.j9_1 = 1;
|
|
13862
|
-
suspendResult = this.
|
|
13884
|
+
suspendResult = this.ob0_1.g9r(this.sb0_1, this.rb0_1, this.qb0_1, this);
|
|
13863
13885
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13864
13886
|
return suspendResult;
|
|
13865
13887
|
}
|
|
13866
13888
|
|
|
13867
13889
|
continue $sm;
|
|
13868
13890
|
case 1:
|
|
13869
|
-
this.
|
|
13870
|
-
if (!(this.
|
|
13871
|
-
this.
|
|
13891
|
+
this.tb0_1 = this.mb0_1.gameWinners;
|
|
13892
|
+
if (!(this.tb0_1 == null)) {
|
|
13893
|
+
this.ub0_1 = contains(this.tb0_1, this.nb0_1);
|
|
13872
13894
|
this.j9_1 = 2;
|
|
13873
|
-
suspendResult = this.
|
|
13895
|
+
suspendResult = this.ob0_1.h9r(this.ub0_1, this);
|
|
13874
13896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13875
13897
|
return suspendResult;
|
|
13876
13898
|
}
|
|
@@ -13900,8 +13922,8 @@
|
|
|
13900
13922
|
while (true);
|
|
13901
13923
|
};
|
|
13902
13924
|
protoOf(statisticsMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13903
|
-
var i = new statisticsMiddleware$o$handle$slambda(this.
|
|
13904
|
-
i.
|
|
13925
|
+
var i = new statisticsMiddleware$o$handle$slambda(this.mb0_1, this.nb0_1, this.ob0_1, completion);
|
|
13926
|
+
i.pb0_1 = $this$launchDefault;
|
|
13905
13927
|
return i;
|
|
13906
13928
|
};
|
|
13907
13929
|
function statisticsMiddleware$o$handle$slambda_0($action, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
@@ -13913,9 +13935,9 @@
|
|
|
13913
13935
|
return l;
|
|
13914
13936
|
}
|
|
13915
13937
|
function _no_name_provided__qut3iv_53($asyncProvider, $currentPlayerId, $clientStatisticsInteractor) {
|
|
13916
|
-
this.
|
|
13917
|
-
this.
|
|
13918
|
-
this.
|
|
13938
|
+
this.vb0_1 = $asyncProvider;
|
|
13939
|
+
this.wb0_1 = $currentPlayerId;
|
|
13940
|
+
this.xb0_1 = $clientStatisticsInteractor;
|
|
13919
13941
|
}
|
|
13920
13942
|
protoOf(_no_name_provided__qut3iv_53).n6i = function (action) {
|
|
13921
13943
|
return action instanceof RoundEndedAction;
|
|
@@ -13924,7 +13946,7 @@
|
|
|
13924
13946
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.statisticsMiddleware.<anonymous>' call
|
|
13925
13947
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
13926
13948
|
next(action_0);
|
|
13927
|
-
this.
|
|
13949
|
+
this.vb0_1.j6f(VOID, statisticsMiddleware$o$handle$slambda_0(action_0, this.wb0_1, this.xb0_1, null));
|
|
13928
13950
|
};
|
|
13929
13951
|
protoOf(_no_name_provided__qut3iv_53).m6i = function (store, next, action) {
|
|
13930
13952
|
return this.e6k(store, next, action);
|
|
@@ -13942,9 +13964,9 @@
|
|
|
13942
13964
|
// Inline function 'games.jass.logic.client.redux.middlewares.timers.clearTimersWhenErrorMiddleware.<anonymous>' call
|
|
13943
13965
|
var action_0 = action instanceof ErrorAction ? action : THROW_CCE();
|
|
13944
13966
|
var state = store.state;
|
|
13945
|
-
if (state.
|
|
13967
|
+
if (state.p6n()) {
|
|
13946
13968
|
// Inline function 'kotlin.collections.forEach' call
|
|
13947
|
-
var tmp0_iterator = state.
|
|
13969
|
+
var tmp0_iterator = state.b6n_1.j();
|
|
13948
13970
|
while (tmp0_iterator.k()) {
|
|
13949
13971
|
var element = tmp0_iterator.l();
|
|
13950
13972
|
// Inline function 'games.jass.logic.client.redux.middlewares.timers.clearTimersWhenErrorMiddleware.<anonymous>.<anonymous>' call
|
|
@@ -13961,7 +13983,7 @@
|
|
|
13961
13983
|
return new _no_name_provided__qut3iv_55(logger);
|
|
13962
13984
|
}
|
|
13963
13985
|
function _no_name_provided__qut3iv_55($logger) {
|
|
13964
|
-
this.
|
|
13986
|
+
this.yb0_1 = $logger;
|
|
13965
13987
|
}
|
|
13966
13988
|
protoOf(_no_name_provided__qut3iv_55).n6i = function (action) {
|
|
13967
13989
|
return action instanceof ExpectantLifecycleAction;
|
|
@@ -13996,7 +14018,7 @@
|
|
|
13996
14018
|
tmp$ret$0 = true;
|
|
13997
14019
|
}
|
|
13998
14020
|
if (tmp$ret$0) {
|
|
13999
|
-
this.
|
|
14021
|
+
this.yb0_1.w(VOID, "CheckExpectantsMiddleware: Expectant is not exists, can't finish it: " + toString(expectants) + ', ' + action_0.toString());
|
|
14000
14022
|
}
|
|
14001
14023
|
} else {
|
|
14002
14024
|
if (action_0 instanceof ExpectantCreatedClientAction) {
|
|
@@ -14025,7 +14047,7 @@
|
|
|
14025
14047
|
tmp$ret$2 = false;
|
|
14026
14048
|
}
|
|
14027
14049
|
if (tmp$ret$2) {
|
|
14028
|
-
this.
|
|
14050
|
+
this.yb0_1.w(VOID, "CheckExpectantsMiddleware: Expectant already exists, can't add it: " + toString(expectants) + ', ' + action_0.toString());
|
|
14029
14051
|
}
|
|
14030
14052
|
} else {
|
|
14031
14053
|
if (action_0 instanceof ExpectantStageCompletedClientAction) {
|
|
@@ -14054,7 +14076,7 @@
|
|
|
14054
14076
|
tmp$ret$4 = true;
|
|
14055
14077
|
}
|
|
14056
14078
|
if (tmp$ret$4) {
|
|
14057
|
-
this.
|
|
14079
|
+
this.yb0_1.w(VOID, "CheckExpectantsMiddleware: Expectant is not exists, can't complete stage: " + toString(expectants) + ', ' + action_0.toString());
|
|
14058
14080
|
}
|
|
14059
14081
|
} else {
|
|
14060
14082
|
noWhenBranchMatchedException();
|
|
@@ -14071,8 +14093,8 @@
|
|
|
14071
14093
|
return new _no_name_provided__qut3iv_56(currentPlayerId, gameLogger);
|
|
14072
14094
|
}
|
|
14073
14095
|
function _no_name_provided__qut3iv_56($currentPlayerId, $gameLogger) {
|
|
14074
|
-
this.
|
|
14075
|
-
this.
|
|
14096
|
+
this.zb0_1 = $currentPlayerId;
|
|
14097
|
+
this.ab1_1 = $gameLogger;
|
|
14076
14098
|
}
|
|
14077
14099
|
protoOf(_no_name_provided__qut3iv_56).n6i = function (action) {
|
|
14078
14100
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -14089,19 +14111,19 @@
|
|
|
14089
14111
|
while (tmp0_iterator.k()) {
|
|
14090
14112
|
var element = tmp0_iterator.l();
|
|
14091
14113
|
// Inline function 'games.jass.logic.client.redux.middlewares.validation.checkValidCurrentPlayerIdMiddleware.<anonymous>.<anonymous>' call
|
|
14092
|
-
if (element.o69_1 === this.
|
|
14114
|
+
if (element.o69_1 === this.zb0_1) {
|
|
14093
14115
|
destination.e(element);
|
|
14094
14116
|
}
|
|
14095
14117
|
}
|
|
14096
14118
|
if (!(destination.m() === 1)) {
|
|
14097
14119
|
var state = store.state;
|
|
14098
|
-
this.
|
|
14120
|
+
this.ab1_1.w(VOID, 'checkValidCurrentPlayerIdMiddleware: currentPlayer id is not matched');
|
|
14099
14121
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(state);
|
|
14100
14122
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i9q_1;
|
|
14101
14123
|
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h9o()) === false)) {
|
|
14102
|
-
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.
|
|
14124
|
+
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.zb0_1, VOID, new GameErrorReason(Reason_INTERNAL_ERROR_getInstance()))));
|
|
14103
14125
|
} else {
|
|
14104
|
-
throw new SessionException(401, 'Not valid user session, id:' + this.
|
|
14126
|
+
throw new SessionException(401, 'Not valid user session, id:' + this.zb0_1);
|
|
14105
14127
|
}
|
|
14106
14128
|
}
|
|
14107
14129
|
};
|
|
@@ -14113,9 +14135,9 @@
|
|
|
14113
14135
|
return new _no_name_provided__qut3iv_57(putCardValidatorInteractor, messageFactory, logger);
|
|
14114
14136
|
}
|
|
14115
14137
|
function _no_name_provided__qut3iv_57($putCardValidatorInteractor, $messageFactory, $logger) {
|
|
14116
|
-
this.
|
|
14117
|
-
this.
|
|
14118
|
-
this.
|
|
14138
|
+
this.bb1_1 = $putCardValidatorInteractor;
|
|
14139
|
+
this.cb1_1 = $messageFactory;
|
|
14140
|
+
this.db1_1 = $logger;
|
|
14119
14141
|
}
|
|
14120
14142
|
protoOf(_no_name_provided__qut3iv_57).n6i = function (action) {
|
|
14121
14143
|
return action instanceof DisabledCardAction;
|
|
@@ -14124,12 +14146,12 @@
|
|
|
14124
14146
|
// Inline function 'games.jass.logic.client.redux.middlewares.validation.clientShowDisabledCardMessageMiddleware.<anonymous>' call
|
|
14125
14147
|
var action_0 = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
14126
14148
|
var state = store.state;
|
|
14127
|
-
if (get_isEarnPointScene(state.
|
|
14128
|
-
var validationCode = this.
|
|
14149
|
+
if (get_isEarnPointScene(state.o6n().sceneInfo.z7t_1)) {
|
|
14150
|
+
var validationCode = this.bb1_1.k9r(action_0.eb1_1, get_currentPlayer(state.o6n()), state.o6n());
|
|
14129
14151
|
if (!(validationCode == null)) {
|
|
14130
|
-
store.dispatch(new InfoMessageAction(this.
|
|
14152
|
+
store.dispatch(new InfoMessageAction(this.cb1_1.v8j(validationCode)));
|
|
14131
14153
|
} else {
|
|
14132
|
-
this.
|
|
14154
|
+
this.db1_1.w(VOID, 'clientShowDisabledCardMessageMiddleware: card is valid, please check');
|
|
14133
14155
|
}
|
|
14134
14156
|
}
|
|
14135
14157
|
next(action_0);
|
|
@@ -14142,9 +14164,9 @@
|
|
|
14142
14164
|
return new _no_name_provided__qut3iv_58(putCardValidatorInteractor, logger, messageFactory);
|
|
14143
14165
|
}
|
|
14144
14166
|
function _no_name_provided__qut3iv_58($putCardValidatorInteractor, $logger, $messageFactory) {
|
|
14145
|
-
this.
|
|
14146
|
-
this.
|
|
14147
|
-
this.
|
|
14167
|
+
this.fb1_1 = $putCardValidatorInteractor;
|
|
14168
|
+
this.gb1_1 = $logger;
|
|
14169
|
+
this.hb1_1 = $messageFactory;
|
|
14148
14170
|
}
|
|
14149
14171
|
protoOf(_no_name_provided__qut3iv_58).n6i = function (action) {
|
|
14150
14172
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -14154,18 +14176,18 @@
|
|
|
14154
14176
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
14155
14177
|
var state = store.state;
|
|
14156
14178
|
var cardNotValidCount = 0;
|
|
14157
|
-
var player = get_currentPlayer(state.
|
|
14158
|
-
var validationCode = this.
|
|
14179
|
+
var player = get_currentPlayer(state.o6n());
|
|
14180
|
+
var validationCode = this.fb1_1.k9r(action_0.sat_1.g6f_1, player, state.o6n());
|
|
14159
14181
|
if (!(validationCode == null)) {
|
|
14160
14182
|
cardNotValidCount = cardNotValidCount + 1 | 0;
|
|
14161
14183
|
} else {
|
|
14162
14184
|
cardNotValidCount = 0;
|
|
14163
14185
|
}
|
|
14164
14186
|
if (cardNotValidCount > 3) {
|
|
14165
|
-
this.
|
|
14187
|
+
this.gb1_1.w(VOID, 'validateCardMiddleware: card is not valid for the third time, please check');
|
|
14166
14188
|
}
|
|
14167
14189
|
if (!(validationCode == null)) {
|
|
14168
|
-
store.dispatch(new InfoMessageAction(this.
|
|
14190
|
+
store.dispatch(new InfoMessageAction(this.hb1_1.v8j(validationCode)));
|
|
14169
14191
|
} else {
|
|
14170
14192
|
next(action_0);
|
|
14171
14193
|
}
|
|
@@ -14181,64 +14203,63 @@
|
|
|
14181
14203
|
}
|
|
14182
14204
|
function ClientCombinationsReducerImpl() {
|
|
14183
14205
|
}
|
|
14184
|
-
protoOf(ClientCombinationsReducerImpl).
|
|
14185
|
-
if (
|
|
14186
|
-
|
|
14187
|
-
$l$block: {
|
|
14188
|
-
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
14189
|
-
var this_0 = sceneInfo.p7u_1;
|
|
14190
|
-
if (this_0 instanceof CombinationActData) {
|
|
14191
|
-
tmp$ret$0 = this_0;
|
|
14192
|
-
break $l$block;
|
|
14193
|
-
}
|
|
14194
|
-
throw new MechanicException('Required ' + getKClass(CombinationActData).qa() + ', current act is ' + toString_0(this_0));
|
|
14195
|
-
}
|
|
14196
|
-
var actData = tmp$ret$0;
|
|
14197
|
-
if (currentPlayerId === actData.x79()) {
|
|
14198
|
-
return new CombinationToAnnounceState(actData.c7a_1, null, null);
|
|
14199
|
-
}
|
|
14206
|
+
protoOf(ClientCombinationsReducerImpl).ib1 = function (currentPlayerId, actData) {
|
|
14207
|
+
if (!(actData == null) && currentPlayerId === actData.l79()) {
|
|
14208
|
+
return new CombinationToAnnounceState(actData.q79_1, null, null);
|
|
14200
14209
|
}
|
|
14201
14210
|
return null;
|
|
14202
14211
|
};
|
|
14203
14212
|
function _no_name_provided__qut3iv_59($clientCombinationsReducer) {
|
|
14204
|
-
this.
|
|
14213
|
+
this.jb1_1 = $clientCombinationsReducer;
|
|
14205
14214
|
}
|
|
14206
14215
|
protoOf(_no_name_provided__qut3iv_59).n6i = function (action) {
|
|
14207
14216
|
return isInterface(action, NavigationMechanicAction);
|
|
14208
14217
|
};
|
|
14209
14218
|
protoOf(_no_name_provided__qut3iv_59).a97 = function (state, action) {
|
|
14210
|
-
var tmp$ret$
|
|
14211
|
-
$l$
|
|
14219
|
+
var tmp$ret$1;
|
|
14220
|
+
$l$block_0: {
|
|
14212
14221
|
// Inline function 'games.jass.logic.client.redux.redusers.clientCombinationToAnnounceStateOnPlayerTurnReducer.<anonymous>' call
|
|
14213
14222
|
var action_0 = isInterface(action, NavigationMechanicAction) ? action : THROW_CCE();
|
|
14214
|
-
var table = state.
|
|
14223
|
+
var table = state.o6n();
|
|
14215
14224
|
var actId = action_0.actId;
|
|
14216
14225
|
if (actId === 'COMBINATION') {
|
|
14217
|
-
tmp
|
|
14218
|
-
|
|
14226
|
+
var tmp = get_clientPayload_0(state);
|
|
14227
|
+
var tmp_0 = get_currentPlayer(table).playerId;
|
|
14228
|
+
var tmp$ret$0;
|
|
14229
|
+
$l$block: {
|
|
14230
|
+
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
14231
|
+
var this_0 = action_0.actData;
|
|
14232
|
+
if (this_0 instanceof CombinationActData) {
|
|
14233
|
+
tmp$ret$0 = this_0;
|
|
14234
|
+
break $l$block;
|
|
14235
|
+
}
|
|
14236
|
+
throw new MechanicException('Required ' + getKClass(CombinationActData).qa() + ', current act is ' + toString_0(this_0));
|
|
14237
|
+
}
|
|
14238
|
+
tmp$ret$1 = state.f8u(VOID, tmp.bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.jb1_1.ib1(tmp_0, tmp$ret$0)));
|
|
14239
|
+
break $l$block_0;
|
|
14219
14240
|
}
|
|
14220
|
-
tmp$ret$
|
|
14241
|
+
tmp$ret$1 = state;
|
|
14221
14242
|
}
|
|
14222
|
-
return tmp$ret$
|
|
14243
|
+
return tmp$ret$1;
|
|
14223
14244
|
};
|
|
14224
14245
|
protoOf(_no_name_provided__qut3iv_59).f6k = function (state, action) {
|
|
14225
14246
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
14226
14247
|
};
|
|
14227
14248
|
function ClientLifecycleReducer(logger) {
|
|
14228
|
-
this.
|
|
14249
|
+
this.kb1_1 = logger;
|
|
14229
14250
|
}
|
|
14230
|
-
protoOf(ClientLifecycleReducer).
|
|
14251
|
+
protoOf(ClientLifecycleReducer).lb1 = function (state, messagesReducer) {
|
|
14231
14252
|
var tmp1_config = state.i9q_1;
|
|
14232
14253
|
var tmp2_isForeground = state.n9q_1;
|
|
14233
14254
|
var tmp3_isSceneActive = state.o9q_1;
|
|
14234
14255
|
var tmp4_bufferedActions = state.m9q_1;
|
|
14235
14256
|
var tmp5_error = state.w9q_1;
|
|
14236
14257
|
var tmp6_messages = messagesReducer(state.j9q_1);
|
|
14237
|
-
return Companion_instance_13.
|
|
14258
|
+
return Companion_instance_13.mb1(tmp1_config, tmp2_isForeground, tmp3_isSceneActive, tmp6_messages, tmp4_bufferedActions, tmp5_error);
|
|
14238
14259
|
};
|
|
14239
|
-
protoOf(ClientLifecycleReducer).
|
|
14260
|
+
protoOf(ClientLifecycleReducer).nb1 = function (state) {
|
|
14240
14261
|
if (state.i9q_1.g9o()) {
|
|
14241
|
-
return Companion_instance_13.
|
|
14262
|
+
return Companion_instance_13.pb1(state.i9q_1, state.n9q_1, state.o9q_1);
|
|
14242
14263
|
} else {
|
|
14243
14264
|
var tmp1_config = state.i9q_1;
|
|
14244
14265
|
var tmp2_isForeground = state.n9q_1;
|
|
@@ -14249,10 +14270,10 @@
|
|
|
14249
14270
|
var tmp7_combinations = state.r9q_1;
|
|
14250
14271
|
var tmp8_messages = state.j9q_1;
|
|
14251
14272
|
var tmp9_processingCard = state.u9q_1;
|
|
14252
|
-
return Companion_instance_13.
|
|
14273
|
+
return Companion_instance_13.ob1(tmp1_config, tmp2_isForeground, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_expectants, tmp7_combinations, tmp9_processingCard, tmp4_error);
|
|
14253
14274
|
}
|
|
14254
14275
|
};
|
|
14255
|
-
protoOf(ClientLifecycleReducer).
|
|
14276
|
+
protoOf(ClientLifecycleReducer).qb1 = function (messages) {
|
|
14256
14277
|
// Inline function 'kotlin.collections.filter' call
|
|
14257
14278
|
// Inline function 'kotlin.collections.filterTo' call
|
|
14258
14279
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -14260,13 +14281,13 @@
|
|
|
14260
14281
|
while (tmp0_iterator.k()) {
|
|
14261
14282
|
var element = tmp0_iterator.l();
|
|
14262
14283
|
// Inline function 'games.jass.logic.client.redux.redusers.ClientLifecycleReducer.gameFinishedMessagesReducer.<anonymous>' call
|
|
14263
|
-
if (element.
|
|
14284
|
+
if (element.t6q().equals(MessageLifecycle_ROOM_getInstance())) {
|
|
14264
14285
|
destination.e(element);
|
|
14265
14286
|
}
|
|
14266
14287
|
}
|
|
14267
|
-
return updateMessagesAsNotShown(destination, this.
|
|
14288
|
+
return updateMessagesAsNotShown(destination, this.kb1_1);
|
|
14268
14289
|
};
|
|
14269
|
-
protoOf(ClientLifecycleReducer).
|
|
14290
|
+
protoOf(ClientLifecycleReducer).rb1 = function (messages) {
|
|
14270
14291
|
// Inline function 'kotlin.collections.filter' call
|
|
14271
14292
|
// Inline function 'kotlin.collections.filterTo' call
|
|
14272
14293
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -14274,11 +14295,11 @@
|
|
|
14274
14295
|
while (tmp0_iterator.k()) {
|
|
14275
14296
|
var element = tmp0_iterator.l();
|
|
14276
14297
|
// Inline function 'games.jass.logic.client.redux.redusers.ClientLifecycleReducer.roundFinishedMessagesReducer.<anonymous>' call
|
|
14277
|
-
if (element.
|
|
14298
|
+
if (element.t6q().equals(MessageLifecycle_GAME_getInstance()) || element.t6q().equals(MessageLifecycle_ROOM_getInstance())) {
|
|
14278
14299
|
destination.e(element);
|
|
14279
14300
|
}
|
|
14280
14301
|
}
|
|
14281
|
-
return updateMessagesAsNotShown(destination, this.
|
|
14302
|
+
return updateMessagesAsNotShown(destination, this.kb1_1);
|
|
14282
14303
|
};
|
|
14283
14304
|
function updateMessagesAsNotShown(_this__u8e3s4, gameLogger) {
|
|
14284
14305
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -14290,37 +14311,37 @@
|
|
|
14290
14311
|
// Inline function 'games.jass.logic.client.redux.redusers.updateMessagesAsNotShown.<anonymous>' call
|
|
14291
14312
|
var tmp;
|
|
14292
14313
|
if (item instanceof WhoShuffleCardsMessage) {
|
|
14293
|
-
tmp = item.
|
|
14314
|
+
tmp = item.e6s(VOID, VOID, VOID, false);
|
|
14294
14315
|
} else {
|
|
14295
14316
|
if (item instanceof TextMessage) {
|
|
14296
|
-
tmp = item.
|
|
14317
|
+
tmp = item.u6t(VOID, VOID, VOID, false);
|
|
14297
14318
|
} else {
|
|
14298
14319
|
if (item instanceof PhraseMessage) {
|
|
14299
|
-
tmp = item.
|
|
14320
|
+
tmp = item.i6t(VOID, VOID, VOID, false);
|
|
14300
14321
|
} else {
|
|
14301
14322
|
if (item instanceof AnnouncedCombinationMessage) {
|
|
14302
|
-
tmp = item.
|
|
14323
|
+
tmp = item.l6s(VOID, VOID, VOID, false);
|
|
14303
14324
|
} else {
|
|
14304
14325
|
if (item instanceof WinnerCombinationsMessage) {
|
|
14305
|
-
tmp = item.
|
|
14326
|
+
tmp = item.t6s(VOID, VOID, false);
|
|
14306
14327
|
} else {
|
|
14307
14328
|
if (item instanceof PreviousRoundPointsMessage) {
|
|
14308
|
-
tmp = item.
|
|
14329
|
+
tmp = item.f6r(VOID, VOID, VOID, VOID, VOID, VOID, false);
|
|
14309
14330
|
} else {
|
|
14310
14331
|
if (item instanceof StickerMessage) {
|
|
14311
|
-
tmp = item.
|
|
14332
|
+
tmp = item.o6t(VOID, VOID, VOID, false);
|
|
14312
14333
|
} else {
|
|
14313
14334
|
if (item instanceof RandomSignatureMessage) {
|
|
14314
|
-
tmp = item.
|
|
14335
|
+
tmp = item.n6r(VOID, VOID, false);
|
|
14315
14336
|
} else {
|
|
14316
14337
|
if (item instanceof ValidationMessage) {
|
|
14317
|
-
tmp = item.
|
|
14338
|
+
tmp = item.b6u(VOID, VOID, false);
|
|
14318
14339
|
} else {
|
|
14319
14340
|
if (item instanceof ServiceMessage) {
|
|
14320
|
-
tmp = item.
|
|
14341
|
+
tmp = item.v6r(VOID, VOID, false);
|
|
14321
14342
|
} else {
|
|
14322
14343
|
if (item instanceof EventMessage) {
|
|
14323
|
-
tmp = item.
|
|
14344
|
+
tmp = item.v6q(VOID, VOID, false);
|
|
14324
14345
|
} else {
|
|
14325
14346
|
gameLogger.w(VOID, "updateMessagesAsNotShown: Can't support this message " + toString(item));
|
|
14326
14347
|
tmp = item;
|
|
@@ -14343,13 +14364,13 @@
|
|
|
14343
14364
|
function ClientMechanicLifecycleReducer$onStart$lambda(this$0, $action) {
|
|
14344
14365
|
return function (it) {
|
|
14345
14366
|
var tmp;
|
|
14346
|
-
if (this$0.
|
|
14367
|
+
if (this$0.ub1_1.g9o()) {
|
|
14347
14368
|
var tmp_0 = Companion_instance_2;
|
|
14348
14369
|
var tmp_1 = Companion_instance_3;
|
|
14349
14370
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
14350
14371
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
14351
14372
|
Companion_getInstance();
|
|
14352
|
-
var this_0 = $action.
|
|
14373
|
+
var this_0 = $action.v8v_1.timeoutTimeMillis;
|
|
14353
14374
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
14354
14375
|
tmp = tmp_0.v6b(tmp_1.p6a(tmp_2, tmp$ret$0));
|
|
14355
14376
|
} else {
|
|
@@ -14360,70 +14381,88 @@
|
|
|
14360
14381
|
}
|
|
14361
14382
|
function ClientLifecycleReducer$gameFinishedMessagesReducer$ref($boundThis) {
|
|
14362
14383
|
var l = function (p0) {
|
|
14363
|
-
return $boundThis.
|
|
14384
|
+
return $boundThis.qb1(p0);
|
|
14364
14385
|
};
|
|
14365
14386
|
l.callableName = 'gameFinishedMessagesReducer';
|
|
14366
14387
|
return l;
|
|
14367
14388
|
}
|
|
14368
14389
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref($boundThis) {
|
|
14369
14390
|
var l = function (p0) {
|
|
14370
|
-
return $boundThis.
|
|
14391
|
+
return $boundThis.rb1(p0);
|
|
14371
14392
|
};
|
|
14372
14393
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
14373
14394
|
return l;
|
|
14374
14395
|
}
|
|
14375
14396
|
function ClientMechanicLifecycleReducer(clintConfig, logger, tableLifecycleReducer, randomPoolProvider, clientLifecycleReducer, clientCombinationsReducer) {
|
|
14376
14397
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
14377
|
-
this.
|
|
14378
|
-
this.
|
|
14379
|
-
this.
|
|
14380
|
-
this.
|
|
14398
|
+
this.ub1_1 = clintConfig;
|
|
14399
|
+
this.vb1_1 = logger;
|
|
14400
|
+
this.wb1_1 = clientLifecycleReducer;
|
|
14401
|
+
this.xb1_1 = clientCombinationsReducer;
|
|
14381
14402
|
}
|
|
14382
14403
|
protoOf(ClientMechanicLifecycleReducer).q98 = function (state, action) {
|
|
14383
|
-
var clientState = get_clientPayloadOrNull(state.
|
|
14404
|
+
var clientState = get_clientPayloadOrNull(state.y6m_1);
|
|
14384
14405
|
var tmp0_$this = this.r98_1;
|
|
14385
|
-
var tmp1_tableId = action.
|
|
14386
|
-
var tmp2_gameId = action.
|
|
14387
|
-
var tmp3_version = action.
|
|
14388
|
-
var tmp4_config = action.
|
|
14389
|
-
var tmp5_users = action.
|
|
14406
|
+
var tmp1_tableId = action.w8v_1;
|
|
14407
|
+
var tmp2_gameId = action.w8v_1;
|
|
14408
|
+
var tmp3_version = action.x8v_1;
|
|
14409
|
+
var tmp4_config = action.v8v_1;
|
|
14410
|
+
var tmp5_users = action.z8v_1;
|
|
14390
14411
|
var tmp6_spectators = emptyList();
|
|
14391
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
14412
|
+
var tmp7_gameCreatorPlayerId = action.y8v_1;
|
|
14392
14413
|
var newTable = tmp0_$this.x99(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ClientMechanicLifecycleReducer$onStart$lambda(this, action));
|
|
14393
14414
|
var tmp;
|
|
14394
14415
|
if (clientState == null) {
|
|
14395
|
-
this.
|
|
14396
|
-
tmp = Companion_instance_13.
|
|
14416
|
+
this.vb1_1.w(VOID, 'ClientPayload is not onStart, should be init via InitClientStateAction');
|
|
14417
|
+
tmp = Companion_instance_13.yb1(this.ub1_1);
|
|
14397
14418
|
} else {
|
|
14398
14419
|
tmp = clientState;
|
|
14399
14420
|
}
|
|
14400
14421
|
var newPayload = tmp;
|
|
14401
14422
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
14402
|
-
return state.
|
|
14423
|
+
return state.f8u(newTable, newPayload, tmp8_gameLifecycleState);
|
|
14403
14424
|
};
|
|
14404
14425
|
protoOf(ClientMechanicLifecycleReducer).p98 = function (state, action) {
|
|
14405
14426
|
this.s98_1.e5q(action.previousGameId);
|
|
14406
|
-
var newTable = this.r98_1.y99(state.
|
|
14427
|
+
var newTable = this.r98_1.y99(state.o6n(), action.gameId);
|
|
14407
14428
|
var tmp = get_clientPayload_0(state);
|
|
14408
|
-
var newPayload = this.
|
|
14429
|
+
var newPayload = this.wb1_1.lb1(tmp, ClientLifecycleReducer$gameFinishedMessagesReducer$ref(this.wb1_1));
|
|
14409
14430
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
14410
|
-
return state.
|
|
14431
|
+
return state.f8u(newTable, newPayload, tmp0_gameLifecycleState);
|
|
14411
14432
|
};
|
|
14412
14433
|
protoOf(ClientMechanicLifecycleReducer).o98 = function (state, action) {
|
|
14413
|
-
var clientState = get_clientPayloadOrNull(action.
|
|
14434
|
+
var clientState = get_clientPayloadOrNull(action.f8x_1);
|
|
14414
14435
|
var tmp;
|
|
14415
14436
|
if (clientState == null) {
|
|
14416
|
-
|
|
14437
|
+
var tmp_0 = Companion_instance_13;
|
|
14438
|
+
var tmp_1 = get_currentPlayer(action.d8x_1).playerId;
|
|
14439
|
+
var tmp0_safe_receiver = action.d8x_1.sceneInfo.d7u_1;
|
|
14440
|
+
var tmp_2;
|
|
14441
|
+
if (tmp0_safe_receiver == null) {
|
|
14442
|
+
tmp_2 = null;
|
|
14443
|
+
} else {
|
|
14444
|
+
var tmp$ret$0;
|
|
14445
|
+
$l$block: {
|
|
14446
|
+
// Inline function 'games.jass.logic.data.models.scenes.getActData' call
|
|
14447
|
+
if (tmp0_safe_receiver instanceof CombinationActData) {
|
|
14448
|
+
tmp$ret$0 = tmp0_safe_receiver;
|
|
14449
|
+
break $l$block;
|
|
14450
|
+
}
|
|
14451
|
+
tmp$ret$0 = null;
|
|
14452
|
+
}
|
|
14453
|
+
tmp_2 = tmp$ret$0;
|
|
14454
|
+
}
|
|
14455
|
+
tmp = tmp_0.zb1(this.ub1_1, this.xb1_1.ib1(tmp_1, tmp_2));
|
|
14417
14456
|
} else {
|
|
14418
|
-
tmp = this.
|
|
14457
|
+
tmp = this.wb1_1.nb1(clientState);
|
|
14419
14458
|
}
|
|
14420
14459
|
var newPayload = tmp;
|
|
14421
|
-
var
|
|
14422
|
-
var
|
|
14423
|
-
return state.
|
|
14460
|
+
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
14461
|
+
var tmp2_tableOrNull = action.d8x_1;
|
|
14462
|
+
return state.f8u(tmp2_tableOrNull, newPayload, tmp1_gameLifecycleState, null);
|
|
14424
14463
|
};
|
|
14425
14464
|
protoOf(ClientMechanicLifecycleReducer).n98 = function (state, action) {
|
|
14426
|
-
var tmp0_safe_receiver = state.
|
|
14465
|
+
var tmp0_safe_receiver = state.x6m_1;
|
|
14427
14466
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
14428
14467
|
if (tmp1_safe_receiver == null)
|
|
14429
14468
|
null;
|
|
@@ -14433,25 +14472,25 @@
|
|
|
14433
14472
|
// Inline function 'games.jass.logic.client.redux.redusers.ClientMechanicLifecycleReducer.onFinishing.<anonymous>' call
|
|
14434
14473
|
this.s98_1.e5q(tmp1_safe_receiver);
|
|
14435
14474
|
}
|
|
14436
|
-
var newPayload = this.
|
|
14475
|
+
var newPayload = this.wb1_1.nb1(get_clientPayload_0(state));
|
|
14437
14476
|
var tmp2_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
14438
|
-
var tmp3_terminationState = new TerminationState(action.
|
|
14439
|
-
return state.
|
|
14477
|
+
var tmp3_terminationState = new TerminationState(action.g8w_1, action.i8w_1);
|
|
14478
|
+
return state.f8u(VOID, newPayload, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
14440
14479
|
};
|
|
14441
14480
|
protoOf(ClientMechanicLifecycleReducer).m98 = function (state, action) {
|
|
14442
14481
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
14443
|
-
var tmp0_safe_receiver = state.
|
|
14444
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
14445
|
-
return state.
|
|
14482
|
+
var tmp0_safe_receiver = state.a6n_1;
|
|
14483
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i8u(action.n8w_1, action.q8w_1);
|
|
14484
|
+
return state.f8u(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.n8w_1, action.q8w_1) : tmp1_elvis_lhs);
|
|
14446
14485
|
};
|
|
14447
14486
|
protoOf(ClientMechanicLifecycleReducer).l98 = function (state, action) {
|
|
14448
14487
|
var tmp = get_clientPayload_0(state);
|
|
14449
|
-
var newPayload = this.
|
|
14450
|
-
var newTable = this.r98_1.t98(state.
|
|
14451
|
-
return state.
|
|
14488
|
+
var newPayload = this.wb1_1.lb1(tmp, ClientLifecycleReducer$roundFinishedMessagesReducer$ref(this.wb1_1));
|
|
14489
|
+
var newTable = this.r98_1.t98(state.o6n());
|
|
14490
|
+
return state.f8u(newTable, newPayload);
|
|
14452
14491
|
};
|
|
14453
14492
|
protoOf(ClientMechanicLifecycleReducer).k98 = function (state, action) {
|
|
14454
|
-
var tmp0_safe_receiver = state.
|
|
14493
|
+
var tmp0_safe_receiver = state.x6m_1;
|
|
14455
14494
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
14456
14495
|
if (tmp1_safe_receiver == null)
|
|
14457
14496
|
null;
|
|
@@ -14469,13 +14508,13 @@
|
|
|
14469
14508
|
// Inline function 'kotlin.let' call
|
|
14470
14509
|
// Inline function 'kotlin.contracts.contract' call
|
|
14471
14510
|
// Inline function 'games.jass.logic.client.redux.redusers.ClientMechanicLifecycleReducer.onError.<anonymous>' call
|
|
14472
|
-
tmp = this.
|
|
14511
|
+
tmp = this.wb1_1.nb1(tmp2_safe_receiver).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.z8x_1);
|
|
14473
14512
|
}
|
|
14474
14513
|
var newPayload = tmp;
|
|
14475
|
-
var tmp3_safe_receiver = state.
|
|
14476
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
14477
|
-
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.
|
|
14478
|
-
return state.
|
|
14514
|
+
var tmp3_safe_receiver = state.a6n_1;
|
|
14515
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j8u(action.z8x_1.o7l_1);
|
|
14516
|
+
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.z8x_1.o7l_1) : tmp4_elvis_lhs;
|
|
14517
|
+
return state.f8u(VOID, newPayload, GameLifecycleState_FINISHED_getInstance(), newTerminationState);
|
|
14479
14518
|
};
|
|
14480
14519
|
function clientResetProcessingCardReducer() {
|
|
14481
14520
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -14489,7 +14528,7 @@
|
|
|
14489
14528
|
protoOf(_no_name_provided__qut3iv_60).a97 = function (state, action) {
|
|
14490
14529
|
// Inline function 'games.jass.logic.client.redux.redusers.clientResetProcessingCardReducer.<anonymous>' call
|
|
14491
14530
|
action instanceof PutCardMechanicAction || THROW_CCE();
|
|
14492
|
-
return state.
|
|
14531
|
+
return state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
14493
14532
|
};
|
|
14494
14533
|
protoOf(_no_name_provided__qut3iv_60).f6k = function (state, action) {
|
|
14495
14534
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -14500,14 +14539,14 @@
|
|
|
14500
14539
|
}
|
|
14501
14540
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0($boundThis) {
|
|
14502
14541
|
var l = function (p0) {
|
|
14503
|
-
return $boundThis.
|
|
14542
|
+
return $boundThis.rb1(p0);
|
|
14504
14543
|
};
|
|
14505
14544
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
14506
14545
|
return l;
|
|
14507
14546
|
}
|
|
14508
14547
|
function _no_name_provided__qut3iv_61($logger, $clientLifecycleReducer) {
|
|
14509
|
-
this.
|
|
14510
|
-
this.
|
|
14548
|
+
this.ab2_1 = $logger;
|
|
14549
|
+
this.bb2_1 = $clientLifecycleReducer;
|
|
14511
14550
|
}
|
|
14512
14551
|
protoOf(_no_name_provided__qut3iv_61).n6i = function (action) {
|
|
14513
14552
|
return action instanceof SceneMechanicAction;
|
|
@@ -14516,18 +14555,18 @@
|
|
|
14516
14555
|
// Inline function 'games.jass.logic.client.redux.redusers.clientSceneReducer.<anonymous>' call
|
|
14517
14556
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
14518
14557
|
var tmp;
|
|
14519
|
-
switch (action_0.
|
|
14558
|
+
switch (action_0.u8q_1) {
|
|
14520
14559
|
case 'WAITING':
|
|
14521
14560
|
tmp = state;
|
|
14522
14561
|
break;
|
|
14523
14562
|
case 'CHOOSE_PARTNER':
|
|
14524
14563
|
case 'TRADE':
|
|
14525
14564
|
case 'EARN_POINTS':
|
|
14526
|
-
tmp = state.
|
|
14565
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, updateMessagesAsNotShown(get_clientPayload_0(state).j9q_1, this.ab2_1)));
|
|
14527
14566
|
break;
|
|
14528
14567
|
case 'CALC_POINTS':
|
|
14529
14568
|
var tmp_0 = get_clientPayload_0(state);
|
|
14530
|
-
tmp = state.
|
|
14569
|
+
tmp = state.f8u(VOID, this.bb2_1.lb1(tmp_0, ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0(this.bb2_1)));
|
|
14531
14570
|
break;
|
|
14532
14571
|
default:
|
|
14533
14572
|
throw new MechanicException("clientSceneReducer: Can't support this scene " + action_0.toString());
|
|
@@ -14542,7 +14581,7 @@
|
|
|
14542
14581
|
return new _no_name_provided__qut3iv_62(currentPlayerId);
|
|
14543
14582
|
}
|
|
14544
14583
|
function _no_name_provided__qut3iv_62($currentPlayerId) {
|
|
14545
|
-
this.
|
|
14584
|
+
this.cb2_1 = $currentPlayerId;
|
|
14546
14585
|
}
|
|
14547
14586
|
protoOf(_no_name_provided__qut3iv_62).n6i = function (action) {
|
|
14548
14587
|
return action instanceof ClientAction;
|
|
@@ -14554,37 +14593,37 @@
|
|
|
14554
14593
|
var action_0 = action instanceof ClientAction ? action : THROW_CCE();
|
|
14555
14594
|
var tmp;
|
|
14556
14595
|
if (action_0 instanceof SwitchChatAction) {
|
|
14557
|
-
tmp = state.
|
|
14596
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.gat_1));
|
|
14558
14597
|
} else {
|
|
14559
14598
|
if (action_0 instanceof SwitchSettingAction) {
|
|
14560
|
-
tmp = state.
|
|
14599
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.hat_1));
|
|
14561
14600
|
} else {
|
|
14562
14601
|
if (action_0 instanceof SceneTutorialAction) {
|
|
14563
|
-
tmp = state.
|
|
14602
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.eb2_1));
|
|
14564
14603
|
} else {
|
|
14565
14604
|
if (action_0 instanceof SceneActivationAction) {
|
|
14566
|
-
tmp = state.
|
|
14605
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, action_0.c9r_1));
|
|
14567
14606
|
} else {
|
|
14568
14607
|
if (action_0 instanceof CombinationToAnnounceAction) {
|
|
14569
|
-
tmp = state.
|
|
14608
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new CombinationToAnnounceState(action_0.wat_1, action_0.xat_1, action_0.yat_1)));
|
|
14570
14609
|
} else {
|
|
14571
14610
|
if (action_0 instanceof SwitchLastBribeAction) {
|
|
14572
14611
|
var tmp_0 = get_clientPayload_0(state);
|
|
14573
14612
|
var tmp_1;
|
|
14574
14613
|
if (action_0.iat_1) {
|
|
14575
|
-
var cards = last(state.
|
|
14576
|
-
tmp_1 = new LastBribeState(first(cards).
|
|
14614
|
+
var cards = last(state.o6n().bribes).d7j_1;
|
|
14615
|
+
tmp_1 = new LastBribeState(first(cards).r78_1, getWhoGotLastBribe(state.o6n().players).playerId, cards);
|
|
14577
14616
|
} else {
|
|
14578
14617
|
tmp_1 = null;
|
|
14579
14618
|
}
|
|
14580
|
-
tmp = state.
|
|
14619
|
+
tmp = state.f8u(VOID, tmp_0.bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1));
|
|
14581
14620
|
} else {
|
|
14582
14621
|
if (action_0 instanceof SwitchGameInfoAction) {
|
|
14583
14622
|
var tmp_2 = get_clientPayload_0(state);
|
|
14584
14623
|
var tmp_3;
|
|
14585
14624
|
if (action_0.jat_1) {
|
|
14586
|
-
var players = state.
|
|
14587
|
-
var tmp3_trump = state.
|
|
14625
|
+
var players = state.o6n().players;
|
|
14626
|
+
var tmp3_trump = state.o6n().currentTrump;
|
|
14588
14627
|
var tmp1_safe_receiver = singleOrNull(filterWhoChoseSuit(players));
|
|
14589
14628
|
var tmp4_whoChoseSuitPlayerId = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.playerId;
|
|
14590
14629
|
var tmp2_safe_receiver = singleOrNull(filterWhoShuffleCards(players));
|
|
@@ -14593,16 +14632,16 @@
|
|
|
14593
14632
|
} else {
|
|
14594
14633
|
tmp_3 = null;
|
|
14595
14634
|
}
|
|
14596
|
-
tmp = state.
|
|
14635
|
+
tmp = state.f8u(VOID, tmp_2.bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_3));
|
|
14597
14636
|
} else {
|
|
14598
14637
|
if (action_0 instanceof AnnouncedCombinationAction) {
|
|
14599
|
-
tmp = state.
|
|
14638
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
14600
14639
|
} else {
|
|
14601
14640
|
if (action_0 instanceof ForegroundAction) {
|
|
14602
|
-
tmp = state.
|
|
14641
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, action_0.kat_1));
|
|
14603
14642
|
} else {
|
|
14604
14643
|
if (action_0 instanceof InitClientStateAction) {
|
|
14605
|
-
tmp = state.
|
|
14644
|
+
tmp = state.f8u(VOID, Companion_instance_13.yb1(action_0.lat_1));
|
|
14606
14645
|
} else {
|
|
14607
14646
|
if (action_0 instanceof UpdateConfigAction) {
|
|
14608
14647
|
var tmp6_safe_receiver = action_0.qat_1;
|
|
@@ -14614,7 +14653,7 @@
|
|
|
14614
14653
|
// Inline function 'kotlin.contracts.contract' call
|
|
14615
14654
|
// Inline function 'games.jass.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>' call
|
|
14616
14655
|
// Inline function 'kotlin.collections.map' call
|
|
14617
|
-
var this_0 = state.
|
|
14656
|
+
var this_0 = state.o6n().players;
|
|
14618
14657
|
// Inline function 'kotlin.collections.mapTo' call
|
|
14619
14658
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
14620
14659
|
var tmp0_iterator = this_0.j();
|
|
@@ -14622,46 +14661,46 @@
|
|
|
14622
14661
|
var item = tmp0_iterator.l();
|
|
14623
14662
|
// Inline function 'games.jass.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
14624
14663
|
var updatedUser = firstOrNull(filterByPlayerId(tmp6_safe_receiver, item.playerId));
|
|
14625
|
-
var tmp$ret$0 = item.
|
|
14664
|
+
var tmp$ret$0 = item.g6v(updatedUser == null ? item.l6u_1 : updatedUser);
|
|
14626
14665
|
destination.e(tmp$ret$0);
|
|
14627
14666
|
}
|
|
14628
14667
|
tmp_4 = destination;
|
|
14629
14668
|
}
|
|
14630
14669
|
var updatedPlayers = tmp_4;
|
|
14631
|
-
var tmp_5 = state.
|
|
14632
|
-
var tmp10_$this = state.
|
|
14670
|
+
var tmp_5 = state.o6n();
|
|
14671
|
+
var tmp10_$this = state.o6n().config;
|
|
14633
14672
|
var tmp7_elvis_lhs = action_0.oat_1;
|
|
14634
|
-
var tmp11_rulesSetType = tmp7_elvis_lhs == null ? state.
|
|
14673
|
+
var tmp11_rulesSetType = tmp7_elvis_lhs == null ? state.o6n().config.rulesSetType : tmp7_elvis_lhs;
|
|
14635
14674
|
var tmp8_elvis_lhs = action_0.pat_1;
|
|
14636
|
-
var tmp12_rules = tmp8_elvis_lhs == null ? state.
|
|
14675
|
+
var tmp12_rules = tmp8_elvis_lhs == null ? state.o6n().config.rules : tmp8_elvis_lhs;
|
|
14637
14676
|
var tmp9_elvis_lhs = action_0.nat_1;
|
|
14638
|
-
var tmp13_options = tmp9_elvis_lhs == null ? state.
|
|
14677
|
+
var tmp13_options = tmp9_elvis_lhs == null ? state.o6n().config.options : tmp9_elvis_lhs;
|
|
14639
14678
|
var tmp_6 = tmp10_$this.copy(tmp12_rules, tmp11_rulesSetType, tmp13_options);
|
|
14640
|
-
var tmp_7 = tmp_5.copy(VOID, VOID, VOID, tmp_6, updatedPlayers == null ? state.
|
|
14679
|
+
var tmp_7 = tmp_5.copy(VOID, VOID, VOID, tmp_6, updatedPlayers == null ? state.o6n().players : updatedPlayers);
|
|
14641
14680
|
var tmp_8 = get_clientPayload_0(state);
|
|
14642
14681
|
var tmp15_elvis_lhs = action_0.mat_1;
|
|
14643
|
-
tmp = state.
|
|
14682
|
+
tmp = state.f8u(tmp_7, tmp_8.bax(tmp15_elvis_lhs == null ? get_clientPayload_0(state).i9q_1 : tmp15_elvis_lhs));
|
|
14644
14683
|
} else {
|
|
14645
14684
|
if (action_0 instanceof ClientMessageAction) {
|
|
14646
14685
|
var messages = get_clientPayload_0(state).j9q_1;
|
|
14647
14686
|
var lastMessage = lastOrNull(messages);
|
|
14648
|
-
if ((lastMessage == null ? null : lastMessage.
|
|
14687
|
+
if ((lastMessage == null ? null : lastMessage.s6q(action_0.rat_1)) === true) {
|
|
14649
14688
|
tmp$ret$5 = state;
|
|
14650
14689
|
break $l$block;
|
|
14651
14690
|
}
|
|
14652
|
-
tmp = state.
|
|
14691
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, plus_0(messages, action_0.rat_1)));
|
|
14653
14692
|
} else {
|
|
14654
14693
|
if (action_0 instanceof PutCardAndCheckCombinationsAction) {
|
|
14655
|
-
tmp = state.
|
|
14694
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.sat_1));
|
|
14656
14695
|
} else {
|
|
14657
14696
|
if (action_0 instanceof InfoMessageAction) {
|
|
14658
|
-
tmp = state.
|
|
14697
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, action_0.vat_1));
|
|
14659
14698
|
} else {
|
|
14660
14699
|
if (action_0 instanceof UpdateMessagesCountAction) {
|
|
14661
|
-
tmp = state.
|
|
14700
|
+
tmp = state.f8u(updateVoiceCount_0(state.o6n(), this.cb2_1));
|
|
14662
14701
|
} else {
|
|
14663
14702
|
if (action_0 instanceof ResetErrorAction) {
|
|
14664
|
-
tmp = state.
|
|
14703
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null), GameLifecycleState_CREATING_getInstance(), null);
|
|
14665
14704
|
} else {
|
|
14666
14705
|
if (action_0 instanceof TransitionsFinishedAction) {
|
|
14667
14706
|
var tmp_9 = get_clientPayload_0(state);
|
|
@@ -14673,11 +14712,11 @@
|
|
|
14673
14712
|
while (tmp0_iterator_0.k()) {
|
|
14674
14713
|
var element = tmp0_iterator_0.l();
|
|
14675
14714
|
// Inline function 'games.jass.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>' call
|
|
14676
|
-
if (!action_0.
|
|
14715
|
+
if (!action_0.db2_1.v1(element.c5k())) {
|
|
14677
14716
|
destination_0.e(element);
|
|
14678
14717
|
}
|
|
14679
14718
|
}
|
|
14680
|
-
tmp = state.
|
|
14719
|
+
tmp = state.f8u(VOID, tmp_9.bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination_0));
|
|
14681
14720
|
} else {
|
|
14682
14721
|
if (action_0 instanceof TutorialPassedAction) {
|
|
14683
14722
|
tmp = state;
|
|
@@ -14725,22 +14764,22 @@
|
|
|
14725
14764
|
return new _no_name_provided__qut3iv_65(gameLogger);
|
|
14726
14765
|
}
|
|
14727
14766
|
function updateVoiceCount(table, action) {
|
|
14728
|
-
var message = action.
|
|
14767
|
+
var message = action.x8x_1;
|
|
14729
14768
|
var tmp;
|
|
14730
14769
|
if (isInterface(message, UserMessage)) {
|
|
14731
|
-
tmp = message.
|
|
14770
|
+
tmp = message.x6r();
|
|
14732
14771
|
} else {
|
|
14733
14772
|
tmp = false;
|
|
14734
14773
|
}
|
|
14735
14774
|
if (tmp) {
|
|
14736
|
-
var player = getPlayer(table.players, message.
|
|
14737
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
14775
|
+
var player = getPlayer(table.players, message.w6r().o69_1);
|
|
14776
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.g6v(VOID, VOID, VOID, player.o6u_1.l6z(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, player.o6u_1.a6v_1 - 1 | 0)), get_byIdPlayerPredicate()(player.playerId)));
|
|
14738
14777
|
}
|
|
14739
14778
|
return table;
|
|
14740
14779
|
}
|
|
14741
14780
|
function updateVoiceCount_0(table, playerId) {
|
|
14742
14781
|
var player = getPlayer(table.players, playerId);
|
|
14743
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
14782
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.g6v(VOID, VOID, VOID, player.o6u_1.l6z(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, player.o6u_1.a6v_1 - 1 | 0)), get_byIdPlayerPredicate()(player.playerId)));
|
|
14744
14783
|
}
|
|
14745
14784
|
function _no_name_provided__qut3iv_63() {
|
|
14746
14785
|
}
|
|
@@ -14751,13 +14790,13 @@
|
|
|
14751
14790
|
// Inline function 'games.jass.logic.client.redux.redusers.messageReducer.<anonymous>' call
|
|
14752
14791
|
var action_0 = action instanceof MessageMechanicAction ? action : THROW_CCE();
|
|
14753
14792
|
var clientState = get_clientPayload_0(state);
|
|
14754
|
-
return state.
|
|
14793
|
+
return state.f8u(updateVoiceCount(state.o6n(), action_0), clientState.bax(VOID, plus_0(clientState.j9q_1, action_0.x8x_1)));
|
|
14755
14794
|
};
|
|
14756
14795
|
protoOf(_no_name_provided__qut3iv_63).f6k = function (state, action) {
|
|
14757
14796
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
14758
14797
|
};
|
|
14759
14798
|
function _no_name_provided__qut3iv_64($gameLogger) {
|
|
14760
|
-
this.
|
|
14799
|
+
this.fb2_1 = $gameLogger;
|
|
14761
14800
|
}
|
|
14762
14801
|
protoOf(_no_name_provided__qut3iv_64).n6i = function (action) {
|
|
14763
14802
|
return action instanceof TrumpMechanicAction;
|
|
@@ -14766,13 +14805,13 @@
|
|
|
14766
14805
|
// Inline function 'games.jass.logic.client.redux.redusers.clientResetMessagesAfterSelectedTrumpReducer.<anonymous>' call
|
|
14767
14806
|
action instanceof TrumpMechanicAction || THROW_CCE();
|
|
14768
14807
|
var clientState = get_clientPayload_0(state);
|
|
14769
|
-
return state.
|
|
14808
|
+
return state.f8u(VOID, clientState.bax(VOID, updateMessagesAsNotShown(clientState.j9q_1, this.fb2_1)));
|
|
14770
14809
|
};
|
|
14771
14810
|
protoOf(_no_name_provided__qut3iv_64).f6k = function (state, action) {
|
|
14772
14811
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
14773
14812
|
};
|
|
14774
14813
|
function _no_name_provided__qut3iv_65($gameLogger) {
|
|
14775
|
-
this.
|
|
14814
|
+
this.gb2_1 = $gameLogger;
|
|
14776
14815
|
}
|
|
14777
14816
|
protoOf(_no_name_provided__qut3iv_65).n6i = function (action) {
|
|
14778
14817
|
return action instanceof PickUpBribeMechanicAction;
|
|
@@ -14781,7 +14820,7 @@
|
|
|
14781
14820
|
// Inline function 'games.jass.logic.client.redux.redusers.clientResetMessagesAfterBribeReducer.<anonymous>' call
|
|
14782
14821
|
action instanceof PickUpBribeMechanicAction || THROW_CCE();
|
|
14783
14822
|
var clientState = get_clientPayload_0(state);
|
|
14784
|
-
return state.
|
|
14823
|
+
return state.f8u(VOID, clientState.bax(VOID, updateMessagesAsNotShown(clientState.j9q_1, this.gb2_1)));
|
|
14785
14824
|
};
|
|
14786
14825
|
protoOf(_no_name_provided__qut3iv_65).f6k = function (state, action) {
|
|
14787
14826
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -14802,10 +14841,10 @@
|
|
|
14802
14841
|
var tmp;
|
|
14803
14842
|
if (action_0 instanceof AddToBufferAction) {
|
|
14804
14843
|
var bufferedActions = plus_0(clientState.m9q_1, action_0.cat_1);
|
|
14805
|
-
tmp = state.
|
|
14844
|
+
tmp = state.f8u(VOID, clientState.bax(VOID, VOID, VOID, VOID, bufferedActions));
|
|
14806
14845
|
} else {
|
|
14807
14846
|
if (action_0 instanceof ReleaseBufferAction) {
|
|
14808
|
-
tmp = state.
|
|
14847
|
+
tmp = state.f8u(VOID, clientState.bax(VOID, VOID, VOID, VOID, emptyList()));
|
|
14809
14848
|
} else {
|
|
14810
14849
|
noWhenBranchMatchedException();
|
|
14811
14850
|
}
|
|
@@ -14820,7 +14859,7 @@
|
|
|
14820
14859
|
return new _no_name_provided__qut3iv_67(clientLifecycleReducer);
|
|
14821
14860
|
}
|
|
14822
14861
|
function _no_name_provided__qut3iv_67($clientLifecycleReducer) {
|
|
14823
|
-
this.
|
|
14862
|
+
this.hb2_1 = $clientLifecycleReducer;
|
|
14824
14863
|
}
|
|
14825
14864
|
protoOf(_no_name_provided__qut3iv_67).n6i = function (action) {
|
|
14826
14865
|
return isInterface(action, TerminatedAction);
|
|
@@ -14833,13 +14872,13 @@
|
|
|
14833
14872
|
tmp = new ErrorState(VOID, VOID, ProcessingReason_getInstance());
|
|
14834
14873
|
} else {
|
|
14835
14874
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
14836
|
-
tmp = mapToErrorState(action_0.
|
|
14875
|
+
tmp = mapToErrorState(action_0.n8w_1, state.o6n());
|
|
14837
14876
|
} else {
|
|
14838
14877
|
tmp = null;
|
|
14839
14878
|
}
|
|
14840
14879
|
}
|
|
14841
14880
|
var errorState = tmp;
|
|
14842
|
-
return state.
|
|
14881
|
+
return state.f8u(VOID, this.hb2_1.nb1(get_clientPayload_0(state)).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, errorState));
|
|
14843
14882
|
};
|
|
14844
14883
|
protoOf(_no_name_provided__qut3iv_67).f6k = function (state, action) {
|
|
14845
14884
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -14861,7 +14900,7 @@
|
|
|
14861
14900
|
if (action_0 instanceof ExpectantCreatedClientAction) {
|
|
14862
14901
|
var expectants = plus_0(clientState.l9q_1, action_0.zat_1);
|
|
14863
14902
|
var bufferedActions = plus_0(clientState.m9q_1, action_0.zat_1.g9p_1);
|
|
14864
|
-
tmp = state.
|
|
14903
|
+
tmp = state.f8u(VOID, clientState.bax(VOID, VOID, VOID, expectants, bufferedActions));
|
|
14865
14904
|
} else {
|
|
14866
14905
|
if (action_0 instanceof ExpectantTimerFinishedClientAction) {
|
|
14867
14906
|
// Inline function 'kotlin.collections.single' call
|
|
@@ -14894,7 +14933,7 @@
|
|
|
14894
14933
|
}
|
|
14895
14934
|
}
|
|
14896
14935
|
var expectants_0 = plus_0(destination, expectant.k9p(VOID, VOID, true));
|
|
14897
|
-
tmp = state.
|
|
14936
|
+
tmp = state.f8u(VOID, clientState.bax(VOID, VOID, VOID, expectants_0));
|
|
14898
14937
|
} else {
|
|
14899
14938
|
if (action_0 instanceof ExpectantStageCompletedClientAction) {
|
|
14900
14939
|
tmp = state;
|
|
@@ -14934,7 +14973,7 @@
|
|
|
14934
14973
|
}
|
|
14935
14974
|
}
|
|
14936
14975
|
var expectants = destination;
|
|
14937
|
-
return state.
|
|
14976
|
+
return state.f8u(VOID, clientPayload.bax(VOID, VOID, VOID, expectants));
|
|
14938
14977
|
};
|
|
14939
14978
|
protoOf(_no_name_provided__qut3iv_69).f6k = function (state, action) {
|
|
14940
14979
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -14967,10 +15006,10 @@
|
|
|
14967
15006
|
return clientPayload.v9q_1;
|
|
14968
15007
|
}
|
|
14969
15008
|
var player = getPlayer(table.players, playerId);
|
|
14970
|
-
var tmp0_$this = $this.
|
|
15009
|
+
var tmp0_$this = $this.ib2_1;
|
|
14971
15010
|
var tmp1_players = mapWithIndex(table.players);
|
|
14972
|
-
var tmp2_cards = player.
|
|
14973
|
-
var updatedPlayerCards = tmp0_$this.
|
|
15011
|
+
var tmp2_cards = player.n6u_1;
|
|
15012
|
+
var updatedPlayerCards = tmp0_$this.ob2(playerId, isCurrentPlayerId, tmp2_cards, tmp1_players);
|
|
14974
15013
|
var tmp$ret$3;
|
|
14975
15014
|
$l$block_0: {
|
|
14976
15015
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -14987,7 +15026,7 @@
|
|
|
14987
15026
|
}
|
|
14988
15027
|
var tmp3_elvis_lhs = tmp$ret$3;
|
|
14989
15028
|
var removeCardFromHand = tmp3_elvis_lhs == null ? last(updatedPlayerCards) : tmp3_elvis_lhs;
|
|
14990
|
-
var tmp4_id = $this.
|
|
15029
|
+
var tmp4_id = $this.kb2_1.m6g();
|
|
14991
15030
|
return plus_0(clientPayload.v9q_1, new PutCardOnTableTransition(tmp4_id, removeCardFromHand, card));
|
|
14992
15031
|
}
|
|
14993
15032
|
function handleTradeScene($this, state, action, currentPlayerId) {
|
|
@@ -15002,7 +15041,7 @@
|
|
|
15002
15041
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).qa() + ', current scene is ' + toString_0(this_0));
|
|
15003
15042
|
}
|
|
15004
15043
|
var sceneData = tmp$ret$0;
|
|
15005
|
-
return addCardDistributionTransition($this, state, currentPlayerId, sceneData.
|
|
15044
|
+
return addCardDistributionTransition($this, state, currentPlayerId, sceneData.a7b_1, sceneData.y7a_1, sceneData.b7b_1.m());
|
|
15006
15045
|
}
|
|
15007
15046
|
function handleEarnPointsScene($this, state, action, currentPlayerId) {
|
|
15008
15047
|
var tmp$ret$0;
|
|
@@ -15016,23 +15055,23 @@
|
|
|
15016
15055
|
throw new MechanicException('Required ' + getKClass(EarnPointsSceneData).qa() + ', current scene is ' + toString_0(this_0));
|
|
15017
15056
|
}
|
|
15018
15057
|
var sceneData = tmp$ret$0;
|
|
15019
|
-
var tmp0_$this = $this.
|
|
15020
|
-
var tmp1_config = state.
|
|
15021
|
-
var tmp2_cardDeck = state.
|
|
15022
|
-
var tmp3_newTopOpenedCard = sceneData.
|
|
15023
|
-
var tmp4_newPlayersCards = sceneData.
|
|
15058
|
+
var tmp0_$this = $this.jb2_1;
|
|
15059
|
+
var tmp1_config = state.o6n().config;
|
|
15060
|
+
var tmp2_cardDeck = state.o6n().requireCardDeck;
|
|
15061
|
+
var tmp3_newTopOpenedCard = sceneData.f7b_1;
|
|
15062
|
+
var tmp4_newPlayersCards = sceneData.d7b_1;
|
|
15024
15063
|
var updatedCardDeck = tmp0_$this.m99(tmp2_cardDeck, tmp4_newPlayersCards, tmp1_config, tmp3_newTopOpenedCard);
|
|
15025
|
-
return addCardDistributionTransition($this, state, currentPlayerId,
|
|
15064
|
+
return addCardDistributionTransition($this, state, currentPlayerId, updatedCardDeck.m7j_1, sceneData.d7b_1, updatedCardDeck.c8c());
|
|
15026
15065
|
}
|
|
15027
15066
|
function addCardDistributionTransition($this, state, currentPlayerId, trumpCard, cardsToDistribute, otherCardsCount) {
|
|
15028
|
-
var table = state.
|
|
15067
|
+
var table = state.o6n();
|
|
15029
15068
|
var distributeToCards = prepareCardsForDistribution($this, state, table, currentPlayerId, cardsToDistribute);
|
|
15030
15069
|
var whoGetsTheTrumpCardPlayer = determineWhoGetsTheTrumpCard($this, table);
|
|
15031
15070
|
var cardDeckCards = createCardDeckCards($this, cardsToDistribute, otherCardsCount);
|
|
15032
15071
|
var tmp1_whoChoseSuitPlayerId = whoGetsTheTrumpCardPlayer == null ? null : whoGetsTheTrumpCardPlayer.playerId;
|
|
15033
15072
|
var cardPairsMap = dealCardsByWaves$default($this, distributeToCards, cardDeckCards, trumpCard, tmp1_whoChoseSuitPlayerId);
|
|
15034
|
-
var updatedTransitions = plus_0(get_clientPayload_0(state).v9q_1, new CardDistributionTransition($this.
|
|
15035
|
-
return state.
|
|
15073
|
+
var updatedTransitions = plus_0(get_clientPayload_0(state).v9q_1, new CardDistributionTransition($this.kb2_1.m6g(), cardPairsMap));
|
|
15074
|
+
return state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15036
15075
|
}
|
|
15037
15076
|
function prepareCardsForDistribution($this, state, table, currentPlayerId, cardsToDistribute) {
|
|
15038
15077
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -15045,12 +15084,12 @@
|
|
|
15045
15084
|
var element = tmp0_iterator.l();
|
|
15046
15085
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
15047
15086
|
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.prepareCardsForDistribution.<anonymous>' call
|
|
15048
|
-
var allPlayerCards = toList(toSet(plus(element.
|
|
15049
|
-
var tmp0_$this = $this.
|
|
15087
|
+
var allPlayerCards = toList(toSet(plus(element.n6u_1, getValue(cardsToDistribute, element.playerId))));
|
|
15088
|
+
var tmp0_$this = $this.ib2_1;
|
|
15050
15089
|
var tmp1_playerId = element.playerId;
|
|
15051
15090
|
var tmp2_players = mapWithIndex(table.players);
|
|
15052
15091
|
var tmp3_isCurrentPlayer = currentPlayerId === element.playerId;
|
|
15053
|
-
var hiddenCardsIfNeeded = tmp0_$this.
|
|
15092
|
+
var hiddenCardsIfNeeded = tmp0_$this.ob2(tmp1_playerId, tmp3_isCurrentPlayer, allPlayerCards, tmp2_players);
|
|
15054
15093
|
var cards = takeLast(hiddenCardsIfNeeded, getValue(cardsToDistribute, element.playerId).m());
|
|
15055
15094
|
var pair = to(element.playerId, sortedWith(cards, new CardSuitSortingComparator(get_clientPayload_0(state).i9q_1.f9o_1)));
|
|
15056
15095
|
destination.n2(pair.se_1, pair.te_1);
|
|
@@ -15058,7 +15097,7 @@
|
|
|
15058
15097
|
return destination;
|
|
15059
15098
|
}
|
|
15060
15099
|
function determineWhoGetsTheTrumpCard($this, table) {
|
|
15061
|
-
return !(firstOrNull(filterWhoChoseSuit(table.players)) == null) ? $this.
|
|
15100
|
+
return !(firstOrNull(filterWhoChoseSuit(table.players)) == null) ? $this.lb2_1.w8i(table.players, table.config) : null;
|
|
15062
15101
|
}
|
|
15063
15102
|
function createCardDeckCards($this, cardsToDistribute, otherCardsCount) {
|
|
15064
15103
|
// Inline function 'kotlin.collections.sumOf' call
|
|
@@ -15205,8 +15244,8 @@
|
|
|
15205
15244
|
}
|
|
15206
15245
|
}
|
|
15207
15246
|
function _no_name_provided__qut3iv_70(this$0, $currentPlayerId) {
|
|
15208
|
-
this.
|
|
15209
|
-
this.
|
|
15247
|
+
this.pb2_1 = this$0;
|
|
15248
|
+
this.qb2_1 = $currentPlayerId;
|
|
15210
15249
|
}
|
|
15211
15250
|
protoOf(_no_name_provided__qut3iv_70).n6i = function (action) {
|
|
15212
15251
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -15214,24 +15253,24 @@
|
|
|
15214
15253
|
protoOf(_no_name_provided__qut3iv_70).a97 = function (state, action) {
|
|
15215
15254
|
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.addTransitionWhenPutCardAndCheckCombinationReducer.<anonymous>' call
|
|
15216
15255
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
15217
|
-
var updatedTransitions = addPutCardOnTableTransition(this.
|
|
15218
|
-
return state.
|
|
15256
|
+
var updatedTransitions = addPutCardOnTableTransition(this.pb2_1, this.qb2_1, true, action_0.sat_1.g6f_1, state.o6n(), get_clientPayload_0(state));
|
|
15257
|
+
return state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15219
15258
|
};
|
|
15220
15259
|
protoOf(_no_name_provided__qut3iv_70).f6k = function (state, action) {
|
|
15221
15260
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
15222
15261
|
};
|
|
15223
15262
|
function _no_name_provided__qut3iv_71(this$0, $currentPlayerId) {
|
|
15224
|
-
this.
|
|
15225
|
-
this.
|
|
15263
|
+
this.rb2_1 = this$0;
|
|
15264
|
+
this.sb2_1 = $currentPlayerId;
|
|
15226
15265
|
}
|
|
15227
15266
|
protoOf(_no_name_provided__qut3iv_71).n6i = function (action) {
|
|
15228
|
-
return action instanceof
|
|
15267
|
+
return action instanceof PutCardMechanicAction;
|
|
15229
15268
|
};
|
|
15230
15269
|
protoOf(_no_name_provided__qut3iv_71).a97 = function (state, action) {
|
|
15231
|
-
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.
|
|
15232
|
-
var action_0 = action instanceof
|
|
15233
|
-
var updatedTransitions = addPutCardOnTableTransition(this.
|
|
15234
|
-
return state.
|
|
15270
|
+
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.addTransitionWhenPutCardReducer.<anonymous>' call
|
|
15271
|
+
var action_0 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
15272
|
+
var updatedTransitions = addPutCardOnTableTransition(this.rb2_1, action_0.playerId, this.sb2_1 === action_0.playerId, action_0.d8r_1, state.o6n(), get_clientPayload_0(state));
|
|
15273
|
+
return state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15235
15274
|
};
|
|
15236
15275
|
protoOf(_no_name_provided__qut3iv_71).f6k = function (state, action) {
|
|
15237
15276
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -15257,14 +15296,14 @@
|
|
|
15257
15296
|
}
|
|
15258
15297
|
}
|
|
15259
15298
|
var filteredTransitions = destination;
|
|
15260
|
-
return state.
|
|
15299
|
+
return state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filteredTransitions));
|
|
15261
15300
|
};
|
|
15262
15301
|
protoOf(_no_name_provided__qut3iv_72).f6k = function (state, action) {
|
|
15263
15302
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
15264
15303
|
};
|
|
15265
15304
|
function _no_name_provided__qut3iv_73(this$0, $currentPlayerId) {
|
|
15266
|
-
this.
|
|
15267
|
-
this.
|
|
15305
|
+
this.tb2_1 = this$0;
|
|
15306
|
+
this.ub2_1 = $currentPlayerId;
|
|
15268
15307
|
}
|
|
15269
15308
|
protoOf(_no_name_provided__qut3iv_73).n6i = function (action) {
|
|
15270
15309
|
return action instanceof SceneMechanicAction;
|
|
@@ -15273,12 +15312,12 @@
|
|
|
15273
15312
|
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.addTransitionWhenCardDistribution.<anonymous>' call
|
|
15274
15313
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
15275
15314
|
var tmp;
|
|
15276
|
-
switch (action_0.
|
|
15315
|
+
switch (action_0.u8q_1) {
|
|
15277
15316
|
case 'TRADE':
|
|
15278
|
-
tmp = handleTradeScene(this.
|
|
15317
|
+
tmp = handleTradeScene(this.tb2_1, state, action_0, this.ub2_1);
|
|
15279
15318
|
break;
|
|
15280
15319
|
case 'EARN_POINTS':
|
|
15281
|
-
tmp = handleEarnPointsScene(this.
|
|
15320
|
+
tmp = handleEarnPointsScene(this.tb2_1, state, action_0, this.ub2_1);
|
|
15282
15321
|
break;
|
|
15283
15322
|
default:
|
|
15284
15323
|
tmp = state;
|
|
@@ -15311,7 +15350,7 @@
|
|
|
15311
15350
|
}
|
|
15312
15351
|
}
|
|
15313
15352
|
var filteredTransitions = destination;
|
|
15314
|
-
tmp = state.
|
|
15353
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).bax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filteredTransitions));
|
|
15315
15354
|
} else {
|
|
15316
15355
|
tmp = state;
|
|
15317
15356
|
}
|
|
@@ -15321,10 +15360,10 @@
|
|
|
15321
15360
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
15322
15361
|
};
|
|
15323
15362
|
function TransitionsReducerImpl(playerHandSelector, sceneReducer, idsProvider, gameLogicProvider) {
|
|
15324
|
-
this.
|
|
15325
|
-
this.
|
|
15326
|
-
this.
|
|
15327
|
-
this.
|
|
15363
|
+
this.ib2_1 = playerHandSelector;
|
|
15364
|
+
this.jb2_1 = sceneReducer;
|
|
15365
|
+
this.kb2_1 = idsProvider;
|
|
15366
|
+
this.lb2_1 = gameLogicProvider;
|
|
15328
15367
|
}
|
|
15329
15368
|
protoOf(TransitionsReducerImpl).sau = function (currentPlayerId) {
|
|
15330
15369
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -15347,42 +15386,42 @@
|
|
|
15347
15386
|
return new _no_name_provided__qut3iv_74();
|
|
15348
15387
|
};
|
|
15349
15388
|
function PlayerHandSelector(gameClientConfig, putCardValidatorInteractor) {
|
|
15350
|
-
this.
|
|
15351
|
-
this.
|
|
15389
|
+
this.mb2_1 = gameClientConfig;
|
|
15390
|
+
this.nb2_1 = putCardValidatorInteractor;
|
|
15352
15391
|
}
|
|
15353
|
-
protoOf(PlayerHandSelector).
|
|
15392
|
+
protoOf(PlayerHandSelector).vb2 = function (playerId, isCurrentPlayer, cards, players, playerCardOnTable) {
|
|
15354
15393
|
if (isCurrentPlayer && !(playerCardOnTable == null)) {
|
|
15355
15394
|
return minus(cards, playerCardOnTable);
|
|
15356
15395
|
}
|
|
15357
15396
|
if (cards.p()) {
|
|
15358
15397
|
return emptyList();
|
|
15359
15398
|
}
|
|
15360
|
-
if (isCurrentPlayer || this.
|
|
15399
|
+
if (isCurrentPlayer || this.mb2_1.areOpponentsCardsOpened) {
|
|
15361
15400
|
return cards;
|
|
15362
15401
|
}
|
|
15363
15402
|
var index = getItemIndex(players, get_byIdPlayerPredicate()(playerId));
|
|
15364
15403
|
return generateHiddenPlayerHandCards(cards.m(), index);
|
|
15365
15404
|
};
|
|
15366
|
-
protoOf(PlayerHandSelector).
|
|
15405
|
+
protoOf(PlayerHandSelector).ob2 = function (playerId, isCurrentPlayer, cards, players, playerCardOnTable, $super) {
|
|
15367
15406
|
playerCardOnTable = playerCardOnTable === VOID ? null : playerCardOnTable;
|
|
15368
|
-
return $super === VOID ? this.
|
|
15407
|
+
return $super === VOID ? this.vb2(playerId, isCurrentPlayer, cards, players, playerCardOnTable) : $super.vb2.call(this, playerId, isCurrentPlayer, cards, players, playerCardOnTable);
|
|
15369
15408
|
};
|
|
15370
15409
|
function Companion_3() {
|
|
15371
15410
|
}
|
|
15372
|
-
protoOf(Companion_3).
|
|
15411
|
+
protoOf(Companion_3).zb1 = function (config, combinations) {
|
|
15373
15412
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, combinations);
|
|
15374
15413
|
};
|
|
15375
|
-
protoOf(Companion_3).
|
|
15414
|
+
protoOf(Companion_3).yb1 = function (config, combinations, $super) {
|
|
15376
15415
|
combinations = combinations === VOID ? null : combinations;
|
|
15377
|
-
return $super === VOID ? this.
|
|
15416
|
+
return $super === VOID ? this.zb1(config, combinations) : $super.zb1.call(this, config, combinations);
|
|
15378
15417
|
};
|
|
15379
|
-
protoOf(Companion_3).
|
|
15418
|
+
protoOf(Companion_3).mb1 = function (config, isForeground, isSceneActive, messages, bufferedActions, error) {
|
|
15380
15419
|
return new ClientStatePayload(config, messages, VOID, VOID, bufferedActions, isForeground, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
15381
15420
|
};
|
|
15382
|
-
protoOf(Companion_3).
|
|
15421
|
+
protoOf(Companion_3).ob1 = function (config, isForeground, isSceneActive, messages, bufferedActions, expectants, combinations, processingCard, error) {
|
|
15383
15422
|
return new ClientStatePayload(config, messages, VOID, expectants, bufferedActions, isForeground, isSceneActive, VOID, VOID, combinations, VOID, VOID, processingCard, VOID, error);
|
|
15384
15423
|
};
|
|
15385
|
-
protoOf(Companion_3).
|
|
15424
|
+
protoOf(Companion_3).pb1 = function (config, isForeground, isSceneActive) {
|
|
15386
15425
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, isForeground, isSceneActive);
|
|
15387
15426
|
};
|
|
15388
15427
|
var Companion_instance_13;
|
|
@@ -15422,10 +15461,10 @@
|
|
|
15422
15461
|
this.w9q_1 = error;
|
|
15423
15462
|
this.x9q_1 = tutorial;
|
|
15424
15463
|
}
|
|
15425
|
-
protoOf(ClientStatePayload).
|
|
15464
|
+
protoOf(ClientStatePayload).wb2 = function (config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial) {
|
|
15426
15465
|
return new ClientStatePayload(config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
15427
15466
|
};
|
|
15428
|
-
protoOf(ClientStatePayload).
|
|
15467
|
+
protoOf(ClientStatePayload).bax = function (config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial, $super) {
|
|
15429
15468
|
config = config === VOID ? this.i9q_1 : config;
|
|
15430
15469
|
messages = messages === VOID ? this.j9q_1 : messages;
|
|
15431
15470
|
infoMessage = infoMessage === VOID ? this.k9q_1 : infoMessage;
|
|
@@ -15442,7 +15481,7 @@
|
|
|
15442
15481
|
transitions = transitions === VOID ? this.v9q_1 : transitions;
|
|
15443
15482
|
error = error === VOID ? this.w9q_1 : error;
|
|
15444
15483
|
tutorial = tutorial === VOID ? this.x9q_1 : tutorial;
|
|
15445
|
-
return $super === VOID ? this.
|
|
15484
|
+
return $super === VOID ? this.wb2(config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial) : $super.wb2.call(this, config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
15446
15485
|
};
|
|
15447
15486
|
protoOf(ClientStatePayload).toString = function () {
|
|
15448
15487
|
return 'ClientStatePayload(config=' + this.i9q_1.toString() + ', messages=' + toString(this.j9q_1) + ', infoMessage=' + toString_0(this.k9q_1) + ', expectants=' + toString(this.l9q_1) + ', bufferedActions=' + toString(this.m9q_1) + ', isForeground=' + this.n9q_1 + ', isSceneActive=' + this.o9q_1 + ', chatOpened=' + this.p9q_1 + ', settingsOpened=' + this.q9q_1 + ', combinations=' + toString_0(this.r9q_1) + ', lastBribe=' + toString_0(this.s9q_1) + ', gameInfo=' + toString_0(this.t9q_1) + ', processingCard=' + toString_0(this.u9q_1) + ', transitions=' + toString(this.v9q_1) + ', error=' + toString_0(this.w9q_1) + ', tutorial=' + this.x9q_1 + ')';
|
|
@@ -15507,17 +15546,17 @@
|
|
|
15507
15546
|
return true;
|
|
15508
15547
|
};
|
|
15509
15548
|
function CombinationToAnnounceState(combinations, acceptedCombinations, declinedCombinations) {
|
|
15510
|
-
this.
|
|
15511
|
-
this.
|
|
15512
|
-
this.
|
|
15549
|
+
this.naw_1 = combinations;
|
|
15550
|
+
this.oaw_1 = acceptedCombinations;
|
|
15551
|
+
this.paw_1 = declinedCombinations;
|
|
15513
15552
|
}
|
|
15514
15553
|
protoOf(CombinationToAnnounceState).toString = function () {
|
|
15515
|
-
return 'CombinationToAnnounceState(combinations=' + toString(this.
|
|
15554
|
+
return 'CombinationToAnnounceState(combinations=' + toString(this.naw_1) + ', acceptedCombinations=' + toString_0(this.oaw_1) + ', declinedCombinations=' + toString_0(this.paw_1) + ')';
|
|
15516
15555
|
};
|
|
15517
15556
|
protoOf(CombinationToAnnounceState).hashCode = function () {
|
|
15518
|
-
var result = hashCode(this.
|
|
15519
|
-
result = imul(result, 31) + (this.naw_1 == null ? 0 : hashCode(this.naw_1)) | 0;
|
|
15557
|
+
var result = hashCode(this.naw_1);
|
|
15520
15558
|
result = imul(result, 31) + (this.oaw_1 == null ? 0 : hashCode(this.oaw_1)) | 0;
|
|
15559
|
+
result = imul(result, 31) + (this.paw_1 == null ? 0 : hashCode(this.paw_1)) | 0;
|
|
15521
15560
|
return result;
|
|
15522
15561
|
};
|
|
15523
15562
|
protoOf(CombinationToAnnounceState).equals = function (other) {
|
|
@@ -15526,12 +15565,12 @@
|
|
|
15526
15565
|
if (!(other instanceof CombinationToAnnounceState))
|
|
15527
15566
|
return false;
|
|
15528
15567
|
var tmp0_other_with_cast = other instanceof CombinationToAnnounceState ? other : THROW_CCE();
|
|
15529
|
-
if (!equals(this.maw_1, tmp0_other_with_cast.maw_1))
|
|
15530
|
-
return false;
|
|
15531
15568
|
if (!equals(this.naw_1, tmp0_other_with_cast.naw_1))
|
|
15532
15569
|
return false;
|
|
15533
15570
|
if (!equals(this.oaw_1, tmp0_other_with_cast.oaw_1))
|
|
15534
15571
|
return false;
|
|
15572
|
+
if (!equals(this.paw_1, tmp0_other_with_cast.paw_1))
|
|
15573
|
+
return false;
|
|
15535
15574
|
return true;
|
|
15536
15575
|
};
|
|
15537
15576
|
function GameInfoState(trump, whoShuffleCardsPlayerId, whoChoseSuitPlayerId) {
|
|
@@ -15598,7 +15637,7 @@
|
|
|
15598
15637
|
}
|
|
15599
15638
|
function get_clientPayload_0(_this__u8e3s4) {
|
|
15600
15639
|
// Inline function 'kotlin.requireNotNull' call
|
|
15601
|
-
var value = _this__u8e3s4.
|
|
15640
|
+
var value = _this__u8e3s4.y6m_1;
|
|
15602
15641
|
// Inline function 'kotlin.contracts.contract' call
|
|
15603
15642
|
var tmp$ret$1;
|
|
15604
15643
|
$l$block: {
|
|
@@ -15617,7 +15656,7 @@
|
|
|
15617
15656
|
return get_clientPayload(tmp$ret$2);
|
|
15618
15657
|
}
|
|
15619
15658
|
function get_clientPayloadOrNull_0(_this__u8e3s4) {
|
|
15620
|
-
return get_clientPayloadOrNull(_this__u8e3s4.
|
|
15659
|
+
return get_clientPayloadOrNull(_this__u8e3s4.y6m_1);
|
|
15621
15660
|
}
|
|
15622
15661
|
function get_currentPlayer(_this__u8e3s4) {
|
|
15623
15662
|
return first(_this__u8e3s4.players);
|
|
@@ -15655,13 +15694,13 @@
|
|
|
15655
15694
|
}
|
|
15656
15695
|
function _get_logger__rkp4sl_1($this) {
|
|
15657
15696
|
// Inline function 'kotlin.getValue' call
|
|
15658
|
-
var this_0 = $this.
|
|
15697
|
+
var this_0 = $this.eb3_1;
|
|
15659
15698
|
logger$factory_3();
|
|
15660
15699
|
return this_0.u();
|
|
15661
15700
|
}
|
|
15662
15701
|
function _get_di__ndbzja($this) {
|
|
15663
15702
|
// Inline function 'kotlin.getValue' call
|
|
15664
|
-
var this_0 = $this.
|
|
15703
|
+
var this_0 = $this.fb3_1;
|
|
15665
15704
|
di$factory();
|
|
15666
15705
|
return this_0.u();
|
|
15667
15706
|
}
|
|
@@ -15704,13 +15743,13 @@
|
|
|
15704
15743
|
};
|
|
15705
15744
|
}
|
|
15706
15745
|
function _no_name_provided__qut3iv_75($item) {
|
|
15707
|
-
this.
|
|
15746
|
+
this.hb3_1 = $item;
|
|
15708
15747
|
}
|
|
15709
15748
|
protoOf(_no_name_provided__qut3iv_75).n6i = function (action) {
|
|
15710
15749
|
return isInterface(action, Action);
|
|
15711
15750
|
};
|
|
15712
15751
|
protoOf(_no_name_provided__qut3iv_75).a97 = function (state, action) {
|
|
15713
|
-
return this.
|
|
15752
|
+
return this.hb3_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
15714
15753
|
};
|
|
15715
15754
|
protoOf(_no_name_provided__qut3iv_75).f6k = function (state, action) {
|
|
15716
15755
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -15773,7 +15812,7 @@
|
|
|
15773
15812
|
var tmp0_elvis_lhs = Companion_instance_7.a9c(it);
|
|
15774
15813
|
var tmp;
|
|
15775
15814
|
if (tmp0_elvis_lhs == null) {
|
|
15776
|
-
var tmp1_safe_receiver = $gameClient.y69().
|
|
15815
|
+
var tmp1_safe_receiver = $gameClient.y69().x6m_1;
|
|
15777
15816
|
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
15778
15817
|
} else {
|
|
15779
15818
|
tmp = tmp0_elvis_lhs;
|
|
@@ -15786,7 +15825,7 @@
|
|
|
15786
15825
|
var tmp0_elvis_lhs = Companion_instance_8.l9a(it);
|
|
15787
15826
|
var tmp;
|
|
15788
15827
|
if (tmp0_elvis_lhs == null) {
|
|
15789
|
-
var tmp1_safe_receiver = $gameClient.y69().
|
|
15828
|
+
var tmp1_safe_receiver = $gameClient.y69().x6m_1;
|
|
15790
15829
|
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
15791
15830
|
} else {
|
|
15792
15831
|
tmp = tmp0_elvis_lhs;
|
|
@@ -15832,23 +15871,23 @@
|
|
|
15832
15871
|
function GameClientEngineControllerImpl(loggerCallback, production) {
|
|
15833
15872
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
15834
15873
|
production = production === VOID ? true : production;
|
|
15835
|
-
this.
|
|
15874
|
+
this.db3_1 = loggerCallback;
|
|
15836
15875
|
AppEnvironment_getInstance().g6m(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
15837
15876
|
var tmp = this;
|
|
15838
|
-
tmp.
|
|
15877
|
+
tmp.eb3_1 = lazy_0(GameClientEngineControllerImpl$logger$delegate$lambda);
|
|
15839
15878
|
var tmp_0 = this;
|
|
15840
|
-
tmp_0.
|
|
15879
|
+
tmp_0.fb3_1 = lazy_0(GameClientEngineControllerImpl$di$delegate$lambda(this));
|
|
15841
15880
|
var tmp_1 = this;
|
|
15842
15881
|
// Inline function 'org.kodein.di.instance' call
|
|
15843
15882
|
var this_0 = _get_di__ndbzja(this);
|
|
15844
15883
|
// Inline function 'org.kodein.type.generic' call
|
|
15845
15884
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
15846
15885
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
15847
|
-
tmp_1.
|
|
15886
|
+
tmp_1.gb3_1 = Instance(this_0, tmp$ret$0, null).d62(this, parser$factory());
|
|
15848
15887
|
}
|
|
15849
|
-
protoOf(GameClientEngineControllerImpl).
|
|
15888
|
+
protoOf(GameClientEngineControllerImpl).bb3 = function () {
|
|
15850
15889
|
// Inline function 'kotlin.getValue' call
|
|
15851
|
-
var this_0 = this.
|
|
15890
|
+
var this_0 = this.gb3_1;
|
|
15852
15891
|
parser$factory_0();
|
|
15853
15892
|
return this_0.u();
|
|
15854
15893
|
};
|
|
@@ -15858,7 +15897,7 @@
|
|
|
15858
15897
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
15859
15898
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
15860
15899
|
};
|
|
15861
|
-
protoOf(GameClientEngineControllerImpl).
|
|
15900
|
+
protoOf(GameClientEngineControllerImpl).cb3 = function (currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, coreConfig) {
|
|
15862
15901
|
var tmp;
|
|
15863
15902
|
if (coreConfig.fileLogsEnabled) {
|
|
15864
15903
|
tmp = new FileLoggerOutputImpl();
|
|
@@ -15867,8 +15906,8 @@
|
|
|
15867
15906
|
}
|
|
15868
15907
|
var fileLoggerOutput = tmp;
|
|
15869
15908
|
var tmp_0;
|
|
15870
|
-
if (!(this.
|
|
15871
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
15909
|
+
if (!(this.db3_1 == null)) {
|
|
15910
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.db3_1));
|
|
15872
15911
|
} else {
|
|
15873
15912
|
tmp_0 = null;
|
|
15874
15913
|
}
|
|
@@ -15971,32 +16010,32 @@
|
|
|
15971
16010
|
return this.c5k();
|
|
15972
16011
|
});
|
|
15973
16012
|
defineProp(protoOf(BaseGameMechanic), 'table', function () {
|
|
15974
|
-
return this.
|
|
16013
|
+
return this.o6n();
|
|
15975
16014
|
});
|
|
15976
16015
|
defineProp(protoOf(BaseGameMechanic), 'isTableExists', function () {
|
|
15977
|
-
return this.
|
|
16016
|
+
return this.p6n();
|
|
15978
16017
|
});
|
|
15979
16018
|
defineProp(protoOf(BaseGameMechanic), 'gameLifecycleState', function () {
|
|
15980
|
-
return this.
|
|
16019
|
+
return this.q6n();
|
|
15981
16020
|
});
|
|
15982
16021
|
defineProp(protoOf(OnlineGameMechanicImpl), 'currentPlayerId', function () {
|
|
15983
16022
|
return this.oag();
|
|
15984
16023
|
});
|
|
15985
16024
|
defineProp(protoOf(OnlineGameMechanicImpl), 'id', protoOf(OnlineGameMechanicImpl).c5k);
|
|
15986
|
-
defineProp(protoOf(OnlineGameMechanicImpl), 'table', protoOf(OnlineGameMechanicImpl).
|
|
15987
|
-
defineProp(protoOf(OnlineGameMechanicImpl), 'isTableExists', protoOf(OnlineGameMechanicImpl).
|
|
15988
|
-
defineProp(protoOf(OnlineGameMechanicImpl), 'gameLifecycleState', protoOf(OnlineGameMechanicImpl).
|
|
16025
|
+
defineProp(protoOf(OnlineGameMechanicImpl), 'table', protoOf(OnlineGameMechanicImpl).o6n);
|
|
16026
|
+
defineProp(protoOf(OnlineGameMechanicImpl), 'isTableExists', protoOf(OnlineGameMechanicImpl).p6n);
|
|
16027
|
+
defineProp(protoOf(OnlineGameMechanicImpl), 'gameLifecycleState', protoOf(OnlineGameMechanicImpl).q6n);
|
|
15989
16028
|
defineProp(protoOf(SingleGameMechanic), 'id', function () {
|
|
15990
16029
|
return this.c5k();
|
|
15991
16030
|
});
|
|
15992
16031
|
defineProp(protoOf(SingleGameMechanic), 'table', function () {
|
|
15993
|
-
return this.
|
|
16032
|
+
return this.o6n();
|
|
15994
16033
|
});
|
|
15995
16034
|
defineProp(protoOf(SingleGameMechanic), 'isTableExists', function () {
|
|
15996
|
-
return this.
|
|
16035
|
+
return this.p6n();
|
|
15997
16036
|
});
|
|
15998
16037
|
defineProp(protoOf(SingleGameMechanic), 'gameLifecycleState', function () {
|
|
15999
|
-
return this.
|
|
16038
|
+
return this.q6n();
|
|
16000
16039
|
});
|
|
16001
16040
|
protoOf(PlayersSceneContractImpl).tal = waitUntilSceneActivated;
|
|
16002
16041
|
protoOf(BufferLifecycleAction).a6i = get_actionTag;
|
|
@@ -16069,10 +16108,10 @@
|
|
|
16069
16108
|
});
|
|
16070
16109
|
protoOf(ExpectantTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
16071
16110
|
protoOf(ResetMessageTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
16072
|
-
protoOf(ResetMessageTimerTag).
|
|
16111
|
+
protoOf(ResetMessageTimerTag).p8t = notValidateTimerReset;
|
|
16073
16112
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngineWithLogic = createOnlineGameEngineWithLogic;
|
|
16074
16113
|
defineProp(protoOf(GameClientEngineControllerImpl), 'parser', function () {
|
|
16075
|
-
return this.
|
|
16114
|
+
return this.bb3();
|
|
16076
16115
|
});
|
|
16077
16116
|
//endregion
|
|
16078
16117
|
//region block: init
|