game_client_logic_deb 1.8.320 → 1.8.322
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 +2 -2
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +45 -45
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +480 -453
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -201,12 +201,12 @@
|
|
|
201
201
|
var ReleaseBufferTriggerAction = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
202
202
|
var IgnoreLoggerAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
203
203
|
var initMetadataForObject = kotlin_kotlin.$_$.ac;
|
|
204
|
-
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
|
|
205
204
|
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
206
205
|
var CombinationProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.x1;
|
|
207
206
|
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.r1;
|
|
208
207
|
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.e2;
|
|
209
208
|
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
|
|
209
|
+
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
|
|
210
210
|
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
|
|
211
211
|
var PlayerTurnStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
212
212
|
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
|
|
@@ -706,6 +706,9 @@
|
|
|
706
706
|
initMetadataForClass(_no_name_provided__qut3iv_67, VOID, VOID, VOID, [Reducer]);
|
|
707
707
|
initMetadataForClass(_no_name_provided__qut3iv_68, VOID, VOID, VOID, [Reducer]);
|
|
708
708
|
initMetadataForClass(_no_name_provided__qut3iv_69, VOID, VOID, VOID, [Reducer]);
|
|
709
|
+
function reducers(currentPlayerId) {
|
|
710
|
+
return listOf([this.fb2(currentPlayerId), this.gb2(currentPlayerId), this.hb2(currentPlayerId), this.ib2(), this.jb2()]);
|
|
711
|
+
}
|
|
709
712
|
initMetadataForInterface(TransitionsReducer, 'TransitionsReducer');
|
|
710
713
|
initMetadataForClass(_no_name_provided__qut3iv_70, VOID, VOID, VOID, [Reducer]);
|
|
711
714
|
initMetadataForClass(_no_name_provided__qut3iv_71, VOID, VOID, VOID, [Reducer]);
|
|
@@ -742,7 +745,7 @@
|
|
|
742
745
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig(VOID, false) : logicConfig;
|
|
743
746
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
744
747
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
745
|
-
return this.
|
|
748
|
+
return this.eb3(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, coreConfig);
|
|
746
749
|
}
|
|
747
750
|
initMetadataForInterface(GameClientEngineController, 'GameClientEngineController');
|
|
748
751
|
initMetadataForClass(_no_name_provided__qut3iv_75, VOID, VOID, VOID, [Reducer]);
|
|
@@ -11233,173 +11236,158 @@
|
|
|
11233
11236
|
};
|
|
11234
11237
|
function _get_messageFactory__6vg0vc($this) {
|
|
11235
11238
|
// Inline function 'kotlin.getValue' call
|
|
11236
|
-
var this_0 = $this.
|
|
11239
|
+
var this_0 = $this.dau_1;
|
|
11237
11240
|
messageFactory$factory_0();
|
|
11238
11241
|
return this_0.u();
|
|
11239
11242
|
}
|
|
11240
11243
|
function _get_bufferInteractor__bbjsb2_0($this) {
|
|
11241
11244
|
// Inline function 'kotlin.getValue' call
|
|
11242
|
-
var this_0 = $this.
|
|
11245
|
+
var this_0 = $this.eau_1;
|
|
11243
11246
|
bufferInteractor$factory_2();
|
|
11244
11247
|
return this_0.u();
|
|
11245
11248
|
}
|
|
11246
11249
|
function _get_combinationProvider__3gs1n3($this) {
|
|
11247
11250
|
// Inline function 'kotlin.getValue' call
|
|
11248
|
-
var this_0 = $this.
|
|
11251
|
+
var this_0 = $this.fau_1;
|
|
11249
11252
|
combinationProvider$factory_0();
|
|
11250
11253
|
return this_0.u();
|
|
11251
11254
|
}
|
|
11252
11255
|
function _get_playerTurnTagProvider__7cizx8($this) {
|
|
11253
11256
|
// Inline function 'kotlin.getValue' call
|
|
11254
|
-
var this_0 = $this.
|
|
11257
|
+
var this_0 = $this.gau_1;
|
|
11255
11258
|
playerTurnTagProvider$factory_0();
|
|
11256
11259
|
return this_0.u();
|
|
11257
11260
|
}
|
|
11258
11261
|
function _get_cardValidatorInteractor__u3zq3u($this) {
|
|
11259
11262
|
// Inline function 'kotlin.getValue' call
|
|
11260
|
-
var this_0 = $this.
|
|
11263
|
+
var this_0 = $this.hau_1;
|
|
11261
11264
|
cardValidatorInteractor$factory_0();
|
|
11262
11265
|
return this_0.u();
|
|
11263
11266
|
}
|
|
11264
11267
|
function _get_clientLifecycleReducer__6ihp6m($this) {
|
|
11265
11268
|
// Inline function 'kotlin.getValue' call
|
|
11266
|
-
var this_0 = $this.
|
|
11269
|
+
var this_0 = $this.iau_1;
|
|
11267
11270
|
clientLifecycleReducer$factory_0();
|
|
11268
11271
|
return this_0.u();
|
|
11269
11272
|
}
|
|
11270
11273
|
function _get_clientCombinationsReducer__u5899o($this) {
|
|
11271
11274
|
// Inline function 'kotlin.getValue' call
|
|
11272
|
-
var this_0 = $this.
|
|
11275
|
+
var this_0 = $this.jau_1;
|
|
11273
11276
|
clientCombinationsReducer$factory_0();
|
|
11274
11277
|
return this_0.u();
|
|
11275
11278
|
}
|
|
11276
|
-
function _get_transitionsReducer__bsis4j($this) {
|
|
11277
|
-
// Inline function 'kotlin.getValue' call
|
|
11278
|
-
var this_0 = $this.mau_1;
|
|
11279
|
-
transitionsReducer$factory_0();
|
|
11280
|
-
return this_0.u();
|
|
11281
|
-
}
|
|
11282
11279
|
function _get_asyncProvider__jbpyhw($this) {
|
|
11283
11280
|
// Inline function 'kotlin.getValue' call
|
|
11284
|
-
var this_0 = $this.
|
|
11281
|
+
var this_0 = $this.kau_1;
|
|
11285
11282
|
asyncProvider$factory_0();
|
|
11286
11283
|
return this_0.u();
|
|
11287
11284
|
}
|
|
11288
11285
|
function _get_gameClientConfig__xfscic_0($this) {
|
|
11289
11286
|
// Inline function 'kotlin.getValue' call
|
|
11290
|
-
var this_0 = $this.
|
|
11287
|
+
var this_0 = $this.lau_1;
|
|
11291
11288
|
gameClientConfig$factory_2();
|
|
11292
11289
|
return this_0.u();
|
|
11293
11290
|
}
|
|
11294
11291
|
function _get_logger__rkp4sl_0($this) {
|
|
11295
11292
|
// Inline function 'kotlin.getValue' call
|
|
11296
|
-
var this_0 = $this.
|
|
11293
|
+
var this_0 = $this.mau_1;
|
|
11297
11294
|
logger$factory_2();
|
|
11298
11295
|
return this_0.u();
|
|
11299
11296
|
}
|
|
11300
11297
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
11301
11298
|
// Inline function 'kotlin.getValue' call
|
|
11302
|
-
var this_0 = $this.
|
|
11299
|
+
var this_0 = $this.nau_1;
|
|
11303
11300
|
scenePositionProvider$factory_0();
|
|
11304
11301
|
return this_0.u();
|
|
11305
11302
|
}
|
|
11306
11303
|
function _get_clientGameHistoryInteractor__6os8wx($this) {
|
|
11307
11304
|
// Inline function 'kotlin.getValue' call
|
|
11308
|
-
var this_0 = $this.
|
|
11305
|
+
var this_0 = $this.oau_1;
|
|
11309
11306
|
clientGameHistoryInteractor$factory_0();
|
|
11310
11307
|
return this_0.u();
|
|
11311
11308
|
}
|
|
11312
|
-
function ClientCommonStoreContract(di,
|
|
11313
|
-
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, false, localGameMechanicActions, currentPlayerId) : validationStoreContract;
|
|
11309
|
+
function ClientCommonStoreContract(di, currentPlayerId, timersStoreContract) {
|
|
11314
11310
|
timersStoreContract = timersStoreContract === VOID ? new TimersStoreContract(di) : timersStoreContract;
|
|
11315
|
-
this.bau_1 =
|
|
11316
|
-
this.cau_1 =
|
|
11317
|
-
this.dau_1 = validationStoreContract;
|
|
11318
|
-
this.eau_1 = timersStoreContract;
|
|
11311
|
+
this.bau_1 = currentPlayerId;
|
|
11312
|
+
this.cau_1 = timersStoreContract;
|
|
11319
11313
|
var tmp = this;
|
|
11320
11314
|
// Inline function 'org.kodein.di.instance' call
|
|
11321
11315
|
// Inline function 'org.kodein.type.generic' call
|
|
11322
11316
|
var tmp_0 = typeToken(createKType(getKClass(MessageFactory), arrayOf([]), false));
|
|
11323
11317
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
11324
|
-
tmp.
|
|
11318
|
+
tmp.dau_1 = Instance(di, tmp$ret$0, null).d62(this, messageFactory$factory());
|
|
11325
11319
|
var tmp_1 = this;
|
|
11326
11320
|
// Inline function 'org.kodein.di.instance' call
|
|
11327
11321
|
// Inline function 'org.kodein.type.generic' call
|
|
11328
11322
|
var tmp_2 = typeToken(createKType(getKClass(BufferInteractor), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AppState), arrayOf([]), false))]), false));
|
|
11329
11323
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
11330
|
-
tmp_1.
|
|
11324
|
+
tmp_1.eau_1 = Instance(di, tmp$ret$2, null).d62(this, bufferInteractor$factory_1());
|
|
11331
11325
|
var tmp_3 = this;
|
|
11332
11326
|
// Inline function 'org.kodein.di.instance' call
|
|
11333
11327
|
// Inline function 'org.kodein.type.generic' call
|
|
11334
11328
|
var tmp_4 = typeToken(createKType(getKClass(CombinationProvider), arrayOf([]), false));
|
|
11335
11329
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
11336
|
-
tmp_3.
|
|
11330
|
+
tmp_3.fau_1 = Instance(di, tmp$ret$4, null).d62(this, combinationProvider$factory());
|
|
11337
11331
|
var tmp_5 = this;
|
|
11338
11332
|
// Inline function 'org.kodein.di.instance' call
|
|
11339
11333
|
// Inline function 'org.kodein.type.generic' call
|
|
11340
11334
|
var tmp_6 = typeToken(createKType(getKClass(PlayerTurnTagProvider), arrayOf([]), false));
|
|
11341
11335
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
11342
|
-
tmp_5.
|
|
11336
|
+
tmp_5.gau_1 = Instance(di, tmp$ret$6, null).d62(this, playerTurnTagProvider$factory());
|
|
11343
11337
|
var tmp_7 = this;
|
|
11344
11338
|
// Inline function 'org.kodein.di.instance' call
|
|
11345
11339
|
// Inline function 'org.kodein.type.generic' call
|
|
11346
11340
|
var tmp_8 = typeToken(createKType(getKClass(PutCardValidatorInteractor), arrayOf([]), false));
|
|
11347
11341
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
11348
|
-
tmp_7.
|
|
11342
|
+
tmp_7.hau_1 = Instance(di, tmp$ret$8, null).d62(this, cardValidatorInteractor$factory());
|
|
11349
11343
|
var tmp_9 = this;
|
|
11350
11344
|
// Inline function 'org.kodein.di.instance' call
|
|
11351
11345
|
// Inline function 'org.kodein.type.generic' call
|
|
11352
11346
|
var tmp_10 = typeToken(createKType(getKClass(ClientLifecycleReducer), arrayOf([]), false));
|
|
11353
11347
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
11354
|
-
tmp_9.
|
|
11348
|
+
tmp_9.iau_1 = Instance(di, tmp$ret$10, null).d62(this, clientLifecycleReducer$factory());
|
|
11355
11349
|
var tmp_11 = this;
|
|
11356
11350
|
// Inline function 'org.kodein.di.instance' call
|
|
11357
11351
|
// Inline function 'org.kodein.type.generic' call
|
|
11358
11352
|
var tmp_12 = typeToken(createKType(getKClass(ClientCombinationsReducer), arrayOf([]), false));
|
|
11359
11353
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
11360
|
-
tmp_11.
|
|
11354
|
+
tmp_11.jau_1 = Instance(di, tmp$ret$12, null).d62(this, clientCombinationsReducer$factory());
|
|
11361
11355
|
var tmp_13 = this;
|
|
11362
11356
|
// Inline function 'org.kodein.di.instance' call
|
|
11363
11357
|
// Inline function 'org.kodein.type.generic' call
|
|
11364
|
-
var tmp_14 = typeToken(createKType(getKClass(
|
|
11358
|
+
var tmp_14 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
11365
11359
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
11366
|
-
tmp_13.
|
|
11360
|
+
tmp_13.kau_1 = Instance(di, tmp$ret$14, null).d62(this, asyncProvider$factory());
|
|
11367
11361
|
var tmp_15 = this;
|
|
11368
11362
|
// Inline function 'org.kodein.di.instance' call
|
|
11369
11363
|
// Inline function 'org.kodein.type.generic' call
|
|
11370
|
-
var tmp_16 = typeToken(createKType(getKClass(
|
|
11364
|
+
var tmp_16 = typeToken(createKType(getKClass(GameClientConfig), arrayOf([]), false));
|
|
11371
11365
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
11372
|
-
tmp_15.
|
|
11366
|
+
tmp_15.lau_1 = Instance(di, tmp$ret$16, null).d62(this, gameClientConfig$factory_1());
|
|
11373
11367
|
var tmp_17 = this;
|
|
11374
11368
|
// Inline function 'org.kodein.di.instance' call
|
|
11375
11369
|
// Inline function 'org.kodein.type.generic' call
|
|
11376
|
-
var tmp_18 = typeToken(createKType(getKClass(
|
|
11370
|
+
var tmp_18 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
11377
11371
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
11378
|
-
tmp_17.
|
|
11372
|
+
tmp_17.mau_1 = Instance(di, tmp$ret$18, null).d62(this, logger$factory_1());
|
|
11379
11373
|
var tmp_19 = this;
|
|
11380
11374
|
// Inline function 'org.kodein.di.instance' call
|
|
11381
11375
|
// Inline function 'org.kodein.type.generic' call
|
|
11382
|
-
var tmp_20 = typeToken(createKType(getKClass(
|
|
11376
|
+
var tmp_20 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
11383
11377
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
11384
|
-
tmp_19.
|
|
11378
|
+
tmp_19.nau_1 = Instance(di, tmp$ret$20, null).d62(this, scenePositionProvider$factory());
|
|
11385
11379
|
var tmp_21 = this;
|
|
11386
11380
|
// Inline function 'org.kodein.di.instance' call
|
|
11387
11381
|
// Inline function 'org.kodein.type.generic' call
|
|
11388
|
-
var tmp_22 = typeToken(createKType(getKClass(
|
|
11382
|
+
var tmp_22 = typeToken(createKType(getKClass(ClientGameHistoryInteractor), arrayOf([]), false));
|
|
11389
11383
|
var tmp$ret$22 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
11390
|
-
tmp_21.
|
|
11391
|
-
var tmp_23 = this;
|
|
11392
|
-
// Inline function 'org.kodein.di.instance' call
|
|
11393
|
-
// Inline function 'org.kodein.type.generic' call
|
|
11394
|
-
var tmp_24 = typeToken(createKType(getKClass(ClientGameHistoryInteractor), arrayOf([]), false));
|
|
11395
|
-
var tmp$ret$24 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
11396
|
-
tmp_23.rau_1 = Instance(di, tmp$ret$24, null).d62(this, clientGameHistoryInteractor$factory());
|
|
11384
|
+
tmp_21.oau_1 = Instance(di, tmp$ret$22, null).d62(this, clientGameHistoryInteractor$factory());
|
|
11397
11385
|
}
|
|
11398
11386
|
protoOf(ClientCommonStoreContract).o8y = function () {
|
|
11399
|
-
return plus(
|
|
11387
|
+
return plus(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.bau_1), clientResetProcessingCardReducer(), clientSceneReducer(_get_logger__rkp4sl_0(this), _get_clientLifecycleReducer__6ihp6m(this)), clientCombinationToAnnounceStateOnPlayerTurnReducer(_get_clientCombinationsReducer__u5899o(this))]), this.cau_1.o8y());
|
|
11400
11388
|
};
|
|
11401
11389
|
protoOf(ClientCommonStoreContract).p8y = function () {
|
|
11402
|
-
return plus(plus(plus(plus(
|
|
11390
|
+
return plus(plus(plus(plus(listOfNotNull([checkValidCurrentPlayerIdMiddleware(this.bau_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.cau_1.p8y());
|
|
11403
11391
|
};
|
|
11404
11392
|
function messageFactory$factory() {
|
|
11405
11393
|
return getPropertyCallableRef('messageFactory', 1, KProperty1, function (receiver) {
|
|
@@ -11436,11 +11424,6 @@
|
|
|
11436
11424
|
return _get_clientCombinationsReducer__u5899o(receiver);
|
|
11437
11425
|
}, null);
|
|
11438
11426
|
}
|
|
11439
|
-
function transitionsReducer$factory() {
|
|
11440
|
-
return getPropertyCallableRef('transitionsReducer', 1, KProperty1, function (receiver) {
|
|
11441
|
-
return _get_transitionsReducer__bsis4j(receiver);
|
|
11442
|
-
}, null);
|
|
11443
|
-
}
|
|
11444
11427
|
function asyncProvider$factory() {
|
|
11445
11428
|
return getPropertyCallableRef('asyncProvider', 1, KProperty1, function (receiver) {
|
|
11446
11429
|
return _get_asyncProvider__jbpyhw(receiver);
|
|
@@ -11501,11 +11484,6 @@
|
|
|
11501
11484
|
return _get_clientCombinationsReducer__u5899o(receiver);
|
|
11502
11485
|
}, null);
|
|
11503
11486
|
}
|
|
11504
|
-
function transitionsReducer$factory_0() {
|
|
11505
|
-
return getPropertyCallableRef('transitionsReducer', 1, KProperty1, function (receiver) {
|
|
11506
|
-
return _get_transitionsReducer__bsis4j(receiver);
|
|
11507
|
-
}, null);
|
|
11508
|
-
}
|
|
11509
11487
|
function asyncProvider$factory_0() {
|
|
11510
11488
|
return getPropertyCallableRef('asyncProvider', 1, KProperty1, function (receiver) {
|
|
11511
11489
|
return _get_asyncProvider__jbpyhw(receiver);
|
|
@@ -11533,215 +11511,229 @@
|
|
|
11533
11511
|
}
|
|
11534
11512
|
function _get_messageFactory__6vg0vc_0($this) {
|
|
11535
11513
|
// Inline function 'kotlin.getValue' call
|
|
11536
|
-
var this_0 = $this.
|
|
11514
|
+
var this_0 = $this.vau_1;
|
|
11537
11515
|
messageFactory$factory_2();
|
|
11538
11516
|
return this_0.u();
|
|
11539
11517
|
}
|
|
11540
11518
|
function _get_pointsInteractor__5t71wv($this) {
|
|
11541
11519
|
// Inline function 'kotlin.getValue' call
|
|
11542
|
-
var this_0 = $this.
|
|
11520
|
+
var this_0 = $this.wau_1;
|
|
11543
11521
|
pointsInteractor$factory_0();
|
|
11544
11522
|
return this_0.u();
|
|
11545
11523
|
}
|
|
11546
11524
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
11547
11525
|
// Inline function 'kotlin.getValue' call
|
|
11548
|
-
var this_0 = $this.
|
|
11526
|
+
var this_0 = $this.xau_1;
|
|
11549
11527
|
teamsLogicProvider$factory_0();
|
|
11550
11528
|
return this_0.u();
|
|
11551
11529
|
}
|
|
11552
11530
|
function _get_gameLogicInteractor__895s7o($this) {
|
|
11553
11531
|
// Inline function 'kotlin.getValue' call
|
|
11554
|
-
var this_0 = $this.
|
|
11532
|
+
var this_0 = $this.yau_1;
|
|
11555
11533
|
gameLogicInteractor$factory_0();
|
|
11556
11534
|
return this_0.u();
|
|
11557
11535
|
}
|
|
11558
11536
|
function _get_clientLifecycleReducer__6ihp6m_0($this) {
|
|
11559
11537
|
// Inline function 'kotlin.getValue' call
|
|
11560
|
-
var this_0 = $this.
|
|
11538
|
+
var this_0 = $this.zau_1;
|
|
11561
11539
|
clientLifecycleReducer$factory_2();
|
|
11562
11540
|
return this_0.u();
|
|
11563
11541
|
}
|
|
11564
11542
|
function _get_logicConfig__52ww9d($this) {
|
|
11565
11543
|
// Inline function 'kotlin.getValue' call
|
|
11566
|
-
var this_0 = $this.
|
|
11544
|
+
var this_0 = $this.aav_1;
|
|
11567
11545
|
logicConfig$factory_0();
|
|
11568
11546
|
return this_0.u();
|
|
11569
11547
|
}
|
|
11570
11548
|
function _get_playerTurnTagProvider__7cizx8_0($this) {
|
|
11571
11549
|
// Inline function 'kotlin.getValue' call
|
|
11572
|
-
var this_0 = $this.
|
|
11550
|
+
var this_0 = $this.bav_1;
|
|
11573
11551
|
playerTurnTagProvider$factory_2();
|
|
11574
11552
|
return this_0.u();
|
|
11575
11553
|
}
|
|
11576
11554
|
function _get_botConfig__cpaxzc($this) {
|
|
11577
11555
|
// Inline function 'kotlin.getValue' call
|
|
11578
|
-
var this_0 = $this.
|
|
11556
|
+
var this_0 = $this.cav_1;
|
|
11579
11557
|
botConfig$factory_0();
|
|
11580
11558
|
return this_0.u();
|
|
11581
11559
|
}
|
|
11582
11560
|
function _get_gameClientConfig__xfscic_1($this) {
|
|
11583
11561
|
// Inline function 'kotlin.getValue' call
|
|
11584
|
-
var this_0 = $this.
|
|
11562
|
+
var this_0 = $this.dav_1;
|
|
11585
11563
|
gameClientConfig$factory_4();
|
|
11586
11564
|
return this_0.u();
|
|
11587
11565
|
}
|
|
11588
11566
|
function _get_asyncProvider__jbpyhw_0($this) {
|
|
11589
11567
|
// Inline function 'kotlin.getValue' call
|
|
11590
|
-
var this_0 = $this.
|
|
11568
|
+
var this_0 = $this.eav_1;
|
|
11591
11569
|
asyncProvider$factory_2();
|
|
11592
11570
|
return this_0.u();
|
|
11593
11571
|
}
|
|
11594
11572
|
function _get_fromClientEventsObserver__a7vzd3($this) {
|
|
11595
11573
|
// Inline function 'kotlin.getValue' call
|
|
11596
|
-
var this_0 = $this.
|
|
11574
|
+
var this_0 = $this.fav_1;
|
|
11597
11575
|
fromClientEventsObserver$factory_0();
|
|
11598
11576
|
return this_0.u();
|
|
11599
11577
|
}
|
|
11600
11578
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
11601
11579
|
// Inline function 'kotlin.getValue' call
|
|
11602
|
-
var this_0 = $this.
|
|
11580
|
+
var this_0 = $this.gav_1;
|
|
11603
11581
|
lastCardInteractor$factory_0();
|
|
11604
11582
|
return this_0.u();
|
|
11605
11583
|
}
|
|
11606
11584
|
function _get_dealerInteractor__6aitmv($this) {
|
|
11607
11585
|
// Inline function 'kotlin.getValue' call
|
|
11608
|
-
var this_0 = $this.
|
|
11586
|
+
var this_0 = $this.hav_1;
|
|
11609
11587
|
dealerInteractor$factory_0();
|
|
11610
11588
|
return this_0.u();
|
|
11611
11589
|
}
|
|
11612
11590
|
function _get_mechanicReducers__ipi0tc($this) {
|
|
11613
11591
|
// Inline function 'kotlin.getValue' call
|
|
11614
|
-
var this_0 = $this.
|
|
11592
|
+
var this_0 = $this.iav_1;
|
|
11615
11593
|
mechanicReducers$factory_0();
|
|
11616
11594
|
return this_0.u();
|
|
11617
11595
|
}
|
|
11596
|
+
function _get_transitionsReducer__bsis4j($this) {
|
|
11597
|
+
// Inline function 'kotlin.getValue' call
|
|
11598
|
+
var this_0 = $this.jav_1;
|
|
11599
|
+
transitionsReducer$factory_0();
|
|
11600
|
+
return this_0.u();
|
|
11601
|
+
}
|
|
11618
11602
|
function OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3(this$0) {
|
|
11619
11603
|
return function (it) {
|
|
11620
|
-
return it === this$0.
|
|
11604
|
+
return it === this$0.pau_1;
|
|
11621
11605
|
};
|
|
11622
11606
|
}
|
|
11623
11607
|
function OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3_0(this$0) {
|
|
11624
11608
|
return function (player) {
|
|
11625
|
-
return player.playerId === this$0.
|
|
11609
|
+
return player.playerId === this$0.pau_1;
|
|
11626
11610
|
};
|
|
11627
11611
|
}
|
|
11628
|
-
function OnlineGameStoreContract(di, currentPlayerId, clientCommonStoreContract, botGameStoreContract, playerTurnStoreContract, fileLoggerStoreContract) {
|
|
11629
|
-
|
|
11612
|
+
function OnlineGameStoreContract(di, currentPlayerId, validationStoreContract, clientCommonStoreContract, botGameStoreContract, playerTurnStoreContract, fileLoggerStoreContract) {
|
|
11613
|
+
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, false, false, currentPlayerId) : validationStoreContract;
|
|
11614
|
+
clientCommonStoreContract = clientCommonStoreContract === VOID ? new ClientCommonStoreContract(di, currentPlayerId) : clientCommonStoreContract;
|
|
11630
11615
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di, listOf_0(currentPlayerId)) : botGameStoreContract;
|
|
11631
11616
|
playerTurnStoreContract = playerTurnStoreContract === VOID ? new PlayerTurnStoreContract(di, false, currentPlayerId) : playerTurnStoreContract;
|
|
11632
11617
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di, currentPlayerId) : fileLoggerStoreContract;
|
|
11633
|
-
this.
|
|
11634
|
-
this.
|
|
11635
|
-
this.
|
|
11636
|
-
this.
|
|
11637
|
-
this.
|
|
11618
|
+
this.pau_1 = currentPlayerId;
|
|
11619
|
+
this.qau_1 = validationStoreContract;
|
|
11620
|
+
this.rau_1 = clientCommonStoreContract;
|
|
11621
|
+
this.sau_1 = botGameStoreContract;
|
|
11622
|
+
this.tau_1 = playerTurnStoreContract;
|
|
11623
|
+
this.uau_1 = fileLoggerStoreContract;
|
|
11638
11624
|
var tmp = this;
|
|
11639
11625
|
// Inline function 'org.kodein.di.instance' call
|
|
11640
11626
|
// Inline function 'org.kodein.type.generic' call
|
|
11641
11627
|
var tmp_0 = typeToken(createKType(getKClass(MessageFactory), arrayOf([]), false));
|
|
11642
11628
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
11643
|
-
tmp.
|
|
11629
|
+
tmp.vau_1 = Instance(di, tmp$ret$0, null).d62(this, messageFactory$factory_1());
|
|
11644
11630
|
var tmp_1 = this;
|
|
11645
11631
|
// Inline function 'org.kodein.di.instance' call
|
|
11646
11632
|
// Inline function 'org.kodein.type.generic' call
|
|
11647
11633
|
var tmp_2 = typeToken(createKType(getKClass(PointsInteractor), arrayOf([]), false));
|
|
11648
11634
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
11649
|
-
tmp_1.
|
|
11635
|
+
tmp_1.wau_1 = Instance(di, tmp$ret$2, null).d62(this, pointsInteractor$factory());
|
|
11650
11636
|
var tmp_3 = this;
|
|
11651
11637
|
// Inline function 'org.kodein.di.instance' call
|
|
11652
11638
|
// Inline function 'org.kodein.type.generic' call
|
|
11653
11639
|
var tmp_4 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
11654
11640
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
11655
|
-
tmp_3.
|
|
11641
|
+
tmp_3.xau_1 = Instance(di, tmp$ret$4, null).d62(this, teamsLogicProvider$factory());
|
|
11656
11642
|
var tmp_5 = this;
|
|
11657
11643
|
// Inline function 'org.kodein.di.instance' call
|
|
11658
11644
|
// Inline function 'org.kodein.type.generic' call
|
|
11659
11645
|
var tmp_6 = typeToken(createKType(getKClass(GameMechanicLogicInteractor), arrayOf([]), false));
|
|
11660
11646
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
11661
|
-
tmp_5.
|
|
11647
|
+
tmp_5.yau_1 = Instance(di, tmp$ret$6, null).d62(this, gameLogicInteractor$factory());
|
|
11662
11648
|
var tmp_7 = this;
|
|
11663
11649
|
// Inline function 'org.kodein.di.instance' call
|
|
11664
11650
|
// Inline function 'org.kodein.type.generic' call
|
|
11665
11651
|
var tmp_8 = typeToken(createKType(getKClass(ClientLifecycleReducer), arrayOf([]), false));
|
|
11666
11652
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
11667
|
-
tmp_7.
|
|
11653
|
+
tmp_7.zau_1 = Instance(di, tmp$ret$8, null).d62(this, clientLifecycleReducer$factory_1());
|
|
11668
11654
|
var tmp_9 = this;
|
|
11669
11655
|
// Inline function 'org.kodein.di.instance' call
|
|
11670
11656
|
// Inline function 'org.kodein.type.generic' call
|
|
11671
11657
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
11672
11658
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
11673
|
-
tmp_9.
|
|
11659
|
+
tmp_9.aav_1 = Instance(di, tmp$ret$10, null).d62(this, logicConfig$factory());
|
|
11674
11660
|
var tmp_11 = this;
|
|
11675
11661
|
// Inline function 'org.kodein.di.instance' call
|
|
11676
11662
|
// Inline function 'org.kodein.type.generic' call
|
|
11677
11663
|
var tmp_12 = typeToken(createKType(getKClass(PlayerTurnTagProvider), arrayOf([]), false));
|
|
11678
11664
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
11679
|
-
tmp_11.
|
|
11665
|
+
tmp_11.bav_1 = Instance(di, tmp$ret$12, null).d62(this, playerTurnTagProvider$factory_1());
|
|
11680
11666
|
var tmp_13 = this;
|
|
11681
11667
|
// Inline function 'org.kodein.di.instance' call
|
|
11682
11668
|
// Inline function 'org.kodein.type.generic' call
|
|
11683
11669
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
11684
11670
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
11685
|
-
tmp_13.
|
|
11671
|
+
tmp_13.cav_1 = Instance(di, tmp$ret$14, null).d62(this, botConfig$factory());
|
|
11686
11672
|
var tmp_15 = this;
|
|
11687
11673
|
// Inline function 'org.kodein.di.instance' call
|
|
11688
11674
|
// Inline function 'org.kodein.type.generic' call
|
|
11689
11675
|
var tmp_16 = typeToken(createKType(getKClass(GameClientConfig), arrayOf([]), false));
|
|
11690
11676
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
11691
|
-
tmp_15.
|
|
11677
|
+
tmp_15.dav_1 = Instance(di, tmp$ret$16, null).d62(this, gameClientConfig$factory_3());
|
|
11692
11678
|
var tmp_17 = this;
|
|
11693
11679
|
// Inline function 'org.kodein.di.instance' call
|
|
11694
11680
|
// Inline function 'org.kodein.type.generic' call
|
|
11695
11681
|
var tmp_18 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
11696
11682
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
11697
|
-
tmp_17.
|
|
11683
|
+
tmp_17.eav_1 = Instance(di, tmp$ret$18, null).d62(this, asyncProvider$factory_1());
|
|
11698
11684
|
var tmp_19 = this;
|
|
11699
11685
|
// Inline function 'org.kodein.di.instance' call
|
|
11700
11686
|
// Inline function 'org.kodein.type.generic' call
|
|
11701
11687
|
var tmp_20 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
11702
11688
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
11703
|
-
tmp_19.
|
|
11689
|
+
tmp_19.fav_1 = Instance(di, tmp$ret$20, null).d62(this, fromClientEventsObserver$factory());
|
|
11704
11690
|
var tmp_21 = this;
|
|
11705
11691
|
// Inline function 'org.kodein.di.instance' call
|
|
11706
11692
|
// Inline function 'org.kodein.type.generic' call
|
|
11707
11693
|
var tmp_22 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
11708
11694
|
var tmp$ret$22 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
11709
|
-
tmp_21.
|
|
11695
|
+
tmp_21.gav_1 = Instance(di, tmp$ret$22, null).d62(this, lastCardInteractor$factory());
|
|
11710
11696
|
var tmp_23 = this;
|
|
11711
11697
|
// Inline function 'org.kodein.di.instance' call
|
|
11712
11698
|
// Inline function 'org.kodein.type.generic' call
|
|
11713
11699
|
var tmp_24 = typeToken(createKType(getKClass(DealerInteractor), arrayOf([]), false));
|
|
11714
11700
|
var tmp$ret$24 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
11715
|
-
tmp_23.
|
|
11701
|
+
tmp_23.hav_1 = Instance(di, tmp$ret$24, null).d62(this, dealerInteractor$factory());
|
|
11716
11702
|
var tmp_25 = this;
|
|
11717
11703
|
// Inline function 'org.kodein.di.instance' call
|
|
11718
11704
|
// Inline function 'org.kodein.type.generic' call
|
|
11719
11705
|
var tmp_26 = typeToken(createKType(getKClass(MechanicReducers), arrayOf([]), false));
|
|
11720
11706
|
var tmp$ret$26 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE();
|
|
11721
|
-
tmp_25.
|
|
11707
|
+
tmp_25.iav_1 = Instance(di, tmp$ret$26, null).d62(this, mechanicReducers$factory());
|
|
11708
|
+
var tmp_27 = this;
|
|
11709
|
+
// Inline function 'org.kodein.di.instance' call
|
|
11710
|
+
// Inline function 'org.kodein.type.generic' call
|
|
11711
|
+
var tmp_28 = typeToken(createKType(getKClass(TransitionsReducer), arrayOf([]), false));
|
|
11712
|
+
var tmp$ret$28 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE();
|
|
11713
|
+
tmp_27.jav_1 = Instance(di, tmp$ret$28, null).d62(this, transitionsReducer$factory());
|
|
11722
11714
|
}
|
|
11723
11715
|
protoOf(OnlineGameStoreContract).o8y = function () {
|
|
11724
|
-
var tmp = plus(this.
|
|
11716
|
+
var tmp = plus(plus(plus(plus(this.qau_1.o8y(), _get_transitionsReducer__bsis4j(this).kav(this.pau_1)), listOf([_get_mechanicReducers__ipi0tc(this).t8z(), clientErrorStateWhenTerminationActionReducer(_get_clientLifecycleReducer__6ihp6m_0(this))])), this.tau_1.o8y()), this.rau_1.o8y());
|
|
11725
11717
|
var tmp_0;
|
|
11726
11718
|
if (_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer) {
|
|
11727
|
-
tmp_0 = this.
|
|
11719
|
+
tmp_0 = this.sau_1.o8y();
|
|
11728
11720
|
} else {
|
|
11729
11721
|
tmp_0 = emptyList();
|
|
11730
11722
|
}
|
|
11731
|
-
return plus(plus(
|
|
11723
|
+
return plus(plus(tmp, tmp_0), this.uau_1.o8y());
|
|
11732
11724
|
};
|
|
11733
11725
|
protoOf(OnlineGameStoreContract).p8y = function () {
|
|
11734
11726
|
var messagesMiddleware = new MessagesMiddleware(_get_messageFactory__6vg0vc_0(this), _get_pointsInteractor__5t71wv(this), _get_teamsLogicProvider__u10pm6(this));
|
|
11735
|
-
var tmp = this.
|
|
11727
|
+
var tmp = plus(plus(this.qau_1.p8y(), this.tau_1.p8y()), this.rau_1.p8y());
|
|
11736
11728
|
var tmp_0;
|
|
11737
11729
|
if (_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer) {
|
|
11738
|
-
var tmp_1 = this.
|
|
11730
|
+
var tmp_1 = this.sau_1.p8y();
|
|
11739
11731
|
var tmp_2 = playerTurnTimeoutMiddleware(_get_asyncProvider__jbpyhw_0(this));
|
|
11740
11732
|
tmp_0 = plus(tmp_1, listOf([tmp_2, reloadTimersWhenContinueGameMiddleware(true, VOID, OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3(this))]));
|
|
11741
11733
|
} else {
|
|
11742
11734
|
tmp_0 = emptyList();
|
|
11743
11735
|
}
|
|
11744
|
-
var tmp_3 = plus(plus(plus(
|
|
11736
|
+
var tmp_3 = plus(plus(plus(tmp, tmp_0), this.uau_1.p8y()), listOfNotNull([sendFromClientEventsMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_fromClientEventsObserver__a7vzd3(this)), announceCombinationMiddleware(_get_playerTurnTagProvider__7cizx8_0(this)), clientHostDealerMiddleware(this.pau_1, _get_dealerInteractor__6aitmv(this), _get_playerTurnTagProvider__7cizx8_0(this)), _get_logicConfig__52ww9d(this).supportBackwardActions ? clientConsumeFromClientActionsMiddleware(_get_gameLogicInteractor__895s7o(this)) : null, messagesMiddleware.oav(this.pau_1)]));
|
|
11745
11737
|
var tmp_4;
|
|
11746
11738
|
if (_get_botConfig__cpaxzc(this).autoStepLastCard) {
|
|
11747
11739
|
var tmp_5;
|
|
@@ -11751,7 +11743,7 @@
|
|
|
11751
11743
|
} else {
|
|
11752
11744
|
tmp_5 = null;
|
|
11753
11745
|
}
|
|
11754
|
-
tmp_4 = listOfNotNull([tmp_5, !_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer ? clientPutCurrentPlayerLastCardMiddleware(this.
|
|
11746
|
+
tmp_4 = listOfNotNull([tmp_5, !_get_gameClientConfig__xfscic_1(this).isAutoStepCurrentPlayer ? clientPutCurrentPlayerLastCardMiddleware(this.pau_1, _get_lastCardInteractor__h6lq3w(this)) : null]);
|
|
11755
11747
|
} else {
|
|
11756
11748
|
tmp_4 = emptyList();
|
|
11757
11749
|
}
|
|
@@ -11827,6 +11819,11 @@
|
|
|
11827
11819
|
return _get_mechanicReducers__ipi0tc(receiver);
|
|
11828
11820
|
}, null);
|
|
11829
11821
|
}
|
|
11822
|
+
function transitionsReducer$factory() {
|
|
11823
|
+
return getPropertyCallableRef('transitionsReducer', 1, KProperty1, function (receiver) {
|
|
11824
|
+
return _get_transitionsReducer__bsis4j(receiver);
|
|
11825
|
+
}, null);
|
|
11826
|
+
}
|
|
11830
11827
|
function messageFactory$factory_2() {
|
|
11831
11828
|
return getPropertyCallableRef('messageFactory', 1, KProperty1, function (receiver) {
|
|
11832
11829
|
return _get_messageFactory__6vg0vc_0(receiver);
|
|
@@ -11897,79 +11894,91 @@
|
|
|
11897
11894
|
return _get_mechanicReducers__ipi0tc(receiver);
|
|
11898
11895
|
}, null);
|
|
11899
11896
|
}
|
|
11897
|
+
function transitionsReducer$factory_0() {
|
|
11898
|
+
return getPropertyCallableRef('transitionsReducer', 1, KProperty1, function (receiver) {
|
|
11899
|
+
return _get_transitionsReducer__bsis4j(receiver);
|
|
11900
|
+
}, null);
|
|
11901
|
+
}
|
|
11900
11902
|
function _get_messageFactory__6vg0vc_1($this) {
|
|
11901
11903
|
// Inline function 'kotlin.getValue' call
|
|
11902
|
-
var this_0 = $this.
|
|
11904
|
+
var this_0 = $this.vav_1;
|
|
11903
11905
|
messageFactory$factory_4();
|
|
11904
11906
|
return this_0.u();
|
|
11905
11907
|
}
|
|
11906
11908
|
function _get_pointsInteractor__5t71wv_0($this) {
|
|
11907
11909
|
// Inline function 'kotlin.getValue' call
|
|
11908
|
-
var this_0 = $this.
|
|
11910
|
+
var this_0 = $this.wav_1;
|
|
11909
11911
|
pointsInteractor$factory_2();
|
|
11910
11912
|
return this_0.u();
|
|
11911
11913
|
}
|
|
11912
11914
|
function _get_teamsLogicProvider__u10pm6_0($this) {
|
|
11913
11915
|
// Inline function 'kotlin.getValue' call
|
|
11914
|
-
var this_0 = $this.
|
|
11916
|
+
var this_0 = $this.xav_1;
|
|
11915
11917
|
teamsLogicProvider$factory_2();
|
|
11916
11918
|
return this_0.u();
|
|
11917
11919
|
}
|
|
11918
11920
|
function _get_clientStatisticsInteractor__s4ngf8($this) {
|
|
11919
11921
|
// Inline function 'kotlin.getValue' call
|
|
11920
|
-
var this_0 = $this.
|
|
11922
|
+
var this_0 = $this.yav_1;
|
|
11921
11923
|
clientStatisticsInteractor$factory_0();
|
|
11922
11924
|
return this_0.u();
|
|
11923
11925
|
}
|
|
11924
11926
|
function _get_asyncProvider__jbpyhw_1($this) {
|
|
11925
11927
|
// Inline function 'kotlin.getValue' call
|
|
11926
|
-
var this_0 = $this.
|
|
11928
|
+
var this_0 = $this.zav_1;
|
|
11927
11929
|
asyncProvider$factory_4();
|
|
11928
11930
|
return this_0.u();
|
|
11929
11931
|
}
|
|
11930
11932
|
function _get_persistentAppStateInteractor__5jt7l7($this) {
|
|
11931
11933
|
// Inline function 'kotlin.getValue' call
|
|
11932
|
-
var this_0 = $this.
|
|
11934
|
+
var this_0 = $this.aaw_1;
|
|
11933
11935
|
persistentAppStateInteractor$factory_0();
|
|
11934
11936
|
return this_0.u();
|
|
11935
11937
|
}
|
|
11936
11938
|
function _get_gameClientConfig__xfscic_2($this) {
|
|
11937
11939
|
// Inline function 'kotlin.getValue' call
|
|
11938
|
-
var this_0 = $this.
|
|
11940
|
+
var this_0 = $this.baw_1;
|
|
11939
11941
|
gameClientConfig$factory_6();
|
|
11940
11942
|
return this_0.u();
|
|
11941
11943
|
}
|
|
11942
11944
|
function _get_botConfig__cpaxzc_0($this) {
|
|
11943
11945
|
// Inline function 'kotlin.getValue' call
|
|
11944
|
-
var this_0 = $this.
|
|
11946
|
+
var this_0 = $this.caw_1;
|
|
11945
11947
|
botConfig$factory_2();
|
|
11946
11948
|
return this_0.u();
|
|
11947
11949
|
}
|
|
11948
11950
|
function _get_lastCardInteractor__h6lq3w_0($this) {
|
|
11949
11951
|
// Inline function 'kotlin.getValue' call
|
|
11950
|
-
var this_0 = $this.
|
|
11952
|
+
var this_0 = $this.daw_1;
|
|
11951
11953
|
lastCardInteractor$factory_2();
|
|
11952
11954
|
return this_0.u();
|
|
11953
11955
|
}
|
|
11954
11956
|
function _get_playerTurnTagProvider__7cizx8_1($this) {
|
|
11955
11957
|
// Inline function 'kotlin.getValue' call
|
|
11956
|
-
var this_0 = $this.
|
|
11958
|
+
var this_0 = $this.eaw_1;
|
|
11957
11959
|
playerTurnTagProvider$factory_4();
|
|
11958
11960
|
return this_0.u();
|
|
11959
11961
|
}
|
|
11962
|
+
function _get_transitionsReducer__bsis4j_0($this) {
|
|
11963
|
+
// Inline function 'kotlin.getValue' call
|
|
11964
|
+
var this_0 = $this.faw_1;
|
|
11965
|
+
transitionsReducer$factory_2();
|
|
11966
|
+
return this_0.u();
|
|
11967
|
+
}
|
|
11960
11968
|
function SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this$0) {
|
|
11961
11969
|
return function (it) {
|
|
11962
|
-
return !(it === this$0.
|
|
11970
|
+
return !(it === this$0.pav_1) || _get_gameClientConfig__xfscic_2(this$0).isAutoStepCurrentPlayer;
|
|
11963
11971
|
};
|
|
11964
11972
|
}
|
|
11965
11973
|
function SingleGameStoreContract$_get_middlewares_$lambda_dj4vza_0(this$0) {
|
|
11966
11974
|
return function (player) {
|
|
11967
|
-
var isCurrentPlayer = player.playerId === this$0.
|
|
11975
|
+
var isCurrentPlayer = player.playerId === this$0.pav_1;
|
|
11968
11976
|
return !isCurrentPlayer || _get_gameClientConfig__xfscic_2(this$0).isAutoStepCurrentPlayer;
|
|
11969
11977
|
};
|
|
11970
11978
|
}
|
|
11971
|
-
function SingleGameStoreContract(di, currentPlayerId, clientCommonStoreContract, gameMechanicStoreContract, botGameStoreContract, fileLoggerStoreContract) {
|
|
11972
|
-
|
|
11979
|
+
function SingleGameStoreContract(di, currentPlayerId, validationStoreContract, clientCommonStoreContract, gameMechanicStoreContract, botGameStoreContract, fileLoggerStoreContract) {
|
|
11980
|
+
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, false, true, currentPlayerId) : validationStoreContract;
|
|
11981
|
+
clientCommonStoreContract = clientCommonStoreContract === VOID ? new ClientCommonStoreContract(di, currentPlayerId) : clientCommonStoreContract;
|
|
11973
11982
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, currentPlayerId, true) : gameMechanicStoreContract;
|
|
11974
11983
|
var tmp;
|
|
11975
11984
|
if (botGameStoreContract === VOID) {
|
|
@@ -11990,88 +11999,95 @@
|
|
|
11990
11999
|
}
|
|
11991
12000
|
botGameStoreContract = tmp;
|
|
11992
12001
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di, currentPlayerId) : fileLoggerStoreContract;
|
|
11993
|
-
this.
|
|
11994
|
-
this.
|
|
11995
|
-
this.
|
|
11996
|
-
this.
|
|
11997
|
-
this.
|
|
12002
|
+
this.pav_1 = currentPlayerId;
|
|
12003
|
+
this.qav_1 = validationStoreContract;
|
|
12004
|
+
this.rav_1 = clientCommonStoreContract;
|
|
12005
|
+
this.sav_1 = gameMechanicStoreContract;
|
|
12006
|
+
this.tav_1 = botGameStoreContract;
|
|
12007
|
+
this.uav_1 = fileLoggerStoreContract;
|
|
11998
12008
|
var tmp_3 = this;
|
|
11999
12009
|
// Inline function 'org.kodein.di.instance' call
|
|
12000
12010
|
// Inline function 'org.kodein.type.generic' call
|
|
12001
12011
|
var tmp_4 = typeToken(createKType(getKClass(MessageFactory), arrayOf([]), false));
|
|
12002
12012
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
12003
|
-
tmp_3.
|
|
12013
|
+
tmp_3.vav_1 = Instance(di, tmp$ret$2, null).d62(this, messageFactory$factory_3());
|
|
12004
12014
|
var tmp_5 = this;
|
|
12005
12015
|
// Inline function 'org.kodein.di.instance' call
|
|
12006
12016
|
// Inline function 'org.kodein.type.generic' call
|
|
12007
12017
|
var tmp_6 = typeToken(createKType(getKClass(PointsInteractor), arrayOf([]), false));
|
|
12008
12018
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
12009
|
-
tmp_5.
|
|
12019
|
+
tmp_5.wav_1 = Instance(di, tmp$ret$4, null).d62(this, pointsInteractor$factory_1());
|
|
12010
12020
|
var tmp_7 = this;
|
|
12011
12021
|
// Inline function 'org.kodein.di.instance' call
|
|
12012
12022
|
// Inline function 'org.kodein.type.generic' call
|
|
12013
12023
|
var tmp_8 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
12014
12024
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
12015
|
-
tmp_7.
|
|
12025
|
+
tmp_7.xav_1 = Instance(di, tmp$ret$6, null).d62(this, teamsLogicProvider$factory_1());
|
|
12016
12026
|
var tmp_9 = this;
|
|
12017
12027
|
// Inline function 'org.kodein.di.instance' call
|
|
12018
12028
|
// Inline function 'org.kodein.type.generic' call
|
|
12019
12029
|
var tmp_10 = typeToken(createKType(getKClass(ClientStatisticsInteractor), arrayOf([]), false));
|
|
12020
12030
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
12021
|
-
tmp_9.
|
|
12031
|
+
tmp_9.yav_1 = Instance(di, tmp$ret$8, null).d62(this, clientStatisticsInteractor$factory());
|
|
12022
12032
|
var tmp_11 = this;
|
|
12023
12033
|
// Inline function 'org.kodein.di.instance' call
|
|
12024
12034
|
// Inline function 'org.kodein.type.generic' call
|
|
12025
12035
|
var tmp_12 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
12026
12036
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
12027
|
-
tmp_11.
|
|
12037
|
+
tmp_11.zav_1 = Instance(di, tmp$ret$10, null).d62(this, asyncProvider$factory_3());
|
|
12028
12038
|
var tmp_13 = this;
|
|
12029
12039
|
// Inline function 'org.kodein.di.instance' call
|
|
12030
12040
|
// Inline function 'org.kodein.type.generic' call
|
|
12031
12041
|
var tmp_14 = typeToken(createKType(getKClass(PersistentAppStateInteractor), arrayOf([]), false));
|
|
12032
12042
|
var tmp$ret$12 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
12033
|
-
tmp_13.
|
|
12043
|
+
tmp_13.aaw_1 = Instance(di, tmp$ret$12, null).d62(this, persistentAppStateInteractor$factory());
|
|
12034
12044
|
var tmp_15 = this;
|
|
12035
12045
|
// Inline function 'org.kodein.di.instance' call
|
|
12036
12046
|
// Inline function 'org.kodein.type.generic' call
|
|
12037
12047
|
var tmp_16 = typeToken(createKType(getKClass(GameClientConfig), arrayOf([]), false));
|
|
12038
12048
|
var tmp$ret$14 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
12039
|
-
tmp_15.
|
|
12049
|
+
tmp_15.baw_1 = Instance(di, tmp$ret$14, null).d62(this, gameClientConfig$factory_5());
|
|
12040
12050
|
var tmp_17 = this;
|
|
12041
12051
|
// Inline function 'org.kodein.di.instance' call
|
|
12042
12052
|
// Inline function 'org.kodein.type.generic' call
|
|
12043
12053
|
var tmp_18 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
12044
12054
|
var tmp$ret$16 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
12045
|
-
tmp_17.
|
|
12055
|
+
tmp_17.caw_1 = Instance(di, tmp$ret$16, null).d62(this, botConfig$factory_1());
|
|
12046
12056
|
var tmp_19 = this;
|
|
12047
12057
|
// Inline function 'org.kodein.di.instance' call
|
|
12048
12058
|
// Inline function 'org.kodein.type.generic' call
|
|
12049
12059
|
var tmp_20 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
12050
12060
|
var tmp$ret$18 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
12051
|
-
tmp_19.
|
|
12061
|
+
tmp_19.daw_1 = Instance(di, tmp$ret$18, null).d62(this, lastCardInteractor$factory_1());
|
|
12052
12062
|
var tmp_21 = this;
|
|
12053
12063
|
// Inline function 'org.kodein.di.instance' call
|
|
12054
12064
|
// Inline function 'org.kodein.type.generic' call
|
|
12055
12065
|
var tmp_22 = typeToken(createKType(getKClass(PlayerTurnTagProvider), arrayOf([]), false));
|
|
12056
12066
|
var tmp$ret$20 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
12057
|
-
tmp_21.
|
|
12067
|
+
tmp_21.eaw_1 = Instance(di, tmp$ret$20, null).d62(this, playerTurnTagProvider$factory_3());
|
|
12068
|
+
var tmp_23 = this;
|
|
12069
|
+
// Inline function 'org.kodein.di.instance' call
|
|
12070
|
+
// Inline function 'org.kodein.type.generic' call
|
|
12071
|
+
var tmp_24 = typeToken(createKType(getKClass(TransitionsReducer), arrayOf([]), false));
|
|
12072
|
+
var tmp$ret$22 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
12073
|
+
tmp_23.faw_1 = Instance(di, tmp$ret$22, null).d62(this, transitionsReducer$factory_1());
|
|
12058
12074
|
}
|
|
12059
12075
|
protoOf(SingleGameStoreContract).o8y = function () {
|
|
12060
|
-
return plus(plus(plus(this.
|
|
12076
|
+
return plus(plus(plus(plus(plus(this.qav_1.o8y(), _get_transitionsReducer__bsis4j_0(this).kav(this.pav_1)), this.sav_1.o8y()), this.rav_1.o8y()), this.tav_1.o8y()), this.uav_1.o8y());
|
|
12061
12077
|
};
|
|
12062
12078
|
protoOf(SingleGameStoreContract).p8y = function () {
|
|
12063
12079
|
var messagesMiddleware = new MessagesMiddleware(_get_messageFactory__6vg0vc_1(this), _get_pointsInteractor__5t71wv_0(this), _get_teamsLogicProvider__u10pm6_0(this));
|
|
12064
|
-
var tmp = plus(plus(plus(this.
|
|
12065
|
-
var tmp_0 = messagesMiddleware.
|
|
12080
|
+
var tmp = plus(plus(plus(plus(this.qav_1.p8y(), this.sav_1.p8y()), this.rav_1.p8y()), this.tav_1.p8y()), this.uav_1.p8y());
|
|
12081
|
+
var tmp_0 = messagesMiddleware.gaw();
|
|
12066
12082
|
var tmp_1 = announceCombinationMiddleware(_get_playerTurnTagProvider__7cizx8_1(this));
|
|
12067
12083
|
var tmp_2 = playerTurnTimeoutMiddleware(_get_asyncProvider__jbpyhw_1(this));
|
|
12068
12084
|
var tmp_3 = _get_botConfig__cpaxzc_0(this).isDelayForBot;
|
|
12069
12085
|
var tmp_4 = _get_botConfig__cpaxzc_0(this).simulateBotThinkingDelay ? Default_getInstance() : null;
|
|
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.
|
|
12086
|
+
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.pav_1, _get_clientStatisticsInteractor__s4ngf8(this)), exitAndSaveGameMiddleware(this.pav_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))]));
|
|
12071
12087
|
var tmp_6;
|
|
12072
12088
|
if (_get_botConfig__cpaxzc_0(this).autoStepLastCard) {
|
|
12073
12089
|
var tmp_7 = _get_lastCardInteractor__h6lq3w_0(this);
|
|
12074
|
-
tmp_6 = listOfNotNull([putPlayerLastCardMiddleware(tmp_7, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza_0(this)), !_get_gameClientConfig__xfscic_2(this).isAutoStepCurrentPlayer ? clientPutCurrentPlayerLastCardMiddleware(this.
|
|
12090
|
+
tmp_6 = listOfNotNull([putPlayerLastCardMiddleware(tmp_7, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza_0(this)), !_get_gameClientConfig__xfscic_2(this).isAutoStepCurrentPlayer ? clientPutCurrentPlayerLastCardMiddleware(this.pav_1, _get_lastCardInteractor__h6lq3w_0(this)) : null]);
|
|
12075
12091
|
} else {
|
|
12076
12092
|
tmp_6 = emptyList();
|
|
12077
12093
|
}
|
|
@@ -12127,6 +12143,11 @@
|
|
|
12127
12143
|
return _get_playerTurnTagProvider__7cizx8_1(receiver);
|
|
12128
12144
|
}, null);
|
|
12129
12145
|
}
|
|
12146
|
+
function transitionsReducer$factory_1() {
|
|
12147
|
+
return getPropertyCallableRef('transitionsReducer', 1, KProperty1, function (receiver) {
|
|
12148
|
+
return _get_transitionsReducer__bsis4j_0(receiver);
|
|
12149
|
+
}, null);
|
|
12150
|
+
}
|
|
12130
12151
|
function messageFactory$factory_4() {
|
|
12131
12152
|
return getPropertyCallableRef('messageFactory', 1, KProperty1, function (receiver) {
|
|
12132
12153
|
return _get_messageFactory__6vg0vc_1(receiver);
|
|
@@ -12177,6 +12198,11 @@
|
|
|
12177
12198
|
return _get_playerTurnTagProvider__7cizx8_1(receiver);
|
|
12178
12199
|
}, null);
|
|
12179
12200
|
}
|
|
12201
|
+
function transitionsReducer$factory_2() {
|
|
12202
|
+
return getPropertyCallableRef('transitionsReducer', 1, KProperty1, function (receiver) {
|
|
12203
|
+
return _get_transitionsReducer__bsis4j_0(receiver);
|
|
12204
|
+
}, null);
|
|
12205
|
+
}
|
|
12180
12206
|
function applyBuffer(bufferInteractor) {
|
|
12181
12207
|
return applyBuffer$lambda(bufferInteractor);
|
|
12182
12208
|
}
|
|
@@ -12270,8 +12296,8 @@
|
|
|
12270
12296
|
return new _no_name_provided__qut3iv_36(playerTurnTagProvider);
|
|
12271
12297
|
}
|
|
12272
12298
|
function _no_name_provided__qut3iv_35($combinationProvider, $playerTurnTagProvider) {
|
|
12273
|
-
this.
|
|
12274
|
-
this.
|
|
12299
|
+
this.haw_1 = $combinationProvider;
|
|
12300
|
+
this.iaw_1 = $playerTurnTagProvider;
|
|
12275
12301
|
}
|
|
12276
12302
|
protoOf(_no_name_provided__qut3iv_35).n6i = function (action) {
|
|
12277
12303
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -12284,7 +12310,7 @@
|
|
|
12284
12310
|
var player = get_currentPlayer(table);
|
|
12285
12311
|
var playerCombinations = player.q6u_1.g6w_1;
|
|
12286
12312
|
// Inline function 'kotlin.collections.map' call
|
|
12287
|
-
var this_0 = this.
|
|
12313
|
+
var this_0 = this.haw_1.r8k(playerCombinations);
|
|
12288
12314
|
// Inline function 'kotlin.collections.mapTo' call
|
|
12289
12315
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
12290
12316
|
var tmp0_iterator = this_0.j();
|
|
@@ -12396,7 +12422,7 @@
|
|
|
12396
12422
|
if (tmp_0) {
|
|
12397
12423
|
tmp = new CombinationToAnnounceAction(findFirstRoundCombinations, acceptedCombinations, declinedCombinations);
|
|
12398
12424
|
} else {
|
|
12399
|
-
var tmp0_safe_receiver = this.
|
|
12425
|
+
var tmp0_safe_receiver = this.haw_1.s8k(action_0.sat_1.g6f_1, playerCombinations, table.config.rules.oneTryToProtectBella);
|
|
12400
12426
|
var findBellaCombination = tmp0_safe_receiver == null ? null : mapFromDetailed(tmp0_safe_receiver);
|
|
12401
12427
|
var tmp_6;
|
|
12402
12428
|
var tmp_7;
|
|
@@ -12477,7 +12503,7 @@
|
|
|
12477
12503
|
var tmp5_card = action_0.sat_1.g6f_1;
|
|
12478
12504
|
var tmp1_cardNumber = table.cardsOnTable.m();
|
|
12479
12505
|
var tmp2_round = table.gameInfo.round;
|
|
12480
|
-
var tmp6_tag = this.
|
|
12506
|
+
var tmp6_tag = this.iaw_1.b8l(tmp2_round, VOID, tmp1_cardNumber);
|
|
12481
12507
|
tmp_6 = new CardFromClientAction(tmp3_playerId, false, tmp6_tag, tmp5_card, tmp4_combinations);
|
|
12482
12508
|
}
|
|
12483
12509
|
tmp = tmp_6;
|
|
@@ -12489,7 +12515,7 @@
|
|
|
12489
12515
|
return this.e6k(store, next, action);
|
|
12490
12516
|
};
|
|
12491
12517
|
function _no_name_provided__qut3iv_36($playerTurnTagProvider) {
|
|
12492
|
-
this.
|
|
12518
|
+
this.jaw_1 = $playerTurnTagProvider;
|
|
12493
12519
|
}
|
|
12494
12520
|
protoOf(_no_name_provided__qut3iv_36).n6i = function (action) {
|
|
12495
12521
|
return action instanceof AnnouncedCombinationAction;
|
|
@@ -12517,16 +12543,16 @@
|
|
|
12517
12543
|
}
|
|
12518
12544
|
var combinationsState = tmp$ret$1;
|
|
12519
12545
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
12520
|
-
var tmp0_elvis_lhs = combinationsState.
|
|
12546
|
+
var tmp0_elvis_lhs = combinationsState.law_1;
|
|
12521
12547
|
var acceptedCombinations = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
12522
12548
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
12523
|
-
var tmp0_elvis_lhs_0 = combinationsState.
|
|
12549
|
+
var tmp0_elvis_lhs_0 = combinationsState.maw_1;
|
|
12524
12550
|
var tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
12525
|
-
var declinedCombinations = plus(combinationsState.
|
|
12526
|
-
if (action_0.
|
|
12527
|
-
acceptedCombinations = plus(acceptedCombinations, combinationsState.
|
|
12551
|
+
var declinedCombinations = plus(combinationsState.kaw_1, tmp$ret$4);
|
|
12552
|
+
if (action_0.naw_1) {
|
|
12553
|
+
acceptedCombinations = plus(acceptedCombinations, combinationsState.kaw_1);
|
|
12528
12554
|
} else {
|
|
12529
|
-
declinedCombinations = plus(declinedCombinations, combinationsState.
|
|
12555
|
+
declinedCombinations = plus(declinedCombinations, combinationsState.kaw_1);
|
|
12530
12556
|
}
|
|
12531
12557
|
var card = clientState.u9q_1;
|
|
12532
12558
|
if (!(card == null)) {
|
|
@@ -12535,8 +12561,8 @@
|
|
|
12535
12561
|
var table = store.state.o6n();
|
|
12536
12562
|
var tmp = store.dispatch;
|
|
12537
12563
|
var tmp0_playerId = get_currentPlayer(table).playerId;
|
|
12538
|
-
var tmp1_isAccepted = action_0.
|
|
12539
|
-
var tmp2_tag = this.
|
|
12564
|
+
var tmp1_isAccepted = action_0.naw_1;
|
|
12565
|
+
var tmp2_tag = this.jaw_1.z8k(table.sceneInfo, table.gameInfo.round);
|
|
12540
12566
|
tmp(new CombinationChoiceFromClientAction(tmp0_playerId, false, tmp2_tag, tmp1_isAccepted));
|
|
12541
12567
|
}
|
|
12542
12568
|
};
|
|
@@ -12548,7 +12574,7 @@
|
|
|
12548
12574
|
return new _no_name_provided__qut3iv_37(gameClientConfig);
|
|
12549
12575
|
}
|
|
12550
12576
|
function _no_name_provided__qut3iv_37($gameClientConfig) {
|
|
12551
|
-
this.
|
|
12577
|
+
this.oaw_1 = $gameClientConfig;
|
|
12552
12578
|
}
|
|
12553
12579
|
protoOf(_no_name_provided__qut3iv_37).n6i = function (action) {
|
|
12554
12580
|
return action instanceof ExitFromClientAction;
|
|
@@ -12559,7 +12585,7 @@
|
|
|
12559
12585
|
var table = store.state.x6m_1;
|
|
12560
12586
|
var tmp = store.dispatch;
|
|
12561
12587
|
var tmp_0;
|
|
12562
|
-
if (this.
|
|
12588
|
+
if (this.oaw_1.sessionAnalytics) {
|
|
12563
12589
|
var tmp_1 = Companion_instance_0;
|
|
12564
12590
|
var tmp_2 = ProcessingReason_getInstance();
|
|
12565
12591
|
var tmp1_elvis_lhs = table == null ? null : table.isGameFinished;
|
|
@@ -12583,7 +12609,7 @@
|
|
|
12583
12609
|
return new _no_name_provided__qut3iv_38(bufferInteractor);
|
|
12584
12610
|
}
|
|
12585
12611
|
function _no_name_provided__qut3iv_38($bufferInteractor) {
|
|
12586
|
-
this.
|
|
12612
|
+
this.paw_1 = $bufferInteractor;
|
|
12587
12613
|
}
|
|
12588
12614
|
protoOf(_no_name_provided__qut3iv_38).n6i = function (action) {
|
|
12589
12615
|
return isInterface(action, ReleaseBufferTriggerAction);
|
|
@@ -12593,14 +12619,14 @@
|
|
|
12593
12619
|
var action_0 = isInterface(action, ReleaseBufferTriggerAction) ? action : THROW_CCE();
|
|
12594
12620
|
next(action_0);
|
|
12595
12621
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
12596
|
-
this.
|
|
12622
|
+
this.paw_1.t9p();
|
|
12597
12623
|
var state = store.state;
|
|
12598
12624
|
var bufferedActions = get_clientPayload_0(state).m9q_1;
|
|
12599
12625
|
var tmp;
|
|
12600
12626
|
var tmp_0;
|
|
12601
12627
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
12602
12628
|
if (!bufferedActions.p()) {
|
|
12603
|
-
tmp_0 = this.
|
|
12629
|
+
tmp_0 = this.paw_1.v9p(state, action_0);
|
|
12604
12630
|
} else {
|
|
12605
12631
|
tmp_0 = false;
|
|
12606
12632
|
}
|
|
@@ -12639,9 +12665,9 @@
|
|
|
12639
12665
|
return new _no_name_provided__qut3iv_39(currentPlayerId, dealerInteractor, tagProvider);
|
|
12640
12666
|
}
|
|
12641
12667
|
function _no_name_provided__qut3iv_39($currentPlayerId, $dealerInteractor, $tagProvider) {
|
|
12642
|
-
this.
|
|
12643
|
-
this.
|
|
12644
|
-
this.
|
|
12668
|
+
this.qaw_1 = $currentPlayerId;
|
|
12669
|
+
this.raw_1 = $dealerInteractor;
|
|
12670
|
+
this.saw_1 = $tagProvider;
|
|
12645
12671
|
}
|
|
12646
12672
|
protoOf(_no_name_provided__qut3iv_39).n6i = function (action) {
|
|
12647
12673
|
return action instanceof MechanicAction;
|
|
@@ -12666,7 +12692,7 @@
|
|
|
12666
12692
|
var requestPayload = waitingActData.o79_1;
|
|
12667
12693
|
if (!(requestPayload == null)) {
|
|
12668
12694
|
if (requestPayload instanceof CardDeckRequest) {
|
|
12669
|
-
if (this.
|
|
12695
|
+
if (this.qaw_1 === waitingActData.l79()) {
|
|
12670
12696
|
var tmp = store.dispatch;
|
|
12671
12697
|
// Inline function 'kotlin.collections.map' call
|
|
12672
12698
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -12692,7 +12718,7 @@
|
|
|
12692
12718
|
while (tmp0_iterator.k()) {
|
|
12693
12719
|
var item = tmp0_iterator.l();
|
|
12694
12720
|
// Inline function 'games.jass.logic.client.redux.middlewares.dealer.clientHostDealerMiddleware.<anonymous>.<anonymous>' call
|
|
12695
|
-
var tmp$ret$4 = this.
|
|
12721
|
+
var tmp$ret$4 = this.raw_1.u8k();
|
|
12696
12722
|
destination.e(tmp$ret$4);
|
|
12697
12723
|
}
|
|
12698
12724
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -12704,8 +12730,8 @@
|
|
|
12704
12730
|
var tmp$ret$7 = Companion_instance_1.y7m(item_0);
|
|
12705
12731
|
destination_0.e(tmp$ret$7);
|
|
12706
12732
|
}
|
|
12707
|
-
var tmp3_tag = this.
|
|
12708
|
-
tmp(new RequestedCardDecksFromClientAction(destination_0, this.
|
|
12733
|
+
var tmp3_tag = this.saw_1.w8k(action_0.m8q_1, store.state.o6n().gameInfo.round);
|
|
12734
|
+
tmp(new RequestedCardDecksFromClientAction(destination_0, this.qaw_1, false, tmp3_tag));
|
|
12709
12735
|
}
|
|
12710
12736
|
} else {
|
|
12711
12737
|
noWhenBranchMatchedException();
|
|
@@ -12728,13 +12754,13 @@
|
|
|
12728
12754
|
return new _no_name_provided__qut3iv_41();
|
|
12729
12755
|
}
|
|
12730
12756
|
function ExpectantTimerTag(id) {
|
|
12731
|
-
this.
|
|
12757
|
+
this.taw_1 = id;
|
|
12732
12758
|
}
|
|
12733
12759
|
protoOf(ExpectantTimerTag).toString = function () {
|
|
12734
|
-
return 'ExpectantTimerTag(id=' + this.
|
|
12760
|
+
return 'ExpectantTimerTag(id=' + this.taw_1 + ')';
|
|
12735
12761
|
};
|
|
12736
12762
|
protoOf(ExpectantTimerTag).hashCode = function () {
|
|
12737
|
-
return getStringHashCode(this.
|
|
12763
|
+
return getStringHashCode(this.taw_1);
|
|
12738
12764
|
};
|
|
12739
12765
|
protoOf(ExpectantTimerTag).equals = function (other) {
|
|
12740
12766
|
if (this === other)
|
|
@@ -12742,7 +12768,7 @@
|
|
|
12742
12768
|
if (!(other instanceof ExpectantTimerTag))
|
|
12743
12769
|
return false;
|
|
12744
12770
|
var tmp0_other_with_cast = other instanceof ExpectantTimerTag ? other : THROW_CCE();
|
|
12745
|
-
if (!(this.
|
|
12771
|
+
if (!(this.taw_1 === tmp0_other_with_cast.taw_1))
|
|
12746
12772
|
return false;
|
|
12747
12773
|
return true;
|
|
12748
12774
|
};
|
|
@@ -12798,7 +12824,7 @@
|
|
|
12798
12824
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
12799
12825
|
var timerTag = action_0.j6i_1;
|
|
12800
12826
|
if (timerTag instanceof ExpectantTimerTag) {
|
|
12801
|
-
store.dispatch(new ExpectantTimerFinishedClientAction(timerTag.
|
|
12827
|
+
store.dispatch(new ExpectantTimerFinishedClientAction(timerTag.taw_1));
|
|
12802
12828
|
}
|
|
12803
12829
|
next(action_0);
|
|
12804
12830
|
};
|
|
@@ -12821,8 +12847,8 @@
|
|
|
12821
12847
|
return null;
|
|
12822
12848
|
}
|
|
12823
12849
|
function _no_name_provided__qut3iv_42($currentPlayerId, $lastCardInteractor) {
|
|
12824
|
-
this.
|
|
12825
|
-
this.
|
|
12850
|
+
this.uaw_1 = $currentPlayerId;
|
|
12851
|
+
this.vaw_1 = $lastCardInteractor;
|
|
12826
12852
|
}
|
|
12827
12853
|
protoOf(_no_name_provided__qut3iv_42).n6i = function (action) {
|
|
12828
12854
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -12832,7 +12858,7 @@
|
|
|
12832
12858
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
12833
12859
|
next(action_0);
|
|
12834
12860
|
var table = store.state.o6n();
|
|
12835
|
-
var newAction = getCardActionIfNeeded(action_0, this.
|
|
12861
|
+
var newAction = getCardActionIfNeeded(action_0, this.uaw_1, table, this.vaw_1);
|
|
12836
12862
|
if (newAction == null)
|
|
12837
12863
|
null;
|
|
12838
12864
|
else {
|
|
@@ -12849,7 +12875,7 @@
|
|
|
12849
12875
|
// Inline function 'kotlin.contracts.contract' call
|
|
12850
12876
|
var $this$with = store.state.o6n();
|
|
12851
12877
|
var player = getPlayer($this$with.players, playerId);
|
|
12852
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
12878
|
+
store.dispatch(new MessageMechanicAction($this.lav_1.t8j(player.o6u_1.i6z(), selectedSuit, player.l6u_1)));
|
|
12853
12879
|
}
|
|
12854
12880
|
function onCardMessages($this, store, playerId, combinations) {
|
|
12855
12881
|
// Inline function 'kotlin.with' call
|
|
@@ -12874,7 +12900,7 @@
|
|
|
12874
12900
|
var tmp$ret$0 = item.t79_1;
|
|
12875
12901
|
destination.e(tmp$ret$0);
|
|
12876
12902
|
}
|
|
12877
|
-
tmp_0(new MessageMechanicAction($this.
|
|
12903
|
+
tmp_0(new MessageMechanicAction($this.lav_1.r8j(destination, player.l6u_1)));
|
|
12878
12904
|
tmp = Unit_instance;
|
|
12879
12905
|
}
|
|
12880
12906
|
}
|
|
@@ -12905,14 +12931,14 @@
|
|
|
12905
12931
|
var tmp$ret$1 = item.t79_1;
|
|
12906
12932
|
destination.e(tmp$ret$1);
|
|
12907
12933
|
}
|
|
12908
|
-
tmp(new MessageMechanicAction($this.
|
|
12934
|
+
tmp(new MessageMechanicAction($this.lav_1.r8j(destination, player.l6u_1)));
|
|
12909
12935
|
}
|
|
12910
12936
|
}
|
|
12911
12937
|
function onWinnerCombinationMessages($this, store, winnerCombinations) {
|
|
12912
12938
|
// Inline function 'kotlin.with' call
|
|
12913
12939
|
// Inline function 'kotlin.contracts.contract' call
|
|
12914
12940
|
var $this$with = store.state.o6n();
|
|
12915
|
-
var message = $this.
|
|
12941
|
+
var message = $this.lav_1.s8j(winnerCombinations, $this$with.players);
|
|
12916
12942
|
store.dispatch(new MessageMechanicAction(message));
|
|
12917
12943
|
}
|
|
12918
12944
|
function onSceneMessages($this, store, action) {
|
|
@@ -12925,7 +12951,7 @@
|
|
|
12925
12951
|
var tmp$ret$0;
|
|
12926
12952
|
$l$block_0: {
|
|
12927
12953
|
// Inline function 'kotlin.collections.any' call
|
|
12928
|
-
var this_0 = $this.
|
|
12954
|
+
var this_0 = $this.nav_1.g8j(table.players);
|
|
12929
12955
|
var tmp_0;
|
|
12930
12956
|
if (isInterface(this_0, Collection)) {
|
|
12931
12957
|
tmp_0 = this_0.p();
|
|
@@ -12987,7 +13013,7 @@
|
|
|
12987
13013
|
}
|
|
12988
13014
|
var hasWinners = tmp;
|
|
12989
13015
|
if (hasWinners) {
|
|
12990
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
13016
|
+
store.dispatch(new MessageMechanicAction($this.lav_1.w8j('ONE_MORE_ROUND_NEEDED_ID')));
|
|
12991
13017
|
}
|
|
12992
13018
|
var tmp$ret$6;
|
|
12993
13019
|
$l$block_3: {
|
|
@@ -13000,10 +13026,10 @@
|
|
|
13000
13026
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).qa() + ', current scene is ' + toString_0(this_2));
|
|
13001
13027
|
}
|
|
13002
13028
|
var scene = tmp$ret$6;
|
|
13003
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
13029
|
+
store.dispatch(new MessageMechanicAction($this.lav_1.q8j(getPlayer(table.players, scene.c7b_1).l6u_1, scene.a7b_1)));
|
|
13004
13030
|
var randomData = scene.z7a_1;
|
|
13005
13031
|
if (!(randomData == null)) {
|
|
13006
|
-
store.dispatch(new MessageMechanicAction($this.
|
|
13032
|
+
store.dispatch(new MessageMechanicAction($this.lav_1.a8k(randomData)));
|
|
13007
13033
|
}
|
|
13008
13034
|
} else if (tmp0_subject === 'CALC_POINTS') {
|
|
13009
13035
|
var tmp$ret$7;
|
|
@@ -13021,7 +13047,7 @@
|
|
|
13021
13047
|
var whoChoseSuitPlayerId = getWhoChoseSuit(table_0.players).playerId;
|
|
13022
13048
|
var tmp_3 = store.dispatch;
|
|
13023
13049
|
// Inline function 'kotlin.collections.map' call
|
|
13024
|
-
var this_4 = $this.
|
|
13050
|
+
var this_4 = $this.mav_1.m8p(scene_0.s7a_1);
|
|
13025
13051
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13026
13052
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
13027
13053
|
var tmp0_iterator_2 = this_4.j();
|
|
@@ -13043,7 +13069,7 @@
|
|
|
13043
13069
|
var tmp$ret$11 = new PointItemViewModel(destination_0, tmp0_points);
|
|
13044
13070
|
destination.e(tmp$ret$11);
|
|
13045
13071
|
}
|
|
13046
|
-
tmp_3(new MessageMechanicAction($this.
|
|
13072
|
+
tmp_3(new MessageMechanicAction($this.lav_1.u8j(table_0.gameInfo.round, destination, scene_0.w7a(whoChoseSuitPlayerId), scene_0.v7a(whoChoseSuitPlayerId), scene_0.p7a_1)));
|
|
13047
13073
|
}
|
|
13048
13074
|
}
|
|
13049
13075
|
function onExpectantCreatedMessages($this, store, action, excludePlayersIds) {
|
|
@@ -13058,12 +13084,12 @@
|
|
|
13058
13084
|
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.r8x_1);
|
|
13059
13085
|
} else {
|
|
13060
13086
|
if (expectantAction instanceof RestartGameMechanicAction) {
|
|
13061
|
-
var message = $this.
|
|
13087
|
+
var message = $this.lav_1.w8j('GAME_RESTART_EVENT_ID');
|
|
13062
13088
|
store.dispatch(new MessageMechanicAction(message));
|
|
13063
13089
|
store.dispatch(new InfoMessageAction(message));
|
|
13064
13090
|
} else {
|
|
13065
13091
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
13066
|
-
var message_0 = $this.
|
|
13092
|
+
var message_0 = $this.lav_1.s8j(expectantAction.v8x_1, $this$with.players);
|
|
13067
13093
|
store.dispatch(new InfoMessageAction(message_0));
|
|
13068
13094
|
}
|
|
13069
13095
|
}
|
|
@@ -13175,14 +13201,14 @@
|
|
|
13175
13201
|
};
|
|
13176
13202
|
}
|
|
13177
13203
|
function MessagesMiddleware(factory, pointsInteractor, teamsLogicProvider) {
|
|
13178
|
-
this.
|
|
13179
|
-
this.
|
|
13180
|
-
this.
|
|
13204
|
+
this.lav_1 = factory;
|
|
13205
|
+
this.mav_1 = pointsInteractor;
|
|
13206
|
+
this.nav_1 = teamsLogicProvider;
|
|
13181
13207
|
}
|
|
13182
|
-
protoOf(MessagesMiddleware).
|
|
13208
|
+
protoOf(MessagesMiddleware).gaw = function () {
|
|
13183
13209
|
return middleware(MessagesMiddleware$middlewareEngine$lambda(this));
|
|
13184
13210
|
};
|
|
13185
|
-
protoOf(MessagesMiddleware).
|
|
13211
|
+
protoOf(MessagesMiddleware).oav = function (currentPlayerId) {
|
|
13186
13212
|
return middleware(MessagesMiddleware$middlewareClient$lambda(this, currentPlayerId));
|
|
13187
13213
|
};
|
|
13188
13214
|
function startResetTimerForInfoMessageMiddleware() {
|
|
@@ -13194,13 +13220,13 @@
|
|
|
13194
13220
|
return new _no_name_provided__qut3iv_44();
|
|
13195
13221
|
}
|
|
13196
13222
|
function ResetMessageTimerTag(message) {
|
|
13197
|
-
this.
|
|
13223
|
+
this.waw_1 = message;
|
|
13198
13224
|
}
|
|
13199
13225
|
protoOf(ResetMessageTimerTag).toString = function () {
|
|
13200
|
-
return 'ResetMessageTimerTag(message=' + toString(this.
|
|
13226
|
+
return 'ResetMessageTimerTag(message=' + toString(this.waw_1) + ')';
|
|
13201
13227
|
};
|
|
13202
13228
|
protoOf(ResetMessageTimerTag).hashCode = function () {
|
|
13203
|
-
return hashCode(this.
|
|
13229
|
+
return hashCode(this.waw_1);
|
|
13204
13230
|
};
|
|
13205
13231
|
protoOf(ResetMessageTimerTag).equals = function (other) {
|
|
13206
13232
|
if (this === other)
|
|
@@ -13208,7 +13234,7 @@
|
|
|
13208
13234
|
if (!(other instanceof ResetMessageTimerTag))
|
|
13209
13235
|
return false;
|
|
13210
13236
|
var tmp0_other_with_cast = other instanceof ResetMessageTimerTag ? other : THROW_CCE();
|
|
13211
|
-
if (!equals(this.
|
|
13237
|
+
if (!equals(this.waw_1, tmp0_other_with_cast.waw_1))
|
|
13212
13238
|
return false;
|
|
13213
13239
|
return true;
|
|
13214
13240
|
};
|
|
@@ -13243,7 +13269,7 @@
|
|
|
13243
13269
|
var timerTag = action_0.j6i_1;
|
|
13244
13270
|
if (timerTag instanceof ResetMessageTimerTag) {
|
|
13245
13271
|
var clientPayload = get_clientPayload_0(store.state);
|
|
13246
|
-
if (equals(clientPayload.k9q_1, timerTag.
|
|
13272
|
+
if (equals(clientPayload.k9q_1, timerTag.waw_1)) {
|
|
13247
13273
|
store.dispatch(new InfoMessageAction(null));
|
|
13248
13274
|
}
|
|
13249
13275
|
}
|
|
@@ -13257,7 +13283,7 @@
|
|
|
13257
13283
|
return new _no_name_provided__qut3iv_45(gameMechanicLogicInteractor);
|
|
13258
13284
|
}
|
|
13259
13285
|
function _no_name_provided__qut3iv_45($gameMechanicLogicInteractor) {
|
|
13260
|
-
this.
|
|
13286
|
+
this.xaw_1 = $gameMechanicLogicInteractor;
|
|
13261
13287
|
}
|
|
13262
13288
|
protoOf(_no_name_provided__qut3iv_45).n6i = function (action) {
|
|
13263
13289
|
return action instanceof FromClientAction;
|
|
@@ -13276,23 +13302,23 @@
|
|
|
13276
13302
|
next(action_0);
|
|
13277
13303
|
var tmp;
|
|
13278
13304
|
if (action_0 instanceof MessageFromClientAction) {
|
|
13279
|
-
tmp = this.
|
|
13305
|
+
tmp = this.xaw_1.p8o(action_0, table.players);
|
|
13280
13306
|
} else {
|
|
13281
13307
|
if (action_0 instanceof PartnerSelectedFromClientAction) {
|
|
13282
|
-
tmp = this.
|
|
13308
|
+
tmp = this.xaw_1.q8o(action_0, table.players);
|
|
13283
13309
|
} else {
|
|
13284
13310
|
if (action_0 instanceof PlayerReadyFromClientAction) {
|
|
13285
|
-
tmp = this.
|
|
13311
|
+
tmp = this.xaw_1.r8o(action_0);
|
|
13286
13312
|
} else {
|
|
13287
13313
|
if (action_0 instanceof SuitChoiceFromClientAction) {
|
|
13288
|
-
tmp = this.
|
|
13314
|
+
tmp = this.xaw_1.s8o(action_0, table.players, table.config);
|
|
13289
13315
|
} else {
|
|
13290
13316
|
if (action_0 instanceof CombinationChoiceFromClientAction) {
|
|
13291
|
-
tmp = this.
|
|
13317
|
+
tmp = this.xaw_1.t8o(action_0, table);
|
|
13292
13318
|
} else {
|
|
13293
13319
|
if (action_0 instanceof CardFromClientAction) {
|
|
13294
13320
|
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action_0.h7m_1, table.cardsOnTable.m(), action_0.k7m_1));
|
|
13295
|
-
var cardMechanicAction = this.
|
|
13321
|
+
var cardMechanicAction = this.xaw_1.u8o(action_0, newCardsOnTheTable, table.players, table.config);
|
|
13296
13322
|
tmp = cardMechanicAction;
|
|
13297
13323
|
} else {
|
|
13298
13324
|
tmp = null;
|
|
@@ -13333,7 +13359,7 @@
|
|
|
13333
13359
|
case 'TRADE':
|
|
13334
13360
|
case 'EARN_POINTS':
|
|
13335
13361
|
case 'CALC_POINTS':
|
|
13336
|
-
var tmp$ret$0 = state.f8u(VOID, clientPayload.
|
|
13362
|
+
var tmp$ret$0 = state.f8u(VOID, clientPayload.yaw(VOID, VOID, VOID, VOID, VOID, VOID, false));
|
|
13337
13363
|
break;
|
|
13338
13364
|
default:
|
|
13339
13365
|
tmp$ret$0 = state;
|
|
@@ -13349,9 +13375,9 @@
|
|
|
13349
13375
|
return new _no_name_provided__qut3iv_47(currentPlayerId, asyncProvider, persistentAppStateInteractor);
|
|
13350
13376
|
}
|
|
13351
13377
|
function exitAndSaveGameMiddleware$o$handle$slambda($store, $action, $persistentAppStateInteractor, resultContinuation) {
|
|
13352
|
-
this.
|
|
13353
|
-
this.
|
|
13354
|
-
this.
|
|
13378
|
+
this.hax_1 = $store;
|
|
13379
|
+
this.iax_1 = $action;
|
|
13380
|
+
this.jax_1 = $persistentAppStateInteractor;
|
|
13355
13381
|
CoroutineImpl.call(this, resultContinuation);
|
|
13356
13382
|
}
|
|
13357
13383
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13371,16 +13397,16 @@
|
|
|
13371
13397
|
switch (tmp) {
|
|
13372
13398
|
case 0:
|
|
13373
13399
|
this.k9_1 = 2;
|
|
13374
|
-
this.
|
|
13375
|
-
if (!this.
|
|
13400
|
+
this.lax_1 = this.hax_1.state;
|
|
13401
|
+
if (!this.lax_1.p6n() || this.lax_1.o6n().isGameFinished) {
|
|
13376
13402
|
var tmp_0 = this;
|
|
13377
|
-
this.
|
|
13378
|
-
tmp_0.
|
|
13403
|
+
this.hax_1.dispatch(new FinishGameMechanicAction(new PlayerExitReason(this.iax_1.n8u_1), this.lax_1.o6n().isGameFinished));
|
|
13404
|
+
tmp_0.max_1 = Unit_instance;
|
|
13379
13405
|
this.j9_1 = 3;
|
|
13380
13406
|
continue $sm;
|
|
13381
13407
|
} else {
|
|
13382
13408
|
this.j9_1 = 1;
|
|
13383
|
-
suspendResult = this.
|
|
13409
|
+
suspendResult = this.jax_1.i9r(this.lax_1.o6n(), get_clientPayload_0(this.lax_1), true, this);
|
|
13384
13410
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13385
13411
|
return suspendResult;
|
|
13386
13412
|
}
|
|
@@ -13388,7 +13414,7 @@
|
|
|
13388
13414
|
}
|
|
13389
13415
|
|
|
13390
13416
|
case 1:
|
|
13391
|
-
this.
|
|
13417
|
+
this.max_1 = suspendResult;
|
|
13392
13418
|
this.j9_1 = 3;
|
|
13393
13419
|
continue $sm;
|
|
13394
13420
|
case 2:
|
|
@@ -13408,8 +13434,8 @@
|
|
|
13408
13434
|
while (true);
|
|
13409
13435
|
};
|
|
13410
13436
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13411
|
-
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.
|
|
13412
|
-
i.
|
|
13437
|
+
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.hax_1, this.iax_1, this.jax_1, completion);
|
|
13438
|
+
i.kax_1 = $this$launchDefault;
|
|
13413
13439
|
return i;
|
|
13414
13440
|
};
|
|
13415
13441
|
function exitAndSaveGameMiddleware$o$handle$slambda_0($store, $action, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -13421,9 +13447,9 @@
|
|
|
13421
13447
|
return l;
|
|
13422
13448
|
}
|
|
13423
13449
|
function _no_name_provided__qut3iv_47($currentPlayerId, $asyncProvider, $persistentAppStateInteractor) {
|
|
13424
|
-
this.
|
|
13425
|
-
this.
|
|
13426
|
-
this.
|
|
13450
|
+
this.nax_1 = $currentPlayerId;
|
|
13451
|
+
this.oax_1 = $asyncProvider;
|
|
13452
|
+
this.pax_1 = $persistentAppStateInteractor;
|
|
13427
13453
|
}
|
|
13428
13454
|
protoOf(_no_name_provided__qut3iv_47).n6i = function (action) {
|
|
13429
13455
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -13432,12 +13458,12 @@
|
|
|
13432
13458
|
$l$block: {
|
|
13433
13459
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.exitAndSaveGameMiddleware.<anonymous>' call
|
|
13434
13460
|
var action_0 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
13435
|
-
if (!(this.
|
|
13461
|
+
if (!(this.nax_1 === action_0.n8u_1)) {
|
|
13436
13462
|
next(action_0);
|
|
13437
13463
|
break $l$block;
|
|
13438
13464
|
}
|
|
13439
13465
|
next(action_0);
|
|
13440
|
-
this.
|
|
13466
|
+
this.oax_1.j6f(VOID, exitAndSaveGameMiddleware$o$handle$slambda_0(store, action_0, this.pax_1, null));
|
|
13441
13467
|
}
|
|
13442
13468
|
};
|
|
13443
13469
|
protoOf(_no_name_provided__qut3iv_47).m6i = function (store, next, action) {
|
|
@@ -13448,9 +13474,9 @@
|
|
|
13448
13474
|
return new _no_name_provided__qut3iv_48(asyncProvider, interactor);
|
|
13449
13475
|
}
|
|
13450
13476
|
function gameHistoryMiddleware$o$handle$slambda($action, $store, $interactor, resultContinuation) {
|
|
13451
|
-
this.
|
|
13452
|
-
this.
|
|
13453
|
-
this.
|
|
13477
|
+
this.yax_1 = $action;
|
|
13478
|
+
this.zax_1 = $store;
|
|
13479
|
+
this.aay_1 = $interactor;
|
|
13454
13480
|
CoroutineImpl.call(this, resultContinuation);
|
|
13455
13481
|
}
|
|
13456
13482
|
protoOf(gameHistoryMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13470,22 +13496,22 @@
|
|
|
13470
13496
|
switch (tmp) {
|
|
13471
13497
|
case 0:
|
|
13472
13498
|
this.k9_1 = 4;
|
|
13473
|
-
this.
|
|
13474
|
-
var tmp_0 = this.
|
|
13499
|
+
this.cay_1 = this.yax_1;
|
|
13500
|
+
var tmp_0 = this.cay_1;
|
|
13475
13501
|
if (tmp_0 instanceof RoundStartedAction) {
|
|
13476
|
-
this.
|
|
13502
|
+
this.day_1 = this.zax_1.state.o6n();
|
|
13477
13503
|
this.j9_1 = 2;
|
|
13478
|
-
suspendResult = this.
|
|
13504
|
+
suspendResult = this.aay_1.f9r(this.yax_1.gameHistory, this.day_1.config, this.day_1.users, get_clientPayload_0(this.zax_1.state).i9q_1.e9o_1, this);
|
|
13479
13505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13480
13506
|
return suspendResult;
|
|
13481
13507
|
}
|
|
13482
13508
|
continue $sm;
|
|
13483
13509
|
} else {
|
|
13484
|
-
var tmp_1 = this.
|
|
13510
|
+
var tmp_1 = this.cay_1;
|
|
13485
13511
|
if (tmp_1 instanceof RoundEndedAction) {
|
|
13486
|
-
this.
|
|
13512
|
+
this.eay_1 = this.zax_1.state.o6n();
|
|
13487
13513
|
this.j9_1 = 1;
|
|
13488
|
-
suspendResult = this.
|
|
13514
|
+
suspendResult = this.aay_1.e9r(this.yax_1.gameHistory, this.eay_1.config, this.eay_1.users, get_clientPayload_0(this.zax_1.state).i9q_1.e9o_1, this);
|
|
13489
13515
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13490
13516
|
return suspendResult;
|
|
13491
13517
|
}
|
|
@@ -13519,8 +13545,8 @@
|
|
|
13519
13545
|
while (true);
|
|
13520
13546
|
};
|
|
13521
13547
|
protoOf(gameHistoryMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13522
|
-
var i = new gameHistoryMiddleware$o$handle$slambda(this.
|
|
13523
|
-
i.
|
|
13548
|
+
var i = new gameHistoryMiddleware$o$handle$slambda(this.yax_1, this.zax_1, this.aay_1, completion);
|
|
13549
|
+
i.bay_1 = $this$launchDefault;
|
|
13524
13550
|
return i;
|
|
13525
13551
|
};
|
|
13526
13552
|
function gameHistoryMiddleware$o$handle$slambda_0($action, $store, $interactor, resultContinuation) {
|
|
@@ -13532,8 +13558,8 @@
|
|
|
13532
13558
|
return l;
|
|
13533
13559
|
}
|
|
13534
13560
|
function _no_name_provided__qut3iv_48($asyncProvider, $interactor) {
|
|
13535
|
-
this.
|
|
13536
|
-
this.
|
|
13561
|
+
this.fay_1 = $asyncProvider;
|
|
13562
|
+
this.gay_1 = $interactor;
|
|
13537
13563
|
}
|
|
13538
13564
|
protoOf(_no_name_provided__qut3iv_48).n6i = function (action) {
|
|
13539
13565
|
return action instanceof GameAction;
|
|
@@ -13542,7 +13568,7 @@
|
|
|
13542
13568
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.gameHistoryMiddleware.<anonymous>' call
|
|
13543
13569
|
var action_0 = action instanceof GameAction ? action : THROW_CCE();
|
|
13544
13570
|
next(action_0);
|
|
13545
|
-
this.
|
|
13571
|
+
this.fay_1.j6f(VOID, gameHistoryMiddleware$o$handle$slambda_0(action_0, store, this.gay_1, null));
|
|
13546
13572
|
};
|
|
13547
13573
|
protoOf(_no_name_provided__qut3iv_48).m6i = function (store, next, action) {
|
|
13548
13574
|
return this.e6k(store, next, action);
|
|
@@ -13553,9 +13579,9 @@
|
|
|
13553
13579
|
return new _no_name_provided__qut3iv_49(isEnableBotForPlayer, isDelayForBot, random);
|
|
13554
13580
|
}
|
|
13555
13581
|
function _no_name_provided__qut3iv_49($isEnableBotForPlayer, $isDelayForBot, $random) {
|
|
13556
|
-
this.
|
|
13557
|
-
this.
|
|
13558
|
-
this.
|
|
13582
|
+
this.hay_1 = $isEnableBotForPlayer;
|
|
13583
|
+
this.iay_1 = $isDelayForBot;
|
|
13584
|
+
this.jay_1 = $random;
|
|
13559
13585
|
}
|
|
13560
13586
|
protoOf(_no_name_provided__qut3iv_49).n6i = function (action) {
|
|
13561
13587
|
return action instanceof ContinueGameMechanicAction;
|
|
@@ -13574,7 +13600,7 @@
|
|
|
13574
13600
|
while (tmp0_iterator.k()) {
|
|
13575
13601
|
var element = tmp0_iterator.l();
|
|
13576
13602
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>.<anonymous>' call
|
|
13577
|
-
if (this.
|
|
13603
|
+
if (this.hay_1(element.playerId)) {
|
|
13578
13604
|
destination.e(element);
|
|
13579
13605
|
}
|
|
13580
13606
|
}
|
|
@@ -13582,7 +13608,7 @@
|
|
|
13582
13608
|
while (tmp0_iterator_0.k()) {
|
|
13583
13609
|
var element_0 = tmp0_iterator_0.l();
|
|
13584
13610
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>.<anonymous>' call
|
|
13585
|
-
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.m6u_1.b6c()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.
|
|
13611
|
+
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.m6u_1.b6c()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.iay_1, this.jay_1), VOID, TimerType_DELAY_getInstance()));
|
|
13586
13612
|
}
|
|
13587
13613
|
};
|
|
13588
13614
|
protoOf(_no_name_provided__qut3iv_49).m6i = function (store, next, action) {
|
|
@@ -13593,9 +13619,9 @@
|
|
|
13593
13619
|
return new _no_name_provided__qut3iv_50(asyncProvider, persistentAppStateInteractor);
|
|
13594
13620
|
}
|
|
13595
13621
|
function removeSavedGameMiddleware$o$handle$slambda($action, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
13596
|
-
this.
|
|
13597
|
-
this.
|
|
13598
|
-
this.
|
|
13622
|
+
this.say_1 = $action;
|
|
13623
|
+
this.tay_1 = $persistentAppStateInteractor;
|
|
13624
|
+
this.uay_1 = $id;
|
|
13599
13625
|
CoroutineImpl.call(this, resultContinuation);
|
|
13600
13626
|
}
|
|
13601
13627
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13615,10 +13641,10 @@
|
|
|
13615
13641
|
switch (tmp) {
|
|
13616
13642
|
case 0:
|
|
13617
13643
|
this.k9_1 = 3;
|
|
13618
|
-
this.
|
|
13619
|
-
if (!(this.
|
|
13644
|
+
this.way_1 = this.say_1.gameWinners;
|
|
13645
|
+
if (!(this.way_1 == null)) {
|
|
13620
13646
|
this.j9_1 = 1;
|
|
13621
|
-
suspendResult = this.
|
|
13647
|
+
suspendResult = this.tay_1.j9r(this.uay_1, this);
|
|
13622
13648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13623
13649
|
return suspendResult;
|
|
13624
13650
|
}
|
|
@@ -13648,8 +13674,8 @@
|
|
|
13648
13674
|
while (true);
|
|
13649
13675
|
};
|
|
13650
13676
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13651
|
-
var i = new removeSavedGameMiddleware$o$handle$slambda(this.
|
|
13652
|
-
i.
|
|
13677
|
+
var i = new removeSavedGameMiddleware$o$handle$slambda(this.say_1, this.tay_1, this.uay_1, completion);
|
|
13678
|
+
i.vay_1 = $this$launchDefault;
|
|
13653
13679
|
return i;
|
|
13654
13680
|
};
|
|
13655
13681
|
function removeSavedGameMiddleware$o$handle$slambda_0($action, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
@@ -13661,8 +13687,8 @@
|
|
|
13661
13687
|
return l;
|
|
13662
13688
|
}
|
|
13663
13689
|
function _no_name_provided__qut3iv_50($asyncProvider, $persistentAppStateInteractor) {
|
|
13664
|
-
this.
|
|
13665
|
-
this.
|
|
13690
|
+
this.xay_1 = $asyncProvider;
|
|
13691
|
+
this.yay_1 = $persistentAppStateInteractor;
|
|
13666
13692
|
}
|
|
13667
13693
|
protoOf(_no_name_provided__qut3iv_50).n6i = function (action) {
|
|
13668
13694
|
return action instanceof RoundEndedAction;
|
|
@@ -13672,7 +13698,7 @@
|
|
|
13672
13698
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
13673
13699
|
var id = store.state.o6n().id;
|
|
13674
13700
|
next(action_0);
|
|
13675
|
-
this.
|
|
13701
|
+
this.xay_1.j6f(VOID, removeSavedGameMiddleware$o$handle$slambda_0(action_0, this.yay_1, id, null));
|
|
13676
13702
|
};
|
|
13677
13703
|
protoOf(_no_name_provided__qut3iv_50).m6i = function (store, next, action) {
|
|
13678
13704
|
return this.e6k(store, next, action);
|
|
@@ -13682,8 +13708,8 @@
|
|
|
13682
13708
|
return new _no_name_provided__qut3iv_51(asyncProvider, persistentAppStateInteractor);
|
|
13683
13709
|
}
|
|
13684
13710
|
function removeSavedGameWhenErrorMiddleware$o$handle$slambda($store, $persistentAppStateInteractor, resultContinuation) {
|
|
13685
|
-
this.
|
|
13686
|
-
this.
|
|
13711
|
+
this.haz_1 = $store;
|
|
13712
|
+
this.iaz_1 = $persistentAppStateInteractor;
|
|
13687
13713
|
CoroutineImpl.call(this, resultContinuation);
|
|
13688
13714
|
}
|
|
13689
13715
|
protoOf(removeSavedGameWhenErrorMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13704,11 +13730,11 @@
|
|
|
13704
13730
|
case 0:
|
|
13705
13731
|
this.k9_1 = 2;
|
|
13706
13732
|
var tmp_0 = this;
|
|
13707
|
-
var tmp0_safe_receiver = this.
|
|
13733
|
+
var tmp0_safe_receiver = this.haz_1.state.x6m_1;
|
|
13708
13734
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.id;
|
|
13709
|
-
tmp_0.
|
|
13735
|
+
tmp_0.kaz_1 = tmp1_elvis_lhs == null ? 'temp_game_id' : tmp1_elvis_lhs;
|
|
13710
13736
|
this.j9_1 = 1;
|
|
13711
|
-
suspendResult = this.
|
|
13737
|
+
suspendResult = this.iaz_1.j9r(this.kaz_1, this);
|
|
13712
13738
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13713
13739
|
return suspendResult;
|
|
13714
13740
|
}
|
|
@@ -13731,8 +13757,8 @@
|
|
|
13731
13757
|
while (true);
|
|
13732
13758
|
};
|
|
13733
13759
|
protoOf(removeSavedGameWhenErrorMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13734
|
-
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.
|
|
13735
|
-
i.
|
|
13760
|
+
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.haz_1, this.iaz_1, completion);
|
|
13761
|
+
i.jaz_1 = $this$launchDefault;
|
|
13736
13762
|
return i;
|
|
13737
13763
|
};
|
|
13738
13764
|
function removeSavedGameWhenErrorMiddleware$o$handle$slambda_0($store, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -13744,8 +13770,8 @@
|
|
|
13744
13770
|
return l;
|
|
13745
13771
|
}
|
|
13746
13772
|
function _no_name_provided__qut3iv_51($asyncProvider, $persistentAppStateInteractor) {
|
|
13747
|
-
this.
|
|
13748
|
-
this.
|
|
13773
|
+
this.laz_1 = $asyncProvider;
|
|
13774
|
+
this.maz_1 = $persistentAppStateInteractor;
|
|
13749
13775
|
}
|
|
13750
13776
|
protoOf(_no_name_provided__qut3iv_51).n6i = function (action) {
|
|
13751
13777
|
return action instanceof ErrorAction;
|
|
@@ -13753,7 +13779,7 @@
|
|
|
13753
13779
|
protoOf(_no_name_provided__qut3iv_51).e6k = function (store, next, action) {
|
|
13754
13780
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.removeSavedGameWhenErrorMiddleware.<anonymous>' call
|
|
13755
13781
|
next(action instanceof ErrorAction ? action : THROW_CCE());
|
|
13756
|
-
this.
|
|
13782
|
+
this.laz_1.j6f(VOID, removeSavedGameWhenErrorMiddleware$o$handle$slambda_0(store, this.maz_1, null));
|
|
13757
13783
|
};
|
|
13758
13784
|
protoOf(_no_name_provided__qut3iv_51).m6i = function (store, next, action) {
|
|
13759
13785
|
return this.e6k(store, next, action);
|
|
@@ -13763,9 +13789,9 @@
|
|
|
13763
13789
|
return new _no_name_provided__qut3iv_52(asyncProvider, persistentAppStateInteractor);
|
|
13764
13790
|
}
|
|
13765
13791
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda($action, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
13766
|
-
this.
|
|
13767
|
-
this.
|
|
13768
|
-
this.
|
|
13792
|
+
this.vaz_1 = $action;
|
|
13793
|
+
this.waz_1 = $state;
|
|
13794
|
+
this.xaz_1 = $persistentAppStateInteractor;
|
|
13769
13795
|
CoroutineImpl.call(this, resultContinuation);
|
|
13770
13796
|
}
|
|
13771
13797
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13785,9 +13811,9 @@
|
|
|
13785
13811
|
switch (tmp) {
|
|
13786
13812
|
case 0:
|
|
13787
13813
|
this.k9_1 = 3;
|
|
13788
|
-
if (!this.
|
|
13814
|
+
if (!this.vaz_1.kat_1 && this.waz_1.p6n() && !this.waz_1.o6n().isGameFinished) {
|
|
13789
13815
|
this.j9_1 = 1;
|
|
13790
|
-
suspendResult = this.
|
|
13816
|
+
suspendResult = this.xaz_1.i9r(this.waz_1.o6n(), get_clientPayload_0(this.waz_1), false, this);
|
|
13791
13817
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13792
13818
|
return suspendResult;
|
|
13793
13819
|
}
|
|
@@ -13817,8 +13843,8 @@
|
|
|
13817
13843
|
while (true);
|
|
13818
13844
|
};
|
|
13819
13845
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13820
|
-
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.
|
|
13821
|
-
i.
|
|
13846
|
+
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.vaz_1, this.waz_1, this.xaz_1, completion);
|
|
13847
|
+
i.yaz_1 = $this$launchDefault;
|
|
13822
13848
|
return i;
|
|
13823
13849
|
};
|
|
13824
13850
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0($action, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -13830,8 +13856,8 @@
|
|
|
13830
13856
|
return l;
|
|
13831
13857
|
}
|
|
13832
13858
|
function _no_name_provided__qut3iv_52($asyncProvider, $persistentAppStateInteractor) {
|
|
13833
|
-
this.
|
|
13834
|
-
this.
|
|
13859
|
+
this.zaz_1 = $asyncProvider;
|
|
13860
|
+
this.ab0_1 = $persistentAppStateInteractor;
|
|
13835
13861
|
}
|
|
13836
13862
|
protoOf(_no_name_provided__qut3iv_52).n6i = function (action) {
|
|
13837
13863
|
return action instanceof ForegroundAction;
|
|
@@ -13841,7 +13867,7 @@
|
|
|
13841
13867
|
var action_0 = action instanceof ForegroundAction ? action : THROW_CCE();
|
|
13842
13868
|
var state = store.state;
|
|
13843
13869
|
next(action_0);
|
|
13844
|
-
this.
|
|
13870
|
+
this.zaz_1.j6f(VOID, saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0(action_0, state, this.ab0_1, null));
|
|
13845
13871
|
};
|
|
13846
13872
|
protoOf(_no_name_provided__qut3iv_52).m6i = function (store, next, action) {
|
|
13847
13873
|
return this.e6k(store, next, action);
|
|
@@ -13851,9 +13877,9 @@
|
|
|
13851
13877
|
return new _no_name_provided__qut3iv_53(asyncProvider, currentPlayerId, clientStatisticsInteractor);
|
|
13852
13878
|
}
|
|
13853
13879
|
function statisticsMiddleware$o$handle$slambda($action, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
13854
|
-
this.
|
|
13855
|
-
this.
|
|
13856
|
-
this.
|
|
13880
|
+
this.jb0_1 = $action;
|
|
13881
|
+
this.kb0_1 = $currentPlayerId;
|
|
13882
|
+
this.lb0_1 = $clientStatisticsInteractor;
|
|
13857
13883
|
CoroutineImpl.call(this, resultContinuation);
|
|
13858
13884
|
}
|
|
13859
13885
|
protoOf(statisticsMiddleware$o$handle$slambda).r1d = function ($this$launchDefault, $completion) {
|
|
@@ -13873,26 +13899,26 @@
|
|
|
13873
13899
|
switch (tmp) {
|
|
13874
13900
|
case 0:
|
|
13875
13901
|
this.k9_1 = 4;
|
|
13876
|
-
this.
|
|
13902
|
+
this.nb0_1 = this.jb0_1.earnedBiggestPointPlayerId === this.kb0_1;
|
|
13877
13903
|
var tmp_0 = this;
|
|
13878
|
-
var tmp0_safe_receiver = this.
|
|
13879
|
-
tmp_0.
|
|
13904
|
+
var tmp0_safe_receiver = this.jb0_1.gameHistory.lastRoundHistory.winners;
|
|
13905
|
+
tmp_0.ob0_1 = (tmp0_safe_receiver == null ? null : contains(tmp0_safe_receiver, this.kb0_1)) === true;
|
|
13880
13906
|
var tmp_1 = this;
|
|
13881
|
-
var tmp1_safe_receiver = this.
|
|
13882
|
-
tmp_1.
|
|
13907
|
+
var tmp1_safe_receiver = this.jb0_1.gameHistory.lastRoundHistory.committed;
|
|
13908
|
+
tmp_1.pb0_1 = (tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, this.kb0_1)) === true;
|
|
13883
13909
|
this.j9_1 = 1;
|
|
13884
|
-
suspendResult = this.
|
|
13910
|
+
suspendResult = this.lb0_1.g9r(this.pb0_1, this.ob0_1, this.nb0_1, this);
|
|
13885
13911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13886
13912
|
return suspendResult;
|
|
13887
13913
|
}
|
|
13888
13914
|
|
|
13889
13915
|
continue $sm;
|
|
13890
13916
|
case 1:
|
|
13891
|
-
this.
|
|
13892
|
-
if (!(this.
|
|
13893
|
-
this.
|
|
13917
|
+
this.qb0_1 = this.jb0_1.gameWinners;
|
|
13918
|
+
if (!(this.qb0_1 == null)) {
|
|
13919
|
+
this.rb0_1 = contains(this.qb0_1, this.kb0_1);
|
|
13894
13920
|
this.j9_1 = 2;
|
|
13895
|
-
suspendResult = this.
|
|
13921
|
+
suspendResult = this.lb0_1.h9r(this.rb0_1, this);
|
|
13896
13922
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13897
13923
|
return suspendResult;
|
|
13898
13924
|
}
|
|
@@ -13922,8 +13948,8 @@
|
|
|
13922
13948
|
while (true);
|
|
13923
13949
|
};
|
|
13924
13950
|
protoOf(statisticsMiddleware$o$handle$slambda).s1d = function ($this$launchDefault, completion) {
|
|
13925
|
-
var i = new statisticsMiddleware$o$handle$slambda(this.
|
|
13926
|
-
i.
|
|
13951
|
+
var i = new statisticsMiddleware$o$handle$slambda(this.jb0_1, this.kb0_1, this.lb0_1, completion);
|
|
13952
|
+
i.mb0_1 = $this$launchDefault;
|
|
13927
13953
|
return i;
|
|
13928
13954
|
};
|
|
13929
13955
|
function statisticsMiddleware$o$handle$slambda_0($action, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
@@ -13935,9 +13961,9 @@
|
|
|
13935
13961
|
return l;
|
|
13936
13962
|
}
|
|
13937
13963
|
function _no_name_provided__qut3iv_53($asyncProvider, $currentPlayerId, $clientStatisticsInteractor) {
|
|
13938
|
-
this.
|
|
13939
|
-
this.
|
|
13940
|
-
this.
|
|
13964
|
+
this.sb0_1 = $asyncProvider;
|
|
13965
|
+
this.tb0_1 = $currentPlayerId;
|
|
13966
|
+
this.ub0_1 = $clientStatisticsInteractor;
|
|
13941
13967
|
}
|
|
13942
13968
|
protoOf(_no_name_provided__qut3iv_53).n6i = function (action) {
|
|
13943
13969
|
return action instanceof RoundEndedAction;
|
|
@@ -13946,7 +13972,7 @@
|
|
|
13946
13972
|
// Inline function 'games.jass.logic.client.redux.middlewares.single.statisticsMiddleware.<anonymous>' call
|
|
13947
13973
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
13948
13974
|
next(action_0);
|
|
13949
|
-
this.
|
|
13975
|
+
this.sb0_1.j6f(VOID, statisticsMiddleware$o$handle$slambda_0(action_0, this.tb0_1, this.ub0_1, null));
|
|
13950
13976
|
};
|
|
13951
13977
|
protoOf(_no_name_provided__qut3iv_53).m6i = function (store, next, action) {
|
|
13952
13978
|
return this.e6k(store, next, action);
|
|
@@ -13983,7 +14009,7 @@
|
|
|
13983
14009
|
return new _no_name_provided__qut3iv_55(logger);
|
|
13984
14010
|
}
|
|
13985
14011
|
function _no_name_provided__qut3iv_55($logger) {
|
|
13986
|
-
this.
|
|
14012
|
+
this.vb0_1 = $logger;
|
|
13987
14013
|
}
|
|
13988
14014
|
protoOf(_no_name_provided__qut3iv_55).n6i = function (action) {
|
|
13989
14015
|
return action instanceof ExpectantLifecycleAction;
|
|
@@ -14018,7 +14044,7 @@
|
|
|
14018
14044
|
tmp$ret$0 = true;
|
|
14019
14045
|
}
|
|
14020
14046
|
if (tmp$ret$0) {
|
|
14021
|
-
this.
|
|
14047
|
+
this.vb0_1.w(VOID, "CheckExpectantsMiddleware: Expectant is not exists, can't finish it: " + toString(expectants) + ', ' + action_0.toString());
|
|
14022
14048
|
}
|
|
14023
14049
|
} else {
|
|
14024
14050
|
if (action_0 instanceof ExpectantCreatedClientAction) {
|
|
@@ -14047,7 +14073,7 @@
|
|
|
14047
14073
|
tmp$ret$2 = false;
|
|
14048
14074
|
}
|
|
14049
14075
|
if (tmp$ret$2) {
|
|
14050
|
-
this.
|
|
14076
|
+
this.vb0_1.w(VOID, "CheckExpectantsMiddleware: Expectant already exists, can't add it: " + toString(expectants) + ', ' + action_0.toString());
|
|
14051
14077
|
}
|
|
14052
14078
|
} else {
|
|
14053
14079
|
if (action_0 instanceof ExpectantStageCompletedClientAction) {
|
|
@@ -14076,7 +14102,7 @@
|
|
|
14076
14102
|
tmp$ret$4 = true;
|
|
14077
14103
|
}
|
|
14078
14104
|
if (tmp$ret$4) {
|
|
14079
|
-
this.
|
|
14105
|
+
this.vb0_1.w(VOID, "CheckExpectantsMiddleware: Expectant is not exists, can't complete stage: " + toString(expectants) + ', ' + action_0.toString());
|
|
14080
14106
|
}
|
|
14081
14107
|
} else {
|
|
14082
14108
|
noWhenBranchMatchedException();
|
|
@@ -14093,8 +14119,8 @@
|
|
|
14093
14119
|
return new _no_name_provided__qut3iv_56(currentPlayerId, gameLogger);
|
|
14094
14120
|
}
|
|
14095
14121
|
function _no_name_provided__qut3iv_56($currentPlayerId, $gameLogger) {
|
|
14096
|
-
this.
|
|
14097
|
-
this.
|
|
14122
|
+
this.wb0_1 = $currentPlayerId;
|
|
14123
|
+
this.xb0_1 = $gameLogger;
|
|
14098
14124
|
}
|
|
14099
14125
|
protoOf(_no_name_provided__qut3iv_56).n6i = function (action) {
|
|
14100
14126
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -14111,19 +14137,19 @@
|
|
|
14111
14137
|
while (tmp0_iterator.k()) {
|
|
14112
14138
|
var element = tmp0_iterator.l();
|
|
14113
14139
|
// Inline function 'games.jass.logic.client.redux.middlewares.validation.checkValidCurrentPlayerIdMiddleware.<anonymous>.<anonymous>' call
|
|
14114
|
-
if (element.o69_1 === this.
|
|
14140
|
+
if (element.o69_1 === this.wb0_1) {
|
|
14115
14141
|
destination.e(element);
|
|
14116
14142
|
}
|
|
14117
14143
|
}
|
|
14118
14144
|
if (!(destination.m() === 1)) {
|
|
14119
14145
|
var state = store.state;
|
|
14120
|
-
this.
|
|
14146
|
+
this.xb0_1.w(VOID, 'checkValidCurrentPlayerIdMiddleware: currentPlayer id is not matched');
|
|
14121
14147
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(state);
|
|
14122
14148
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i9q_1;
|
|
14123
14149
|
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h9o()) === false)) {
|
|
14124
|
-
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.
|
|
14150
|
+
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.wb0_1, VOID, new GameErrorReason(Reason_INTERNAL_ERROR_getInstance()))));
|
|
14125
14151
|
} else {
|
|
14126
|
-
throw new SessionException(401, 'Not valid user session, id:' + this.
|
|
14152
|
+
throw new SessionException(401, 'Not valid user session, id:' + this.wb0_1);
|
|
14127
14153
|
}
|
|
14128
14154
|
}
|
|
14129
14155
|
};
|
|
@@ -14135,9 +14161,9 @@
|
|
|
14135
14161
|
return new _no_name_provided__qut3iv_57(putCardValidatorInteractor, messageFactory, logger);
|
|
14136
14162
|
}
|
|
14137
14163
|
function _no_name_provided__qut3iv_57($putCardValidatorInteractor, $messageFactory, $logger) {
|
|
14138
|
-
this.
|
|
14139
|
-
this.
|
|
14140
|
-
this.
|
|
14164
|
+
this.yb0_1 = $putCardValidatorInteractor;
|
|
14165
|
+
this.zb0_1 = $messageFactory;
|
|
14166
|
+
this.ab1_1 = $logger;
|
|
14141
14167
|
}
|
|
14142
14168
|
protoOf(_no_name_provided__qut3iv_57).n6i = function (action) {
|
|
14143
14169
|
return action instanceof DisabledCardAction;
|
|
@@ -14147,11 +14173,11 @@
|
|
|
14147
14173
|
var action_0 = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
14148
14174
|
var state = store.state;
|
|
14149
14175
|
if (get_isEarnPointScene(state.o6n().sceneInfo.z7t_1)) {
|
|
14150
|
-
var validationCode = this.
|
|
14176
|
+
var validationCode = this.yb0_1.k9r(action_0.bb1_1, get_currentPlayer(state.o6n()), state.o6n());
|
|
14151
14177
|
if (!(validationCode == null)) {
|
|
14152
|
-
store.dispatch(new InfoMessageAction(this.
|
|
14178
|
+
store.dispatch(new InfoMessageAction(this.zb0_1.v8j(validationCode)));
|
|
14153
14179
|
} else {
|
|
14154
|
-
this.
|
|
14180
|
+
this.ab1_1.w(VOID, 'clientShowDisabledCardMessageMiddleware: card is valid, please check');
|
|
14155
14181
|
}
|
|
14156
14182
|
}
|
|
14157
14183
|
next(action_0);
|
|
@@ -14164,9 +14190,9 @@
|
|
|
14164
14190
|
return new _no_name_provided__qut3iv_58(putCardValidatorInteractor, logger, messageFactory);
|
|
14165
14191
|
}
|
|
14166
14192
|
function _no_name_provided__qut3iv_58($putCardValidatorInteractor, $logger, $messageFactory) {
|
|
14167
|
-
this.
|
|
14168
|
-
this.
|
|
14169
|
-
this.
|
|
14193
|
+
this.cb1_1 = $putCardValidatorInteractor;
|
|
14194
|
+
this.db1_1 = $logger;
|
|
14195
|
+
this.eb1_1 = $messageFactory;
|
|
14170
14196
|
}
|
|
14171
14197
|
protoOf(_no_name_provided__qut3iv_58).n6i = function (action) {
|
|
14172
14198
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -14177,17 +14203,17 @@
|
|
|
14177
14203
|
var state = store.state;
|
|
14178
14204
|
var cardNotValidCount = 0;
|
|
14179
14205
|
var player = get_currentPlayer(state.o6n());
|
|
14180
|
-
var validationCode = this.
|
|
14206
|
+
var validationCode = this.cb1_1.k9r(action_0.sat_1.g6f_1, player, state.o6n());
|
|
14181
14207
|
if (!(validationCode == null)) {
|
|
14182
14208
|
cardNotValidCount = cardNotValidCount + 1 | 0;
|
|
14183
14209
|
} else {
|
|
14184
14210
|
cardNotValidCount = 0;
|
|
14185
14211
|
}
|
|
14186
14212
|
if (cardNotValidCount > 3) {
|
|
14187
|
-
this.
|
|
14213
|
+
this.db1_1.w(VOID, 'validateCardMiddleware: card is not valid for the third time, please check');
|
|
14188
14214
|
}
|
|
14189
14215
|
if (!(validationCode == null)) {
|
|
14190
|
-
store.dispatch(new InfoMessageAction(this.
|
|
14216
|
+
store.dispatch(new InfoMessageAction(this.eb1_1.v8j(validationCode)));
|
|
14191
14217
|
} else {
|
|
14192
14218
|
next(action_0);
|
|
14193
14219
|
}
|
|
@@ -14203,14 +14229,14 @@
|
|
|
14203
14229
|
}
|
|
14204
14230
|
function ClientCombinationsReducerImpl() {
|
|
14205
14231
|
}
|
|
14206
|
-
protoOf(ClientCombinationsReducerImpl).
|
|
14232
|
+
protoOf(ClientCombinationsReducerImpl).fb1 = function (currentPlayerId, actData) {
|
|
14207
14233
|
if (!(actData == null) && currentPlayerId === actData.l79()) {
|
|
14208
14234
|
return new CombinationToAnnounceState(actData.q79_1, null, null);
|
|
14209
14235
|
}
|
|
14210
14236
|
return null;
|
|
14211
14237
|
};
|
|
14212
14238
|
function _no_name_provided__qut3iv_59($clientCombinationsReducer) {
|
|
14213
|
-
this.
|
|
14239
|
+
this.gb1_1 = $clientCombinationsReducer;
|
|
14214
14240
|
}
|
|
14215
14241
|
protoOf(_no_name_provided__qut3iv_59).n6i = function (action) {
|
|
14216
14242
|
return isInterface(action, NavigationMechanicAction);
|
|
@@ -14235,7 +14261,7 @@
|
|
|
14235
14261
|
}
|
|
14236
14262
|
throw new MechanicException('Required ' + getKClass(CombinationActData).qa() + ', current act is ' + toString_0(this_0));
|
|
14237
14263
|
}
|
|
14238
|
-
tmp$ret$1 = state.f8u(VOID, tmp.
|
|
14264
|
+
tmp$ret$1 = state.f8u(VOID, tmp.yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.gb1_1.fb1(tmp_0, tmp$ret$0)));
|
|
14239
14265
|
break $l$block_0;
|
|
14240
14266
|
}
|
|
14241
14267
|
tmp$ret$1 = state;
|
|
@@ -14246,20 +14272,20 @@
|
|
|
14246
14272
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
14247
14273
|
};
|
|
14248
14274
|
function ClientLifecycleReducer(logger) {
|
|
14249
|
-
this.
|
|
14275
|
+
this.hb1_1 = logger;
|
|
14250
14276
|
}
|
|
14251
|
-
protoOf(ClientLifecycleReducer).
|
|
14277
|
+
protoOf(ClientLifecycleReducer).ib1 = function (state, messagesReducer) {
|
|
14252
14278
|
var tmp1_config = state.i9q_1;
|
|
14253
14279
|
var tmp2_isForeground = state.n9q_1;
|
|
14254
14280
|
var tmp3_isSceneActive = state.o9q_1;
|
|
14255
14281
|
var tmp4_bufferedActions = state.m9q_1;
|
|
14256
14282
|
var tmp5_error = state.w9q_1;
|
|
14257
14283
|
var tmp6_messages = messagesReducer(state.j9q_1);
|
|
14258
|
-
return Companion_instance_13.
|
|
14284
|
+
return Companion_instance_13.jb1(tmp1_config, tmp2_isForeground, tmp3_isSceneActive, tmp6_messages, tmp4_bufferedActions, tmp5_error);
|
|
14259
14285
|
};
|
|
14260
|
-
protoOf(ClientLifecycleReducer).
|
|
14286
|
+
protoOf(ClientLifecycleReducer).kb1 = function (state) {
|
|
14261
14287
|
if (state.i9q_1.g9o()) {
|
|
14262
|
-
return Companion_instance_13.
|
|
14288
|
+
return Companion_instance_13.mb1(state.i9q_1, state.n9q_1, state.o9q_1);
|
|
14263
14289
|
} else {
|
|
14264
14290
|
var tmp1_config = state.i9q_1;
|
|
14265
14291
|
var tmp2_isForeground = state.n9q_1;
|
|
@@ -14270,10 +14296,10 @@
|
|
|
14270
14296
|
var tmp7_combinations = state.r9q_1;
|
|
14271
14297
|
var tmp8_messages = state.j9q_1;
|
|
14272
14298
|
var tmp9_processingCard = state.u9q_1;
|
|
14273
|
-
return Companion_instance_13.
|
|
14299
|
+
return Companion_instance_13.lb1(tmp1_config, tmp2_isForeground, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_expectants, tmp7_combinations, tmp9_processingCard, tmp4_error);
|
|
14274
14300
|
}
|
|
14275
14301
|
};
|
|
14276
|
-
protoOf(ClientLifecycleReducer).
|
|
14302
|
+
protoOf(ClientLifecycleReducer).nb1 = function (messages) {
|
|
14277
14303
|
// Inline function 'kotlin.collections.filter' call
|
|
14278
14304
|
// Inline function 'kotlin.collections.filterTo' call
|
|
14279
14305
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -14285,9 +14311,9 @@
|
|
|
14285
14311
|
destination.e(element);
|
|
14286
14312
|
}
|
|
14287
14313
|
}
|
|
14288
|
-
return updateMessagesAsNotShown(destination, this.
|
|
14314
|
+
return updateMessagesAsNotShown(destination, this.hb1_1);
|
|
14289
14315
|
};
|
|
14290
|
-
protoOf(ClientLifecycleReducer).
|
|
14316
|
+
protoOf(ClientLifecycleReducer).ob1 = function (messages) {
|
|
14291
14317
|
// Inline function 'kotlin.collections.filter' call
|
|
14292
14318
|
// Inline function 'kotlin.collections.filterTo' call
|
|
14293
14319
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -14299,7 +14325,7 @@
|
|
|
14299
14325
|
destination.e(element);
|
|
14300
14326
|
}
|
|
14301
14327
|
}
|
|
14302
|
-
return updateMessagesAsNotShown(destination, this.
|
|
14328
|
+
return updateMessagesAsNotShown(destination, this.hb1_1);
|
|
14303
14329
|
};
|
|
14304
14330
|
function updateMessagesAsNotShown(_this__u8e3s4, gameLogger) {
|
|
14305
14331
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -14364,7 +14390,7 @@
|
|
|
14364
14390
|
function ClientMechanicLifecycleReducer$onStart$lambda(this$0, $action) {
|
|
14365
14391
|
return function (it) {
|
|
14366
14392
|
var tmp;
|
|
14367
|
-
if (this$0.
|
|
14393
|
+
if (this$0.rb1_1.g9o()) {
|
|
14368
14394
|
var tmp_0 = Companion_instance_2;
|
|
14369
14395
|
var tmp_1 = Companion_instance_3;
|
|
14370
14396
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
@@ -14381,24 +14407,24 @@
|
|
|
14381
14407
|
}
|
|
14382
14408
|
function ClientLifecycleReducer$gameFinishedMessagesReducer$ref($boundThis) {
|
|
14383
14409
|
var l = function (p0) {
|
|
14384
|
-
return $boundThis.
|
|
14410
|
+
return $boundThis.nb1(p0);
|
|
14385
14411
|
};
|
|
14386
14412
|
l.callableName = 'gameFinishedMessagesReducer';
|
|
14387
14413
|
return l;
|
|
14388
14414
|
}
|
|
14389
14415
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref($boundThis) {
|
|
14390
14416
|
var l = function (p0) {
|
|
14391
|
-
return $boundThis.
|
|
14417
|
+
return $boundThis.ob1(p0);
|
|
14392
14418
|
};
|
|
14393
14419
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
14394
14420
|
return l;
|
|
14395
14421
|
}
|
|
14396
14422
|
function ClientMechanicLifecycleReducer(clintConfig, logger, tableLifecycleReducer, randomPoolProvider, clientLifecycleReducer, clientCombinationsReducer) {
|
|
14397
14423
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
14398
|
-
this.
|
|
14399
|
-
this.
|
|
14400
|
-
this.
|
|
14401
|
-
this.
|
|
14424
|
+
this.rb1_1 = clintConfig;
|
|
14425
|
+
this.sb1_1 = logger;
|
|
14426
|
+
this.tb1_1 = clientLifecycleReducer;
|
|
14427
|
+
this.ub1_1 = clientCombinationsReducer;
|
|
14402
14428
|
}
|
|
14403
14429
|
protoOf(ClientMechanicLifecycleReducer).q98 = function (state, action) {
|
|
14404
14430
|
var clientState = get_clientPayloadOrNull(state.y6m_1);
|
|
@@ -14413,8 +14439,8 @@
|
|
|
14413
14439
|
var newTable = tmp0_$this.x99(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ClientMechanicLifecycleReducer$onStart$lambda(this, action));
|
|
14414
14440
|
var tmp;
|
|
14415
14441
|
if (clientState == null) {
|
|
14416
|
-
this.
|
|
14417
|
-
tmp = Companion_instance_13.
|
|
14442
|
+
this.sb1_1.w(VOID, 'ClientPayload is not onStart, should be init via InitClientStateAction');
|
|
14443
|
+
tmp = Companion_instance_13.vb1(this.rb1_1);
|
|
14418
14444
|
} else {
|
|
14419
14445
|
tmp = clientState;
|
|
14420
14446
|
}
|
|
@@ -14426,7 +14452,7 @@
|
|
|
14426
14452
|
this.s98_1.e5q(action.previousGameId);
|
|
14427
14453
|
var newTable = this.r98_1.y99(state.o6n(), action.gameId);
|
|
14428
14454
|
var tmp = get_clientPayload_0(state);
|
|
14429
|
-
var newPayload = this.
|
|
14455
|
+
var newPayload = this.tb1_1.ib1(tmp, ClientLifecycleReducer$gameFinishedMessagesReducer$ref(this.tb1_1));
|
|
14430
14456
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
14431
14457
|
return state.f8u(newTable, newPayload, tmp0_gameLifecycleState);
|
|
14432
14458
|
};
|
|
@@ -14452,9 +14478,9 @@
|
|
|
14452
14478
|
}
|
|
14453
14479
|
tmp_2 = tmp$ret$0;
|
|
14454
14480
|
}
|
|
14455
|
-
tmp = tmp_0.
|
|
14481
|
+
tmp = tmp_0.wb1(this.rb1_1, this.ub1_1.fb1(tmp_1, tmp_2));
|
|
14456
14482
|
} else {
|
|
14457
|
-
tmp = this.
|
|
14483
|
+
tmp = this.tb1_1.kb1(clientState);
|
|
14458
14484
|
}
|
|
14459
14485
|
var newPayload = tmp;
|
|
14460
14486
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
@@ -14472,7 +14498,7 @@
|
|
|
14472
14498
|
// Inline function 'games.jass.logic.client.redux.redusers.ClientMechanicLifecycleReducer.onFinishing.<anonymous>' call
|
|
14473
14499
|
this.s98_1.e5q(tmp1_safe_receiver);
|
|
14474
14500
|
}
|
|
14475
|
-
var newPayload = this.
|
|
14501
|
+
var newPayload = this.tb1_1.kb1(get_clientPayload_0(state));
|
|
14476
14502
|
var tmp2_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
14477
14503
|
var tmp3_terminationState = new TerminationState(action.g8w_1, action.i8w_1);
|
|
14478
14504
|
return state.f8u(VOID, newPayload, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
@@ -14485,7 +14511,7 @@
|
|
|
14485
14511
|
};
|
|
14486
14512
|
protoOf(ClientMechanicLifecycleReducer).l98 = function (state, action) {
|
|
14487
14513
|
var tmp = get_clientPayload_0(state);
|
|
14488
|
-
var newPayload = this.
|
|
14514
|
+
var newPayload = this.tb1_1.ib1(tmp, ClientLifecycleReducer$roundFinishedMessagesReducer$ref(this.tb1_1));
|
|
14489
14515
|
var newTable = this.r98_1.t98(state.o6n());
|
|
14490
14516
|
return state.f8u(newTable, newPayload);
|
|
14491
14517
|
};
|
|
@@ -14508,7 +14534,7 @@
|
|
|
14508
14534
|
// Inline function 'kotlin.let' call
|
|
14509
14535
|
// Inline function 'kotlin.contracts.contract' call
|
|
14510
14536
|
// Inline function 'games.jass.logic.client.redux.redusers.ClientMechanicLifecycleReducer.onError.<anonymous>' call
|
|
14511
|
-
tmp = this.
|
|
14537
|
+
tmp = this.tb1_1.kb1(tmp2_safe_receiver).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.z8x_1);
|
|
14512
14538
|
}
|
|
14513
14539
|
var newPayload = tmp;
|
|
14514
14540
|
var tmp3_safe_receiver = state.a6n_1;
|
|
@@ -14528,7 +14554,7 @@
|
|
|
14528
14554
|
protoOf(_no_name_provided__qut3iv_60).a97 = function (state, action) {
|
|
14529
14555
|
// Inline function 'games.jass.logic.client.redux.redusers.clientResetProcessingCardReducer.<anonymous>' call
|
|
14530
14556
|
action instanceof PutCardMechanicAction || THROW_CCE();
|
|
14531
|
-
return state.f8u(VOID, get_clientPayload_0(state).
|
|
14557
|
+
return state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
14532
14558
|
};
|
|
14533
14559
|
protoOf(_no_name_provided__qut3iv_60).f6k = function (state, action) {
|
|
14534
14560
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -14539,14 +14565,14 @@
|
|
|
14539
14565
|
}
|
|
14540
14566
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0($boundThis) {
|
|
14541
14567
|
var l = function (p0) {
|
|
14542
|
-
return $boundThis.
|
|
14568
|
+
return $boundThis.ob1(p0);
|
|
14543
14569
|
};
|
|
14544
14570
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
14545
14571
|
return l;
|
|
14546
14572
|
}
|
|
14547
14573
|
function _no_name_provided__qut3iv_61($logger, $clientLifecycleReducer) {
|
|
14548
|
-
this.
|
|
14549
|
-
this.
|
|
14574
|
+
this.xb1_1 = $logger;
|
|
14575
|
+
this.yb1_1 = $clientLifecycleReducer;
|
|
14550
14576
|
}
|
|
14551
14577
|
protoOf(_no_name_provided__qut3iv_61).n6i = function (action) {
|
|
14552
14578
|
return action instanceof SceneMechanicAction;
|
|
@@ -14562,11 +14588,11 @@
|
|
|
14562
14588
|
case 'CHOOSE_PARTNER':
|
|
14563
14589
|
case 'TRADE':
|
|
14564
14590
|
case 'EARN_POINTS':
|
|
14565
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14591
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, updateMessagesAsNotShown(get_clientPayload_0(state).j9q_1, this.xb1_1)));
|
|
14566
14592
|
break;
|
|
14567
14593
|
case 'CALC_POINTS':
|
|
14568
14594
|
var tmp_0 = get_clientPayload_0(state);
|
|
14569
|
-
tmp = state.f8u(VOID, this.
|
|
14595
|
+
tmp = state.f8u(VOID, this.yb1_1.ib1(tmp_0, ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0(this.yb1_1)));
|
|
14570
14596
|
break;
|
|
14571
14597
|
default:
|
|
14572
14598
|
throw new MechanicException("clientSceneReducer: Can't support this scene " + action_0.toString());
|
|
@@ -14581,7 +14607,7 @@
|
|
|
14581
14607
|
return new _no_name_provided__qut3iv_62(currentPlayerId);
|
|
14582
14608
|
}
|
|
14583
14609
|
function _no_name_provided__qut3iv_62($currentPlayerId) {
|
|
14584
|
-
this.
|
|
14610
|
+
this.zb1_1 = $currentPlayerId;
|
|
14585
14611
|
}
|
|
14586
14612
|
protoOf(_no_name_provided__qut3iv_62).n6i = function (action) {
|
|
14587
14613
|
return action instanceof ClientAction;
|
|
@@ -14593,19 +14619,19 @@
|
|
|
14593
14619
|
var action_0 = action instanceof ClientAction ? action : THROW_CCE();
|
|
14594
14620
|
var tmp;
|
|
14595
14621
|
if (action_0 instanceof SwitchChatAction) {
|
|
14596
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14622
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.gat_1));
|
|
14597
14623
|
} else {
|
|
14598
14624
|
if (action_0 instanceof SwitchSettingAction) {
|
|
14599
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14625
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.hat_1));
|
|
14600
14626
|
} else {
|
|
14601
14627
|
if (action_0 instanceof SceneTutorialAction) {
|
|
14602
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14628
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.bb2_1));
|
|
14603
14629
|
} else {
|
|
14604
14630
|
if (action_0 instanceof SceneActivationAction) {
|
|
14605
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14631
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, action_0.c9r_1));
|
|
14606
14632
|
} else {
|
|
14607
14633
|
if (action_0 instanceof CombinationToAnnounceAction) {
|
|
14608
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14634
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new CombinationToAnnounceState(action_0.wat_1, action_0.xat_1, action_0.yat_1)));
|
|
14609
14635
|
} else {
|
|
14610
14636
|
if (action_0 instanceof SwitchLastBribeAction) {
|
|
14611
14637
|
var tmp_0 = get_clientPayload_0(state);
|
|
@@ -14616,7 +14642,7 @@
|
|
|
14616
14642
|
} else {
|
|
14617
14643
|
tmp_1 = null;
|
|
14618
14644
|
}
|
|
14619
|
-
tmp = state.f8u(VOID, tmp_0.
|
|
14645
|
+
tmp = state.f8u(VOID, tmp_0.yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1));
|
|
14620
14646
|
} else {
|
|
14621
14647
|
if (action_0 instanceof SwitchGameInfoAction) {
|
|
14622
14648
|
var tmp_2 = get_clientPayload_0(state);
|
|
@@ -14632,16 +14658,16 @@
|
|
|
14632
14658
|
} else {
|
|
14633
14659
|
tmp_3 = null;
|
|
14634
14660
|
}
|
|
14635
|
-
tmp = state.f8u(VOID, tmp_2.
|
|
14661
|
+
tmp = state.f8u(VOID, tmp_2.yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_3));
|
|
14636
14662
|
} else {
|
|
14637
14663
|
if (action_0 instanceof AnnouncedCombinationAction) {
|
|
14638
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14664
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
14639
14665
|
} else {
|
|
14640
14666
|
if (action_0 instanceof ForegroundAction) {
|
|
14641
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14667
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, action_0.kat_1));
|
|
14642
14668
|
} else {
|
|
14643
14669
|
if (action_0 instanceof InitClientStateAction) {
|
|
14644
|
-
tmp = state.f8u(VOID, Companion_instance_13.
|
|
14670
|
+
tmp = state.f8u(VOID, Companion_instance_13.vb1(action_0.lat_1));
|
|
14645
14671
|
} else {
|
|
14646
14672
|
if (action_0 instanceof UpdateConfigAction) {
|
|
14647
14673
|
var tmp6_safe_receiver = action_0.qat_1;
|
|
@@ -14679,7 +14705,7 @@
|
|
|
14679
14705
|
var tmp_7 = tmp_5.copy(VOID, VOID, VOID, tmp_6, updatedPlayers == null ? state.o6n().players : updatedPlayers);
|
|
14680
14706
|
var tmp_8 = get_clientPayload_0(state);
|
|
14681
14707
|
var tmp15_elvis_lhs = action_0.mat_1;
|
|
14682
|
-
tmp = state.f8u(tmp_7, tmp_8.
|
|
14708
|
+
tmp = state.f8u(tmp_7, tmp_8.yaw(tmp15_elvis_lhs == null ? get_clientPayload_0(state).i9q_1 : tmp15_elvis_lhs));
|
|
14683
14709
|
} else {
|
|
14684
14710
|
if (action_0 instanceof ClientMessageAction) {
|
|
14685
14711
|
var messages = get_clientPayload_0(state).j9q_1;
|
|
@@ -14688,19 +14714,19 @@
|
|
|
14688
14714
|
tmp$ret$5 = state;
|
|
14689
14715
|
break $l$block;
|
|
14690
14716
|
}
|
|
14691
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14717
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, plus_0(messages, action_0.rat_1)));
|
|
14692
14718
|
} else {
|
|
14693
14719
|
if (action_0 instanceof PutCardAndCheckCombinationsAction) {
|
|
14694
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14720
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action_0.sat_1));
|
|
14695
14721
|
} else {
|
|
14696
14722
|
if (action_0 instanceof InfoMessageAction) {
|
|
14697
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14723
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, action_0.vat_1));
|
|
14698
14724
|
} else {
|
|
14699
14725
|
if (action_0 instanceof UpdateMessagesCountAction) {
|
|
14700
|
-
tmp = state.f8u(updateVoiceCount_0(state.o6n(), this.
|
|
14726
|
+
tmp = state.f8u(updateVoiceCount_0(state.o6n(), this.zb1_1));
|
|
14701
14727
|
} else {
|
|
14702
14728
|
if (action_0 instanceof ResetErrorAction) {
|
|
14703
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
14729
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null), GameLifecycleState_CREATING_getInstance(), null);
|
|
14704
14730
|
} else {
|
|
14705
14731
|
if (action_0 instanceof TransitionsFinishedAction) {
|
|
14706
14732
|
var tmp_9 = get_clientPayload_0(state);
|
|
@@ -14712,11 +14738,11 @@
|
|
|
14712
14738
|
while (tmp0_iterator_0.k()) {
|
|
14713
14739
|
var element = tmp0_iterator_0.l();
|
|
14714
14740
|
// Inline function 'games.jass.logic.client.redux.redusers.clientUIReducer.<anonymous>.<anonymous>' call
|
|
14715
|
-
if (!action_0.
|
|
14741
|
+
if (!action_0.ab2_1.v1(element.c5k())) {
|
|
14716
14742
|
destination_0.e(element);
|
|
14717
14743
|
}
|
|
14718
14744
|
}
|
|
14719
|
-
tmp = state.f8u(VOID, tmp_9.
|
|
14745
|
+
tmp = state.f8u(VOID, tmp_9.yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination_0));
|
|
14720
14746
|
} else {
|
|
14721
14747
|
if (action_0 instanceof TutorialPassedAction) {
|
|
14722
14748
|
tmp = state;
|
|
@@ -14790,13 +14816,13 @@
|
|
|
14790
14816
|
// Inline function 'games.jass.logic.client.redux.redusers.messageReducer.<anonymous>' call
|
|
14791
14817
|
var action_0 = action instanceof MessageMechanicAction ? action : THROW_CCE();
|
|
14792
14818
|
var clientState = get_clientPayload_0(state);
|
|
14793
|
-
return state.f8u(updateVoiceCount(state.o6n(), action_0), clientState.
|
|
14819
|
+
return state.f8u(updateVoiceCount(state.o6n(), action_0), clientState.yaw(VOID, plus_0(clientState.j9q_1, action_0.x8x_1)));
|
|
14794
14820
|
};
|
|
14795
14821
|
protoOf(_no_name_provided__qut3iv_63).f6k = function (state, action) {
|
|
14796
14822
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
14797
14823
|
};
|
|
14798
14824
|
function _no_name_provided__qut3iv_64($gameLogger) {
|
|
14799
|
-
this.
|
|
14825
|
+
this.cb2_1 = $gameLogger;
|
|
14800
14826
|
}
|
|
14801
14827
|
protoOf(_no_name_provided__qut3iv_64).n6i = function (action) {
|
|
14802
14828
|
return action instanceof TrumpMechanicAction;
|
|
@@ -14805,13 +14831,13 @@
|
|
|
14805
14831
|
// Inline function 'games.jass.logic.client.redux.redusers.clientResetMessagesAfterSelectedTrumpReducer.<anonymous>' call
|
|
14806
14832
|
action instanceof TrumpMechanicAction || THROW_CCE();
|
|
14807
14833
|
var clientState = get_clientPayload_0(state);
|
|
14808
|
-
return state.f8u(VOID, clientState.
|
|
14834
|
+
return state.f8u(VOID, clientState.yaw(VOID, updateMessagesAsNotShown(clientState.j9q_1, this.cb2_1)));
|
|
14809
14835
|
};
|
|
14810
14836
|
protoOf(_no_name_provided__qut3iv_64).f6k = function (state, action) {
|
|
14811
14837
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
14812
14838
|
};
|
|
14813
14839
|
function _no_name_provided__qut3iv_65($gameLogger) {
|
|
14814
|
-
this.
|
|
14840
|
+
this.db2_1 = $gameLogger;
|
|
14815
14841
|
}
|
|
14816
14842
|
protoOf(_no_name_provided__qut3iv_65).n6i = function (action) {
|
|
14817
14843
|
return action instanceof PickUpBribeMechanicAction;
|
|
@@ -14820,7 +14846,7 @@
|
|
|
14820
14846
|
// Inline function 'games.jass.logic.client.redux.redusers.clientResetMessagesAfterBribeReducer.<anonymous>' call
|
|
14821
14847
|
action instanceof PickUpBribeMechanicAction || THROW_CCE();
|
|
14822
14848
|
var clientState = get_clientPayload_0(state);
|
|
14823
|
-
return state.f8u(VOID, clientState.
|
|
14849
|
+
return state.f8u(VOID, clientState.yaw(VOID, updateMessagesAsNotShown(clientState.j9q_1, this.db2_1)));
|
|
14824
14850
|
};
|
|
14825
14851
|
protoOf(_no_name_provided__qut3iv_65).f6k = function (state, action) {
|
|
14826
14852
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -14841,10 +14867,10 @@
|
|
|
14841
14867
|
var tmp;
|
|
14842
14868
|
if (action_0 instanceof AddToBufferAction) {
|
|
14843
14869
|
var bufferedActions = plus_0(clientState.m9q_1, action_0.cat_1);
|
|
14844
|
-
tmp = state.f8u(VOID, clientState.
|
|
14870
|
+
tmp = state.f8u(VOID, clientState.yaw(VOID, VOID, VOID, VOID, bufferedActions));
|
|
14845
14871
|
} else {
|
|
14846
14872
|
if (action_0 instanceof ReleaseBufferAction) {
|
|
14847
|
-
tmp = state.f8u(VOID, clientState.
|
|
14873
|
+
tmp = state.f8u(VOID, clientState.yaw(VOID, VOID, VOID, VOID, emptyList()));
|
|
14848
14874
|
} else {
|
|
14849
14875
|
noWhenBranchMatchedException();
|
|
14850
14876
|
}
|
|
@@ -14859,7 +14885,7 @@
|
|
|
14859
14885
|
return new _no_name_provided__qut3iv_67(clientLifecycleReducer);
|
|
14860
14886
|
}
|
|
14861
14887
|
function _no_name_provided__qut3iv_67($clientLifecycleReducer) {
|
|
14862
|
-
this.
|
|
14888
|
+
this.eb2_1 = $clientLifecycleReducer;
|
|
14863
14889
|
}
|
|
14864
14890
|
protoOf(_no_name_provided__qut3iv_67).n6i = function (action) {
|
|
14865
14891
|
return isInterface(action, TerminatedAction);
|
|
@@ -14878,7 +14904,7 @@
|
|
|
14878
14904
|
}
|
|
14879
14905
|
}
|
|
14880
14906
|
var errorState = tmp;
|
|
14881
|
-
return state.f8u(VOID, this.
|
|
14907
|
+
return state.f8u(VOID, this.eb2_1.kb1(get_clientPayload_0(state)).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, errorState));
|
|
14882
14908
|
};
|
|
14883
14909
|
protoOf(_no_name_provided__qut3iv_67).f6k = function (state, action) {
|
|
14884
14910
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -14900,7 +14926,7 @@
|
|
|
14900
14926
|
if (action_0 instanceof ExpectantCreatedClientAction) {
|
|
14901
14927
|
var expectants = plus_0(clientState.l9q_1, action_0.zat_1);
|
|
14902
14928
|
var bufferedActions = plus_0(clientState.m9q_1, action_0.zat_1.g9p_1);
|
|
14903
|
-
tmp = state.f8u(VOID, clientState.
|
|
14929
|
+
tmp = state.f8u(VOID, clientState.yaw(VOID, VOID, VOID, expectants, bufferedActions));
|
|
14904
14930
|
} else {
|
|
14905
14931
|
if (action_0 instanceof ExpectantTimerFinishedClientAction) {
|
|
14906
14932
|
// Inline function 'kotlin.collections.single' call
|
|
@@ -14933,7 +14959,7 @@
|
|
|
14933
14959
|
}
|
|
14934
14960
|
}
|
|
14935
14961
|
var expectants_0 = plus_0(destination, expectant.k9p(VOID, VOID, true));
|
|
14936
|
-
tmp = state.f8u(VOID, clientState.
|
|
14962
|
+
tmp = state.f8u(VOID, clientState.yaw(VOID, VOID, VOID, expectants_0));
|
|
14937
14963
|
} else {
|
|
14938
14964
|
if (action_0 instanceof ExpectantStageCompletedClientAction) {
|
|
14939
14965
|
tmp = state;
|
|
@@ -14973,7 +14999,7 @@
|
|
|
14973
14999
|
}
|
|
14974
15000
|
}
|
|
14975
15001
|
var expectants = destination;
|
|
14976
|
-
return state.f8u(VOID, clientPayload.
|
|
15002
|
+
return state.f8u(VOID, clientPayload.yaw(VOID, VOID, VOID, expectants));
|
|
14977
15003
|
};
|
|
14978
15004
|
protoOf(_no_name_provided__qut3iv_69).f6k = function (state, action) {
|
|
14979
15005
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -15006,10 +15032,10 @@
|
|
|
15006
15032
|
return clientPayload.v9q_1;
|
|
15007
15033
|
}
|
|
15008
15034
|
var player = getPlayer(table.players, playerId);
|
|
15009
|
-
var tmp0_$this = $this.
|
|
15035
|
+
var tmp0_$this = $this.kb2_1;
|
|
15010
15036
|
var tmp1_players = mapWithIndex(table.players);
|
|
15011
15037
|
var tmp2_cards = player.n6u_1;
|
|
15012
|
-
var updatedPlayerCards = tmp0_$this.
|
|
15038
|
+
var updatedPlayerCards = tmp0_$this.qb2(playerId, isCurrentPlayerId, tmp2_cards, tmp1_players);
|
|
15013
15039
|
var tmp$ret$3;
|
|
15014
15040
|
$l$block_0: {
|
|
15015
15041
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -15026,7 +15052,7 @@
|
|
|
15026
15052
|
}
|
|
15027
15053
|
var tmp3_elvis_lhs = tmp$ret$3;
|
|
15028
15054
|
var removeCardFromHand = tmp3_elvis_lhs == null ? last(updatedPlayerCards) : tmp3_elvis_lhs;
|
|
15029
|
-
var tmp4_id = $this.
|
|
15055
|
+
var tmp4_id = $this.mb2_1.m6g();
|
|
15030
15056
|
return plus_0(clientPayload.v9q_1, new PutCardOnTableTransition(tmp4_id, removeCardFromHand, card));
|
|
15031
15057
|
}
|
|
15032
15058
|
function handleTradeScene($this, state, action, currentPlayerId) {
|
|
@@ -15055,7 +15081,7 @@
|
|
|
15055
15081
|
throw new MechanicException('Required ' + getKClass(EarnPointsSceneData).qa() + ', current scene is ' + toString_0(this_0));
|
|
15056
15082
|
}
|
|
15057
15083
|
var sceneData = tmp$ret$0;
|
|
15058
|
-
var tmp0_$this = $this.
|
|
15084
|
+
var tmp0_$this = $this.lb2_1;
|
|
15059
15085
|
var tmp1_config = state.o6n().config;
|
|
15060
15086
|
var tmp2_cardDeck = state.o6n().requireCardDeck;
|
|
15061
15087
|
var tmp3_newTopOpenedCard = sceneData.f7b_1;
|
|
@@ -15070,8 +15096,8 @@
|
|
|
15070
15096
|
var cardDeckCards = createCardDeckCards($this, cardsToDistribute, otherCardsCount);
|
|
15071
15097
|
var tmp1_whoChoseSuitPlayerId = whoGetsTheTrumpCardPlayer == null ? null : whoGetsTheTrumpCardPlayer.playerId;
|
|
15072
15098
|
var cardPairsMap = dealCardsByWaves$default($this, distributeToCards, cardDeckCards, trumpCard, tmp1_whoChoseSuitPlayerId);
|
|
15073
|
-
var updatedTransitions = plus_0(get_clientPayload_0(state).v9q_1, new CardDistributionTransition($this.
|
|
15074
|
-
return state.f8u(VOID, get_clientPayload_0(state).
|
|
15099
|
+
var updatedTransitions = plus_0(get_clientPayload_0(state).v9q_1, new CardDistributionTransition($this.mb2_1.m6g(), cardPairsMap));
|
|
15100
|
+
return state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15075
15101
|
}
|
|
15076
15102
|
function prepareCardsForDistribution($this, state, table, currentPlayerId, cardsToDistribute) {
|
|
15077
15103
|
// Inline function 'kotlin.collections.associate' call
|
|
@@ -15085,11 +15111,11 @@
|
|
|
15085
15111
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
15086
15112
|
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.prepareCardsForDistribution.<anonymous>' call
|
|
15087
15113
|
var allPlayerCards = toList(toSet(plus(element.n6u_1, getValue(cardsToDistribute, element.playerId))));
|
|
15088
|
-
var tmp0_$this = $this.
|
|
15114
|
+
var tmp0_$this = $this.kb2_1;
|
|
15089
15115
|
var tmp1_playerId = element.playerId;
|
|
15090
15116
|
var tmp2_players = mapWithIndex(table.players);
|
|
15091
15117
|
var tmp3_isCurrentPlayer = currentPlayerId === element.playerId;
|
|
15092
|
-
var hiddenCardsIfNeeded = tmp0_$this.
|
|
15118
|
+
var hiddenCardsIfNeeded = tmp0_$this.qb2(tmp1_playerId, tmp3_isCurrentPlayer, allPlayerCards, tmp2_players);
|
|
15093
15119
|
var cards = takeLast(hiddenCardsIfNeeded, getValue(cardsToDistribute, element.playerId).m());
|
|
15094
15120
|
var pair = to(element.playerId, sortedWith(cards, new CardSuitSortingComparator(get_clientPayload_0(state).i9q_1.f9o_1)));
|
|
15095
15121
|
destination.n2(pair.se_1, pair.te_1);
|
|
@@ -15097,7 +15123,7 @@
|
|
|
15097
15123
|
return destination;
|
|
15098
15124
|
}
|
|
15099
15125
|
function determineWhoGetsTheTrumpCard($this, table) {
|
|
15100
|
-
return !(firstOrNull(filterWhoChoseSuit(table.players)) == null) ? $this.
|
|
15126
|
+
return !(firstOrNull(filterWhoChoseSuit(table.players)) == null) ? $this.nb2_1.w8i(table.players, table.config) : null;
|
|
15101
15127
|
}
|
|
15102
15128
|
function createCardDeckCards($this, cardsToDistribute, otherCardsCount) {
|
|
15103
15129
|
// Inline function 'kotlin.collections.sumOf' call
|
|
@@ -15244,8 +15270,8 @@
|
|
|
15244
15270
|
}
|
|
15245
15271
|
}
|
|
15246
15272
|
function _no_name_provided__qut3iv_70(this$0, $currentPlayerId) {
|
|
15247
|
-
this.
|
|
15248
|
-
this.
|
|
15273
|
+
this.rb2_1 = this$0;
|
|
15274
|
+
this.sb2_1 = $currentPlayerId;
|
|
15249
15275
|
}
|
|
15250
15276
|
protoOf(_no_name_provided__qut3iv_70).n6i = function (action) {
|
|
15251
15277
|
return action instanceof PutCardAndCheckCombinationsAction;
|
|
@@ -15253,15 +15279,15 @@
|
|
|
15253
15279
|
protoOf(_no_name_provided__qut3iv_70).a97 = function (state, action) {
|
|
15254
15280
|
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.addTransitionWhenPutCardAndCheckCombinationReducer.<anonymous>' call
|
|
15255
15281
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
15256
|
-
var updatedTransitions = addPutCardOnTableTransition(this.
|
|
15257
|
-
return state.f8u(VOID, get_clientPayload_0(state).
|
|
15282
|
+
var updatedTransitions = addPutCardOnTableTransition(this.rb2_1, this.sb2_1, true, action_0.sat_1.g6f_1, state.o6n(), get_clientPayload_0(state));
|
|
15283
|
+
return state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15258
15284
|
};
|
|
15259
15285
|
protoOf(_no_name_provided__qut3iv_70).f6k = function (state, action) {
|
|
15260
15286
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
15261
15287
|
};
|
|
15262
15288
|
function _no_name_provided__qut3iv_71(this$0, $currentPlayerId) {
|
|
15263
|
-
this.
|
|
15264
|
-
this.
|
|
15289
|
+
this.tb2_1 = this$0;
|
|
15290
|
+
this.ub2_1 = $currentPlayerId;
|
|
15265
15291
|
}
|
|
15266
15292
|
protoOf(_no_name_provided__qut3iv_71).n6i = function (action) {
|
|
15267
15293
|
return action instanceof PutCardMechanicAction;
|
|
@@ -15269,8 +15295,8 @@
|
|
|
15269
15295
|
protoOf(_no_name_provided__qut3iv_71).a97 = function (state, action) {
|
|
15270
15296
|
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.addTransitionWhenPutCardReducer.<anonymous>' call
|
|
15271
15297
|
var action_0 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
15272
|
-
var updatedTransitions = addPutCardOnTableTransition(this.
|
|
15273
|
-
return state.f8u(VOID, get_clientPayload_0(state).
|
|
15298
|
+
var updatedTransitions = addPutCardOnTableTransition(this.tb2_1, action_0.playerId, this.ub2_1 === action_0.playerId, action_0.d8r_1, state.o6n(), get_clientPayload_0(state));
|
|
15299
|
+
return state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15274
15300
|
};
|
|
15275
15301
|
protoOf(_no_name_provided__qut3iv_71).f6k = function (state, action) {
|
|
15276
15302
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -15296,28 +15322,28 @@
|
|
|
15296
15322
|
}
|
|
15297
15323
|
}
|
|
15298
15324
|
var filteredTransitions = destination;
|
|
15299
|
-
return state.f8u(VOID, get_clientPayload_0(state).
|
|
15325
|
+
return state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filteredTransitions));
|
|
15300
15326
|
};
|
|
15301
15327
|
protoOf(_no_name_provided__qut3iv_72).f6k = function (state, action) {
|
|
15302
15328
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
15303
15329
|
};
|
|
15304
15330
|
function _no_name_provided__qut3iv_73(this$0, $currentPlayerId) {
|
|
15305
|
-
this.
|
|
15306
|
-
this.
|
|
15331
|
+
this.vb2_1 = this$0;
|
|
15332
|
+
this.wb2_1 = $currentPlayerId;
|
|
15307
15333
|
}
|
|
15308
15334
|
protoOf(_no_name_provided__qut3iv_73).n6i = function (action) {
|
|
15309
15335
|
return action instanceof SceneMechanicAction;
|
|
15310
15336
|
};
|
|
15311
15337
|
protoOf(_no_name_provided__qut3iv_73).a97 = function (state, action) {
|
|
15312
|
-
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.
|
|
15338
|
+
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.addTransitionWhenCardDistributionReducer.<anonymous>' call
|
|
15313
15339
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
15314
15340
|
var tmp;
|
|
15315
15341
|
switch (action_0.u8q_1) {
|
|
15316
15342
|
case 'TRADE':
|
|
15317
|
-
tmp = handleTradeScene(this.
|
|
15343
|
+
tmp = handleTradeScene(this.vb2_1, state, action_0, this.wb2_1);
|
|
15318
15344
|
break;
|
|
15319
15345
|
case 'EARN_POINTS':
|
|
15320
|
-
tmp = handleEarnPointsScene(this.
|
|
15346
|
+
tmp = handleEarnPointsScene(this.vb2_1, state, action_0, this.wb2_1);
|
|
15321
15347
|
break;
|
|
15322
15348
|
default:
|
|
15323
15349
|
tmp = state;
|
|
@@ -15334,7 +15360,7 @@
|
|
|
15334
15360
|
return action instanceof SceneActivationAction;
|
|
15335
15361
|
};
|
|
15336
15362
|
protoOf(_no_name_provided__qut3iv_74).a97 = function (state, action) {
|
|
15337
|
-
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.
|
|
15363
|
+
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.removeTransitionWhenCardDistributionReducer.<anonymous>' call
|
|
15338
15364
|
var tmp;
|
|
15339
15365
|
if ((action instanceof SceneActivationAction ? action : THROW_CCE()).c9r_1) {
|
|
15340
15366
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -15344,13 +15370,13 @@
|
|
|
15344
15370
|
var tmp0_iterator = this_0.j();
|
|
15345
15371
|
while (tmp0_iterator.k()) {
|
|
15346
15372
|
var element = tmp0_iterator.l();
|
|
15347
|
-
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.
|
|
15373
|
+
// Inline function 'games.jass.logic.client.redux.redusers.transitions.TransitionsReducerImpl.removeTransitionWhenCardDistributionReducer.<anonymous>.<anonymous>' call
|
|
15348
15374
|
if (!(element instanceof CardDistributionTransition)) {
|
|
15349
15375
|
destination.e(element);
|
|
15350
15376
|
}
|
|
15351
15377
|
}
|
|
15352
15378
|
var filteredTransitions = destination;
|
|
15353
|
-
tmp = state.f8u(VOID, get_clientPayload_0(state).
|
|
15379
|
+
tmp = state.f8u(VOID, get_clientPayload_0(state).yaw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filteredTransitions));
|
|
15354
15380
|
} else {
|
|
15355
15381
|
tmp = state;
|
|
15356
15382
|
}
|
|
@@ -15360,68 +15386,68 @@
|
|
|
15360
15386
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
15361
15387
|
};
|
|
15362
15388
|
function TransitionsReducerImpl(playerHandSelector, sceneReducer, idsProvider, gameLogicProvider) {
|
|
15363
|
-
this.
|
|
15364
|
-
this.
|
|
15365
|
-
this.
|
|
15366
|
-
this.
|
|
15389
|
+
this.kb2_1 = playerHandSelector;
|
|
15390
|
+
this.lb2_1 = sceneReducer;
|
|
15391
|
+
this.mb2_1 = idsProvider;
|
|
15392
|
+
this.nb2_1 = gameLogicProvider;
|
|
15367
15393
|
}
|
|
15368
|
-
protoOf(TransitionsReducerImpl).
|
|
15394
|
+
protoOf(TransitionsReducerImpl).fb2 = function (currentPlayerId) {
|
|
15369
15395
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
15370
15396
|
return new _no_name_provided__qut3iv_70(this, currentPlayerId);
|
|
15371
15397
|
};
|
|
15372
|
-
protoOf(TransitionsReducerImpl).
|
|
15398
|
+
protoOf(TransitionsReducerImpl).gb2 = function (currentPlayerId) {
|
|
15373
15399
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
15374
15400
|
return new _no_name_provided__qut3iv_71(this, currentPlayerId);
|
|
15375
15401
|
};
|
|
15376
|
-
protoOf(TransitionsReducerImpl).
|
|
15402
|
+
protoOf(TransitionsReducerImpl).ib2 = function () {
|
|
15377
15403
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
15378
15404
|
return new _no_name_provided__qut3iv_72();
|
|
15379
15405
|
};
|
|
15380
|
-
protoOf(TransitionsReducerImpl).
|
|
15406
|
+
protoOf(TransitionsReducerImpl).hb2 = function (currentPlayerId) {
|
|
15381
15407
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
15382
15408
|
return new _no_name_provided__qut3iv_73(this, currentPlayerId);
|
|
15383
15409
|
};
|
|
15384
|
-
protoOf(TransitionsReducerImpl).
|
|
15410
|
+
protoOf(TransitionsReducerImpl).jb2 = function () {
|
|
15385
15411
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
15386
15412
|
return new _no_name_provided__qut3iv_74();
|
|
15387
15413
|
};
|
|
15388
15414
|
function PlayerHandSelector(gameClientConfig, putCardValidatorInteractor) {
|
|
15389
|
-
this.
|
|
15390
|
-
this.
|
|
15415
|
+
this.ob2_1 = gameClientConfig;
|
|
15416
|
+
this.pb2_1 = putCardValidatorInteractor;
|
|
15391
15417
|
}
|
|
15392
|
-
protoOf(PlayerHandSelector).
|
|
15393
|
-
if (isCurrentPlayer && !(
|
|
15394
|
-
return minus(cards,
|
|
15418
|
+
protoOf(PlayerHandSelector).xb2 = function (playerId, isCurrentPlayer, cards, players, processingCardOnTable) {
|
|
15419
|
+
if (isCurrentPlayer && !(processingCardOnTable == null)) {
|
|
15420
|
+
return minus(cards, processingCardOnTable);
|
|
15395
15421
|
}
|
|
15396
15422
|
if (cards.p()) {
|
|
15397
15423
|
return emptyList();
|
|
15398
15424
|
}
|
|
15399
|
-
if (isCurrentPlayer || this.
|
|
15425
|
+
if (isCurrentPlayer || this.ob2_1.areOpponentsCardsOpened) {
|
|
15400
15426
|
return cards;
|
|
15401
15427
|
}
|
|
15402
15428
|
var index = getItemIndex(players, get_byIdPlayerPredicate()(playerId));
|
|
15403
15429
|
return generateHiddenPlayerHandCards(cards.m(), index);
|
|
15404
15430
|
};
|
|
15405
|
-
protoOf(PlayerHandSelector).
|
|
15406
|
-
|
|
15407
|
-
return $super === VOID ? this.
|
|
15431
|
+
protoOf(PlayerHandSelector).qb2 = function (playerId, isCurrentPlayer, cards, players, processingCardOnTable, $super) {
|
|
15432
|
+
processingCardOnTable = processingCardOnTable === VOID ? null : processingCardOnTable;
|
|
15433
|
+
return $super === VOID ? this.xb2(playerId, isCurrentPlayer, cards, players, processingCardOnTable) : $super.xb2.call(this, playerId, isCurrentPlayer, cards, players, processingCardOnTable);
|
|
15408
15434
|
};
|
|
15409
15435
|
function Companion_3() {
|
|
15410
15436
|
}
|
|
15411
|
-
protoOf(Companion_3).
|
|
15437
|
+
protoOf(Companion_3).wb1 = function (config, combinations) {
|
|
15412
15438
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, combinations);
|
|
15413
15439
|
};
|
|
15414
|
-
protoOf(Companion_3).
|
|
15440
|
+
protoOf(Companion_3).vb1 = function (config, combinations, $super) {
|
|
15415
15441
|
combinations = combinations === VOID ? null : combinations;
|
|
15416
|
-
return $super === VOID ? this.
|
|
15442
|
+
return $super === VOID ? this.wb1(config, combinations) : $super.wb1.call(this, config, combinations);
|
|
15417
15443
|
};
|
|
15418
|
-
protoOf(Companion_3).
|
|
15444
|
+
protoOf(Companion_3).jb1 = function (config, isForeground, isSceneActive, messages, bufferedActions, error) {
|
|
15419
15445
|
return new ClientStatePayload(config, messages, VOID, VOID, bufferedActions, isForeground, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
15420
15446
|
};
|
|
15421
|
-
protoOf(Companion_3).
|
|
15447
|
+
protoOf(Companion_3).lb1 = function (config, isForeground, isSceneActive, messages, bufferedActions, expectants, combinations, processingCard, error) {
|
|
15422
15448
|
return new ClientStatePayload(config, messages, VOID, expectants, bufferedActions, isForeground, isSceneActive, VOID, VOID, combinations, VOID, VOID, processingCard, VOID, error);
|
|
15423
15449
|
};
|
|
15424
|
-
protoOf(Companion_3).
|
|
15450
|
+
protoOf(Companion_3).mb1 = function (config, isForeground, isSceneActive) {
|
|
15425
15451
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, isForeground, isSceneActive);
|
|
15426
15452
|
};
|
|
15427
15453
|
var Companion_instance_13;
|
|
@@ -15461,10 +15487,10 @@
|
|
|
15461
15487
|
this.w9q_1 = error;
|
|
15462
15488
|
this.x9q_1 = tutorial;
|
|
15463
15489
|
}
|
|
15464
|
-
protoOf(ClientStatePayload).
|
|
15490
|
+
protoOf(ClientStatePayload).yb2 = function (config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial) {
|
|
15465
15491
|
return new ClientStatePayload(config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
15466
15492
|
};
|
|
15467
|
-
protoOf(ClientStatePayload).
|
|
15493
|
+
protoOf(ClientStatePayload).yaw = function (config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial, $super) {
|
|
15468
15494
|
config = config === VOID ? this.i9q_1 : config;
|
|
15469
15495
|
messages = messages === VOID ? this.j9q_1 : messages;
|
|
15470
15496
|
infoMessage = infoMessage === VOID ? this.k9q_1 : infoMessage;
|
|
@@ -15481,7 +15507,7 @@
|
|
|
15481
15507
|
transitions = transitions === VOID ? this.v9q_1 : transitions;
|
|
15482
15508
|
error = error === VOID ? this.w9q_1 : error;
|
|
15483
15509
|
tutorial = tutorial === VOID ? this.x9q_1 : tutorial;
|
|
15484
|
-
return $super === VOID ? this.
|
|
15510
|
+
return $super === VOID ? this.yb2(config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial) : $super.yb2.call(this, config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, transitions, error, tutorial);
|
|
15485
15511
|
};
|
|
15486
15512
|
protoOf(ClientStatePayload).toString = function () {
|
|
15487
15513
|
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 + ')';
|
|
@@ -15546,17 +15572,17 @@
|
|
|
15546
15572
|
return true;
|
|
15547
15573
|
};
|
|
15548
15574
|
function CombinationToAnnounceState(combinations, acceptedCombinations, declinedCombinations) {
|
|
15549
|
-
this.
|
|
15550
|
-
this.
|
|
15551
|
-
this.
|
|
15575
|
+
this.kaw_1 = combinations;
|
|
15576
|
+
this.law_1 = acceptedCombinations;
|
|
15577
|
+
this.maw_1 = declinedCombinations;
|
|
15552
15578
|
}
|
|
15553
15579
|
protoOf(CombinationToAnnounceState).toString = function () {
|
|
15554
|
-
return 'CombinationToAnnounceState(combinations=' + toString(this.
|
|
15580
|
+
return 'CombinationToAnnounceState(combinations=' + toString(this.kaw_1) + ', acceptedCombinations=' + toString_0(this.law_1) + ', declinedCombinations=' + toString_0(this.maw_1) + ')';
|
|
15555
15581
|
};
|
|
15556
15582
|
protoOf(CombinationToAnnounceState).hashCode = function () {
|
|
15557
|
-
var result = hashCode(this.
|
|
15558
|
-
result = imul(result, 31) + (this.
|
|
15559
|
-
result = imul(result, 31) + (this.
|
|
15583
|
+
var result = hashCode(this.kaw_1);
|
|
15584
|
+
result = imul(result, 31) + (this.law_1 == null ? 0 : hashCode(this.law_1)) | 0;
|
|
15585
|
+
result = imul(result, 31) + (this.maw_1 == null ? 0 : hashCode(this.maw_1)) | 0;
|
|
15560
15586
|
return result;
|
|
15561
15587
|
};
|
|
15562
15588
|
protoOf(CombinationToAnnounceState).equals = function (other) {
|
|
@@ -15565,11 +15591,11 @@
|
|
|
15565
15591
|
if (!(other instanceof CombinationToAnnounceState))
|
|
15566
15592
|
return false;
|
|
15567
15593
|
var tmp0_other_with_cast = other instanceof CombinationToAnnounceState ? other : THROW_CCE();
|
|
15568
|
-
if (!equals(this.
|
|
15594
|
+
if (!equals(this.kaw_1, tmp0_other_with_cast.kaw_1))
|
|
15569
15595
|
return false;
|
|
15570
|
-
if (!equals(this.
|
|
15596
|
+
if (!equals(this.law_1, tmp0_other_with_cast.law_1))
|
|
15571
15597
|
return false;
|
|
15572
|
-
if (!equals(this.
|
|
15598
|
+
if (!equals(this.maw_1, tmp0_other_with_cast.maw_1))
|
|
15573
15599
|
return false;
|
|
15574
15600
|
return true;
|
|
15575
15601
|
};
|
|
@@ -15694,13 +15720,13 @@
|
|
|
15694
15720
|
}
|
|
15695
15721
|
function _get_logger__rkp4sl_1($this) {
|
|
15696
15722
|
// Inline function 'kotlin.getValue' call
|
|
15697
|
-
var this_0 = $this.
|
|
15723
|
+
var this_0 = $this.gb3_1;
|
|
15698
15724
|
logger$factory_3();
|
|
15699
15725
|
return this_0.u();
|
|
15700
15726
|
}
|
|
15701
15727
|
function _get_di__ndbzja($this) {
|
|
15702
15728
|
// Inline function 'kotlin.getValue' call
|
|
15703
|
-
var this_0 = $this.
|
|
15729
|
+
var this_0 = $this.hb3_1;
|
|
15704
15730
|
di$factory();
|
|
15705
15731
|
return this_0.u();
|
|
15706
15732
|
}
|
|
@@ -15743,13 +15769,13 @@
|
|
|
15743
15769
|
};
|
|
15744
15770
|
}
|
|
15745
15771
|
function _no_name_provided__qut3iv_75($item) {
|
|
15746
|
-
this.
|
|
15772
|
+
this.jb3_1 = $item;
|
|
15747
15773
|
}
|
|
15748
15774
|
protoOf(_no_name_provided__qut3iv_75).n6i = function (action) {
|
|
15749
15775
|
return isInterface(action, Action);
|
|
15750
15776
|
};
|
|
15751
15777
|
protoOf(_no_name_provided__qut3iv_75).a97 = function (state, action) {
|
|
15752
|
-
return this.
|
|
15778
|
+
return this.jb3_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
15753
15779
|
};
|
|
15754
15780
|
protoOf(_no_name_provided__qut3iv_75).f6k = function (state, action) {
|
|
15755
15781
|
return this.a97((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -15871,23 +15897,23 @@
|
|
|
15871
15897
|
function GameClientEngineControllerImpl(loggerCallback, production) {
|
|
15872
15898
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
15873
15899
|
production = production === VOID ? true : production;
|
|
15874
|
-
this.
|
|
15900
|
+
this.fb3_1 = loggerCallback;
|
|
15875
15901
|
AppEnvironment_getInstance().g6m(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
15876
15902
|
var tmp = this;
|
|
15877
|
-
tmp.
|
|
15903
|
+
tmp.gb3_1 = lazy_0(GameClientEngineControllerImpl$logger$delegate$lambda);
|
|
15878
15904
|
var tmp_0 = this;
|
|
15879
|
-
tmp_0.
|
|
15905
|
+
tmp_0.hb3_1 = lazy_0(GameClientEngineControllerImpl$di$delegate$lambda(this));
|
|
15880
15906
|
var tmp_1 = this;
|
|
15881
15907
|
// Inline function 'org.kodein.di.instance' call
|
|
15882
15908
|
var this_0 = _get_di__ndbzja(this);
|
|
15883
15909
|
// Inline function 'org.kodein.type.generic' call
|
|
15884
15910
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
15885
15911
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
15886
|
-
tmp_1.
|
|
15912
|
+
tmp_1.ib3_1 = Instance(this_0, tmp$ret$0, null).d62(this, parser$factory());
|
|
15887
15913
|
}
|
|
15888
|
-
protoOf(GameClientEngineControllerImpl).
|
|
15914
|
+
protoOf(GameClientEngineControllerImpl).db3 = function () {
|
|
15889
15915
|
// Inline function 'kotlin.getValue' call
|
|
15890
|
-
var this_0 = this.
|
|
15916
|
+
var this_0 = this.ib3_1;
|
|
15891
15917
|
parser$factory_0();
|
|
15892
15918
|
return this_0.u();
|
|
15893
15919
|
};
|
|
@@ -15897,7 +15923,7 @@
|
|
|
15897
15923
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
15898
15924
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
15899
15925
|
};
|
|
15900
|
-
protoOf(GameClientEngineControllerImpl).
|
|
15926
|
+
protoOf(GameClientEngineControllerImpl).eb3 = function (currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, coreConfig) {
|
|
15901
15927
|
var tmp;
|
|
15902
15928
|
if (coreConfig.fileLogsEnabled) {
|
|
15903
15929
|
tmp = new FileLoggerOutputImpl();
|
|
@@ -15906,8 +15932,8 @@
|
|
|
15906
15932
|
}
|
|
15907
15933
|
var fileLoggerOutput = tmp;
|
|
15908
15934
|
var tmp_0;
|
|
15909
|
-
if (!(this.
|
|
15910
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
15935
|
+
if (!(this.fb3_1 == null)) {
|
|
15936
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.fb3_1));
|
|
15911
15937
|
} else {
|
|
15912
15938
|
tmp_0 = null;
|
|
15913
15939
|
}
|
|
@@ -16109,9 +16135,10 @@
|
|
|
16109
16135
|
protoOf(ExpectantTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
16110
16136
|
protoOf(ResetMessageTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
16111
16137
|
protoOf(ResetMessageTimerTag).p8t = notValidateTimerReset;
|
|
16138
|
+
protoOf(TransitionsReducerImpl).kav = reducers;
|
|
16112
16139
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngineWithLogic = createOnlineGameEngineWithLogic;
|
|
16113
16140
|
defineProp(protoOf(GameClientEngineControllerImpl), 'parser', function () {
|
|
16114
|
-
return this.
|
|
16141
|
+
return this.db3();
|
|
16115
16142
|
});
|
|
16116
16143
|
//endregion
|
|
16117
16144
|
//region block: init
|