raspberry_games_server_game_logic 1.8.275 → 1.8.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +21 -11
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +5 -3
- package/Logic_Debertz-game_server.js +650 -624
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +1 -1
- package/raspberry-cardgame-lib-random.js +28 -16
- package/raspberry-cardgame-lib-random.js.map +1 -1
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
|
|
110
110
|
var TeamsLogicProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
|
|
111
111
|
var lazy = kotlin_kotlin.$_$.oh;
|
|
112
|
+
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
|
|
112
113
|
var plus = kotlin_kotlin.$_$.z8;
|
|
113
114
|
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
114
115
|
var KProperty1 = kotlin_kotlin.$_$.pd;
|
|
@@ -123,15 +124,14 @@
|
|
|
123
124
|
var RandomPoolProvider = kotlin_io_raspberryapps_cardgame_random.$_$.i;
|
|
124
125
|
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.f;
|
|
125
126
|
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
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;
|
|
@@ -305,19 +305,20 @@
|
|
|
305
305
|
tmp = spectators;
|
|
306
306
|
}
|
|
307
307
|
spectators = tmp;
|
|
308
|
-
return this.
|
|
308
|
+
return this.w9t(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
309
309
|
}
|
|
310
310
|
function roomOnDelete(newRid, $super) {
|
|
311
311
|
newRid = newRid === VOID ? null : newRid;
|
|
312
|
-
return this.
|
|
312
|
+
return this.x9t(newRid);
|
|
313
313
|
}
|
|
314
314
|
function shutdown(reason, roomId, $super) {
|
|
315
315
|
roomId = roomId === VOID ? null : roomId;
|
|
316
|
-
return this.
|
|
316
|
+
return this.y9t(reason, roomId);
|
|
317
317
|
}
|
|
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.ia3(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]);
|
|
@@ -567,21 +568,27 @@
|
|
|
567
568
|
random$factory();
|
|
568
569
|
return this_0.u();
|
|
569
570
|
}
|
|
571
|
+
function _get_idsProvider__fnfajc($this) {
|
|
572
|
+
// Inline function 'kotlin.getValue' call
|
|
573
|
+
var this_0 = $this.h9l_1;
|
|
574
|
+
idsProvider$factory_0();
|
|
575
|
+
return this_0.u();
|
|
576
|
+
}
|
|
570
577
|
function Companion() {
|
|
571
|
-
this.
|
|
578
|
+
this.j9l_1 = 'GameEngine_API';
|
|
572
579
|
}
|
|
573
580
|
var Companion_instance_7;
|
|
574
581
|
function Companion_getInstance_0() {
|
|
575
582
|
return Companion_instance_7;
|
|
576
583
|
}
|
|
577
584
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
578
|
-
this.
|
|
585
|
+
this.k9l_1 = function_0;
|
|
579
586
|
}
|
|
580
587
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
581
|
-
return this.
|
|
588
|
+
return this.k9l_1(value, $completion);
|
|
582
589
|
};
|
|
583
590
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
584
|
-
return this.
|
|
591
|
+
return this.k9l_1;
|
|
585
592
|
};
|
|
586
593
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
587
594
|
var tmp;
|
|
@@ -602,13 +609,13 @@
|
|
|
602
609
|
return hashCode(this.o3());
|
|
603
610
|
};
|
|
604
611
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
605
|
-
this.
|
|
612
|
+
this.l9l_1 = function_0;
|
|
606
613
|
}
|
|
607
614
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
608
|
-
return this.
|
|
615
|
+
return this.l9l_1(value, $completion);
|
|
609
616
|
};
|
|
610
617
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
611
|
-
return this.
|
|
618
|
+
return this.l9l_1;
|
|
612
619
|
};
|
|
613
620
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
614
621
|
var tmp;
|
|
@@ -629,13 +636,13 @@
|
|
|
629
636
|
return hashCode(this.o3());
|
|
630
637
|
};
|
|
631
638
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
632
|
-
this.
|
|
639
|
+
this.m9l_1 = function_0;
|
|
633
640
|
}
|
|
634
641
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).p18 = function (value, $completion) {
|
|
635
|
-
return this.
|
|
642
|
+
return this.m9l_1(value, $completion);
|
|
636
643
|
};
|
|
637
644
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).o3 = function () {
|
|
638
|
-
return this.
|
|
645
|
+
return this.m9l_1;
|
|
639
646
|
};
|
|
640
647
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
641
648
|
var tmp;
|
|
@@ -661,8 +668,8 @@
|
|
|
661
668
|
};
|
|
662
669
|
}
|
|
663
670
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
671
|
+
this.v9l_1 = this$0;
|
|
672
|
+
this.w9l_1 = $subscriber;
|
|
666
673
|
CoroutineImpl.call(this, resultContinuation);
|
|
667
674
|
}
|
|
668
675
|
protoOf(GameServer$subscribeToClientAction$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -683,8 +690,8 @@
|
|
|
683
690
|
case 0:
|
|
684
691
|
this.f9_1 = 2;
|
|
685
692
|
this.e9_1 = 1;
|
|
686
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
687
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
693
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.v9l_1).y9l();
|
|
694
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.w9l_1, null);
|
|
688
695
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
689
696
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
690
697
|
return suspendResult;
|
|
@@ -708,8 +715,8 @@
|
|
|
708
715
|
while (true);
|
|
709
716
|
};
|
|
710
717
|
protoOf(GameServer$subscribeToClientAction$slambda).l1e = function ($this$launchDefault, completion) {
|
|
711
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
712
|
-
i.
|
|
718
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.v9l_1, this.w9l_1, completion);
|
|
719
|
+
i.x9l_1 = $this$launchDefault;
|
|
713
720
|
return i;
|
|
714
721
|
};
|
|
715
722
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -721,8 +728,8 @@
|
|
|
721
728
|
return l;
|
|
722
729
|
}
|
|
723
730
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
724
|
-
this.
|
|
725
|
-
this.
|
|
731
|
+
this.h9m_1 = this$0;
|
|
732
|
+
this.i9m_1 = $subscriber;
|
|
726
733
|
CoroutineImpl.call(this, resultContinuation);
|
|
727
734
|
}
|
|
728
735
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -743,8 +750,8 @@
|
|
|
743
750
|
case 0:
|
|
744
751
|
this.f9_1 = 2;
|
|
745
752
|
this.e9_1 = 1;
|
|
746
|
-
var tmp_0 = _get_mechanicEventsObserver__ll1b9k(this.
|
|
747
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
753
|
+
var tmp_0 = _get_mechanicEventsObserver__ll1b9k(this.h9m_1).k9m(this.h9m_1.j6q());
|
|
754
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.i9m_1, null);
|
|
748
755
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
749
756
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
750
757
|
return suspendResult;
|
|
@@ -768,8 +775,8 @@
|
|
|
768
775
|
while (true);
|
|
769
776
|
};
|
|
770
777
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).l1e = function ($this$launchDefault, completion) {
|
|
771
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
772
|
-
i.
|
|
778
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.h9m_1, this.i9m_1, completion);
|
|
779
|
+
i.j9m_1 = $this$launchDefault;
|
|
773
780
|
return i;
|
|
774
781
|
};
|
|
775
782
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -781,8 +788,8 @@
|
|
|
781
788
|
return l;
|
|
782
789
|
}
|
|
783
790
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
791
|
+
this.t9m_1 = this$0;
|
|
792
|
+
this.u9m_1 = $subscriber;
|
|
786
793
|
CoroutineImpl.call(this, resultContinuation);
|
|
787
794
|
}
|
|
788
795
|
protoOf(GameServer$subscribeWith$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -803,8 +810,8 @@
|
|
|
803
810
|
case 0:
|
|
804
811
|
this.f9_1 = 2;
|
|
805
812
|
this.e9_1 = 1;
|
|
806
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
807
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
813
|
+
var tmp_0 = distinctUntilChanged(this.t9m_1.j6q());
|
|
814
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.u9m_1, null);
|
|
808
815
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
809
816
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
810
817
|
return suspendResult;
|
|
@@ -828,8 +835,8 @@
|
|
|
828
835
|
while (true);
|
|
829
836
|
};
|
|
830
837
|
protoOf(GameServer$subscribeWith$slambda).l1e = function ($this$launchDefault, completion) {
|
|
831
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
832
|
-
i.
|
|
838
|
+
var i = new GameServer$subscribeWith$slambda(this.t9m_1, this.u9m_1, completion);
|
|
839
|
+
i.v9m_1 = $this$launchDefault;
|
|
833
840
|
return i;
|
|
834
841
|
};
|
|
835
842
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -841,18 +848,18 @@
|
|
|
841
848
|
return l;
|
|
842
849
|
}
|
|
843
850
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
844
|
-
this.
|
|
851
|
+
this.e9n_1 = $action;
|
|
845
852
|
CoroutineImpl.call(this, resultContinuation);
|
|
846
853
|
}
|
|
847
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
848
|
-
var tmp = this.
|
|
854
|
+
protoOf(GameServer$fromClientEvent$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
855
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
849
856
|
tmp.g9_1 = Unit_instance;
|
|
850
857
|
tmp.h9_1 = null;
|
|
851
858
|
return tmp.m9();
|
|
852
859
|
};
|
|
853
860
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
854
861
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
855
|
-
return this.
|
|
862
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
856
863
|
};
|
|
857
864
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
858
865
|
var suspendResult = this.g9_1;
|
|
@@ -861,11 +868,11 @@
|
|
|
861
868
|
var tmp = this.e9_1;
|
|
862
869
|
if (tmp === 0) {
|
|
863
870
|
this.f9_1 = 1;
|
|
864
|
-
if (this.
|
|
865
|
-
if (!get_isCreated(this.
|
|
871
|
+
if (this.e9n_1 instanceof PlayerReadyFromClientAction)
|
|
872
|
+
if (!get_isCreated(this.g9n_1.state)) {
|
|
866
873
|
return Unit_instance;
|
|
867
874
|
}
|
|
868
|
-
this.
|
|
875
|
+
this.g9n_1.dispatch(this.e9n_1);
|
|
869
876
|
return Unit_instance;
|
|
870
877
|
} else if (tmp === 1) {
|
|
871
878
|
throw this.h9_1;
|
|
@@ -876,33 +883,33 @@
|
|
|
876
883
|
}
|
|
877
884
|
while (true);
|
|
878
885
|
};
|
|
879
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
880
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
881
|
-
i.
|
|
882
|
-
i.
|
|
886
|
+
protoOf(GameServer$fromClientEvent$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
887
|
+
var i = new GameServer$fromClientEvent$slambda(this.e9n_1, completion);
|
|
888
|
+
i.f9n_1 = $this$dispatchAsync;
|
|
889
|
+
i.g9n_1 = store;
|
|
883
890
|
return i;
|
|
884
891
|
};
|
|
885
892
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
886
893
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
887
894
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
888
|
-
return i.
|
|
895
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
889
896
|
};
|
|
890
897
|
l.$arity = 2;
|
|
891
898
|
return l;
|
|
892
899
|
}
|
|
893
900
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
894
|
-
this.
|
|
901
|
+
this.r9n_1 = $playerId;
|
|
895
902
|
CoroutineImpl.call(this, resultContinuation);
|
|
896
903
|
}
|
|
897
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
898
|
-
var tmp = this.
|
|
904
|
+
protoOf(GameServer$playerLostConnection$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
905
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
899
906
|
tmp.g9_1 = Unit_instance;
|
|
900
907
|
tmp.h9_1 = null;
|
|
901
908
|
return tmp.m9();
|
|
902
909
|
};
|
|
903
910
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
904
911
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
905
|
-
return this.
|
|
912
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
906
913
|
};
|
|
907
914
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
908
915
|
var suspendResult = this.g9_1;
|
|
@@ -911,12 +918,12 @@
|
|
|
911
918
|
var tmp = this.e9_1;
|
|
912
919
|
if (tmp === 0) {
|
|
913
920
|
this.f9_1 = 1;
|
|
914
|
-
if (!get_isCreated(this.
|
|
921
|
+
if (!get_isCreated(this.t9n_1.state)) {
|
|
915
922
|
return Unit_instance;
|
|
916
923
|
}
|
|
917
|
-
var tmp_0 = this.
|
|
924
|
+
var tmp_0 = this.t9n_1.dispatch;
|
|
918
925
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
919
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
926
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.r9n_1));
|
|
920
927
|
return Unit_instance;
|
|
921
928
|
} else if (tmp === 1) {
|
|
922
929
|
throw this.h9_1;
|
|
@@ -927,33 +934,33 @@
|
|
|
927
934
|
}
|
|
928
935
|
while (true);
|
|
929
936
|
};
|
|
930
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
931
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
932
|
-
i.
|
|
933
|
-
i.
|
|
937
|
+
protoOf(GameServer$playerLostConnection$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
938
|
+
var i = new GameServer$playerLostConnection$slambda(this.r9n_1, completion);
|
|
939
|
+
i.s9n_1 = $this$dispatchAsync;
|
|
940
|
+
i.t9n_1 = store;
|
|
934
941
|
return i;
|
|
935
942
|
};
|
|
936
943
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
937
944
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
938
945
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
939
|
-
return i.
|
|
946
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
940
947
|
};
|
|
941
948
|
l.$arity = 2;
|
|
942
949
|
return l;
|
|
943
950
|
}
|
|
944
951
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
945
|
-
this.
|
|
952
|
+
this.c9o_1 = $playerId;
|
|
946
953
|
CoroutineImpl.call(this, resultContinuation);
|
|
947
954
|
}
|
|
948
|
-
protoOf(GameServer$playerLive$slambda).
|
|
949
|
-
var tmp = this.
|
|
955
|
+
protoOf(GameServer$playerLive$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
956
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
950
957
|
tmp.g9_1 = Unit_instance;
|
|
951
958
|
tmp.h9_1 = null;
|
|
952
959
|
return tmp.m9();
|
|
953
960
|
};
|
|
954
961
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
955
962
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
956
|
-
return this.
|
|
963
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
957
964
|
};
|
|
958
965
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
959
966
|
var suspendResult = this.g9_1;
|
|
@@ -962,9 +969,9 @@
|
|
|
962
969
|
var tmp = this.e9_1;
|
|
963
970
|
if (tmp === 0) {
|
|
964
971
|
this.f9_1 = 1;
|
|
965
|
-
var tmp_0 = this.
|
|
972
|
+
var tmp_0 = this.e9o_1.dispatch;
|
|
966
973
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
967
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
974
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.c9o_1));
|
|
968
975
|
return Unit_instance;
|
|
969
976
|
} else if (tmp === 1) {
|
|
970
977
|
throw this.h9_1;
|
|
@@ -975,33 +982,33 @@
|
|
|
975
982
|
}
|
|
976
983
|
while (true);
|
|
977
984
|
};
|
|
978
|
-
protoOf(GameServer$playerLive$slambda).
|
|
979
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
980
|
-
i.
|
|
981
|
-
i.
|
|
985
|
+
protoOf(GameServer$playerLive$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
986
|
+
var i = new GameServer$playerLive$slambda(this.c9o_1, completion);
|
|
987
|
+
i.d9o_1 = $this$dispatchAsync;
|
|
988
|
+
i.e9o_1 = store;
|
|
982
989
|
return i;
|
|
983
990
|
};
|
|
984
991
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
985
992
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
986
993
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
987
|
-
return i.
|
|
994
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
988
995
|
};
|
|
989
996
|
l.$arity = 2;
|
|
990
997
|
return l;
|
|
991
998
|
}
|
|
992
999
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
993
|
-
this.
|
|
1000
|
+
this.n9o_1 = $playerId;
|
|
994
1001
|
CoroutineImpl.call(this, resultContinuation);
|
|
995
1002
|
}
|
|
996
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
997
|
-
var tmp = this.
|
|
1003
|
+
protoOf(GameServer$playerLeft$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1004
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
998
1005
|
tmp.g9_1 = Unit_instance;
|
|
999
1006
|
tmp.h9_1 = null;
|
|
1000
1007
|
return tmp.m9();
|
|
1001
1008
|
};
|
|
1002
1009
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
1003
1010
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1004
|
-
return this.
|
|
1011
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1005
1012
|
};
|
|
1006
1013
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
1007
1014
|
var suspendResult = this.g9_1;
|
|
@@ -1010,9 +1017,9 @@
|
|
|
1010
1017
|
var tmp = this.e9_1;
|
|
1011
1018
|
if (tmp === 0) {
|
|
1012
1019
|
this.f9_1 = 1;
|
|
1013
|
-
var tmp_0 = this.
|
|
1020
|
+
var tmp_0 = this.p9o_1.dispatch;
|
|
1014
1021
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
1015
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1022
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.n9o_1));
|
|
1016
1023
|
return Unit_instance;
|
|
1017
1024
|
} else if (tmp === 1) {
|
|
1018
1025
|
throw this.h9_1;
|
|
@@ -1023,39 +1030,39 @@
|
|
|
1023
1030
|
}
|
|
1024
1031
|
while (true);
|
|
1025
1032
|
};
|
|
1026
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1027
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
1028
|
-
i.
|
|
1029
|
-
i.
|
|
1033
|
+
protoOf(GameServer$playerLeft$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1034
|
+
var i = new GameServer$playerLeft$slambda(this.n9o_1, completion);
|
|
1035
|
+
i.o9o_1 = $this$dispatchAsync;
|
|
1036
|
+
i.p9o_1 = store;
|
|
1030
1037
|
return i;
|
|
1031
1038
|
};
|
|
1032
1039
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
1033
1040
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
1034
1041
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1035
|
-
return i.
|
|
1042
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1036
1043
|
};
|
|
1037
1044
|
l.$arity = 2;
|
|
1038
1045
|
return l;
|
|
1039
1046
|
}
|
|
1040
1047
|
function GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
+
this.y9o_1 = $usersArray;
|
|
1049
|
+
this.z9o_1 = $gameCreatorId;
|
|
1050
|
+
this.a9p_1 = $config;
|
|
1051
|
+
this.b9p_1 = $transition;
|
|
1052
|
+
this.c9p_1 = this$0;
|
|
1053
|
+
this.d9p_1 = $spectators;
|
|
1054
|
+
this.e9p_1 = $roomId;
|
|
1048
1055
|
CoroutineImpl.call(this, resultContinuation);
|
|
1049
1056
|
}
|
|
1050
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1051
|
-
var tmp = this.
|
|
1057
|
+
protoOf(GameServer$roomOnCreate$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1058
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1052
1059
|
tmp.g9_1 = Unit_instance;
|
|
1053
1060
|
tmp.h9_1 = null;
|
|
1054
1061
|
return tmp.m9();
|
|
1055
1062
|
};
|
|
1056
1063
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
1057
1064
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1058
|
-
return this.
|
|
1065
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1059
1066
|
};
|
|
1060
1067
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
1061
1068
|
var suspendResult = this.g9_1;
|
|
@@ -1064,17 +1071,17 @@
|
|
|
1064
1071
|
var tmp = this.e9_1;
|
|
1065
1072
|
if (tmp === 0) {
|
|
1066
1073
|
this.f9_1 = 1;
|
|
1067
|
-
var users = toList(this.
|
|
1068
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
1074
|
+
var users = toList(this.y9o_1);
|
|
1075
|
+
var gameCreatorUser = getPlayer(users, this.z9o_1);
|
|
1069
1076
|
var tmp_0;
|
|
1070
|
-
if (this.
|
|
1071
|
-
tmp_0 = sortWithItem(_get_random__h29cgo(this.
|
|
1077
|
+
if (this.a9p_1.mode.shufflePlayers && this.b9p_1 == null) {
|
|
1078
|
+
tmp_0 = sortWithItem(_get_random__h29cgo(this.c9p_1).h5w(toMutableList(users)), gameCreatorUser);
|
|
1072
1079
|
} else {
|
|
1073
|
-
var tmp0_safe_receiver = this.
|
|
1080
|
+
var tmp0_safe_receiver = this.b9p_1;
|
|
1074
1081
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
1075
1082
|
var tmp_1;
|
|
1076
|
-
if (!(previousPlayers == null) && this.
|
|
1077
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
1083
|
+
if (!(previousPlayers == null) && this.a9p_1.playersMode.isTeamGame) {
|
|
1084
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.c9p_1);
|
|
1078
1085
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
1079
1086
|
var tmp0_iterator = previousPlayers.j();
|
|
1080
1087
|
while (tmp0_iterator.k()) {
|
|
@@ -1105,17 +1112,17 @@
|
|
|
1105
1112
|
destination_1.e(destination_2);
|
|
1106
1113
|
}
|
|
1107
1114
|
var updatedTeams = destination_1;
|
|
1108
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
1115
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.c9p_1).k8s(updatedTeams);
|
|
1109
1116
|
} else {
|
|
1110
1117
|
tmp_1 = users;
|
|
1111
1118
|
}
|
|
1112
1119
|
tmp_0 = tmp_1;
|
|
1113
1120
|
}
|
|
1114
1121
|
var updatedUsers = tmp_0;
|
|
1115
|
-
var tmp_3 = this.
|
|
1122
|
+
var tmp_3 = this.g9p_1.dispatch;
|
|
1116
1123
|
var tmp1_version = GameEngineConfig_instance.version;
|
|
1117
|
-
var tmp2_spectators = toList(this.
|
|
1118
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
1124
|
+
var tmp2_spectators = toList(this.d9p_1);
|
|
1125
|
+
tmp_3(new StartGameMechanicAction(this.a9p_1, this.e9p_1, tmp1_version, this.z9o_1, updatedUsers, VOID, tmp2_spectators));
|
|
1119
1126
|
return Unit_instance;
|
|
1120
1127
|
} else if (tmp === 1) {
|
|
1121
1128
|
throw this.h9_1;
|
|
@@ -1126,33 +1133,33 @@
|
|
|
1126
1133
|
}
|
|
1127
1134
|
while (true);
|
|
1128
1135
|
};
|
|
1129
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1130
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
1131
|
-
i.
|
|
1132
|
-
i.
|
|
1136
|
+
protoOf(GameServer$roomOnCreate$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1137
|
+
var i = new GameServer$roomOnCreate$slambda(this.y9o_1, this.z9o_1, this.a9p_1, this.b9p_1, this.c9p_1, this.d9p_1, this.e9p_1, completion);
|
|
1138
|
+
i.f9p_1 = $this$dispatchAsync;
|
|
1139
|
+
i.g9p_1 = store;
|
|
1133
1140
|
return i;
|
|
1134
1141
|
};
|
|
1135
1142
|
function GameServer$roomOnCreate$slambda_0($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
1136
1143
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation);
|
|
1137
1144
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1138
|
-
return i.
|
|
1145
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1139
1146
|
};
|
|
1140
1147
|
l.$arity = 2;
|
|
1141
1148
|
return l;
|
|
1142
1149
|
}
|
|
1143
1150
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
1144
|
-
this.
|
|
1151
|
+
this.p9p_1 = $state;
|
|
1145
1152
|
CoroutineImpl.call(this, resultContinuation);
|
|
1146
1153
|
}
|
|
1147
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1148
|
-
var tmp = this.
|
|
1154
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1155
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1149
1156
|
tmp.g9_1 = Unit_instance;
|
|
1150
1157
|
tmp.h9_1 = null;
|
|
1151
1158
|
return tmp.m9();
|
|
1152
1159
|
};
|
|
1153
1160
|
protoOf(GameServer$roomOnContinueFromState$slambda).x9 = function (p1, p2, $completion) {
|
|
1154
1161
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1155
|
-
return this.
|
|
1162
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1156
1163
|
};
|
|
1157
1164
|
protoOf(GameServer$roomOnContinueFromState$slambda).m9 = function () {
|
|
1158
1165
|
var suspendResult = this.g9_1;
|
|
@@ -1161,9 +1168,9 @@
|
|
|
1161
1168
|
var tmp = this.e9_1;
|
|
1162
1169
|
if (tmp === 0) {
|
|
1163
1170
|
this.f9_1 = 1;
|
|
1164
|
-
var tmp_0 = this.
|
|
1171
|
+
var tmp_0 = this.r9p_1.dispatch;
|
|
1165
1172
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
1166
|
-
var tmp1_table = this.
|
|
1173
|
+
var tmp1_table = this.p9p_1.table;
|
|
1167
1174
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1168
1175
|
return Unit_instance;
|
|
1169
1176
|
} else if (tmp === 1) {
|
|
@@ -1175,33 +1182,33 @@
|
|
|
1175
1182
|
}
|
|
1176
1183
|
while (true);
|
|
1177
1184
|
};
|
|
1178
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1179
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
1180
|
-
i.
|
|
1181
|
-
i.
|
|
1185
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1186
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.p9p_1, completion);
|
|
1187
|
+
i.q9p_1 = $this$dispatchAsync;
|
|
1188
|
+
i.r9p_1 = store;
|
|
1182
1189
|
return i;
|
|
1183
1190
|
};
|
|
1184
1191
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
1185
1192
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
1186
1193
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1187
|
-
return i.
|
|
1194
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1188
1195
|
};
|
|
1189
1196
|
l.$arity = 2;
|
|
1190
1197
|
return l;
|
|
1191
1198
|
}
|
|
1192
1199
|
function GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation) {
|
|
1193
|
-
this.
|
|
1200
|
+
this.a9q_1 = $state;
|
|
1194
1201
|
CoroutineImpl.call(this, resultContinuation);
|
|
1195
1202
|
}
|
|
1196
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1197
|
-
var tmp = this.
|
|
1203
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1204
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1198
1205
|
tmp.g9_1 = Unit_instance;
|
|
1199
1206
|
tmp.h9_1 = null;
|
|
1200
1207
|
return tmp.m9();
|
|
1201
1208
|
};
|
|
1202
1209
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).x9 = function (p1, p2, $completion) {
|
|
1203
1210
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1204
|
-
return this.
|
|
1211
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1205
1212
|
};
|
|
1206
1213
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).m9 = function () {
|
|
1207
1214
|
var suspendResult = this.g9_1;
|
|
@@ -1210,10 +1217,10 @@
|
|
|
1210
1217
|
var tmp = this.e9_1;
|
|
1211
1218
|
if (tmp === 0) {
|
|
1212
1219
|
this.f9_1 = 1;
|
|
1213
|
-
var tmp0_iterator = this.
|
|
1220
|
+
var tmp0_iterator = this.a9q_1.actions.j();
|
|
1214
1221
|
while (tmp0_iterator.k()) {
|
|
1215
1222
|
var element = tmp0_iterator.l();
|
|
1216
|
-
this.
|
|
1223
|
+
this.c9q_1.dispatch(element);
|
|
1217
1224
|
}
|
|
1218
1225
|
return Unit_instance;
|
|
1219
1226
|
} else if (tmp === 1) {
|
|
@@ -1225,34 +1232,35 @@
|
|
|
1225
1232
|
}
|
|
1226
1233
|
while (true);
|
|
1227
1234
|
};
|
|
1228
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1229
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
1230
|
-
i.
|
|
1231
|
-
i.
|
|
1235
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1236
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.a9q_1, completion);
|
|
1237
|
+
i.b9q_1 = $this$dispatchAsync;
|
|
1238
|
+
i.c9q_1 = store;
|
|
1232
1239
|
return i;
|
|
1233
1240
|
};
|
|
1234
1241
|
function GameServer$roomOnContinueFromState$slambda_2($state, resultContinuation) {
|
|
1235
1242
|
var i = new GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation);
|
|
1236
1243
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1237
|
-
return i.
|
|
1244
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1238
1245
|
};
|
|
1239
1246
|
l.$arity = 2;
|
|
1240
1247
|
return l;
|
|
1241
1248
|
}
|
|
1242
|
-
function GameServer$roomOnContinueFromRound$slambda($roomId, $tableLite, resultContinuation) {
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1249
|
+
function GameServer$roomOnContinueFromRound$slambda($roomId, this$0, $tableLite, resultContinuation) {
|
|
1250
|
+
this.l9q_1 = $roomId;
|
|
1251
|
+
this.m9q_1 = this$0;
|
|
1252
|
+
this.n9q_1 = $tableLite;
|
|
1245
1253
|
CoroutineImpl.call(this, resultContinuation);
|
|
1246
1254
|
}
|
|
1247
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1248
|
-
var tmp = this.
|
|
1255
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1256
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1249
1257
|
tmp.g9_1 = Unit_instance;
|
|
1250
1258
|
tmp.h9_1 = null;
|
|
1251
1259
|
return tmp.m9();
|
|
1252
1260
|
};
|
|
1253
1261
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
1254
1262
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1255
|
-
return this.
|
|
1263
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1256
1264
|
};
|
|
1257
1265
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
1258
1266
|
var suspendResult = this.g9_1;
|
|
@@ -1261,9 +1269,9 @@
|
|
|
1261
1269
|
var tmp = this.e9_1;
|
|
1262
1270
|
if (tmp === 0) {
|
|
1263
1271
|
this.f9_1 = 1;
|
|
1264
|
-
var tmp_0 = this.
|
|
1272
|
+
var tmp_0 = this.p9q_1.dispatch;
|
|
1265
1273
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
1266
|
-
var tmp1_table = Companion_instance.restartRound(this.
|
|
1274
|
+
var tmp1_table = Companion_instance.restartRound(this.l9q_1, _get_idsProvider__fnfajc(this.m9q_1).s6h(), GameEngineConfig_instance.version, this.n9q_1);
|
|
1267
1275
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1268
1276
|
return Unit_instance;
|
|
1269
1277
|
} else if (tmp === 1) {
|
|
@@ -1275,16 +1283,16 @@
|
|
|
1275
1283
|
}
|
|
1276
1284
|
while (true);
|
|
1277
1285
|
};
|
|
1278
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1279
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
1280
|
-
i.
|
|
1281
|
-
i.
|
|
1286
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1287
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.l9q_1, this.m9q_1, this.n9q_1, completion);
|
|
1288
|
+
i.o9q_1 = $this$dispatchAsync;
|
|
1289
|
+
i.p9q_1 = store;
|
|
1282
1290
|
return i;
|
|
1283
1291
|
};
|
|
1284
|
-
function GameServer$roomOnContinueFromRound$slambda_0($roomId, $tableLite, resultContinuation) {
|
|
1285
|
-
var i = new GameServer$roomOnContinueFromRound$slambda($roomId, $tableLite, resultContinuation);
|
|
1292
|
+
function GameServer$roomOnContinueFromRound$slambda_0($roomId, this$0, $tableLite, resultContinuation) {
|
|
1293
|
+
var i = new GameServer$roomOnContinueFromRound$slambda($roomId, this$0, $tableLite, resultContinuation);
|
|
1286
1294
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1287
|
-
return i.
|
|
1295
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1288
1296
|
};
|
|
1289
1297
|
l.$arity = 2;
|
|
1290
1298
|
return l;
|
|
@@ -1292,15 +1300,15 @@
|
|
|
1292
1300
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1293
1301
|
CoroutineImpl.call(this, resultContinuation);
|
|
1294
1302
|
}
|
|
1295
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1296
|
-
var tmp = this.
|
|
1303
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1304
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1297
1305
|
tmp.g9_1 = Unit_instance;
|
|
1298
1306
|
tmp.h9_1 = null;
|
|
1299
1307
|
return tmp.m9();
|
|
1300
1308
|
};
|
|
1301
1309
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).x9 = function (p1, p2, $completion) {
|
|
1302
1310
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1303
|
-
return this.
|
|
1311
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1304
1312
|
};
|
|
1305
1313
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).m9 = function () {
|
|
1306
1314
|
var suspendResult = this.g9_1;
|
|
@@ -1309,7 +1317,7 @@
|
|
|
1309
1317
|
var tmp = this.e9_1;
|
|
1310
1318
|
if (tmp === 0) {
|
|
1311
1319
|
this.f9_1 = 1;
|
|
1312
|
-
this.
|
|
1320
|
+
this.z9q_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1313
1321
|
return Unit_instance;
|
|
1314
1322
|
} else if (tmp === 1) {
|
|
1315
1323
|
throw this.h9_1;
|
|
@@ -1320,33 +1328,33 @@
|
|
|
1320
1328
|
}
|
|
1321
1329
|
while (true);
|
|
1322
1330
|
};
|
|
1323
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1331
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1324
1332
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1325
|
-
i.
|
|
1326
|
-
i.
|
|
1333
|
+
i.y9q_1 = $this$dispatchAsync;
|
|
1334
|
+
i.z9q_1 = store;
|
|
1327
1335
|
return i;
|
|
1328
1336
|
};
|
|
1329
1337
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1330
1338
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1331
1339
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1332
|
-
return i.
|
|
1340
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1333
1341
|
};
|
|
1334
1342
|
l.$arity = 2;
|
|
1335
1343
|
return l;
|
|
1336
1344
|
}
|
|
1337
1345
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1338
|
-
this.
|
|
1346
|
+
this.i9r_1 = $spectators;
|
|
1339
1347
|
CoroutineImpl.call(this, resultContinuation);
|
|
1340
1348
|
}
|
|
1341
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1342
|
-
var tmp = this.
|
|
1349
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1350
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1343
1351
|
tmp.g9_1 = Unit_instance;
|
|
1344
1352
|
tmp.h9_1 = null;
|
|
1345
1353
|
return tmp.m9();
|
|
1346
1354
|
};
|
|
1347
1355
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1348
1356
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1349
|
-
return this.
|
|
1357
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1350
1358
|
};
|
|
1351
1359
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
1352
1360
|
var suspendResult = this.g9_1;
|
|
@@ -1355,7 +1363,7 @@
|
|
|
1355
1363
|
var tmp = this.e9_1;
|
|
1356
1364
|
if (tmp === 0) {
|
|
1357
1365
|
this.f9_1 = 1;
|
|
1358
|
-
this.
|
|
1366
|
+
this.k9r_1.dispatch(new AddSpectatorsAction(toList(this.i9r_1)));
|
|
1359
1367
|
return Unit_instance;
|
|
1360
1368
|
} else if (tmp === 1) {
|
|
1361
1369
|
throw this.h9_1;
|
|
@@ -1366,33 +1374,33 @@
|
|
|
1366
1374
|
}
|
|
1367
1375
|
while (true);
|
|
1368
1376
|
};
|
|
1369
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1370
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1371
|
-
i.
|
|
1372
|
-
i.
|
|
1377
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1378
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.i9r_1, completion);
|
|
1379
|
+
i.j9r_1 = $this$dispatchAsync;
|
|
1380
|
+
i.k9r_1 = store;
|
|
1373
1381
|
return i;
|
|
1374
1382
|
};
|
|
1375
1383
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1376
1384
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1377
1385
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1378
|
-
return i.
|
|
1386
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1379
1387
|
};
|
|
1380
1388
|
l.$arity = 2;
|
|
1381
1389
|
return l;
|
|
1382
1390
|
}
|
|
1383
1391
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1384
|
-
this.
|
|
1392
|
+
this.t9r_1 = $spectators;
|
|
1385
1393
|
CoroutineImpl.call(this, resultContinuation);
|
|
1386
1394
|
}
|
|
1387
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1388
|
-
var tmp = this.
|
|
1395
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1396
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1389
1397
|
tmp.g9_1 = Unit_instance;
|
|
1390
1398
|
tmp.h9_1 = null;
|
|
1391
1399
|
return tmp.m9();
|
|
1392
1400
|
};
|
|
1393
1401
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1394
1402
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1395
|
-
return this.
|
|
1403
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1396
1404
|
};
|
|
1397
1405
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1398
1406
|
var suspendResult = this.g9_1;
|
|
@@ -1401,7 +1409,7 @@
|
|
|
1401
1409
|
var tmp = this.e9_1;
|
|
1402
1410
|
if (tmp === 0) {
|
|
1403
1411
|
this.f9_1 = 1;
|
|
1404
|
-
this.
|
|
1412
|
+
this.v9r_1.dispatch(new RemoveSpectatorsAction(toList(this.t9r_1)));
|
|
1405
1413
|
return Unit_instance;
|
|
1406
1414
|
} else if (tmp === 1) {
|
|
1407
1415
|
throw this.h9_1;
|
|
@@ -1412,34 +1420,34 @@
|
|
|
1412
1420
|
}
|
|
1413
1421
|
while (true);
|
|
1414
1422
|
};
|
|
1415
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1416
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1417
|
-
i.
|
|
1418
|
-
i.
|
|
1423
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1424
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.t9r_1, completion);
|
|
1425
|
+
i.u9r_1 = $this$dispatchAsync;
|
|
1426
|
+
i.v9r_1 = store;
|
|
1419
1427
|
return i;
|
|
1420
1428
|
};
|
|
1421
1429
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1422
1430
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1423
1431
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1424
|
-
return i.
|
|
1432
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1425
1433
|
};
|
|
1426
1434
|
l.$arity = 2;
|
|
1427
1435
|
return l;
|
|
1428
1436
|
}
|
|
1429
1437
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1438
|
+
this.e9s_1 = $playerId;
|
|
1439
|
+
this.f9s_1 = this$0;
|
|
1432
1440
|
CoroutineImpl.call(this, resultContinuation);
|
|
1433
1441
|
}
|
|
1434
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1435
|
-
var tmp = this.
|
|
1442
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1443
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1436
1444
|
tmp.g9_1 = Unit_instance;
|
|
1437
1445
|
tmp.h9_1 = null;
|
|
1438
1446
|
return tmp.m9();
|
|
1439
1447
|
};
|
|
1440
1448
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1441
1449
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1442
|
-
return this.
|
|
1450
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1443
1451
|
};
|
|
1444
1452
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1445
1453
|
var suspendResult = this.g9_1;
|
|
@@ -1448,14 +1456,14 @@
|
|
|
1448
1456
|
var tmp = this.e9_1;
|
|
1449
1457
|
if (tmp === 0) {
|
|
1450
1458
|
this.f9_1 = 1;
|
|
1451
|
-
var table = this.
|
|
1452
|
-
var player = getPlayer(table.players, this.
|
|
1459
|
+
var table = this.h9s_1.state.m6r();
|
|
1460
|
+
var player = getPlayer(table.players, this.e9s_1);
|
|
1453
1461
|
if (player.f6x_1.h6d().y6b_1.isLive) {
|
|
1454
|
-
this.
|
|
1462
|
+
this.h9s_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.f9s_1).b8z(player, table));
|
|
1455
1463
|
} else {
|
|
1456
|
-
var tmp_0 = this.
|
|
1464
|
+
var tmp_0 = this.h9s_1.dispatch;
|
|
1457
1465
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1458
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1466
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.e9s_1));
|
|
1459
1467
|
}
|
|
1460
1468
|
return Unit_instance;
|
|
1461
1469
|
} else if (tmp === 1) {
|
|
@@ -1467,34 +1475,34 @@
|
|
|
1467
1475
|
}
|
|
1468
1476
|
while (true);
|
|
1469
1477
|
};
|
|
1470
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1471
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1472
|
-
i.
|
|
1473
|
-
i.
|
|
1478
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1479
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.e9s_1, this.f9s_1, completion);
|
|
1480
|
+
i.g9s_1 = $this$dispatchAsync;
|
|
1481
|
+
i.h9s_1 = store;
|
|
1474
1482
|
return i;
|
|
1475
1483
|
};
|
|
1476
1484
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1477
1485
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1478
1486
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1479
|
-
return i.
|
|
1487
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1480
1488
|
};
|
|
1481
1489
|
l.$arity = 2;
|
|
1482
1490
|
return l;
|
|
1483
1491
|
}
|
|
1484
1492
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1493
|
+
this.q9s_1 = this$0;
|
|
1494
|
+
this.r9s_1 = $newRid;
|
|
1487
1495
|
CoroutineImpl.call(this, resultContinuation);
|
|
1488
1496
|
}
|
|
1489
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1490
|
-
var tmp = this.
|
|
1497
|
+
protoOf(GameServer$roomOnDelete$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1498
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1491
1499
|
tmp.g9_1 = Unit_instance;
|
|
1492
1500
|
tmp.h9_1 = null;
|
|
1493
1501
|
return tmp.m9();
|
|
1494
1502
|
};
|
|
1495
1503
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1496
1504
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1497
|
-
return this.
|
|
1505
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1498
1506
|
};
|
|
1499
1507
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1500
1508
|
var suspendResult = this.g9_1;
|
|
@@ -1503,10 +1511,10 @@
|
|
|
1503
1511
|
var tmp = this.e9_1;
|
|
1504
1512
|
if (tmp === 0) {
|
|
1505
1513
|
this.f9_1 = 1;
|
|
1506
|
-
var it = this.
|
|
1514
|
+
var it = this.q9s_1.e6b().n6q_1;
|
|
1507
1515
|
var tmp_0;
|
|
1508
1516
|
if (it == null) {
|
|
1509
|
-
_get_logger__rkp4sl(this.
|
|
1517
|
+
_get_logger__rkp4sl(this.q9s_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1510
1518
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1511
1519
|
} else {
|
|
1512
1520
|
tmp_0 = it;
|
|
@@ -1515,7 +1523,7 @@
|
|
|
1515
1523
|
var gameTransition = terminationState.h92_1;
|
|
1516
1524
|
var tmp_1;
|
|
1517
1525
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
1518
|
-
var value = this.
|
|
1526
|
+
var value = this.r9s_1;
|
|
1519
1527
|
var tmp$ret$0 = Unit_instance;
|
|
1520
1528
|
l$ret$1: do {
|
|
1521
1529
|
if (value == null) {
|
|
@@ -1532,9 +1540,9 @@
|
|
|
1532
1540
|
tmp_1 = gameTransition;
|
|
1533
1541
|
}
|
|
1534
1542
|
var transition = tmp_1;
|
|
1535
|
-
var tmp_2 = this.
|
|
1543
|
+
var tmp_2 = this.t9s_1.dispatch;
|
|
1536
1544
|
var tmp0_reason = terminationState.g92_1;
|
|
1537
|
-
var tmp1_isGameFinished = this.
|
|
1545
|
+
var tmp1_isGameFinished = this.q9s_1.e6b().m6r().isGameFinished;
|
|
1538
1546
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
1539
1547
|
return Unit_instance;
|
|
1540
1548
|
} else if (tmp === 1) {
|
|
@@ -1546,33 +1554,33 @@
|
|
|
1546
1554
|
}
|
|
1547
1555
|
while (true);
|
|
1548
1556
|
};
|
|
1549
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1550
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1551
|
-
i.
|
|
1552
|
-
i.
|
|
1557
|
+
protoOf(GameServer$roomOnDelete$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1558
|
+
var i = new GameServer$roomOnDelete$slambda(this.q9s_1, this.r9s_1, completion);
|
|
1559
|
+
i.s9s_1 = $this$dispatchAsync;
|
|
1560
|
+
i.t9s_1 = store;
|
|
1553
1561
|
return i;
|
|
1554
1562
|
};
|
|
1555
1563
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1556
1564
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1557
1565
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1558
|
-
return i.
|
|
1566
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1559
1567
|
};
|
|
1560
1568
|
l.$arity = 2;
|
|
1561
1569
|
return l;
|
|
1562
1570
|
}
|
|
1563
1571
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1564
|
-
this.
|
|
1572
|
+
this.c9t_1 = $enabled;
|
|
1565
1573
|
CoroutineImpl.call(this, resultContinuation);
|
|
1566
1574
|
}
|
|
1567
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1568
|
-
var tmp = this.
|
|
1575
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1576
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1569
1577
|
tmp.g9_1 = Unit_instance;
|
|
1570
1578
|
tmp.h9_1 = null;
|
|
1571
1579
|
return tmp.m9();
|
|
1572
1580
|
};
|
|
1573
1581
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1574
1582
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1575
|
-
return this.
|
|
1583
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1576
1584
|
};
|
|
1577
1585
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1578
1586
|
var suspendResult = this.g9_1;
|
|
@@ -1581,7 +1589,7 @@
|
|
|
1581
1589
|
var tmp = this.e9_1;
|
|
1582
1590
|
if (tmp === 0) {
|
|
1583
1591
|
this.f9_1 = 1;
|
|
1584
|
-
this.
|
|
1592
|
+
this.e9t_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.e9t_1.state).f9t_1.h9t(this.c9t_1)));
|
|
1585
1593
|
return Unit_instance;
|
|
1586
1594
|
} else if (tmp === 1) {
|
|
1587
1595
|
throw this.h9_1;
|
|
@@ -1592,35 +1600,35 @@
|
|
|
1592
1600
|
}
|
|
1593
1601
|
while (true);
|
|
1594
1602
|
};
|
|
1595
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1596
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1597
|
-
i.
|
|
1598
|
-
i.
|
|
1603
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1604
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.c9t_1, completion);
|
|
1605
|
+
i.d9t_1 = $this$dispatchAsync;
|
|
1606
|
+
i.e9t_1 = store;
|
|
1599
1607
|
return i;
|
|
1600
1608
|
};
|
|
1601
1609
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1602
1610
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1603
1611
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1604
|
-
return i.
|
|
1612
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1605
1613
|
};
|
|
1606
1614
|
l.$arity = 2;
|
|
1607
1615
|
return l;
|
|
1608
1616
|
}
|
|
1609
1617
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1618
|
+
this.q9t_1 = $reason;
|
|
1619
|
+
this.r9t_1 = this$0;
|
|
1620
|
+
this.s9t_1 = $roomId;
|
|
1613
1621
|
CoroutineImpl.call(this, resultContinuation);
|
|
1614
1622
|
}
|
|
1615
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1616
|
-
var tmp = this.
|
|
1623
|
+
protoOf(GameServer$shutdown$slambda).h9n = function ($this$dispatchAsync, store, $completion) {
|
|
1624
|
+
var tmp = this.i9n($this$dispatchAsync, store, $completion);
|
|
1617
1625
|
tmp.g9_1 = Unit_instance;
|
|
1618
1626
|
tmp.h9_1 = null;
|
|
1619
1627
|
return tmp.m9();
|
|
1620
1628
|
};
|
|
1621
1629
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1622
1630
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1623
|
-
return this.
|
|
1631
|
+
return this.h9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1624
1632
|
};
|
|
1625
1633
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1626
1634
|
var suspendResult = this.g9_1;
|
|
@@ -1629,11 +1637,11 @@
|
|
|
1629
1637
|
var tmp = this.e9_1;
|
|
1630
1638
|
if (tmp === 0) {
|
|
1631
1639
|
this.f9_1 = 1;
|
|
1632
|
-
var state = this.
|
|
1640
|
+
var state = this.u9t_1.store.state;
|
|
1633
1641
|
if (state.n6r()) {
|
|
1634
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1642
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.q9t_1, get_serverShutdownReasonMapping());
|
|
1635
1643
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1636
|
-
var tmp_0 = this.
|
|
1644
|
+
var tmp_0 = this.u9t_1.dispatch;
|
|
1637
1645
|
var tmp_1 = Companion_instance_0;
|
|
1638
1646
|
var tmp_2;
|
|
1639
1647
|
switch (shutdownReason.n2_1) {
|
|
@@ -1647,10 +1655,10 @@
|
|
|
1647
1655
|
noWhenBranchMatchedException();
|
|
1648
1656
|
break;
|
|
1649
1657
|
}
|
|
1650
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1658
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.r9t_1.table.isGameFinished, this.r9t_1.table));
|
|
1651
1659
|
} else {
|
|
1652
|
-
_get_logger__rkp4sl(this.
|
|
1653
|
-
this.
|
|
1660
|
+
_get_logger__rkp4sl(this.r9t_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.s9t_1);
|
|
1661
|
+
this.u9t_1.dispatch(new ClearAction());
|
|
1654
1662
|
}
|
|
1655
1663
|
return Unit_instance;
|
|
1656
1664
|
} else if (tmp === 1) {
|
|
@@ -1662,22 +1670,22 @@
|
|
|
1662
1670
|
}
|
|
1663
1671
|
while (true);
|
|
1664
1672
|
};
|
|
1665
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1666
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1667
|
-
i.
|
|
1668
|
-
i.
|
|
1673
|
+
protoOf(GameServer$shutdown$slambda).i9n = function ($this$dispatchAsync, store, completion) {
|
|
1674
|
+
var i = new GameServer$shutdown$slambda(this.q9t_1, this.r9t_1, this.s9t_1, completion);
|
|
1675
|
+
i.t9t_1 = $this$dispatchAsync;
|
|
1676
|
+
i.u9t_1 = store;
|
|
1669
1677
|
return i;
|
|
1670
1678
|
};
|
|
1671
1679
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1672
1680
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1673
1681
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1674
|
-
return i.
|
|
1682
|
+
return i.h9n($this$dispatchAsync, store, $completion);
|
|
1675
1683
|
};
|
|
1676
1684
|
l.$arity = 2;
|
|
1677
1685
|
return l;
|
|
1678
1686
|
}
|
|
1679
1687
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1680
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID,
|
|
1688
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_11.v9t()) : preloadedState;
|
|
1681
1689
|
var tmp;
|
|
1682
1690
|
if (externalReducers === VOID) {
|
|
1683
1691
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1728,12 +1736,18 @@
|
|
|
1728
1736
|
var tmp_11 = this;
|
|
1729
1737
|
tmp_11.g9l_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1730
1738
|
var tmp_12 = this;
|
|
1739
|
+
// Inline function 'org.kodein.di.instance' call
|
|
1740
|
+
// Inline function 'org.kodein.type.generic' call
|
|
1741
|
+
var tmp_13 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
1742
|
+
var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
1743
|
+
tmp_12.h9l_1 = Instance(di, tmp$ret$12, null).t63(this, idsProvider$factory());
|
|
1744
|
+
var tmp_14 = this;
|
|
1731
1745
|
var tmp0_externalMiddlewares = plus(storeContract.d95(), externalMiddlewares);
|
|
1732
1746
|
var tmp1_externalReducers = plus(storeContract.c95(), externalReducers);
|
|
1733
|
-
|
|
1747
|
+
tmp_14.i9l_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1734
1748
|
}
|
|
1735
1749
|
protoOf(GameServer).z6p = function () {
|
|
1736
|
-
return this.
|
|
1750
|
+
return this.i9l_1;
|
|
1737
1751
|
};
|
|
1738
1752
|
protoOf(GameServer).d5l = function () {
|
|
1739
1753
|
return this.e6b().m6r().id;
|
|
@@ -1761,52 +1775,52 @@
|
|
|
1761
1775
|
};
|
|
1762
1776
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1763
1777
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1764
|
-
this.
|
|
1778
|
+
this.i9l_1.l6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1765
1779
|
};
|
|
1766
1780
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1767
1781
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1768
|
-
this.
|
|
1782
|
+
this.i9l_1.l6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1769
1783
|
};
|
|
1770
1784
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1771
1785
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1772
|
-
this.
|
|
1786
|
+
this.i9l_1.l6r(GameServer$playerLive$slambda_0(playerId, null));
|
|
1773
1787
|
};
|
|
1774
1788
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1775
1789
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1776
|
-
this.
|
|
1790
|
+
this.i9l_1.l6r(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1777
1791
|
};
|
|
1778
|
-
protoOf(GameServer).
|
|
1779
|
-
this.
|
|
1792
|
+
protoOf(GameServer).w9t = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1793
|
+
this.i9l_1.l6r(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1780
1794
|
};
|
|
1781
1795
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1796
|
+
this.i9l_1.l6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
1797
|
+
this.i9l_1.l6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
1784
1798
|
};
|
|
1785
1799
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1786
|
-
this.
|
|
1787
|
-
this.
|
|
1800
|
+
this.i9l_1.l6r(GameServer$roomOnContinueFromRound$slambda_0(roomId, this, tableLite, null));
|
|
1801
|
+
this.i9l_1.l6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
1788
1802
|
};
|
|
1789
1803
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1790
|
-
this.
|
|
1804
|
+
this.i9l_1.l6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1791
1805
|
};
|
|
1792
1806
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1793
|
-
this.
|
|
1807
|
+
this.i9l_1.l6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1794
1808
|
};
|
|
1795
1809
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1796
1810
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1797
|
-
this.
|
|
1811
|
+
this.i9l_1.l6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1798
1812
|
};
|
|
1799
|
-
protoOf(GameServer).
|
|
1813
|
+
protoOf(GameServer).x9t = function (newRid) {
|
|
1800
1814
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
1801
|
-
this.
|
|
1815
|
+
this.i9l_1.l6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1802
1816
|
};
|
|
1803
1817
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1804
1818
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
1805
|
-
this.
|
|
1819
|
+
this.i9l_1.l6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1806
1820
|
};
|
|
1807
|
-
protoOf(GameServer).
|
|
1821
|
+
protoOf(GameServer).y9t = function (reason, roomId) {
|
|
1808
1822
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
1809
|
-
this.
|
|
1823
|
+
this.i9l_1.l6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1810
1824
|
};
|
|
1811
1825
|
protoOf(GameServer).clear = function () {
|
|
1812
1826
|
return this.a2();
|
|
@@ -1836,6 +1850,11 @@
|
|
|
1836
1850
|
return _get_teamsLogicProvider__u10pm6(receiver);
|
|
1837
1851
|
}, null);
|
|
1838
1852
|
}
|
|
1853
|
+
function idsProvider$factory() {
|
|
1854
|
+
return getPropertyCallableRef('idsProvider', 1, KProperty1, function (receiver) {
|
|
1855
|
+
return _get_idsProvider__fnfajc(receiver);
|
|
1856
|
+
}, null);
|
|
1857
|
+
}
|
|
1839
1858
|
function logger$factory_0() {
|
|
1840
1859
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
1841
1860
|
return _get_logger__rkp4sl(receiver);
|
|
@@ -1866,6 +1885,11 @@
|
|
|
1866
1885
|
return _get_random__h29cgo(receiver);
|
|
1867
1886
|
}, null);
|
|
1868
1887
|
}
|
|
1888
|
+
function idsProvider$factory_0() {
|
|
1889
|
+
return getPropertyCallableRef('idsProvider', 1, KProperty1, function (receiver) {
|
|
1890
|
+
return _get_idsProvider__fnfajc(receiver);
|
|
1891
|
+
}, null);
|
|
1892
|
+
}
|
|
1869
1893
|
function get_serverShutdownReasonMapping() {
|
|
1870
1894
|
_init_properties_ReasonsMappers_kt__p6o0hv();
|
|
1871
1895
|
return serverShutdownReasonMapping;
|
|
@@ -1899,17 +1923,26 @@
|
|
|
1899
1923
|
ServerShutdownReason_initEntries();
|
|
1900
1924
|
return ServerShutdownReason_ERROR_instance;
|
|
1901
1925
|
}
|
|
1926
|
+
function Companion_0() {
|
|
1927
|
+
}
|
|
1928
|
+
protoOf(Companion_0).z8j = function () {
|
|
1929
|
+
return new ServerConfig(true);
|
|
1930
|
+
};
|
|
1931
|
+
var Companion_instance_8;
|
|
1932
|
+
function Companion_getInstance_1() {
|
|
1933
|
+
return Companion_instance_8;
|
|
1934
|
+
}
|
|
1902
1935
|
function ServerConfig(canStartNewGame) {
|
|
1903
|
-
this.
|
|
1936
|
+
this.g9t_1 = canStartNewGame;
|
|
1904
1937
|
}
|
|
1905
|
-
protoOf(ServerConfig).
|
|
1938
|
+
protoOf(ServerConfig).h9t = function (canStartNewGame) {
|
|
1906
1939
|
return new ServerConfig(canStartNewGame);
|
|
1907
1940
|
};
|
|
1908
1941
|
protoOf(ServerConfig).toString = function () {
|
|
1909
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1942
|
+
return 'ServerConfig(canStartNewGame=' + this.g9t_1 + ')';
|
|
1910
1943
|
};
|
|
1911
1944
|
protoOf(ServerConfig).hashCode = function () {
|
|
1912
|
-
return getBooleanHashCode(this.
|
|
1945
|
+
return getBooleanHashCode(this.g9t_1);
|
|
1913
1946
|
};
|
|
1914
1947
|
protoOf(ServerConfig).equals = function (other) {
|
|
1915
1948
|
if (this === other)
|
|
@@ -1917,7 +1950,7 @@
|
|
|
1917
1950
|
if (!(other instanceof ServerConfig))
|
|
1918
1951
|
return false;
|
|
1919
1952
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1920
|
-
if (!(this.
|
|
1953
|
+
if (!(this.g9t_1 === tmp0_other_with_cast.g9t_1))
|
|
1921
1954
|
return false;
|
|
1922
1955
|
return true;
|
|
1923
1956
|
};
|
|
@@ -1932,12 +1965,12 @@
|
|
|
1932
1965
|
protoOf(TableStateUpdate).pe = function () {
|
|
1933
1966
|
return this.table;
|
|
1934
1967
|
};
|
|
1935
|
-
protoOf(TableStateUpdate).
|
|
1968
|
+
protoOf(TableStateUpdate).z9t = function (table) {
|
|
1936
1969
|
return new TableStateUpdate(table);
|
|
1937
1970
|
};
|
|
1938
1971
|
protoOf(TableStateUpdate).copy = function (table, $super) {
|
|
1939
1972
|
table = table === VOID ? this.table : table;
|
|
1940
|
-
return this.
|
|
1973
|
+
return this.z9t(table);
|
|
1941
1974
|
};
|
|
1942
1975
|
protoOf(TableStateUpdate).toString = function () {
|
|
1943
1976
|
return 'TableStateUpdate(table=' + this.table.toString() + ')';
|
|
@@ -1964,12 +1997,12 @@
|
|
|
1964
1997
|
protoOf(ActionsStateUpdate).pe = function () {
|
|
1965
1998
|
return this.actions;
|
|
1966
1999
|
};
|
|
1967
|
-
protoOf(ActionsStateUpdate).
|
|
2000
|
+
protoOf(ActionsStateUpdate).a9u = function (actions) {
|
|
1968
2001
|
return new ActionsStateUpdate(actions);
|
|
1969
2002
|
};
|
|
1970
2003
|
protoOf(ActionsStateUpdate).copy = function (actions, $super) {
|
|
1971
2004
|
actions = actions === VOID ? this.actions : actions;
|
|
1972
|
-
return this.
|
|
2005
|
+
return this.a9u(actions);
|
|
1973
2006
|
};
|
|
1974
2007
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
1975
2008
|
return 'ActionsStateUpdate(actions=' + toString(this.actions) + ')';
|
|
@@ -2071,13 +2104,7 @@
|
|
|
2071
2104
|
return new ToClientEventsObserverImpl(tmp_1, tmp_4, tmp$ret$5);
|
|
2072
2105
|
}
|
|
2073
2106
|
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);
|
|
2107
|
+
return new MechanicEventsObserverImpl();
|
|
2081
2108
|
}
|
|
2082
2109
|
function getServerEngineGameDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig) {
|
|
2083
2110
|
return function ($this$Module) {
|
|
@@ -2239,7 +2266,7 @@
|
|
|
2239
2266
|
function MechanicEventsObserver() {
|
|
2240
2267
|
}
|
|
2241
2268
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2242
|
-
this.
|
|
2269
|
+
this.k9u_1 = $$this$unsafeFlow;
|
|
2243
2270
|
CoroutineImpl.call(this, resultContinuation);
|
|
2244
2271
|
}
|
|
2245
2272
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2260,12 +2287,12 @@
|
|
|
2260
2287
|
case 0:
|
|
2261
2288
|
this.f9_1 = 2;
|
|
2262
2289
|
var tmp_0 = this;
|
|
2263
|
-
tmp_0.
|
|
2290
|
+
tmp_0.m9u_1 = this.k9u_1;
|
|
2264
2291
|
var tmp_1 = this;
|
|
2265
|
-
tmp_1.
|
|
2292
|
+
tmp_1.n9u_1 = this.l9u_1;
|
|
2266
2293
|
this.e9_1 = 1;
|
|
2267
|
-
var it = this.
|
|
2268
|
-
suspendResult = this.
|
|
2294
|
+
var it = this.n9u_1;
|
|
2295
|
+
suspendResult = this.m9u_1.p18(new ActionsStateUpdate(it), this);
|
|
2269
2296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2270
2297
|
return suspendResult;
|
|
2271
2298
|
}
|
|
@@ -2288,8 +2315,8 @@
|
|
|
2288
2315
|
while (true);
|
|
2289
2316
|
};
|
|
2290
2317
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda).j1i = function (value, completion) {
|
|
2291
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda(this.
|
|
2292
|
-
i.
|
|
2318
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda(this.k9u_1, completion);
|
|
2319
|
+
i.l9u_1 = value;
|
|
2293
2320
|
return i;
|
|
2294
2321
|
};
|
|
2295
2322
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2302,8 +2329,8 @@
|
|
|
2302
2329
|
}
|
|
2303
2330
|
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
2304
2331
|
CoroutineImpl.call(this, resultContinuation);
|
|
2305
|
-
this.
|
|
2306
|
-
this.
|
|
2332
|
+
this.w9u_1 = _this__u8e3s4;
|
|
2333
|
+
this.x9u_1 = collector;
|
|
2307
2334
|
}
|
|
2308
2335
|
protoOf($collectCOROUTINE$0).m9 = function () {
|
|
2309
2336
|
var suspendResult = this.g9_1;
|
|
@@ -2314,10 +2341,10 @@
|
|
|
2314
2341
|
case 0:
|
|
2315
2342
|
this.f9_1 = 2;
|
|
2316
2343
|
var tmp_0 = this;
|
|
2317
|
-
tmp_0.
|
|
2344
|
+
tmp_0.y9u_1 = this.x9u_1;
|
|
2318
2345
|
this.e9_1 = 1;
|
|
2319
|
-
var tmp_1 = MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0(this.
|
|
2320
|
-
suspendResult = this.
|
|
2346
|
+
var tmp_1 = MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0(this.y9u_1, null);
|
|
2347
|
+
suspendResult = this.w9u_1.z9u_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this);
|
|
2321
2348
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2322
2349
|
return suspendResult;
|
|
2323
2350
|
}
|
|
@@ -2340,7 +2367,7 @@
|
|
|
2340
2367
|
while (true);
|
|
2341
2368
|
};
|
|
2342
2369
|
function _no_name_provided__qut3iv($this) {
|
|
2343
|
-
this.
|
|
2370
|
+
this.z9u_1 = $this;
|
|
2344
2371
|
}
|
|
2345
2372
|
protoOf(_no_name_provided__qut3iv).q18 = function (collector, $completion) {
|
|
2346
2373
|
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
@@ -2352,18 +2379,18 @@
|
|
|
2352
2379
|
return this.q18(collector, $completion);
|
|
2353
2380
|
};
|
|
2354
2381
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda($table, this$0, resultContinuation) {
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2382
|
+
this.i9v_1 = $table;
|
|
2383
|
+
this.j9v_1 = this$0;
|
|
2357
2384
|
CoroutineImpl.call(this, resultContinuation);
|
|
2358
2385
|
}
|
|
2359
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).
|
|
2360
|
-
var tmp = this.
|
|
2386
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).l9v = function ($this$flow, $completion) {
|
|
2387
|
+
var tmp = this.m9v($this$flow, $completion);
|
|
2361
2388
|
tmp.g9_1 = Unit_instance;
|
|
2362
2389
|
tmp.h9_1 = null;
|
|
2363
2390
|
return tmp.m9();
|
|
2364
2391
|
};
|
|
2365
2392
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).w9 = function (p1, $completion) {
|
|
2366
|
-
return this.
|
|
2393
|
+
return this.l9v((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2367
2394
|
};
|
|
2368
2395
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).m9 = function () {
|
|
2369
2396
|
var suspendResult = this.g9_1;
|
|
@@ -2374,7 +2401,7 @@
|
|
|
2374
2401
|
case 0:
|
|
2375
2402
|
this.f9_1 = 3;
|
|
2376
2403
|
this.e9_1 = 1;
|
|
2377
|
-
suspendResult = this.
|
|
2404
|
+
suspendResult = this.k9v_1.p18(new TableStateUpdate(this.i9v_1), this);
|
|
2378
2405
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2379
2406
|
return suspendResult;
|
|
2380
2407
|
}
|
|
@@ -2382,8 +2409,8 @@
|
|
|
2382
2409
|
continue $sm;
|
|
2383
2410
|
case 1:
|
|
2384
2411
|
this.e9_1 = 2;
|
|
2385
|
-
var this_0 = windowedByInterval(this.
|
|
2386
|
-
suspendResult = emitAll(this.
|
|
2412
|
+
var this_0 = windowedByInterval(this.j9v_1.n9v_1, new Long(1000, 0));
|
|
2413
|
+
suspendResult = emitAll(this.k9v_1, new _no_name_provided__qut3iv(this_0), this);
|
|
2387
2414
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2388
2415
|
return suspendResult;
|
|
2389
2416
|
}
|
|
@@ -2405,21 +2432,21 @@
|
|
|
2405
2432
|
}
|
|
2406
2433
|
while (true);
|
|
2407
2434
|
};
|
|
2408
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).
|
|
2409
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda(this.
|
|
2410
|
-
i.
|
|
2435
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).m9v = function ($this$flow, completion) {
|
|
2436
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda(this.i9v_1, this.j9v_1, completion);
|
|
2437
|
+
i.k9v_1 = $this$flow;
|
|
2411
2438
|
return i;
|
|
2412
2439
|
};
|
|
2413
2440
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
2414
2441
|
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda($table, this$0, resultContinuation);
|
|
2415
2442
|
var l = function ($this$flow, $completion) {
|
|
2416
|
-
return i.
|
|
2443
|
+
return i.l9v($this$flow, $completion);
|
|
2417
2444
|
};
|
|
2418
2445
|
l.$arity = 1;
|
|
2419
2446
|
return l;
|
|
2420
2447
|
}
|
|
2421
2448
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2422
|
-
this.
|
|
2449
|
+
this.w9v_1 = $$this$unsafeFlow;
|
|
2423
2450
|
CoroutineImpl.call(this, resultContinuation);
|
|
2424
2451
|
}
|
|
2425
2452
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2440,12 +2467,12 @@
|
|
|
2440
2467
|
case 0:
|
|
2441
2468
|
this.f9_1 = 2;
|
|
2442
2469
|
var tmp_0 = this;
|
|
2443
|
-
tmp_0.
|
|
2470
|
+
tmp_0.y9v_1 = this.w9v_1;
|
|
2444
2471
|
var tmp_1 = this;
|
|
2445
|
-
tmp_1.
|
|
2472
|
+
tmp_1.z9v_1 = this.x9v_1;
|
|
2446
2473
|
this.e9_1 = 1;
|
|
2447
|
-
var state = this.
|
|
2448
|
-
suspendResult = this.
|
|
2474
|
+
var state = this.z9v_1;
|
|
2475
|
+
suspendResult = this.y9v_1.p18(state.m6r().gameInfo.roundNumberTotal, this);
|
|
2449
2476
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2450
2477
|
return suspendResult;
|
|
2451
2478
|
}
|
|
@@ -2468,8 +2495,8 @@
|
|
|
2468
2495
|
while (true);
|
|
2469
2496
|
};
|
|
2470
2497
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).j1i = function (value, completion) {
|
|
2471
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
2472
|
-
i.
|
|
2498
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.w9v_1, completion);
|
|
2499
|
+
i.x9v_1 = value;
|
|
2473
2500
|
return i;
|
|
2474
2501
|
};
|
|
2475
2502
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2482,8 +2509,8 @@
|
|
|
2482
2509
|
}
|
|
2483
2510
|
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
2484
2511
|
CoroutineImpl.call(this, resultContinuation);
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2512
|
+
this.i9w_1 = _this__u8e3s4;
|
|
2513
|
+
this.j9w_1 = collector;
|
|
2487
2514
|
}
|
|
2488
2515
|
protoOf($collectCOROUTINE$1).m9 = function () {
|
|
2489
2516
|
var suspendResult = this.g9_1;
|
|
@@ -2494,10 +2521,10 @@
|
|
|
2494
2521
|
case 0:
|
|
2495
2522
|
this.f9_1 = 2;
|
|
2496
2523
|
var tmp_0 = this;
|
|
2497
|
-
tmp_0.
|
|
2524
|
+
tmp_0.k9w_1 = this.j9w_1;
|
|
2498
2525
|
this.e9_1 = 1;
|
|
2499
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.
|
|
2500
|
-
suspendResult = this.
|
|
2526
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.k9w_1, null);
|
|
2527
|
+
suspendResult = this.i9w_1.l9w_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2501
2528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2502
2529
|
return suspendResult;
|
|
2503
2530
|
}
|
|
@@ -2520,7 +2547,7 @@
|
|
|
2520
2547
|
while (true);
|
|
2521
2548
|
};
|
|
2522
2549
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2523
|
-
this.
|
|
2550
|
+
this.u9w_1 = $$this$unsafeFlow;
|
|
2524
2551
|
CoroutineImpl.call(this, resultContinuation);
|
|
2525
2552
|
}
|
|
2526
2553
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2544,33 +2571,33 @@
|
|
|
2544
2571
|
continue $sm;
|
|
2545
2572
|
case 1:
|
|
2546
2573
|
var tmp_0 = this;
|
|
2547
|
-
tmp_0.
|
|
2574
|
+
tmp_0.x9w_1 = this.u9w_1;
|
|
2548
2575
|
var tmp_1 = this;
|
|
2549
|
-
tmp_1.
|
|
2576
|
+
tmp_1.y9w_1 = this.v9w_1;
|
|
2550
2577
|
var tmp_2 = this;
|
|
2551
|
-
tmp_2.
|
|
2552
|
-
if (this.
|
|
2553
|
-
this.
|
|
2578
|
+
tmp_2.z9w_1 = this.y9w_1.k6q_1;
|
|
2579
|
+
if (this.z9w_1 == null) {
|
|
2580
|
+
this.w9w_1 = Unit_instance;
|
|
2554
2581
|
this.e9_1 = 4;
|
|
2555
2582
|
var tmp_3 = this;
|
|
2556
2583
|
continue $sm;
|
|
2557
2584
|
} else {
|
|
2558
|
-
this.
|
|
2585
|
+
this.a9x_1 = this.z9w_1;
|
|
2559
2586
|
this.e9_1 = 2;
|
|
2560
2587
|
continue $sm;
|
|
2561
2588
|
}
|
|
2562
2589
|
|
|
2563
2590
|
case 2:
|
|
2564
|
-
this.
|
|
2591
|
+
this.b9x_1 = this.a9x_1;
|
|
2565
2592
|
this.e9_1 = 3;
|
|
2566
|
-
suspendResult = this.
|
|
2593
|
+
suspendResult = this.x9w_1.p18(this.b9x_1, this);
|
|
2567
2594
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2568
2595
|
return suspendResult;
|
|
2569
2596
|
}
|
|
2570
2597
|
|
|
2571
2598
|
continue $sm;
|
|
2572
2599
|
case 3:
|
|
2573
|
-
this.
|
|
2600
|
+
this.w9w_1 = suspendResult;
|
|
2574
2601
|
if (false) {
|
|
2575
2602
|
this.e9_1 = 1;
|
|
2576
2603
|
continue $sm;
|
|
@@ -2595,8 +2622,8 @@
|
|
|
2595
2622
|
while (true);
|
|
2596
2623
|
};
|
|
2597
2624
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).j1i = function (value, completion) {
|
|
2598
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.
|
|
2599
|
-
i.
|
|
2625
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.u9w_1, completion);
|
|
2626
|
+
i.v9w_1 = value;
|
|
2600
2627
|
return i;
|
|
2601
2628
|
};
|
|
2602
2629
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2609,8 +2636,8 @@
|
|
|
2609
2636
|
}
|
|
2610
2637
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
2611
2638
|
CoroutineImpl.call(this, resultContinuation);
|
|
2612
|
-
this.
|
|
2613
|
-
this.
|
|
2639
|
+
this.k9x_1 = _this__u8e3s4;
|
|
2640
|
+
this.l9x_1 = collector;
|
|
2614
2641
|
}
|
|
2615
2642
|
protoOf($collectCOROUTINE$2).m9 = function () {
|
|
2616
2643
|
var suspendResult = this.g9_1;
|
|
@@ -2621,10 +2648,10 @@
|
|
|
2621
2648
|
case 0:
|
|
2622
2649
|
this.f9_1 = 2;
|
|
2623
2650
|
var tmp_0 = this;
|
|
2624
|
-
tmp_0.
|
|
2651
|
+
tmp_0.m9x_1 = this.l9x_1;
|
|
2625
2652
|
this.e9_1 = 1;
|
|
2626
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.
|
|
2627
|
-
suspendResult = this.
|
|
2653
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.m9x_1, null);
|
|
2654
|
+
suspendResult = this.k9x_1.n9x_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2628
2655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2629
2656
|
return suspendResult;
|
|
2630
2657
|
}
|
|
@@ -2647,7 +2674,7 @@
|
|
|
2647
2674
|
while (true);
|
|
2648
2675
|
};
|
|
2649
2676
|
function _no_name_provided__qut3iv_0($this) {
|
|
2650
|
-
this.
|
|
2677
|
+
this.n9x_1 = $this;
|
|
2651
2678
|
}
|
|
2652
2679
|
protoOf(_no_name_provided__qut3iv_0).q18 = function (collector, $completion) {
|
|
2653
2680
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
@@ -2658,31 +2685,30 @@
|
|
|
2658
2685
|
protoOf(_no_name_provided__qut3iv_0).m17 = function (collector, $completion) {
|
|
2659
2686
|
return this.q18(collector, $completion);
|
|
2660
2687
|
};
|
|
2661
|
-
function observeTableWhenRoundChanges($this) {
|
|
2688
|
+
function observeTableWhenRoundChanges($this, observeState) {
|
|
2662
2689
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
2663
2690
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
2664
2691
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2665
|
-
var this_0 = $this.l9v_1.j6q();
|
|
2666
2692
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2667
|
-
var tmp$ret$2 = new _no_name_provided__qut3iv_1(
|
|
2668
|
-
var
|
|
2669
|
-
return transformLatest(
|
|
2693
|
+
var tmp$ret$2 = new _no_name_provided__qut3iv_1(observeState);
|
|
2694
|
+
var this_0 = distinctUntilChanged(tmp$ret$2);
|
|
2695
|
+
return transformLatest(this_0, MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0(observeState, null));
|
|
2670
2696
|
}
|
|
2671
|
-
function
|
|
2672
|
-
this.
|
|
2697
|
+
function Companion_1() {
|
|
2698
|
+
this.o9x_1 = 1000;
|
|
2673
2699
|
}
|
|
2674
|
-
var
|
|
2675
|
-
function
|
|
2676
|
-
return
|
|
2700
|
+
var Companion_instance_9;
|
|
2701
|
+
function Companion_getInstance_2() {
|
|
2702
|
+
return Companion_instance_9;
|
|
2677
2703
|
}
|
|
2678
2704
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
2679
|
-
this.
|
|
2705
|
+
this.p9x_1 = function_0;
|
|
2680
2706
|
}
|
|
2681
2707
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).p18 = function (value, $completion) {
|
|
2682
|
-
return this.
|
|
2708
|
+
return this.p9x_1(value, $completion);
|
|
2683
2709
|
};
|
|
2684
2710
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).o3 = function () {
|
|
2685
|
-
return this.
|
|
2711
|
+
return this.p9x_1;
|
|
2686
2712
|
};
|
|
2687
2713
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
2688
2714
|
var tmp;
|
|
@@ -2703,13 +2729,13 @@
|
|
|
2703
2729
|
return hashCode(this.o3());
|
|
2704
2730
|
};
|
|
2705
2731
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
2706
|
-
this.
|
|
2732
|
+
this.q9x_1 = function_0;
|
|
2707
2733
|
}
|
|
2708
2734
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).p18 = function (value, $completion) {
|
|
2709
|
-
return this.
|
|
2735
|
+
return this.q9x_1(value, $completion);
|
|
2710
2736
|
};
|
|
2711
2737
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).o3 = function () {
|
|
2712
|
-
return this.
|
|
2738
|
+
return this.q9x_1;
|
|
2713
2739
|
};
|
|
2714
2740
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
2715
2741
|
var tmp;
|
|
@@ -2730,18 +2756,18 @@
|
|
|
2730
2756
|
return hashCode(this.o3());
|
|
2731
2757
|
};
|
|
2732
2758
|
function MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation) {
|
|
2733
|
-
this.
|
|
2759
|
+
this.z9x_1 = this$0;
|
|
2734
2760
|
CoroutineImpl.call(this, resultContinuation);
|
|
2735
2761
|
}
|
|
2736
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2737
|
-
var tmp = this.
|
|
2762
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).c9y = function ($this$transformLatest, it, $completion) {
|
|
2763
|
+
var tmp = this.d9y($this$transformLatest, it, $completion);
|
|
2738
2764
|
tmp.g9_1 = Unit_instance;
|
|
2739
2765
|
tmp.h9_1 = null;
|
|
2740
2766
|
return tmp.m9();
|
|
2741
2767
|
};
|
|
2742
2768
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).x9 = function (p1, p2, $completion) {
|
|
2743
2769
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2744
|
-
return this.
|
|
2770
|
+
return this.c9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2745
2771
|
};
|
|
2746
2772
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).m9 = function () {
|
|
2747
2773
|
var suspendResult = this.g9_1;
|
|
@@ -2752,8 +2778,8 @@
|
|
|
2752
2778
|
case 0:
|
|
2753
2779
|
this.f9_1 = 2;
|
|
2754
2780
|
this.e9_1 = 1;
|
|
2755
|
-
var table = this.
|
|
2756
|
-
suspendResult = emitAll(this.
|
|
2781
|
+
var table = this.b9y_1;
|
|
2782
|
+
suspendResult = emitAll(this.a9y_1, flow(MechanicEventsObserverImpl$observeUpdates$slambda$slambda_0(table, this.z9x_1, null)), this);
|
|
2757
2783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2758
2784
|
return suspendResult;
|
|
2759
2785
|
}
|
|
@@ -2775,22 +2801,22 @@
|
|
|
2775
2801
|
}
|
|
2776
2802
|
while (true);
|
|
2777
2803
|
};
|
|
2778
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2779
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.
|
|
2780
|
-
i.
|
|
2781
|
-
i.
|
|
2804
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).d9y = function ($this$transformLatest, it, completion) {
|
|
2805
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.z9x_1, completion);
|
|
2806
|
+
i.a9y_1 = $this$transformLatest;
|
|
2807
|
+
i.b9y_1 = it;
|
|
2782
2808
|
return i;
|
|
2783
2809
|
};
|
|
2784
2810
|
function MechanicEventsObserverImpl$observeUpdates$slambda_0(this$0, resultContinuation) {
|
|
2785
2811
|
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation);
|
|
2786
2812
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2787
|
-
return i.
|
|
2813
|
+
return i.c9y($this$transformLatest, it, $completion);
|
|
2788
2814
|
};
|
|
2789
2815
|
l.$arity = 2;
|
|
2790
2816
|
return l;
|
|
2791
2817
|
}
|
|
2792
2818
|
function _no_name_provided__qut3iv_1($this) {
|
|
2793
|
-
this.
|
|
2819
|
+
this.l9w_1 = $this;
|
|
2794
2820
|
}
|
|
2795
2821
|
protoOf(_no_name_provided__qut3iv_1).q18 = function (collector, $completion) {
|
|
2796
2822
|
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
@@ -2801,19 +2827,19 @@
|
|
|
2801
2827
|
protoOf(_no_name_provided__qut3iv_1).m17 = function (collector, $completion) {
|
|
2802
2828
|
return this.q18(collector, $completion);
|
|
2803
2829
|
};
|
|
2804
|
-
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(
|
|
2805
|
-
this.
|
|
2830
|
+
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda($observeState, resultContinuation) {
|
|
2831
|
+
this.m9y_1 = $observeState;
|
|
2806
2832
|
CoroutineImpl.call(this, resultContinuation);
|
|
2807
2833
|
}
|
|
2808
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2809
|
-
var tmp = this.
|
|
2834
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).c9y = function ($this$transformLatest, it, $completion) {
|
|
2835
|
+
var tmp = this.d9y($this$transformLatest, it, $completion);
|
|
2810
2836
|
tmp.g9_1 = Unit_instance;
|
|
2811
2837
|
tmp.h9_1 = null;
|
|
2812
2838
|
return tmp.m9();
|
|
2813
2839
|
};
|
|
2814
2840
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).x9 = function (p1, p2, $completion) {
|
|
2815
2841
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2816
|
-
return this.
|
|
2842
|
+
return this.c9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2817
2843
|
};
|
|
2818
2844
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).m9 = function () {
|
|
2819
2845
|
var suspendResult = this.g9_1;
|
|
@@ -2824,9 +2850,9 @@
|
|
|
2824
2850
|
case 0:
|
|
2825
2851
|
this.f9_1 = 2;
|
|
2826
2852
|
this.e9_1 = 1;
|
|
2827
|
-
this.
|
|
2828
|
-
var this_0 = this.
|
|
2829
|
-
suspendResult = emitAll(this.
|
|
2853
|
+
this.o9y_1;
|
|
2854
|
+
var this_0 = this.m9y_1;
|
|
2855
|
+
suspendResult = emitAll(this.n9y_1, new _no_name_provided__qut3iv_0(this_0), this);
|
|
2830
2856
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2831
2857
|
return suspendResult;
|
|
2832
2858
|
}
|
|
@@ -2848,47 +2874,46 @@
|
|
|
2848
2874
|
}
|
|
2849
2875
|
while (true);
|
|
2850
2876
|
};
|
|
2851
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2852
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.
|
|
2853
|
-
i.
|
|
2854
|
-
i.
|
|
2877
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).d9y = function ($this$transformLatest, it, completion) {
|
|
2878
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.m9y_1, completion);
|
|
2879
|
+
i.n9y_1 = $this$transformLatest;
|
|
2880
|
+
i.o9y_1 = it;
|
|
2855
2881
|
return i;
|
|
2856
2882
|
};
|
|
2857
|
-
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0(
|
|
2858
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(
|
|
2883
|
+
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0($observeState, resultContinuation) {
|
|
2884
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda($observeState, resultContinuation);
|
|
2859
2885
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2860
|
-
return i.
|
|
2886
|
+
return i.c9y($this$transformLatest, it, $completion);
|
|
2861
2887
|
};
|
|
2862
2888
|
l.$arity = 2;
|
|
2863
2889
|
return l;
|
|
2864
2890
|
}
|
|
2865
|
-
function MechanicEventsObserverImpl(
|
|
2866
|
-
this.
|
|
2867
|
-
this.m9v_1 = MutableSharedFlow();
|
|
2891
|
+
function MechanicEventsObserverImpl() {
|
|
2892
|
+
this.n9v_1 = MutableSharedFlow();
|
|
2868
2893
|
}
|
|
2869
|
-
protoOf(MechanicEventsObserverImpl).
|
|
2870
|
-
return this.
|
|
2894
|
+
protoOf(MechanicEventsObserverImpl).b9u = function (event, $completion) {
|
|
2895
|
+
return this.n9v_1.p18(event, $completion);
|
|
2871
2896
|
};
|
|
2872
|
-
protoOf(MechanicEventsObserverImpl).
|
|
2897
|
+
protoOf(MechanicEventsObserverImpl).k9m = function (observeState) {
|
|
2873
2898
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
2874
|
-
var this_0 = observeTableWhenRoundChanges(this);
|
|
2899
|
+
var this_0 = observeTableWhenRoundChanges(this, observeState);
|
|
2875
2900
|
return transformLatest(this_0, MechanicEventsObserverImpl$observeUpdates$slambda_0(this, null));
|
|
2876
2901
|
};
|
|
2877
2902
|
function ToClientEventsObserver() {
|
|
2878
2903
|
}
|
|
2879
2904
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2905
|
+
this.y9y_1 = this$0;
|
|
2906
|
+
this.z9y_1 = $actions;
|
|
2882
2907
|
CoroutineImpl.call(this, resultContinuation);
|
|
2883
2908
|
}
|
|
2884
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2885
|
-
var tmp = this.
|
|
2909
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).g9z = function ($this$flow, $completion) {
|
|
2910
|
+
var tmp = this.h9z($this$flow, $completion);
|
|
2886
2911
|
tmp.g9_1 = Unit_instance;
|
|
2887
2912
|
tmp.h9_1 = null;
|
|
2888
2913
|
return tmp.m9();
|
|
2889
2914
|
};
|
|
2890
2915
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
2891
|
-
return this.
|
|
2916
|
+
return this.g9z((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2892
2917
|
};
|
|
2893
2918
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).m9 = function () {
|
|
2894
2919
|
var suspendResult = this.g9_1;
|
|
@@ -2899,23 +2924,23 @@
|
|
|
2899
2924
|
case 0:
|
|
2900
2925
|
this.f9_1 = 4;
|
|
2901
2926
|
var tmp_0 = this;
|
|
2902
|
-
tmp_0.
|
|
2927
|
+
tmp_0.b9z_1 = this.y9y_1.m9z_1;
|
|
2903
2928
|
var tmp_1 = this;
|
|
2904
|
-
tmp_1.
|
|
2905
|
-
this.
|
|
2929
|
+
tmp_1.c9z_1 = transformToEmits(this.y9y_1, this.z9y_1);
|
|
2930
|
+
this.d9z_1 = this.c9z_1.j();
|
|
2906
2931
|
this.e9_1 = 1;
|
|
2907
2932
|
continue $sm;
|
|
2908
2933
|
case 1:
|
|
2909
|
-
if (!this.
|
|
2934
|
+
if (!this.d9z_1.k()) {
|
|
2910
2935
|
this.e9_1 = 3;
|
|
2911
2936
|
continue $sm;
|
|
2912
2937
|
}
|
|
2913
2938
|
|
|
2914
|
-
this.
|
|
2939
|
+
this.e9z_1 = this.d9z_1.l();
|
|
2915
2940
|
var tmp_2 = this;
|
|
2916
|
-
tmp_2.
|
|
2941
|
+
tmp_2.f9z_1 = this.e9z_1;
|
|
2917
2942
|
this.e9_1 = 2;
|
|
2918
|
-
suspendResult = this.
|
|
2943
|
+
suspendResult = this.a9z_1.p18(this.f9z_1, this);
|
|
2919
2944
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2920
2945
|
return suspendResult;
|
|
2921
2946
|
}
|
|
@@ -2926,10 +2951,10 @@
|
|
|
2926
2951
|
continue $sm;
|
|
2927
2952
|
case 3:
|
|
2928
2953
|
l$ret$1: do {
|
|
2929
|
-
var this_0 = this.
|
|
2954
|
+
var this_0 = this.y9y_1.l9z_1;
|
|
2930
2955
|
while (true) {
|
|
2931
2956
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2932
|
-
var upd = cur - this.
|
|
2957
|
+
var upd = cur - this.z9y_1.m() | 0;
|
|
2933
2958
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2934
2959
|
break l$ret$1;
|
|
2935
2960
|
}
|
|
@@ -2951,15 +2976,15 @@
|
|
|
2951
2976
|
}
|
|
2952
2977
|
while (true);
|
|
2953
2978
|
};
|
|
2954
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2955
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2956
|
-
i.
|
|
2979
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).h9z = function ($this$flow, completion) {
|
|
2980
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.y9y_1, this.z9y_1, completion);
|
|
2981
|
+
i.a9z_1 = $this$flow;
|
|
2957
2982
|
return i;
|
|
2958
2983
|
};
|
|
2959
2984
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2960
2985
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2961
2986
|
var l = function ($this$flow, $completion) {
|
|
2962
|
-
return i.
|
|
2987
|
+
return i.g9z($this$flow, $completion);
|
|
2963
2988
|
};
|
|
2964
2989
|
l.$arity = 1;
|
|
2965
2990
|
return l;
|
|
@@ -3032,29 +3057,29 @@
|
|
|
3032
3057
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
3033
3058
|
}
|
|
3034
3059
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3035
|
-
var tmp = $this.
|
|
3060
|
+
var tmp = $this.k9z_1.s6h();
|
|
3036
3061
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3037
|
-
var this_0 = _this__u8e3s4.
|
|
3062
|
+
var this_0 = _this__u8e3s4.p9z_1;
|
|
3038
3063
|
var tmp_0 = copyToArray(this_0);
|
|
3039
3064
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3040
|
-
var this_1 = _this__u8e3s4.
|
|
3065
|
+
var this_1 = _this__u8e3s4.q9z_1;
|
|
3041
3066
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3042
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3067
|
+
return new ActionDeliveryPayload(_this__u8e3s4.o9z_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.r9z_1);
|
|
3043
3068
|
}
|
|
3044
3069
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3045
|
-
this.
|
|
3046
|
-
this.
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3070
|
+
this.o9z_1 = tableId;
|
|
3071
|
+
this.p9z_1 = includePlayers;
|
|
3072
|
+
this.q9z_1 = excludePlayers;
|
|
3073
|
+
this.r9z_1 = deliveryType;
|
|
3049
3074
|
}
|
|
3050
3075
|
protoOf(GroupKey).toString = function () {
|
|
3051
|
-
return 'GroupKey(tableId=' + this.
|
|
3076
|
+
return 'GroupKey(tableId=' + this.o9z_1 + ', includePlayers=' + toString(this.p9z_1) + ', excludePlayers=' + toString(this.q9z_1) + ', deliveryType=' + this.r9z_1.toString() + ')';
|
|
3052
3077
|
};
|
|
3053
3078
|
protoOf(GroupKey).hashCode = function () {
|
|
3054
|
-
var result = getStringHashCode(this.
|
|
3055
|
-
result = imul(result, 31) + hashCode(this.o9z_1) | 0;
|
|
3079
|
+
var result = getStringHashCode(this.o9z_1);
|
|
3056
3080
|
result = imul(result, 31) + hashCode(this.p9z_1) | 0;
|
|
3057
|
-
result = imul(result, 31) + this.q9z_1
|
|
3081
|
+
result = imul(result, 31) + hashCode(this.q9z_1) | 0;
|
|
3082
|
+
result = imul(result, 31) + this.r9z_1.hashCode() | 0;
|
|
3058
3083
|
return result;
|
|
3059
3084
|
};
|
|
3060
3085
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3063,35 +3088,35 @@
|
|
|
3063
3088
|
if (!(other instanceof GroupKey))
|
|
3064
3089
|
return false;
|
|
3065
3090
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3066
|
-
if (!(this.
|
|
3067
|
-
return false;
|
|
3068
|
-
if (!equals(this.o9z_1, tmp0_other_with_cast.o9z_1))
|
|
3091
|
+
if (!(this.o9z_1 === tmp0_other_with_cast.o9z_1))
|
|
3069
3092
|
return false;
|
|
3070
3093
|
if (!equals(this.p9z_1, tmp0_other_with_cast.p9z_1))
|
|
3071
3094
|
return false;
|
|
3072
|
-
if (!this.q9z_1
|
|
3095
|
+
if (!equals(this.q9z_1, tmp0_other_with_cast.q9z_1))
|
|
3096
|
+
return false;
|
|
3097
|
+
if (!this.r9z_1.equals(tmp0_other_with_cast.r9z_1))
|
|
3073
3098
|
return false;
|
|
3074
3099
|
return true;
|
|
3075
3100
|
};
|
|
3076
|
-
function
|
|
3077
|
-
this.
|
|
3101
|
+
function Companion_2() {
|
|
3102
|
+
this.s9z_1 = 6;
|
|
3078
3103
|
}
|
|
3079
|
-
var
|
|
3080
|
-
function
|
|
3081
|
-
return
|
|
3104
|
+
var Companion_instance_10;
|
|
3105
|
+
function Companion_getInstance_3() {
|
|
3106
|
+
return Companion_instance_10;
|
|
3082
3107
|
}
|
|
3083
3108
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3084
|
-
this.
|
|
3109
|
+
this.ba0_1 = this$0;
|
|
3085
3110
|
CoroutineImpl.call(this, resultContinuation);
|
|
3086
3111
|
}
|
|
3087
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3088
|
-
var tmp = this.
|
|
3112
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).da0 = function (actions, $completion) {
|
|
3113
|
+
var tmp = this.ea0(actions, $completion);
|
|
3089
3114
|
tmp.g9_1 = Unit_instance;
|
|
3090
3115
|
tmp.h9_1 = null;
|
|
3091
3116
|
return tmp.m9();
|
|
3092
3117
|
};
|
|
3093
3118
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).w9 = function (p1, $completion) {
|
|
3094
|
-
return this.
|
|
3119
|
+
return this.da0((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3095
3120
|
};
|
|
3096
3121
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).m9 = function () {
|
|
3097
3122
|
var suspendResult = this.g9_1;
|
|
@@ -3100,7 +3125,7 @@
|
|
|
3100
3125
|
var tmp = this.e9_1;
|
|
3101
3126
|
if (tmp === 0) {
|
|
3102
3127
|
this.f9_1 = 1;
|
|
3103
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3128
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.ba0_1, this.ca0_1, null));
|
|
3104
3129
|
} else if (tmp === 1) {
|
|
3105
3130
|
throw this.h9_1;
|
|
3106
3131
|
}
|
|
@@ -3110,23 +3135,23 @@
|
|
|
3110
3135
|
}
|
|
3111
3136
|
while (true);
|
|
3112
3137
|
};
|
|
3113
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3114
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3115
|
-
i.
|
|
3138
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ea0 = function (actions, completion) {
|
|
3139
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.ba0_1, completion);
|
|
3140
|
+
i.ca0_1 = actions;
|
|
3116
3141
|
return i;
|
|
3117
3142
|
};
|
|
3118
3143
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3119
3144
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3120
3145
|
var l = function (actions, $completion) {
|
|
3121
|
-
return i.
|
|
3146
|
+
return i.da0(actions, $completion);
|
|
3122
3147
|
};
|
|
3123
3148
|
l.$arity = 1;
|
|
3124
3149
|
return l;
|
|
3125
3150
|
}
|
|
3126
3151
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3127
3152
|
CoroutineImpl.call(this, resultContinuation);
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3153
|
+
this.na0_1 = _this__u8e3s4;
|
|
3154
|
+
this.oa0_1 = fromEvent;
|
|
3130
3155
|
}
|
|
3131
3156
|
protoOf($sentEventCOROUTINE$3).m9 = function () {
|
|
3132
3157
|
var suspendResult = this.g9_1;
|
|
@@ -3137,9 +3162,9 @@
|
|
|
3137
3162
|
case 0:
|
|
3138
3163
|
this.f9_1 = 2;
|
|
3139
3164
|
var tmp_0 = this;
|
|
3140
|
-
tmp_0.
|
|
3165
|
+
tmp_0.pa0_1 = this.na0_1.m9z_1;
|
|
3141
3166
|
l$ret$1: do {
|
|
3142
|
-
var this_0 = this.
|
|
3167
|
+
var this_0 = this.na0_1.l9z_1;
|
|
3143
3168
|
while (true) {
|
|
3144
3169
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3145
3170
|
var upd = cur + 1 | 0;
|
|
@@ -3150,7 +3175,7 @@
|
|
|
3150
3175
|
}
|
|
3151
3176
|
while (false);
|
|
3152
3177
|
this.e9_1 = 1;
|
|
3153
|
-
suspendResult = this.
|
|
3178
|
+
suspendResult = this.na0_1.n9z_1.p18(this.oa0_1, this);
|
|
3154
3179
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3155
3180
|
return suspendResult;
|
|
3156
3181
|
}
|
|
@@ -3174,7 +3199,7 @@
|
|
|
3174
3199
|
};
|
|
3175
3200
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3176
3201
|
CoroutineImpl.call(this, resultContinuation);
|
|
3177
|
-
this.
|
|
3202
|
+
this.ya0_1 = _this__u8e3s4;
|
|
3178
3203
|
}
|
|
3179
3204
|
protoOf($waitForCOROUTINE$4).m9 = function () {
|
|
3180
3205
|
var suspendResult = this.g9_1;
|
|
@@ -3185,12 +3210,12 @@
|
|
|
3185
3210
|
case 0:
|
|
3186
3211
|
this.f9_1 = 5;
|
|
3187
3212
|
var tmp_0 = this;
|
|
3188
|
-
tmp_0.
|
|
3189
|
-
this.
|
|
3213
|
+
tmp_0.za0_1 = this.ya0_1.m9z_1;
|
|
3214
|
+
this.aa1_1 = 0;
|
|
3190
3215
|
this.e9_1 = 1;
|
|
3191
3216
|
continue $sm;
|
|
3192
3217
|
case 1:
|
|
3193
|
-
if (!!(this.
|
|
3218
|
+
if (!!(this.ya0_1.l9z_1.kotlinx$atomicfu$value === 0)) {
|
|
3194
3219
|
this.e9_1 = 4;
|
|
3195
3220
|
continue $sm;
|
|
3196
3221
|
}
|
|
@@ -3203,9 +3228,9 @@
|
|
|
3203
3228
|
|
|
3204
3229
|
continue $sm;
|
|
3205
3230
|
case 2:
|
|
3206
|
-
this.
|
|
3207
|
-
if (this.
|
|
3208
|
-
this.
|
|
3231
|
+
this.aa1_1 = this.aa1_1 + 1 | 0;
|
|
3232
|
+
if (this.aa1_1 > 6) {
|
|
3233
|
+
this.ya0_1.j9z_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.ya0_1.l9z_1.kotlinx$atomicfu$value);
|
|
3209
3234
|
this.e9_1 = 4;
|
|
3210
3235
|
continue $sm;
|
|
3211
3236
|
} else {
|
|
@@ -3233,16 +3258,16 @@
|
|
|
3233
3258
|
while (true);
|
|
3234
3259
|
};
|
|
3235
3260
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3236
|
-
this.
|
|
3237
|
-
this.
|
|
3238
|
-
this.
|
|
3239
|
-
this.
|
|
3261
|
+
this.i9z_1 = serverReduxConfig;
|
|
3262
|
+
this.j9z_1 = logger;
|
|
3263
|
+
this.k9z_1 = idsProvider;
|
|
3264
|
+
this.l9z_1 = atomic$ref$1(0);
|
|
3240
3265
|
var tmp = this;
|
|
3241
3266
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3242
|
-
tmp.
|
|
3243
|
-
this.
|
|
3267
|
+
tmp.m9z_1 = get_atomicfu$reentrantLock();
|
|
3268
|
+
this.n9z_1 = MutableSharedFlow();
|
|
3244
3269
|
}
|
|
3245
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3270
|
+
protoOf(ToClientEventsObserverImpl).p9y = function (fromEvent, $completion) {
|
|
3246
3271
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3247
3272
|
tmp.g9_1 = Unit_instance;
|
|
3248
3273
|
tmp.h9_1 = null;
|
|
@@ -3254,21 +3279,21 @@
|
|
|
3254
3279
|
tmp.h9_1 = null;
|
|
3255
3280
|
return tmp.m9();
|
|
3256
3281
|
};
|
|
3257
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3258
|
-
if (!this.
|
|
3259
|
-
return this.
|
|
3282
|
+
protoOf(ToClientEventsObserverImpl).y9l = function () {
|
|
3283
|
+
if (!this.i9z_1.enabledCombinedEvents) {
|
|
3284
|
+
return this.n9z_1;
|
|
3260
3285
|
}
|
|
3261
|
-
var tmp = windowedByInterval(this.
|
|
3286
|
+
var tmp = windowedByInterval(this.n9z_1, toLong(this.i9z_1.combinedEventsPeriod));
|
|
3262
3287
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3263
3288
|
};
|
|
3264
3289
|
function UpdateServerConfigAction(serverConfig) {
|
|
3265
|
-
this.
|
|
3290
|
+
this.ba1_1 = serverConfig;
|
|
3266
3291
|
}
|
|
3267
3292
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3268
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3293
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.ba1_1.toString() + ')';
|
|
3269
3294
|
};
|
|
3270
3295
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3271
|
-
return this.
|
|
3296
|
+
return this.ba1_1.hashCode();
|
|
3272
3297
|
};
|
|
3273
3298
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3274
3299
|
if (this === other)
|
|
@@ -3276,20 +3301,20 @@
|
|
|
3276
3301
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3277
3302
|
return false;
|
|
3278
3303
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3279
|
-
if (!this.
|
|
3304
|
+
if (!this.ba1_1.equals(tmp0_other_with_cast.ba1_1))
|
|
3280
3305
|
return false;
|
|
3281
3306
|
return true;
|
|
3282
3307
|
};
|
|
3283
3308
|
function SpectatorsAction() {
|
|
3284
3309
|
}
|
|
3285
3310
|
function AddSpectatorsAction(spectators) {
|
|
3286
|
-
this.
|
|
3311
|
+
this.ca1_1 = spectators;
|
|
3287
3312
|
}
|
|
3288
3313
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3289
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
3314
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.ca1_1) + ')';
|
|
3290
3315
|
};
|
|
3291
3316
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3292
|
-
return hashCode(this.
|
|
3317
|
+
return hashCode(this.ca1_1);
|
|
3293
3318
|
};
|
|
3294
3319
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3295
3320
|
if (this === other)
|
|
@@ -3297,18 +3322,18 @@
|
|
|
3297
3322
|
if (!(other instanceof AddSpectatorsAction))
|
|
3298
3323
|
return false;
|
|
3299
3324
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3300
|
-
if (!equals(this.
|
|
3325
|
+
if (!equals(this.ca1_1, tmp0_other_with_cast.ca1_1))
|
|
3301
3326
|
return false;
|
|
3302
3327
|
return true;
|
|
3303
3328
|
};
|
|
3304
3329
|
function RemoveSpectatorsAction(spectators) {
|
|
3305
|
-
this.
|
|
3330
|
+
this.da1_1 = spectators;
|
|
3306
3331
|
}
|
|
3307
3332
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3308
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
3333
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.da1_1) + ')';
|
|
3309
3334
|
};
|
|
3310
3335
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3311
|
-
return hashCode(this.
|
|
3336
|
+
return hashCode(this.da1_1);
|
|
3312
3337
|
};
|
|
3313
3338
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3314
3339
|
if (this === other)
|
|
@@ -3316,73 +3341,73 @@
|
|
|
3316
3341
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3317
3342
|
return false;
|
|
3318
3343
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3319
|
-
if (!equals(this.
|
|
3344
|
+
if (!equals(this.da1_1, tmp0_other_with_cast.da1_1))
|
|
3320
3345
|
return false;
|
|
3321
3346
|
return true;
|
|
3322
3347
|
};
|
|
3323
3348
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3324
3349
|
// Inline function 'kotlin.getValue' call
|
|
3325
|
-
var this_0 = $this.
|
|
3350
|
+
var this_0 = $this.ja1_1;
|
|
3326
3351
|
asyncProvider$factory_0();
|
|
3327
3352
|
return this_0.u();
|
|
3328
3353
|
}
|
|
3329
3354
|
function _get_logger__rkp4sl_0($this) {
|
|
3330
3355
|
// Inline function 'kotlin.getValue' call
|
|
3331
|
-
var this_0 = $this.
|
|
3356
|
+
var this_0 = $this.ka1_1;
|
|
3332
3357
|
logger$factory_2();
|
|
3333
3358
|
return this_0.u();
|
|
3334
3359
|
}
|
|
3335
3360
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3336
3361
|
// Inline function 'kotlin.getValue' call
|
|
3337
|
-
var this_0 = $this.
|
|
3362
|
+
var this_0 = $this.la1_1;
|
|
3338
3363
|
playerConnectionInteractor$factory_2();
|
|
3339
3364
|
return this_0.u();
|
|
3340
3365
|
}
|
|
3341
3366
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3342
3367
|
// Inline function 'kotlin.getValue' call
|
|
3343
|
-
var this_0 = $this.
|
|
3368
|
+
var this_0 = $this.ma1_1;
|
|
3344
3369
|
lastCardInteractor$factory_0();
|
|
3345
3370
|
return this_0.u();
|
|
3346
3371
|
}
|
|
3347
3372
|
function _get_serverConfig__rk2g06($this) {
|
|
3348
3373
|
// Inline function 'kotlin.getValue' call
|
|
3349
|
-
var this_0 = $this.
|
|
3374
|
+
var this_0 = $this.na1_1;
|
|
3350
3375
|
serverConfig$factory_0();
|
|
3351
3376
|
return this_0.u();
|
|
3352
3377
|
}
|
|
3353
3378
|
function _get_logicConfig__52ww9d($this) {
|
|
3354
3379
|
// Inline function 'kotlin.getValue' call
|
|
3355
|
-
var this_0 = $this.
|
|
3380
|
+
var this_0 = $this.oa1_1;
|
|
3356
3381
|
logicConfig$factory_0();
|
|
3357
3382
|
return this_0.u();
|
|
3358
3383
|
}
|
|
3359
|
-
function
|
|
3384
|
+
function _get_idsProvider__fnfajc_0($this) {
|
|
3360
3385
|
// Inline function 'kotlin.getValue' call
|
|
3361
|
-
var this_0 = $this.
|
|
3362
|
-
idsProvider$
|
|
3386
|
+
var this_0 = $this.pa1_1;
|
|
3387
|
+
idsProvider$factory_2();
|
|
3363
3388
|
return this_0.u();
|
|
3364
3389
|
}
|
|
3365
3390
|
function _get_botConfig__cpaxzc($this) {
|
|
3366
3391
|
// Inline function 'kotlin.getValue' call
|
|
3367
|
-
var this_0 = $this.
|
|
3392
|
+
var this_0 = $this.qa1_1;
|
|
3368
3393
|
botConfig$factory_0();
|
|
3369
3394
|
return this_0.u();
|
|
3370
3395
|
}
|
|
3371
3396
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3372
3397
|
// Inline function 'kotlin.getValue' call
|
|
3373
|
-
var this_0 = $this.
|
|
3398
|
+
var this_0 = $this.ra1_1;
|
|
3374
3399
|
scenePositionProvider$factory_0();
|
|
3375
3400
|
return this_0.u();
|
|
3376
3401
|
}
|
|
3377
3402
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3378
3403
|
// Inline function 'kotlin.getValue' call
|
|
3379
|
-
var this_0 = $this.
|
|
3404
|
+
var this_0 = $this.sa1_1;
|
|
3380
3405
|
toClientEventsObserver$factory_2();
|
|
3381
3406
|
return this_0.u();
|
|
3382
3407
|
}
|
|
3383
3408
|
function _get_mechanicEventsObserver__ll1b9k_0($this) {
|
|
3384
3409
|
// Inline function 'kotlin.getValue' call
|
|
3385
|
-
var this_0 = $this.
|
|
3410
|
+
var this_0 = $this.ta1_1;
|
|
3386
3411
|
mechanicEventsObserver$factory_2();
|
|
3387
3412
|
return this_0.u();
|
|
3388
3413
|
}
|
|
@@ -3395,83 +3420,83 @@
|
|
|
3395
3420
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3396
3421
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3397
3422
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3398
|
-
this.
|
|
3399
|
-
this.
|
|
3400
|
-
this.
|
|
3401
|
-
this.
|
|
3402
|
-
this.
|
|
3423
|
+
this.ea1_1 = validationStoreContract;
|
|
3424
|
+
this.fa1_1 = timersStoreContract;
|
|
3425
|
+
this.ga1_1 = botGameStoreContract;
|
|
3426
|
+
this.ha1_1 = gameMechanicStoreContract;
|
|
3427
|
+
this.ia1_1 = fileLoggerStoreContract;
|
|
3403
3428
|
var tmp = this;
|
|
3404
3429
|
// Inline function 'org.kodein.di.instance' call
|
|
3405
3430
|
// Inline function 'org.kodein.type.generic' call
|
|
3406
3431
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3407
3432
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3408
|
-
tmp.
|
|
3433
|
+
tmp.ja1_1 = Instance(di, tmp$ret$0, null).t63(this, asyncProvider$factory());
|
|
3409
3434
|
var tmp_1 = this;
|
|
3410
3435
|
// Inline function 'org.kodein.di.instance' call
|
|
3411
3436
|
// Inline function 'org.kodein.type.generic' call
|
|
3412
3437
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3413
3438
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3414
|
-
tmp_1.
|
|
3439
|
+
tmp_1.ka1_1 = Instance(di, tmp$ret$2, null).t63(this, logger$factory_1());
|
|
3415
3440
|
var tmp_3 = this;
|
|
3416
3441
|
// Inline function 'org.kodein.di.instance' call
|
|
3417
3442
|
// Inline function 'org.kodein.type.generic' call
|
|
3418
3443
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3419
3444
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3420
|
-
tmp_3.
|
|
3445
|
+
tmp_3.la1_1 = Instance(di, tmp$ret$4, null).t63(this, playerConnectionInteractor$factory_1());
|
|
3421
3446
|
var tmp_5 = this;
|
|
3422
3447
|
// Inline function 'org.kodein.di.instance' call
|
|
3423
3448
|
// Inline function 'org.kodein.type.generic' call
|
|
3424
3449
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3425
3450
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3426
|
-
tmp_5.
|
|
3451
|
+
tmp_5.ma1_1 = Instance(di, tmp$ret$6, null).t63(this, lastCardInteractor$factory());
|
|
3427
3452
|
var tmp_7 = this;
|
|
3428
3453
|
// Inline function 'org.kodein.di.instance' call
|
|
3429
3454
|
// Inline function 'org.kodein.type.generic' call
|
|
3430
3455
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3431
3456
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3432
|
-
tmp_7.
|
|
3457
|
+
tmp_7.na1_1 = Instance(di, tmp$ret$8, null).t63(this, serverConfig$factory());
|
|
3433
3458
|
var tmp_9 = this;
|
|
3434
3459
|
// Inline function 'org.kodein.di.instance' call
|
|
3435
3460
|
// Inline function 'org.kodein.type.generic' call
|
|
3436
3461
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3437
3462
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3438
|
-
tmp_9.
|
|
3463
|
+
tmp_9.oa1_1 = Instance(di, tmp$ret$10, null).t63(this, logicConfig$factory());
|
|
3439
3464
|
var tmp_11 = this;
|
|
3440
3465
|
// Inline function 'org.kodein.di.instance' call
|
|
3441
3466
|
// Inline function 'org.kodein.type.generic' call
|
|
3442
3467
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3443
3468
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3444
|
-
tmp_11.
|
|
3469
|
+
tmp_11.pa1_1 = Instance(di, tmp$ret$12, null).t63(this, idsProvider$factory_1());
|
|
3445
3470
|
var tmp_13 = this;
|
|
3446
3471
|
// Inline function 'org.kodein.di.instance' call
|
|
3447
3472
|
// Inline function 'org.kodein.type.generic' call
|
|
3448
3473
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3449
3474
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3450
|
-
tmp_13.
|
|
3475
|
+
tmp_13.qa1_1 = Instance(di, tmp$ret$14, null).t63(this, botConfig$factory());
|
|
3451
3476
|
var tmp_15 = this;
|
|
3452
3477
|
// Inline function 'org.kodein.di.instance' call
|
|
3453
3478
|
// Inline function 'org.kodein.type.generic' call
|
|
3454
3479
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3455
3480
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3456
|
-
tmp_15.
|
|
3481
|
+
tmp_15.ra1_1 = Instance(di, tmp$ret$16, null).t63(this, scenePositionProvider$factory());
|
|
3457
3482
|
var tmp_17 = this;
|
|
3458
3483
|
// Inline function 'org.kodein.di.instance' call
|
|
3459
3484
|
// Inline function 'org.kodein.type.generic' call
|
|
3460
3485
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3461
3486
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3462
|
-
tmp_17.
|
|
3487
|
+
tmp_17.sa1_1 = Instance(di, tmp$ret$18, null).t63(this, toClientEventsObserver$factory_1());
|
|
3463
3488
|
var tmp_19 = this;
|
|
3464
3489
|
// Inline function 'org.kodein.di.instance' call
|
|
3465
3490
|
// Inline function 'org.kodein.type.generic' call
|
|
3466
3491
|
var tmp_20 = typeToken(createKType(getKClass(MechanicEventsObserver), arrayOf([]), false));
|
|
3467
3492
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3468
|
-
tmp_19.
|
|
3493
|
+
tmp_19.ta1_1 = Instance(di, tmp$ret$20, null).t63(this, mechanicEventsObserver$factory_1());
|
|
3469
3494
|
}
|
|
3470
3495
|
protoOf(ServerGameStoreContract).c95 = function () {
|
|
3471
|
-
return plus(plus(plus(plus(plus(this.
|
|
3496
|
+
return plus(plus(plus(plus(plus(this.ea1_1.c95(), this.fa1_1.c95()), this.ga1_1.c95()), this.ha1_1.c95()), this.ia1_1.c95()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3472
3497
|
};
|
|
3473
3498
|
protoOf(ServerGameStoreContract).d95 = function () {
|
|
3474
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
3499
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.ea1_1.d95(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.fa1_1.d95()), this.ga1_1.d95()), this.ha1_1.d95()), this.ia1_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_0(this))).v96(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3475
3500
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3476
3501
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3477
3502
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3517,9 +3542,9 @@
|
|
|
3517
3542
|
return _get_logicConfig__52ww9d(receiver);
|
|
3518
3543
|
}, null);
|
|
3519
3544
|
}
|
|
3520
|
-
function idsProvider$
|
|
3545
|
+
function idsProvider$factory_1() {
|
|
3521
3546
|
return getPropertyCallableRef('idsProvider', 1, KProperty1, function (receiver) {
|
|
3522
|
-
return
|
|
3547
|
+
return _get_idsProvider__fnfajc_0(receiver);
|
|
3523
3548
|
}, null);
|
|
3524
3549
|
}
|
|
3525
3550
|
function botConfig$factory() {
|
|
@@ -3572,9 +3597,9 @@
|
|
|
3572
3597
|
return _get_logicConfig__52ww9d(receiver);
|
|
3573
3598
|
}, null);
|
|
3574
3599
|
}
|
|
3575
|
-
function idsProvider$
|
|
3600
|
+
function idsProvider$factory_2() {
|
|
3576
3601
|
return getPropertyCallableRef('idsProvider', 1, KProperty1, function (receiver) {
|
|
3577
|
-
return
|
|
3602
|
+
return _get_idsProvider__fnfajc_0(receiver);
|
|
3578
3603
|
}, null);
|
|
3579
3604
|
}
|
|
3580
3605
|
function botConfig$factory_0() {
|
|
@@ -3611,7 +3636,7 @@
|
|
|
3611
3636
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
3612
3637
|
next(action_0);
|
|
3613
3638
|
var state = store.state;
|
|
3614
|
-
if (!get_serverStatePayload_0(state).
|
|
3639
|
+
if (!get_serverStatePayload_0(state).f9t_1.g9t_1 && action_0.isGameFinished) {
|
|
3615
3640
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.k6q_1));
|
|
3616
3641
|
}
|
|
3617
3642
|
};
|
|
@@ -3619,7 +3644,7 @@
|
|
|
3619
3644
|
return this.g6l(store, next, action);
|
|
3620
3645
|
};
|
|
3621
3646
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3622
|
-
this.
|
|
3647
|
+
this.wa1_1 = this$0;
|
|
3623
3648
|
}
|
|
3624
3649
|
protoOf(_no_name_provided__qut3iv_3).p6j = function (action) {
|
|
3625
3650
|
return action instanceof MechanicAction;
|
|
@@ -3633,7 +3658,7 @@
|
|
|
3633
3658
|
var tmp;
|
|
3634
3659
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3635
3660
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3636
|
-
var this_0 = this.
|
|
3661
|
+
var this_0 = this.wa1_1;
|
|
3637
3662
|
var tableId = action_0.t7z_1;
|
|
3638
3663
|
var gameCreatorPlayerId = action_0.v7z_1;
|
|
3639
3664
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3678,7 +3703,7 @@
|
|
|
3678
3703
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3679
3704
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3680
3705
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3681
|
-
var tmp0_aid = this_0.
|
|
3706
|
+
var tmp0_aid = this_0.va1_1.s6h();
|
|
3682
3707
|
// Inline function 'kotlin.collections.map' call
|
|
3683
3708
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3684
3709
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3703,16 +3728,16 @@
|
|
|
3703
3728
|
} else {
|
|
3704
3729
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3705
3730
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3706
|
-
var this_2 = this.
|
|
3731
|
+
var this_2 = this.wa1_1;
|
|
3707
3732
|
var table = state.m6r();
|
|
3708
3733
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3709
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3734
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.va1_1.s6h(), table.id, null);
|
|
3710
3735
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3711
3736
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3712
3737
|
} else {
|
|
3713
3738
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3714
3739
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3715
|
-
var this_3 = this.
|
|
3740
|
+
var this_3 = this.wa1_1;
|
|
3716
3741
|
var tableId_0 = action_0.z7z_1.id;
|
|
3717
3742
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3718
3743
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3757,7 +3782,7 @@
|
|
|
3757
3782
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3758
3783
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3759
3784
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3760
|
-
var tmp0_aid_0 = this_3.
|
|
3785
|
+
var tmp0_aid_0 = this_3.va1_1.s6h();
|
|
3761
3786
|
// Inline function 'kotlin.collections.map' call
|
|
3762
3787
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3763
3788
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3782,43 +3807,43 @@
|
|
|
3782
3807
|
} else {
|
|
3783
3808
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3784
3809
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3785
|
-
var this_5 = this.
|
|
3810
|
+
var this_5 = this.wa1_1;
|
|
3786
3811
|
var table_0 = state.m6r();
|
|
3787
3812
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3788
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3813
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.va1_1.s6h(), table_0.id, null);
|
|
3789
3814
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3790
3815
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3791
3816
|
} else {
|
|
3792
3817
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3793
3818
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3794
|
-
var this_6 = this.
|
|
3819
|
+
var this_6 = this.wa1_1;
|
|
3795
3820
|
var table_1 = state.m6r();
|
|
3796
3821
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3797
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3822
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.va1_1.s6h(), table_1.id, null);
|
|
3798
3823
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3799
3824
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3800
3825
|
} else {
|
|
3801
3826
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3802
3827
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3803
|
-
var this_7 = this.
|
|
3828
|
+
var this_7 = this.wa1_1;
|
|
3804
3829
|
var table_2 = state.m6r();
|
|
3805
3830
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3806
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3831
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.va1_1.s6h(), table_2.id, null);
|
|
3807
3832
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3808
3833
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3809
3834
|
} else {
|
|
3810
3835
|
if (action_0 instanceof ErrorAction) {
|
|
3811
3836
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3812
|
-
var this_8 = this.
|
|
3837
|
+
var this_8 = this.wa1_1;
|
|
3813
3838
|
var table_3 = state.m6r();
|
|
3814
3839
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3815
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3840
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.va1_1.s6h(), table_3.id, null);
|
|
3816
3841
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3817
3842
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3818
3843
|
} else {
|
|
3819
3844
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3820
3845
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3821
|
-
var this_9 = this.
|
|
3846
|
+
var this_9 = this.wa1_1;
|
|
3822
3847
|
var table_4 = state.m6r();
|
|
3823
3848
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3824
3849
|
var tableId_1 = table_4.id;
|
|
@@ -3855,7 +3880,7 @@
|
|
|
3855
3880
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3856
3881
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3857
3882
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3858
|
-
var tmp0_aid_1 = this_9.
|
|
3883
|
+
var tmp0_aid_1 = this_9.va1_1.s6h();
|
|
3859
3884
|
// Inline function 'kotlin.collections.map' call
|
|
3860
3885
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3861
3886
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3880,7 +3905,7 @@
|
|
|
3880
3905
|
} else {
|
|
3881
3906
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3882
3907
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3883
|
-
var this_10 = this.
|
|
3908
|
+
var this_10 = this.wa1_1;
|
|
3884
3909
|
var table_5 = state.m6r();
|
|
3885
3910
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3886
3911
|
var tableId_2 = table_5.id;
|
|
@@ -3917,7 +3942,7 @@
|
|
|
3917
3942
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3918
3943
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3919
3944
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3920
|
-
var tmp0_aid_2 = this_10.
|
|
3945
|
+
var tmp0_aid_2 = this_10.va1_1.s6h();
|
|
3921
3946
|
// Inline function 'kotlin.collections.map' call
|
|
3922
3947
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3923
3948
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -3942,7 +3967,7 @@
|
|
|
3942
3967
|
} else {
|
|
3943
3968
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
3944
3969
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3945
|
-
var this_11 = this.
|
|
3970
|
+
var this_11 = this.wa1_1;
|
|
3946
3971
|
var table_6 = state.m6r();
|
|
3947
3972
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3948
3973
|
var tableId_3 = table_6.id;
|
|
@@ -3979,7 +4004,7 @@
|
|
|
3979
4004
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3980
4005
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3981
4006
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3982
|
-
var tmp0_aid_3 = this_11.
|
|
4007
|
+
var tmp0_aid_3 = this_11.va1_1.s6h();
|
|
3983
4008
|
// Inline function 'kotlin.collections.map' call
|
|
3984
4009
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3985
4010
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -3992,7 +4017,7 @@
|
|
|
3992
4017
|
}
|
|
3993
4018
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
3994
4019
|
var tmp_0;
|
|
3995
|
-
if (this.
|
|
4020
|
+
if (this.wa1_1.ua1_1.supportBackwardActions && getPlayer(state.m6r().players, sendToPlayer_8.b7e_1).h6x_1.l6x_1) {
|
|
3996
4021
|
tmp_0 = null;
|
|
3997
4022
|
} else {
|
|
3998
4023
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -4010,79 +4035,79 @@
|
|
|
4010
4035
|
} else {
|
|
4011
4036
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
4012
4037
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4013
|
-
var this_12 = this.
|
|
4038
|
+
var this_12 = this.wa1_1;
|
|
4014
4039
|
var table_7 = state.m6r();
|
|
4015
|
-
var exceptPlayerId = this.
|
|
4040
|
+
var exceptPlayerId = this.wa1_1.ua1_1.supportBackwardActions ? action_0.z80_1 : null;
|
|
4016
4041
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4017
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
4042
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.va1_1.s6h(), table_7.id, exceptPlayerId);
|
|
4018
4043
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
4019
4044
|
tmp = listOfNotNull(tmp$ret$94);
|
|
4020
4045
|
} else {
|
|
4021
4046
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
4022
4047
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4023
|
-
var this_13 = this.
|
|
4048
|
+
var this_13 = this.wa1_1;
|
|
4024
4049
|
var table_8 = state.m6r();
|
|
4025
|
-
var exceptPlayerId_0 = this.
|
|
4050
|
+
var exceptPlayerId_0 = this.wa1_1.ua1_1.supportBackwardActions ? action_0.d81_1 : null;
|
|
4026
4051
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4027
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4052
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.va1_1.s6h(), table_8.id, exceptPlayerId_0);
|
|
4028
4053
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
4029
4054
|
tmp = listOfNotNull(tmp$ret$96);
|
|
4030
4055
|
} else {
|
|
4031
4056
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
4032
4057
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4033
|
-
var this_14 = this.
|
|
4058
|
+
var this_14 = this.wa1_1;
|
|
4034
4059
|
var table_9 = state.m6r();
|
|
4035
4060
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4036
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4061
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.va1_1.s6h(), table_9.id, null);
|
|
4037
4062
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4038
4063
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4039
4064
|
} else {
|
|
4040
4065
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4041
4066
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4042
|
-
var this_15 = this.
|
|
4067
|
+
var this_15 = this.wa1_1;
|
|
4043
4068
|
var table_10 = state.m6r();
|
|
4044
|
-
var exceptPlayerId_1 = this.
|
|
4069
|
+
var exceptPlayerId_1 = this.wa1_1.ua1_1.supportBackwardActions ? action_0.k81_1 : null;
|
|
4045
4070
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4046
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4071
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.va1_1.s6h(), table_10.id, exceptPlayerId_1);
|
|
4047
4072
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4048
4073
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4049
4074
|
} else {
|
|
4050
4075
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4051
4076
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4052
|
-
var this_16 = this.
|
|
4077
|
+
var this_16 = this.wa1_1;
|
|
4053
4078
|
var table_11 = state.m6r();
|
|
4054
|
-
var exceptPlayerId_2 = this.
|
|
4079
|
+
var exceptPlayerId_2 = this.wa1_1.ua1_1.supportBackwardActions ? action_0.o81_1 : null;
|
|
4055
4080
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4056
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4081
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.va1_1.s6h(), table_11.id, exceptPlayerId_2);
|
|
4057
4082
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4058
4083
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4059
4084
|
} else {
|
|
4060
4085
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4061
4086
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4062
|
-
var this_17 = this.
|
|
4087
|
+
var this_17 = this.wa1_1;
|
|
4063
4088
|
var table_12 = state.m6r();
|
|
4064
4089
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4065
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4090
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.va1_1.s6h(), table_12.id, null);
|
|
4066
4091
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4067
4092
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4068
4093
|
} else {
|
|
4069
4094
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4070
4095
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4071
|
-
var this_18 = this.
|
|
4096
|
+
var this_18 = this.wa1_1;
|
|
4072
4097
|
var table_13 = state.m6r();
|
|
4073
4098
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4074
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4099
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.va1_1.s6h(), table_13.id, null);
|
|
4075
4100
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4076
4101
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4077
4102
|
} else {
|
|
4078
4103
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4079
4104
|
var message = action_0.w81_1;
|
|
4080
4105
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4081
|
-
var this_19 = this.
|
|
4106
|
+
var this_19 = this.wa1_1;
|
|
4082
4107
|
var table_14 = state.m6r();
|
|
4083
4108
|
var tmp_1;
|
|
4084
4109
|
var tmp_2;
|
|
4085
|
-
if (this.
|
|
4110
|
+
if (this.wa1_1.ua1_1.supportBackwardActions) {
|
|
4086
4111
|
tmp_2 = isInterface(message, UserMessage);
|
|
4087
4112
|
} else {
|
|
4088
4113
|
tmp_2 = false;
|
|
@@ -4094,17 +4119,17 @@
|
|
|
4094
4119
|
}
|
|
4095
4120
|
var exceptPlayerId_3 = tmp_1;
|
|
4096
4121
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4097
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4122
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.va1_1.s6h(), table_14.id, exceptPlayerId_3);
|
|
4098
4123
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4099
4124
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4100
4125
|
} else {
|
|
4101
4126
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4102
4127
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4103
|
-
var this_20 = this.
|
|
4128
|
+
var this_20 = this.wa1_1;
|
|
4104
4129
|
var table_15 = state.m6r();
|
|
4105
4130
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4106
4131
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4107
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4132
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.va1_1.s6h(), table_15.id, exceptPlayerId_4);
|
|
4108
4133
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4109
4134
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4110
4135
|
} else {
|
|
@@ -4142,8 +4167,8 @@
|
|
|
4142
4167
|
return this.g6l(store, next, action);
|
|
4143
4168
|
};
|
|
4144
4169
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4145
|
-
this.
|
|
4146
|
-
this.
|
|
4170
|
+
this.ua1_1 = logicConfig;
|
|
4171
|
+
this.va1_1 = idsProvider;
|
|
4147
4172
|
}
|
|
4148
4173
|
protoOf(ServerMapMechanicToClientActionMiddleware).v96 = function () {
|
|
4149
4174
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
@@ -4154,8 +4179,8 @@
|
|
|
4154
4179
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4155
4180
|
}
|
|
4156
4181
|
function sendMechanicEventsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4157
|
-
this.
|
|
4158
|
-
this.
|
|
4182
|
+
this.fa2_1 = $provider;
|
|
4183
|
+
this.ga2_1 = $action;
|
|
4159
4184
|
CoroutineImpl.call(this, resultContinuation);
|
|
4160
4185
|
}
|
|
4161
4186
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4176,7 +4201,7 @@
|
|
|
4176
4201
|
case 0:
|
|
4177
4202
|
this.f9_1 = 2;
|
|
4178
4203
|
this.e9_1 = 1;
|
|
4179
|
-
suspendResult = this.
|
|
4204
|
+
suspendResult = this.fa2_1.b9u(this.ga2_1, this);
|
|
4180
4205
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4181
4206
|
return suspendResult;
|
|
4182
4207
|
}
|
|
@@ -4199,8 +4224,8 @@
|
|
|
4199
4224
|
while (true);
|
|
4200
4225
|
};
|
|
4201
4226
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4202
|
-
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.
|
|
4203
|
-
i.
|
|
4227
|
+
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.fa2_1, this.ga2_1, completion);
|
|
4228
|
+
i.ha2_1 = $this$launchDefault;
|
|
4204
4229
|
return i;
|
|
4205
4230
|
};
|
|
4206
4231
|
function sendMechanicEventsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4212,8 +4237,8 @@
|
|
|
4212
4237
|
return l;
|
|
4213
4238
|
}
|
|
4214
4239
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4215
|
-
this.
|
|
4216
|
-
this.
|
|
4240
|
+
this.ia2_1 = $asyncProvider;
|
|
4241
|
+
this.ja2_1 = $provider;
|
|
4217
4242
|
}
|
|
4218
4243
|
protoOf(_no_name_provided__qut3iv_4).p6j = function (action) {
|
|
4219
4244
|
return action instanceof MechanicAction;
|
|
@@ -4221,7 +4246,7 @@
|
|
|
4221
4246
|
protoOf(_no_name_provided__qut3iv_4).g6l = function (store, next, action) {
|
|
4222
4247
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendMechanicEventsMiddleware.<anonymous>' call
|
|
4223
4248
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
4224
|
-
this.
|
|
4249
|
+
this.ia2_1.p6g(VOID, sendMechanicEventsMiddleware$o$handle$slambda_0(this.ja2_1, action_0, null));
|
|
4225
4250
|
next(action_0);
|
|
4226
4251
|
};
|
|
4227
4252
|
protoOf(_no_name_provided__qut3iv_4).o6j = function (store, next, action) {
|
|
@@ -4232,8 +4257,8 @@
|
|
|
4232
4257
|
return new _no_name_provided__qut3iv_5(asyncProvider, provider);
|
|
4233
4258
|
}
|
|
4234
4259
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4235
|
-
this.
|
|
4236
|
-
this.
|
|
4260
|
+
this.sa2_1 = $provider;
|
|
4261
|
+
this.ta2_1 = $action;
|
|
4237
4262
|
CoroutineImpl.call(this, resultContinuation);
|
|
4238
4263
|
}
|
|
4239
4264
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4254,7 +4279,7 @@
|
|
|
4254
4279
|
case 0:
|
|
4255
4280
|
this.f9_1 = 2;
|
|
4256
4281
|
this.e9_1 = 1;
|
|
4257
|
-
suspendResult = this.
|
|
4282
|
+
suspendResult = this.sa2_1.p9y(this.ta2_1, this);
|
|
4258
4283
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4259
4284
|
return suspendResult;
|
|
4260
4285
|
}
|
|
@@ -4277,8 +4302,8 @@
|
|
|
4277
4302
|
while (true);
|
|
4278
4303
|
};
|
|
4279
4304
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4280
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4281
|
-
i.
|
|
4305
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.sa2_1, this.ta2_1, completion);
|
|
4306
|
+
i.ua2_1 = $this$launchDefault;
|
|
4282
4307
|
return i;
|
|
4283
4308
|
};
|
|
4284
4309
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4290,8 +4315,8 @@
|
|
|
4290
4315
|
return l;
|
|
4291
4316
|
}
|
|
4292
4317
|
function _no_name_provided__qut3iv_5($asyncProvider, $provider) {
|
|
4293
|
-
this.
|
|
4294
|
-
this.
|
|
4318
|
+
this.va2_1 = $asyncProvider;
|
|
4319
|
+
this.wa2_1 = $provider;
|
|
4295
4320
|
}
|
|
4296
4321
|
protoOf(_no_name_provided__qut3iv_5).p6j = function (action) {
|
|
4297
4322
|
return action instanceof ToClientAction;
|
|
@@ -4299,7 +4324,7 @@
|
|
|
4299
4324
|
protoOf(_no_name_provided__qut3iv_5).g6l = function (store, next, action) {
|
|
4300
4325
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4301
4326
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4302
|
-
this.
|
|
4327
|
+
this.va2_1.p6g(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.wa2_1, action_0, null));
|
|
4303
4328
|
next(action_0);
|
|
4304
4329
|
};
|
|
4305
4330
|
protoOf(_no_name_provided__qut3iv_5).o6j = function (store, next, action) {
|
|
@@ -4317,7 +4342,7 @@
|
|
|
4317
4342
|
protoOf(_no_name_provided__qut3iv_6).q9d = function (state, action) {
|
|
4318
4343
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4319
4344
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4320
|
-
return state.f92(VOID, get_serverStatePayload_0(state).
|
|
4345
|
+
return state.f92(VOID, get_serverStatePayload_0(state).xa2(action_0.ba1_1));
|
|
4321
4346
|
};
|
|
4322
4347
|
protoOf(_no_name_provided__qut3iv_6).h6l = function (state, action) {
|
|
4323
4348
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -4342,7 +4367,7 @@
|
|
|
4342
4367
|
}
|
|
4343
4368
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4344
4369
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4345
|
-
this.
|
|
4370
|
+
this.aa3_1 = logger;
|
|
4346
4371
|
}
|
|
4347
4372
|
protoOf(ServerMechanicLifecycleReducer).c9f = function (state, action) {
|
|
4348
4373
|
var serverState = get_serverStatePayloadOrNull(state.l6q_1);
|
|
@@ -4358,8 +4383,8 @@
|
|
|
4358
4383
|
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
4384
|
var tmp;
|
|
4360
4385
|
if (serverState == null) {
|
|
4361
|
-
this.
|
|
4362
|
-
tmp =
|
|
4386
|
+
this.aa3_1.w(VOID, 'ServerPayload is not onStart');
|
|
4387
|
+
tmp = Companion_instance_11.v9t();
|
|
4363
4388
|
} else {
|
|
4364
4389
|
tmp = serverState;
|
|
4365
4390
|
}
|
|
@@ -4369,7 +4394,7 @@
|
|
|
4369
4394
|
protoOf(ServerMechanicLifecycleReducer).a9f = function (state, action) {
|
|
4370
4395
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4371
4396
|
var tmp1_tableOrNull = action.z7z_1;
|
|
4372
|
-
var tmp2_payload =
|
|
4397
|
+
var tmp2_payload = Companion_instance_11.v9t();
|
|
4373
4398
|
return state.f92(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
4374
4399
|
};
|
|
4375
4400
|
protoOf(ServerMechanicLifecycleReducer).b9f = function (state, action) {
|
|
@@ -4383,7 +4408,7 @@
|
|
|
4383
4408
|
return new _no_name_provided__qut3iv_7(logger);
|
|
4384
4409
|
}
|
|
4385
4410
|
function _no_name_provided__qut3iv_7($logger) {
|
|
4386
|
-
this.
|
|
4411
|
+
this.ba3_1 = $logger;
|
|
4387
4412
|
}
|
|
4388
4413
|
protoOf(_no_name_provided__qut3iv_7).p6j = function (action) {
|
|
4389
4414
|
return isInterface(action, SpectatorsAction);
|
|
@@ -4396,7 +4421,7 @@
|
|
|
4396
4421
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4397
4422
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4398
4423
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4399
|
-
var this_0 = action_0.
|
|
4424
|
+
var this_0 = action_0.ca1_1;
|
|
4400
4425
|
var destination = ArrayList_init_$Create$_0();
|
|
4401
4426
|
// Inline function 'kotlin.collections.forEach' call
|
|
4402
4427
|
var tmp0_iterator = this_0.j();
|
|
@@ -4418,10 +4443,10 @@
|
|
|
4418
4443
|
var tmp_0;
|
|
4419
4444
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4420
4445
|
if (!sameSpectators.p()) {
|
|
4421
|
-
this.
|
|
4446
|
+
this.ba3_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4422
4447
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4423
4448
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4424
|
-
var this_1 = action_0.
|
|
4449
|
+
var this_1 = action_0.ca1_1;
|
|
4425
4450
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4426
4451
|
var tmp0_iterator_0 = this_1.j();
|
|
4427
4452
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4457,7 +4482,7 @@
|
|
|
4457
4482
|
}
|
|
4458
4483
|
tmp_0 = destination_0;
|
|
4459
4484
|
} else {
|
|
4460
|
-
tmp_0 = action_0.
|
|
4485
|
+
tmp_0 = action_0.ca1_1;
|
|
4461
4486
|
}
|
|
4462
4487
|
var this_2 = tmp_0;
|
|
4463
4488
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4475,7 +4500,7 @@
|
|
|
4475
4500
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4476
4501
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4477
4502
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4478
|
-
var this_3 = action_0.
|
|
4503
|
+
var this_3 = action_0.da1_1;
|
|
4479
4504
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4480
4505
|
// Inline function 'kotlin.collections.forEach' call
|
|
4481
4506
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4496,10 +4521,10 @@
|
|
|
4496
4521
|
var tmp_2;
|
|
4497
4522
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4498
4523
|
if (!sameSpectators_0.p()) {
|
|
4499
|
-
this.
|
|
4524
|
+
this.ba3_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4500
4525
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4501
4526
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4502
|
-
var this_4 = action_0.
|
|
4527
|
+
var this_4 = action_0.da1_1;
|
|
4503
4528
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4504
4529
|
var tmp0_iterator_4 = this_4.j();
|
|
4505
4530
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4535,7 +4560,7 @@
|
|
|
4535
4560
|
}
|
|
4536
4561
|
tmp_2 = destination_3;
|
|
4537
4562
|
} else {
|
|
4538
|
-
tmp_2 = action_0.
|
|
4563
|
+
tmp_2 = action_0.da1_1;
|
|
4539
4564
|
}
|
|
4540
4565
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4541
4566
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4584,30 +4609,30 @@
|
|
|
4584
4609
|
protoOf(_no_name_provided__qut3iv_7).h6l = function (state, action) {
|
|
4585
4610
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4586
4611
|
};
|
|
4587
|
-
function
|
|
4612
|
+
function Companion_3() {
|
|
4588
4613
|
}
|
|
4589
|
-
protoOf(
|
|
4614
|
+
protoOf(Companion_3).ca3 = function (config) {
|
|
4590
4615
|
return new ServerStatePayload(config);
|
|
4591
4616
|
};
|
|
4592
|
-
protoOf(
|
|
4593
|
-
config = config === VOID ?
|
|
4594
|
-
return $super === VOID ? this.
|
|
4617
|
+
protoOf(Companion_3).v9t = function (config, $super) {
|
|
4618
|
+
config = config === VOID ? Companion_instance_8.z8j() : config;
|
|
4619
|
+
return $super === VOID ? this.ca3(config) : $super.ca3.call(this, config);
|
|
4595
4620
|
};
|
|
4596
|
-
var
|
|
4597
|
-
function
|
|
4598
|
-
return
|
|
4621
|
+
var Companion_instance_11;
|
|
4622
|
+
function Companion_getInstance_4() {
|
|
4623
|
+
return Companion_instance_11;
|
|
4599
4624
|
}
|
|
4600
4625
|
function ServerStatePayload(config) {
|
|
4601
|
-
this.
|
|
4626
|
+
this.f9t_1 = config;
|
|
4602
4627
|
}
|
|
4603
|
-
protoOf(ServerStatePayload).
|
|
4628
|
+
protoOf(ServerStatePayload).xa2 = function (config) {
|
|
4604
4629
|
return new ServerStatePayload(config);
|
|
4605
4630
|
};
|
|
4606
4631
|
protoOf(ServerStatePayload).toString = function () {
|
|
4607
|
-
return 'ServerStatePayload(config=' + this.
|
|
4632
|
+
return 'ServerStatePayload(config=' + this.f9t_1.toString() + ')';
|
|
4608
4633
|
};
|
|
4609
4634
|
protoOf(ServerStatePayload).hashCode = function () {
|
|
4610
|
-
return this.
|
|
4635
|
+
return this.f9t_1.hashCode();
|
|
4611
4636
|
};
|
|
4612
4637
|
protoOf(ServerStatePayload).equals = function (other) {
|
|
4613
4638
|
if (this === other)
|
|
@@ -4615,7 +4640,7 @@
|
|
|
4615
4640
|
if (!(other instanceof ServerStatePayload))
|
|
4616
4641
|
return false;
|
|
4617
4642
|
var tmp0_other_with_cast = other instanceof ServerStatePayload ? other : THROW_CCE();
|
|
4618
|
-
if (!this.
|
|
4643
|
+
if (!this.f9t_1.equals(tmp0_other_with_cast.f9t_1))
|
|
4619
4644
|
return false;
|
|
4620
4645
|
return true;
|
|
4621
4646
|
};
|
|
@@ -4653,13 +4678,13 @@
|
|
|
4653
4678
|
}
|
|
4654
4679
|
function _get_controllerLogger__nbd727($this) {
|
|
4655
4680
|
// Inline function 'kotlin.getValue' call
|
|
4656
|
-
var this_0 = $this.
|
|
4681
|
+
var this_0 = $this.la3_1;
|
|
4657
4682
|
controllerLogger$factory();
|
|
4658
4683
|
return this_0.u();
|
|
4659
4684
|
}
|
|
4660
4685
|
function _get_di__ndbzja($this) {
|
|
4661
4686
|
// Inline function 'kotlin.getValue' call
|
|
4662
|
-
var this_0 = $this.
|
|
4687
|
+
var this_0 = $this.ma3_1;
|
|
4663
4688
|
di$factory();
|
|
4664
4689
|
return this_0.u();
|
|
4665
4690
|
}
|
|
@@ -4670,13 +4695,13 @@
|
|
|
4670
4695
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
4671
4696
|
return function () {
|
|
4672
4697
|
var tmp;
|
|
4673
|
-
if (this$0.
|
|
4698
|
+
if (this$0.ja3_1 == null) {
|
|
4674
4699
|
tmp = null;
|
|
4675
4700
|
} else {
|
|
4676
4701
|
// Inline function 'kotlin.let' call
|
|
4677
4702
|
// Inline function 'kotlin.contracts.contract' call
|
|
4678
4703
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
4679
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4704
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.ja3_1)]));
|
|
4680
4705
|
}
|
|
4681
4706
|
var tmp1_elvis_lhs = tmp;
|
|
4682
4707
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4704,7 +4729,7 @@
|
|
|
4704
4729
|
tmp_0.w61(tmp$ret$3);
|
|
4705
4730
|
$this$DI.a5y(jsonModule());
|
|
4706
4731
|
$this$DI.a5y(serverHelpersModule());
|
|
4707
|
-
$this$DI.a5y(randomOrgModule(this$0.
|
|
4732
|
+
$this$DI.a5y(randomOrgModule(this$0.ka3_1));
|
|
4708
4733
|
return Unit_instance;
|
|
4709
4734
|
};
|
|
4710
4735
|
}
|
|
@@ -4715,13 +4740,13 @@
|
|
|
4715
4740
|
};
|
|
4716
4741
|
}
|
|
4717
4742
|
function _no_name_provided__qut3iv_8($item) {
|
|
4718
|
-
this.
|
|
4743
|
+
this.sa3_1 = $item;
|
|
4719
4744
|
}
|
|
4720
4745
|
protoOf(_no_name_provided__qut3iv_8).p6j = function (action) {
|
|
4721
4746
|
return isInterface(action, Action);
|
|
4722
4747
|
};
|
|
4723
4748
|
protoOf(_no_name_provided__qut3iv_8).q9d = function (state, action) {
|
|
4724
|
-
return this.
|
|
4749
|
+
return this.sa3_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4725
4750
|
};
|
|
4726
4751
|
protoOf(_no_name_provided__qut3iv_8).h6l = function (state, action) {
|
|
4727
4752
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -4816,7 +4841,7 @@
|
|
|
4816
4841
|
// Inline function 'kotlin.contracts.contract' call
|
|
4817
4842
|
$this$DI.a5y(tmp0_safe_receiver);
|
|
4818
4843
|
}
|
|
4819
|
-
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.
|
|
4844
|
+
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.ka3_1));
|
|
4820
4845
|
$this$DI.a5y(coreModule($coreConfig));
|
|
4821
4846
|
$this$DI.a5y(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4822
4847
|
return Unit_instance;
|
|
@@ -4825,76 +4850,76 @@
|
|
|
4825
4850
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4826
4851
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4827
4852
|
production = production === VOID ? true : production;
|
|
4828
|
-
this.
|
|
4829
|
-
this.
|
|
4853
|
+
this.ja3_1 = loggerCallback;
|
|
4854
|
+
this.ka3_1 = randomOrgConfig;
|
|
4830
4855
|
AppEnvironment_getInstance().s6p(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4831
4856
|
var tmp = this;
|
|
4832
|
-
tmp.
|
|
4857
|
+
tmp.la3_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4833
4858
|
var tmp_0 = this;
|
|
4834
|
-
tmp_0.
|
|
4859
|
+
tmp_0.ma3_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4835
4860
|
var tmp_1 = this;
|
|
4836
4861
|
// Inline function 'org.kodein.di.instance' call
|
|
4837
4862
|
var this_0 = _get_di__ndbzja(this);
|
|
4838
4863
|
// Inline function 'org.kodein.type.generic' call
|
|
4839
4864
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4840
4865
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4841
|
-
tmp_1.
|
|
4866
|
+
tmp_1.na3_1 = Instance(this_0, tmp$ret$0, null).t63(this, parser$factory());
|
|
4842
4867
|
var tmp_3 = this;
|
|
4843
4868
|
// Inline function 'org.kodein.di.instance' call
|
|
4844
4869
|
var this_1 = _get_di__ndbzja(this);
|
|
4845
4870
|
// Inline function 'org.kodein.type.generic' call
|
|
4846
4871
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4847
4872
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4848
|
-
tmp_3.
|
|
4873
|
+
tmp_3.oa3_1 = Instance(this_1, tmp$ret$2, null).t63(this, helper$factory());
|
|
4849
4874
|
var tmp_5 = this;
|
|
4850
4875
|
// Inline function 'org.kodein.di.instance' call
|
|
4851
4876
|
var this_2 = _get_di__ndbzja(this);
|
|
4852
4877
|
// Inline function 'org.kodein.type.generic' call
|
|
4853
4878
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4854
4879
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4855
|
-
tmp_5.
|
|
4880
|
+
tmp_5.pa3_1 = Instance(this_2, tmp$ret$4, null).t63(this, resources$factory());
|
|
4856
4881
|
var tmp_7 = this;
|
|
4857
4882
|
// Inline function 'org.kodein.di.instance' call
|
|
4858
4883
|
var this_3 = _get_di__ndbzja(this);
|
|
4859
4884
|
// Inline function 'org.kodein.type.generic' call
|
|
4860
4885
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4861
4886
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4862
|
-
tmp_7.
|
|
4887
|
+
tmp_7.qa3_1 = Instance(this_3, tmp$ret$6, null).t63(this, test$factory());
|
|
4863
4888
|
var tmp_9 = this;
|
|
4864
4889
|
// Inline function 'org.kodein.di.instance' call
|
|
4865
4890
|
var this_4 = _get_di__ndbzja(this);
|
|
4866
4891
|
// Inline function 'org.kodein.type.generic' call
|
|
4867
4892
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4868
4893
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4869
|
-
tmp_9.
|
|
4894
|
+
tmp_9.ra3_1 = Instance(this_4, tmp$ret$8, null).t63(this, randomPoolProvider$factory());
|
|
4870
4895
|
}
|
|
4871
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4896
|
+
protoOf(GameServerEngineControllerImpl).da3 = function () {
|
|
4872
4897
|
// Inline function 'kotlin.getValue' call
|
|
4873
|
-
var this_0 = this.
|
|
4898
|
+
var this_0 = this.na3_1;
|
|
4874
4899
|
parser$factory_0();
|
|
4875
4900
|
return this_0.u();
|
|
4876
4901
|
};
|
|
4877
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4902
|
+
protoOf(GameServerEngineControllerImpl).fa3 = function () {
|
|
4878
4903
|
// Inline function 'kotlin.getValue' call
|
|
4879
|
-
var this_0 = this.
|
|
4904
|
+
var this_0 = this.oa3_1;
|
|
4880
4905
|
helper$factory_0();
|
|
4881
4906
|
return this_0.u();
|
|
4882
4907
|
};
|
|
4883
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4908
|
+
protoOf(GameServerEngineControllerImpl).ga3 = function () {
|
|
4884
4909
|
// Inline function 'kotlin.getValue' call
|
|
4885
|
-
var this_0 = this.
|
|
4910
|
+
var this_0 = this.pa3_1;
|
|
4886
4911
|
resources$factory_0();
|
|
4887
4912
|
return this_0.u();
|
|
4888
4913
|
};
|
|
4889
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4914
|
+
protoOf(GameServerEngineControllerImpl).ea3 = function () {
|
|
4890
4915
|
// Inline function 'kotlin.getValue' call
|
|
4891
|
-
var this_0 = this.
|
|
4916
|
+
var this_0 = this.qa3_1;
|
|
4892
4917
|
test$factory_0();
|
|
4893
4918
|
return this_0.u();
|
|
4894
4919
|
};
|
|
4895
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4920
|
+
protoOf(GameServerEngineControllerImpl).ha3 = function () {
|
|
4896
4921
|
// Inline function 'kotlin.getValue' call
|
|
4897
|
-
var this_0 = this.
|
|
4922
|
+
var this_0 = this.ra3_1;
|
|
4898
4923
|
randomPoolProvider$factory_0();
|
|
4899
4924
|
return this_0.u();
|
|
4900
4925
|
};
|
|
@@ -4904,7 +4929,7 @@
|
|
|
4904
4929
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4905
4930
|
return this.createGameEngineWithLogic();
|
|
4906
4931
|
};
|
|
4907
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4932
|
+
protoOf(GameServerEngineControllerImpl).ia3 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4908
4933
|
var combinedLogger = Companion_instance_6.qm();
|
|
4909
4934
|
var tmp;
|
|
4910
4935
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4914,8 +4939,8 @@
|
|
|
4914
4939
|
}
|
|
4915
4940
|
var fileLoggerOutput = tmp;
|
|
4916
4941
|
var tmp_0;
|
|
4917
|
-
if (!(this.
|
|
4918
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4942
|
+
if (!(this.ja3_1 == null)) {
|
|
4943
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.ja3_1));
|
|
4919
4944
|
} else {
|
|
4920
4945
|
tmp_0 = null;
|
|
4921
4946
|
}
|
|
@@ -5032,13 +5057,13 @@
|
|
|
5032
5057
|
}
|
|
5033
5058
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
5034
5059
|
// Inline function 'kotlin.getValue' call
|
|
5035
|
-
var this_0 = $this.
|
|
5060
|
+
var this_0 = $this.va3_1;
|
|
5036
5061
|
playerAnswerInteractor$factory_0();
|
|
5037
5062
|
return this_0.u();
|
|
5038
5063
|
}
|
|
5039
5064
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5040
5065
|
return function ($this$singleton) {
|
|
5041
|
-
return this$0.
|
|
5066
|
+
return this$0.ta3_1;
|
|
5042
5067
|
};
|
|
5043
5068
|
}
|
|
5044
5069
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5067,17 +5092,17 @@
|
|
|
5067
5092
|
return emptyMap();
|
|
5068
5093
|
}
|
|
5069
5094
|
function TestHelperImpl(logger) {
|
|
5070
|
-
this.
|
|
5095
|
+
this.ta3_1 = logger;
|
|
5071
5096
|
var tmp = this;
|
|
5072
5097
|
var tmp_0 = Companion_instance_3;
|
|
5073
|
-
tmp.
|
|
5098
|
+
tmp.ua3_1 = tmp_0.h5y(VOID, TestHelperImpl$di$lambda(this));
|
|
5074
5099
|
var tmp_1 = this;
|
|
5075
5100
|
// Inline function 'org.kodein.di.instance' call
|
|
5076
|
-
var this_0 = this.
|
|
5101
|
+
var this_0 = this.ua3_1;
|
|
5077
5102
|
// Inline function 'org.kodein.type.generic' call
|
|
5078
5103
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5079
5104
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5080
|
-
tmp_1.
|
|
5105
|
+
tmp_1.va3_1 = Instance(this_0, tmp$ret$0, null).t63(this, playerAnswerInteractor$factory());
|
|
5081
5106
|
}
|
|
5082
5107
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5083
5108
|
return _get_playerAnswerInteractor__msggz1(this).c8t(playerId, table, botConfig);
|
|
@@ -5224,19 +5249,19 @@
|
|
|
5224
5249
|
});
|
|
5225
5250
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5226
5251
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5227
|
-
return this.
|
|
5252
|
+
return this.da3();
|
|
5228
5253
|
});
|
|
5229
5254
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5230
|
-
return this.
|
|
5255
|
+
return this.fa3();
|
|
5231
5256
|
});
|
|
5232
5257
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5233
|
-
return this.
|
|
5258
|
+
return this.ga3();
|
|
5234
5259
|
});
|
|
5235
5260
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5236
|
-
return this.
|
|
5261
|
+
return this.ea3();
|
|
5237
5262
|
});
|
|
5238
5263
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5239
|
-
return this.
|
|
5264
|
+
return this.ha3();
|
|
5240
5265
|
});
|
|
5241
5266
|
//endregion
|
|
5242
5267
|
//region block: init
|
|
@@ -5244,6 +5269,7 @@
|
|
|
5244
5269
|
Companion_instance_8 = new Companion_0();
|
|
5245
5270
|
Companion_instance_9 = new Companion_1();
|
|
5246
5271
|
Companion_instance_10 = new Companion_2();
|
|
5272
|
+
Companion_instance_11 = new Companion_3();
|
|
5247
5273
|
//endregion
|
|
5248
5274
|
//region block: exports
|
|
5249
5275
|
function $jsExportAll$(_) {
|