raspberry_games_server_game_logic 1.8.274 → 1.8.276
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.
|
@@ -125,13 +125,13 @@
|
|
|
125
125
|
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
126
126
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
|
|
127
127
|
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.m;
|
|
128
|
-
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
|
|
129
128
|
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.q;
|
|
130
129
|
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
|
|
131
130
|
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
|
|
132
131
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
133
132
|
var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
|
|
134
133
|
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
|
|
134
|
+
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
|
|
135
135
|
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
|
|
136
136
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
|
|
137
137
|
var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
@@ -318,6 +318,7 @@
|
|
|
318
318
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
319
319
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
320
320
|
initMetadataForClass(ServerShutdownReason, 'ServerShutdownReason', VOID, Enum);
|
|
321
|
+
initMetadataForCompanion(Companion_0);
|
|
321
322
|
initMetadataForClass(ServerConfig, 'ServerConfig');
|
|
322
323
|
initMetadataForInterface(ServerStateUpdate, 'ServerStateUpdate');
|
|
323
324
|
initMetadataForClass(TableStateUpdate, 'TableStateUpdate', VOID, VOID, [ServerStateUpdate]);
|
|
@@ -332,17 +333,17 @@
|
|
|
332
333
|
initMetadataForLambda(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
333
334
|
initMetadataForCoroutine($collectCOROUTINE$2, CoroutineImpl);
|
|
334
335
|
initMetadataForClass(_no_name_provided__qut3iv_0, VOID, VOID, VOID, [Flow], [1]);
|
|
335
|
-
initMetadataForCompanion(
|
|
336
|
+
initMetadataForCompanion(Companion_1);
|
|
336
337
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_2, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
337
338
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_3, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
338
339
|
initMetadataForLambda(MechanicEventsObserverImpl$observeUpdates$slambda, CoroutineImpl, VOID, [2]);
|
|
339
340
|
initMetadataForClass(_no_name_provided__qut3iv_1, VOID, VOID, VOID, [Flow], [1]);
|
|
340
341
|
initMetadataForLambda(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda, CoroutineImpl, VOID, [2]);
|
|
341
|
-
initMetadataForClass(MechanicEventsObserverImpl, 'MechanicEventsObserverImpl',
|
|
342
|
+
initMetadataForClass(MechanicEventsObserverImpl, 'MechanicEventsObserverImpl', MechanicEventsObserverImpl, VOID, [MechanicEventsObserver], [1]);
|
|
342
343
|
initMetadataForInterface(ToClientEventsObserver, 'ToClientEventsObserver', VOID, VOID, VOID, [1, 0]);
|
|
343
344
|
initMetadataForLambda(ToClientEventsObserverImpl$observeEvents$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
344
345
|
initMetadataForClass(GroupKey, 'GroupKey');
|
|
345
|
-
initMetadataForCompanion(
|
|
346
|
+
initMetadataForCompanion(Companion_2);
|
|
346
347
|
initMetadataForLambda(ToClientEventsObserverImpl$observeEvents$slambda, CoroutineImpl, VOID, [1]);
|
|
347
348
|
initMetadataForCoroutine($sentEventCOROUTINE$3, CoroutineImpl);
|
|
348
349
|
initMetadataForCoroutine($waitForCOROUTINE$4, CoroutineImpl);
|
|
@@ -362,7 +363,7 @@
|
|
|
362
363
|
initMetadataForClass(_no_name_provided__qut3iv_6, VOID, VOID, VOID, [Reducer]);
|
|
363
364
|
initMetadataForClass(ServerMechanicLifecycleReducer, 'ServerMechanicLifecycleReducer', VOID, BaseMechanicLifecycleReducer, [BaseMechanicLifecycleReducer, MechanicLifecycleReducer]);
|
|
364
365
|
initMetadataForClass(_no_name_provided__qut3iv_7, VOID, VOID, VOID, [Reducer]);
|
|
365
|
-
initMetadataForCompanion(
|
|
366
|
+
initMetadataForCompanion(Companion_3);
|
|
366
367
|
initMetadataForClass(ServerStatePayload, 'ServerStatePayload', VOID, VOID, [AppStatePayload]);
|
|
367
368
|
function createGameEngineWithLogic(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig, $super) {
|
|
368
369
|
var tmp;
|
|
@@ -385,7 +386,7 @@
|
|
|
385
386
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
386
387
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
387
388
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
388
|
-
return this.
|
|
389
|
+
return this.ga3(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
389
390
|
}
|
|
390
391
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
391
392
|
initMetadataForClass(_no_name_provided__qut3iv_8, VOID, VOID, VOID, [Reducer]);
|
|
@@ -743,7 +744,7 @@
|
|
|
743
744
|
case 0:
|
|
744
745
|
this.f9_1 = 2;
|
|
745
746
|
this.e9_1 = 1;
|
|
746
|
-
var tmp_0 = _get_mechanicEventsObserver__ll1b9k(this.g9m_1).j9m();
|
|
747
|
+
var tmp_0 = _get_mechanicEventsObserver__ll1b9k(this.g9m_1).j9m(this.g9m_1.j6q());
|
|
747
748
|
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.h9m_1, null);
|
|
748
749
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
749
750
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1677,7 +1678,7 @@
|
|
|
1677
1678
|
return l;
|
|
1678
1679
|
}
|
|
1679
1680
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1680
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID,
|
|
1681
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_11.t9t()) : preloadedState;
|
|
1681
1682
|
var tmp;
|
|
1682
1683
|
if (externalReducers === VOID) {
|
|
1683
1684
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1899,6 +1900,15 @@
|
|
|
1899
1900
|
ServerShutdownReason_initEntries();
|
|
1900
1901
|
return ServerShutdownReason_ERROR_instance;
|
|
1901
1902
|
}
|
|
1903
|
+
function Companion_0() {
|
|
1904
|
+
}
|
|
1905
|
+
protoOf(Companion_0).z8j = function () {
|
|
1906
|
+
return new ServerConfig(true);
|
|
1907
|
+
};
|
|
1908
|
+
var Companion_instance_8;
|
|
1909
|
+
function Companion_getInstance_1() {
|
|
1910
|
+
return Companion_instance_8;
|
|
1911
|
+
}
|
|
1902
1912
|
function ServerConfig(canStartNewGame) {
|
|
1903
1913
|
this.e9t_1 = canStartNewGame;
|
|
1904
1914
|
}
|
|
@@ -2071,13 +2081,7 @@
|
|
|
2071
2081
|
return new ToClientEventsObserverImpl(tmp_1, tmp_4, tmp$ret$5);
|
|
2072
2082
|
}
|
|
2073
2083
|
function getServerEngineGameDI$lambda$lambda_2($this$singleton) {
|
|
2074
|
-
|
|
2075
|
-
var tmp = $this$singleton.l5z();
|
|
2076
|
-
// Inline function 'org.kodein.type.generic' call
|
|
2077
|
-
var tmp_0 = typeToken(createKType(getKClass(StateProvider), arrayOf([]), false));
|
|
2078
|
-
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2079
|
-
var tmp$ret$1 = tmp.k5z(tmp$ret$0, null);
|
|
2080
|
-
return new MechanicEventsObserverImpl(tmp$ret$1);
|
|
2084
|
+
return new MechanicEventsObserverImpl();
|
|
2081
2085
|
}
|
|
2082
2086
|
function getServerEngineGameDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig) {
|
|
2083
2087
|
return function ($this$Module) {
|
|
@@ -2382,7 +2386,7 @@
|
|
|
2382
2386
|
continue $sm;
|
|
2383
2387
|
case 1:
|
|
2384
2388
|
this.e9_1 = 2;
|
|
2385
|
-
var this_0 = windowedByInterval(this.h9v_1.
|
|
2389
|
+
var this_0 = windowedByInterval(this.h9v_1.l9v_1, new Long(1000, 0));
|
|
2386
2390
|
suspendResult = emitAll(this.i9v_1, new _no_name_provided__qut3iv(this_0), this);
|
|
2387
2391
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2388
2392
|
return suspendResult;
|
|
@@ -2419,7 +2423,7 @@
|
|
|
2419
2423
|
return l;
|
|
2420
2424
|
}
|
|
2421
2425
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2422
|
-
this.
|
|
2426
|
+
this.u9v_1 = $$this$unsafeFlow;
|
|
2423
2427
|
CoroutineImpl.call(this, resultContinuation);
|
|
2424
2428
|
}
|
|
2425
2429
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2440,12 +2444,12 @@
|
|
|
2440
2444
|
case 0:
|
|
2441
2445
|
this.f9_1 = 2;
|
|
2442
2446
|
var tmp_0 = this;
|
|
2443
|
-
tmp_0.
|
|
2447
|
+
tmp_0.w9v_1 = this.u9v_1;
|
|
2444
2448
|
var tmp_1 = this;
|
|
2445
|
-
tmp_1.
|
|
2449
|
+
tmp_1.x9v_1 = this.v9v_1;
|
|
2446
2450
|
this.e9_1 = 1;
|
|
2447
|
-
var state = this.
|
|
2448
|
-
suspendResult = this.
|
|
2451
|
+
var state = this.x9v_1;
|
|
2452
|
+
suspendResult = this.w9v_1.p18(state.m6r().gameInfo.roundNumberTotal, this);
|
|
2449
2453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2450
2454
|
return suspendResult;
|
|
2451
2455
|
}
|
|
@@ -2468,8 +2472,8 @@
|
|
|
2468
2472
|
while (true);
|
|
2469
2473
|
};
|
|
2470
2474
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).j1i = function (value, completion) {
|
|
2471
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
2472
|
-
i.
|
|
2475
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.u9v_1, completion);
|
|
2476
|
+
i.v9v_1 = value;
|
|
2473
2477
|
return i;
|
|
2474
2478
|
};
|
|
2475
2479
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2482,8 +2486,8 @@
|
|
|
2482
2486
|
}
|
|
2483
2487
|
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
2484
2488
|
CoroutineImpl.call(this, resultContinuation);
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2489
|
+
this.g9w_1 = _this__u8e3s4;
|
|
2490
|
+
this.h9w_1 = collector;
|
|
2487
2491
|
}
|
|
2488
2492
|
protoOf($collectCOROUTINE$1).m9 = function () {
|
|
2489
2493
|
var suspendResult = this.g9_1;
|
|
@@ -2494,10 +2498,10 @@
|
|
|
2494
2498
|
case 0:
|
|
2495
2499
|
this.f9_1 = 2;
|
|
2496
2500
|
var tmp_0 = this;
|
|
2497
|
-
tmp_0.
|
|
2501
|
+
tmp_0.i9w_1 = this.h9w_1;
|
|
2498
2502
|
this.e9_1 = 1;
|
|
2499
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.
|
|
2500
|
-
suspendResult = this.
|
|
2503
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.i9w_1, null);
|
|
2504
|
+
suspendResult = this.g9w_1.j9w_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2501
2505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2502
2506
|
return suspendResult;
|
|
2503
2507
|
}
|
|
@@ -2520,7 +2524,7 @@
|
|
|
2520
2524
|
while (true);
|
|
2521
2525
|
};
|
|
2522
2526
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2523
|
-
this.
|
|
2527
|
+
this.s9w_1 = $$this$unsafeFlow;
|
|
2524
2528
|
CoroutineImpl.call(this, resultContinuation);
|
|
2525
2529
|
}
|
|
2526
2530
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2544,33 +2548,33 @@
|
|
|
2544
2548
|
continue $sm;
|
|
2545
2549
|
case 1:
|
|
2546
2550
|
var tmp_0 = this;
|
|
2547
|
-
tmp_0.
|
|
2551
|
+
tmp_0.v9w_1 = this.s9w_1;
|
|
2548
2552
|
var tmp_1 = this;
|
|
2549
|
-
tmp_1.
|
|
2553
|
+
tmp_1.w9w_1 = this.t9w_1;
|
|
2550
2554
|
var tmp_2 = this;
|
|
2551
|
-
tmp_2.
|
|
2552
|
-
if (this.
|
|
2553
|
-
this.
|
|
2555
|
+
tmp_2.x9w_1 = this.w9w_1.k6q_1;
|
|
2556
|
+
if (this.x9w_1 == null) {
|
|
2557
|
+
this.u9w_1 = Unit_instance;
|
|
2554
2558
|
this.e9_1 = 4;
|
|
2555
2559
|
var tmp_3 = this;
|
|
2556
2560
|
continue $sm;
|
|
2557
2561
|
} else {
|
|
2558
|
-
this.
|
|
2562
|
+
this.y9w_1 = this.x9w_1;
|
|
2559
2563
|
this.e9_1 = 2;
|
|
2560
2564
|
continue $sm;
|
|
2561
2565
|
}
|
|
2562
2566
|
|
|
2563
2567
|
case 2:
|
|
2564
|
-
this.
|
|
2568
|
+
this.z9w_1 = this.y9w_1;
|
|
2565
2569
|
this.e9_1 = 3;
|
|
2566
|
-
suspendResult = this.
|
|
2570
|
+
suspendResult = this.v9w_1.p18(this.z9w_1, this);
|
|
2567
2571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2568
2572
|
return suspendResult;
|
|
2569
2573
|
}
|
|
2570
2574
|
|
|
2571
2575
|
continue $sm;
|
|
2572
2576
|
case 3:
|
|
2573
|
-
this.
|
|
2577
|
+
this.u9w_1 = suspendResult;
|
|
2574
2578
|
if (false) {
|
|
2575
2579
|
this.e9_1 = 1;
|
|
2576
2580
|
continue $sm;
|
|
@@ -2595,8 +2599,8 @@
|
|
|
2595
2599
|
while (true);
|
|
2596
2600
|
};
|
|
2597
2601
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).j1i = function (value, completion) {
|
|
2598
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.
|
|
2599
|
-
i.
|
|
2602
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.s9w_1, completion);
|
|
2603
|
+
i.t9w_1 = value;
|
|
2600
2604
|
return i;
|
|
2601
2605
|
};
|
|
2602
2606
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2609,8 +2613,8 @@
|
|
|
2609
2613
|
}
|
|
2610
2614
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
2611
2615
|
CoroutineImpl.call(this, resultContinuation);
|
|
2612
|
-
this.
|
|
2613
|
-
this.
|
|
2616
|
+
this.i9x_1 = _this__u8e3s4;
|
|
2617
|
+
this.j9x_1 = collector;
|
|
2614
2618
|
}
|
|
2615
2619
|
protoOf($collectCOROUTINE$2).m9 = function () {
|
|
2616
2620
|
var suspendResult = this.g9_1;
|
|
@@ -2621,10 +2625,10 @@
|
|
|
2621
2625
|
case 0:
|
|
2622
2626
|
this.f9_1 = 2;
|
|
2623
2627
|
var tmp_0 = this;
|
|
2624
|
-
tmp_0.
|
|
2628
|
+
tmp_0.k9x_1 = this.j9x_1;
|
|
2625
2629
|
this.e9_1 = 1;
|
|
2626
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.
|
|
2627
|
-
suspendResult = this.
|
|
2630
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.k9x_1, null);
|
|
2631
|
+
suspendResult = this.i9x_1.l9x_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2628
2632
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2629
2633
|
return suspendResult;
|
|
2630
2634
|
}
|
|
@@ -2647,7 +2651,7 @@
|
|
|
2647
2651
|
while (true);
|
|
2648
2652
|
};
|
|
2649
2653
|
function _no_name_provided__qut3iv_0($this) {
|
|
2650
|
-
this.
|
|
2654
|
+
this.l9x_1 = $this;
|
|
2651
2655
|
}
|
|
2652
2656
|
protoOf(_no_name_provided__qut3iv_0).q18 = function (collector, $completion) {
|
|
2653
2657
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
@@ -2658,31 +2662,30 @@
|
|
|
2658
2662
|
protoOf(_no_name_provided__qut3iv_0).m17 = function (collector, $completion) {
|
|
2659
2663
|
return this.q18(collector, $completion);
|
|
2660
2664
|
};
|
|
2661
|
-
function observeTableWhenRoundChanges($this) {
|
|
2665
|
+
function observeTableWhenRoundChanges($this, observeState) {
|
|
2662
2666
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
2663
2667
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
2664
2668
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2665
|
-
var this_0 = $this.l9v_1.j6q();
|
|
2666
2669
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2667
|
-
var tmp$ret$2 = new _no_name_provided__qut3iv_1(
|
|
2668
|
-
var
|
|
2669
|
-
return transformLatest(
|
|
2670
|
+
var tmp$ret$2 = new _no_name_provided__qut3iv_1(observeState);
|
|
2671
|
+
var this_0 = distinctUntilChanged(tmp$ret$2);
|
|
2672
|
+
return transformLatest(this_0, MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0(observeState, null));
|
|
2670
2673
|
}
|
|
2671
|
-
function
|
|
2672
|
-
this.
|
|
2674
|
+
function Companion_1() {
|
|
2675
|
+
this.m9x_1 = 1000;
|
|
2673
2676
|
}
|
|
2674
|
-
var
|
|
2675
|
-
function
|
|
2676
|
-
return
|
|
2677
|
+
var Companion_instance_9;
|
|
2678
|
+
function Companion_getInstance_2() {
|
|
2679
|
+
return Companion_instance_9;
|
|
2677
2680
|
}
|
|
2678
2681
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
2679
|
-
this.
|
|
2682
|
+
this.n9x_1 = function_0;
|
|
2680
2683
|
}
|
|
2681
2684
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).p18 = function (value, $completion) {
|
|
2682
|
-
return this.
|
|
2685
|
+
return this.n9x_1(value, $completion);
|
|
2683
2686
|
};
|
|
2684
2687
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).o3 = function () {
|
|
2685
|
-
return this.
|
|
2688
|
+
return this.n9x_1;
|
|
2686
2689
|
};
|
|
2687
2690
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
2688
2691
|
var tmp;
|
|
@@ -2703,13 +2706,13 @@
|
|
|
2703
2706
|
return hashCode(this.o3());
|
|
2704
2707
|
};
|
|
2705
2708
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
2706
|
-
this.
|
|
2709
|
+
this.o9x_1 = function_0;
|
|
2707
2710
|
}
|
|
2708
2711
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).p18 = function (value, $completion) {
|
|
2709
|
-
return this.
|
|
2712
|
+
return this.o9x_1(value, $completion);
|
|
2710
2713
|
};
|
|
2711
2714
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).o3 = function () {
|
|
2712
|
-
return this.
|
|
2715
|
+
return this.o9x_1;
|
|
2713
2716
|
};
|
|
2714
2717
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
2715
2718
|
var tmp;
|
|
@@ -2730,18 +2733,18 @@
|
|
|
2730
2733
|
return hashCode(this.o3());
|
|
2731
2734
|
};
|
|
2732
2735
|
function MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation) {
|
|
2733
|
-
this.
|
|
2736
|
+
this.x9x_1 = this$0;
|
|
2734
2737
|
CoroutineImpl.call(this, resultContinuation);
|
|
2735
2738
|
}
|
|
2736
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2737
|
-
var tmp = this.
|
|
2739
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).a9y = function ($this$transformLatest, it, $completion) {
|
|
2740
|
+
var tmp = this.b9y($this$transformLatest, it, $completion);
|
|
2738
2741
|
tmp.g9_1 = Unit_instance;
|
|
2739
2742
|
tmp.h9_1 = null;
|
|
2740
2743
|
return tmp.m9();
|
|
2741
2744
|
};
|
|
2742
2745
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).x9 = function (p1, p2, $completion) {
|
|
2743
2746
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2744
|
-
return this.
|
|
2747
|
+
return this.a9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2745
2748
|
};
|
|
2746
2749
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).m9 = function () {
|
|
2747
2750
|
var suspendResult = this.g9_1;
|
|
@@ -2752,8 +2755,8 @@
|
|
|
2752
2755
|
case 0:
|
|
2753
2756
|
this.f9_1 = 2;
|
|
2754
2757
|
this.e9_1 = 1;
|
|
2755
|
-
var table = this.
|
|
2756
|
-
suspendResult = emitAll(this.
|
|
2758
|
+
var table = this.z9x_1;
|
|
2759
|
+
suspendResult = emitAll(this.y9x_1, flow(MechanicEventsObserverImpl$observeUpdates$slambda$slambda_0(table, this.x9x_1, null)), this);
|
|
2757
2760
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2758
2761
|
return suspendResult;
|
|
2759
2762
|
}
|
|
@@ -2775,22 +2778,22 @@
|
|
|
2775
2778
|
}
|
|
2776
2779
|
while (true);
|
|
2777
2780
|
};
|
|
2778
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2779
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.
|
|
2780
|
-
i.
|
|
2781
|
-
i.
|
|
2781
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).b9y = function ($this$transformLatest, it, completion) {
|
|
2782
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.x9x_1, completion);
|
|
2783
|
+
i.y9x_1 = $this$transformLatest;
|
|
2784
|
+
i.z9x_1 = it;
|
|
2782
2785
|
return i;
|
|
2783
2786
|
};
|
|
2784
2787
|
function MechanicEventsObserverImpl$observeUpdates$slambda_0(this$0, resultContinuation) {
|
|
2785
2788
|
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation);
|
|
2786
2789
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2787
|
-
return i.
|
|
2790
|
+
return i.a9y($this$transformLatest, it, $completion);
|
|
2788
2791
|
};
|
|
2789
2792
|
l.$arity = 2;
|
|
2790
2793
|
return l;
|
|
2791
2794
|
}
|
|
2792
2795
|
function _no_name_provided__qut3iv_1($this) {
|
|
2793
|
-
this.
|
|
2796
|
+
this.j9w_1 = $this;
|
|
2794
2797
|
}
|
|
2795
2798
|
protoOf(_no_name_provided__qut3iv_1).q18 = function (collector, $completion) {
|
|
2796
2799
|
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
@@ -2801,19 +2804,19 @@
|
|
|
2801
2804
|
protoOf(_no_name_provided__qut3iv_1).m17 = function (collector, $completion) {
|
|
2802
2805
|
return this.q18(collector, $completion);
|
|
2803
2806
|
};
|
|
2804
|
-
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(
|
|
2805
|
-
this.
|
|
2807
|
+
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda($observeState, resultContinuation) {
|
|
2808
|
+
this.k9y_1 = $observeState;
|
|
2806
2809
|
CoroutineImpl.call(this, resultContinuation);
|
|
2807
2810
|
}
|
|
2808
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2809
|
-
var tmp = this.
|
|
2811
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).a9y = function ($this$transformLatest, it, $completion) {
|
|
2812
|
+
var tmp = this.b9y($this$transformLatest, it, $completion);
|
|
2810
2813
|
tmp.g9_1 = Unit_instance;
|
|
2811
2814
|
tmp.h9_1 = null;
|
|
2812
2815
|
return tmp.m9();
|
|
2813
2816
|
};
|
|
2814
2817
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).x9 = function (p1, p2, $completion) {
|
|
2815
2818
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2816
|
-
return this.
|
|
2819
|
+
return this.a9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2817
2820
|
};
|
|
2818
2821
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).m9 = function () {
|
|
2819
2822
|
var suspendResult = this.g9_1;
|
|
@@ -2824,9 +2827,9 @@
|
|
|
2824
2827
|
case 0:
|
|
2825
2828
|
this.f9_1 = 2;
|
|
2826
2829
|
this.e9_1 = 1;
|
|
2827
|
-
this.
|
|
2828
|
-
var this_0 = this.
|
|
2829
|
-
suspendResult = emitAll(this.
|
|
2830
|
+
this.m9y_1;
|
|
2831
|
+
var this_0 = this.k9y_1;
|
|
2832
|
+
suspendResult = emitAll(this.l9y_1, new _no_name_provided__qut3iv_0(this_0), this);
|
|
2830
2833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2831
2834
|
return suspendResult;
|
|
2832
2835
|
}
|
|
@@ -2848,47 +2851,46 @@
|
|
|
2848
2851
|
}
|
|
2849
2852
|
while (true);
|
|
2850
2853
|
};
|
|
2851
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2852
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.
|
|
2853
|
-
i.
|
|
2854
|
-
i.
|
|
2854
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).b9y = function ($this$transformLatest, it, completion) {
|
|
2855
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.k9y_1, completion);
|
|
2856
|
+
i.l9y_1 = $this$transformLatest;
|
|
2857
|
+
i.m9y_1 = it;
|
|
2855
2858
|
return i;
|
|
2856
2859
|
};
|
|
2857
|
-
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0(
|
|
2858
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(
|
|
2860
|
+
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0($observeState, resultContinuation) {
|
|
2861
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda($observeState, resultContinuation);
|
|
2859
2862
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2860
|
-
return i.
|
|
2863
|
+
return i.a9y($this$transformLatest, it, $completion);
|
|
2861
2864
|
};
|
|
2862
2865
|
l.$arity = 2;
|
|
2863
2866
|
return l;
|
|
2864
2867
|
}
|
|
2865
|
-
function MechanicEventsObserverImpl(
|
|
2866
|
-
this.l9v_1 =
|
|
2867
|
-
this.m9v_1 = MutableSharedFlow();
|
|
2868
|
+
function MechanicEventsObserverImpl() {
|
|
2869
|
+
this.l9v_1 = MutableSharedFlow();
|
|
2868
2870
|
}
|
|
2869
2871
|
protoOf(MechanicEventsObserverImpl).z9t = function (event, $completion) {
|
|
2870
|
-
return this.
|
|
2872
|
+
return this.l9v_1.p18(event, $completion);
|
|
2871
2873
|
};
|
|
2872
|
-
protoOf(MechanicEventsObserverImpl).j9m = function () {
|
|
2874
|
+
protoOf(MechanicEventsObserverImpl).j9m = function (observeState) {
|
|
2873
2875
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
2874
|
-
var this_0 = observeTableWhenRoundChanges(this);
|
|
2876
|
+
var this_0 = observeTableWhenRoundChanges(this, observeState);
|
|
2875
2877
|
return transformLatest(this_0, MechanicEventsObserverImpl$observeUpdates$slambda_0(this, null));
|
|
2876
2878
|
};
|
|
2877
2879
|
function ToClientEventsObserver() {
|
|
2878
2880
|
}
|
|
2879
2881
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2882
|
+
this.w9y_1 = this$0;
|
|
2883
|
+
this.x9y_1 = $actions;
|
|
2882
2884
|
CoroutineImpl.call(this, resultContinuation);
|
|
2883
2885
|
}
|
|
2884
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2885
|
-
var tmp = this.
|
|
2886
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).e9z = function ($this$flow, $completion) {
|
|
2887
|
+
var tmp = this.f9z($this$flow, $completion);
|
|
2886
2888
|
tmp.g9_1 = Unit_instance;
|
|
2887
2889
|
tmp.h9_1 = null;
|
|
2888
2890
|
return tmp.m9();
|
|
2889
2891
|
};
|
|
2890
2892
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
2891
|
-
return this.
|
|
2893
|
+
return this.e9z((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2892
2894
|
};
|
|
2893
2895
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).m9 = function () {
|
|
2894
2896
|
var suspendResult = this.g9_1;
|
|
@@ -2899,23 +2901,23 @@
|
|
|
2899
2901
|
case 0:
|
|
2900
2902
|
this.f9_1 = 4;
|
|
2901
2903
|
var tmp_0 = this;
|
|
2902
|
-
tmp_0.
|
|
2904
|
+
tmp_0.z9y_1 = this.w9y_1.k9z_1;
|
|
2903
2905
|
var tmp_1 = this;
|
|
2904
|
-
tmp_1.
|
|
2905
|
-
this.
|
|
2906
|
+
tmp_1.a9z_1 = transformToEmits(this.w9y_1, this.x9y_1);
|
|
2907
|
+
this.b9z_1 = this.a9z_1.j();
|
|
2906
2908
|
this.e9_1 = 1;
|
|
2907
2909
|
continue $sm;
|
|
2908
2910
|
case 1:
|
|
2909
|
-
if (!this.
|
|
2911
|
+
if (!this.b9z_1.k()) {
|
|
2910
2912
|
this.e9_1 = 3;
|
|
2911
2913
|
continue $sm;
|
|
2912
2914
|
}
|
|
2913
2915
|
|
|
2914
|
-
this.
|
|
2916
|
+
this.c9z_1 = this.b9z_1.l();
|
|
2915
2917
|
var tmp_2 = this;
|
|
2916
|
-
tmp_2.
|
|
2918
|
+
tmp_2.d9z_1 = this.c9z_1;
|
|
2917
2919
|
this.e9_1 = 2;
|
|
2918
|
-
suspendResult = this.
|
|
2920
|
+
suspendResult = this.y9y_1.p18(this.d9z_1, this);
|
|
2919
2921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2920
2922
|
return suspendResult;
|
|
2921
2923
|
}
|
|
@@ -2926,10 +2928,10 @@
|
|
|
2926
2928
|
continue $sm;
|
|
2927
2929
|
case 3:
|
|
2928
2930
|
l$ret$1: do {
|
|
2929
|
-
var this_0 = this.
|
|
2931
|
+
var this_0 = this.w9y_1.j9z_1;
|
|
2930
2932
|
while (true) {
|
|
2931
2933
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2932
|
-
var upd = cur - this.
|
|
2934
|
+
var upd = cur - this.x9y_1.m() | 0;
|
|
2933
2935
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2934
2936
|
break l$ret$1;
|
|
2935
2937
|
}
|
|
@@ -2951,15 +2953,15 @@
|
|
|
2951
2953
|
}
|
|
2952
2954
|
while (true);
|
|
2953
2955
|
};
|
|
2954
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2955
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2956
|
-
i.
|
|
2956
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).f9z = function ($this$flow, completion) {
|
|
2957
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.w9y_1, this.x9y_1, completion);
|
|
2958
|
+
i.y9y_1 = $this$flow;
|
|
2957
2959
|
return i;
|
|
2958
2960
|
};
|
|
2959
2961
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2960
2962
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2961
2963
|
var l = function ($this$flow, $completion) {
|
|
2962
|
-
return i.
|
|
2964
|
+
return i.e9z($this$flow, $completion);
|
|
2963
2965
|
};
|
|
2964
2966
|
l.$arity = 1;
|
|
2965
2967
|
return l;
|
|
@@ -3032,29 +3034,29 @@
|
|
|
3032
3034
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
3033
3035
|
}
|
|
3034
3036
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3035
|
-
var tmp = $this.
|
|
3037
|
+
var tmp = $this.i9z_1.s6h();
|
|
3036
3038
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3037
|
-
var this_0 = _this__u8e3s4.
|
|
3039
|
+
var this_0 = _this__u8e3s4.n9z_1;
|
|
3038
3040
|
var tmp_0 = copyToArray(this_0);
|
|
3039
3041
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3040
|
-
var this_1 = _this__u8e3s4.
|
|
3042
|
+
var this_1 = _this__u8e3s4.o9z_1;
|
|
3041
3043
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3042
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3044
|
+
return new ActionDeliveryPayload(_this__u8e3s4.m9z_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.p9z_1);
|
|
3043
3045
|
}
|
|
3044
3046
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3045
|
-
this.
|
|
3046
|
-
this.
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3047
|
+
this.m9z_1 = tableId;
|
|
3048
|
+
this.n9z_1 = includePlayers;
|
|
3049
|
+
this.o9z_1 = excludePlayers;
|
|
3050
|
+
this.p9z_1 = deliveryType;
|
|
3049
3051
|
}
|
|
3050
3052
|
protoOf(GroupKey).toString = function () {
|
|
3051
|
-
return 'GroupKey(tableId=' + this.
|
|
3053
|
+
return 'GroupKey(tableId=' + this.m9z_1 + ', includePlayers=' + toString(this.n9z_1) + ', excludePlayers=' + toString(this.o9z_1) + ', deliveryType=' + this.p9z_1.toString() + ')';
|
|
3052
3054
|
};
|
|
3053
3055
|
protoOf(GroupKey).hashCode = function () {
|
|
3054
|
-
var result = getStringHashCode(this.
|
|
3056
|
+
var result = getStringHashCode(this.m9z_1);
|
|
3057
|
+
result = imul(result, 31) + hashCode(this.n9z_1) | 0;
|
|
3055
3058
|
result = imul(result, 31) + hashCode(this.o9z_1) | 0;
|
|
3056
|
-
result = imul(result, 31) +
|
|
3057
|
-
result = imul(result, 31) + this.q9z_1.hashCode() | 0;
|
|
3059
|
+
result = imul(result, 31) + this.p9z_1.hashCode() | 0;
|
|
3058
3060
|
return result;
|
|
3059
3061
|
};
|
|
3060
3062
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3063,35 +3065,35 @@
|
|
|
3063
3065
|
if (!(other instanceof GroupKey))
|
|
3064
3066
|
return false;
|
|
3065
3067
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3066
|
-
if (!(this.
|
|
3068
|
+
if (!(this.m9z_1 === tmp0_other_with_cast.m9z_1))
|
|
3067
3069
|
return false;
|
|
3068
|
-
if (!equals(this.
|
|
3070
|
+
if (!equals(this.n9z_1, tmp0_other_with_cast.n9z_1))
|
|
3069
3071
|
return false;
|
|
3070
|
-
if (!equals(this.
|
|
3072
|
+
if (!equals(this.o9z_1, tmp0_other_with_cast.o9z_1))
|
|
3071
3073
|
return false;
|
|
3072
|
-
if (!this.
|
|
3074
|
+
if (!this.p9z_1.equals(tmp0_other_with_cast.p9z_1))
|
|
3073
3075
|
return false;
|
|
3074
3076
|
return true;
|
|
3075
3077
|
};
|
|
3076
|
-
function
|
|
3077
|
-
this.
|
|
3078
|
+
function Companion_2() {
|
|
3079
|
+
this.q9z_1 = 6;
|
|
3078
3080
|
}
|
|
3079
|
-
var
|
|
3080
|
-
function
|
|
3081
|
-
return
|
|
3081
|
+
var Companion_instance_10;
|
|
3082
|
+
function Companion_getInstance_3() {
|
|
3083
|
+
return Companion_instance_10;
|
|
3082
3084
|
}
|
|
3083
3085
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3084
|
-
this.
|
|
3086
|
+
this.z9z_1 = this$0;
|
|
3085
3087
|
CoroutineImpl.call(this, resultContinuation);
|
|
3086
3088
|
}
|
|
3087
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3088
|
-
var tmp = this.
|
|
3089
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ba0 = function (actions, $completion) {
|
|
3090
|
+
var tmp = this.ca0(actions, $completion);
|
|
3089
3091
|
tmp.g9_1 = Unit_instance;
|
|
3090
3092
|
tmp.h9_1 = null;
|
|
3091
3093
|
return tmp.m9();
|
|
3092
3094
|
};
|
|
3093
3095
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).w9 = function (p1, $completion) {
|
|
3094
|
-
return this.
|
|
3096
|
+
return this.ba0((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3095
3097
|
};
|
|
3096
3098
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).m9 = function () {
|
|
3097
3099
|
var suspendResult = this.g9_1;
|
|
@@ -3100,7 +3102,7 @@
|
|
|
3100
3102
|
var tmp = this.e9_1;
|
|
3101
3103
|
if (tmp === 0) {
|
|
3102
3104
|
this.f9_1 = 1;
|
|
3103
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3105
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.z9z_1, this.aa0_1, null));
|
|
3104
3106
|
} else if (tmp === 1) {
|
|
3105
3107
|
throw this.h9_1;
|
|
3106
3108
|
}
|
|
@@ -3110,23 +3112,23 @@
|
|
|
3110
3112
|
}
|
|
3111
3113
|
while (true);
|
|
3112
3114
|
};
|
|
3113
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3114
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3115
|
-
i.
|
|
3115
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ca0 = function (actions, completion) {
|
|
3116
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.z9z_1, completion);
|
|
3117
|
+
i.aa0_1 = actions;
|
|
3116
3118
|
return i;
|
|
3117
3119
|
};
|
|
3118
3120
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3119
3121
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3120
3122
|
var l = function (actions, $completion) {
|
|
3121
|
-
return i.
|
|
3123
|
+
return i.ba0(actions, $completion);
|
|
3122
3124
|
};
|
|
3123
3125
|
l.$arity = 1;
|
|
3124
3126
|
return l;
|
|
3125
3127
|
}
|
|
3126
3128
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3127
3129
|
CoroutineImpl.call(this, resultContinuation);
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3130
|
+
this.la0_1 = _this__u8e3s4;
|
|
3131
|
+
this.ma0_1 = fromEvent;
|
|
3130
3132
|
}
|
|
3131
3133
|
protoOf($sentEventCOROUTINE$3).m9 = function () {
|
|
3132
3134
|
var suspendResult = this.g9_1;
|
|
@@ -3137,9 +3139,9 @@
|
|
|
3137
3139
|
case 0:
|
|
3138
3140
|
this.f9_1 = 2;
|
|
3139
3141
|
var tmp_0 = this;
|
|
3140
|
-
tmp_0.
|
|
3142
|
+
tmp_0.na0_1 = this.la0_1.k9z_1;
|
|
3141
3143
|
l$ret$1: do {
|
|
3142
|
-
var this_0 = this.
|
|
3144
|
+
var this_0 = this.la0_1.j9z_1;
|
|
3143
3145
|
while (true) {
|
|
3144
3146
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3145
3147
|
var upd = cur + 1 | 0;
|
|
@@ -3150,7 +3152,7 @@
|
|
|
3150
3152
|
}
|
|
3151
3153
|
while (false);
|
|
3152
3154
|
this.e9_1 = 1;
|
|
3153
|
-
suspendResult = this.
|
|
3155
|
+
suspendResult = this.la0_1.l9z_1.p18(this.ma0_1, this);
|
|
3154
3156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3155
3157
|
return suspendResult;
|
|
3156
3158
|
}
|
|
@@ -3174,7 +3176,7 @@
|
|
|
3174
3176
|
};
|
|
3175
3177
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3176
3178
|
CoroutineImpl.call(this, resultContinuation);
|
|
3177
|
-
this.
|
|
3179
|
+
this.wa0_1 = _this__u8e3s4;
|
|
3178
3180
|
}
|
|
3179
3181
|
protoOf($waitForCOROUTINE$4).m9 = function () {
|
|
3180
3182
|
var suspendResult = this.g9_1;
|
|
@@ -3185,12 +3187,12 @@
|
|
|
3185
3187
|
case 0:
|
|
3186
3188
|
this.f9_1 = 5;
|
|
3187
3189
|
var tmp_0 = this;
|
|
3188
|
-
tmp_0.
|
|
3189
|
-
this.
|
|
3190
|
+
tmp_0.xa0_1 = this.wa0_1.k9z_1;
|
|
3191
|
+
this.ya0_1 = 0;
|
|
3190
3192
|
this.e9_1 = 1;
|
|
3191
3193
|
continue $sm;
|
|
3192
3194
|
case 1:
|
|
3193
|
-
if (!!(this.
|
|
3195
|
+
if (!!(this.wa0_1.j9z_1.kotlinx$atomicfu$value === 0)) {
|
|
3194
3196
|
this.e9_1 = 4;
|
|
3195
3197
|
continue $sm;
|
|
3196
3198
|
}
|
|
@@ -3203,9 +3205,9 @@
|
|
|
3203
3205
|
|
|
3204
3206
|
continue $sm;
|
|
3205
3207
|
case 2:
|
|
3206
|
-
this.
|
|
3207
|
-
if (this.
|
|
3208
|
-
this.
|
|
3208
|
+
this.ya0_1 = this.ya0_1 + 1 | 0;
|
|
3209
|
+
if (this.ya0_1 > 6) {
|
|
3210
|
+
this.wa0_1.h9z_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.wa0_1.j9z_1.kotlinx$atomicfu$value);
|
|
3209
3211
|
this.e9_1 = 4;
|
|
3210
3212
|
continue $sm;
|
|
3211
3213
|
} else {
|
|
@@ -3233,16 +3235,16 @@
|
|
|
3233
3235
|
while (true);
|
|
3234
3236
|
};
|
|
3235
3237
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3236
|
-
this.
|
|
3237
|
-
this.
|
|
3238
|
-
this.
|
|
3239
|
-
this.
|
|
3238
|
+
this.g9z_1 = serverReduxConfig;
|
|
3239
|
+
this.h9z_1 = logger;
|
|
3240
|
+
this.i9z_1 = idsProvider;
|
|
3241
|
+
this.j9z_1 = atomic$ref$1(0);
|
|
3240
3242
|
var tmp = this;
|
|
3241
3243
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3242
|
-
tmp.
|
|
3243
|
-
this.
|
|
3244
|
+
tmp.k9z_1 = get_atomicfu$reentrantLock();
|
|
3245
|
+
this.l9z_1 = MutableSharedFlow();
|
|
3244
3246
|
}
|
|
3245
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3247
|
+
protoOf(ToClientEventsObserverImpl).n9y = function (fromEvent, $completion) {
|
|
3246
3248
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3247
3249
|
tmp.g9_1 = Unit_instance;
|
|
3248
3250
|
tmp.h9_1 = null;
|
|
@@ -3255,20 +3257,20 @@
|
|
|
3255
3257
|
return tmp.m9();
|
|
3256
3258
|
};
|
|
3257
3259
|
protoOf(ToClientEventsObserverImpl).x9l = function () {
|
|
3258
|
-
if (!this.
|
|
3259
|
-
return this.
|
|
3260
|
+
if (!this.g9z_1.enabledCombinedEvents) {
|
|
3261
|
+
return this.l9z_1;
|
|
3260
3262
|
}
|
|
3261
|
-
var tmp = windowedByInterval(this.
|
|
3263
|
+
var tmp = windowedByInterval(this.l9z_1, toLong(this.g9z_1.combinedEventsPeriod));
|
|
3262
3264
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3263
3265
|
};
|
|
3264
3266
|
function UpdateServerConfigAction(serverConfig) {
|
|
3265
|
-
this.
|
|
3267
|
+
this.za0_1 = serverConfig;
|
|
3266
3268
|
}
|
|
3267
3269
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3268
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3270
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.za0_1.toString() + ')';
|
|
3269
3271
|
};
|
|
3270
3272
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3271
|
-
return this.
|
|
3273
|
+
return this.za0_1.hashCode();
|
|
3272
3274
|
};
|
|
3273
3275
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3274
3276
|
if (this === other)
|
|
@@ -3276,20 +3278,20 @@
|
|
|
3276
3278
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3277
3279
|
return false;
|
|
3278
3280
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3279
|
-
if (!this.
|
|
3281
|
+
if (!this.za0_1.equals(tmp0_other_with_cast.za0_1))
|
|
3280
3282
|
return false;
|
|
3281
3283
|
return true;
|
|
3282
3284
|
};
|
|
3283
3285
|
function SpectatorsAction() {
|
|
3284
3286
|
}
|
|
3285
3287
|
function AddSpectatorsAction(spectators) {
|
|
3286
|
-
this.
|
|
3288
|
+
this.aa1_1 = spectators;
|
|
3287
3289
|
}
|
|
3288
3290
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3289
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
3291
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.aa1_1) + ')';
|
|
3290
3292
|
};
|
|
3291
3293
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3292
|
-
return hashCode(this.
|
|
3294
|
+
return hashCode(this.aa1_1);
|
|
3293
3295
|
};
|
|
3294
3296
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3295
3297
|
if (this === other)
|
|
@@ -3297,18 +3299,18 @@
|
|
|
3297
3299
|
if (!(other instanceof AddSpectatorsAction))
|
|
3298
3300
|
return false;
|
|
3299
3301
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3300
|
-
if (!equals(this.
|
|
3302
|
+
if (!equals(this.aa1_1, tmp0_other_with_cast.aa1_1))
|
|
3301
3303
|
return false;
|
|
3302
3304
|
return true;
|
|
3303
3305
|
};
|
|
3304
3306
|
function RemoveSpectatorsAction(spectators) {
|
|
3305
|
-
this.
|
|
3307
|
+
this.ba1_1 = spectators;
|
|
3306
3308
|
}
|
|
3307
3309
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3308
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
3310
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.ba1_1) + ')';
|
|
3309
3311
|
};
|
|
3310
3312
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3311
|
-
return hashCode(this.
|
|
3313
|
+
return hashCode(this.ba1_1);
|
|
3312
3314
|
};
|
|
3313
3315
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3314
3316
|
if (this === other)
|
|
@@ -3316,73 +3318,73 @@
|
|
|
3316
3318
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3317
3319
|
return false;
|
|
3318
3320
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3319
|
-
if (!equals(this.
|
|
3321
|
+
if (!equals(this.ba1_1, tmp0_other_with_cast.ba1_1))
|
|
3320
3322
|
return false;
|
|
3321
3323
|
return true;
|
|
3322
3324
|
};
|
|
3323
3325
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3324
3326
|
// Inline function 'kotlin.getValue' call
|
|
3325
|
-
var this_0 = $this.
|
|
3327
|
+
var this_0 = $this.ha1_1;
|
|
3326
3328
|
asyncProvider$factory_0();
|
|
3327
3329
|
return this_0.u();
|
|
3328
3330
|
}
|
|
3329
3331
|
function _get_logger__rkp4sl_0($this) {
|
|
3330
3332
|
// Inline function 'kotlin.getValue' call
|
|
3331
|
-
var this_0 = $this.
|
|
3333
|
+
var this_0 = $this.ia1_1;
|
|
3332
3334
|
logger$factory_2();
|
|
3333
3335
|
return this_0.u();
|
|
3334
3336
|
}
|
|
3335
3337
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3336
3338
|
// Inline function 'kotlin.getValue' call
|
|
3337
|
-
var this_0 = $this.
|
|
3339
|
+
var this_0 = $this.ja1_1;
|
|
3338
3340
|
playerConnectionInteractor$factory_2();
|
|
3339
3341
|
return this_0.u();
|
|
3340
3342
|
}
|
|
3341
3343
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3342
3344
|
// Inline function 'kotlin.getValue' call
|
|
3343
|
-
var this_0 = $this.
|
|
3345
|
+
var this_0 = $this.ka1_1;
|
|
3344
3346
|
lastCardInteractor$factory_0();
|
|
3345
3347
|
return this_0.u();
|
|
3346
3348
|
}
|
|
3347
3349
|
function _get_serverConfig__rk2g06($this) {
|
|
3348
3350
|
// Inline function 'kotlin.getValue' call
|
|
3349
|
-
var this_0 = $this.
|
|
3351
|
+
var this_0 = $this.la1_1;
|
|
3350
3352
|
serverConfig$factory_0();
|
|
3351
3353
|
return this_0.u();
|
|
3352
3354
|
}
|
|
3353
3355
|
function _get_logicConfig__52ww9d($this) {
|
|
3354
3356
|
// Inline function 'kotlin.getValue' call
|
|
3355
|
-
var this_0 = $this.
|
|
3357
|
+
var this_0 = $this.ma1_1;
|
|
3356
3358
|
logicConfig$factory_0();
|
|
3357
3359
|
return this_0.u();
|
|
3358
3360
|
}
|
|
3359
3361
|
function _get_idsProvider__fnfajc($this) {
|
|
3360
3362
|
// Inline function 'kotlin.getValue' call
|
|
3361
|
-
var this_0 = $this.
|
|
3363
|
+
var this_0 = $this.na1_1;
|
|
3362
3364
|
idsProvider$factory_0();
|
|
3363
3365
|
return this_0.u();
|
|
3364
3366
|
}
|
|
3365
3367
|
function _get_botConfig__cpaxzc($this) {
|
|
3366
3368
|
// Inline function 'kotlin.getValue' call
|
|
3367
|
-
var this_0 = $this.
|
|
3369
|
+
var this_0 = $this.oa1_1;
|
|
3368
3370
|
botConfig$factory_0();
|
|
3369
3371
|
return this_0.u();
|
|
3370
3372
|
}
|
|
3371
3373
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3372
3374
|
// Inline function 'kotlin.getValue' call
|
|
3373
|
-
var this_0 = $this.
|
|
3375
|
+
var this_0 = $this.pa1_1;
|
|
3374
3376
|
scenePositionProvider$factory_0();
|
|
3375
3377
|
return this_0.u();
|
|
3376
3378
|
}
|
|
3377
3379
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3378
3380
|
// Inline function 'kotlin.getValue' call
|
|
3379
|
-
var this_0 = $this.
|
|
3381
|
+
var this_0 = $this.qa1_1;
|
|
3380
3382
|
toClientEventsObserver$factory_2();
|
|
3381
3383
|
return this_0.u();
|
|
3382
3384
|
}
|
|
3383
3385
|
function _get_mechanicEventsObserver__ll1b9k_0($this) {
|
|
3384
3386
|
// Inline function 'kotlin.getValue' call
|
|
3385
|
-
var this_0 = $this.
|
|
3387
|
+
var this_0 = $this.ra1_1;
|
|
3386
3388
|
mechanicEventsObserver$factory_2();
|
|
3387
3389
|
return this_0.u();
|
|
3388
3390
|
}
|
|
@@ -3395,83 +3397,83 @@
|
|
|
3395
3397
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3396
3398
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3397
3399
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3398
|
-
this.
|
|
3399
|
-
this.
|
|
3400
|
-
this.
|
|
3401
|
-
this.
|
|
3402
|
-
this.
|
|
3400
|
+
this.ca1_1 = validationStoreContract;
|
|
3401
|
+
this.da1_1 = timersStoreContract;
|
|
3402
|
+
this.ea1_1 = botGameStoreContract;
|
|
3403
|
+
this.fa1_1 = gameMechanicStoreContract;
|
|
3404
|
+
this.ga1_1 = fileLoggerStoreContract;
|
|
3403
3405
|
var tmp = this;
|
|
3404
3406
|
// Inline function 'org.kodein.di.instance' call
|
|
3405
3407
|
// Inline function 'org.kodein.type.generic' call
|
|
3406
3408
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3407
3409
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3408
|
-
tmp.
|
|
3410
|
+
tmp.ha1_1 = Instance(di, tmp$ret$0, null).t63(this, asyncProvider$factory());
|
|
3409
3411
|
var tmp_1 = this;
|
|
3410
3412
|
// Inline function 'org.kodein.di.instance' call
|
|
3411
3413
|
// Inline function 'org.kodein.type.generic' call
|
|
3412
3414
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3413
3415
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3414
|
-
tmp_1.
|
|
3416
|
+
tmp_1.ia1_1 = Instance(di, tmp$ret$2, null).t63(this, logger$factory_1());
|
|
3415
3417
|
var tmp_3 = this;
|
|
3416
3418
|
// Inline function 'org.kodein.di.instance' call
|
|
3417
3419
|
// Inline function 'org.kodein.type.generic' call
|
|
3418
3420
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3419
3421
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3420
|
-
tmp_3.
|
|
3422
|
+
tmp_3.ja1_1 = Instance(di, tmp$ret$4, null).t63(this, playerConnectionInteractor$factory_1());
|
|
3421
3423
|
var tmp_5 = this;
|
|
3422
3424
|
// Inline function 'org.kodein.di.instance' call
|
|
3423
3425
|
// Inline function 'org.kodein.type.generic' call
|
|
3424
3426
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3425
3427
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3426
|
-
tmp_5.
|
|
3428
|
+
tmp_5.ka1_1 = Instance(di, tmp$ret$6, null).t63(this, lastCardInteractor$factory());
|
|
3427
3429
|
var tmp_7 = this;
|
|
3428
3430
|
// Inline function 'org.kodein.di.instance' call
|
|
3429
3431
|
// Inline function 'org.kodein.type.generic' call
|
|
3430
3432
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3431
3433
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3432
|
-
tmp_7.
|
|
3434
|
+
tmp_7.la1_1 = Instance(di, tmp$ret$8, null).t63(this, serverConfig$factory());
|
|
3433
3435
|
var tmp_9 = this;
|
|
3434
3436
|
// Inline function 'org.kodein.di.instance' call
|
|
3435
3437
|
// Inline function 'org.kodein.type.generic' call
|
|
3436
3438
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3437
3439
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3438
|
-
tmp_9.
|
|
3440
|
+
tmp_9.ma1_1 = Instance(di, tmp$ret$10, null).t63(this, logicConfig$factory());
|
|
3439
3441
|
var tmp_11 = this;
|
|
3440
3442
|
// Inline function 'org.kodein.di.instance' call
|
|
3441
3443
|
// Inline function 'org.kodein.type.generic' call
|
|
3442
3444
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3443
3445
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3444
|
-
tmp_11.
|
|
3446
|
+
tmp_11.na1_1 = Instance(di, tmp$ret$12, null).t63(this, idsProvider$factory());
|
|
3445
3447
|
var tmp_13 = this;
|
|
3446
3448
|
// Inline function 'org.kodein.di.instance' call
|
|
3447
3449
|
// Inline function 'org.kodein.type.generic' call
|
|
3448
3450
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3449
3451
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3450
|
-
tmp_13.
|
|
3452
|
+
tmp_13.oa1_1 = Instance(di, tmp$ret$14, null).t63(this, botConfig$factory());
|
|
3451
3453
|
var tmp_15 = this;
|
|
3452
3454
|
// Inline function 'org.kodein.di.instance' call
|
|
3453
3455
|
// Inline function 'org.kodein.type.generic' call
|
|
3454
3456
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3455
3457
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3456
|
-
tmp_15.
|
|
3458
|
+
tmp_15.pa1_1 = Instance(di, tmp$ret$16, null).t63(this, scenePositionProvider$factory());
|
|
3457
3459
|
var tmp_17 = this;
|
|
3458
3460
|
// Inline function 'org.kodein.di.instance' call
|
|
3459
3461
|
// Inline function 'org.kodein.type.generic' call
|
|
3460
3462
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3461
3463
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3462
|
-
tmp_17.
|
|
3464
|
+
tmp_17.qa1_1 = Instance(di, tmp$ret$18, null).t63(this, toClientEventsObserver$factory_1());
|
|
3463
3465
|
var tmp_19 = this;
|
|
3464
3466
|
// Inline function 'org.kodein.di.instance' call
|
|
3465
3467
|
// Inline function 'org.kodein.type.generic' call
|
|
3466
3468
|
var tmp_20 = typeToken(createKType(getKClass(MechanicEventsObserver), arrayOf([]), false));
|
|
3467
3469
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3468
|
-
tmp_19.
|
|
3470
|
+
tmp_19.ra1_1 = Instance(di, tmp$ret$20, null).t63(this, mechanicEventsObserver$factory_1());
|
|
3469
3471
|
}
|
|
3470
3472
|
protoOf(ServerGameStoreContract).c95 = function () {
|
|
3471
|
-
return plus(plus(plus(plus(plus(this.
|
|
3473
|
+
return plus(plus(plus(plus(plus(this.ca1_1.c95(), this.da1_1.c95()), this.ea1_1.c95()), this.fa1_1.c95()), this.ga1_1.c95()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3472
3474
|
};
|
|
3473
3475
|
protoOf(ServerGameStoreContract).d95 = function () {
|
|
3474
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
3476
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.ca1_1.d95(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.da1_1.d95()), this.ea1_1.d95()), this.fa1_1.d95()), this.ga1_1.d95()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([sendMechanicEventsMiddleware(_get_asyncProvider__jbpyhw(this), _get_mechanicEventsObserver__ll1b9k_0(this)), sendToClientActionMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).v96(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3475
3477
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3476
3478
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3477
3479
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3619,7 +3621,7 @@
|
|
|
3619
3621
|
return this.g6l(store, next, action);
|
|
3620
3622
|
};
|
|
3621
3623
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3622
|
-
this.
|
|
3624
|
+
this.ua1_1 = this$0;
|
|
3623
3625
|
}
|
|
3624
3626
|
protoOf(_no_name_provided__qut3iv_3).p6j = function (action) {
|
|
3625
3627
|
return action instanceof MechanicAction;
|
|
@@ -3633,7 +3635,7 @@
|
|
|
3633
3635
|
var tmp;
|
|
3634
3636
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3635
3637
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3636
|
-
var this_0 = this.
|
|
3638
|
+
var this_0 = this.ua1_1;
|
|
3637
3639
|
var tableId = action_0.t7z_1;
|
|
3638
3640
|
var gameCreatorPlayerId = action_0.v7z_1;
|
|
3639
3641
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3678,7 +3680,7 @@
|
|
|
3678
3680
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3679
3681
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3680
3682
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3681
|
-
var tmp0_aid = this_0.
|
|
3683
|
+
var tmp0_aid = this_0.ta1_1.s6h();
|
|
3682
3684
|
// Inline function 'kotlin.collections.map' call
|
|
3683
3685
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3684
3686
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3703,16 +3705,16 @@
|
|
|
3703
3705
|
} else {
|
|
3704
3706
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3705
3707
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3706
|
-
var this_2 = this.
|
|
3708
|
+
var this_2 = this.ua1_1;
|
|
3707
3709
|
var table = state.m6r();
|
|
3708
3710
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3709
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3711
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.ta1_1.s6h(), table.id, null);
|
|
3710
3712
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3711
3713
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3712
3714
|
} else {
|
|
3713
3715
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3714
3716
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3715
|
-
var this_3 = this.
|
|
3717
|
+
var this_3 = this.ua1_1;
|
|
3716
3718
|
var tableId_0 = action_0.z7z_1.id;
|
|
3717
3719
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3718
3720
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3757,7 +3759,7 @@
|
|
|
3757
3759
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3758
3760
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3759
3761
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3760
|
-
var tmp0_aid_0 = this_3.
|
|
3762
|
+
var tmp0_aid_0 = this_3.ta1_1.s6h();
|
|
3761
3763
|
// Inline function 'kotlin.collections.map' call
|
|
3762
3764
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3763
3765
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3782,43 +3784,43 @@
|
|
|
3782
3784
|
} else {
|
|
3783
3785
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3784
3786
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3785
|
-
var this_5 = this.
|
|
3787
|
+
var this_5 = this.ua1_1;
|
|
3786
3788
|
var table_0 = state.m6r();
|
|
3787
3789
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3788
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3790
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.ta1_1.s6h(), table_0.id, null);
|
|
3789
3791
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3790
3792
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3791
3793
|
} else {
|
|
3792
3794
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3793
3795
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3794
|
-
var this_6 = this.
|
|
3796
|
+
var this_6 = this.ua1_1;
|
|
3795
3797
|
var table_1 = state.m6r();
|
|
3796
3798
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3797
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3799
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.ta1_1.s6h(), table_1.id, null);
|
|
3798
3800
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3799
3801
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3800
3802
|
} else {
|
|
3801
3803
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3802
3804
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3803
|
-
var this_7 = this.
|
|
3805
|
+
var this_7 = this.ua1_1;
|
|
3804
3806
|
var table_2 = state.m6r();
|
|
3805
3807
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3806
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3808
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.ta1_1.s6h(), table_2.id, null);
|
|
3807
3809
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3808
3810
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3809
3811
|
} else {
|
|
3810
3812
|
if (action_0 instanceof ErrorAction) {
|
|
3811
3813
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3812
|
-
var this_8 = this.
|
|
3814
|
+
var this_8 = this.ua1_1;
|
|
3813
3815
|
var table_3 = state.m6r();
|
|
3814
3816
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3815
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3817
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.ta1_1.s6h(), table_3.id, null);
|
|
3816
3818
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3817
3819
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3818
3820
|
} else {
|
|
3819
3821
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3820
3822
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3821
|
-
var this_9 = this.
|
|
3823
|
+
var this_9 = this.ua1_1;
|
|
3822
3824
|
var table_4 = state.m6r();
|
|
3823
3825
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3824
3826
|
var tableId_1 = table_4.id;
|
|
@@ -3855,7 +3857,7 @@
|
|
|
3855
3857
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3856
3858
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3857
3859
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3858
|
-
var tmp0_aid_1 = this_9.
|
|
3860
|
+
var tmp0_aid_1 = this_9.ta1_1.s6h();
|
|
3859
3861
|
// Inline function 'kotlin.collections.map' call
|
|
3860
3862
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3861
3863
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3880,7 +3882,7 @@
|
|
|
3880
3882
|
} else {
|
|
3881
3883
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3882
3884
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3883
|
-
var this_10 = this.
|
|
3885
|
+
var this_10 = this.ua1_1;
|
|
3884
3886
|
var table_5 = state.m6r();
|
|
3885
3887
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3886
3888
|
var tableId_2 = table_5.id;
|
|
@@ -3917,7 +3919,7 @@
|
|
|
3917
3919
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3918
3920
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3919
3921
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3920
|
-
var tmp0_aid_2 = this_10.
|
|
3922
|
+
var tmp0_aid_2 = this_10.ta1_1.s6h();
|
|
3921
3923
|
// Inline function 'kotlin.collections.map' call
|
|
3922
3924
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3923
3925
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -3942,7 +3944,7 @@
|
|
|
3942
3944
|
} else {
|
|
3943
3945
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
3944
3946
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3945
|
-
var this_11 = this.
|
|
3947
|
+
var this_11 = this.ua1_1;
|
|
3946
3948
|
var table_6 = state.m6r();
|
|
3947
3949
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3948
3950
|
var tableId_3 = table_6.id;
|
|
@@ -3979,7 +3981,7 @@
|
|
|
3979
3981
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3980
3982
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3981
3983
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3982
|
-
var tmp0_aid_3 = this_11.
|
|
3984
|
+
var tmp0_aid_3 = this_11.ta1_1.s6h();
|
|
3983
3985
|
// Inline function 'kotlin.collections.map' call
|
|
3984
3986
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3985
3987
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -3992,7 +3994,7 @@
|
|
|
3992
3994
|
}
|
|
3993
3995
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
3994
3996
|
var tmp_0;
|
|
3995
|
-
if (this.
|
|
3997
|
+
if (this.ua1_1.sa1_1.supportBackwardActions && getPlayer(state.m6r().players, sendToPlayer_8.b7e_1).h6x_1.l6x_1) {
|
|
3996
3998
|
tmp_0 = null;
|
|
3997
3999
|
} else {
|
|
3998
4000
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -4010,79 +4012,79 @@
|
|
|
4010
4012
|
} else {
|
|
4011
4013
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
4012
4014
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4013
|
-
var this_12 = this.
|
|
4015
|
+
var this_12 = this.ua1_1;
|
|
4014
4016
|
var table_7 = state.m6r();
|
|
4015
|
-
var exceptPlayerId = this.
|
|
4017
|
+
var exceptPlayerId = this.ua1_1.sa1_1.supportBackwardActions ? action_0.z80_1 : null;
|
|
4016
4018
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4017
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
4019
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.ta1_1.s6h(), table_7.id, exceptPlayerId);
|
|
4018
4020
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
4019
4021
|
tmp = listOfNotNull(tmp$ret$94);
|
|
4020
4022
|
} else {
|
|
4021
4023
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
4022
4024
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4023
|
-
var this_13 = this.
|
|
4025
|
+
var this_13 = this.ua1_1;
|
|
4024
4026
|
var table_8 = state.m6r();
|
|
4025
|
-
var exceptPlayerId_0 = this.
|
|
4027
|
+
var exceptPlayerId_0 = this.ua1_1.sa1_1.supportBackwardActions ? action_0.d81_1 : null;
|
|
4026
4028
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4027
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4029
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.ta1_1.s6h(), table_8.id, exceptPlayerId_0);
|
|
4028
4030
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
4029
4031
|
tmp = listOfNotNull(tmp$ret$96);
|
|
4030
4032
|
} else {
|
|
4031
4033
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
4032
4034
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4033
|
-
var this_14 = this.
|
|
4035
|
+
var this_14 = this.ua1_1;
|
|
4034
4036
|
var table_9 = state.m6r();
|
|
4035
4037
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4036
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4038
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.ta1_1.s6h(), table_9.id, null);
|
|
4037
4039
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4038
4040
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4039
4041
|
} else {
|
|
4040
4042
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4041
4043
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4042
|
-
var this_15 = this.
|
|
4044
|
+
var this_15 = this.ua1_1;
|
|
4043
4045
|
var table_10 = state.m6r();
|
|
4044
|
-
var exceptPlayerId_1 = this.
|
|
4046
|
+
var exceptPlayerId_1 = this.ua1_1.sa1_1.supportBackwardActions ? action_0.k81_1 : null;
|
|
4045
4047
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4046
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4048
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.ta1_1.s6h(), table_10.id, exceptPlayerId_1);
|
|
4047
4049
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4048
4050
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4049
4051
|
} else {
|
|
4050
4052
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4051
4053
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4052
|
-
var this_16 = this.
|
|
4054
|
+
var this_16 = this.ua1_1;
|
|
4053
4055
|
var table_11 = state.m6r();
|
|
4054
|
-
var exceptPlayerId_2 = this.
|
|
4056
|
+
var exceptPlayerId_2 = this.ua1_1.sa1_1.supportBackwardActions ? action_0.o81_1 : null;
|
|
4055
4057
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4056
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4058
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.ta1_1.s6h(), table_11.id, exceptPlayerId_2);
|
|
4057
4059
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4058
4060
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4059
4061
|
} else {
|
|
4060
4062
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4061
4063
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4062
|
-
var this_17 = this.
|
|
4064
|
+
var this_17 = this.ua1_1;
|
|
4063
4065
|
var table_12 = state.m6r();
|
|
4064
4066
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4065
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4067
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.ta1_1.s6h(), table_12.id, null);
|
|
4066
4068
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4067
4069
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4068
4070
|
} else {
|
|
4069
4071
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4070
4072
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4071
|
-
var this_18 = this.
|
|
4073
|
+
var this_18 = this.ua1_1;
|
|
4072
4074
|
var table_13 = state.m6r();
|
|
4073
4075
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4074
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4076
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.ta1_1.s6h(), table_13.id, null);
|
|
4075
4077
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4076
4078
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4077
4079
|
} else {
|
|
4078
4080
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4079
4081
|
var message = action_0.w81_1;
|
|
4080
4082
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4081
|
-
var this_19 = this.
|
|
4083
|
+
var this_19 = this.ua1_1;
|
|
4082
4084
|
var table_14 = state.m6r();
|
|
4083
4085
|
var tmp_1;
|
|
4084
4086
|
var tmp_2;
|
|
4085
|
-
if (this.
|
|
4087
|
+
if (this.ua1_1.sa1_1.supportBackwardActions) {
|
|
4086
4088
|
tmp_2 = isInterface(message, UserMessage);
|
|
4087
4089
|
} else {
|
|
4088
4090
|
tmp_2 = false;
|
|
@@ -4094,17 +4096,17 @@
|
|
|
4094
4096
|
}
|
|
4095
4097
|
var exceptPlayerId_3 = tmp_1;
|
|
4096
4098
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4097
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4099
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.ta1_1.s6h(), table_14.id, exceptPlayerId_3);
|
|
4098
4100
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4099
4101
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4100
4102
|
} else {
|
|
4101
4103
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4102
4104
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4103
|
-
var this_20 = this.
|
|
4105
|
+
var this_20 = this.ua1_1;
|
|
4104
4106
|
var table_15 = state.m6r();
|
|
4105
4107
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4106
4108
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4107
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4109
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.ta1_1.s6h(), table_15.id, exceptPlayerId_4);
|
|
4108
4110
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4109
4111
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4110
4112
|
} else {
|
|
@@ -4142,8 +4144,8 @@
|
|
|
4142
4144
|
return this.g6l(store, next, action);
|
|
4143
4145
|
};
|
|
4144
4146
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4145
|
-
this.
|
|
4146
|
-
this.
|
|
4147
|
+
this.sa1_1 = logicConfig;
|
|
4148
|
+
this.ta1_1 = idsProvider;
|
|
4147
4149
|
}
|
|
4148
4150
|
protoOf(ServerMapMechanicToClientActionMiddleware).v96 = function () {
|
|
4149
4151
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
@@ -4154,8 +4156,8 @@
|
|
|
4154
4156
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4155
4157
|
}
|
|
4156
4158
|
function sendMechanicEventsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4157
|
-
this.
|
|
4158
|
-
this.
|
|
4159
|
+
this.da2_1 = $provider;
|
|
4160
|
+
this.ea2_1 = $action;
|
|
4159
4161
|
CoroutineImpl.call(this, resultContinuation);
|
|
4160
4162
|
}
|
|
4161
4163
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4176,7 +4178,7 @@
|
|
|
4176
4178
|
case 0:
|
|
4177
4179
|
this.f9_1 = 2;
|
|
4178
4180
|
this.e9_1 = 1;
|
|
4179
|
-
suspendResult = this.
|
|
4181
|
+
suspendResult = this.da2_1.z9t(this.ea2_1, this);
|
|
4180
4182
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4181
4183
|
return suspendResult;
|
|
4182
4184
|
}
|
|
@@ -4199,8 +4201,8 @@
|
|
|
4199
4201
|
while (true);
|
|
4200
4202
|
};
|
|
4201
4203
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4202
|
-
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.
|
|
4203
|
-
i.
|
|
4204
|
+
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.da2_1, this.ea2_1, completion);
|
|
4205
|
+
i.fa2_1 = $this$launchDefault;
|
|
4204
4206
|
return i;
|
|
4205
4207
|
};
|
|
4206
4208
|
function sendMechanicEventsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4212,8 +4214,8 @@
|
|
|
4212
4214
|
return l;
|
|
4213
4215
|
}
|
|
4214
4216
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4215
|
-
this.
|
|
4216
|
-
this.
|
|
4217
|
+
this.ga2_1 = $asyncProvider;
|
|
4218
|
+
this.ha2_1 = $provider;
|
|
4217
4219
|
}
|
|
4218
4220
|
protoOf(_no_name_provided__qut3iv_4).p6j = function (action) {
|
|
4219
4221
|
return action instanceof MechanicAction;
|
|
@@ -4221,7 +4223,7 @@
|
|
|
4221
4223
|
protoOf(_no_name_provided__qut3iv_4).g6l = function (store, next, action) {
|
|
4222
4224
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendMechanicEventsMiddleware.<anonymous>' call
|
|
4223
4225
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
4224
|
-
this.
|
|
4226
|
+
this.ga2_1.p6g(VOID, sendMechanicEventsMiddleware$o$handle$slambda_0(this.ha2_1, action_0, null));
|
|
4225
4227
|
next(action_0);
|
|
4226
4228
|
};
|
|
4227
4229
|
protoOf(_no_name_provided__qut3iv_4).o6j = function (store, next, action) {
|
|
@@ -4232,8 +4234,8 @@
|
|
|
4232
4234
|
return new _no_name_provided__qut3iv_5(asyncProvider, provider);
|
|
4233
4235
|
}
|
|
4234
4236
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4235
|
-
this.
|
|
4236
|
-
this.
|
|
4237
|
+
this.qa2_1 = $provider;
|
|
4238
|
+
this.ra2_1 = $action;
|
|
4237
4239
|
CoroutineImpl.call(this, resultContinuation);
|
|
4238
4240
|
}
|
|
4239
4241
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4254,7 +4256,7 @@
|
|
|
4254
4256
|
case 0:
|
|
4255
4257
|
this.f9_1 = 2;
|
|
4256
4258
|
this.e9_1 = 1;
|
|
4257
|
-
suspendResult = this.
|
|
4259
|
+
suspendResult = this.qa2_1.n9y(this.ra2_1, this);
|
|
4258
4260
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4259
4261
|
return suspendResult;
|
|
4260
4262
|
}
|
|
@@ -4277,8 +4279,8 @@
|
|
|
4277
4279
|
while (true);
|
|
4278
4280
|
};
|
|
4279
4281
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4280
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4281
|
-
i.
|
|
4282
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.qa2_1, this.ra2_1, completion);
|
|
4283
|
+
i.sa2_1 = $this$launchDefault;
|
|
4282
4284
|
return i;
|
|
4283
4285
|
};
|
|
4284
4286
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4290,8 +4292,8 @@
|
|
|
4290
4292
|
return l;
|
|
4291
4293
|
}
|
|
4292
4294
|
function _no_name_provided__qut3iv_5($asyncProvider, $provider) {
|
|
4293
|
-
this.
|
|
4294
|
-
this.
|
|
4295
|
+
this.ta2_1 = $asyncProvider;
|
|
4296
|
+
this.ua2_1 = $provider;
|
|
4295
4297
|
}
|
|
4296
4298
|
protoOf(_no_name_provided__qut3iv_5).p6j = function (action) {
|
|
4297
4299
|
return action instanceof ToClientAction;
|
|
@@ -4299,7 +4301,7 @@
|
|
|
4299
4301
|
protoOf(_no_name_provided__qut3iv_5).g6l = function (store, next, action) {
|
|
4300
4302
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4301
4303
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4302
|
-
this.
|
|
4304
|
+
this.ta2_1.p6g(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.ua2_1, action_0, null));
|
|
4303
4305
|
next(action_0);
|
|
4304
4306
|
};
|
|
4305
4307
|
protoOf(_no_name_provided__qut3iv_5).o6j = function (store, next, action) {
|
|
@@ -4317,7 +4319,7 @@
|
|
|
4317
4319
|
protoOf(_no_name_provided__qut3iv_6).q9d = function (state, action) {
|
|
4318
4320
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4319
4321
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4320
|
-
return state.f92(VOID, get_serverStatePayload_0(state).
|
|
4322
|
+
return state.f92(VOID, get_serverStatePayload_0(state).va2(action_0.za0_1));
|
|
4321
4323
|
};
|
|
4322
4324
|
protoOf(_no_name_provided__qut3iv_6).h6l = function (state, action) {
|
|
4323
4325
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -4342,7 +4344,7 @@
|
|
|
4342
4344
|
}
|
|
4343
4345
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4344
4346
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4345
|
-
this.
|
|
4347
|
+
this.ya2_1 = logger;
|
|
4346
4348
|
}
|
|
4347
4349
|
protoOf(ServerMechanicLifecycleReducer).c9f = function (state, action) {
|
|
4348
4350
|
var serverState = get_serverStatePayloadOrNull(state.l6q_1);
|
|
@@ -4358,14 +4360,20 @@
|
|
|
4358
4360
|
var tmp9_tableOrNull = tmp0_$this.i9g(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
4359
4361
|
var tmp;
|
|
4360
4362
|
if (serverState == null) {
|
|
4361
|
-
this.
|
|
4362
|
-
tmp =
|
|
4363
|
+
this.ya2_1.w(VOID, 'ServerPayload is not onStart');
|
|
4364
|
+
tmp = Companion_instance_11.t9t();
|
|
4363
4365
|
} else {
|
|
4364
4366
|
tmp = serverState;
|
|
4365
4367
|
}
|
|
4366
4368
|
var tmp10_payload = tmp;
|
|
4367
4369
|
return state.f92(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4368
4370
|
};
|
|
4371
|
+
protoOf(ServerMechanicLifecycleReducer).a9f = function (state, action) {
|
|
4372
|
+
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4373
|
+
var tmp1_tableOrNull = action.z7z_1;
|
|
4374
|
+
var tmp2_payload = Companion_instance_11.t9t();
|
|
4375
|
+
return state.f92(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
4376
|
+
};
|
|
4369
4377
|
protoOf(ServerMechanicLifecycleReducer).b9f = function (state, action) {
|
|
4370
4378
|
this.e9f_1.g5r(action.previousGameId);
|
|
4371
4379
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
@@ -4377,7 +4385,7 @@
|
|
|
4377
4385
|
return new _no_name_provided__qut3iv_7(logger);
|
|
4378
4386
|
}
|
|
4379
4387
|
function _no_name_provided__qut3iv_7($logger) {
|
|
4380
|
-
this.
|
|
4388
|
+
this.za2_1 = $logger;
|
|
4381
4389
|
}
|
|
4382
4390
|
protoOf(_no_name_provided__qut3iv_7).p6j = function (action) {
|
|
4383
4391
|
return isInterface(action, SpectatorsAction);
|
|
@@ -4390,7 +4398,7 @@
|
|
|
4390
4398
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4391
4399
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4392
4400
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4393
|
-
var this_0 = action_0.
|
|
4401
|
+
var this_0 = action_0.aa1_1;
|
|
4394
4402
|
var destination = ArrayList_init_$Create$_0();
|
|
4395
4403
|
// Inline function 'kotlin.collections.forEach' call
|
|
4396
4404
|
var tmp0_iterator = this_0.j();
|
|
@@ -4412,10 +4420,10 @@
|
|
|
4412
4420
|
var tmp_0;
|
|
4413
4421
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4414
4422
|
if (!sameSpectators.p()) {
|
|
4415
|
-
this.
|
|
4423
|
+
this.za2_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4416
4424
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4417
4425
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4418
|
-
var this_1 = action_0.
|
|
4426
|
+
var this_1 = action_0.aa1_1;
|
|
4419
4427
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4420
4428
|
var tmp0_iterator_0 = this_1.j();
|
|
4421
4429
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4451,7 +4459,7 @@
|
|
|
4451
4459
|
}
|
|
4452
4460
|
tmp_0 = destination_0;
|
|
4453
4461
|
} else {
|
|
4454
|
-
tmp_0 = action_0.
|
|
4462
|
+
tmp_0 = action_0.aa1_1;
|
|
4455
4463
|
}
|
|
4456
4464
|
var this_2 = tmp_0;
|
|
4457
4465
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4469,7 +4477,7 @@
|
|
|
4469
4477
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4470
4478
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4471
4479
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4472
|
-
var this_3 = action_0.
|
|
4480
|
+
var this_3 = action_0.ba1_1;
|
|
4473
4481
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4474
4482
|
// Inline function 'kotlin.collections.forEach' call
|
|
4475
4483
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4490,10 +4498,10 @@
|
|
|
4490
4498
|
var tmp_2;
|
|
4491
4499
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4492
4500
|
if (!sameSpectators_0.p()) {
|
|
4493
|
-
this.
|
|
4501
|
+
this.za2_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4494
4502
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4495
4503
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4496
|
-
var this_4 = action_0.
|
|
4504
|
+
var this_4 = action_0.ba1_1;
|
|
4497
4505
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4498
4506
|
var tmp0_iterator_4 = this_4.j();
|
|
4499
4507
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4529,7 +4537,7 @@
|
|
|
4529
4537
|
}
|
|
4530
4538
|
tmp_2 = destination_3;
|
|
4531
4539
|
} else {
|
|
4532
|
-
tmp_2 = action_0.
|
|
4540
|
+
tmp_2 = action_0.ba1_1;
|
|
4533
4541
|
}
|
|
4534
4542
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4535
4543
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4578,23 +4586,23 @@
|
|
|
4578
4586
|
protoOf(_no_name_provided__qut3iv_7).h6l = function (state, action) {
|
|
4579
4587
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4580
4588
|
};
|
|
4581
|
-
function
|
|
4589
|
+
function Companion_3() {
|
|
4582
4590
|
}
|
|
4583
|
-
protoOf(
|
|
4591
|
+
protoOf(Companion_3).aa3 = function (config) {
|
|
4584
4592
|
return new ServerStatePayload(config);
|
|
4585
4593
|
};
|
|
4586
|
-
protoOf(
|
|
4587
|
-
config = config === VOID ?
|
|
4588
|
-
return $super === VOID ? this.
|
|
4594
|
+
protoOf(Companion_3).t9t = function (config, $super) {
|
|
4595
|
+
config = config === VOID ? Companion_instance_8.z8j() : config;
|
|
4596
|
+
return $super === VOID ? this.aa3(config) : $super.aa3.call(this, config);
|
|
4589
4597
|
};
|
|
4590
|
-
var
|
|
4591
|
-
function
|
|
4592
|
-
return
|
|
4598
|
+
var Companion_instance_11;
|
|
4599
|
+
function Companion_getInstance_4() {
|
|
4600
|
+
return Companion_instance_11;
|
|
4593
4601
|
}
|
|
4594
4602
|
function ServerStatePayload(config) {
|
|
4595
4603
|
this.d9t_1 = config;
|
|
4596
4604
|
}
|
|
4597
|
-
protoOf(ServerStatePayload).
|
|
4605
|
+
protoOf(ServerStatePayload).va2 = function (config) {
|
|
4598
4606
|
return new ServerStatePayload(config);
|
|
4599
4607
|
};
|
|
4600
4608
|
protoOf(ServerStatePayload).toString = function () {
|
|
@@ -4647,13 +4655,13 @@
|
|
|
4647
4655
|
}
|
|
4648
4656
|
function _get_controllerLogger__nbd727($this) {
|
|
4649
4657
|
// Inline function 'kotlin.getValue' call
|
|
4650
|
-
var this_0 = $this.
|
|
4658
|
+
var this_0 = $this.ja3_1;
|
|
4651
4659
|
controllerLogger$factory();
|
|
4652
4660
|
return this_0.u();
|
|
4653
4661
|
}
|
|
4654
4662
|
function _get_di__ndbzja($this) {
|
|
4655
4663
|
// Inline function 'kotlin.getValue' call
|
|
4656
|
-
var this_0 = $this.
|
|
4664
|
+
var this_0 = $this.ka3_1;
|
|
4657
4665
|
di$factory();
|
|
4658
4666
|
return this_0.u();
|
|
4659
4667
|
}
|
|
@@ -4664,13 +4672,13 @@
|
|
|
4664
4672
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
4665
4673
|
return function () {
|
|
4666
4674
|
var tmp;
|
|
4667
|
-
if (this$0.
|
|
4675
|
+
if (this$0.ha3_1 == null) {
|
|
4668
4676
|
tmp = null;
|
|
4669
4677
|
} else {
|
|
4670
4678
|
// Inline function 'kotlin.let' call
|
|
4671
4679
|
// Inline function 'kotlin.contracts.contract' call
|
|
4672
4680
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
4673
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4681
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.ha3_1)]));
|
|
4674
4682
|
}
|
|
4675
4683
|
var tmp1_elvis_lhs = tmp;
|
|
4676
4684
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4698,7 +4706,7 @@
|
|
|
4698
4706
|
tmp_0.w61(tmp$ret$3);
|
|
4699
4707
|
$this$DI.a5y(jsonModule());
|
|
4700
4708
|
$this$DI.a5y(serverHelpersModule());
|
|
4701
|
-
$this$DI.a5y(randomOrgModule(this$0.
|
|
4709
|
+
$this$DI.a5y(randomOrgModule(this$0.ia3_1));
|
|
4702
4710
|
return Unit_instance;
|
|
4703
4711
|
};
|
|
4704
4712
|
}
|
|
@@ -4709,13 +4717,13 @@
|
|
|
4709
4717
|
};
|
|
4710
4718
|
}
|
|
4711
4719
|
function _no_name_provided__qut3iv_8($item) {
|
|
4712
|
-
this.
|
|
4720
|
+
this.qa3_1 = $item;
|
|
4713
4721
|
}
|
|
4714
4722
|
protoOf(_no_name_provided__qut3iv_8).p6j = function (action) {
|
|
4715
4723
|
return isInterface(action, Action);
|
|
4716
4724
|
};
|
|
4717
4725
|
protoOf(_no_name_provided__qut3iv_8).q9d = function (state, action) {
|
|
4718
|
-
return this.
|
|
4726
|
+
return this.qa3_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4719
4727
|
};
|
|
4720
4728
|
protoOf(_no_name_provided__qut3iv_8).h6l = function (state, action) {
|
|
4721
4729
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -4810,7 +4818,7 @@
|
|
|
4810
4818
|
// Inline function 'kotlin.contracts.contract' call
|
|
4811
4819
|
$this$DI.a5y(tmp0_safe_receiver);
|
|
4812
4820
|
}
|
|
4813
|
-
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.
|
|
4821
|
+
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.ia3_1));
|
|
4814
4822
|
$this$DI.a5y(coreModule($coreConfig));
|
|
4815
4823
|
$this$DI.a5y(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4816
4824
|
return Unit_instance;
|
|
@@ -4819,76 +4827,76 @@
|
|
|
4819
4827
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4820
4828
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4821
4829
|
production = production === VOID ? true : production;
|
|
4822
|
-
this.
|
|
4823
|
-
this.
|
|
4830
|
+
this.ha3_1 = loggerCallback;
|
|
4831
|
+
this.ia3_1 = randomOrgConfig;
|
|
4824
4832
|
AppEnvironment_getInstance().s6p(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4825
4833
|
var tmp = this;
|
|
4826
|
-
tmp.
|
|
4834
|
+
tmp.ja3_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4827
4835
|
var tmp_0 = this;
|
|
4828
|
-
tmp_0.
|
|
4836
|
+
tmp_0.ka3_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4829
4837
|
var tmp_1 = this;
|
|
4830
4838
|
// Inline function 'org.kodein.di.instance' call
|
|
4831
4839
|
var this_0 = _get_di__ndbzja(this);
|
|
4832
4840
|
// Inline function 'org.kodein.type.generic' call
|
|
4833
4841
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4834
4842
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4835
|
-
tmp_1.
|
|
4843
|
+
tmp_1.la3_1 = Instance(this_0, tmp$ret$0, null).t63(this, parser$factory());
|
|
4836
4844
|
var tmp_3 = this;
|
|
4837
4845
|
// Inline function 'org.kodein.di.instance' call
|
|
4838
4846
|
var this_1 = _get_di__ndbzja(this);
|
|
4839
4847
|
// Inline function 'org.kodein.type.generic' call
|
|
4840
4848
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4841
4849
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4842
|
-
tmp_3.
|
|
4850
|
+
tmp_3.ma3_1 = Instance(this_1, tmp$ret$2, null).t63(this, helper$factory());
|
|
4843
4851
|
var tmp_5 = this;
|
|
4844
4852
|
// Inline function 'org.kodein.di.instance' call
|
|
4845
4853
|
var this_2 = _get_di__ndbzja(this);
|
|
4846
4854
|
// Inline function 'org.kodein.type.generic' call
|
|
4847
4855
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4848
4856
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4849
|
-
tmp_5.
|
|
4857
|
+
tmp_5.na3_1 = Instance(this_2, tmp$ret$4, null).t63(this, resources$factory());
|
|
4850
4858
|
var tmp_7 = this;
|
|
4851
4859
|
// Inline function 'org.kodein.di.instance' call
|
|
4852
4860
|
var this_3 = _get_di__ndbzja(this);
|
|
4853
4861
|
// Inline function 'org.kodein.type.generic' call
|
|
4854
4862
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4855
4863
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4856
|
-
tmp_7.
|
|
4864
|
+
tmp_7.oa3_1 = Instance(this_3, tmp$ret$6, null).t63(this, test$factory());
|
|
4857
4865
|
var tmp_9 = this;
|
|
4858
4866
|
// Inline function 'org.kodein.di.instance' call
|
|
4859
4867
|
var this_4 = _get_di__ndbzja(this);
|
|
4860
4868
|
// Inline function 'org.kodein.type.generic' call
|
|
4861
4869
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4862
4870
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4863
|
-
tmp_9.
|
|
4871
|
+
tmp_9.pa3_1 = Instance(this_4, tmp$ret$8, null).t63(this, randomPoolProvider$factory());
|
|
4864
4872
|
}
|
|
4865
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4873
|
+
protoOf(GameServerEngineControllerImpl).ba3 = function () {
|
|
4866
4874
|
// Inline function 'kotlin.getValue' call
|
|
4867
|
-
var this_0 = this.
|
|
4875
|
+
var this_0 = this.la3_1;
|
|
4868
4876
|
parser$factory_0();
|
|
4869
4877
|
return this_0.u();
|
|
4870
4878
|
};
|
|
4871
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4879
|
+
protoOf(GameServerEngineControllerImpl).da3 = function () {
|
|
4872
4880
|
// Inline function 'kotlin.getValue' call
|
|
4873
|
-
var this_0 = this.
|
|
4881
|
+
var this_0 = this.ma3_1;
|
|
4874
4882
|
helper$factory_0();
|
|
4875
4883
|
return this_0.u();
|
|
4876
4884
|
};
|
|
4877
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4885
|
+
protoOf(GameServerEngineControllerImpl).ea3 = function () {
|
|
4878
4886
|
// Inline function 'kotlin.getValue' call
|
|
4879
|
-
var this_0 = this.
|
|
4887
|
+
var this_0 = this.na3_1;
|
|
4880
4888
|
resources$factory_0();
|
|
4881
4889
|
return this_0.u();
|
|
4882
4890
|
};
|
|
4883
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4891
|
+
protoOf(GameServerEngineControllerImpl).ca3 = function () {
|
|
4884
4892
|
// Inline function 'kotlin.getValue' call
|
|
4885
|
-
var this_0 = this.
|
|
4893
|
+
var this_0 = this.oa3_1;
|
|
4886
4894
|
test$factory_0();
|
|
4887
4895
|
return this_0.u();
|
|
4888
4896
|
};
|
|
4889
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4897
|
+
protoOf(GameServerEngineControllerImpl).fa3 = function () {
|
|
4890
4898
|
// Inline function 'kotlin.getValue' call
|
|
4891
|
-
var this_0 = this.
|
|
4899
|
+
var this_0 = this.pa3_1;
|
|
4892
4900
|
randomPoolProvider$factory_0();
|
|
4893
4901
|
return this_0.u();
|
|
4894
4902
|
};
|
|
@@ -4898,7 +4906,7 @@
|
|
|
4898
4906
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4899
4907
|
return this.createGameEngineWithLogic();
|
|
4900
4908
|
};
|
|
4901
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4909
|
+
protoOf(GameServerEngineControllerImpl).ga3 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4902
4910
|
var combinedLogger = Companion_instance_6.qm();
|
|
4903
4911
|
var tmp;
|
|
4904
4912
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4908,8 +4916,8 @@
|
|
|
4908
4916
|
}
|
|
4909
4917
|
var fileLoggerOutput = tmp;
|
|
4910
4918
|
var tmp_0;
|
|
4911
|
-
if (!(this.
|
|
4912
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4919
|
+
if (!(this.ha3_1 == null)) {
|
|
4920
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.ha3_1));
|
|
4913
4921
|
} else {
|
|
4914
4922
|
tmp_0 = null;
|
|
4915
4923
|
}
|
|
@@ -5026,13 +5034,13 @@
|
|
|
5026
5034
|
}
|
|
5027
5035
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
5028
5036
|
// Inline function 'kotlin.getValue' call
|
|
5029
|
-
var this_0 = $this.
|
|
5037
|
+
var this_0 = $this.ta3_1;
|
|
5030
5038
|
playerAnswerInteractor$factory_0();
|
|
5031
5039
|
return this_0.u();
|
|
5032
5040
|
}
|
|
5033
5041
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5034
5042
|
return function ($this$singleton) {
|
|
5035
|
-
return this$0.
|
|
5043
|
+
return this$0.ra3_1;
|
|
5036
5044
|
};
|
|
5037
5045
|
}
|
|
5038
5046
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5061,17 +5069,17 @@
|
|
|
5061
5069
|
return emptyMap();
|
|
5062
5070
|
}
|
|
5063
5071
|
function TestHelperImpl(logger) {
|
|
5064
|
-
this.
|
|
5072
|
+
this.ra3_1 = logger;
|
|
5065
5073
|
var tmp = this;
|
|
5066
5074
|
var tmp_0 = Companion_instance_3;
|
|
5067
|
-
tmp.
|
|
5075
|
+
tmp.sa3_1 = tmp_0.h5y(VOID, TestHelperImpl$di$lambda(this));
|
|
5068
5076
|
var tmp_1 = this;
|
|
5069
5077
|
// Inline function 'org.kodein.di.instance' call
|
|
5070
|
-
var this_0 = this.
|
|
5078
|
+
var this_0 = this.sa3_1;
|
|
5071
5079
|
// Inline function 'org.kodein.type.generic' call
|
|
5072
5080
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5073
5081
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5074
|
-
tmp_1.
|
|
5082
|
+
tmp_1.ta3_1 = Instance(this_0, tmp$ret$0, null).t63(this, playerAnswerInteractor$factory());
|
|
5075
5083
|
}
|
|
5076
5084
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5077
5085
|
return _get_playerAnswerInteractor__msggz1(this).c8t(playerId, table, botConfig);
|
|
@@ -5218,19 +5226,19 @@
|
|
|
5218
5226
|
});
|
|
5219
5227
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5220
5228
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5221
|
-
return this.
|
|
5229
|
+
return this.ba3();
|
|
5222
5230
|
});
|
|
5223
5231
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5224
|
-
return this.
|
|
5232
|
+
return this.da3();
|
|
5225
5233
|
});
|
|
5226
5234
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5227
|
-
return this.
|
|
5235
|
+
return this.ea3();
|
|
5228
5236
|
});
|
|
5229
5237
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5230
|
-
return this.
|
|
5238
|
+
return this.ca3();
|
|
5231
5239
|
});
|
|
5232
5240
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5233
|
-
return this.
|
|
5241
|
+
return this.fa3();
|
|
5234
5242
|
});
|
|
5235
5243
|
//endregion
|
|
5236
5244
|
//region block: init
|
|
@@ -5238,6 +5246,7 @@
|
|
|
5238
5246
|
Companion_instance_8 = new Companion_0();
|
|
5239
5247
|
Companion_instance_9 = new Companion_1();
|
|
5240
5248
|
Companion_instance_10 = new Companion_2();
|
|
5249
|
+
Companion_instance_11 = new Companion_3();
|
|
5241
5250
|
//endregion
|
|
5242
5251
|
//region block: exports
|
|
5243
5252
|
function $jsExportAll$(_) {
|