raspberry_games_server_game_logic 1.8.503 → 1.8.504
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Logic_Debertz-bot_engine.js +640 -640
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +987 -975
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +3 -2
- package/Logic_Debertz-game_server.js +896 -896
- package/kotlin-kotlin-stdlib.js +4 -4
- package/package.json +1 -1
|
@@ -437,10 +437,10 @@
|
|
|
437
437
|
spectators = tmp;
|
|
438
438
|
var tmp_0;
|
|
439
439
|
if ($super === VOID) {
|
|
440
|
-
this.
|
|
440
|
+
this.vbe(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
441
441
|
tmp_0 = Unit_instance;
|
|
442
442
|
} else {
|
|
443
|
-
tmp_0 = $super.
|
|
443
|
+
tmp_0 = $super.vbe.call(this, roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
444
444
|
}
|
|
445
445
|
return tmp_0;
|
|
446
446
|
}
|
|
@@ -448,10 +448,10 @@
|
|
|
448
448
|
newRid = newRid === VOID ? null : newRid;
|
|
449
449
|
var tmp;
|
|
450
450
|
if ($super === VOID) {
|
|
451
|
-
this.
|
|
451
|
+
this.xbe(newRid);
|
|
452
452
|
tmp = Unit_instance;
|
|
453
453
|
} else {
|
|
454
|
-
tmp = $super.
|
|
454
|
+
tmp = $super.xbe.call(this, newRid);
|
|
455
455
|
}
|
|
456
456
|
return tmp;
|
|
457
457
|
}
|
|
@@ -459,16 +459,16 @@
|
|
|
459
459
|
roomId = roomId === VOID ? null : roomId;
|
|
460
460
|
var tmp;
|
|
461
461
|
if ($super === VOID) {
|
|
462
|
-
this.
|
|
462
|
+
this.ybe(reason, roomId);
|
|
463
463
|
tmp = Unit_instance;
|
|
464
464
|
} else {
|
|
465
|
-
tmp = $super.
|
|
465
|
+
tmp = $super.ybe.call(this, reason, roomId);
|
|
466
466
|
}
|
|
467
467
|
return tmp;
|
|
468
468
|
}
|
|
469
469
|
function playerLeft(playerId, roomId, permanently, $super) {
|
|
470
470
|
permanently = permanently === VOID ? true : permanently;
|
|
471
|
-
return $super === VOID ? this.
|
|
471
|
+
return $super === VOID ? this.ube(playerId, roomId, permanently) : $super.ube.call(this, playerId, roomId, permanently);
|
|
472
472
|
}
|
|
473
473
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
474
474
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
initMetadataForClass(ToClientEventsObserverImpl, 'ToClientEventsObserverImpl', VOID, VOID, [ToClientEventsObserver], [1, 0]);
|
|
497
497
|
function getToClientContinueAction$default(sendToPlayer, table, previousConnectionState, $super) {
|
|
498
498
|
previousConnectionState = previousConnectionState === VOID ? null : previousConnectionState;
|
|
499
|
-
return $super === VOID ? this.
|
|
499
|
+
return $super === VOID ? this.xbh(sendToPlayer, table, previousConnectionState) : $super.xbh.call(this, sendToPlayer, table, previousConnectionState);
|
|
500
500
|
}
|
|
501
501
|
initMetadataForInterface(PlayerConnectionInteractor, 'PlayerConnectionInteractor');
|
|
502
502
|
initMetadataForClass(PlayerConnectionInteractorImpl, 'PlayerConnectionInteractorImpl', VOID, VOID, [PlayerConnectionInteractor]);
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
leaguesConfig = leaguesConfig === VOID ? Companion_instance_6.defaultConfig() : leaguesConfig;
|
|
549
549
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
550
550
|
botConfig = botConfig === VOID ? new EngineBotConfig(VOID, VOID, VOID, false) : botConfig;
|
|
551
|
-
return $super === VOID ? this.
|
|
551
|
+
return $super === VOID ? this.gbl(reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig, botConfig) : $super.gbl.call(this, reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig, botConfig);
|
|
552
552
|
}
|
|
553
553
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
554
554
|
initMetadataForClass(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -561,17 +561,17 @@
|
|
|
561
561
|
initMetadataForClass(GameMetadata, 'GameMetadata');
|
|
562
562
|
//endregion
|
|
563
563
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
564
|
-
this.
|
|
564
|
+
this.yav_1 = $subscriber;
|
|
565
565
|
CoroutineImpl.call(this, resultContinuation);
|
|
566
566
|
}
|
|
567
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
568
|
-
var tmp = this.
|
|
567
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).aaw = function (it, $completion) {
|
|
568
|
+
var tmp = this.baw(it, $completion);
|
|
569
569
|
tmp.k9_1 = Unit_instance;
|
|
570
570
|
tmp.l9_1 = null;
|
|
571
571
|
return tmp.q9();
|
|
572
572
|
};
|
|
573
573
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).ca = function (p1, $completion) {
|
|
574
|
-
return this.
|
|
574
|
+
return this.aaw(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
575
575
|
};
|
|
576
576
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).q9 = function () {
|
|
577
577
|
var suspendResult = this.k9_1;
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
var tmp = this.i9_1;
|
|
581
581
|
if (tmp === 0) {
|
|
582
582
|
this.j9_1 = 1;
|
|
583
|
-
this.
|
|
583
|
+
this.yav_1(this.zav_1);
|
|
584
584
|
return Unit_instance;
|
|
585
585
|
} else if (tmp === 1) {
|
|
586
586
|
throw this.l9_1;
|
|
@@ -591,31 +591,31 @@
|
|
|
591
591
|
}
|
|
592
592
|
while (true);
|
|
593
593
|
};
|
|
594
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
595
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
596
|
-
i.
|
|
594
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).baw = function (it, completion) {
|
|
595
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.yav_1, completion);
|
|
596
|
+
i.zav_1 = it;
|
|
597
597
|
return i;
|
|
598
598
|
};
|
|
599
599
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
600
600
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
601
601
|
var l = function (it, $completion) {
|
|
602
|
-
return i.
|
|
602
|
+
return i.aaw(it, $completion);
|
|
603
603
|
};
|
|
604
604
|
l.$arity = 1;
|
|
605
605
|
return l;
|
|
606
606
|
}
|
|
607
607
|
function GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation) {
|
|
608
|
-
this.
|
|
608
|
+
this.kaw_1 = $subscriber;
|
|
609
609
|
CoroutineImpl.call(this, resultContinuation);
|
|
610
610
|
}
|
|
611
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
612
|
-
var tmp = this.
|
|
611
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).maw = function (it, $completion) {
|
|
612
|
+
var tmp = this.naw(it, $completion);
|
|
613
613
|
tmp.k9_1 = Unit_instance;
|
|
614
614
|
tmp.l9_1 = null;
|
|
615
615
|
return tmp.q9();
|
|
616
616
|
};
|
|
617
617
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).ca = function (p1, $completion) {
|
|
618
|
-
return this.
|
|
618
|
+
return this.maw((!(p1 == null) ? isInterface(p1, ServerStateUpdate) : false) ? p1 : THROW_CCE(), $completion);
|
|
619
619
|
};
|
|
620
620
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).q9 = function () {
|
|
621
621
|
var suspendResult = this.k9_1;
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
var tmp = this.i9_1;
|
|
625
625
|
if (tmp === 0) {
|
|
626
626
|
this.j9_1 = 1;
|
|
627
|
-
this.
|
|
627
|
+
this.kaw_1(this.law_1);
|
|
628
628
|
return Unit_instance;
|
|
629
629
|
} else if (tmp === 1) {
|
|
630
630
|
throw this.l9_1;
|
|
@@ -635,22 +635,22 @@
|
|
|
635
635
|
}
|
|
636
636
|
while (true);
|
|
637
637
|
};
|
|
638
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
639
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.
|
|
640
|
-
i.
|
|
638
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).naw = function (it, completion) {
|
|
639
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.kaw_1, completion);
|
|
640
|
+
i.law_1 = it;
|
|
641
641
|
return i;
|
|
642
642
|
};
|
|
643
643
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_0($subscriber, resultContinuation) {
|
|
644
644
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation);
|
|
645
645
|
var l = function (it, $completion) {
|
|
646
|
-
return i.
|
|
646
|
+
return i.maw(it, $completion);
|
|
647
647
|
};
|
|
648
648
|
l.$arity = 1;
|
|
649
649
|
return l;
|
|
650
650
|
}
|
|
651
651
|
function GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) {
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
652
|
+
this.waw_1 = $$this$unsafeFlow;
|
|
653
|
+
this.xaw_1 = this$0;
|
|
654
654
|
CoroutineImpl.call(this, resultContinuation);
|
|
655
655
|
}
|
|
656
656
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda).x2k = function (value, $completion) {
|
|
@@ -670,10 +670,10 @@
|
|
|
670
670
|
switch (tmp) {
|
|
671
671
|
case 0:
|
|
672
672
|
this.j9_1 = 2;
|
|
673
|
-
var tmp0 = this.
|
|
674
|
-
var value = this.
|
|
673
|
+
var tmp0 = this.waw_1;
|
|
674
|
+
var value = this.yaw_1;
|
|
675
675
|
this.i9_1 = 1;
|
|
676
|
-
suspendResult = tmp0.o2b(mapToDto_1(value, _get_encoderDecoderProvider__qqgrji(this.
|
|
676
|
+
suspendResult = tmp0.o2b(mapToDto_1(value, _get_encoderDecoderProvider__qqgrji(this.xaw_1)), this);
|
|
677
677
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
678
678
|
return suspendResult;
|
|
679
679
|
}
|
|
@@ -696,8 +696,8 @@
|
|
|
696
696
|
while (true);
|
|
697
697
|
};
|
|
698
698
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda).y2k = function (value, completion) {
|
|
699
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda(this.
|
|
700
|
-
i.
|
|
699
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda(this.waw_1, this.xaw_1, completion);
|
|
700
|
+
i.yaw_1 = value;
|
|
701
701
|
return i;
|
|
702
702
|
};
|
|
703
703
|
function GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($$this$unsafeFlow, this$0, resultContinuation) {
|
|
@@ -710,8 +710,8 @@
|
|
|
710
710
|
}
|
|
711
711
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
712
712
|
CoroutineImpl.call(this, resultContinuation);
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
713
|
+
this.hax_1 = _this__u8e3s4;
|
|
714
|
+
this.iax_1 = collector;
|
|
715
715
|
}
|
|
716
716
|
protoOf($collectCOROUTINE$).q9 = function () {
|
|
717
717
|
var suspendResult = this.k9_1;
|
|
@@ -721,10 +721,10 @@
|
|
|
721
721
|
switch (tmp) {
|
|
722
722
|
case 0:
|
|
723
723
|
this.j9_1 = 2;
|
|
724
|
-
var $this$unsafeFlow = this.
|
|
724
|
+
var $this$unsafeFlow = this.iax_1;
|
|
725
725
|
this.i9_1 = 1;
|
|
726
|
-
var tmp_0 = GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($this$unsafeFlow, this.
|
|
727
|
-
suspendResult = this.
|
|
726
|
+
var tmp_0 = GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($this$unsafeFlow, this.hax_1.kax_1, null);
|
|
727
|
+
suspendResult = this.hax_1.jax_1.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_0), this);
|
|
728
728
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
729
729
|
return suspendResult;
|
|
730
730
|
}
|
|
@@ -747,8 +747,8 @@
|
|
|
747
747
|
while (true);
|
|
748
748
|
};
|
|
749
749
|
function GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1($this, this$0) {
|
|
750
|
-
this.
|
|
751
|
-
this.
|
|
750
|
+
this.jax_1 = $this;
|
|
751
|
+
this.kax_1 = this$0;
|
|
752
752
|
}
|
|
753
753
|
protoOf(GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1).p2b = function (collector, $completion) {
|
|
754
754
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -760,17 +760,17 @@
|
|
|
760
760
|
return this.p2b(collector, $completion);
|
|
761
761
|
};
|
|
762
762
|
function GameServer$subscribeServerStateUpdateJson$slambda$slambda($subscriber, resultContinuation) {
|
|
763
|
-
this.
|
|
763
|
+
this.uax_1 = $subscriber;
|
|
764
764
|
CoroutineImpl.call(this, resultContinuation);
|
|
765
765
|
}
|
|
766
|
-
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).
|
|
767
|
-
var tmp = this.
|
|
766
|
+
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).wax = function (it, $completion) {
|
|
767
|
+
var tmp = this.xax(it, $completion);
|
|
768
768
|
tmp.k9_1 = Unit_instance;
|
|
769
769
|
tmp.l9_1 = null;
|
|
770
770
|
return tmp.q9();
|
|
771
771
|
};
|
|
772
772
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).ca = function (p1, $completion) {
|
|
773
|
-
return this.
|
|
773
|
+
return this.wax((!(p1 == null) ? isInterface(p1, ServerStateUpdateDto) : false) ? p1 : THROW_CCE(), $completion);
|
|
774
774
|
};
|
|
775
775
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).q9 = function () {
|
|
776
776
|
var suspendResult = this.k9_1;
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
var tmp = this.i9_1;
|
|
780
780
|
if (tmp === 0) {
|
|
781
781
|
this.j9_1 = 1;
|
|
782
|
-
this.
|
|
782
|
+
this.uax_1(this.vax_1);
|
|
783
783
|
return Unit_instance;
|
|
784
784
|
} else if (tmp === 1) {
|
|
785
785
|
throw this.l9_1;
|
|
@@ -790,22 +790,22 @@
|
|
|
790
790
|
}
|
|
791
791
|
while (true);
|
|
792
792
|
};
|
|
793
|
-
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).
|
|
794
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda(this.
|
|
795
|
-
i.
|
|
793
|
+
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).xax = function (it, completion) {
|
|
794
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda(this.uax_1, completion);
|
|
795
|
+
i.vax_1 = it;
|
|
796
796
|
return i;
|
|
797
797
|
};
|
|
798
798
|
function GameServer$subscribeServerStateUpdateJson$slambda$slambda_0($subscriber, resultContinuation) {
|
|
799
799
|
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda($subscriber, resultContinuation);
|
|
800
800
|
var l = function (it, $completion) {
|
|
801
|
-
return i.
|
|
801
|
+
return i.wax(it, $completion);
|
|
802
802
|
};
|
|
803
803
|
l.$arity = 1;
|
|
804
804
|
return l;
|
|
805
805
|
}
|
|
806
806
|
function GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda($$this$unsafeFlow, $table, resultContinuation) {
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
807
|
+
this.gay_1 = $$this$unsafeFlow;
|
|
808
|
+
this.hay_1 = $table;
|
|
809
809
|
CoroutineImpl.call(this, resultContinuation);
|
|
810
810
|
}
|
|
811
811
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda).x2k = function (value, $completion) {
|
|
@@ -825,10 +825,10 @@
|
|
|
825
825
|
switch (tmp) {
|
|
826
826
|
case 0:
|
|
827
827
|
this.j9_1 = 2;
|
|
828
|
-
var tmp0 = this.
|
|
829
|
-
var value = this.
|
|
828
|
+
var tmp0 = this.gay_1;
|
|
829
|
+
var value = this.iay_1;
|
|
830
830
|
this.i9_1 = 1;
|
|
831
|
-
suspendResult = tmp0.o2b(new ActionsStateUpdate(this.
|
|
831
|
+
suspendResult = tmp0.o2b(new ActionsStateUpdate(this.hay_1.id, copyToArray(value)), this);
|
|
832
832
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
833
833
|
return suspendResult;
|
|
834
834
|
}
|
|
@@ -851,8 +851,8 @@
|
|
|
851
851
|
while (true);
|
|
852
852
|
};
|
|
853
853
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda).y2k = function (value, completion) {
|
|
854
|
-
var i = new GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda(this.
|
|
855
|
-
i.
|
|
854
|
+
var i = new GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda(this.gay_1, this.hay_1, completion);
|
|
855
|
+
i.iay_1 = value;
|
|
856
856
|
return i;
|
|
857
857
|
};
|
|
858
858
|
function GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, $table, resultContinuation) {
|
|
@@ -865,8 +865,8 @@
|
|
|
865
865
|
}
|
|
866
866
|
function $collectCOROUTINE$_0(_this__u8e3s4, collector, resultContinuation) {
|
|
867
867
|
CoroutineImpl.call(this, resultContinuation);
|
|
868
|
-
this.
|
|
869
|
-
this.
|
|
868
|
+
this.ray_1 = _this__u8e3s4;
|
|
869
|
+
this.say_1 = collector;
|
|
870
870
|
}
|
|
871
871
|
protoOf($collectCOROUTINE$_0).q9 = function () {
|
|
872
872
|
var suspendResult = this.k9_1;
|
|
@@ -876,10 +876,10 @@
|
|
|
876
876
|
switch (tmp) {
|
|
877
877
|
case 0:
|
|
878
878
|
this.j9_1 = 2;
|
|
879
|
-
var $this$unsafeFlow = this.
|
|
879
|
+
var $this$unsafeFlow = this.say_1;
|
|
880
880
|
this.i9_1 = 1;
|
|
881
|
-
var tmp_0 = GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($this$unsafeFlow, this.
|
|
882
|
-
suspendResult = this.
|
|
881
|
+
var tmp_0 = GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($this$unsafeFlow, this.ray_1.uay_1, null);
|
|
882
|
+
suspendResult = this.ray_1.tay_1.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_0), this);
|
|
883
883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
884
884
|
return suspendResult;
|
|
885
885
|
}
|
|
@@ -902,8 +902,8 @@
|
|
|
902
902
|
while (true);
|
|
903
903
|
};
|
|
904
904
|
function GameServer$observeTableStateUpdates$$inlined$flatMapLatest$2$2$1($this, $table) {
|
|
905
|
-
this.
|
|
906
|
-
this.
|
|
905
|
+
this.tay_1 = $this;
|
|
906
|
+
this.uay_1 = $table;
|
|
907
907
|
}
|
|
908
908
|
protoOf(GameServer$observeTableStateUpdates$$inlined$flatMapLatest$2$2$1).p2b = function (collector, $completion) {
|
|
909
909
|
var tmp = new $collectCOROUTINE$_0(this, collector, $completion);
|
|
@@ -915,18 +915,18 @@
|
|
|
915
915
|
return this.p2b(collector, $completion);
|
|
916
916
|
};
|
|
917
917
|
function GameServer$observeTableStateUpdates$slambda$slambda($table, this$0, resultContinuation) {
|
|
918
|
-
this.
|
|
919
|
-
this.
|
|
918
|
+
this.daz_1 = $table;
|
|
919
|
+
this.eaz_1 = this$0;
|
|
920
920
|
CoroutineImpl.call(this, resultContinuation);
|
|
921
921
|
}
|
|
922
|
-
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).
|
|
923
|
-
var tmp = this.
|
|
922
|
+
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).gaz = function ($this$flow, $completion) {
|
|
923
|
+
var tmp = this.haz($this$flow, $completion);
|
|
924
924
|
tmp.k9_1 = Unit_instance;
|
|
925
925
|
tmp.l9_1 = null;
|
|
926
926
|
return tmp.q9();
|
|
927
927
|
};
|
|
928
928
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).ca = function (p1, $completion) {
|
|
929
|
-
return this.
|
|
929
|
+
return this.gaz((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
930
930
|
};
|
|
931
931
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).q9 = function () {
|
|
932
932
|
var suspendResult = this.k9_1;
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
case 0:
|
|
938
938
|
this.j9_1 = 3;
|
|
939
939
|
this.i9_1 = 1;
|
|
940
|
-
suspendResult = this.
|
|
940
|
+
suspendResult = this.faz_1.o2b(new TableStateUpdate(this.daz_1.id, this.daz_1), this);
|
|
941
941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
942
942
|
return suspendResult;
|
|
943
943
|
}
|
|
@@ -945,8 +945,8 @@
|
|
|
945
945
|
continue $sm;
|
|
946
946
|
case 1:
|
|
947
947
|
this.i9_1 = 2;
|
|
948
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.
|
|
949
|
-
suspendResult = emitAll(this.
|
|
948
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.eaz_1).i9o(), fromInt(_get_serverReduxConfig__rprcrm(this.eaz_1).serverStateUpdateIntervalMillis));
|
|
949
|
+
suspendResult = emitAll(this.faz_1, new GameServer$observeTableStateUpdates$$inlined$flatMapLatest$2$2$1(this_0, this.daz_1), this);
|
|
950
950
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
951
951
|
return suspendResult;
|
|
952
952
|
}
|
|
@@ -968,22 +968,22 @@
|
|
|
968
968
|
}
|
|
969
969
|
while (true);
|
|
970
970
|
};
|
|
971
|
-
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).
|
|
972
|
-
var i = new GameServer$observeTableStateUpdates$slambda$slambda(this.
|
|
973
|
-
i.
|
|
971
|
+
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).haz = function ($this$flow, completion) {
|
|
972
|
+
var i = new GameServer$observeTableStateUpdates$slambda$slambda(this.daz_1, this.eaz_1, completion);
|
|
973
|
+
i.faz_1 = $this$flow;
|
|
974
974
|
return i;
|
|
975
975
|
};
|
|
976
976
|
function GameServer$observeTableStateUpdates$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
977
977
|
var i = new GameServer$observeTableStateUpdates$slambda$slambda($table, this$0, resultContinuation);
|
|
978
978
|
var l = function ($this$flow, $completion) {
|
|
979
|
-
return i.
|
|
979
|
+
return i.gaz($this$flow, $completion);
|
|
980
980
|
};
|
|
981
981
|
l.$arity = 1;
|
|
982
982
|
return l;
|
|
983
983
|
}
|
|
984
984
|
function GameServer$observeTableStateUpdates$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) {
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
985
|
+
this.qaz_1 = $$this$unsafeFlow;
|
|
986
|
+
this.raz_1 = this$0;
|
|
987
987
|
CoroutineImpl.call(this, resultContinuation);
|
|
988
988
|
}
|
|
989
989
|
protoOf(GameServer$observeTableStateUpdates$o$collect$slambda).x2k = function (value, $completion) {
|
|
@@ -1003,15 +1003,15 @@
|
|
|
1003
1003
|
switch (tmp) {
|
|
1004
1004
|
case 0:
|
|
1005
1005
|
this.j9_1 = 5;
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1006
|
+
this.waz_1 = this.qaz_1;
|
|
1007
|
+
this.vaz_1 = this.saz_1;
|
|
1008
1008
|
this.i9_1 = 1;
|
|
1009
1009
|
continue $sm;
|
|
1010
1010
|
case 1:
|
|
1011
|
-
this.
|
|
1012
|
-
var it = this.
|
|
1011
|
+
this.taz_1 = this.waz_1;
|
|
1012
|
+
var it = this.vaz_1;
|
|
1013
1013
|
var tmp_0;
|
|
1014
|
-
if (get_isCreated(this.
|
|
1014
|
+
if (get_isCreated(this.raz_1.k6z())) {
|
|
1015
1015
|
tmp_0 = it;
|
|
1016
1016
|
} else {
|
|
1017
1017
|
tmp_0 = null;
|
|
@@ -1023,15 +1023,15 @@
|
|
|
1023
1023
|
var tmp_1 = this;
|
|
1024
1024
|
continue $sm;
|
|
1025
1025
|
} else {
|
|
1026
|
-
this.
|
|
1026
|
+
this.uaz_1 = tmp0_elvis_lhs;
|
|
1027
1027
|
this.i9_1 = 2;
|
|
1028
1028
|
continue $sm;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
1031
|
case 2:
|
|
1032
|
-
var transformed = this.
|
|
1032
|
+
var transformed = this.uaz_1;
|
|
1033
1033
|
this.i9_1 = 3;
|
|
1034
|
-
suspendResult = this.
|
|
1034
|
+
suspendResult = this.taz_1.o2b(transformed, this);
|
|
1035
1035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1036
1036
|
return suspendResult;
|
|
1037
1037
|
}
|
|
@@ -1062,8 +1062,8 @@
|
|
|
1062
1062
|
while (true);
|
|
1063
1063
|
};
|
|
1064
1064
|
protoOf(GameServer$observeTableStateUpdates$o$collect$slambda).y2k = function (value, completion) {
|
|
1065
|
-
var i = new GameServer$observeTableStateUpdates$o$collect$slambda(this.
|
|
1066
|
-
i.
|
|
1065
|
+
var i = new GameServer$observeTableStateUpdates$o$collect$slambda(this.qaz_1, this.raz_1, completion);
|
|
1066
|
+
i.saz_1 = value;
|
|
1067
1067
|
return i;
|
|
1068
1068
|
};
|
|
1069
1069
|
function GameServer$observeTableStateUpdates$o$collect$slambda_0($$this$unsafeFlow, this$0, resultContinuation) {
|
|
@@ -1076,8 +1076,8 @@
|
|
|
1076
1076
|
}
|
|
1077
1077
|
function $collectCOROUTINE$_1(_this__u8e3s4, collector, resultContinuation) {
|
|
1078
1078
|
CoroutineImpl.call(this, resultContinuation);
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1079
|
+
this.fb0_1 = _this__u8e3s4;
|
|
1080
|
+
this.gb0_1 = collector;
|
|
1081
1081
|
}
|
|
1082
1082
|
protoOf($collectCOROUTINE$_1).q9 = function () {
|
|
1083
1083
|
var suspendResult = this.k9_1;
|
|
@@ -1087,10 +1087,10 @@
|
|
|
1087
1087
|
switch (tmp) {
|
|
1088
1088
|
case 0:
|
|
1089
1089
|
this.j9_1 = 2;
|
|
1090
|
-
var $this$unsafeFlow = this.
|
|
1090
|
+
var $this$unsafeFlow = this.gb0_1;
|
|
1091
1091
|
this.i9_1 = 1;
|
|
1092
|
-
var tmp_0 = GameServer$observeTableStateUpdates$o$collect$slambda_0($this$unsafeFlow, this.
|
|
1093
|
-
suspendResult = this.
|
|
1092
|
+
var tmp_0 = GameServer$observeTableStateUpdates$o$collect$slambda_0($this$unsafeFlow, this.fb0_1.ib0_1, null);
|
|
1093
|
+
suspendResult = this.fb0_1.hb0_1.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_0), this);
|
|
1094
1094
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1095
1095
|
return suspendResult;
|
|
1096
1096
|
}
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
while (true);
|
|
1114
1114
|
};
|
|
1115
1115
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
1116
|
-
this.
|
|
1116
|
+
this.rb0_1 = $$this$unsafeFlow;
|
|
1117
1117
|
CoroutineImpl.call(this, resultContinuation);
|
|
1118
1118
|
}
|
|
1119
1119
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).x2k = function (value, $completion) {
|
|
@@ -1133,27 +1133,27 @@
|
|
|
1133
1133
|
switch (tmp) {
|
|
1134
1134
|
case 0:
|
|
1135
1135
|
this.j9_1 = 5;
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1136
|
+
this.wb0_1 = this.rb0_1;
|
|
1137
|
+
this.vb0_1 = this.sb0_1;
|
|
1138
1138
|
this.i9_1 = 1;
|
|
1139
1139
|
continue $sm;
|
|
1140
1140
|
case 1:
|
|
1141
|
-
this.
|
|
1142
|
-
var tmp0_elvis_lhs = this.
|
|
1141
|
+
this.tb0_1 = this.wb0_1;
|
|
1142
|
+
var tmp0_elvis_lhs = this.vb0_1.tableOrNull;
|
|
1143
1143
|
if (tmp0_elvis_lhs == null) {
|
|
1144
1144
|
this.i9_1 = 4;
|
|
1145
1145
|
var tmp_0 = this;
|
|
1146
1146
|
continue $sm;
|
|
1147
1147
|
} else {
|
|
1148
|
-
this.
|
|
1148
|
+
this.ub0_1 = tmp0_elvis_lhs;
|
|
1149
1149
|
this.i9_1 = 2;
|
|
1150
1150
|
continue $sm;
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
1153
|
case 2:
|
|
1154
|
-
var transformed = this.
|
|
1154
|
+
var transformed = this.ub0_1;
|
|
1155
1155
|
this.i9_1 = 3;
|
|
1156
|
-
suspendResult = this.
|
|
1156
|
+
suspendResult = this.tb0_1.o2b(transformed, this);
|
|
1157
1157
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1158
1158
|
return suspendResult;
|
|
1159
1159
|
}
|
|
@@ -1184,8 +1184,8 @@
|
|
|
1184
1184
|
while (true);
|
|
1185
1185
|
};
|
|
1186
1186
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).y2k = function (value, completion) {
|
|
1187
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
1188
|
-
i.
|
|
1187
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.rb0_1, completion);
|
|
1188
|
+
i.sb0_1 = value;
|
|
1189
1189
|
return i;
|
|
1190
1190
|
};
|
|
1191
1191
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1198,8 +1198,8 @@
|
|
|
1198
1198
|
}
|
|
1199
1199
|
function $collectCOROUTINE$_2(_this__u8e3s4, collector, resultContinuation) {
|
|
1200
1200
|
CoroutineImpl.call(this, resultContinuation);
|
|
1201
|
-
this.
|
|
1202
|
-
this.
|
|
1201
|
+
this.fb1_1 = _this__u8e3s4;
|
|
1202
|
+
this.gb1_1 = collector;
|
|
1203
1203
|
}
|
|
1204
1204
|
protoOf($collectCOROUTINE$_2).q9 = function () {
|
|
1205
1205
|
var suspendResult = this.k9_1;
|
|
@@ -1209,10 +1209,10 @@
|
|
|
1209
1209
|
switch (tmp) {
|
|
1210
1210
|
case 0:
|
|
1211
1211
|
this.j9_1 = 2;
|
|
1212
|
-
var $this$unsafeFlow = this.
|
|
1212
|
+
var $this$unsafeFlow = this.gb1_1;
|
|
1213
1213
|
this.i9_1 = 1;
|
|
1214
1214
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($this$unsafeFlow, null);
|
|
1215
|
-
suspendResult = this.
|
|
1215
|
+
suspendResult = this.fb1_1.hb1_1.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1216
1216
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1217
1217
|
return suspendResult;
|
|
1218
1218
|
}
|
|
@@ -1235,7 +1235,7 @@
|
|
|
1235
1235
|
while (true);
|
|
1236
1236
|
};
|
|
1237
1237
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) {
|
|
1238
|
-
this.
|
|
1238
|
+
this.qb1_1 = $$this$unsafeFlow;
|
|
1239
1239
|
CoroutineImpl.call(this, resultContinuation);
|
|
1240
1240
|
}
|
|
1241
1241
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_1).x2k = function (value, $completion) {
|
|
@@ -1255,8 +1255,8 @@
|
|
|
1255
1255
|
switch (tmp) {
|
|
1256
1256
|
case 0:
|
|
1257
1257
|
this.j9_1 = 2;
|
|
1258
|
-
var tmp0 = this.
|
|
1259
|
-
var value = this.
|
|
1258
|
+
var tmp0 = this.qb1_1;
|
|
1259
|
+
var value = this.rb1_1;
|
|
1260
1260
|
this.i9_1 = 1;
|
|
1261
1261
|
suspendResult = tmp0.o2b(to(value.gameInfo.roundNumberTotal, value), this);
|
|
1262
1262
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1281,8 +1281,8 @@
|
|
|
1281
1281
|
while (true);
|
|
1282
1282
|
};
|
|
1283
1283
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_1).y2k = function (value, completion) {
|
|
1284
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_1(this.
|
|
1285
|
-
i.
|
|
1284
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_1(this.qb1_1, completion);
|
|
1285
|
+
i.rb1_1 = value;
|
|
1286
1286
|
return i;
|
|
1287
1287
|
};
|
|
1288
1288
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_2($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1295,8 +1295,8 @@
|
|
|
1295
1295
|
}
|
|
1296
1296
|
function $collectCOROUTINE$_3(_this__u8e3s4, collector, resultContinuation) {
|
|
1297
1297
|
CoroutineImpl.call(this, resultContinuation);
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1298
|
+
this.ab2_1 = _this__u8e3s4;
|
|
1299
|
+
this.bb2_1 = collector;
|
|
1300
1300
|
}
|
|
1301
1301
|
protoOf($collectCOROUTINE$_3).q9 = function () {
|
|
1302
1302
|
var suspendResult = this.k9_1;
|
|
@@ -1306,10 +1306,10 @@
|
|
|
1306
1306
|
switch (tmp) {
|
|
1307
1307
|
case 0:
|
|
1308
1308
|
this.j9_1 = 2;
|
|
1309
|
-
var $this$unsafeFlow = this.
|
|
1309
|
+
var $this$unsafeFlow = this.bb2_1;
|
|
1310
1310
|
this.i9_1 = 1;
|
|
1311
1311
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_2($this$unsafeFlow, null);
|
|
1312
|
-
suspendResult = this.
|
|
1312
|
+
suspendResult = this.ab2_1.cb2_1.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1313
1313
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1314
1314
|
return suspendResult;
|
|
1315
1315
|
}
|
|
@@ -1332,7 +1332,7 @@
|
|
|
1332
1332
|
while (true);
|
|
1333
1333
|
};
|
|
1334
1334
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) {
|
|
1335
|
-
this.
|
|
1335
|
+
this.lb2_1 = $$this$unsafeFlow;
|
|
1336
1336
|
CoroutineImpl.call(this, resultContinuation);
|
|
1337
1337
|
}
|
|
1338
1338
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_3).x2k = function (value, $completion) {
|
|
@@ -1352,8 +1352,8 @@
|
|
|
1352
1352
|
switch (tmp) {
|
|
1353
1353
|
case 0:
|
|
1354
1354
|
this.j9_1 = 2;
|
|
1355
|
-
var tmp0 = this.
|
|
1356
|
-
var value = this.
|
|
1355
|
+
var tmp0 = this.lb2_1;
|
|
1356
|
+
var value = this.mb2_1;
|
|
1357
1357
|
this.i9_1 = 1;
|
|
1358
1358
|
suspendResult = tmp0.o2b(value.second, this);
|
|
1359
1359
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1378,8 +1378,8 @@
|
|
|
1378
1378
|
while (true);
|
|
1379
1379
|
};
|
|
1380
1380
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_3).y2k = function (value, completion) {
|
|
1381
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_3(this.
|
|
1382
|
-
i.
|
|
1381
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_3(this.lb2_1, completion);
|
|
1382
|
+
i.mb2_1 = value;
|
|
1383
1383
|
return i;
|
|
1384
1384
|
};
|
|
1385
1385
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_4($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1392,8 +1392,8 @@
|
|
|
1392
1392
|
}
|
|
1393
1393
|
function $collectCOROUTINE$_4(_this__u8e3s4, collector, resultContinuation) {
|
|
1394
1394
|
CoroutineImpl.call(this, resultContinuation);
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1395
|
+
this.vb2_1 = _this__u8e3s4;
|
|
1396
|
+
this.wb2_1 = collector;
|
|
1397
1397
|
}
|
|
1398
1398
|
protoOf($collectCOROUTINE$_4).q9 = function () {
|
|
1399
1399
|
var suspendResult = this.k9_1;
|
|
@@ -1403,10 +1403,10 @@
|
|
|
1403
1403
|
switch (tmp) {
|
|
1404
1404
|
case 0:
|
|
1405
1405
|
this.j9_1 = 2;
|
|
1406
|
-
var $this$unsafeFlow = this.
|
|
1406
|
+
var $this$unsafeFlow = this.wb2_1;
|
|
1407
1407
|
this.i9_1 = 1;
|
|
1408
1408
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_4($this$unsafeFlow, null);
|
|
1409
|
-
suspendResult = this.
|
|
1409
|
+
suspendResult = this.vb2_1.xb2_1.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1410
1410
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1411
1411
|
return suspendResult;
|
|
1412
1412
|
}
|
|
@@ -1429,17 +1429,17 @@
|
|
|
1429
1429
|
while (true);
|
|
1430
1430
|
};
|
|
1431
1431
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
1432
|
-
this.
|
|
1432
|
+
this.gb3_1 = $subscriber;
|
|
1433
1433
|
CoroutineImpl.call(this, resultContinuation);
|
|
1434
1434
|
}
|
|
1435
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1436
|
-
var tmp = this.
|
|
1435
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).ib3 = function (it, $completion) {
|
|
1436
|
+
var tmp = this.jb3(it, $completion);
|
|
1437
1437
|
tmp.k9_1 = Unit_instance;
|
|
1438
1438
|
tmp.l9_1 = null;
|
|
1439
1439
|
return tmp.q9();
|
|
1440
1440
|
};
|
|
1441
1441
|
protoOf(GameServer$subscribeWith$slambda$slambda).ca = function (p1, $completion) {
|
|
1442
|
-
return this.
|
|
1442
|
+
return this.ib3(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
1443
1443
|
};
|
|
1444
1444
|
protoOf(GameServer$subscribeWith$slambda$slambda).q9 = function () {
|
|
1445
1445
|
var suspendResult = this.k9_1;
|
|
@@ -1448,7 +1448,7 @@
|
|
|
1448
1448
|
var tmp = this.i9_1;
|
|
1449
1449
|
if (tmp === 0) {
|
|
1450
1450
|
this.j9_1 = 1;
|
|
1451
|
-
this.
|
|
1451
|
+
this.gb3_1(this.hb3_1);
|
|
1452
1452
|
return Unit_instance;
|
|
1453
1453
|
} else if (tmp === 1) {
|
|
1454
1454
|
throw this.l9_1;
|
|
@@ -1459,98 +1459,98 @@
|
|
|
1459
1459
|
}
|
|
1460
1460
|
while (true);
|
|
1461
1461
|
};
|
|
1462
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1463
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
1464
|
-
i.
|
|
1462
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).jb3 = function (it, completion) {
|
|
1463
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.gb3_1, completion);
|
|
1464
|
+
i.hb3_1 = it;
|
|
1465
1465
|
return i;
|
|
1466
1466
|
};
|
|
1467
1467
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
1468
1468
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
1469
1469
|
var l = function (it, $completion) {
|
|
1470
|
-
return i.
|
|
1470
|
+
return i.ib3(it, $completion);
|
|
1471
1471
|
};
|
|
1472
1472
|
l.$arity = 1;
|
|
1473
1473
|
return l;
|
|
1474
1474
|
}
|
|
1475
1475
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
1476
|
-
var tmp0 = $this.
|
|
1476
|
+
var tmp0 = $this.ob3_1;
|
|
1477
1477
|
var tmp = KProperty1;
|
|
1478
1478
|
// Inline function 'kotlin.getValue' call
|
|
1479
1479
|
getPropertyCallableRef('toClientEventsObserver', 1, tmp, GameServer$_get_toClientEventsObserver_$ref_utir8s_0(), null);
|
|
1480
1480
|
return tmp0.o1();
|
|
1481
1481
|
}
|
|
1482
1482
|
function _get_fromClientEventsObserver__a7vzd3($this) {
|
|
1483
|
-
var tmp0 = $this.
|
|
1483
|
+
var tmp0 = $this.pb3_1;
|
|
1484
1484
|
var tmp = KProperty1;
|
|
1485
1485
|
// Inline function 'kotlin.getValue' call
|
|
1486
1486
|
getPropertyCallableRef('fromClientEventsObserver', 1, tmp, GameServer$_get_fromClientEventsObserver_$ref_nf1g79_0(), null);
|
|
1487
1487
|
return tmp0.o1();
|
|
1488
1488
|
}
|
|
1489
1489
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
1490
|
-
var tmp0 = $this.
|
|
1490
|
+
var tmp0 = $this.qb3_1;
|
|
1491
1491
|
var tmp = KProperty1;
|
|
1492
1492
|
// Inline function 'kotlin.getValue' call
|
|
1493
1493
|
getPropertyCallableRef('playerConnectionInteractor', 1, tmp, GameServer$_get_playerConnectionInteractor_$ref_of8tan_0(), null);
|
|
1494
1494
|
return tmp0.o1();
|
|
1495
1495
|
}
|
|
1496
1496
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
1497
|
-
var tmp0 = $this.
|
|
1497
|
+
var tmp0 = $this.rb3_1;
|
|
1498
1498
|
var tmp = KProperty1;
|
|
1499
1499
|
// Inline function 'kotlin.getValue' call
|
|
1500
1500
|
getPropertyCallableRef('teamsLogicProvider', 1, tmp, GameServer$_get_teamsLogicProvider_$ref_b7y54g_0(), null);
|
|
1501
1501
|
return tmp0.o1();
|
|
1502
1502
|
}
|
|
1503
1503
|
function _get_userRatingInteractor__a09mdy($this) {
|
|
1504
|
-
var tmp0 = $this.
|
|
1504
|
+
var tmp0 = $this.sb3_1;
|
|
1505
1505
|
var tmp = KProperty1;
|
|
1506
1506
|
// Inline function 'kotlin.getValue' call
|
|
1507
1507
|
getPropertyCallableRef('userRatingInteractor', 1, tmp, GameServer$_get_userRatingInteractor_$ref_8uo6aw_0(), null);
|
|
1508
1508
|
return tmp0.o1();
|
|
1509
1509
|
}
|
|
1510
1510
|
function _get_random__h29cgo($this) {
|
|
1511
|
-
var tmp0 = $this.
|
|
1511
|
+
var tmp0 = $this.tb3_1;
|
|
1512
1512
|
var tmp = KProperty1;
|
|
1513
1513
|
// Inline function 'kotlin.getValue' call
|
|
1514
1514
|
getPropertyCallableRef('random', 1, tmp, GameServer$_get_random_$ref_fottnq(), null);
|
|
1515
1515
|
return tmp0.o1();
|
|
1516
1516
|
}
|
|
1517
1517
|
function _get_idsProvider__fnfajc($this) {
|
|
1518
|
-
var tmp0 = $this.
|
|
1518
|
+
var tmp0 = $this.ub3_1;
|
|
1519
1519
|
var tmp = KProperty1;
|
|
1520
1520
|
// Inline function 'kotlin.getValue' call
|
|
1521
1521
|
getPropertyCallableRef('idsProvider', 1, tmp, GameServer$_get_idsProvider_$ref_89s908_0(), null);
|
|
1522
1522
|
return tmp0.o1();
|
|
1523
1523
|
}
|
|
1524
1524
|
function _get_serverReduxConfig__rprcrm($this) {
|
|
1525
|
-
var tmp0 = $this.
|
|
1525
|
+
var tmp0 = $this.vb3_1;
|
|
1526
1526
|
var tmp = KProperty1;
|
|
1527
1527
|
// Inline function 'kotlin.getValue' call
|
|
1528
1528
|
getPropertyCallableRef('serverReduxConfig', 1, tmp, GameServer$_get_serverReduxConfig_$ref_7h6jq6_0(), null);
|
|
1529
1529
|
return tmp0.o1();
|
|
1530
1530
|
}
|
|
1531
1531
|
function _get_encoderDecoderProvider__qqgrji($this) {
|
|
1532
|
-
var tmp0 = $this.
|
|
1532
|
+
var tmp0 = $this.wb3_1;
|
|
1533
1533
|
var tmp = KProperty1;
|
|
1534
1534
|
// Inline function 'kotlin.getValue' call
|
|
1535
1535
|
getPropertyCallableRef('encoderDecoderProvider', 1, tmp, GameServer$_get_encoderDecoderProvider_$ref_6vxmq8_0(), null);
|
|
1536
1536
|
return tmp0.o1();
|
|
1537
1537
|
}
|
|
1538
1538
|
function _get_engineLogicConfig__l11qpf($this) {
|
|
1539
|
-
var tmp0 = $this.
|
|
1539
|
+
var tmp0 = $this.xb3_1;
|
|
1540
1540
|
var tmp = KProperty1;
|
|
1541
1541
|
// Inline function 'kotlin.getValue' call
|
|
1542
1542
|
getPropertyCallableRef('engineLogicConfig', 1, tmp, GameServer$_get_engineLogicConfig_$ref_nlkv2l_0(), null);
|
|
1543
1543
|
return tmp0.o1();
|
|
1544
1544
|
}
|
|
1545
1545
|
function _get_leaguesConfig__hvzxf9($this) {
|
|
1546
|
-
var tmp0 = $this.
|
|
1546
|
+
var tmp0 = $this.yb3_1;
|
|
1547
1547
|
var tmp = KProperty1;
|
|
1548
1548
|
// Inline function 'kotlin.getValue' call
|
|
1549
1549
|
getPropertyCallableRef('leaguesConfig', 1, tmp, GameServer$_get_leaguesConfig_$ref_fi951n_0(), null);
|
|
1550
1550
|
return tmp0.o1();
|
|
1551
1551
|
}
|
|
1552
1552
|
function _get_botChatInteractor__17f3on($this) {
|
|
1553
|
-
var tmp0 = $this.
|
|
1553
|
+
var tmp0 = $this.zb3_1;
|
|
1554
1554
|
var tmp = KProperty1;
|
|
1555
1555
|
// Inline function 'kotlin.getValue' call
|
|
1556
1556
|
getPropertyCallableRef('botChatInteractor', 1, tmp, GameServer$_get_botChatInteractor_$ref_zf10ih_0(), null);
|
|
@@ -1683,20 +1683,20 @@
|
|
|
1683
1683
|
return _get_teamsLogicProvider__u10pm6($this).d9o(updatedTeams);
|
|
1684
1684
|
}
|
|
1685
1685
|
function Companion() {
|
|
1686
|
-
this.
|
|
1686
|
+
this.bb4_1 = 'GameEngine_API';
|
|
1687
1687
|
}
|
|
1688
1688
|
var Companion_instance_10;
|
|
1689
1689
|
function Companion_getInstance_0() {
|
|
1690
1690
|
return Companion_instance_10;
|
|
1691
1691
|
}
|
|
1692
1692
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1693
|
-
this.
|
|
1693
|
+
this.cb4_1 = function_0;
|
|
1694
1694
|
}
|
|
1695
1695
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o2b = function (value, $completion) {
|
|
1696
|
-
return this.
|
|
1696
|
+
return this.cb4_1(value, $completion);
|
|
1697
1697
|
};
|
|
1698
1698
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s3 = function () {
|
|
1699
|
-
return this.
|
|
1699
|
+
return this.cb4_1;
|
|
1700
1700
|
};
|
|
1701
1701
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1702
1702
|
var tmp;
|
|
@@ -1717,13 +1717,13 @@
|
|
|
1717
1717
|
return hashCode(this.s3());
|
|
1718
1718
|
};
|
|
1719
1719
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
1720
|
-
this.
|
|
1720
|
+
this.db4_1 = function_0;
|
|
1721
1721
|
}
|
|
1722
1722
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o2b = function (value, $completion) {
|
|
1723
|
-
return this.
|
|
1723
|
+
return this.db4_1(value, $completion);
|
|
1724
1724
|
};
|
|
1725
1725
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).s3 = function () {
|
|
1726
|
-
return this.
|
|
1726
|
+
return this.db4_1;
|
|
1727
1727
|
};
|
|
1728
1728
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
1729
1729
|
var tmp;
|
|
@@ -1744,13 +1744,13 @@
|
|
|
1744
1744
|
return hashCode(this.s3());
|
|
1745
1745
|
};
|
|
1746
1746
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
1747
|
-
this.
|
|
1747
|
+
this.eb4_1 = function_0;
|
|
1748
1748
|
}
|
|
1749
1749
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).o2b = function (value, $completion) {
|
|
1750
|
-
return this.
|
|
1750
|
+
return this.eb4_1(value, $completion);
|
|
1751
1751
|
};
|
|
1752
1752
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).s3 = function () {
|
|
1753
|
-
return this.
|
|
1753
|
+
return this.eb4_1;
|
|
1754
1754
|
};
|
|
1755
1755
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
1756
1756
|
var tmp;
|
|
@@ -1771,13 +1771,13 @@
|
|
|
1771
1771
|
return hashCode(this.s3());
|
|
1772
1772
|
};
|
|
1773
1773
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
1774
|
-
this.
|
|
1774
|
+
this.fb4_1 = function_0;
|
|
1775
1775
|
}
|
|
1776
1776
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).o2b = function (value, $completion) {
|
|
1777
|
-
return this.
|
|
1777
|
+
return this.fb4_1(value, $completion);
|
|
1778
1778
|
};
|
|
1779
1779
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).s3 = function () {
|
|
1780
|
-
return this.
|
|
1780
|
+
return this.fb4_1;
|
|
1781
1781
|
};
|
|
1782
1782
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
1783
1783
|
var tmp;
|
|
@@ -1798,13 +1798,13 @@
|
|
|
1798
1798
|
return hashCode(this.s3());
|
|
1799
1799
|
};
|
|
1800
1800
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
1801
|
-
this.
|
|
1801
|
+
this.gb4_1 = function_0;
|
|
1802
1802
|
}
|
|
1803
1803
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).o2b = function (value, $completion) {
|
|
1804
|
-
return this.
|
|
1804
|
+
return this.gb4_1(value, $completion);
|
|
1805
1805
|
};
|
|
1806
1806
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).s3 = function () {
|
|
1807
|
-
return this.
|
|
1807
|
+
return this.gb4_1;
|
|
1808
1808
|
};
|
|
1809
1809
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
1810
1810
|
var tmp;
|
|
@@ -1825,13 +1825,13 @@
|
|
|
1825
1825
|
return hashCode(this.s3());
|
|
1826
1826
|
};
|
|
1827
1827
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) {
|
|
1828
|
-
this.
|
|
1828
|
+
this.hb4_1 = function_0;
|
|
1829
1829
|
}
|
|
1830
1830
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).o2b = function (value, $completion) {
|
|
1831
|
-
return this.
|
|
1831
|
+
return this.hb4_1(value, $completion);
|
|
1832
1832
|
};
|
|
1833
1833
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).s3 = function () {
|
|
1834
|
-
return this.
|
|
1834
|
+
return this.hb4_1;
|
|
1835
1835
|
};
|
|
1836
1836
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).equals = function (other) {
|
|
1837
1837
|
var tmp;
|
|
@@ -1972,8 +1972,8 @@
|
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
1974
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
1975
|
-
this.
|
|
1976
|
-
this.
|
|
1975
|
+
this.qb4_1 = this$0;
|
|
1976
|
+
this.rb4_1 = $subscriber;
|
|
1977
1977
|
CoroutineImpl.call(this, resultContinuation);
|
|
1978
1978
|
}
|
|
1979
1979
|
protoOf(GameServer$subscribeToClientAction$slambda).c2g = function ($this$launchDefault, $completion) {
|
|
@@ -1994,8 +1994,8 @@
|
|
|
1994
1994
|
case 0:
|
|
1995
1995
|
this.j9_1 = 2;
|
|
1996
1996
|
this.i9_1 = 1;
|
|
1997
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
1998
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
1997
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.qb4_1).tb4();
|
|
1998
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.rb4_1, null);
|
|
1999
1999
|
suspendResult = tmp_0.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
2000
2000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2001
2001
|
return suspendResult;
|
|
@@ -2019,8 +2019,8 @@
|
|
|
2019
2019
|
while (true);
|
|
2020
2020
|
};
|
|
2021
2021
|
protoOf(GameServer$subscribeToClientAction$slambda).d2g = function ($this$launchDefault, completion) {
|
|
2022
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
2023
|
-
i.
|
|
2022
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.qb4_1, this.rb4_1, completion);
|
|
2023
|
+
i.sb4_1 = $this$launchDefault;
|
|
2024
2024
|
return i;
|
|
2025
2025
|
};
|
|
2026
2026
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2032,8 +2032,8 @@
|
|
|
2032
2032
|
return l;
|
|
2033
2033
|
}
|
|
2034
2034
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
2035
|
-
this.
|
|
2036
|
-
this.
|
|
2035
|
+
this.cb5_1 = this$0;
|
|
2036
|
+
this.db5_1 = $subscriber;
|
|
2037
2037
|
CoroutineImpl.call(this, resultContinuation);
|
|
2038
2038
|
}
|
|
2039
2039
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).c2g = function ($this$launchDefault, $completion) {
|
|
@@ -2054,8 +2054,8 @@
|
|
|
2054
2054
|
case 0:
|
|
2055
2055
|
this.j9_1 = 2;
|
|
2056
2056
|
this.i9_1 = 1;
|
|
2057
|
-
var tmp_0 = observeTableStateUpdates(this.
|
|
2058
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
2057
|
+
var tmp_0 = observeTableStateUpdates(this.cb5_1);
|
|
2058
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.db5_1, null);
|
|
2059
2059
|
suspendResult = tmp_0.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
2060
2060
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2061
2061
|
return suspendResult;
|
|
@@ -2079,8 +2079,8 @@
|
|
|
2079
2079
|
while (true);
|
|
2080
2080
|
};
|
|
2081
2081
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).d2g = function ($this$launchDefault, completion) {
|
|
2082
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
2083
|
-
i.
|
|
2082
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.cb5_1, this.db5_1, completion);
|
|
2083
|
+
i.eb5_1 = $this$launchDefault;
|
|
2084
2084
|
return i;
|
|
2085
2085
|
};
|
|
2086
2086
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2092,8 +2092,8 @@
|
|
|
2092
2092
|
return l;
|
|
2093
2093
|
}
|
|
2094
2094
|
function GameServer$subscribeServerStateUpdateJson$slambda(this$0, $subscriber, resultContinuation) {
|
|
2095
|
-
this.
|
|
2096
|
-
this.
|
|
2095
|
+
this.nb5_1 = this$0;
|
|
2096
|
+
this.ob5_1 = $subscriber;
|
|
2097
2097
|
CoroutineImpl.call(this, resultContinuation);
|
|
2098
2098
|
}
|
|
2099
2099
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).c2g = function ($this$launchDefault, $completion) {
|
|
@@ -2114,9 +2114,9 @@
|
|
|
2114
2114
|
case 0:
|
|
2115
2115
|
this.j9_1 = 2;
|
|
2116
2116
|
this.i9_1 = 1;
|
|
2117
|
-
var this_0 = observeTableStateUpdates(this.
|
|
2118
|
-
var tmp_0 = new GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1(this_0, this.
|
|
2119
|
-
var tmp_1 = GameServer$subscribeServerStateUpdateJson$slambda$slambda_0(this.
|
|
2117
|
+
var this_0 = observeTableStateUpdates(this.nb5_1);
|
|
2118
|
+
var tmp_0 = new GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1(this_0, this.nb5_1);
|
|
2119
|
+
var tmp_1 = GameServer$subscribeServerStateUpdateJson$slambda$slambda_0(this.ob5_1, null);
|
|
2120
2120
|
suspendResult = tmp_0.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
2121
2121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2122
2122
|
return suspendResult;
|
|
@@ -2140,8 +2140,8 @@
|
|
|
2140
2140
|
while (true);
|
|
2141
2141
|
};
|
|
2142
2142
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).d2g = function ($this$launchDefault, completion) {
|
|
2143
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.
|
|
2144
|
-
i.
|
|
2143
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.nb5_1, this.ob5_1, completion);
|
|
2144
|
+
i.pb5_1 = $this$launchDefault;
|
|
2145
2145
|
return i;
|
|
2146
2146
|
};
|
|
2147
2147
|
function GameServer$subscribeServerStateUpdateJson$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2153,8 +2153,8 @@
|
|
|
2153
2153
|
return l;
|
|
2154
2154
|
}
|
|
2155
2155
|
function GameServer$getServerTableState$slambda(this$0, $callback, resultContinuation) {
|
|
2156
|
-
this.
|
|
2157
|
-
this.
|
|
2156
|
+
this.yb5_1 = this$0;
|
|
2157
|
+
this.zb5_1 = $callback;
|
|
2158
2158
|
CoroutineImpl.call(this, resultContinuation);
|
|
2159
2159
|
}
|
|
2160
2160
|
protoOf(GameServer$getServerTableState$slambda).c2g = function ($this$launchDefault, $completion) {
|
|
@@ -2173,11 +2173,11 @@
|
|
|
2173
2173
|
var tmp = this.i9_1;
|
|
2174
2174
|
if (tmp === 0) {
|
|
2175
2175
|
this.j9_1 = 1;
|
|
2176
|
-
if (!this.
|
|
2176
|
+
if (!this.yb5_1.isTableExists) {
|
|
2177
2177
|
return Unit_instance;
|
|
2178
2178
|
}
|
|
2179
|
-
var dto = mapToDto_3(new TableStateUpdate(this.
|
|
2180
|
-
this.
|
|
2179
|
+
var dto = mapToDto_3(new TableStateUpdate(this.yb5_1.table.id, this.yb5_1.table), _get_encoderDecoderProvider__qqgrji(this.yb5_1));
|
|
2180
|
+
this.zb5_1(dto);
|
|
2181
2181
|
return Unit_instance;
|
|
2182
2182
|
} else if (tmp === 1) {
|
|
2183
2183
|
throw this.l9_1;
|
|
@@ -2189,8 +2189,8 @@
|
|
|
2189
2189
|
while (true);
|
|
2190
2190
|
};
|
|
2191
2191
|
protoOf(GameServer$getServerTableState$slambda).d2g = function ($this$launchDefault, completion) {
|
|
2192
|
-
var i = new GameServer$getServerTableState$slambda(this.
|
|
2193
|
-
i.
|
|
2192
|
+
var i = new GameServer$getServerTableState$slambda(this.yb5_1, this.zb5_1, completion);
|
|
2193
|
+
i.ab6_1 = $this$launchDefault;
|
|
2194
2194
|
return i;
|
|
2195
2195
|
};
|
|
2196
2196
|
function GameServer$getServerTableState$slambda_0(this$0, $callback, resultContinuation) {
|
|
@@ -2202,18 +2202,18 @@
|
|
|
2202
2202
|
return l;
|
|
2203
2203
|
}
|
|
2204
2204
|
function GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation) {
|
|
2205
|
-
this.
|
|
2205
|
+
this.jb6_1 = this$0;
|
|
2206
2206
|
CoroutineImpl.call(this, resultContinuation);
|
|
2207
2207
|
}
|
|
2208
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
2209
|
-
var tmp = this.
|
|
2208
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).mb6 = function ($this$transformLatest, it, $completion) {
|
|
2209
|
+
var tmp = this.nb6($this$transformLatest, it, $completion);
|
|
2210
2210
|
tmp.k9_1 = Unit_instance;
|
|
2211
2211
|
tmp.l9_1 = null;
|
|
2212
2212
|
return tmp.q9();
|
|
2213
2213
|
};
|
|
2214
2214
|
protoOf(GameServer$observeTableStateUpdates$slambda).da = function (p1, p2, $completion) {
|
|
2215
2215
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2216
|
-
return this.
|
|
2216
|
+
return this.mb6(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2217
2217
|
};
|
|
2218
2218
|
protoOf(GameServer$observeTableStateUpdates$slambda).q9 = function () {
|
|
2219
2219
|
var suspendResult = this.k9_1;
|
|
@@ -2224,8 +2224,8 @@
|
|
|
2224
2224
|
case 0:
|
|
2225
2225
|
this.j9_1 = 2;
|
|
2226
2226
|
this.i9_1 = 1;
|
|
2227
|
-
var table = this.
|
|
2228
|
-
suspendResult = emitAll(this.
|
|
2227
|
+
var table = this.lb6_1;
|
|
2228
|
+
suspendResult = emitAll(this.kb6_1, flow(GameServer$observeTableStateUpdates$slambda$slambda_0(table, this.jb6_1, null)), this);
|
|
2229
2229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2230
2230
|
return suspendResult;
|
|
2231
2231
|
}
|
|
@@ -2247,23 +2247,23 @@
|
|
|
2247
2247
|
}
|
|
2248
2248
|
while (true);
|
|
2249
2249
|
};
|
|
2250
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
2251
|
-
var i = new GameServer$observeTableStateUpdates$slambda(this.
|
|
2252
|
-
i.
|
|
2253
|
-
i.
|
|
2250
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).nb6 = function ($this$transformLatest, it, completion) {
|
|
2251
|
+
var i = new GameServer$observeTableStateUpdates$slambda(this.jb6_1, completion);
|
|
2252
|
+
i.kb6_1 = $this$transformLatest;
|
|
2253
|
+
i.lb6_1 = it;
|
|
2254
2254
|
return i;
|
|
2255
2255
|
};
|
|
2256
2256
|
function GameServer$observeTableStateUpdates$slambda_0(this$0, resultContinuation) {
|
|
2257
2257
|
var i = new GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation);
|
|
2258
2258
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2259
|
-
return i.
|
|
2259
|
+
return i.mb6($this$transformLatest, it, $completion);
|
|
2260
2260
|
};
|
|
2261
2261
|
l.$arity = 2;
|
|
2262
2262
|
return l;
|
|
2263
2263
|
}
|
|
2264
2264
|
function GameServer$observeTableStateUpdates$$inlined$mapNotNull$1($this, this$0) {
|
|
2265
|
-
this.
|
|
2266
|
-
this.
|
|
2265
|
+
this.hb0_1 = $this;
|
|
2266
|
+
this.ib0_1 = this$0;
|
|
2267
2267
|
}
|
|
2268
2268
|
protoOf(GameServer$observeTableStateUpdates$$inlined$mapNotNull$1).p2b = function (collector, $completion) {
|
|
2269
2269
|
var tmp = new $collectCOROUTINE$_1(this, collector, $completion);
|
|
@@ -2275,7 +2275,7 @@
|
|
|
2275
2275
|
return this.p2b(collector, $completion);
|
|
2276
2276
|
};
|
|
2277
2277
|
function GameServer$observeTableWhenRoundChanges$$inlined$mapNotNull$1($this) {
|
|
2278
|
-
this.
|
|
2278
|
+
this.hb1_1 = $this;
|
|
2279
2279
|
}
|
|
2280
2280
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$mapNotNull$1).p2b = function (collector, $completion) {
|
|
2281
2281
|
var tmp = new $collectCOROUTINE$_2(this, collector, $completion);
|
|
@@ -2287,7 +2287,7 @@
|
|
|
2287
2287
|
return this.p2b(collector, $completion);
|
|
2288
2288
|
};
|
|
2289
2289
|
function GameServer$observeTableWhenRoundChanges$$inlined$map$1($this) {
|
|
2290
|
-
this.
|
|
2290
|
+
this.cb2_1 = $this;
|
|
2291
2291
|
}
|
|
2292
2292
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$map$1).p2b = function (collector, $completion) {
|
|
2293
2293
|
var tmp = new $collectCOROUTINE$_3(this, collector, $completion);
|
|
@@ -2302,7 +2302,7 @@
|
|
|
2302
2302
|
return old.first === new_0.first;
|
|
2303
2303
|
}
|
|
2304
2304
|
function GameServer$observeTableWhenRoundChanges$$inlined$map$2($this) {
|
|
2305
|
-
this.
|
|
2305
|
+
this.xb2_1 = $this;
|
|
2306
2306
|
}
|
|
2307
2307
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$map$2).p2b = function (collector, $completion) {
|
|
2308
2308
|
var tmp = new $collectCOROUTINE$_4(this, collector, $completion);
|
|
@@ -2314,8 +2314,8 @@
|
|
|
2314
2314
|
return this.p2b(collector, $completion);
|
|
2315
2315
|
};
|
|
2316
2316
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2317
|
+
this.wb6_1 = this$0;
|
|
2318
|
+
this.xb6_1 = $subscriber;
|
|
2319
2319
|
CoroutineImpl.call(this, resultContinuation);
|
|
2320
2320
|
}
|
|
2321
2321
|
protoOf(GameServer$subscribeWith$slambda).c2g = function ($this$launchDefault, $completion) {
|
|
@@ -2336,8 +2336,8 @@
|
|
|
2336
2336
|
case 0:
|
|
2337
2337
|
this.j9_1 = 2;
|
|
2338
2338
|
this.i9_1 = 1;
|
|
2339
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
2340
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
2339
|
+
var tmp_0 = distinctUntilChanged(this.wb6_1.j7k());
|
|
2340
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.xb6_1, null);
|
|
2341
2341
|
suspendResult = tmp_0.o2a(new sam$kotlinx_coroutines_flow_FlowCollector$0_4(tmp_1), this);
|
|
2342
2342
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2343
2343
|
return suspendResult;
|
|
@@ -2361,8 +2361,8 @@
|
|
|
2361
2361
|
while (true);
|
|
2362
2362
|
};
|
|
2363
2363
|
protoOf(GameServer$subscribeWith$slambda).d2g = function ($this$launchDefault, completion) {
|
|
2364
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
2365
|
-
i.
|
|
2364
|
+
var i = new GameServer$subscribeWith$slambda(this.wb6_1, this.xb6_1, completion);
|
|
2365
|
+
i.yb6_1 = $this$launchDefault;
|
|
2366
2366
|
return i;
|
|
2367
2367
|
};
|
|
2368
2368
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2374,18 +2374,18 @@
|
|
|
2374
2374
|
return l;
|
|
2375
2375
|
}
|
|
2376
2376
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
2377
|
-
this.
|
|
2377
|
+
this.hb7_1 = $action;
|
|
2378
2378
|
CoroutineImpl.call(this, resultContinuation);
|
|
2379
2379
|
}
|
|
2380
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
2381
|
-
var tmp = this.
|
|
2380
|
+
protoOf(GameServer$fromClientEvent$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2381
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2382
2382
|
tmp.k9_1 = Unit_instance;
|
|
2383
2383
|
tmp.l9_1 = null;
|
|
2384
2384
|
return tmp.q9();
|
|
2385
2385
|
};
|
|
2386
2386
|
protoOf(GameServer$fromClientEvent$slambda).da = function (p1, p2, $completion) {
|
|
2387
2387
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2388
|
-
return this.
|
|
2388
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2389
2389
|
};
|
|
2390
2390
|
protoOf(GameServer$fromClientEvent$slambda).q9 = function () {
|
|
2391
2391
|
var suspendResult = this.k9_1;
|
|
@@ -2394,11 +2394,11 @@
|
|
|
2394
2394
|
var tmp = this.i9_1;
|
|
2395
2395
|
if (tmp === 0) {
|
|
2396
2396
|
this.j9_1 = 1;
|
|
2397
|
-
if (this.
|
|
2398
|
-
if (!get_isCreated(this.
|
|
2397
|
+
if (this.hb7_1 instanceof PlayerReadyFromClientAction)
|
|
2398
|
+
if (!get_isCreated(this.jb7_1.state)) {
|
|
2399
2399
|
return Unit_instance;
|
|
2400
2400
|
}
|
|
2401
|
-
this.
|
|
2401
|
+
this.jb7_1.dispatch(this.hb7_1);
|
|
2402
2402
|
return Unit_instance;
|
|
2403
2403
|
} else if (tmp === 1) {
|
|
2404
2404
|
throw this.l9_1;
|
|
@@ -2409,34 +2409,34 @@
|
|
|
2409
2409
|
}
|
|
2410
2410
|
while (true);
|
|
2411
2411
|
};
|
|
2412
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
2413
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
2414
|
-
i.
|
|
2415
|
-
i.
|
|
2412
|
+
protoOf(GameServer$fromClientEvent$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2413
|
+
var i = new GameServer$fromClientEvent$slambda(this.hb7_1, completion);
|
|
2414
|
+
i.ib7_1 = $this$dispatchAsync;
|
|
2415
|
+
i.jb7_1 = store;
|
|
2416
2416
|
return i;
|
|
2417
2417
|
};
|
|
2418
2418
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
2419
2419
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
2420
2420
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2421
|
-
return i.
|
|
2421
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2422
2422
|
};
|
|
2423
2423
|
l.$arity = 2;
|
|
2424
2424
|
return l;
|
|
2425
2425
|
}
|
|
2426
2426
|
function GameServer$playerLostConnection$slambda($playerId, $roomId, resultContinuation) {
|
|
2427
|
-
this.
|
|
2428
|
-
this.
|
|
2427
|
+
this.ub7_1 = $playerId;
|
|
2428
|
+
this.vb7_1 = $roomId;
|
|
2429
2429
|
CoroutineImpl.call(this, resultContinuation);
|
|
2430
2430
|
}
|
|
2431
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
2432
|
-
var tmp = this.
|
|
2431
|
+
protoOf(GameServer$playerLostConnection$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2432
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2433
2433
|
tmp.k9_1 = Unit_instance;
|
|
2434
2434
|
tmp.l9_1 = null;
|
|
2435
2435
|
return tmp.q9();
|
|
2436
2436
|
};
|
|
2437
2437
|
protoOf(GameServer$playerLostConnection$slambda).da = function (p1, p2, $completion) {
|
|
2438
2438
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2439
|
-
return this.
|
|
2439
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2440
2440
|
};
|
|
2441
2441
|
protoOf(GameServer$playerLostConnection$slambda).q9 = function () {
|
|
2442
2442
|
var suspendResult = this.k9_1;
|
|
@@ -2445,12 +2445,12 @@
|
|
|
2445
2445
|
var tmp = this.i9_1;
|
|
2446
2446
|
if (tmp === 0) {
|
|
2447
2447
|
this.j9_1 = 1;
|
|
2448
|
-
if (!get_isCreated(this.
|
|
2448
|
+
if (!get_isCreated(this.xb7_1.state)) {
|
|
2449
2449
|
return Unit_instance;
|
|
2450
2450
|
}
|
|
2451
|
-
var tmp_0 = this.
|
|
2451
|
+
var tmp_0 = this.xb7_1.dispatch;
|
|
2452
2452
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
2453
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2453
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ub7_1, this.vb7_1));
|
|
2454
2454
|
return Unit_instance;
|
|
2455
2455
|
} else if (tmp === 1) {
|
|
2456
2456
|
throw this.l9_1;
|
|
@@ -2461,35 +2461,35 @@
|
|
|
2461
2461
|
}
|
|
2462
2462
|
while (true);
|
|
2463
2463
|
};
|
|
2464
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
2465
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
2466
|
-
i.
|
|
2467
|
-
i.
|
|
2464
|
+
protoOf(GameServer$playerLostConnection$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2465
|
+
var i = new GameServer$playerLostConnection$slambda(this.ub7_1, this.vb7_1, completion);
|
|
2466
|
+
i.wb7_1 = $this$dispatchAsync;
|
|
2467
|
+
i.xb7_1 = store;
|
|
2468
2468
|
return i;
|
|
2469
2469
|
};
|
|
2470
2470
|
function GameServer$playerLostConnection$slambda_0($playerId, $roomId, resultContinuation) {
|
|
2471
2471
|
var i = new GameServer$playerLostConnection$slambda($playerId, $roomId, resultContinuation);
|
|
2472
2472
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2473
|
-
return i.
|
|
2473
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2474
2474
|
};
|
|
2475
2475
|
l.$arity = 2;
|
|
2476
2476
|
return l;
|
|
2477
2477
|
}
|
|
2478
2478
|
function GameServer$playerLive$slambda(this$0, $playerId, $roomId, resultContinuation) {
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2481
|
-
this.
|
|
2479
|
+
this.gb8_1 = this$0;
|
|
2480
|
+
this.hb8_1 = $playerId;
|
|
2481
|
+
this.ib8_1 = $roomId;
|
|
2482
2482
|
CoroutineImpl.call(this, resultContinuation);
|
|
2483
2483
|
}
|
|
2484
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2485
|
-
var tmp = this.
|
|
2484
|
+
protoOf(GameServer$playerLive$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2485
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2486
2486
|
tmp.k9_1 = Unit_instance;
|
|
2487
2487
|
tmp.l9_1 = null;
|
|
2488
2488
|
return tmp.q9();
|
|
2489
2489
|
};
|
|
2490
2490
|
protoOf(GameServer$playerLive$slambda).da = function (p1, p2, $completion) {
|
|
2491
2491
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2492
|
-
return this.
|
|
2492
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2493
2493
|
};
|
|
2494
2494
|
protoOf(GameServer$playerLive$slambda).q9 = function () {
|
|
2495
2495
|
var suspendResult = this.k9_1;
|
|
@@ -2498,16 +2498,16 @@
|
|
|
2498
2498
|
var tmp = this.i9_1;
|
|
2499
2499
|
if (tmp === 0) {
|
|
2500
2500
|
this.j9_1 = 1;
|
|
2501
|
-
if (get_isFinished(this.
|
|
2501
|
+
if (get_isFinished(this.kb8_1.state) || get_isFinishing(this.kb8_1.state)) {
|
|
2502
2502
|
return Unit_instance;
|
|
2503
2503
|
}
|
|
2504
|
-
if (!_get_serverReduxConfig__rprcrm(this.
|
|
2505
|
-
this.
|
|
2504
|
+
if (!_get_serverReduxConfig__rprcrm(this.gb8_1).waitForPlayerToConnectOnStart && (!get_isCreated(this.kb8_1.state) || !this.gb8_1.k6z().m7l())) {
|
|
2505
|
+
this.gb8_1.n5b().v('GameEngine_API', 'playerLive: ' + this.hb8_1 + ' before game is created');
|
|
2506
2506
|
return Unit_instance;
|
|
2507
2507
|
}
|
|
2508
|
-
var tmp_0 = this.
|
|
2508
|
+
var tmp_0 = this.kb8_1.dispatch;
|
|
2509
2509
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2510
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2510
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.hb8_1, this.ib8_1));
|
|
2511
2511
|
return Unit_instance;
|
|
2512
2512
|
} else if (tmp === 1) {
|
|
2513
2513
|
throw this.l9_1;
|
|
@@ -2518,36 +2518,36 @@
|
|
|
2518
2518
|
}
|
|
2519
2519
|
while (true);
|
|
2520
2520
|
};
|
|
2521
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2522
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
2523
|
-
i.
|
|
2524
|
-
i.
|
|
2521
|
+
protoOf(GameServer$playerLive$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2522
|
+
var i = new GameServer$playerLive$slambda(this.gb8_1, this.hb8_1, this.ib8_1, completion);
|
|
2523
|
+
i.jb8_1 = $this$dispatchAsync;
|
|
2524
|
+
i.kb8_1 = store;
|
|
2525
2525
|
return i;
|
|
2526
2526
|
};
|
|
2527
2527
|
function GameServer$playerLive$slambda_0(this$0, $playerId, $roomId, resultContinuation) {
|
|
2528
2528
|
var i = new GameServer$playerLive$slambda(this$0, $playerId, $roomId, resultContinuation);
|
|
2529
2529
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2530
|
-
return i.
|
|
2530
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2531
2531
|
};
|
|
2532
2532
|
l.$arity = 2;
|
|
2533
2533
|
return l;
|
|
2534
2534
|
}
|
|
2535
2535
|
function GameServer$playerLeft$slambda(this$0, $playerId, $permanently, $roomId, resultContinuation) {
|
|
2536
|
-
this.
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2536
|
+
this.tb8_1 = this$0;
|
|
2537
|
+
this.ub8_1 = $playerId;
|
|
2538
|
+
this.vb8_1 = $permanently;
|
|
2539
|
+
this.wb8_1 = $roomId;
|
|
2540
2540
|
CoroutineImpl.call(this, resultContinuation);
|
|
2541
2541
|
}
|
|
2542
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2543
|
-
var tmp = this.
|
|
2542
|
+
protoOf(GameServer$playerLeft$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2543
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2544
2544
|
tmp.k9_1 = Unit_instance;
|
|
2545
2545
|
tmp.l9_1 = null;
|
|
2546
2546
|
return tmp.q9();
|
|
2547
2547
|
};
|
|
2548
2548
|
protoOf(GameServer$playerLeft$slambda).da = function (p1, p2, $completion) {
|
|
2549
2549
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2550
|
-
return this.
|
|
2550
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2551
2551
|
};
|
|
2552
2552
|
protoOf(GameServer$playerLeft$slambda).q9 = function () {
|
|
2553
2553
|
var suspendResult = this.k9_1;
|
|
@@ -2556,22 +2556,22 @@
|
|
|
2556
2556
|
var tmp = this.i9_1;
|
|
2557
2557
|
if (tmp === 0) {
|
|
2558
2558
|
this.j9_1 = 1;
|
|
2559
|
-
if (get_isFinished(this.
|
|
2559
|
+
if (get_isFinished(this.yb8_1.state) || get_isFinishing(this.yb8_1.state)) {
|
|
2560
2560
|
return Unit_instance;
|
|
2561
2561
|
}
|
|
2562
|
-
if (!get_isCreated(this.
|
|
2563
|
-
this.
|
|
2562
|
+
if (!get_isCreated(this.yb8_1.state) || !this.tb8_1.k6z().m7l()) {
|
|
2563
|
+
this.tb8_1.n5b().w('GameEngine_API', 'playerLeft: ' + this.ub8_1 + ' before game is created');
|
|
2564
2564
|
return Unit_instance;
|
|
2565
2565
|
}
|
|
2566
|
-
var tmp_0 = this.
|
|
2566
|
+
var tmp_0 = this.yb8_1.dispatch;
|
|
2567
2567
|
var tmp_1;
|
|
2568
|
-
if (this.
|
|
2568
|
+
if (this.vb8_1) {
|
|
2569
2569
|
tmp_1 = PlayerConnectionState_LEFT_PERMANENTLY_getInstance();
|
|
2570
2570
|
} else {
|
|
2571
2571
|
tmp_1 = PlayerConnectionState_LEFT_getInstance();
|
|
2572
2572
|
}
|
|
2573
2573
|
var tmp0_connectionState = tmp_1;
|
|
2574
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2574
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ub8_1, this.wb8_1));
|
|
2575
2575
|
return Unit_instance;
|
|
2576
2576
|
} else if (tmp === 1) {
|
|
2577
2577
|
throw this.l9_1;
|
|
@@ -2582,39 +2582,39 @@
|
|
|
2582
2582
|
}
|
|
2583
2583
|
while (true);
|
|
2584
2584
|
};
|
|
2585
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2586
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
2587
|
-
i.
|
|
2588
|
-
i.
|
|
2585
|
+
protoOf(GameServer$playerLeft$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2586
|
+
var i = new GameServer$playerLeft$slambda(this.tb8_1, this.ub8_1, this.vb8_1, this.wb8_1, completion);
|
|
2587
|
+
i.xb8_1 = $this$dispatchAsync;
|
|
2588
|
+
i.yb8_1 = store;
|
|
2589
2589
|
return i;
|
|
2590
2590
|
};
|
|
2591
2591
|
function GameServer$playerLeft$slambda_0(this$0, $playerId, $permanently, $roomId, resultContinuation) {
|
|
2592
2592
|
var i = new GameServer$playerLeft$slambda(this$0, $playerId, $permanently, $roomId, resultContinuation);
|
|
2593
2593
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2594
|
-
return i.
|
|
2594
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2595
2595
|
};
|
|
2596
2596
|
l.$arity = 2;
|
|
2597
2597
|
return l;
|
|
2598
2598
|
}
|
|
2599
2599
|
function GameServer$roomOnCreate$slambda($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2600
|
-
this.
|
|
2601
|
-
this.
|
|
2602
|
-
this.
|
|
2603
|
-
this.
|
|
2604
|
-
this.
|
|
2605
|
-
this.
|
|
2606
|
-
this.
|
|
2600
|
+
this.hb9_1 = $usersArray;
|
|
2601
|
+
this.ib9_1 = this$0;
|
|
2602
|
+
this.jb9_1 = $config;
|
|
2603
|
+
this.kb9_1 = $roomId;
|
|
2604
|
+
this.lb9_1 = $transition;
|
|
2605
|
+
this.mb9_1 = $gameCreatorId;
|
|
2606
|
+
this.nb9_1 = $spectators;
|
|
2607
2607
|
CoroutineImpl.call(this, resultContinuation);
|
|
2608
2608
|
}
|
|
2609
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2610
|
-
var tmp = this.
|
|
2609
|
+
protoOf(GameServer$roomOnCreate$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2610
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2611
2611
|
tmp.k9_1 = Unit_instance;
|
|
2612
2612
|
tmp.l9_1 = null;
|
|
2613
2613
|
return tmp.q9();
|
|
2614
2614
|
};
|
|
2615
2615
|
protoOf(GameServer$roomOnCreate$slambda).da = function (p1, p2, $completion) {
|
|
2616
2616
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2617
|
-
return this.
|
|
2617
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2618
2618
|
};
|
|
2619
2619
|
protoOf(GameServer$roomOnCreate$slambda).q9 = function () {
|
|
2620
2620
|
var suspendResult = this.k9_1;
|
|
@@ -2623,18 +2623,18 @@
|
|
|
2623
2623
|
var tmp = this.i9_1;
|
|
2624
2624
|
if (tmp === 0) {
|
|
2625
2625
|
this.j9_1 = 1;
|
|
2626
|
-
var users = toList(this.
|
|
2627
|
-
if (!validatePlayerCount(this.
|
|
2628
|
-
this.
|
|
2626
|
+
var users = toList(this.hb9_1);
|
|
2627
|
+
if (!validatePlayerCount(this.ib9_1, this.jb9_1, users, this.kb9_1)) {
|
|
2628
|
+
this.pb9_1.dispatch(Companion_instance.fromTableWithAnalytics(new GameErrorReason(Reason_SERVER_ERROR_getInstance()), this.ib9_1.table.isGameFinished, this.ib9_1.table));
|
|
2629
2629
|
return Unit_instance;
|
|
2630
2630
|
}
|
|
2631
|
-
var orderedUsers = orderUsers(this.
|
|
2632
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
2633
|
-
var tmp_0 = this.
|
|
2631
|
+
var orderedUsers = orderUsers(this.ib9_1, users, this.jb9_1, this.lb9_1);
|
|
2632
|
+
var gameCreatorUser = getPlayer(users, this.mb9_1);
|
|
2633
|
+
var tmp_0 = this.pb9_1.dispatch;
|
|
2634
2634
|
var tmp0_version = get_versionOrDefault(GameEngineConfig_instance);
|
|
2635
2635
|
var tmp1_users = sortWithItem(orderedUsers, gameCreatorUser);
|
|
2636
|
-
var tmp2_spectators = toList(this.
|
|
2637
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
2636
|
+
var tmp2_spectators = toList(this.nb9_1);
|
|
2637
|
+
tmp_0(new StartGameMechanicAction(this.jb9_1, this.kb9_1, tmp0_version, this.mb9_1, tmp1_users, VOID, tmp2_spectators));
|
|
2638
2638
|
return Unit_instance;
|
|
2639
2639
|
} else if (tmp === 1) {
|
|
2640
2640
|
throw this.l9_1;
|
|
@@ -2645,39 +2645,39 @@
|
|
|
2645
2645
|
}
|
|
2646
2646
|
while (true);
|
|
2647
2647
|
};
|
|
2648
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2649
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
2650
|
-
i.
|
|
2651
|
-
i.
|
|
2648
|
+
protoOf(GameServer$roomOnCreate$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2649
|
+
var i = new GameServer$roomOnCreate$slambda(this.hb9_1, this.ib9_1, this.jb9_1, this.kb9_1, this.lb9_1, this.mb9_1, this.nb9_1, completion);
|
|
2650
|
+
i.ob9_1 = $this$dispatchAsync;
|
|
2651
|
+
i.pb9_1 = store;
|
|
2652
2652
|
return i;
|
|
2653
2653
|
};
|
|
2654
2654
|
function GameServer$roomOnCreate$slambda_0($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2655
2655
|
var i = new GameServer$roomOnCreate$slambda($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation);
|
|
2656
2656
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2657
|
-
return i.
|
|
2657
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2658
2658
|
};
|
|
2659
2659
|
l.$arity = 2;
|
|
2660
2660
|
return l;
|
|
2661
2661
|
}
|
|
2662
2662
|
function GameServer$preserveTeams$previousTeams$1($playerId) {
|
|
2663
|
-
this.
|
|
2663
|
+
this.qb9_1 = $playerId;
|
|
2664
2664
|
}
|
|
2665
2665
|
protoOf(GameServer$preserveTeams$previousTeams$1).n6y = function () {
|
|
2666
|
-
return this.
|
|
2666
|
+
return this.qb9_1;
|
|
2667
2667
|
};
|
|
2668
2668
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
2669
|
-
this.
|
|
2669
|
+
this.zb9_1 = $state;
|
|
2670
2670
|
CoroutineImpl.call(this, resultContinuation);
|
|
2671
2671
|
}
|
|
2672
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2673
|
-
var tmp = this.
|
|
2672
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).cba = function ($this$dispatchAwait, store, $completion) {
|
|
2673
|
+
var tmp = this.lb7($this$dispatchAwait, store, $completion);
|
|
2674
2674
|
tmp.k9_1 = Unit_instance;
|
|
2675
2675
|
tmp.l9_1 = null;
|
|
2676
2676
|
return tmp.q9();
|
|
2677
2677
|
};
|
|
2678
2678
|
protoOf(GameServer$roomOnContinueFromState$slambda).da = function (p1, p2, $completion) {
|
|
2679
2679
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2680
|
-
return this.
|
|
2680
|
+
return this.cba(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2681
2681
|
};
|
|
2682
2682
|
protoOf(GameServer$roomOnContinueFromState$slambda).q9 = function () {
|
|
2683
2683
|
var suspendResult = this.k9_1;
|
|
@@ -2686,10 +2686,10 @@
|
|
|
2686
2686
|
var tmp = this.i9_1;
|
|
2687
2687
|
if (tmp === 0) {
|
|
2688
2688
|
this.j9_1 = 1;
|
|
2689
|
-
if (get_isCreating(this.
|
|
2690
|
-
var tmp_0 = this.
|
|
2689
|
+
if (get_isCreating(this.bba_1.state)) {
|
|
2690
|
+
var tmp_0 = this.bba_1.dispatch;
|
|
2691
2691
|
var tmp0_reason = new RestartRoundReason(null);
|
|
2692
|
-
var tmp1_table = this.
|
|
2692
|
+
var tmp1_table = this.zb9_1.table;
|
|
2693
2693
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2694
2694
|
return true;
|
|
2695
2695
|
}
|
|
@@ -2703,34 +2703,34 @@
|
|
|
2703
2703
|
}
|
|
2704
2704
|
while (true);
|
|
2705
2705
|
};
|
|
2706
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2707
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
2708
|
-
i.
|
|
2709
|
-
i.
|
|
2706
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).lb7 = function ($this$dispatchAwait, store, completion) {
|
|
2707
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.zb9_1, completion);
|
|
2708
|
+
i.aba_1 = $this$dispatchAwait;
|
|
2709
|
+
i.bba_1 = store;
|
|
2710
2710
|
return i;
|
|
2711
2711
|
};
|
|
2712
2712
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
2713
2713
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
2714
2714
|
var l = function ($this$dispatchAwait, store, $completion) {
|
|
2715
|
-
return i.
|
|
2715
|
+
return i.cba($this$dispatchAwait, store, $completion);
|
|
2716
2716
|
};
|
|
2717
2717
|
l.$arity = 2;
|
|
2718
2718
|
return l;
|
|
2719
2719
|
}
|
|
2720
2720
|
function GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation) {
|
|
2721
|
-
this.
|
|
2722
|
-
this.
|
|
2721
|
+
this.lba_1 = $isCreated;
|
|
2722
|
+
this.mba_1 = $state;
|
|
2723
2723
|
CoroutineImpl.call(this, resultContinuation);
|
|
2724
2724
|
}
|
|
2725
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2726
|
-
var tmp = this.
|
|
2725
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2726
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2727
2727
|
tmp.k9_1 = Unit_instance;
|
|
2728
2728
|
tmp.l9_1 = null;
|
|
2729
2729
|
return tmp.q9();
|
|
2730
2730
|
};
|
|
2731
2731
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).da = function (p1, p2, $completion) {
|
|
2732
2732
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2733
|
-
return this.
|
|
2733
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2734
2734
|
};
|
|
2735
2735
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).q9 = function () {
|
|
2736
2736
|
var suspendResult = this.k9_1;
|
|
@@ -2741,7 +2741,7 @@
|
|
|
2741
2741
|
case 0:
|
|
2742
2742
|
this.j9_1 = 3;
|
|
2743
2743
|
this.i9_1 = 1;
|
|
2744
|
-
suspendResult = this.
|
|
2744
|
+
suspendResult = this.lba_1.x1w(this);
|
|
2745
2745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2746
2746
|
return suspendResult;
|
|
2747
2747
|
}
|
|
@@ -2749,10 +2749,10 @@
|
|
|
2749
2749
|
continue $sm;
|
|
2750
2750
|
case 1:
|
|
2751
2751
|
if (suspendResult) {
|
|
2752
|
-
var _iterator__ex2g4s = this.
|
|
2752
|
+
var _iterator__ex2g4s = this.mba_1.actions.t();
|
|
2753
2753
|
while (_iterator__ex2g4s.u()) {
|
|
2754
2754
|
var element = _iterator__ex2g4s.v();
|
|
2755
|
-
this.
|
|
2755
|
+
this.oba_1.dispatch(element);
|
|
2756
2756
|
}
|
|
2757
2757
|
this.i9_1 = 2;
|
|
2758
2758
|
continue $sm;
|
|
@@ -2777,35 +2777,35 @@
|
|
|
2777
2777
|
}
|
|
2778
2778
|
while (true);
|
|
2779
2779
|
};
|
|
2780
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2781
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
2782
|
-
i.
|
|
2783
|
-
i.
|
|
2780
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2781
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.lba_1, this.mba_1, completion);
|
|
2782
|
+
i.nba_1 = $this$dispatchAsync;
|
|
2783
|
+
i.oba_1 = store;
|
|
2784
2784
|
return i;
|
|
2785
2785
|
};
|
|
2786
2786
|
function GameServer$roomOnContinueFromState$slambda_2($isCreated, $state, resultContinuation) {
|
|
2787
2787
|
var i = new GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation);
|
|
2788
2788
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2789
|
-
return i.
|
|
2789
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2790
2790
|
};
|
|
2791
2791
|
l.$arity = 2;
|
|
2792
2792
|
return l;
|
|
2793
2793
|
}
|
|
2794
2794
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
2795
|
-
this.
|
|
2796
|
-
this.
|
|
2797
|
-
this.
|
|
2795
|
+
this.xba_1 = $tableLite;
|
|
2796
|
+
this.yba_1 = $roomId;
|
|
2797
|
+
this.zba_1 = this$0;
|
|
2798
2798
|
CoroutineImpl.call(this, resultContinuation);
|
|
2799
2799
|
}
|
|
2800
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2801
|
-
var tmp = this.
|
|
2800
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2801
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2802
2802
|
tmp.k9_1 = Unit_instance;
|
|
2803
2803
|
tmp.l9_1 = null;
|
|
2804
2804
|
return tmp.q9();
|
|
2805
2805
|
};
|
|
2806
2806
|
protoOf(GameServer$roomOnContinueFromRound$slambda).da = function (p1, p2, $completion) {
|
|
2807
2807
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2808
|
-
return this.
|
|
2808
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2809
2809
|
};
|
|
2810
2810
|
protoOf(GameServer$roomOnContinueFromRound$slambda).q9 = function () {
|
|
2811
2811
|
var suspendResult = this.k9_1;
|
|
@@ -2814,9 +2814,9 @@
|
|
|
2814
2814
|
var tmp = this.i9_1;
|
|
2815
2815
|
if (tmp === 0) {
|
|
2816
2816
|
this.j9_1 = 1;
|
|
2817
|
-
var tmp_0 = this.
|
|
2818
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
2819
|
-
var tmp1_table = Companion_instance_0.restartRound(this.
|
|
2817
|
+
var tmp_0 = this.bbb_1.dispatch;
|
|
2818
|
+
var tmp0_reason = new RestartRoundReason(this.xba_1.gameInfo.round.roundNumber);
|
|
2819
|
+
var tmp1_table = Companion_instance_0.restartRound(this.yba_1, _get_idsProvider__fnfajc(this.zba_1).d77(), get_versionOrDefault(GameEngineConfig_instance), this.xba_1);
|
|
2820
2820
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2821
2821
|
return Unit_instance;
|
|
2822
2822
|
} else if (tmp === 1) {
|
|
@@ -2828,16 +2828,16 @@
|
|
|
2828
2828
|
}
|
|
2829
2829
|
while (true);
|
|
2830
2830
|
};
|
|
2831
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2832
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
2833
|
-
i.
|
|
2834
|
-
i.
|
|
2831
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2832
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.xba_1, this.yba_1, this.zba_1, completion);
|
|
2833
|
+
i.abb_1 = $this$dispatchAsync;
|
|
2834
|
+
i.bbb_1 = store;
|
|
2835
2835
|
return i;
|
|
2836
2836
|
};
|
|
2837
2837
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
2838
2838
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
2839
2839
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2840
|
-
return i.
|
|
2840
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2841
2841
|
};
|
|
2842
2842
|
l.$arity = 2;
|
|
2843
2843
|
return l;
|
|
@@ -2845,15 +2845,15 @@
|
|
|
2845
2845
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
2846
2846
|
CoroutineImpl.call(this, resultContinuation);
|
|
2847
2847
|
}
|
|
2848
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2849
|
-
var tmp = this.
|
|
2848
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2849
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2850
2850
|
tmp.k9_1 = Unit_instance;
|
|
2851
2851
|
tmp.l9_1 = null;
|
|
2852
2852
|
return tmp.q9();
|
|
2853
2853
|
};
|
|
2854
2854
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).da = function (p1, p2, $completion) {
|
|
2855
2855
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2856
|
-
return this.
|
|
2856
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2857
2857
|
};
|
|
2858
2858
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).q9 = function () {
|
|
2859
2859
|
var suspendResult = this.k9_1;
|
|
@@ -2862,7 +2862,7 @@
|
|
|
2862
2862
|
var tmp = this.i9_1;
|
|
2863
2863
|
if (tmp === 0) {
|
|
2864
2864
|
this.j9_1 = 1;
|
|
2865
|
-
this.
|
|
2865
|
+
this.lbb_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
2866
2866
|
return Unit_instance;
|
|
2867
2867
|
} else if (tmp === 1) {
|
|
2868
2868
|
throw this.l9_1;
|
|
@@ -2873,33 +2873,33 @@
|
|
|
2873
2873
|
}
|
|
2874
2874
|
while (true);
|
|
2875
2875
|
};
|
|
2876
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2876
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2877
2877
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
2878
|
-
i.
|
|
2879
|
-
i.
|
|
2878
|
+
i.kbb_1 = $this$dispatchAsync;
|
|
2879
|
+
i.lbb_1 = store;
|
|
2880
2880
|
return i;
|
|
2881
2881
|
};
|
|
2882
2882
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
2883
2883
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
2884
2884
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2885
|
-
return i.
|
|
2885
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2886
2886
|
};
|
|
2887
2887
|
l.$arity = 2;
|
|
2888
2888
|
return l;
|
|
2889
2889
|
}
|
|
2890
2890
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
2891
|
-
this.
|
|
2891
|
+
this.ubb_1 = $spectators;
|
|
2892
2892
|
CoroutineImpl.call(this, resultContinuation);
|
|
2893
2893
|
}
|
|
2894
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2895
|
-
var tmp = this.
|
|
2894
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2895
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2896
2896
|
tmp.k9_1 = Unit_instance;
|
|
2897
2897
|
tmp.l9_1 = null;
|
|
2898
2898
|
return tmp.q9();
|
|
2899
2899
|
};
|
|
2900
2900
|
protoOf(GameServer$addSpectatorsToRoom$slambda).da = function (p1, p2, $completion) {
|
|
2901
2901
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2902
|
-
return this.
|
|
2902
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2903
2903
|
};
|
|
2904
2904
|
protoOf(GameServer$addSpectatorsToRoom$slambda).q9 = function () {
|
|
2905
2905
|
var suspendResult = this.k9_1;
|
|
@@ -2908,7 +2908,7 @@
|
|
|
2908
2908
|
var tmp = this.i9_1;
|
|
2909
2909
|
if (tmp === 0) {
|
|
2910
2910
|
this.j9_1 = 1;
|
|
2911
|
-
this.
|
|
2911
|
+
this.wbb_1.dispatch(new AddSpectatorsAction(toList(this.ubb_1)));
|
|
2912
2912
|
return Unit_instance;
|
|
2913
2913
|
} else if (tmp === 1) {
|
|
2914
2914
|
throw this.l9_1;
|
|
@@ -2919,33 +2919,33 @@
|
|
|
2919
2919
|
}
|
|
2920
2920
|
while (true);
|
|
2921
2921
|
};
|
|
2922
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2923
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
2924
|
-
i.
|
|
2925
|
-
i.
|
|
2922
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2923
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.ubb_1, completion);
|
|
2924
|
+
i.vbb_1 = $this$dispatchAsync;
|
|
2925
|
+
i.wbb_1 = store;
|
|
2926
2926
|
return i;
|
|
2927
2927
|
};
|
|
2928
2928
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
2929
2929
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
2930
2930
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2931
|
-
return i.
|
|
2931
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2932
2932
|
};
|
|
2933
2933
|
l.$arity = 2;
|
|
2934
2934
|
return l;
|
|
2935
2935
|
}
|
|
2936
2936
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
2937
|
-
this.
|
|
2937
|
+
this.fbc_1 = $spectators;
|
|
2938
2938
|
CoroutineImpl.call(this, resultContinuation);
|
|
2939
2939
|
}
|
|
2940
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2941
|
-
var tmp = this.
|
|
2940
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2941
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2942
2942
|
tmp.k9_1 = Unit_instance;
|
|
2943
2943
|
tmp.l9_1 = null;
|
|
2944
2944
|
return tmp.q9();
|
|
2945
2945
|
};
|
|
2946
2946
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).da = function (p1, p2, $completion) {
|
|
2947
2947
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2948
|
-
return this.
|
|
2948
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2949
2949
|
};
|
|
2950
2950
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).q9 = function () {
|
|
2951
2951
|
var suspendResult = this.k9_1;
|
|
@@ -2954,7 +2954,7 @@
|
|
|
2954
2954
|
var tmp = this.i9_1;
|
|
2955
2955
|
if (tmp === 0) {
|
|
2956
2956
|
this.j9_1 = 1;
|
|
2957
|
-
this.
|
|
2957
|
+
this.hbc_1.dispatch(new RemoveSpectatorsAction(toList(this.fbc_1)));
|
|
2958
2958
|
return Unit_instance;
|
|
2959
2959
|
} else if (tmp === 1) {
|
|
2960
2960
|
throw this.l9_1;
|
|
@@ -2965,34 +2965,34 @@
|
|
|
2965
2965
|
}
|
|
2966
2966
|
while (true);
|
|
2967
2967
|
};
|
|
2968
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2969
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2970
|
-
i.
|
|
2971
|
-
i.
|
|
2968
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
2969
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.fbc_1, completion);
|
|
2970
|
+
i.gbc_1 = $this$dispatchAsync;
|
|
2971
|
+
i.hbc_1 = store;
|
|
2972
2972
|
return i;
|
|
2973
2973
|
};
|
|
2974
2974
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2975
2975
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2976
2976
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2977
|
-
return i.
|
|
2977
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
2978
2978
|
};
|
|
2979
2979
|
l.$arity = 2;
|
|
2980
2980
|
return l;
|
|
2981
2981
|
}
|
|
2982
2982
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2983
|
-
this.
|
|
2984
|
-
this.
|
|
2983
|
+
this.qbc_1 = $playerId;
|
|
2984
|
+
this.rbc_1 = this$0;
|
|
2985
2985
|
CoroutineImpl.call(this, resultContinuation);
|
|
2986
2986
|
}
|
|
2987
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2988
|
-
var tmp = this.
|
|
2987
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
2988
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
2989
2989
|
tmp.k9_1 = Unit_instance;
|
|
2990
2990
|
tmp.l9_1 = null;
|
|
2991
2991
|
return tmp.q9();
|
|
2992
2992
|
};
|
|
2993
2993
|
protoOf(GameServer$roomRefreshPlayerState$slambda).da = function (p1, p2, $completion) {
|
|
2994
2994
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2995
|
-
return this.
|
|
2995
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2996
2996
|
};
|
|
2997
2997
|
protoOf(GameServer$roomRefreshPlayerState$slambda).q9 = function () {
|
|
2998
2998
|
var suspendResult = this.k9_1;
|
|
@@ -3001,14 +3001,14 @@
|
|
|
3001
3001
|
var tmp = this.i9_1;
|
|
3002
3002
|
if (tmp === 0) {
|
|
3003
3003
|
this.j9_1 = 1;
|
|
3004
|
-
var table = this.
|
|
3005
|
-
var player = getPlayer(table.players, this.
|
|
3004
|
+
var table = this.tbc_1.state.k7l();
|
|
3005
|
+
var player = getPlayer(table.players, this.qbc_1);
|
|
3006
3006
|
if (player.b7p_1.q71().a70_1.isLive) {
|
|
3007
|
-
this.
|
|
3007
|
+
this.tbc_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.rbc_1).ubc(player, table));
|
|
3008
3008
|
} else {
|
|
3009
|
-
var tmp_0 = this.
|
|
3009
|
+
var tmp_0 = this.tbc_1.dispatch;
|
|
3010
3010
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
3011
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
3011
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.qbc_1));
|
|
3012
3012
|
}
|
|
3013
3013
|
return Unit_instance;
|
|
3014
3014
|
} else if (tmp === 1) {
|
|
@@ -3020,34 +3020,34 @@
|
|
|
3020
3020
|
}
|
|
3021
3021
|
while (true);
|
|
3022
3022
|
};
|
|
3023
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
3024
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
3025
|
-
i.
|
|
3026
|
-
i.
|
|
3023
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
3024
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.qbc_1, this.rbc_1, completion);
|
|
3025
|
+
i.sbc_1 = $this$dispatchAsync;
|
|
3026
|
+
i.tbc_1 = store;
|
|
3027
3027
|
return i;
|
|
3028
3028
|
};
|
|
3029
3029
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
3030
3030
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
3031
3031
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3032
|
-
return i.
|
|
3032
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
3033
3033
|
};
|
|
3034
3034
|
l.$arity = 2;
|
|
3035
3035
|
return l;
|
|
3036
3036
|
}
|
|
3037
3037
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
3038
|
-
this.
|
|
3039
|
-
this.
|
|
3038
|
+
this.dbd_1 = this$0;
|
|
3039
|
+
this.ebd_1 = $newRid;
|
|
3040
3040
|
CoroutineImpl.call(this, resultContinuation);
|
|
3041
3041
|
}
|
|
3042
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
3043
|
-
var tmp = this.
|
|
3042
|
+
protoOf(GameServer$roomOnDelete$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
3043
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
3044
3044
|
tmp.k9_1 = Unit_instance;
|
|
3045
3045
|
tmp.l9_1 = null;
|
|
3046
3046
|
return tmp.q9();
|
|
3047
3047
|
};
|
|
3048
3048
|
protoOf(GameServer$roomOnDelete$slambda).da = function (p1, p2, $completion) {
|
|
3049
3049
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3050
|
-
return this.
|
|
3050
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3051
3051
|
};
|
|
3052
3052
|
protoOf(GameServer$roomOnDelete$slambda).q9 = function () {
|
|
3053
3053
|
var suspendResult = this.k9_1;
|
|
@@ -3056,10 +3056,10 @@
|
|
|
3056
3056
|
var tmp = this.i9_1;
|
|
3057
3057
|
if (tmp === 0) {
|
|
3058
3058
|
this.j9_1 = 1;
|
|
3059
|
-
var it = this.
|
|
3059
|
+
var it = this.dbd_1.k6z().k7k_1;
|
|
3060
3060
|
var tmp_0;
|
|
3061
3061
|
if (it == null) {
|
|
3062
|
-
this.
|
|
3062
|
+
this.dbd_1.n5b().w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
3063
3063
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
3064
3064
|
} else {
|
|
3065
3065
|
tmp_0 = it;
|
|
@@ -3068,15 +3068,15 @@
|
|
|
3068
3068
|
var gameTransition = terminationState.oa0_1;
|
|
3069
3069
|
var tmp_1;
|
|
3070
3070
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
3071
|
-
var tmp0_elvis_lhs = this.
|
|
3071
|
+
var tmp0_elvis_lhs = this.ebd_1;
|
|
3072
3072
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
3073
3073
|
} else {
|
|
3074
3074
|
tmp_1 = gameTransition;
|
|
3075
3075
|
}
|
|
3076
3076
|
var transition = tmp_1;
|
|
3077
|
-
var tmp_2 = this.
|
|
3077
|
+
var tmp_2 = this.gbd_1.dispatch;
|
|
3078
3078
|
var tmp0_reason = terminationState.na0_1;
|
|
3079
|
-
var tmp1_isGameFinished = this.
|
|
3079
|
+
var tmp1_isGameFinished = this.dbd_1.k6z().k7l().isGameFinished;
|
|
3080
3080
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
3081
3081
|
return Unit_instance;
|
|
3082
3082
|
} else if (tmp === 1) {
|
|
@@ -3088,33 +3088,33 @@
|
|
|
3088
3088
|
}
|
|
3089
3089
|
while (true);
|
|
3090
3090
|
};
|
|
3091
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
3092
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
3093
|
-
i.
|
|
3094
|
-
i.
|
|
3091
|
+
protoOf(GameServer$roomOnDelete$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
3092
|
+
var i = new GameServer$roomOnDelete$slambda(this.dbd_1, this.ebd_1, completion);
|
|
3093
|
+
i.fbd_1 = $this$dispatchAsync;
|
|
3094
|
+
i.gbd_1 = store;
|
|
3095
3095
|
return i;
|
|
3096
3096
|
};
|
|
3097
3097
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
3098
3098
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
3099
3099
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3100
|
-
return i.
|
|
3100
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
3101
3101
|
};
|
|
3102
3102
|
l.$arity = 2;
|
|
3103
3103
|
return l;
|
|
3104
3104
|
}
|
|
3105
3105
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
3106
|
-
this.
|
|
3106
|
+
this.pbd_1 = $enabled;
|
|
3107
3107
|
CoroutineImpl.call(this, resultContinuation);
|
|
3108
3108
|
}
|
|
3109
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
3110
|
-
var tmp = this.
|
|
3109
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
3110
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
3111
3111
|
tmp.k9_1 = Unit_instance;
|
|
3112
3112
|
tmp.l9_1 = null;
|
|
3113
3113
|
return tmp.q9();
|
|
3114
3114
|
};
|
|
3115
3115
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).da = function (p1, p2, $completion) {
|
|
3116
3116
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3117
|
-
return this.
|
|
3117
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3118
3118
|
};
|
|
3119
3119
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).q9 = function () {
|
|
3120
3120
|
var suspendResult = this.k9_1;
|
|
@@ -3123,7 +3123,7 @@
|
|
|
3123
3123
|
var tmp = this.i9_1;
|
|
3124
3124
|
if (tmp === 0) {
|
|
3125
3125
|
this.j9_1 = 1;
|
|
3126
|
-
this.
|
|
3126
|
+
this.rbd_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.rbd_1.state).config.copy(VOID, !this.pbd_1)));
|
|
3127
3127
|
return Unit_instance;
|
|
3128
3128
|
} else if (tmp === 1) {
|
|
3129
3129
|
throw this.l9_1;
|
|
@@ -3134,35 +3134,35 @@
|
|
|
3134
3134
|
}
|
|
3135
3135
|
while (true);
|
|
3136
3136
|
};
|
|
3137
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
3138
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
3139
|
-
i.
|
|
3140
|
-
i.
|
|
3137
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
3138
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.pbd_1, completion);
|
|
3139
|
+
i.qbd_1 = $this$dispatchAsync;
|
|
3140
|
+
i.rbd_1 = store;
|
|
3141
3141
|
return i;
|
|
3142
3142
|
};
|
|
3143
3143
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
3144
3144
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
3145
3145
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3146
|
-
return i.
|
|
3146
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
3147
3147
|
};
|
|
3148
3148
|
l.$arity = 2;
|
|
3149
3149
|
return l;
|
|
3150
3150
|
}
|
|
3151
3151
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
3152
|
-
this.
|
|
3153
|
-
this.
|
|
3154
|
-
this.
|
|
3152
|
+
this.abe_1 = $reason;
|
|
3153
|
+
this.bbe_1 = this$0;
|
|
3154
|
+
this.cbe_1 = $roomId;
|
|
3155
3155
|
CoroutineImpl.call(this, resultContinuation);
|
|
3156
3156
|
}
|
|
3157
|
-
protoOf(GameServer$shutdown$slambda).
|
|
3158
|
-
var tmp = this.
|
|
3157
|
+
protoOf(GameServer$shutdown$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
3158
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
3159
3159
|
tmp.k9_1 = Unit_instance;
|
|
3160
3160
|
tmp.l9_1 = null;
|
|
3161
3161
|
return tmp.q9();
|
|
3162
3162
|
};
|
|
3163
3163
|
protoOf(GameServer$shutdown$slambda).da = function (p1, p2, $completion) {
|
|
3164
3164
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3165
|
-
return this.
|
|
3165
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3166
3166
|
};
|
|
3167
3167
|
protoOf(GameServer$shutdown$slambda).q9 = function () {
|
|
3168
3168
|
var suspendResult = this.k9_1;
|
|
@@ -3171,11 +3171,11 @@
|
|
|
3171
3171
|
var tmp = this.i9_1;
|
|
3172
3172
|
if (tmp === 0) {
|
|
3173
3173
|
this.j9_1 = 1;
|
|
3174
|
-
var state = this.
|
|
3174
|
+
var state = this.ebe_1.store.state;
|
|
3175
3175
|
if (state.m7l()) {
|
|
3176
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
3176
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.abe_1, get_serverShutdownReasonMapping());
|
|
3177
3177
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
3178
|
-
var tmp_0 = this.
|
|
3178
|
+
var tmp_0 = this.ebe_1.dispatch;
|
|
3179
3179
|
var tmp_1 = Companion_instance;
|
|
3180
3180
|
var tmp_2;
|
|
3181
3181
|
switch (shutdownReason.a1_1) {
|
|
@@ -3189,10 +3189,10 @@
|
|
|
3189
3189
|
noWhenBranchMatchedException();
|
|
3190
3190
|
break;
|
|
3191
3191
|
}
|
|
3192
|
-
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.
|
|
3192
|
+
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.bbe_1.table.isGameFinished, this.bbe_1.table));
|
|
3193
3193
|
} else {
|
|
3194
|
-
this.
|
|
3195
|
-
var tmp_3 = this.
|
|
3194
|
+
this.bbe_1.n5b().w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.cbe_1);
|
|
3195
|
+
var tmp_3 = this.ebe_1.dispatch;
|
|
3196
3196
|
var tmp2_safe_receiver = state.k7k_1;
|
|
3197
3197
|
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.oa0_1));
|
|
3198
3198
|
}
|
|
@@ -3206,37 +3206,37 @@
|
|
|
3206
3206
|
}
|
|
3207
3207
|
while (true);
|
|
3208
3208
|
};
|
|
3209
|
-
protoOf(GameServer$shutdown$slambda).
|
|
3210
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
3211
|
-
i.
|
|
3212
|
-
i.
|
|
3209
|
+
protoOf(GameServer$shutdown$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
3210
|
+
var i = new GameServer$shutdown$slambda(this.abe_1, this.bbe_1, this.cbe_1, completion);
|
|
3211
|
+
i.dbe_1 = $this$dispatchAsync;
|
|
3212
|
+
i.ebe_1 = store;
|
|
3213
3213
|
return i;
|
|
3214
3214
|
};
|
|
3215
3215
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
3216
3216
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
3217
3217
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3218
|
-
return i.
|
|
3218
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
3219
3219
|
};
|
|
3220
3220
|
l.$arity = 2;
|
|
3221
3221
|
return l;
|
|
3222
3222
|
}
|
|
3223
3223
|
function GameServer$handlePlayerMessage$slambda($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation) {
|
|
3224
|
-
this.
|
|
3225
|
-
this.
|
|
3226
|
-
this.
|
|
3227
|
-
this.
|
|
3228
|
-
this.
|
|
3224
|
+
this.nbe_1 = $botChatInteractor;
|
|
3225
|
+
this.obe_1 = $message;
|
|
3226
|
+
this.pbe_1 = $fromPlayerId;
|
|
3227
|
+
this.qbe_1 = $onMessageGenerated;
|
|
3228
|
+
this.rbe_1 = this$0;
|
|
3229
3229
|
CoroutineImpl.call(this, resultContinuation);
|
|
3230
3230
|
}
|
|
3231
|
-
protoOf(GameServer$handlePlayerMessage$slambda).
|
|
3232
|
-
var tmp = this.
|
|
3231
|
+
protoOf(GameServer$handlePlayerMessage$slambda).kb7 = function ($this$dispatchAsync, store, $completion) {
|
|
3232
|
+
var tmp = this.lb7($this$dispatchAsync, store, $completion);
|
|
3233
3233
|
tmp.k9_1 = Unit_instance;
|
|
3234
3234
|
tmp.l9_1 = null;
|
|
3235
3235
|
return tmp.q9();
|
|
3236
3236
|
};
|
|
3237
3237
|
protoOf(GameServer$handlePlayerMessage$slambda).da = function (p1, p2, $completion) {
|
|
3238
3238
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3239
|
-
return this.
|
|
3239
|
+
return this.kb7(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3240
3240
|
};
|
|
3241
3241
|
protoOf(GameServer$handlePlayerMessage$slambda).q9 = function () {
|
|
3242
3242
|
var suspendResult = this.k9_1;
|
|
@@ -3246,18 +3246,18 @@
|
|
|
3246
3246
|
switch (tmp) {
|
|
3247
3247
|
case 0:
|
|
3248
3248
|
this.j9_1 = 3;
|
|
3249
|
-
var state = this.
|
|
3249
|
+
var state = this.tbe_1.store.state;
|
|
3250
3250
|
if (state.m7l()) {
|
|
3251
3251
|
var tmp0_table = state.k7l();
|
|
3252
3252
|
this.i9_1 = 1;
|
|
3253
|
-
suspendResult = this.
|
|
3253
|
+
suspendResult = this.nbe_1.p9o(tmp0_table, this.obe_1, this.pbe_1, VOID, this);
|
|
3254
3254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3255
3255
|
return suspendResult;
|
|
3256
3256
|
}
|
|
3257
3257
|
continue $sm;
|
|
3258
3258
|
} else {
|
|
3259
|
-
this.
|
|
3260
|
-
var tmp_0 = this.
|
|
3259
|
+
this.rbe_1.n5b().w('GameEngine_API', "GameServer: can't generate message without table, " + this.pbe_1);
|
|
3260
|
+
var tmp_0 = this.tbe_1.dispatch;
|
|
3261
3261
|
var tmp1_safe_receiver = state.k7k_1;
|
|
3262
3262
|
tmp_0(new ClearAction(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.oa0_1));
|
|
3263
3263
|
this.i9_1 = 2;
|
|
@@ -3267,7 +3267,7 @@
|
|
|
3267
3267
|
case 1:
|
|
3268
3268
|
var message = suspendResult;
|
|
3269
3269
|
if (!(message == null)) {
|
|
3270
|
-
this.
|
|
3270
|
+
this.qbe_1(message);
|
|
3271
3271
|
}
|
|
3272
3272
|
|
|
3273
3273
|
this.i9_1 = 2;
|
|
@@ -3288,16 +3288,16 @@
|
|
|
3288
3288
|
}
|
|
3289
3289
|
while (true);
|
|
3290
3290
|
};
|
|
3291
|
-
protoOf(GameServer$handlePlayerMessage$slambda).
|
|
3292
|
-
var i = new GameServer$handlePlayerMessage$slambda(this.
|
|
3293
|
-
i.
|
|
3294
|
-
i.
|
|
3291
|
+
protoOf(GameServer$handlePlayerMessage$slambda).lb7 = function ($this$dispatchAsync, store, completion) {
|
|
3292
|
+
var i = new GameServer$handlePlayerMessage$slambda(this.nbe_1, this.obe_1, this.pbe_1, this.qbe_1, this.rbe_1, completion);
|
|
3293
|
+
i.sbe_1 = $this$dispatchAsync;
|
|
3294
|
+
i.tbe_1 = store;
|
|
3295
3295
|
return i;
|
|
3296
3296
|
};
|
|
3297
3297
|
function GameServer$handlePlayerMessage$slambda_0($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation) {
|
|
3298
3298
|
var i = new GameServer$handlePlayerMessage$slambda($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation);
|
|
3299
3299
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3300
|
-
return i.
|
|
3300
|
+
return i.kb7($this$dispatchAsync, store, $completion);
|
|
3301
3301
|
};
|
|
3302
3302
|
l.$arity = 2;
|
|
3303
3303
|
return l;
|
|
@@ -3328,7 +3328,7 @@
|
|
|
3328
3328
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3329
3329
|
var tmp_3 = Instance(di, tmp$ret$2, null);
|
|
3330
3330
|
var tmp_4 = KProperty1;
|
|
3331
|
-
tmp_1.
|
|
3331
|
+
tmp_1.ob3_1 = tmp_3.z6w(this, getPropertyCallableRef('toClientEventsObserver', 1, tmp_4, GameServer$_get_toClientEventsObserver_$ref_utir8s(), null));
|
|
3332
3332
|
var tmp_5 = this;
|
|
3333
3333
|
// Inline function 'org.kodein.di.instance' call
|
|
3334
3334
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3336,7 +3336,7 @@
|
|
|
3336
3336
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3337
3337
|
var tmp_7 = Instance(di, tmp$ret$4, null);
|
|
3338
3338
|
var tmp_8 = KProperty1;
|
|
3339
|
-
tmp_5.
|
|
3339
|
+
tmp_5.pb3_1 = tmp_7.z6w(this, getPropertyCallableRef('fromClientEventsObserver', 1, tmp_8, GameServer$_get_fromClientEventsObserver_$ref_nf1g79(), null));
|
|
3340
3340
|
var tmp_9 = this;
|
|
3341
3341
|
// Inline function 'org.kodein.di.instance' call
|
|
3342
3342
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3344,7 +3344,7 @@
|
|
|
3344
3344
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3345
3345
|
var tmp_11 = Instance(di, tmp$ret$6, null);
|
|
3346
3346
|
var tmp_12 = KProperty1;
|
|
3347
|
-
tmp_9.
|
|
3347
|
+
tmp_9.qb3_1 = tmp_11.z6w(this, getPropertyCallableRef('playerConnectionInteractor', 1, tmp_12, GameServer$_get_playerConnectionInteractor_$ref_of8tan(), null));
|
|
3348
3348
|
var tmp_13 = this;
|
|
3349
3349
|
// Inline function 'org.kodein.di.instance' call
|
|
3350
3350
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3352,7 +3352,7 @@
|
|
|
3352
3352
|
var tmp$ret$8 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3353
3353
|
var tmp_15 = Instance(di, tmp$ret$8, null);
|
|
3354
3354
|
var tmp_16 = KProperty1;
|
|
3355
|
-
tmp_13.
|
|
3355
|
+
tmp_13.rb3_1 = tmp_15.z6w(this, getPropertyCallableRef('teamsLogicProvider', 1, tmp_16, GameServer$_get_teamsLogicProvider_$ref_b7y54g(), null));
|
|
3356
3356
|
var tmp_17 = this;
|
|
3357
3357
|
// Inline function 'org.kodein.di.instance' call
|
|
3358
3358
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3360,9 +3360,9 @@
|
|
|
3360
3360
|
var tmp$ret$10 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3361
3361
|
var tmp_19 = Instance(di, tmp$ret$10, null);
|
|
3362
3362
|
var tmp_20 = KProperty1;
|
|
3363
|
-
tmp_17.
|
|
3363
|
+
tmp_17.sb3_1 = tmp_19.z6w(this, getPropertyCallableRef('userRatingInteractor', 1, tmp_20, GameServer$_get_userRatingInteractor_$ref_8uo6aw(), null));
|
|
3364
3364
|
var tmp_21 = this;
|
|
3365
|
-
tmp_21.
|
|
3365
|
+
tmp_21.tb3_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
3366
3366
|
var tmp_22 = this;
|
|
3367
3367
|
// Inline function 'org.kodein.di.instance' call
|
|
3368
3368
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3370,7 +3370,7 @@
|
|
|
3370
3370
|
var tmp$ret$12 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE();
|
|
3371
3371
|
var tmp_24 = Instance(di, tmp$ret$12, null);
|
|
3372
3372
|
var tmp_25 = KProperty1;
|
|
3373
|
-
tmp_22.
|
|
3373
|
+
tmp_22.ub3_1 = tmp_24.z6w(this, getPropertyCallableRef('idsProvider', 1, tmp_25, GameServer$_get_idsProvider_$ref_89s908(), null));
|
|
3374
3374
|
var tmp_26 = this;
|
|
3375
3375
|
// Inline function 'org.kodein.di.instance' call
|
|
3376
3376
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3378,7 +3378,7 @@
|
|
|
3378
3378
|
var tmp$ret$14 = isInterface(tmp_27, TypeToken) ? tmp_27 : THROW_CCE();
|
|
3379
3379
|
var tmp_28 = Instance(di, tmp$ret$14, null);
|
|
3380
3380
|
var tmp_29 = KProperty1;
|
|
3381
|
-
tmp_26.
|
|
3381
|
+
tmp_26.vb3_1 = tmp_28.z6w(this, getPropertyCallableRef('serverReduxConfig', 1, tmp_29, GameServer$_get_serverReduxConfig_$ref_7h6jq6(), null));
|
|
3382
3382
|
var tmp_30 = this;
|
|
3383
3383
|
// Inline function 'org.kodein.di.instance' call
|
|
3384
3384
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3386,7 +3386,7 @@
|
|
|
3386
3386
|
var tmp$ret$16 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE();
|
|
3387
3387
|
var tmp_32 = Instance(di, tmp$ret$16, null);
|
|
3388
3388
|
var tmp_33 = KProperty1;
|
|
3389
|
-
tmp_30.
|
|
3389
|
+
tmp_30.wb3_1 = tmp_32.z6w(this, getPropertyCallableRef('encoderDecoderProvider', 1, tmp_33, GameServer$_get_encoderDecoderProvider_$ref_6vxmq8(), null));
|
|
3390
3390
|
var tmp_34 = this;
|
|
3391
3391
|
// Inline function 'org.kodein.di.instance' call
|
|
3392
3392
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3394,7 +3394,7 @@
|
|
|
3394
3394
|
var tmp$ret$18 = isInterface(tmp_35, TypeToken) ? tmp_35 : THROW_CCE();
|
|
3395
3395
|
var tmp_36 = Instance(di, tmp$ret$18, null);
|
|
3396
3396
|
var tmp_37 = KProperty1;
|
|
3397
|
-
tmp_34.
|
|
3397
|
+
tmp_34.xb3_1 = tmp_36.z6w(this, getPropertyCallableRef('engineLogicConfig', 1, tmp_37, GameServer$_get_engineLogicConfig_$ref_nlkv2l(), null));
|
|
3398
3398
|
var tmp_38 = this;
|
|
3399
3399
|
// Inline function 'org.kodein.di.instance' call
|
|
3400
3400
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3402,7 +3402,7 @@
|
|
|
3402
3402
|
var tmp$ret$20 = isInterface(tmp_39, TypeToken) ? tmp_39 : THROW_CCE();
|
|
3403
3403
|
var tmp_40 = Instance(di, tmp$ret$20, null);
|
|
3404
3404
|
var tmp_41 = KProperty1;
|
|
3405
|
-
tmp_38.
|
|
3405
|
+
tmp_38.yb3_1 = tmp_40.z6w(this, getPropertyCallableRef('leaguesConfig', 1, tmp_41, GameServer$_get_leaguesConfig_$ref_fi951n(), null));
|
|
3406
3406
|
var tmp_42 = this;
|
|
3407
3407
|
// Inline function 'org.kodein.di.instanceOrNull' call
|
|
3408
3408
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3410,14 +3410,14 @@
|
|
|
3410
3410
|
var tmp$ret$22 = isInterface(tmp_43, TypeToken) ? tmp_43 : THROW_CCE();
|
|
3411
3411
|
var tmp_44 = InstanceOrNull(di, tmp$ret$22, null);
|
|
3412
3412
|
var tmp_45 = KProperty1;
|
|
3413
|
-
tmp_42.
|
|
3413
|
+
tmp_42.zb3_1 = tmp_44.z6w(this, getPropertyCallableRef('botChatInteractor', 1, tmp_45, GameServer$_get_botChatInteractor_$ref_zf10ih(), null));
|
|
3414
3414
|
var tmp_46 = this;
|
|
3415
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
3416
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
3417
|
-
tmp_46.
|
|
3415
|
+
var tmp0_externalMiddlewares = plus(storeContract.ta5(), externalMiddlewares);
|
|
3416
|
+
var tmp1_externalReducers = plus(storeContract.sa5(), externalReducers);
|
|
3417
|
+
tmp_46.ab4_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
3418
3418
|
}
|
|
3419
3419
|
protoOf(GameServer).a7k = function () {
|
|
3420
|
-
return this.
|
|
3420
|
+
return this.ab4_1;
|
|
3421
3421
|
};
|
|
3422
3422
|
protoOf(GameServer).c9j = function () {
|
|
3423
3423
|
return get_serverStatePayload_0(this.k6z()).metadata;
|
|
@@ -3469,17 +3469,17 @@
|
|
|
3469
3469
|
};
|
|
3470
3470
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
3471
3471
|
this.n5b().d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
3472
|
-
this.
|
|
3472
|
+
this.ab4_1.i7l(GameServer$fromClientEvent$slambda_0(action, null));
|
|
3473
3473
|
};
|
|
3474
3474
|
protoOf(GameServer).playerLostConnection = function (playerId, roomId) {
|
|
3475
3475
|
this.n5b().d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
3476
|
-
this.
|
|
3476
|
+
this.ab4_1.i7l(GameServer$playerLostConnection$slambda_0(playerId, roomId, null));
|
|
3477
3477
|
};
|
|
3478
3478
|
protoOf(GameServer).playerLive = function (playerId, roomId) {
|
|
3479
3479
|
this.n5b().d('GameEngine_API', 'playerLive: ' + playerId);
|
|
3480
|
-
this.
|
|
3480
|
+
this.ab4_1.i7l(GameServer$playerLive$slambda_0(this, playerId, roomId, null));
|
|
3481
3481
|
};
|
|
3482
|
-
protoOf(GameServer).
|
|
3482
|
+
protoOf(GameServer).ube = function (playerId, roomId, permanently) {
|
|
3483
3483
|
this.n5b().d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
3484
3484
|
var tmp;
|
|
3485
3485
|
if (this.k6z().m7l() && !this.k6z().k7l().isGameFinished) {
|
|
@@ -3488,33 +3488,33 @@
|
|
|
3488
3488
|
tmp = null;
|
|
3489
3489
|
}
|
|
3490
3490
|
var result = tmp;
|
|
3491
|
-
this.
|
|
3491
|
+
this.ab4_1.i7l(GameServer$playerLeft$slambda_0(this, playerId, permanently, roomId, null));
|
|
3492
3492
|
this.n5b().d('GameEngine_API', 'playerLeft result: ' + toString_0(result));
|
|
3493
3493
|
return result;
|
|
3494
3494
|
};
|
|
3495
|
-
protoOf(GameServer).
|
|
3495
|
+
protoOf(GameServer).vbe = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
3496
3496
|
this.n5b().d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
3497
|
-
this.
|
|
3497
|
+
this.ab4_1.i7l(GameServer$roomOnCreate$slambda_0(usersArray, this, config, roomId, transition, gameCreatorId, spectators, null));
|
|
3498
3498
|
};
|
|
3499
3499
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
3500
3500
|
this.n5b().d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
3501
|
-
var isCreated = this.
|
|
3502
|
-
this.
|
|
3501
|
+
var isCreated = this.ab4_1.j7l(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
3502
|
+
this.ab4_1.i7l(GameServer$roomOnContinueFromState$slambda_2(isCreated, state, null));
|
|
3503
3503
|
};
|
|
3504
3504
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
3505
3505
|
this.n5b().d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
3506
|
-
this.
|
|
3507
|
-
this.
|
|
3506
|
+
this.ab4_1.i7l(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
3507
|
+
this.ab4_1.i7l(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
3508
3508
|
};
|
|
3509
3509
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
3510
|
-
this.
|
|
3510
|
+
this.ab4_1.i7l(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
3511
3511
|
};
|
|
3512
3512
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
3513
|
-
this.
|
|
3513
|
+
this.ab4_1.i7l(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
3514
3514
|
};
|
|
3515
3515
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
3516
3516
|
this.n5b().d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
3517
|
-
this.
|
|
3517
|
+
this.ab4_1.i7l(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
3518
3518
|
};
|
|
3519
3519
|
protoOf(GameServer).getToClientFinishActionBeforeDisconnect = function (playerId, previousState, originState) {
|
|
3520
3520
|
if (!this.isTableExists) {
|
|
@@ -3524,24 +3524,24 @@
|
|
|
3524
3524
|
var table = this.table;
|
|
3525
3525
|
var player = getPlayer(table.players, playerId);
|
|
3526
3526
|
this.n5b().d('GameEngine_API', 'getToClientFinishActionBeforeDisconnect: ' + playerId + ', ' + ('state = ' + player.b7p_1.q71().a70_1.toString() + ', ') + ('isBot = ' + player.a7p_1.isBot));
|
|
3527
|
-
var actions = _get_playerConnectionInteractor__si6cxf(this).
|
|
3527
|
+
var actions = _get_playerConnectionInteractor__si6cxf(this).wbe(playerId, previousState.isLive, table.id, mapToFinishReason(originState, player, table.playersConnections), table.isGameFinished);
|
|
3528
3528
|
this.n5b().d('GameEngine_API', 'getToClientFinishActionBeforeDisconnect: ' + toString(actions));
|
|
3529
3529
|
if (actions.r()) {
|
|
3530
3530
|
return null;
|
|
3531
3531
|
}
|
|
3532
3532
|
return new CombinedToClientAction(actions, Companion_instance_1.user(_get_idsProvider__fnfajc(this).d77(), table.id, playerId));
|
|
3533
3533
|
};
|
|
3534
|
-
protoOf(GameServer).
|
|
3534
|
+
protoOf(GameServer).xbe = function (newRid) {
|
|
3535
3535
|
this.n5b().d('GameEngine_API', 'roomOnDelete: newRid = ' + newRid);
|
|
3536
|
-
this.
|
|
3536
|
+
this.ab4_1.i7l(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
3537
3537
|
};
|
|
3538
3538
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
3539
3539
|
this.n5b().d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
3540
|
-
this.
|
|
3540
|
+
this.ab4_1.i7l(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
3541
3541
|
};
|
|
3542
|
-
protoOf(GameServer).
|
|
3542
|
+
protoOf(GameServer).ybe = function (reason, roomId) {
|
|
3543
3543
|
this.n5b().d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
3544
|
-
this.
|
|
3544
|
+
this.ab4_1.i7l(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
3545
3545
|
};
|
|
3546
3546
|
protoOf(GameServer).handlePlayerMessage = function (message, fromPlayerId, onMessageGenerated) {
|
|
3547
3547
|
var tmp0_elvis_lhs = _get_botChatInteractor__17f3on(this);
|
|
@@ -3553,7 +3553,7 @@
|
|
|
3553
3553
|
}
|
|
3554
3554
|
var botChatInteractor = tmp;
|
|
3555
3555
|
this.n5b().d('GameEngine_API', 'handlePlayerMessage: ' + fromPlayerId);
|
|
3556
|
-
this.
|
|
3556
|
+
this.ab4_1.i7l(GameServer$handlePlayerMessage$slambda_0(botChatInteractor, message, fromPlayerId, onMessageGenerated, this, null));
|
|
3557
3557
|
};
|
|
3558
3558
|
protoOf(GameServer).clear = function () {
|
|
3559
3559
|
return this.c3();
|
|
@@ -3607,13 +3607,13 @@
|
|
|
3607
3607
|
this.shouldFinishGameWhenDeploy = shouldFinishGameWhenDeploy;
|
|
3608
3608
|
this.shouldFinishGameWithBots = shouldFinishGameWithBots;
|
|
3609
3609
|
}
|
|
3610
|
-
protoOf(ServerConfig).
|
|
3610
|
+
protoOf(ServerConfig).zbe = function () {
|
|
3611
3611
|
return this.fromRound;
|
|
3612
3612
|
};
|
|
3613
|
-
protoOf(ServerConfig).
|
|
3613
|
+
protoOf(ServerConfig).abf = function () {
|
|
3614
3614
|
return this.shouldFinishGameWhenDeploy;
|
|
3615
3615
|
};
|
|
3616
|
-
protoOf(ServerConfig).
|
|
3616
|
+
protoOf(ServerConfig).bbf = function () {
|
|
3617
3617
|
return this.shouldFinishGameWithBots;
|
|
3618
3618
|
};
|
|
3619
3619
|
protoOf(ServerConfig).jg = function () {
|
|
@@ -3625,14 +3625,14 @@
|
|
|
3625
3625
|
protoOf(ServerConfig).pn = function () {
|
|
3626
3626
|
return this.shouldFinishGameWithBots;
|
|
3627
3627
|
};
|
|
3628
|
-
protoOf(ServerConfig).
|
|
3628
|
+
protoOf(ServerConfig).cbf = function (fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots) {
|
|
3629
3629
|
return new ServerConfig(fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots);
|
|
3630
3630
|
};
|
|
3631
3631
|
protoOf(ServerConfig).copy = function (fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots, $super) {
|
|
3632
3632
|
fromRound = fromRound === VOID ? this.fromRound : fromRound;
|
|
3633
3633
|
shouldFinishGameWhenDeploy = shouldFinishGameWhenDeploy === VOID ? this.shouldFinishGameWhenDeploy : shouldFinishGameWhenDeploy;
|
|
3634
3634
|
shouldFinishGameWithBots = shouldFinishGameWithBots === VOID ? this.shouldFinishGameWithBots : shouldFinishGameWithBots;
|
|
3635
|
-
return $super === VOID ? this.
|
|
3635
|
+
return $super === VOID ? this.cbf(fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots) : $super.cbf.call(this, fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots);
|
|
3636
3636
|
};
|
|
3637
3637
|
protoOf(ServerConfig).toString = function () {
|
|
3638
3638
|
return 'ServerConfig(fromRound=' + this.fromRound + ', shouldFinishGameWhenDeploy=' + this.shouldFinishGameWhenDeploy + ', shouldFinishGameWithBots=' + this.shouldFinishGameWithBots + ')';
|
|
@@ -3694,20 +3694,20 @@
|
|
|
3694
3694
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.jass.logic.server.data.models.serializable.TableStateUpdateDto', this, 2);
|
|
3695
3695
|
tmp0_serialDesc.u10('roomId', false);
|
|
3696
3696
|
tmp0_serialDesc.u10('table', false);
|
|
3697
|
-
this.
|
|
3697
|
+
this.dbf_1 = tmp0_serialDesc;
|
|
3698
3698
|
}
|
|
3699
|
-
protoOf($serializer).
|
|
3700
|
-
var tmp0_desc = this.
|
|
3699
|
+
protoOf($serializer).ebf = function (encoder, value) {
|
|
3700
|
+
var tmp0_desc = this.dbf_1;
|
|
3701
3701
|
var tmp1_output = encoder.ct(tmp0_desc);
|
|
3702
|
-
tmp1_output.ru(tmp0_desc, 0, value.
|
|
3702
|
+
tmp1_output.ru(tmp0_desc, 0, value.fbf_1);
|
|
3703
3703
|
tmp1_output.ru(tmp0_desc, 1, value.table);
|
|
3704
3704
|
tmp1_output.dt(tmp0_desc);
|
|
3705
3705
|
};
|
|
3706
3706
|
protoOf($serializer).qp = function (encoder, value) {
|
|
3707
|
-
return this.
|
|
3707
|
+
return this.ebf(encoder, value instanceof TableStateUpdateDto ? value : THROW_CCE());
|
|
3708
3708
|
};
|
|
3709
3709
|
protoOf($serializer).rp = function (decoder) {
|
|
3710
|
-
var tmp0_desc = this.
|
|
3710
|
+
var tmp0_desc = this.dbf_1;
|
|
3711
3711
|
var tmp1_flag = true;
|
|
3712
3712
|
var tmp2_index = 0;
|
|
3713
3713
|
var tmp3_bitMask0 = 0;
|
|
@@ -3742,7 +3742,7 @@
|
|
|
3742
3742
|
return TableStateUpdateDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3743
3743
|
};
|
|
3744
3744
|
protoOf($serializer).pp = function () {
|
|
3745
|
-
return this.
|
|
3745
|
+
return this.dbf_1;
|
|
3746
3746
|
};
|
|
3747
3747
|
protoOf($serializer).j11 = function () {
|
|
3748
3748
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3758,9 +3758,9 @@
|
|
|
3758
3758
|
}
|
|
3759
3759
|
function TableStateUpdateDto_init_$Init$(seen0, roomId, table, serializationConstructorMarker, $this) {
|
|
3760
3760
|
if (!(3 === (3 & seen0))) {
|
|
3761
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
3761
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().dbf_1);
|
|
3762
3762
|
}
|
|
3763
|
-
$this.
|
|
3763
|
+
$this.fbf_1 = roomId;
|
|
3764
3764
|
$this.table = table;
|
|
3765
3765
|
return $this;
|
|
3766
3766
|
}
|
|
@@ -3768,17 +3768,17 @@
|
|
|
3768
3768
|
return TableStateUpdateDto_init_$Init$(seen0, roomId, table, serializationConstructorMarker, objectCreate(protoOf(TableStateUpdateDto)));
|
|
3769
3769
|
}
|
|
3770
3770
|
function TableStateUpdateDto(roomId, table) {
|
|
3771
|
-
this.
|
|
3771
|
+
this.fbf_1 = roomId;
|
|
3772
3772
|
this.table = table;
|
|
3773
3773
|
}
|
|
3774
3774
|
protoOf(TableStateUpdateDto).q9f = function () {
|
|
3775
|
-
return this.
|
|
3775
|
+
return this.fbf_1;
|
|
3776
3776
|
};
|
|
3777
3777
|
protoOf(TableStateUpdateDto).k7l = function () {
|
|
3778
3778
|
return this.table;
|
|
3779
3779
|
};
|
|
3780
3780
|
protoOf(TableStateUpdateDto).jg = function () {
|
|
3781
|
-
return this.
|
|
3781
|
+
return this.fbf_1;
|
|
3782
3782
|
};
|
|
3783
3783
|
protoOf(TableStateUpdateDto).kg = function () {
|
|
3784
3784
|
return this.table;
|
|
@@ -3787,15 +3787,15 @@
|
|
|
3787
3787
|
return new TableStateUpdateDto(roomId, table);
|
|
3788
3788
|
};
|
|
3789
3789
|
protoOf(TableStateUpdateDto).copy = function (roomId, table, $super) {
|
|
3790
|
-
roomId = roomId === VOID ? this.
|
|
3790
|
+
roomId = roomId === VOID ? this.fbf_1 : roomId;
|
|
3791
3791
|
table = table === VOID ? this.table : table;
|
|
3792
3792
|
return $super === VOID ? this.a5w(roomId, table) : $super.a5w.call(this, roomId, table);
|
|
3793
3793
|
};
|
|
3794
3794
|
protoOf(TableStateUpdateDto).toString = function () {
|
|
3795
|
-
return 'TableStateUpdateDto(roomId=' + this.
|
|
3795
|
+
return 'TableStateUpdateDto(roomId=' + this.fbf_1 + ', table=' + this.table + ')';
|
|
3796
3796
|
};
|
|
3797
3797
|
protoOf(TableStateUpdateDto).hashCode = function () {
|
|
3798
|
-
var result = getStringHashCode(this.
|
|
3798
|
+
var result = getStringHashCode(this.fbf_1);
|
|
3799
3799
|
result = imul(result, 31) + getStringHashCode(this.table) | 0;
|
|
3800
3800
|
return result;
|
|
3801
3801
|
};
|
|
@@ -3804,7 +3804,7 @@
|
|
|
3804
3804
|
return true;
|
|
3805
3805
|
if (!(other instanceof TableStateUpdateDto))
|
|
3806
3806
|
return false;
|
|
3807
|
-
if (!(this.
|
|
3807
|
+
if (!(this.fbf_1 === other.fbf_1))
|
|
3808
3808
|
return false;
|
|
3809
3809
|
if (!(this.table === other.table))
|
|
3810
3810
|
return false;
|
|
@@ -3820,7 +3820,7 @@
|
|
|
3820
3820
|
// Inline function 'kotlin.arrayOf' call
|
|
3821
3821
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3822
3822
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3823
|
-
tmp.
|
|
3823
|
+
tmp.gbf_1 = [null, lazy_0(tmp_0, ActionsStateUpdateDto$Companion$$childSerializers$_anonymous__oomzzs)];
|
|
3824
3824
|
}
|
|
3825
3825
|
var Companion_instance_14;
|
|
3826
3826
|
function Companion_getInstance_4() {
|
|
@@ -3833,28 +3833,28 @@
|
|
|
3833
3833
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.jass.logic.server.data.models.serializable.ActionsStateUpdateDto', this, 2);
|
|
3834
3834
|
tmp0_serialDesc.u10('roomId', false);
|
|
3835
3835
|
tmp0_serialDesc.u10('actions', false);
|
|
3836
|
-
this.
|
|
3836
|
+
this.hbf_1 = tmp0_serialDesc;
|
|
3837
3837
|
}
|
|
3838
|
-
protoOf($serializer_0).
|
|
3839
|
-
var tmp0_desc = this.
|
|
3838
|
+
protoOf($serializer_0).ibf = function (encoder, value) {
|
|
3839
|
+
var tmp0_desc = this.hbf_1;
|
|
3840
3840
|
var tmp1_output = encoder.ct(tmp0_desc);
|
|
3841
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
3842
|
-
tmp1_output.ru(tmp0_desc, 0, value.
|
|
3841
|
+
var tmp2_cached = Companion_getInstance_4().gbf_1;
|
|
3842
|
+
tmp1_output.ru(tmp0_desc, 0, value.jbf_1);
|
|
3843
3843
|
tmp1_output.tu(tmp0_desc, 1, tmp2_cached[1].o1(), value.actions);
|
|
3844
3844
|
tmp1_output.dt(tmp0_desc);
|
|
3845
3845
|
};
|
|
3846
3846
|
protoOf($serializer_0).qp = function (encoder, value) {
|
|
3847
|
-
return this.
|
|
3847
|
+
return this.ibf(encoder, value instanceof ActionsStateUpdateDto ? value : THROW_CCE());
|
|
3848
3848
|
};
|
|
3849
3849
|
protoOf($serializer_0).rp = function (decoder) {
|
|
3850
|
-
var tmp0_desc = this.
|
|
3850
|
+
var tmp0_desc = this.hbf_1;
|
|
3851
3851
|
var tmp1_flag = true;
|
|
3852
3852
|
var tmp2_index = 0;
|
|
3853
3853
|
var tmp3_bitMask0 = 0;
|
|
3854
3854
|
var tmp4_local0 = null;
|
|
3855
3855
|
var tmp5_local1 = null;
|
|
3856
3856
|
var tmp6_input = decoder.ct(tmp0_desc);
|
|
3857
|
-
var tmp7_cached = Companion_getInstance_4().
|
|
3857
|
+
var tmp7_cached = Companion_getInstance_4().gbf_1;
|
|
3858
3858
|
if (tmp6_input.st()) {
|
|
3859
3859
|
tmp4_local0 = tmp6_input.mt(tmp0_desc, 0);
|
|
3860
3860
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -3883,10 +3883,10 @@
|
|
|
3883
3883
|
return ActionsStateUpdateDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3884
3884
|
};
|
|
3885
3885
|
protoOf($serializer_0).pp = function () {
|
|
3886
|
-
return this.
|
|
3886
|
+
return this.hbf_1;
|
|
3887
3887
|
};
|
|
3888
3888
|
protoOf($serializer_0).j11 = function () {
|
|
3889
|
-
var tmp0_cached = Companion_getInstance_4().
|
|
3889
|
+
var tmp0_cached = Companion_getInstance_4().gbf_1;
|
|
3890
3890
|
// Inline function 'kotlin.arrayOf' call
|
|
3891
3891
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3892
3892
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3900,9 +3900,9 @@
|
|
|
3900
3900
|
}
|
|
3901
3901
|
function ActionsStateUpdateDto_init_$Init$(seen0, roomId, actions, serializationConstructorMarker, $this) {
|
|
3902
3902
|
if (!(3 === (3 & seen0))) {
|
|
3903
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
3903
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().hbf_1);
|
|
3904
3904
|
}
|
|
3905
|
-
$this.
|
|
3905
|
+
$this.jbf_1 = roomId;
|
|
3906
3906
|
$this.actions = actions;
|
|
3907
3907
|
return $this;
|
|
3908
3908
|
}
|
|
@@ -3911,11 +3911,11 @@
|
|
|
3911
3911
|
}
|
|
3912
3912
|
function ActionsStateUpdateDto(roomId, actions) {
|
|
3913
3913
|
Companion_getInstance_4();
|
|
3914
|
-
this.
|
|
3914
|
+
this.jbf_1 = roomId;
|
|
3915
3915
|
this.actions = actions;
|
|
3916
3916
|
}
|
|
3917
3917
|
protoOf(ActionsStateUpdateDto).q9f = function () {
|
|
3918
|
-
return this.
|
|
3918
|
+
return this.jbf_1;
|
|
3919
3919
|
};
|
|
3920
3920
|
protoOf(ActionsStateUpdateDto).d9g = function () {
|
|
3921
3921
|
return this.actions;
|
|
@@ -3927,33 +3927,33 @@
|
|
|
3927
3927
|
return false;
|
|
3928
3928
|
if (!(other instanceof ActionsStateUpdateDto))
|
|
3929
3929
|
THROW_CCE();
|
|
3930
|
-
if (!(this.
|
|
3930
|
+
if (!(this.jbf_1 === other.jbf_1))
|
|
3931
3931
|
return false;
|
|
3932
3932
|
if (!contentEquals(this.actions, other.actions))
|
|
3933
3933
|
return false;
|
|
3934
3934
|
return true;
|
|
3935
3935
|
};
|
|
3936
3936
|
protoOf(ActionsStateUpdateDto).hashCode = function () {
|
|
3937
|
-
var result = getStringHashCode(this.
|
|
3937
|
+
var result = getStringHashCode(this.jbf_1);
|
|
3938
3938
|
result = imul(31, result) + contentHashCode(this.actions) | 0;
|
|
3939
3939
|
return result;
|
|
3940
3940
|
};
|
|
3941
3941
|
protoOf(ActionsStateUpdateDto).jg = function () {
|
|
3942
|
-
return this.
|
|
3942
|
+
return this.jbf_1;
|
|
3943
3943
|
};
|
|
3944
3944
|
protoOf(ActionsStateUpdateDto).kg = function () {
|
|
3945
3945
|
return this.actions;
|
|
3946
3946
|
};
|
|
3947
|
-
protoOf(ActionsStateUpdateDto).
|
|
3947
|
+
protoOf(ActionsStateUpdateDto).kbf = function (roomId, actions) {
|
|
3948
3948
|
return new ActionsStateUpdateDto(roomId, actions);
|
|
3949
3949
|
};
|
|
3950
3950
|
protoOf(ActionsStateUpdateDto).copy = function (roomId, actions, $super) {
|
|
3951
|
-
roomId = roomId === VOID ? this.
|
|
3951
|
+
roomId = roomId === VOID ? this.jbf_1 : roomId;
|
|
3952
3952
|
actions = actions === VOID ? this.actions : actions;
|
|
3953
|
-
return $super === VOID ? this.
|
|
3953
|
+
return $super === VOID ? this.kbf(roomId, actions) : $super.kbf.call(this, roomId, actions);
|
|
3954
3954
|
};
|
|
3955
3955
|
protoOf(ActionsStateUpdateDto).toString = function () {
|
|
3956
|
-
return 'ActionsStateUpdateDto(roomId=' + this.
|
|
3956
|
+
return 'ActionsStateUpdateDto(roomId=' + this.jbf_1 + ', actions=' + toString(this.actions) + ')';
|
|
3957
3957
|
};
|
|
3958
3958
|
function mapToDto_1(_this__u8e3s4, encoderDecoderProvider) {
|
|
3959
3959
|
var tmp;
|
|
@@ -3983,42 +3983,42 @@
|
|
|
3983
3983
|
}
|
|
3984
3984
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3985
3985
|
var tmp$ret$3 = copyToArray(destination);
|
|
3986
|
-
return new ActionsStateUpdateDto(_this__u8e3s4.
|
|
3986
|
+
return new ActionsStateUpdateDto(_this__u8e3s4.lbf_1, tmp$ret$3);
|
|
3987
3987
|
}
|
|
3988
3988
|
function mapToDto_3(_this__u8e3s4, encoderDecoderProvider) {
|
|
3989
|
-
return new TableStateUpdateDto(_this__u8e3s4.
|
|
3989
|
+
return new TableStateUpdateDto(_this__u8e3s4.mbf_1, encoderDecoderProvider.g9n(mapToDto_0(_this__u8e3s4.table)));
|
|
3990
3990
|
}
|
|
3991
3991
|
function ServerStateUpdate() {
|
|
3992
3992
|
}
|
|
3993
3993
|
function TableStateUpdate(roomId, table) {
|
|
3994
|
-
this.
|
|
3994
|
+
this.mbf_1 = roomId;
|
|
3995
3995
|
this.table = table;
|
|
3996
3996
|
}
|
|
3997
3997
|
protoOf(TableStateUpdate).q9f = function () {
|
|
3998
|
-
return this.
|
|
3998
|
+
return this.mbf_1;
|
|
3999
3999
|
};
|
|
4000
4000
|
protoOf(TableStateUpdate).k7l = function () {
|
|
4001
4001
|
return this.table;
|
|
4002
4002
|
};
|
|
4003
4003
|
protoOf(TableStateUpdate).jg = function () {
|
|
4004
|
-
return this.
|
|
4004
|
+
return this.mbf_1;
|
|
4005
4005
|
};
|
|
4006
4006
|
protoOf(TableStateUpdate).kg = function () {
|
|
4007
4007
|
return this.table;
|
|
4008
4008
|
};
|
|
4009
|
-
protoOf(TableStateUpdate).
|
|
4009
|
+
protoOf(TableStateUpdate).nbf = function (roomId, table) {
|
|
4010
4010
|
return new TableStateUpdate(roomId, table);
|
|
4011
4011
|
};
|
|
4012
4012
|
protoOf(TableStateUpdate).copy = function (roomId, table, $super) {
|
|
4013
|
-
roomId = roomId === VOID ? this.
|
|
4013
|
+
roomId = roomId === VOID ? this.mbf_1 : roomId;
|
|
4014
4014
|
table = table === VOID ? this.table : table;
|
|
4015
|
-
return $super === VOID ? this.
|
|
4015
|
+
return $super === VOID ? this.nbf(roomId, table) : $super.nbf.call(this, roomId, table);
|
|
4016
4016
|
};
|
|
4017
4017
|
protoOf(TableStateUpdate).toString = function () {
|
|
4018
|
-
return 'TableStateUpdate(roomId=' + this.
|
|
4018
|
+
return 'TableStateUpdate(roomId=' + this.mbf_1 + ', table=' + this.table.toString() + ')';
|
|
4019
4019
|
};
|
|
4020
4020
|
protoOf(TableStateUpdate).hashCode = function () {
|
|
4021
|
-
var result = getStringHashCode(this.
|
|
4021
|
+
var result = getStringHashCode(this.mbf_1);
|
|
4022
4022
|
result = imul(result, 31) + this.table.hashCode() | 0;
|
|
4023
4023
|
return result;
|
|
4024
4024
|
};
|
|
@@ -4027,18 +4027,18 @@
|
|
|
4027
4027
|
return true;
|
|
4028
4028
|
if (!(other instanceof TableStateUpdate))
|
|
4029
4029
|
return false;
|
|
4030
|
-
if (!(this.
|
|
4030
|
+
if (!(this.mbf_1 === other.mbf_1))
|
|
4031
4031
|
return false;
|
|
4032
4032
|
if (!this.table.equals(other.table))
|
|
4033
4033
|
return false;
|
|
4034
4034
|
return true;
|
|
4035
4035
|
};
|
|
4036
4036
|
function ActionsStateUpdate(roomId, actions) {
|
|
4037
|
-
this.
|
|
4037
|
+
this.lbf_1 = roomId;
|
|
4038
4038
|
this.actions = actions;
|
|
4039
4039
|
}
|
|
4040
4040
|
protoOf(ActionsStateUpdate).q9f = function () {
|
|
4041
|
-
return this.
|
|
4041
|
+
return this.lbf_1;
|
|
4042
4042
|
};
|
|
4043
4043
|
protoOf(ActionsStateUpdate).d9g = function () {
|
|
4044
4044
|
return this.actions;
|
|
@@ -4050,33 +4050,33 @@
|
|
|
4050
4050
|
return false;
|
|
4051
4051
|
if (!(other instanceof ActionsStateUpdate))
|
|
4052
4052
|
THROW_CCE();
|
|
4053
|
-
if (!(this.
|
|
4053
|
+
if (!(this.lbf_1 === other.lbf_1))
|
|
4054
4054
|
return false;
|
|
4055
4055
|
if (!contentEquals(this.actions, other.actions))
|
|
4056
4056
|
return false;
|
|
4057
4057
|
return true;
|
|
4058
4058
|
};
|
|
4059
4059
|
protoOf(ActionsStateUpdate).hashCode = function () {
|
|
4060
|
-
var result = getStringHashCode(this.
|
|
4060
|
+
var result = getStringHashCode(this.lbf_1);
|
|
4061
4061
|
result = imul(31, result) + contentHashCode(this.actions) | 0;
|
|
4062
4062
|
return result;
|
|
4063
4063
|
};
|
|
4064
4064
|
protoOf(ActionsStateUpdate).jg = function () {
|
|
4065
|
-
return this.
|
|
4065
|
+
return this.lbf_1;
|
|
4066
4066
|
};
|
|
4067
4067
|
protoOf(ActionsStateUpdate).kg = function () {
|
|
4068
4068
|
return this.actions;
|
|
4069
4069
|
};
|
|
4070
|
-
protoOf(ActionsStateUpdate).
|
|
4070
|
+
protoOf(ActionsStateUpdate).obf = function (roomId, actions) {
|
|
4071
4071
|
return new ActionsStateUpdate(roomId, actions);
|
|
4072
4072
|
};
|
|
4073
4073
|
protoOf(ActionsStateUpdate).copy = function (roomId, actions, $super) {
|
|
4074
|
-
roomId = roomId === VOID ? this.
|
|
4074
|
+
roomId = roomId === VOID ? this.lbf_1 : roomId;
|
|
4075
4075
|
actions = actions === VOID ? this.actions : actions;
|
|
4076
|
-
return $super === VOID ? this.
|
|
4076
|
+
return $super === VOID ? this.obf(roomId, actions) : $super.obf.call(this, roomId, actions);
|
|
4077
4077
|
};
|
|
4078
4078
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
4079
|
-
return 'ActionsStateUpdate(roomId=' + this.
|
|
4079
|
+
return 'ActionsStateUpdate(roomId=' + this.lbf_1 + ', actions=' + toString(this.actions) + ')';
|
|
4080
4080
|
};
|
|
4081
4081
|
function getServerEngineGameDI(engineBotConfig, engineLogicConfig, dealerConfig, ratingConfig, leaguesConfig, botModelProvider) {
|
|
4082
4082
|
botModelProvider = botModelProvider === VOID ? null : botModelProvider;
|
|
@@ -4405,18 +4405,18 @@
|
|
|
4405
4405
|
function ToClientEventsObserver() {
|
|
4406
4406
|
}
|
|
4407
4407
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
4408
|
-
this.
|
|
4409
|
-
this.
|
|
4408
|
+
this.ybf_1 = this$0;
|
|
4409
|
+
this.zbf_1 = $actions;
|
|
4410
4410
|
CoroutineImpl.call(this, resultContinuation);
|
|
4411
4411
|
}
|
|
4412
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
4413
|
-
var tmp = this.
|
|
4412
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).cbg = function ($this$flow, $completion) {
|
|
4413
|
+
var tmp = this.dbg($this$flow, $completion);
|
|
4414
4414
|
tmp.k9_1 = Unit_instance;
|
|
4415
4415
|
tmp.l9_1 = null;
|
|
4416
4416
|
return tmp.q9();
|
|
4417
4417
|
};
|
|
4418
4418
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).ca = function (p1, $completion) {
|
|
4419
|
-
return this.
|
|
4419
|
+
return this.cbg((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
4420
4420
|
};
|
|
4421
4421
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).q9 = function () {
|
|
4422
4422
|
var suspendResult = this.k9_1;
|
|
@@ -4426,19 +4426,19 @@
|
|
|
4426
4426
|
switch (tmp) {
|
|
4427
4427
|
case 0:
|
|
4428
4428
|
this.j9_1 = 4;
|
|
4429
|
-
this.
|
|
4430
|
-
this.
|
|
4429
|
+
this.ybf_1.ibg_1;
|
|
4430
|
+
this.bbg_1 = transformToEmits(this.ybf_1, this.zbf_1).t();
|
|
4431
4431
|
this.i9_1 = 1;
|
|
4432
4432
|
continue $sm;
|
|
4433
4433
|
case 1:
|
|
4434
|
-
if (!this.
|
|
4434
|
+
if (!this.bbg_1.u()) {
|
|
4435
4435
|
this.i9_1 = 3;
|
|
4436
4436
|
continue $sm;
|
|
4437
4437
|
}
|
|
4438
4438
|
|
|
4439
|
-
var element = this.
|
|
4439
|
+
var element = this.bbg_1.v();
|
|
4440
4440
|
this.i9_1 = 2;
|
|
4441
|
-
suspendResult = this.
|
|
4441
|
+
suspendResult = this.abg_1.o2b(element, this);
|
|
4442
4442
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4443
4443
|
return suspendResult;
|
|
4444
4444
|
}
|
|
@@ -4448,11 +4448,11 @@
|
|
|
4448
4448
|
this.i9_1 = 1;
|
|
4449
4449
|
continue $sm;
|
|
4450
4450
|
case 3:
|
|
4451
|
-
var tmp0 = this.
|
|
4451
|
+
var tmp0 = this.ybf_1.hbg_1;
|
|
4452
4452
|
l$ret$1: do {
|
|
4453
4453
|
while (true) {
|
|
4454
4454
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
4455
|
-
var upd = cur - this.
|
|
4455
|
+
var upd = cur - this.zbf_1.g1() | 0;
|
|
4456
4456
|
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
4457
4457
|
break l$ret$1;
|
|
4458
4458
|
}
|
|
@@ -4474,15 +4474,15 @@
|
|
|
4474
4474
|
}
|
|
4475
4475
|
while (true);
|
|
4476
4476
|
};
|
|
4477
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
4478
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
4479
|
-
i.
|
|
4477
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).dbg = function ($this$flow, completion) {
|
|
4478
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.ybf_1, this.zbf_1, completion);
|
|
4479
|
+
i.abg_1 = $this$flow;
|
|
4480
4480
|
return i;
|
|
4481
4481
|
};
|
|
4482
4482
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
4483
4483
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
4484
4484
|
var l = function ($this$flow, $completion) {
|
|
4485
|
-
return i.
|
|
4485
|
+
return i.cbg($this$flow, $completion);
|
|
4486
4486
|
};
|
|
4487
4487
|
l.$arity = 1;
|
|
4488
4488
|
return l;
|
|
@@ -4552,29 +4552,29 @@
|
|
|
4552
4552
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
4553
4553
|
}
|
|
4554
4554
|
function mapFromGroupKey($this, _this__u8e3s4) {
|
|
4555
|
-
var tmp = $this.
|
|
4555
|
+
var tmp = $this.gbg_1.d77();
|
|
4556
4556
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4557
|
-
var this_0 = _this__u8e3s4.
|
|
4557
|
+
var this_0 = _this__u8e3s4.lbg_1;
|
|
4558
4558
|
var tmp_0 = copyToArray(this_0);
|
|
4559
4559
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4560
|
-
var this_1 = _this__u8e3s4.
|
|
4560
|
+
var this_1 = _this__u8e3s4.mbg_1;
|
|
4561
4561
|
var tmp$ret$1 = copyToArray(this_1);
|
|
4562
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
4562
|
+
return new ActionDeliveryPayload(_this__u8e3s4.kbg_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.nbg_1);
|
|
4563
4563
|
}
|
|
4564
4564
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
4565
|
-
this.
|
|
4566
|
-
this.
|
|
4567
|
-
this.
|
|
4568
|
-
this.
|
|
4565
|
+
this.kbg_1 = tableId;
|
|
4566
|
+
this.lbg_1 = includePlayers;
|
|
4567
|
+
this.mbg_1 = excludePlayers;
|
|
4568
|
+
this.nbg_1 = deliveryType;
|
|
4569
4569
|
}
|
|
4570
4570
|
protoOf(GroupKey).toString = function () {
|
|
4571
|
-
return 'GroupKey(tableId=' + this.
|
|
4571
|
+
return 'GroupKey(tableId=' + this.kbg_1 + ', includePlayers=' + toString(this.lbg_1) + ', excludePlayers=' + toString(this.mbg_1) + ', deliveryType=' + this.nbg_1.toString() + ')';
|
|
4572
4572
|
};
|
|
4573
4573
|
protoOf(GroupKey).hashCode = function () {
|
|
4574
|
-
var result = getStringHashCode(this.
|
|
4575
|
-
result = imul(result, 31) + hashCode(this.kbg_1) | 0;
|
|
4574
|
+
var result = getStringHashCode(this.kbg_1);
|
|
4576
4575
|
result = imul(result, 31) + hashCode(this.lbg_1) | 0;
|
|
4577
|
-
result = imul(result, 31) + this.mbg_1
|
|
4576
|
+
result = imul(result, 31) + hashCode(this.mbg_1) | 0;
|
|
4577
|
+
result = imul(result, 31) + this.nbg_1.hashCode() | 0;
|
|
4578
4578
|
return result;
|
|
4579
4579
|
};
|
|
4580
4580
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -4582,35 +4582,35 @@
|
|
|
4582
4582
|
return true;
|
|
4583
4583
|
if (!(other instanceof GroupKey))
|
|
4584
4584
|
return false;
|
|
4585
|
-
if (!(this.
|
|
4586
|
-
return false;
|
|
4587
|
-
if (!equals(this.kbg_1, other.kbg_1))
|
|
4585
|
+
if (!(this.kbg_1 === other.kbg_1))
|
|
4588
4586
|
return false;
|
|
4589
4587
|
if (!equals(this.lbg_1, other.lbg_1))
|
|
4590
4588
|
return false;
|
|
4591
|
-
if (!this.mbg_1
|
|
4589
|
+
if (!equals(this.mbg_1, other.mbg_1))
|
|
4590
|
+
return false;
|
|
4591
|
+
if (!this.nbg_1.equals(other.nbg_1))
|
|
4592
4592
|
return false;
|
|
4593
4593
|
return true;
|
|
4594
4594
|
};
|
|
4595
4595
|
function Companion_4() {
|
|
4596
|
-
this.
|
|
4596
|
+
this.obg_1 = 6;
|
|
4597
4597
|
}
|
|
4598
4598
|
var Companion_instance_15;
|
|
4599
4599
|
function Companion_getInstance_5() {
|
|
4600
4600
|
return Companion_instance_15;
|
|
4601
4601
|
}
|
|
4602
4602
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
4603
|
-
this.
|
|
4603
|
+
this.xbg_1 = this$0;
|
|
4604
4604
|
CoroutineImpl.call(this, resultContinuation);
|
|
4605
4605
|
}
|
|
4606
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
4607
|
-
var tmp = this.
|
|
4606
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).zbg = function (actions, $completion) {
|
|
4607
|
+
var tmp = this.abh(actions, $completion);
|
|
4608
4608
|
tmp.k9_1 = Unit_instance;
|
|
4609
4609
|
tmp.l9_1 = null;
|
|
4610
4610
|
return tmp.q9();
|
|
4611
4611
|
};
|
|
4612
4612
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ca = function (p1, $completion) {
|
|
4613
|
-
return this.
|
|
4613
|
+
return this.zbg((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
4614
4614
|
};
|
|
4615
4615
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).q9 = function () {
|
|
4616
4616
|
var suspendResult = this.k9_1;
|
|
@@ -4619,7 +4619,7 @@
|
|
|
4619
4619
|
var tmp = this.i9_1;
|
|
4620
4620
|
if (tmp === 0) {
|
|
4621
4621
|
this.j9_1 = 1;
|
|
4622
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
4622
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.xbg_1, this.ybg_1, null));
|
|
4623
4623
|
} else if (tmp === 1) {
|
|
4624
4624
|
throw this.l9_1;
|
|
4625
4625
|
}
|
|
@@ -4629,23 +4629,23 @@
|
|
|
4629
4629
|
}
|
|
4630
4630
|
while (true);
|
|
4631
4631
|
};
|
|
4632
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
4633
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
4634
|
-
i.
|
|
4632
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).abh = function (actions, completion) {
|
|
4633
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.xbg_1, completion);
|
|
4634
|
+
i.ybg_1 = actions;
|
|
4635
4635
|
return i;
|
|
4636
4636
|
};
|
|
4637
4637
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
4638
4638
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
4639
4639
|
var l = function (actions, $completion) {
|
|
4640
|
-
return i.
|
|
4640
|
+
return i.zbg(actions, $completion);
|
|
4641
4641
|
};
|
|
4642
4642
|
l.$arity = 1;
|
|
4643
4643
|
return l;
|
|
4644
4644
|
}
|
|
4645
4645
|
function $sentEventCOROUTINE$(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
4646
4646
|
CoroutineImpl.call(this, resultContinuation);
|
|
4647
|
-
this.
|
|
4648
|
-
this.
|
|
4647
|
+
this.jbh_1 = _this__u8e3s4;
|
|
4648
|
+
this.kbh_1 = fromEvent;
|
|
4649
4649
|
}
|
|
4650
4650
|
protoOf($sentEventCOROUTINE$).q9 = function () {
|
|
4651
4651
|
var suspendResult = this.k9_1;
|
|
@@ -4655,8 +4655,8 @@
|
|
|
4655
4655
|
switch (tmp) {
|
|
4656
4656
|
case 0:
|
|
4657
4657
|
this.j9_1 = 2;
|
|
4658
|
-
this.
|
|
4659
|
-
var tmp0 = this.
|
|
4658
|
+
this.jbh_1.ibg_1;
|
|
4659
|
+
var tmp0 = this.jbh_1.hbg_1;
|
|
4660
4660
|
l$ret$1: do {
|
|
4661
4661
|
while (true) {
|
|
4662
4662
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
@@ -4668,7 +4668,7 @@
|
|
|
4668
4668
|
}
|
|
4669
4669
|
while (false);
|
|
4670
4670
|
this.i9_1 = 1;
|
|
4671
|
-
suspendResult = this.
|
|
4671
|
+
suspendResult = this.jbh_1.jbg_1.o2b(this.kbh_1, this);
|
|
4672
4672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4673
4673
|
return suspendResult;
|
|
4674
4674
|
}
|
|
@@ -4692,7 +4692,7 @@
|
|
|
4692
4692
|
};
|
|
4693
4693
|
function $waitForCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
4694
4694
|
CoroutineImpl.call(this, resultContinuation);
|
|
4695
|
-
this.
|
|
4695
|
+
this.tbh_1 = _this__u8e3s4;
|
|
4696
4696
|
}
|
|
4697
4697
|
protoOf($waitForCOROUTINE$).q9 = function () {
|
|
4698
4698
|
var suspendResult = this.k9_1;
|
|
@@ -4702,12 +4702,12 @@
|
|
|
4702
4702
|
switch (tmp) {
|
|
4703
4703
|
case 0:
|
|
4704
4704
|
this.j9_1 = 5;
|
|
4705
|
-
this.
|
|
4706
|
-
this.
|
|
4705
|
+
this.tbh_1.ibg_1;
|
|
4706
|
+
this.ubh_1 = 0;
|
|
4707
4707
|
this.i9_1 = 1;
|
|
4708
4708
|
continue $sm;
|
|
4709
4709
|
case 1:
|
|
4710
|
-
if (!!(this.
|
|
4710
|
+
if (!!(this.tbh_1.hbg_1.kotlinx$atomicfu$value === 0)) {
|
|
4711
4711
|
this.i9_1 = 4;
|
|
4712
4712
|
continue $sm;
|
|
4713
4713
|
}
|
|
@@ -4720,9 +4720,9 @@
|
|
|
4720
4720
|
|
|
4721
4721
|
continue $sm;
|
|
4722
4722
|
case 2:
|
|
4723
|
-
this.
|
|
4724
|
-
if (this.
|
|
4725
|
-
this.
|
|
4723
|
+
this.ubh_1 = this.ubh_1 + 1 | 0;
|
|
4724
|
+
if (this.ubh_1 > 6) {
|
|
4725
|
+
this.tbh_1.fbg_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, " + ('not delivered events count = ' + this.tbh_1.hbg_1.kotlinx$atomicfu$value));
|
|
4726
4726
|
this.i9_1 = 4;
|
|
4727
4727
|
continue $sm;
|
|
4728
4728
|
} else {
|
|
@@ -4750,54 +4750,54 @@
|
|
|
4750
4750
|
while (true);
|
|
4751
4751
|
};
|
|
4752
4752
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
4753
|
-
this.
|
|
4754
|
-
this.
|
|
4755
|
-
this.
|
|
4756
|
-
this.
|
|
4753
|
+
this.ebg_1 = serverReduxConfig;
|
|
4754
|
+
this.fbg_1 = logger;
|
|
4755
|
+
this.gbg_1 = idsProvider;
|
|
4756
|
+
this.hbg_1 = atomic$ref$1(0);
|
|
4757
4757
|
var tmp = this;
|
|
4758
4758
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
4759
|
-
tmp.
|
|
4760
|
-
this.
|
|
4759
|
+
tmp.ibg_1 = get_atomicfu$reentrantLock();
|
|
4760
|
+
this.jbg_1 = MutableSharedFlow();
|
|
4761
4761
|
}
|
|
4762
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4762
|
+
protoOf(ToClientEventsObserverImpl).pbf = function (fromEvent, $completion) {
|
|
4763
4763
|
var tmp = new $sentEventCOROUTINE$(this, fromEvent, $completion);
|
|
4764
4764
|
tmp.k9_1 = Unit_instance;
|
|
4765
4765
|
tmp.l9_1 = null;
|
|
4766
4766
|
return tmp.q9();
|
|
4767
4767
|
};
|
|
4768
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4768
|
+
protoOf(ToClientEventsObserverImpl).vae = function ($completion) {
|
|
4769
4769
|
var tmp = new $waitForCOROUTINE$(this, $completion);
|
|
4770
4770
|
tmp.k9_1 = Unit_instance;
|
|
4771
4771
|
tmp.l9_1 = null;
|
|
4772
4772
|
return tmp.q9();
|
|
4773
4773
|
};
|
|
4774
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4775
|
-
if (!this.
|
|
4776
|
-
return this.
|
|
4774
|
+
protoOf(ToClientEventsObserverImpl).tb4 = function () {
|
|
4775
|
+
if (!this.ebg_1.enabledCombinedEvents) {
|
|
4776
|
+
return this.jbg_1;
|
|
4777
4777
|
}
|
|
4778
|
-
var tmp = windowedByInterval(this.
|
|
4778
|
+
var tmp = windowedByInterval(this.jbg_1, fromInt(this.ebg_1.combinedEventsIntervalMillis));
|
|
4779
4779
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
4780
4780
|
};
|
|
4781
4781
|
function PlayerConnectionInteractor() {
|
|
4782
4782
|
}
|
|
4783
4783
|
function waitPlayerOrDisconnect($this, newConnectionState, previousConnectionState, table, player, waitForPlayer) {
|
|
4784
|
-
if (waitForPlayer && $this.
|
|
4784
|
+
if (waitForPlayer && $this.abi_1.waitForPlayerToReconnect) {
|
|
4785
4785
|
Companion_getInstance();
|
|
4786
4786
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4787
|
-
var this_0 = $this.
|
|
4787
|
+
var this_0 = $this.abi_1.reconnectionCheckDurationMillis;
|
|
4788
4788
|
var reconnectionCheckDurationMillis = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4789
4789
|
var noRecentReconnects = Duration__compareTo_impl_pchp0f(table.gameDuration, reconnectionCheckDurationMillis) < 0 || player.b7p_1.q71().k70(reconnectionCheckDurationMillis);
|
|
4790
4790
|
if (noRecentReconnects) {
|
|
4791
|
-
return $this.
|
|
4791
|
+
return $this.wbh(player.playerId, newConnectionState, previousConnectionState);
|
|
4792
4792
|
}
|
|
4793
4793
|
}
|
|
4794
|
-
var canRemoveGameWhenNoPlayers = Companion_instance_2.z7o($this.
|
|
4794
|
+
var canRemoveGameWhenNoPlayers = Companion_instance_2.z7o($this.abi_1.finishGameWhenNotLiveStrategy, player.playerId, table.players);
|
|
4795
4795
|
if (canRemoveGameWhenNoPlayers) {
|
|
4796
|
-
return listOf($this.
|
|
4796
|
+
return listOf($this.ebi_1.l9u(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: No Players to continue game'));
|
|
4797
4797
|
}
|
|
4798
4798
|
if (table.sceneInfo.s8b()) {
|
|
4799
|
-
if (!$this.
|
|
4800
|
-
return listOf($this.
|
|
4799
|
+
if (!$this.bbi_1.openRoomIfFinished) {
|
|
4800
|
+
return listOf($this.ebi_1.l9u(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: Game is finished'));
|
|
4801
4801
|
}
|
|
4802
4802
|
// Inline function 'kotlin.collections.filter' call
|
|
4803
4803
|
var tmp0 = table.players;
|
|
@@ -4872,27 +4872,27 @@
|
|
|
4872
4872
|
}
|
|
4873
4873
|
var readyLivePlayers = destination_3;
|
|
4874
4874
|
var usersToJoinRoomSize = table.players.g1() - notAlivePlayers.g1() | 0;
|
|
4875
|
-
if ($this.
|
|
4876
|
-
return listOf($this.
|
|
4875
|
+
if ($this.bbi_1.minPlayersToOpenRoom >= usersToJoinRoomSize) {
|
|
4876
|
+
return listOf($this.ebi_1.l9u(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: Not enough users to create room'));
|
|
4877
4877
|
}
|
|
4878
4878
|
var allPlayersMadeDecision = (readyLivePlayers.g1() + notAlivePlayers.g1() | 0) === table.players.g1();
|
|
4879
4879
|
if (allPlayersMadeDecision) {
|
|
4880
|
-
var tmp0_$this = $this.
|
|
4880
|
+
var tmp0_$this = $this.ebi_1;
|
|
4881
4881
|
var tmp1_reason = mapToFinishReason(newConnectionState, player, table.playersConnections);
|
|
4882
4882
|
return listOf(tmp0_$this.k9u(tmp1_reason, table, 'Disconnect: Game is finished, transition to room', readyLivePlayers));
|
|
4883
4883
|
}
|
|
4884
4884
|
}
|
|
4885
|
-
if (!$this.
|
|
4886
|
-
return listOf($this.
|
|
4885
|
+
if (!$this.abi_1.botReplacesPlayerAfterTimeout) {
|
|
4886
|
+
return listOf($this.ebi_1.l9u(mapToFinishReason(newConnectionState, player, table.playersConnections), table, "Disconnect: Can't continue game without bots"));
|
|
4887
4887
|
}
|
|
4888
4888
|
return getPlayerDisconnectedActions($this, newConnectionState, previousConnectionState, player);
|
|
4889
4889
|
}
|
|
4890
4890
|
function getPlayerConnectedActions($this, player, table, previousConnectionState) {
|
|
4891
4891
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4892
4892
|
var actionsList = ArrayList_init_$Create$_0();
|
|
4893
|
-
actionsList.i1(listOf_0([new PlayerConnectionChangedMechanicAction(player.playerId, PlayerConnectionState_LIVE_getInstance(), previousConnectionState), $this.
|
|
4893
|
+
actionsList.i1(listOf_0([new PlayerConnectionChangedMechanicAction(player.playerId, PlayerConnectionState_LIVE_getInstance(), previousConnectionState), $this.xbh(player, table, previousConnectionState)]));
|
|
4894
4894
|
if (player.b7p_1.z6z()) {
|
|
4895
|
-
actionsList.i1(listOf_0([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.b7p_1.g71())), new StartTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.b7p_1.g71(), true), _Duration___get_inWholeMilliseconds__impl__msfiry($this.
|
|
4895
|
+
actionsList.i1(listOf_0([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.b7p_1.g71())), new StartTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.b7p_1.g71(), true), _Duration___get_inWholeMilliseconds__impl__msfiry($this.cbi_1.nak(table.config)), VOID, TimerType_DELAY_getInstance())]));
|
|
4896
4896
|
}
|
|
4897
4897
|
return actionsList;
|
|
4898
4898
|
}
|
|
@@ -4921,13 +4921,13 @@
|
|
|
4921
4921
|
};
|
|
4922
4922
|
}
|
|
4923
4923
|
function PlayerConnectionInteractorImpl(serverConfig, engineLogicConfig, playerTurnMechanicReducer, idsProvider, gameLifecycleInteractor) {
|
|
4924
|
-
this.
|
|
4925
|
-
this.
|
|
4926
|
-
this.
|
|
4927
|
-
this.
|
|
4928
|
-
this.
|
|
4924
|
+
this.abi_1 = serverConfig;
|
|
4925
|
+
this.bbi_1 = engineLogicConfig;
|
|
4926
|
+
this.cbi_1 = playerTurnMechanicReducer;
|
|
4927
|
+
this.dbi_1 = idsProvider;
|
|
4928
|
+
this.ebi_1 = gameLifecycleInteractor;
|
|
4929
4929
|
}
|
|
4930
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4930
|
+
protoOf(PlayerConnectionInteractorImpl).vbh = function (newConnectionState, previousConnectionState, player, table, afterReconnection) {
|
|
4931
4931
|
var tmp;
|
|
4932
4932
|
switch (newConnectionState.a1_1) {
|
|
4933
4933
|
case 1:
|
|
@@ -4960,18 +4960,18 @@
|
|
|
4960
4960
|
}
|
|
4961
4961
|
return tmp;
|
|
4962
4962
|
};
|
|
4963
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4963
|
+
protoOf(PlayerConnectionInteractorImpl).wbe = function (sendToPlayerId, isLive, tableId, reason, isGameFinished) {
|
|
4964
4964
|
if (!isLive) {
|
|
4965
4965
|
return emptyList();
|
|
4966
4966
|
}
|
|
4967
|
-
var tmp0_deliveryPayload = Companion_instance_1.user(this.
|
|
4967
|
+
var tmp0_deliveryPayload = Companion_instance_1.user(this.dbi_1.d77(), tableId, sendToPlayerId);
|
|
4968
4968
|
var tmp = new FinishingGameToClientAction(reason, isGameFinished, null, tmp0_deliveryPayload);
|
|
4969
|
-
var tmp1_deliveryPayload = Companion_instance_1.user(this.
|
|
4969
|
+
var tmp1_deliveryPayload = Companion_instance_1.user(this.dbi_1.d77(), tableId, sendToPlayerId);
|
|
4970
4970
|
return listOf_0([tmp, new FinishGameToClientAction(reason, isGameFinished, null, tmp1_deliveryPayload)]);
|
|
4971
4971
|
};
|
|
4972
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4973
|
-
var updatedTable = this.
|
|
4974
|
-
var aid = this.
|
|
4972
|
+
protoOf(PlayerConnectionInteractorImpl).xbh = function (sendToPlayer, table, previousConnectionState) {
|
|
4973
|
+
var updatedTable = this.cbi_1.oai(table, sendToPlayer.playerId, PlayerConnectionState_LIVE_getInstance(), null);
|
|
4974
|
+
var aid = this.dbi_1.d77();
|
|
4975
4975
|
var tmp;
|
|
4976
4976
|
if (equals(previousConnectionState, PlayerConnectionState_WAITING_getInstance())) {
|
|
4977
4977
|
tmp = GameStartReason_getInstance();
|
|
@@ -4996,8 +4996,8 @@
|
|
|
4996
4996
|
var tmp5_table = mapToClient(updatedTable, UserActionPayload_init_$Create$(aid, tmp2_tableId, tmp1_gameCreatorPlayerId, tmp0_playerId, destination));
|
|
4997
4997
|
return new ContinueGameToClientAction(tmp5_table, reason, null, null, tmp4_deliveryPayload);
|
|
4998
4998
|
};
|
|
4999
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
5000
|
-
var aid = this.
|
|
4999
|
+
protoOf(PlayerConnectionInteractorImpl).ybh = function (sendToPlayerId, table) {
|
|
5000
|
+
var aid = this.dbi_1.d77();
|
|
5001
5001
|
var gameCreatorPlayerId = getGameCreator(table.players).playerId;
|
|
5002
5002
|
// Inline function 'kotlin.collections.single' call
|
|
5003
5003
|
var single = null;
|
|
@@ -5020,24 +5020,24 @@
|
|
|
5020
5020
|
var tmp2_reason = new SpectatorJoinedReason(sendToPlayerId);
|
|
5021
5021
|
return new ContinueGameToClientAction(tmp1_table, tmp2_reason, null, spectator, tmp0_deliveryPayload);
|
|
5022
5022
|
};
|
|
5023
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
5023
|
+
protoOf(PlayerConnectionInteractorImpl).wbh = function (playerId, newConnectionState, previousConnectionState) {
|
|
5024
5024
|
var tmp = System_instance.jl();
|
|
5025
5025
|
Companion_getInstance();
|
|
5026
5026
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
5027
|
-
var this_0 = this.
|
|
5027
|
+
var this_0 = this.abi_1.waitForPlayerToReconnectTimeOutMillis;
|
|
5028
5028
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
5029
5029
|
var reconnectUntilTime = tmp.hm(tmp$ret$0);
|
|
5030
5030
|
var tmp0_state = PlayerConnectionState_DISCONNECTING_getInstance();
|
|
5031
5031
|
var tmp1_reconnectUntilTime = reconnectUntilTime.toString();
|
|
5032
|
-
return listOf_0([new PlayerConnectionChangedMechanicAction(playerId, tmp0_state, previousConnectionState, newConnectionState, false, tmp1_reconnectUntilTime), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(playerId, newConnectionState, previousConnectionState), fromInt(this.
|
|
5032
|
+
return listOf_0([new PlayerConnectionChangedMechanicAction(playerId, tmp0_state, previousConnectionState, newConnectionState, false, tmp1_reconnectUntilTime), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(playerId, newConnectionState, previousConnectionState), fromInt(this.abi_1.waitForPlayerToReconnectTimeOutMillis), VOID, TimerType_DELAY_getInstance())]);
|
|
5033
5033
|
};
|
|
5034
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
5034
|
+
protoOf(PlayerConnectionInteractorImpl).zbh = function (isBot, playerId, connectedPlayers) {
|
|
5035
5035
|
var tmp;
|
|
5036
5036
|
if (isBot) {
|
|
5037
5037
|
tmp = Companion_instance_3.f70(PlayerConnectionState_LEFT_PERMANENTLY_getInstance());
|
|
5038
5038
|
} else {
|
|
5039
5039
|
var tmp_0;
|
|
5040
|
-
if (this.
|
|
5040
|
+
if (this.abi_1.waitForPlayerToConnectOnStart) {
|
|
5041
5041
|
var tmp_1;
|
|
5042
5042
|
if (connectedPlayers.m2(playerId)) {
|
|
5043
5043
|
tmp_1 = Companion_instance_3.f70(PlayerConnectionState_LIVE_getInstance());
|
|
@@ -5053,154 +5053,154 @@
|
|
|
5053
5053
|
return tmp;
|
|
5054
5054
|
};
|
|
5055
5055
|
function UpdateServerConfigAction(serverConfig) {
|
|
5056
|
-
this.
|
|
5056
|
+
this.fbi_1 = serverConfig;
|
|
5057
5057
|
}
|
|
5058
5058
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
5059
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
5059
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.fbi_1.toString() + ')';
|
|
5060
5060
|
};
|
|
5061
5061
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
5062
|
-
return this.
|
|
5062
|
+
return this.fbi_1.hashCode();
|
|
5063
5063
|
};
|
|
5064
5064
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
5065
5065
|
if (this === other)
|
|
5066
5066
|
return true;
|
|
5067
5067
|
if (!(other instanceof UpdateServerConfigAction))
|
|
5068
5068
|
return false;
|
|
5069
|
-
if (!this.
|
|
5069
|
+
if (!this.fbi_1.equals(other.fbi_1))
|
|
5070
5070
|
return false;
|
|
5071
5071
|
return true;
|
|
5072
5072
|
};
|
|
5073
5073
|
function SpectatorsAction() {
|
|
5074
5074
|
}
|
|
5075
5075
|
function AddSpectatorsAction(spectators) {
|
|
5076
|
-
this.
|
|
5076
|
+
this.gbi_1 = spectators;
|
|
5077
5077
|
}
|
|
5078
5078
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
5079
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
5079
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.gbi_1) + ')';
|
|
5080
5080
|
};
|
|
5081
5081
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
5082
|
-
return hashCode(this.
|
|
5082
|
+
return hashCode(this.gbi_1);
|
|
5083
5083
|
};
|
|
5084
5084
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
5085
5085
|
if (this === other)
|
|
5086
5086
|
return true;
|
|
5087
5087
|
if (!(other instanceof AddSpectatorsAction))
|
|
5088
5088
|
return false;
|
|
5089
|
-
if (!equals(this.
|
|
5089
|
+
if (!equals(this.gbi_1, other.gbi_1))
|
|
5090
5090
|
return false;
|
|
5091
5091
|
return true;
|
|
5092
5092
|
};
|
|
5093
5093
|
function RemoveSpectatorsAction(spectators) {
|
|
5094
|
-
this.
|
|
5094
|
+
this.hbi_1 = spectators;
|
|
5095
5095
|
}
|
|
5096
5096
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
5097
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
5097
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.hbi_1) + ')';
|
|
5098
5098
|
};
|
|
5099
5099
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
5100
|
-
return hashCode(this.
|
|
5100
|
+
return hashCode(this.hbi_1);
|
|
5101
5101
|
};
|
|
5102
5102
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
5103
5103
|
if (this === other)
|
|
5104
5104
|
return true;
|
|
5105
5105
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
5106
5106
|
return false;
|
|
5107
|
-
if (!equals(this.
|
|
5107
|
+
if (!equals(this.hbi_1, other.hbi_1))
|
|
5108
5108
|
return false;
|
|
5109
5109
|
return true;
|
|
5110
5110
|
};
|
|
5111
5111
|
function _get_asyncProvider__jbpyhw($this) {
|
|
5112
|
-
var tmp0 = $this.
|
|
5112
|
+
var tmp0 = $this.nbi_1;
|
|
5113
5113
|
var tmp = KProperty1;
|
|
5114
5114
|
// Inline function 'kotlin.getValue' call
|
|
5115
5115
|
getPropertyCallableRef('asyncProvider', 1, tmp, ServerGameStoreContract$_get_asyncProvider_$ref_1q7po3_0(), null);
|
|
5116
5116
|
return tmp0.o1();
|
|
5117
5117
|
}
|
|
5118
5118
|
function _get_logger__rkp4sl($this) {
|
|
5119
|
-
var tmp0 = $this.
|
|
5119
|
+
var tmp0 = $this.obi_1;
|
|
5120
5120
|
var tmp = KProperty1;
|
|
5121
5121
|
// Inline function 'kotlin.getValue' call
|
|
5122
5122
|
getPropertyCallableRef('logger', 1, tmp, ServerGameStoreContract$_get_logger_$ref_zbgw28_0(), null);
|
|
5123
5123
|
return tmp0.o1();
|
|
5124
5124
|
}
|
|
5125
5125
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
5126
|
-
var tmp0 = $this.
|
|
5126
|
+
var tmp0 = $this.pbi_1;
|
|
5127
5127
|
var tmp = KProperty1;
|
|
5128
5128
|
// Inline function 'kotlin.getValue' call
|
|
5129
5129
|
getPropertyCallableRef('playerConnectionInteractor', 1, tmp, ServerGameStoreContract$_get_playerConnectionInteractor_$ref_d9n2s8_0(), null);
|
|
5130
5130
|
return tmp0.o1();
|
|
5131
5131
|
}
|
|
5132
5132
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
5133
|
-
var tmp0 = $this.
|
|
5133
|
+
var tmp0 = $this.qbi_1;
|
|
5134
5134
|
var tmp = KProperty1;
|
|
5135
5135
|
// Inline function 'kotlin.getValue' call
|
|
5136
5136
|
getPropertyCallableRef('lastCardInteractor', 1, tmp, ServerGameStoreContract$_get_lastCardInteractor_$ref_khpgh_0(), null);
|
|
5137
5137
|
return tmp0.o1();
|
|
5138
5138
|
}
|
|
5139
5139
|
function _get_serverConfig__rk2g06($this) {
|
|
5140
|
-
var tmp0 = $this.
|
|
5140
|
+
var tmp0 = $this.rbi_1;
|
|
5141
5141
|
var tmp = KProperty1;
|
|
5142
5142
|
// Inline function 'kotlin.getValue' call
|
|
5143
5143
|
getPropertyCallableRef('serverConfig', 1, tmp, ServerGameStoreContract$_get_serverConfig_$ref_bz2891_0(), null);
|
|
5144
5144
|
return tmp0.o1();
|
|
5145
5145
|
}
|
|
5146
5146
|
function _get_logicConfig__52ww9d($this) {
|
|
5147
|
-
var tmp0 = $this.
|
|
5147
|
+
var tmp0 = $this.sbi_1;
|
|
5148
5148
|
var tmp = KProperty1;
|
|
5149
5149
|
// Inline function 'kotlin.getValue' call
|
|
5150
5150
|
getPropertyCallableRef('logicConfig', 1, tmp, ServerGameStoreContract$_get_logicConfig_$ref_nqj2yi_0(), null);
|
|
5151
5151
|
return tmp0.o1();
|
|
5152
5152
|
}
|
|
5153
5153
|
function _get_idsProvider__fnfajc_0($this) {
|
|
5154
|
-
var tmp0 = $this.
|
|
5154
|
+
var tmp0 = $this.tbi_1;
|
|
5155
5155
|
var tmp = KProperty1;
|
|
5156
5156
|
// Inline function 'kotlin.getValue' call
|
|
5157
5157
|
getPropertyCallableRef('idsProvider', 1, tmp, ServerGameStoreContract$_get_idsProvider_$ref_rf1ck1_0(), null);
|
|
5158
5158
|
return tmp0.o1();
|
|
5159
5159
|
}
|
|
5160
5160
|
function _get_botConfig__cpaxzc($this) {
|
|
5161
|
-
var tmp0 = $this.
|
|
5161
|
+
var tmp0 = $this.ubi_1;
|
|
5162
5162
|
var tmp = KProperty1;
|
|
5163
5163
|
// Inline function 'kotlin.getValue' call
|
|
5164
5164
|
getPropertyCallableRef('botConfig', 1, tmp, ServerGameStoreContract$_get_botConfig_$ref_nebw1d_0(), null);
|
|
5165
5165
|
return tmp0.o1();
|
|
5166
5166
|
}
|
|
5167
5167
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
5168
|
-
var tmp0 = $this.
|
|
5168
|
+
var tmp0 = $this.vbi_1;
|
|
5169
5169
|
var tmp = KProperty1;
|
|
5170
5170
|
// Inline function 'kotlin.getValue' call
|
|
5171
5171
|
getPropertyCallableRef('scenePositionProvider', 1, tmp, ServerGameStoreContract$_get_scenePositionProvider_$ref_ue39g4_0(), null);
|
|
5172
5172
|
return tmp0.o1();
|
|
5173
5173
|
}
|
|
5174
5174
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
5175
|
-
var tmp0 = $this.
|
|
5175
|
+
var tmp0 = $this.wbi_1;
|
|
5176
5176
|
var tmp = KProperty1;
|
|
5177
5177
|
// Inline function 'kotlin.getValue' call
|
|
5178
5178
|
getPropertyCallableRef('toClientEventsObserver', 1, tmp, ServerGameStoreContract$_get_toClientEventsObserver_$ref_nkgv3p_0(), null);
|
|
5179
5179
|
return tmp0.o1();
|
|
5180
5180
|
}
|
|
5181
5181
|
function _get_fromClientEventsObserver__a7vzd3_0($this) {
|
|
5182
|
-
var tmp0 = $this.
|
|
5182
|
+
var tmp0 = $this.xbi_1;
|
|
5183
5183
|
var tmp = KProperty1;
|
|
5184
5184
|
// Inline function 'kotlin.getValue' call
|
|
5185
5185
|
getPropertyCallableRef('fromClientEventsObserver', 1, tmp, ServerGameStoreContract$_get_fromClientEventsObserver_$ref_v1j2bg_0(), null);
|
|
5186
5186
|
return tmp0.o1();
|
|
5187
5187
|
}
|
|
5188
5188
|
function _get_dealerConfig__183ci8($this) {
|
|
5189
|
-
var tmp0 = $this.
|
|
5189
|
+
var tmp0 = $this.ybi_1;
|
|
5190
5190
|
var tmp = KProperty1;
|
|
5191
5191
|
// Inline function 'kotlin.getValue' call
|
|
5192
5192
|
getPropertyCallableRef('dealerConfig', 1, tmp, ServerGameStoreContract$_get_dealerConfig_$ref_mdo2zp_0(), null);
|
|
5193
5193
|
return tmp0.o1();
|
|
5194
5194
|
}
|
|
5195
5195
|
function _get_poolProvider__tqti6a($this) {
|
|
5196
|
-
var tmp0 = $this.
|
|
5196
|
+
var tmp0 = $this.zbi_1;
|
|
5197
5197
|
var tmp = KProperty1;
|
|
5198
5198
|
// Inline function 'kotlin.getValue' call
|
|
5199
5199
|
getPropertyCallableRef('poolProvider', 1, tmp, ServerGameStoreContract$_get_poolProvider_$ref_4pfoc3_0(), null);
|
|
5200
5200
|
return tmp0.o1();
|
|
5201
5201
|
}
|
|
5202
5202
|
function _get_cardsDealerProvider__bekjpg($this) {
|
|
5203
|
-
var tmp0 = $this.
|
|
5203
|
+
var tmp0 = $this.abj_1;
|
|
5204
5204
|
var tmp = KProperty1;
|
|
5205
5205
|
// Inline function 'kotlin.getValue' call
|
|
5206
5206
|
getPropertyCallableRef('cardsDealerProvider', 1, tmp, ServerGameStoreContract$_get_cardsDealerProvider_$ref_ipxqoj_0(), null);
|
|
@@ -5364,11 +5364,11 @@
|
|
|
5364
5364
|
tmp = fileLoggerStoreContract;
|
|
5365
5365
|
}
|
|
5366
5366
|
fileLoggerStoreContract = tmp;
|
|
5367
|
-
this.
|
|
5368
|
-
this.
|
|
5369
|
-
this.
|
|
5370
|
-
this.
|
|
5371
|
-
this.
|
|
5367
|
+
this.ibi_1 = validationStoreContract;
|
|
5368
|
+
this.jbi_1 = timersStoreContract;
|
|
5369
|
+
this.kbi_1 = botGameStoreContract;
|
|
5370
|
+
this.lbi_1 = gameMechanicStoreContract;
|
|
5371
|
+
this.mbi_1 = fileLoggerStoreContract;
|
|
5372
5372
|
var tmp_0 = this;
|
|
5373
5373
|
// Inline function 'org.kodein.di.instance' call
|
|
5374
5374
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5376,7 +5376,7 @@
|
|
|
5376
5376
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
5377
5377
|
var tmp_2 = Instance(di, tmp$ret$0, null);
|
|
5378
5378
|
var tmp_3 = KProperty1;
|
|
5379
|
-
tmp_0.
|
|
5379
|
+
tmp_0.nbi_1 = tmp_2.z6w(this, getPropertyCallableRef('asyncProvider', 1, tmp_3, ServerGameStoreContract$_get_asyncProvider_$ref_1q7po3(), null));
|
|
5380
5380
|
var tmp_4 = this;
|
|
5381
5381
|
// Inline function 'org.kodein.di.instance' call
|
|
5382
5382
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5384,7 +5384,7 @@
|
|
|
5384
5384
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
5385
5385
|
var tmp_6 = Instance(di, tmp$ret$2, null);
|
|
5386
5386
|
var tmp_7 = KProperty1;
|
|
5387
|
-
tmp_4.
|
|
5387
|
+
tmp_4.obi_1 = tmp_6.z6w(this, getPropertyCallableRef('logger', 1, tmp_7, ServerGameStoreContract$_get_logger_$ref_zbgw28(), null));
|
|
5388
5388
|
var tmp_8 = this;
|
|
5389
5389
|
// Inline function 'org.kodein.di.instance' call
|
|
5390
5390
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5392,7 +5392,7 @@
|
|
|
5392
5392
|
var tmp$ret$4 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE();
|
|
5393
5393
|
var tmp_10 = Instance(di, tmp$ret$4, null);
|
|
5394
5394
|
var tmp_11 = KProperty1;
|
|
5395
|
-
tmp_8.
|
|
5395
|
+
tmp_8.pbi_1 = tmp_10.z6w(this, getPropertyCallableRef('playerConnectionInteractor', 1, tmp_11, ServerGameStoreContract$_get_playerConnectionInteractor_$ref_d9n2s8(), null));
|
|
5396
5396
|
var tmp_12 = this;
|
|
5397
5397
|
// Inline function 'org.kodein.di.instance' call
|
|
5398
5398
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5400,7 +5400,7 @@
|
|
|
5400
5400
|
var tmp$ret$6 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
5401
5401
|
var tmp_14 = Instance(di, tmp$ret$6, null);
|
|
5402
5402
|
var tmp_15 = KProperty1;
|
|
5403
|
-
tmp_12.
|
|
5403
|
+
tmp_12.qbi_1 = tmp_14.z6w(this, getPropertyCallableRef('lastCardInteractor', 1, tmp_15, ServerGameStoreContract$_get_lastCardInteractor_$ref_khpgh(), null));
|
|
5404
5404
|
var tmp_16 = this;
|
|
5405
5405
|
// Inline function 'org.kodein.di.instance' call
|
|
5406
5406
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5408,7 +5408,7 @@
|
|
|
5408
5408
|
var tmp$ret$8 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
5409
5409
|
var tmp_18 = Instance(di, tmp$ret$8, null);
|
|
5410
5410
|
var tmp_19 = KProperty1;
|
|
5411
|
-
tmp_16.
|
|
5411
|
+
tmp_16.rbi_1 = tmp_18.z6w(this, getPropertyCallableRef('serverConfig', 1, tmp_19, ServerGameStoreContract$_get_serverConfig_$ref_bz2891(), null));
|
|
5412
5412
|
var tmp_20 = this;
|
|
5413
5413
|
// Inline function 'org.kodein.di.instance' call
|
|
5414
5414
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5416,7 +5416,7 @@
|
|
|
5416
5416
|
var tmp$ret$10 = isInterface(tmp_21, TypeToken) ? tmp_21 : THROW_CCE();
|
|
5417
5417
|
var tmp_22 = Instance(di, tmp$ret$10, null);
|
|
5418
5418
|
var tmp_23 = KProperty1;
|
|
5419
|
-
tmp_20.
|
|
5419
|
+
tmp_20.sbi_1 = tmp_22.z6w(this, getPropertyCallableRef('logicConfig', 1, tmp_23, ServerGameStoreContract$_get_logicConfig_$ref_nqj2yi(), null));
|
|
5420
5420
|
var tmp_24 = this;
|
|
5421
5421
|
// Inline function 'org.kodein.di.instance' call
|
|
5422
5422
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5424,7 +5424,7 @@
|
|
|
5424
5424
|
var tmp$ret$12 = isInterface(tmp_25, TypeToken) ? tmp_25 : THROW_CCE();
|
|
5425
5425
|
var tmp_26 = Instance(di, tmp$ret$12, null);
|
|
5426
5426
|
var tmp_27 = KProperty1;
|
|
5427
|
-
tmp_24.
|
|
5427
|
+
tmp_24.tbi_1 = tmp_26.z6w(this, getPropertyCallableRef('idsProvider', 1, tmp_27, ServerGameStoreContract$_get_idsProvider_$ref_rf1ck1(), null));
|
|
5428
5428
|
var tmp_28 = this;
|
|
5429
5429
|
// Inline function 'org.kodein.di.instance' call
|
|
5430
5430
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5432,7 +5432,7 @@
|
|
|
5432
5432
|
var tmp$ret$14 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE();
|
|
5433
5433
|
var tmp_30 = Instance(di, tmp$ret$14, null);
|
|
5434
5434
|
var tmp_31 = KProperty1;
|
|
5435
|
-
tmp_28.
|
|
5435
|
+
tmp_28.ubi_1 = tmp_30.z6w(this, getPropertyCallableRef('botConfig', 1, tmp_31, ServerGameStoreContract$_get_botConfig_$ref_nebw1d(), null));
|
|
5436
5436
|
var tmp_32 = this;
|
|
5437
5437
|
// Inline function 'org.kodein.di.instance' call
|
|
5438
5438
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5440,7 +5440,7 @@
|
|
|
5440
5440
|
var tmp$ret$16 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE();
|
|
5441
5441
|
var tmp_34 = Instance(di, tmp$ret$16, null);
|
|
5442
5442
|
var tmp_35 = KProperty1;
|
|
5443
|
-
tmp_32.
|
|
5443
|
+
tmp_32.vbi_1 = tmp_34.z6w(this, getPropertyCallableRef('scenePositionProvider', 1, tmp_35, ServerGameStoreContract$_get_scenePositionProvider_$ref_ue39g4(), null));
|
|
5444
5444
|
var tmp_36 = this;
|
|
5445
5445
|
// Inline function 'org.kodein.di.instance' call
|
|
5446
5446
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5448,7 +5448,7 @@
|
|
|
5448
5448
|
var tmp$ret$18 = isInterface(tmp_37, TypeToken) ? tmp_37 : THROW_CCE();
|
|
5449
5449
|
var tmp_38 = Instance(di, tmp$ret$18, null);
|
|
5450
5450
|
var tmp_39 = KProperty1;
|
|
5451
|
-
tmp_36.
|
|
5451
|
+
tmp_36.wbi_1 = tmp_38.z6w(this, getPropertyCallableRef('toClientEventsObserver', 1, tmp_39, ServerGameStoreContract$_get_toClientEventsObserver_$ref_nkgv3p(), null));
|
|
5452
5452
|
var tmp_40 = this;
|
|
5453
5453
|
// Inline function 'org.kodein.di.instance' call
|
|
5454
5454
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5456,7 +5456,7 @@
|
|
|
5456
5456
|
var tmp$ret$20 = isInterface(tmp_41, TypeToken) ? tmp_41 : THROW_CCE();
|
|
5457
5457
|
var tmp_42 = Instance(di, tmp$ret$20, null);
|
|
5458
5458
|
var tmp_43 = KProperty1;
|
|
5459
|
-
tmp_40.
|
|
5459
|
+
tmp_40.xbi_1 = tmp_42.z6w(this, getPropertyCallableRef('fromClientEventsObserver', 1, tmp_43, ServerGameStoreContract$_get_fromClientEventsObserver_$ref_v1j2bg(), null));
|
|
5460
5460
|
var tmp_44 = this;
|
|
5461
5461
|
// Inline function 'org.kodein.di.instance' call
|
|
5462
5462
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5464,7 +5464,7 @@
|
|
|
5464
5464
|
var tmp$ret$22 = isInterface(tmp_45, TypeToken) ? tmp_45 : THROW_CCE();
|
|
5465
5465
|
var tmp_46 = Instance(di, tmp$ret$22, null);
|
|
5466
5466
|
var tmp_47 = KProperty1;
|
|
5467
|
-
tmp_44.
|
|
5467
|
+
tmp_44.ybi_1 = tmp_46.z6w(this, getPropertyCallableRef('dealerConfig', 1, tmp_47, ServerGameStoreContract$_get_dealerConfig_$ref_mdo2zp(), null));
|
|
5468
5468
|
var tmp_48 = this;
|
|
5469
5469
|
// Inline function 'org.kodein.di.instance' call
|
|
5470
5470
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5472,7 +5472,7 @@
|
|
|
5472
5472
|
var tmp$ret$24 = isInterface(tmp_49, TypeToken) ? tmp_49 : THROW_CCE();
|
|
5473
5473
|
var tmp_50 = Instance(di, tmp$ret$24, null);
|
|
5474
5474
|
var tmp_51 = KProperty1;
|
|
5475
|
-
tmp_48.
|
|
5475
|
+
tmp_48.zbi_1 = tmp_50.z6w(this, getPropertyCallableRef('poolProvider', 1, tmp_51, ServerGameStoreContract$_get_poolProvider_$ref_4pfoc3(), null));
|
|
5476
5476
|
var tmp_52 = this;
|
|
5477
5477
|
// Inline function 'org.kodein.di.instance' call
|
|
5478
5478
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5480,20 +5480,20 @@
|
|
|
5480
5480
|
var tmp$ret$26 = isInterface(tmp_53, TypeToken) ? tmp_53 : THROW_CCE();
|
|
5481
5481
|
var tmp_54 = Instance(di, tmp$ret$26, null);
|
|
5482
5482
|
var tmp_55 = KProperty1;
|
|
5483
|
-
tmp_52.
|
|
5483
|
+
tmp_52.abj_1 = tmp_54.z6w(this, getPropertyCallableRef('cardsDealerProvider', 1, tmp_55, ServerGameStoreContract$_get_cardsDealerProvider_$ref_ipxqoj(), null));
|
|
5484
5484
|
}
|
|
5485
|
-
protoOf(ServerGameStoreContract).ra5 = function () {
|
|
5486
|
-
return plus(plus(plus(plus(plus(this.hbi_1.ra5(), this.kbi_1.ra5()), this.ibi_1.ra5()), this.jbi_1.ra5()), this.lbi_1.ra5()), listOf_0([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl(this)), playerConnectionUpdateReducer()]));
|
|
5487
|
-
};
|
|
5488
5485
|
protoOf(ServerGameStoreContract).sa5 = function () {
|
|
5489
|
-
|
|
5486
|
+
return plus(plus(plus(plus(plus(this.ibi_1.sa5(), this.lbi_1.sa5()), this.jbi_1.sa5()), this.kbi_1.sa5()), this.mbi_1.sa5()), listOf_0([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl(this)), playerConnectionUpdateReducer()]));
|
|
5487
|
+
};
|
|
5488
|
+
protoOf(ServerGameStoreContract).ta5 = function () {
|
|
5489
|
+
var tmp = this.ibi_1.ta5();
|
|
5490
5490
|
var tmp_0;
|
|
5491
5491
|
if (_get_serverConfig__rk2g06(this).finishGameWhenNotLiveStrategy.equals(FinishGameWhenNotLiveStrategy_ALL_REPLACED_WITH_BOT_getInstance())) {
|
|
5492
5492
|
tmp_0 = checkBotsMiddleware(_get_logger__rkp4sl(this));
|
|
5493
5493
|
} else {
|
|
5494
5494
|
tmp_0 = null;
|
|
5495
5495
|
}
|
|
5496
|
-
var tmp_1 = plus(plus(plus(plus(plus(tmp, listOfNotNull(tmp_0)), this.
|
|
5496
|
+
var tmp_1 = plus(plus(plus(plus(plus(tmp, listOfNotNull(tmp_0)), this.lbi_1.ta5()), this.jbi_1.ta5()), this.kbi_1.ta5()), this.mbi_1.ta5());
|
|
5497
5497
|
var tmp_2 = playerConnectionUpdateMiddleware(_get_logger__rkp4sl(this), _get_playerConnectionInteractor__si6cxf_0(this));
|
|
5498
5498
|
var tmp_3 = playerReconnectionTimeoutMiddleware(_get_playerConnectionInteractor__si6cxf_0(this));
|
|
5499
5499
|
var tmp_4;
|
|
@@ -5502,13 +5502,13 @@
|
|
|
5502
5502
|
} else {
|
|
5503
5503
|
tmp_4 = null;
|
|
5504
5504
|
}
|
|
5505
|
-
var tmp_5 = plus(plus(tmp_1, listOfNotNull_0([tmp_2, tmp_3, tmp_4])), listOfNotNull_0([sendFromClientEventsMiddleware(_get_asyncProvider__jbpyhw(this), _get_fromClientEventsObserver__a7vzd3_0(this)), sendToClientActionMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc_0(this), _get_playerConnectionInteractor__si6cxf_0(this))).
|
|
5505
|
+
var tmp_5 = plus(plus(tmp_1, listOfNotNull_0([tmp_2, tmp_3, tmp_4])), listOfNotNull_0([sendFromClientEventsMiddleware(_get_asyncProvider__jbpyhw(this), _get_fromClientEventsObserver__a7vzd3_0(this)), sendToClientActionMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc_0(this), _get_playerConnectionInteractor__si6cxf_0(this))).ba8(), sendSpectatorContinueMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), finishingGameWhenCantStartNewMiddleware()]));
|
|
5506
5506
|
var tmp_6 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this), _get_logger__rkp4sl(this));
|
|
5507
5507
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
5508
5508
|
var tmp1_logger = _get_logger__rkp4sl(this);
|
|
5509
5509
|
var tmp2_asyncProvider = _get_asyncProvider__jbpyhw(this);
|
|
5510
5510
|
var tmp_7 = playerTurnTimeoutWhenHasConnectionMiddleware(tmp0_serverConfig, tmp2_asyncProvider, tmp1_logger);
|
|
5511
|
-
var tmp_8 = clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this), listOfNotNull_0([_get_toClientEventsObserver__6rp51y_0(this), this.
|
|
5511
|
+
var tmp_8 = clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this), listOfNotNull_0([_get_toClientEventsObserver__6rp51y_0(this), this.mbi_1.ca6()]));
|
|
5512
5512
|
var tmp3_asyncProvider = _get_asyncProvider__jbpyhw(this);
|
|
5513
5513
|
var tmp4_dealerConfig = _get_dealerConfig__183ci8(this);
|
|
5514
5514
|
var tmp5_poolProvider = _get_poolProvider__tqti6a(this);
|
|
@@ -5557,7 +5557,7 @@
|
|
|
5557
5557
|
return new sendSpectatorContinueMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5558
5558
|
}
|
|
5559
5559
|
function sendSpectatorContinueMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5560
|
-
this.
|
|
5560
|
+
this.ebj_1 = $playerConnectionInteractor;
|
|
5561
5561
|
}
|
|
5562
5562
|
protoOf(sendSpectatorContinueMiddleware$$inlined$middlewareForActionType$1).s79 = function (action) {
|
|
5563
5563
|
return action instanceof AddSpectatorsAction;
|
|
@@ -5567,10 +5567,10 @@
|
|
|
5567
5567
|
next(action_0);
|
|
5568
5568
|
var table = store.state.k7l();
|
|
5569
5569
|
// Inline function 'kotlin.collections.forEach' call
|
|
5570
|
-
var _iterator__ex2g4s = action_0.
|
|
5570
|
+
var _iterator__ex2g4s = action_0.gbi_1.t();
|
|
5571
5571
|
while (_iterator__ex2g4s.u()) {
|
|
5572
5572
|
var element = _iterator__ex2g4s.v();
|
|
5573
|
-
store.dispatch(this.
|
|
5573
|
+
store.dispatch(this.ebj_1.ybh(element.b6z_1, table));
|
|
5574
5574
|
}
|
|
5575
5575
|
};
|
|
5576
5576
|
protoOf(sendSpectatorContinueMiddleware$$inlined$middlewareForActionType$1).r79 = function (store, next, action) {
|
|
@@ -5628,7 +5628,7 @@
|
|
|
5628
5628
|
return tmp;
|
|
5629
5629
|
}
|
|
5630
5630
|
function ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
5631
|
-
this.
|
|
5631
|
+
this.fbj_1 = this$0;
|
|
5632
5632
|
}
|
|
5633
5633
|
protoOf(ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1).s79 = function (action) {
|
|
5634
5634
|
return action instanceof MechanicAction;
|
|
@@ -5639,7 +5639,7 @@
|
|
|
5639
5639
|
// Inline function 'kotlin.with' call
|
|
5640
5640
|
var tmp;
|
|
5641
5641
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
5642
|
-
var tmp0 = this.
|
|
5642
|
+
var tmp0 = this.fbj_1;
|
|
5643
5643
|
var tmp2 = action_0.ma1_1;
|
|
5644
5644
|
var tmp4 = action_0.oa1_1;
|
|
5645
5645
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5649,7 +5649,7 @@
|
|
|
5649
5649
|
var _iterator__ex2g4s = this_0.t();
|
|
5650
5650
|
while (_iterator__ex2g4s.u()) {
|
|
5651
5651
|
var item = _iterator__ex2g4s.v();
|
|
5652
|
-
var tmp$ret$0 = to(item.b6z_1, this.
|
|
5652
|
+
var tmp$ret$0 = to(item.b6z_1, this.fbj_1.dbj_1.zbh(item.isBot, item.b6z_1, get_serverStatePayload_0(state).connectedPlayers).a70_1);
|
|
5653
5653
|
destination.e1(tmp$ret$0);
|
|
5654
5654
|
}
|
|
5655
5655
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -5679,7 +5679,7 @@
|
|
|
5679
5679
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
5680
5680
|
while (_iterator__ex2g4s_2.u()) {
|
|
5681
5681
|
var element_0 = _iterator__ex2g4s_2.v();
|
|
5682
|
-
var tmp0_aid = tmp0.
|
|
5682
|
+
var tmp0_aid = tmp0.cbj_1.d77();
|
|
5683
5683
|
// Inline function 'kotlin.collections.map' call
|
|
5684
5684
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5685
5685
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -5699,7 +5699,7 @@
|
|
|
5699
5699
|
}
|
|
5700
5700
|
}
|
|
5701
5701
|
var tmp_0 = destination_2;
|
|
5702
|
-
var tmp0_0 = this.
|
|
5702
|
+
var tmp0_0 = this.fbj_1;
|
|
5703
5703
|
var tmp2_0 = action_0.ma1_1;
|
|
5704
5704
|
var tmp4_0 = action_0.oa1_1;
|
|
5705
5705
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5730,7 +5730,7 @@
|
|
|
5730
5730
|
var _iterator__ex2g4s_6 = destination_5.t();
|
|
5731
5731
|
while (_iterator__ex2g4s_6.u()) {
|
|
5732
5732
|
var element_1 = _iterator__ex2g4s_6.v();
|
|
5733
|
-
var tmp_1 = tmp0_0.
|
|
5733
|
+
var tmp_1 = tmp0_0.cbj_1.d77();
|
|
5734
5734
|
var spectatorPayload = new UserActionPayload(tmp_1, tmp2_0, tmp4_0, element_1, ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda(destination_4, tmp4_0));
|
|
5735
5735
|
var tmp0_safe_receiver_0 = mapToClient_19(action_0, spectatorPayload);
|
|
5736
5736
|
if (tmp0_safe_receiver_0 == null)
|
|
@@ -5743,15 +5743,15 @@
|
|
|
5743
5743
|
tmp = plus(tmp_0, destination_6);
|
|
5744
5744
|
} else {
|
|
5745
5745
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
5746
|
-
var tmp0_1 = this.
|
|
5746
|
+
var tmp0_1 = this.fbj_1;
|
|
5747
5747
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5748
5748
|
var tableId = state.k7l().id;
|
|
5749
|
-
var sendToPlayer_0 = new RoomActionPayload(tmp0_1.
|
|
5749
|
+
var sendToPlayer_0 = new RoomActionPayload(tmp0_1.cbj_1.d77(), tableId, null);
|
|
5750
5750
|
var tmp$ret$36 = mapToClient_18(action_0, sendToPlayer_0);
|
|
5751
5751
|
tmp = listOfNotNull(tmp$ret$36);
|
|
5752
5752
|
} else {
|
|
5753
5753
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
5754
|
-
var tmp0_2 = this.
|
|
5754
|
+
var tmp0_2 = this.fbj_1;
|
|
5755
5755
|
var tmp2_1 = action_0.table.id;
|
|
5756
5756
|
var tmp4_1 = action_0.gameCreatorPlayerId;
|
|
5757
5757
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5791,7 +5791,7 @@
|
|
|
5791
5791
|
var _iterator__ex2g4s_10 = destination_9.t();
|
|
5792
5792
|
while (_iterator__ex2g4s_10.u()) {
|
|
5793
5793
|
var element_3 = _iterator__ex2g4s_10.v();
|
|
5794
|
-
var tmp0_aid_0 = tmp0_2.
|
|
5794
|
+
var tmp0_aid_0 = tmp0_2.cbj_1.d77();
|
|
5795
5795
|
// Inline function 'kotlin.collections.map' call
|
|
5796
5796
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5797
5797
|
var destination_11 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_7, 10));
|
|
@@ -5811,7 +5811,7 @@
|
|
|
5811
5811
|
}
|
|
5812
5812
|
}
|
|
5813
5813
|
var tmp_2 = destination_10;
|
|
5814
|
-
var tmp0_3 = this.
|
|
5814
|
+
var tmp0_3 = this.fbj_1;
|
|
5815
5815
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForSpectatorFromTable' call
|
|
5816
5816
|
var table = action_0.table;
|
|
5817
5817
|
var tmp2_2 = table.id;
|
|
@@ -5844,7 +5844,7 @@
|
|
|
5844
5844
|
var _iterator__ex2g4s_14 = destination_13.t();
|
|
5845
5845
|
while (_iterator__ex2g4s_14.u()) {
|
|
5846
5846
|
var element_4 = _iterator__ex2g4s_14.v();
|
|
5847
|
-
var tmp_3 = tmp0_3.
|
|
5847
|
+
var tmp_3 = tmp0_3.cbj_1.d77();
|
|
5848
5848
|
var spectatorPayload_0 = new UserActionPayload(tmp_3, tmp2_2, tmp4_2, element_4, ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda_0(destination_12, tmp4_2));
|
|
5849
5849
|
var tmp0_safe_receiver_2 = mapToClient_17(action_0, spectatorPayload_0);
|
|
5850
5850
|
if (tmp0_safe_receiver_2 == null)
|
|
@@ -5857,39 +5857,39 @@
|
|
|
5857
5857
|
tmp = plus(tmp_2, destination_14);
|
|
5858
5858
|
} else {
|
|
5859
5859
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
5860
|
-
var tmp0_4 = this.
|
|
5860
|
+
var tmp0_4 = this.fbj_1;
|
|
5861
5861
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5862
5862
|
var tableId_0 = state.k7l().id;
|
|
5863
|
-
var sendToPlayer_2 = new RoomActionPayload(tmp0_4.
|
|
5863
|
+
var sendToPlayer_2 = new RoomActionPayload(tmp0_4.cbj_1.d77(), tableId_0, null);
|
|
5864
5864
|
var tmp$ret$75 = mapToClient_16(action_0, sendToPlayer_2);
|
|
5865
5865
|
tmp = listOfNotNull(tmp$ret$75);
|
|
5866
5866
|
} else {
|
|
5867
5867
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
5868
|
-
var tmp0_5 = this.
|
|
5868
|
+
var tmp0_5 = this.fbj_1;
|
|
5869
5869
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5870
5870
|
var tableId_1 = state.k7l().id;
|
|
5871
|
-
var sendToPlayer_3 = new RoomActionPayload(tmp0_5.
|
|
5871
|
+
var sendToPlayer_3 = new RoomActionPayload(tmp0_5.cbj_1.d77(), tableId_1, null);
|
|
5872
5872
|
var tmp$ret$77 = mapToClient_15(action_0, sendToPlayer_3);
|
|
5873
5873
|
tmp = listOfNotNull(tmp$ret$77);
|
|
5874
5874
|
} else {
|
|
5875
5875
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
5876
|
-
var tmp0_6 = this.
|
|
5876
|
+
var tmp0_6 = this.fbj_1;
|
|
5877
5877
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5878
5878
|
var tableId_2 = state.k7l().id;
|
|
5879
|
-
var sendToPlayer_4 = new RoomActionPayload(tmp0_6.
|
|
5879
|
+
var sendToPlayer_4 = new RoomActionPayload(tmp0_6.cbj_1.d77(), tableId_2, null);
|
|
5880
5880
|
var tmp$ret$79 = mapToClient_14(action_0, sendToPlayer_4);
|
|
5881
5881
|
tmp = listOfNotNull(tmp$ret$79);
|
|
5882
5882
|
} else {
|
|
5883
5883
|
if (action_0 instanceof ErrorAction) {
|
|
5884
|
-
var tmp0_7 = this.
|
|
5884
|
+
var tmp0_7 = this.fbj_1;
|
|
5885
5885
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5886
5886
|
var tableId_3 = state.k7l().id;
|
|
5887
|
-
var sendToPlayer_5 = new RoomActionPayload(tmp0_7.
|
|
5887
|
+
var sendToPlayer_5 = new RoomActionPayload(tmp0_7.cbj_1.d77(), tableId_3, null);
|
|
5888
5888
|
var tmp$ret$81 = mapToClient_13(action_0, sendToPlayer_5);
|
|
5889
5889
|
tmp = listOfNotNull(tmp$ret$81);
|
|
5890
5890
|
} else {
|
|
5891
5891
|
if (action_0 instanceof SceneMechanicAction) {
|
|
5892
|
-
var tmp0_8 = this.
|
|
5892
|
+
var tmp0_8 = this.fbj_1;
|
|
5893
5893
|
var tmp2_3 = state.k7l().id;
|
|
5894
5894
|
var tmp4_3 = state.k7l().playersConnections;
|
|
5895
5895
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
@@ -5921,7 +5921,7 @@
|
|
|
5921
5921
|
var _iterator__ex2g4s_17 = destination_16.t();
|
|
5922
5922
|
while (_iterator__ex2g4s_17.u()) {
|
|
5923
5923
|
var element_6 = _iterator__ex2g4s_17.v();
|
|
5924
|
-
var tmp0_aid_1 = tmp0_8.
|
|
5924
|
+
var tmp0_aid_1 = tmp0_8.cbj_1.d77();
|
|
5925
5925
|
// Inline function 'kotlin.collections.map' call
|
|
5926
5926
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5927
5927
|
var destination_18 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_3, 10));
|
|
@@ -5941,7 +5941,7 @@
|
|
|
5941
5941
|
}
|
|
5942
5942
|
}
|
|
5943
5943
|
var tmp_4 = destination_17;
|
|
5944
|
-
var tmp0_9 = this.
|
|
5944
|
+
var tmp0_9 = this.fbj_1;
|
|
5945
5945
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createSpectatorBroadcastFromTable' call
|
|
5946
5946
|
var table_0 = state.k7l();
|
|
5947
5947
|
var tmp2_4 = table_0.id;
|
|
@@ -5973,7 +5973,7 @@
|
|
|
5973
5973
|
tmp$ret$108 = emptyList();
|
|
5974
5974
|
break $l$block_0;
|
|
5975
5975
|
}
|
|
5976
|
-
var aid = tmp0_9.
|
|
5976
|
+
var aid = tmp0_9.cbj_1.d77();
|
|
5977
5977
|
var tmp_5 = first(destination_20);
|
|
5978
5978
|
var payload = new UserActionPayload(aid, tmp2_4, tmp4_4, tmp_5, ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda_1(destination_19, tmp4_4));
|
|
5979
5979
|
var tmp0_elvis_lhs = mapToClient_12(action_0, payload);
|
|
@@ -5992,7 +5992,7 @@
|
|
|
5992
5992
|
tmp = plus(tmp_4, tmp$ret$110);
|
|
5993
5993
|
} else {
|
|
5994
5994
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
5995
|
-
var tmp0_10 = this.
|
|
5995
|
+
var tmp0_10 = this.fbj_1;
|
|
5996
5996
|
var tmp2_5 = state.k7l().id;
|
|
5997
5997
|
var tmp4_5 = state.k7l().playersConnections;
|
|
5998
5998
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
@@ -6024,7 +6024,7 @@
|
|
|
6024
6024
|
var _iterator__ex2g4s_23 = destination_22.t();
|
|
6025
6025
|
while (_iterator__ex2g4s_23.u()) {
|
|
6026
6026
|
var element_8 = _iterator__ex2g4s_23.v();
|
|
6027
|
-
var tmp0_aid_2 = tmp0_10.
|
|
6027
|
+
var tmp0_aid_2 = tmp0_10.cbj_1.d77();
|
|
6028
6028
|
// Inline function 'kotlin.collections.map' call
|
|
6029
6029
|
// Inline function 'kotlin.collections.mapTo' call
|
|
6030
6030
|
var destination_24 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_5, 10));
|
|
@@ -6044,7 +6044,7 @@
|
|
|
6044
6044
|
}
|
|
6045
6045
|
}
|
|
6046
6046
|
var tmp_7 = destination_23;
|
|
6047
|
-
var tmp0_11 = this.
|
|
6047
|
+
var tmp0_11 = this.fbj_1;
|
|
6048
6048
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createSpectatorBroadcastFromTable' call
|
|
6049
6049
|
var table_1 = state.k7l();
|
|
6050
6050
|
var tmp2_6 = table_1.id;
|
|
@@ -6076,7 +6076,7 @@
|
|
|
6076
6076
|
tmp$ret$136 = emptyList();
|
|
6077
6077
|
break $l$block_2;
|
|
6078
6078
|
}
|
|
6079
|
-
var aid_0 = tmp0_11.
|
|
6079
|
+
var aid_0 = tmp0_11.cbj_1.d77();
|
|
6080
6080
|
var tmp_8 = first(destination_26);
|
|
6081
6081
|
var payload_0 = new UserActionPayload(aid_0, tmp2_6, tmp4_6, tmp_8, ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda_2(destination_25, tmp4_6));
|
|
6082
6082
|
var tmp0_elvis_lhs_0 = mapToClient_11(action_0, payload_0);
|
|
@@ -6095,7 +6095,7 @@
|
|
|
6095
6095
|
tmp = plus(tmp_7, tmp$ret$138);
|
|
6096
6096
|
} else {
|
|
6097
6097
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
6098
|
-
var tmp0_12 = this.
|
|
6098
|
+
var tmp0_12 = this.fbj_1;
|
|
6099
6099
|
var tmp2_7 = state.k7l().id;
|
|
6100
6100
|
var tmp4_7 = state.k7l().playersConnections;
|
|
6101
6101
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
@@ -6127,7 +6127,7 @@
|
|
|
6127
6127
|
var _iterator__ex2g4s_29 = destination_28.t();
|
|
6128
6128
|
while (_iterator__ex2g4s_29.u()) {
|
|
6129
6129
|
var element_10 = _iterator__ex2g4s_29.v();
|
|
6130
|
-
var tmp0_aid_3 = tmp0_12.
|
|
6130
|
+
var tmp0_aid_3 = tmp0_12.cbj_1.d77();
|
|
6131
6131
|
// Inline function 'kotlin.collections.map' call
|
|
6132
6132
|
// Inline function 'kotlin.collections.mapTo' call
|
|
6133
6133
|
var destination_30 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_7, 10));
|
|
@@ -6139,7 +6139,7 @@
|
|
|
6139
6139
|
}
|
|
6140
6140
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_7, gameCreatorPlayerId_1, element_10, destination_30);
|
|
6141
6141
|
var tmp_10;
|
|
6142
|
-
if (this.
|
|
6142
|
+
if (this.fbj_1.bbj_1.supportBackwardActions && getPlayer(state.k7l().players, sendToPlayer_8.l8c_1).d7p_1.r7t_1) {
|
|
6143
6143
|
tmp_10 = null;
|
|
6144
6144
|
} else {
|
|
6145
6145
|
tmp_10 = mapToClient_10(action_0, sendToPlayer_8);
|
|
@@ -6153,7 +6153,7 @@
|
|
|
6153
6153
|
}
|
|
6154
6154
|
}
|
|
6155
6155
|
var tmp_11 = destination_29;
|
|
6156
|
-
var tmp0_13 = this.
|
|
6156
|
+
var tmp0_13 = this.fbj_1;
|
|
6157
6157
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createSpectatorBroadcastFromTable' call
|
|
6158
6158
|
var table_2 = state.k7l();
|
|
6159
6159
|
var tmp2_8 = table_2.id;
|
|
@@ -6185,7 +6185,7 @@
|
|
|
6185
6185
|
tmp$ret$164 = emptyList();
|
|
6186
6186
|
break $l$block_4;
|
|
6187
6187
|
}
|
|
6188
|
-
var aid_1 = tmp0_13.
|
|
6188
|
+
var aid_1 = tmp0_13.cbj_1.d77();
|
|
6189
6189
|
var tmp_12 = first(destination_32);
|
|
6190
6190
|
var payload_1 = new UserActionPayload(aid_1, tmp2_8, tmp4_8, tmp_12, ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda_3(destination_31, tmp4_8));
|
|
6191
6191
|
var tmp0_elvis_lhs_1 = mapToClient_10(action_0, payload_1);
|
|
@@ -6204,81 +6204,81 @@
|
|
|
6204
6204
|
tmp = plus(tmp_11, tmp$ret$166);
|
|
6205
6205
|
} else {
|
|
6206
6206
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
6207
|
-
var tmp0_14 = this.
|
|
6207
|
+
var tmp0_14 = this.fbj_1;
|
|
6208
6208
|
var tmp2_9 = state.k7l().id;
|
|
6209
6209
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6210
|
-
var exceptPlayerId = this.
|
|
6211
|
-
var sendToPlayer_9 = new RoomActionPayload(tmp0_14.
|
|
6210
|
+
var exceptPlayerId = this.fbj_1.bbj_1.supportBackwardActions ? action_0.ga2_1 : null;
|
|
6211
|
+
var sendToPlayer_9 = new RoomActionPayload(tmp0_14.cbj_1.d77(), tmp2_9, exceptPlayerId);
|
|
6212
6212
|
var tmp$ret$167 = mapToClient_9(action_0, sendToPlayer_9);
|
|
6213
6213
|
tmp = listOfNotNull(tmp$ret$167);
|
|
6214
6214
|
} else {
|
|
6215
6215
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
6216
|
-
var tmp0_15 = this.
|
|
6216
|
+
var tmp0_15 = this.fbj_1;
|
|
6217
6217
|
var tmp2_10 = state.k7l().id;
|
|
6218
6218
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6219
|
-
var exceptPlayerId_0 = this.
|
|
6220
|
-
var sendToPlayer_10 = new RoomActionPayload(tmp0_15.
|
|
6219
|
+
var exceptPlayerId_0 = this.fbj_1.bbj_1.supportBackwardActions ? action_0.l9x_1 : null;
|
|
6220
|
+
var sendToPlayer_10 = new RoomActionPayload(tmp0_15.cbj_1.d77(), tmp2_10, exceptPlayerId_0);
|
|
6221
6221
|
var tmp$ret$169 = mapToClient_8(action_0, sendToPlayer_10);
|
|
6222
6222
|
tmp = listOfNotNull(tmp$ret$169);
|
|
6223
6223
|
} else {
|
|
6224
6224
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
6225
|
-
var tmp0_16 = this.
|
|
6225
|
+
var tmp0_16 = this.fbj_1;
|
|
6226
6226
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6227
6227
|
var tableId_4 = state.k7l().id;
|
|
6228
|
-
var sendToPlayer_11 = new RoomActionPayload(tmp0_16.
|
|
6228
|
+
var sendToPlayer_11 = new RoomActionPayload(tmp0_16.cbj_1.d77(), tableId_4, null);
|
|
6229
6229
|
var tmp$ret$171 = mapToClient_7(action_0, sendToPlayer_11);
|
|
6230
6230
|
tmp = listOfNotNull(tmp$ret$171);
|
|
6231
6231
|
} else {
|
|
6232
6232
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
6233
|
-
var tmp0_17 = this.
|
|
6233
|
+
var tmp0_17 = this.fbj_1;
|
|
6234
6234
|
var tmp2_11 = state.k7l().id;
|
|
6235
6235
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6236
|
-
var exceptPlayerId_1 = this.
|
|
6237
|
-
var sendToPlayer_12 = new RoomActionPayload(tmp0_17.
|
|
6236
|
+
var exceptPlayerId_1 = this.fbj_1.bbj_1.supportBackwardActions ? action_0.ma2_1 : null;
|
|
6237
|
+
var sendToPlayer_12 = new RoomActionPayload(tmp0_17.cbj_1.d77(), tmp2_11, exceptPlayerId_1);
|
|
6238
6238
|
var tmp$ret$173 = mapToClient_6(action_0, sendToPlayer_12);
|
|
6239
6239
|
tmp = listOfNotNull(tmp$ret$173);
|
|
6240
6240
|
} else {
|
|
6241
6241
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
6242
|
-
var tmp0_18 = this.
|
|
6242
|
+
var tmp0_18 = this.fbj_1;
|
|
6243
6243
|
var tmp2_12 = state.k7l().id;
|
|
6244
6244
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6245
|
-
var exceptPlayerId_2 = this.
|
|
6246
|
-
var sendToPlayer_13 = new RoomActionPayload(tmp0_18.
|
|
6245
|
+
var exceptPlayerId_2 = this.fbj_1.bbj_1.supportBackwardActions ? action_0.r9x_1 : null;
|
|
6246
|
+
var sendToPlayer_13 = new RoomActionPayload(tmp0_18.cbj_1.d77(), tmp2_12, exceptPlayerId_2);
|
|
6247
6247
|
var tmp$ret$175 = mapToClient_5(action_0, sendToPlayer_13);
|
|
6248
6248
|
tmp = listOfNotNull(tmp$ret$175);
|
|
6249
6249
|
} else {
|
|
6250
6250
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
6251
|
-
var tmp0_19 = this.
|
|
6251
|
+
var tmp0_19 = this.fbj_1;
|
|
6252
6252
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6253
6253
|
var tableId_5 = state.k7l().id;
|
|
6254
|
-
var sendToPlayer_14 = new RoomActionPayload(tmp0_19.
|
|
6254
|
+
var sendToPlayer_14 = new RoomActionPayload(tmp0_19.cbj_1.d77(), tableId_5, null);
|
|
6255
6255
|
var tmp$ret$177 = mapToClient_4(action_0, sendToPlayer_14);
|
|
6256
6256
|
tmp = listOfNotNull(tmp$ret$177);
|
|
6257
6257
|
} else {
|
|
6258
6258
|
if (action_0 instanceof TakeAllRemainingCardsMechanicAction) {
|
|
6259
|
-
var tmp0_20 = this.
|
|
6259
|
+
var tmp0_20 = this.fbj_1;
|
|
6260
6260
|
var tmp2_13 = state.k7l().id;
|
|
6261
6261
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6262
|
-
var exceptPlayerId_3 = this.
|
|
6263
|
-
var sendToPlayer_15 = new RoomActionPayload(tmp0_20.
|
|
6262
|
+
var exceptPlayerId_3 = this.fbj_1.bbj_1.supportBackwardActions ? action_0.oa2_1 : null;
|
|
6263
|
+
var sendToPlayer_15 = new RoomActionPayload(tmp0_20.cbj_1.d77(), tmp2_13, exceptPlayerId_3);
|
|
6264
6264
|
var tmp$ret$179 = mapToClient_3(action_0, sendToPlayer_15);
|
|
6265
6265
|
tmp = listOfNotNull(tmp$ret$179);
|
|
6266
6266
|
} else {
|
|
6267
6267
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
6268
|
-
var tmp0_21 = this.
|
|
6268
|
+
var tmp0_21 = this.fbj_1;
|
|
6269
6269
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6270
6270
|
var tableId_6 = state.k7l().id;
|
|
6271
|
-
var sendToPlayer_16 = new RoomActionPayload(tmp0_21.
|
|
6271
|
+
var sendToPlayer_16 = new RoomActionPayload(tmp0_21.cbj_1.d77(), tableId_6, null);
|
|
6272
6272
|
var tmp$ret$181 = mapToClient_2(action_0, sendToPlayer_16);
|
|
6273
6273
|
tmp = listOfNotNull(tmp$ret$181);
|
|
6274
6274
|
} else {
|
|
6275
6275
|
if (action_0 instanceof MessageMechanicAction) {
|
|
6276
6276
|
var message = action_0.message;
|
|
6277
|
-
var tmp0_22 = this.
|
|
6277
|
+
var tmp0_22 = this.fbj_1;
|
|
6278
6278
|
var tmp2_14 = state.k7l().id;
|
|
6279
6279
|
var tmp_14;
|
|
6280
6280
|
var tmp_15;
|
|
6281
|
-
if (this.
|
|
6281
|
+
if (this.fbj_1.bbj_1.supportBackwardActions) {
|
|
6282
6282
|
tmp_15 = isInterface(message, UserMessage);
|
|
6283
6283
|
} else {
|
|
6284
6284
|
tmp_15 = false;
|
|
@@ -6290,16 +6290,16 @@
|
|
|
6290
6290
|
}
|
|
6291
6291
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6292
6292
|
var exceptPlayerId_4 = tmp_14;
|
|
6293
|
-
var sendToPlayer_17 = new RoomActionPayload(tmp0_22.
|
|
6293
|
+
var sendToPlayer_17 = new RoomActionPayload(tmp0_22.cbj_1.d77(), tmp2_14, exceptPlayerId_4);
|
|
6294
6294
|
var tmp$ret$183 = mapToClient_1(action_0, sendToPlayer_17);
|
|
6295
6295
|
tmp = listOfNotNull(tmp$ret$183);
|
|
6296
6296
|
} else {
|
|
6297
6297
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
6298
|
-
var tmp0_23 = this.
|
|
6298
|
+
var tmp0_23 = this.fbj_1;
|
|
6299
6299
|
var tmp2_15 = state.k7l().id;
|
|
6300
6300
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
6301
6301
|
var exceptPlayerId_5 = action_0.playerId;
|
|
6302
|
-
var sendToPlayer_18 = new RoomActionPayload(tmp0_23.
|
|
6302
|
+
var sendToPlayer_18 = new RoomActionPayload(tmp0_23.cbj_1.d77(), tmp2_15, exceptPlayerId_5);
|
|
6303
6303
|
var tmp$ret$185 = mapToClient_0(action_0, sendToPlayer_18);
|
|
6304
6304
|
tmp = listOfNotNull(tmp$ret$185);
|
|
6305
6305
|
} else {
|
|
@@ -6337,11 +6337,11 @@
|
|
|
6337
6337
|
return this.h7b(store, next, action);
|
|
6338
6338
|
};
|
|
6339
6339
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider, playerConnectionInteractor) {
|
|
6340
|
-
this.
|
|
6341
|
-
this.
|
|
6342
|
-
this.
|
|
6340
|
+
this.bbj_1 = logicConfig;
|
|
6341
|
+
this.cbj_1 = idsProvider;
|
|
6342
|
+
this.dbj_1 = playerConnectionInteractor;
|
|
6343
6343
|
}
|
|
6344
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
6344
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).ba8 = function () {
|
|
6345
6345
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
6346
6346
|
return new ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1(this);
|
|
6347
6347
|
};
|
|
@@ -6350,8 +6350,8 @@
|
|
|
6350
6350
|
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(logger, playerConnectionInteractor);
|
|
6351
6351
|
}
|
|
6352
6352
|
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($logger, $playerConnectionInteractor) {
|
|
6353
|
-
this.
|
|
6354
|
-
this.
|
|
6353
|
+
this.gbj_1 = $logger;
|
|
6354
|
+
this.hbj_1 = $playerConnectionInteractor;
|
|
6355
6355
|
}
|
|
6356
6356
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).s79 = function (action) {
|
|
6357
6357
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -6372,7 +6372,7 @@
|
|
|
6372
6372
|
}
|
|
6373
6373
|
}
|
|
6374
6374
|
if (player.b7p_1.q71().a70_1.isLeftPermanently) {
|
|
6375
|
-
this.
|
|
6375
|
+
this.gbj_1.w('playerConnectionUpdateMiddleware', "player connection state can't be changed after [playerLeft] is invoked, " + tmp4.toString());
|
|
6376
6376
|
break $l$block_1;
|
|
6377
6377
|
}
|
|
6378
6378
|
}
|
|
@@ -6395,7 +6395,7 @@
|
|
|
6395
6395
|
var _iterator__ex2g4s_0 = destination.t();
|
|
6396
6396
|
while (_iterator__ex2g4s_0.u()) {
|
|
6397
6397
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
6398
|
-
if (element_0.
|
|
6398
|
+
if (element_0.ibj_1 === tmp4.ua0_1) {
|
|
6399
6399
|
if (found) {
|
|
6400
6400
|
tmp$ret$4 = null;
|
|
6401
6401
|
break $l$block_3;
|
|
@@ -6414,7 +6414,7 @@
|
|
|
6414
6414
|
if (!(reconnectionTimerTag == null)) {
|
|
6415
6415
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
6416
6416
|
}
|
|
6417
|
-
var actions = this.
|
|
6417
|
+
var actions = this.hbj_1.vbh(tmp4.ta0_1, player.b7p_1.q71().a70_1, player, store.state.k7l(), tmp4.wa0_1);
|
|
6418
6418
|
// Inline function 'kotlin.collections.forEach' call
|
|
6419
6419
|
var _iterator__ex2g4s_1 = actions.t();
|
|
6420
6420
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -6431,17 +6431,17 @@
|
|
|
6431
6431
|
return new playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
6432
6432
|
}
|
|
6433
6433
|
function PlayerReconnectionWaitingTimerTag(playerId, state, previousState) {
|
|
6434
|
-
this.
|
|
6435
|
-
this.
|
|
6436
|
-
this.
|
|
6434
|
+
this.ibj_1 = playerId;
|
|
6435
|
+
this.jbj_1 = state;
|
|
6436
|
+
this.kbj_1 = previousState;
|
|
6437
6437
|
}
|
|
6438
6438
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
6439
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
6439
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.ibj_1 + ', state=' + this.jbj_1.toString() + ', previousState=' + this.kbj_1.toString() + ')';
|
|
6440
6440
|
};
|
|
6441
6441
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
6442
|
-
var result = getStringHashCode(this.
|
|
6443
|
-
result = imul(result, 31) + this.ibj_1.hashCode() | 0;
|
|
6442
|
+
var result = getStringHashCode(this.ibj_1);
|
|
6444
6443
|
result = imul(result, 31) + this.jbj_1.hashCode() | 0;
|
|
6444
|
+
result = imul(result, 31) + this.kbj_1.hashCode() | 0;
|
|
6445
6445
|
return result;
|
|
6446
6446
|
};
|
|
6447
6447
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -6449,16 +6449,16 @@
|
|
|
6449
6449
|
return true;
|
|
6450
6450
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
6451
6451
|
return false;
|
|
6452
|
-
if (!(this.
|
|
6453
|
-
return false;
|
|
6454
|
-
if (!this.ibj_1.equals(other.ibj_1))
|
|
6452
|
+
if (!(this.ibj_1 === other.ibj_1))
|
|
6455
6453
|
return false;
|
|
6456
6454
|
if (!this.jbj_1.equals(other.jbj_1))
|
|
6457
6455
|
return false;
|
|
6456
|
+
if (!this.kbj_1.equals(other.kbj_1))
|
|
6457
|
+
return false;
|
|
6458
6458
|
return true;
|
|
6459
6459
|
};
|
|
6460
6460
|
function playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
6461
|
-
this.
|
|
6461
|
+
this.lbj_1 = $playerConnectionInteractor;
|
|
6462
6462
|
}
|
|
6463
6463
|
protoOf(playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1).s79 = function (action) {
|
|
6464
6464
|
return action instanceof TimerTickAction;
|
|
@@ -6472,8 +6472,8 @@
|
|
|
6472
6472
|
var timerTag = tmp4.o79_1;
|
|
6473
6473
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
6474
6474
|
var state = store.state;
|
|
6475
|
-
var player = getPlayer(state.k7l().players, timerTag.
|
|
6476
|
-
var actions = this.
|
|
6475
|
+
var player = getPlayer(state.k7l().players, timerTag.ibj_1);
|
|
6476
|
+
var actions = this.lbj_1.vbh(timerTag.jbj_1, timerTag.kbj_1, player, state.k7l(), true);
|
|
6477
6477
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6478
6478
|
if (!actions.r()) {
|
|
6479
6479
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -6495,7 +6495,7 @@
|
|
|
6495
6495
|
return new playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
6496
6496
|
}
|
|
6497
6497
|
function playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
6498
|
-
this.
|
|
6498
|
+
this.mbj_1 = $playerConnectionInteractor;
|
|
6499
6499
|
}
|
|
6500
6500
|
protoOf(playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1).s79 = function (action) {
|
|
6501
6501
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -6523,7 +6523,7 @@
|
|
|
6523
6523
|
var tmp1_previousConnectionState = element_0.b7p_1.q71().a70_1;
|
|
6524
6524
|
var tmp2_playerId = element_0.playerId;
|
|
6525
6525
|
// Inline function 'kotlin.collections.forEach' call
|
|
6526
|
-
var _iterator__ex2g4s_1 = this.
|
|
6526
|
+
var _iterator__ex2g4s_1 = this.mbj_1.wbh(tmp2_playerId, tmp0_newConnectionState, tmp1_previousConnectionState).t();
|
|
6527
6527
|
while (_iterator__ex2g4s_1.u()) {
|
|
6528
6528
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
6529
6529
|
store.dispatch(element_1);
|
|
@@ -6538,8 +6538,8 @@
|
|
|
6538
6538
|
return new sendToClientActionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, provider);
|
|
6539
6539
|
}
|
|
6540
6540
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
6541
|
-
this.
|
|
6542
|
-
this.
|
|
6541
|
+
this.vbj_1 = $provider;
|
|
6542
|
+
this.wbj_1 = $action;
|
|
6543
6543
|
CoroutineImpl.call(this, resultContinuation);
|
|
6544
6544
|
}
|
|
6545
6545
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).c2g = function ($this$launchDefault, $completion) {
|
|
@@ -6560,7 +6560,7 @@
|
|
|
6560
6560
|
case 0:
|
|
6561
6561
|
this.j9_1 = 2;
|
|
6562
6562
|
this.i9_1 = 1;
|
|
6563
|
-
suspendResult = this.
|
|
6563
|
+
suspendResult = this.vbj_1.pbf(this.wbj_1, this);
|
|
6564
6564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6565
6565
|
return suspendResult;
|
|
6566
6566
|
}
|
|
@@ -6583,8 +6583,8 @@
|
|
|
6583
6583
|
while (true);
|
|
6584
6584
|
};
|
|
6585
6585
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).d2g = function ($this$launchDefault, completion) {
|
|
6586
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
6587
|
-
i.
|
|
6586
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.vbj_1, this.wbj_1, completion);
|
|
6587
|
+
i.xbj_1 = $this$launchDefault;
|
|
6588
6588
|
return i;
|
|
6589
6589
|
};
|
|
6590
6590
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -6596,15 +6596,15 @@
|
|
|
6596
6596
|
return l;
|
|
6597
6597
|
}
|
|
6598
6598
|
function sendToClientActionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $provider) {
|
|
6599
|
-
this.
|
|
6600
|
-
this.
|
|
6599
|
+
this.ybj_1 = $asyncProvider;
|
|
6600
|
+
this.zbj_1 = $provider;
|
|
6601
6601
|
}
|
|
6602
6602
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).s79 = function (action) {
|
|
6603
6603
|
return action instanceof ToClientAction;
|
|
6604
6604
|
};
|
|
6605
6605
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).h7b = function (store, next, action) {
|
|
6606
6606
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
6607
|
-
this.
|
|
6607
|
+
this.ybj_1.i75(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.zbj_1, action_0, null));
|
|
6608
6608
|
next(action_0);
|
|
6609
6609
|
};
|
|
6610
6610
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).r79 = function (store, next, action) {
|
|
@@ -6615,11 +6615,11 @@
|
|
|
6615
6615
|
return new playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
6616
6616
|
}
|
|
6617
6617
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
6618
|
-
this.
|
|
6619
|
-
this.
|
|
6620
|
-
this.
|
|
6621
|
-
this.
|
|
6622
|
-
this.
|
|
6618
|
+
this.ibk_1 = $store;
|
|
6619
|
+
this.jbk_1 = $timerTag;
|
|
6620
|
+
this.kbk_1 = $serverConfig;
|
|
6621
|
+
this.lbk_1 = $logger;
|
|
6622
|
+
this.mbk_1 = $action;
|
|
6623
6623
|
CoroutineImpl.call(this, resultContinuation);
|
|
6624
6624
|
}
|
|
6625
6625
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).c2g = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -6638,13 +6638,13 @@
|
|
|
6638
6638
|
var tmp = this.i9_1;
|
|
6639
6639
|
if (tmp === 0) {
|
|
6640
6640
|
this.j9_1 = 1;
|
|
6641
|
-
var table = this.
|
|
6642
|
-
var player = getPlayer(table.players, this.
|
|
6641
|
+
var table = this.ibk_1.state.k7l();
|
|
6642
|
+
var player = getPlayer(table.players, this.jbk_1.n6y());
|
|
6643
6643
|
var connectionState = player.b7p_1.q71().a70_1;
|
|
6644
6644
|
var tmp_0;
|
|
6645
6645
|
switch (connectionState.a1_1) {
|
|
6646
6646
|
case 1:
|
|
6647
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, VOID, this.
|
|
6647
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, VOID, this.jbk_1.saf_1));
|
|
6648
6648
|
break;
|
|
6649
6649
|
case 6:
|
|
6650
6650
|
tmp_0 = emptyList();
|
|
@@ -6655,8 +6655,8 @@
|
|
|
6655
6655
|
case 2:
|
|
6656
6656
|
case 0:
|
|
6657
6657
|
var tmp_1;
|
|
6658
|
-
if (table.sceneInfo.s8b() && this.
|
|
6659
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, VOID, this.
|
|
6658
|
+
if (table.sceneInfo.s8b() && this.kbk_1.closeIfBotsAtFinish) {
|
|
6659
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, VOID, this.jbk_1.saf_1);
|
|
6660
6660
|
} else {
|
|
6661
6661
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
6662
6662
|
}
|
|
@@ -6664,7 +6664,7 @@
|
|
|
6664
6664
|
tmp_0 = listOf(tmp_1);
|
|
6665
6665
|
break;
|
|
6666
6666
|
case 7:
|
|
6667
|
-
this.
|
|
6667
|
+
this.lbk_1.w('playerTurnTimeoutWhenHasConnectionMiddleware', "Can't support this state " + connectionState.toString() + ', ' + ('action:' + this.mbk_1.toString()));
|
|
6668
6668
|
tmp_0 = emptyList();
|
|
6669
6669
|
break;
|
|
6670
6670
|
default:
|
|
@@ -6676,7 +6676,7 @@
|
|
|
6676
6676
|
var _iterator__ex2g4s = actions.t();
|
|
6677
6677
|
while (_iterator__ex2g4s.u()) {
|
|
6678
6678
|
var element = _iterator__ex2g4s.v();
|
|
6679
|
-
this.
|
|
6679
|
+
this.ibk_1.dispatch(element);
|
|
6680
6680
|
}
|
|
6681
6681
|
}
|
|
6682
6682
|
return Unit_instance;
|
|
@@ -6690,8 +6690,8 @@
|
|
|
6690
6690
|
while (true);
|
|
6691
6691
|
};
|
|
6692
6692
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).d2g = function ($this$launchDefaultWithLock, completion) {
|
|
6693
|
-
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.
|
|
6694
|
-
i.
|
|
6693
|
+
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.ibk_1, this.jbk_1, this.kbk_1, this.lbk_1, this.mbk_1, completion);
|
|
6694
|
+
i.nbk_1 = $this$launchDefaultWithLock;
|
|
6695
6695
|
return i;
|
|
6696
6696
|
};
|
|
6697
6697
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -6703,9 +6703,9 @@
|
|
|
6703
6703
|
return l;
|
|
6704
6704
|
}
|
|
6705
6705
|
function playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
6706
|
-
this.
|
|
6707
|
-
this.
|
|
6708
|
-
this.
|
|
6706
|
+
this.obk_1 = $asyncProvider;
|
|
6707
|
+
this.pbk_1 = $serverConfig;
|
|
6708
|
+
this.qbk_1 = $logger;
|
|
6709
6709
|
}
|
|
6710
6710
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1).s79 = function (action) {
|
|
6711
6711
|
return action instanceof TimerTickAction;
|
|
@@ -6714,7 +6714,7 @@
|
|
|
6714
6714
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
6715
6715
|
var timerTag = action_0.o79_1;
|
|
6716
6716
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
6717
|
-
this.
|
|
6717
|
+
this.obk_1.k75(VOID, playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0(store, timerTag, this.pbk_1, this.qbk_1, action_0, null));
|
|
6718
6718
|
}
|
|
6719
6719
|
next(action_0);
|
|
6720
6720
|
};
|
|
@@ -6730,19 +6730,19 @@
|
|
|
6730
6730
|
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).s79 = function (action) {
|
|
6731
6731
|
return action instanceof UpdateServerConfigAction;
|
|
6732
6732
|
};
|
|
6733
|
-
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).
|
|
6733
|
+
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).bai = function (state, action) {
|
|
6734
6734
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
6735
|
-
return state.ma0(VOID, get_serverStatePayload_0(state).copy(action_0.
|
|
6735
|
+
return state.ma0(VOID, get_serverStatePayload_0(state).copy(action_0.fbi_1));
|
|
6736
6736
|
};
|
|
6737
6737
|
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).i7b = function (state, action) {
|
|
6738
|
-
return this.
|
|
6738
|
+
return this.bai((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6739
6739
|
};
|
|
6740
6740
|
function addRoomMetadata($this, _this__u8e3s4, gameId) {
|
|
6741
6741
|
_this__u8e3s4.metadata.addGame(gameId, new GameMetadata(gameId));
|
|
6742
6742
|
return _this__u8e3s4.metadata;
|
|
6743
6743
|
}
|
|
6744
6744
|
function Companion_5() {
|
|
6745
|
-
this.
|
|
6745
|
+
this.rbk_1 = 'ServerMechanicLifecycleReducer';
|
|
6746
6746
|
}
|
|
6747
6747
|
var Companion_instance_16;
|
|
6748
6748
|
function Companion_getInstance_6() {
|
|
@@ -6750,31 +6750,31 @@
|
|
|
6750
6750
|
}
|
|
6751
6751
|
function ServerMechanicLifecycleReducer$onStart$lambda(this$0, $updatedServerPayload) {
|
|
6752
6752
|
return function (it) {
|
|
6753
|
-
return Companion_instance_4.m71(this$0.
|
|
6753
|
+
return Companion_instance_4.m71(this$0.vbk_1.zbh(it.isBot, it.b6z_1, $updatedServerPayload.connectedPlayers));
|
|
6754
6754
|
};
|
|
6755
6755
|
}
|
|
6756
6756
|
function ServerMechanicLifecycleReducer(logger, connectionInteractor, tableLifecycleReducer, randomPoolProvider) {
|
|
6757
6757
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
6758
|
-
this.
|
|
6759
|
-
this.
|
|
6758
|
+
this.ubk_1 = logger;
|
|
6759
|
+
this.vbk_1 = connectionInteractor;
|
|
6760
6760
|
}
|
|
6761
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6761
|
+
protoOf(ServerMechanicLifecycleReducer).saj = function (state, action) {
|
|
6762
6762
|
var serverState = get_serverStatePayload_0(state);
|
|
6763
|
-
this.
|
|
6763
|
+
this.ubk_1.d('ServerMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance) + ', connectedPlayers: ' + toString(serverState.connectedPlayers), action);
|
|
6764
6764
|
var tableId = action.ma1_1;
|
|
6765
6765
|
var updatedServerPayload = serverState.copy(VOID, addRoomMetadata(this, serverState, tableId));
|
|
6766
6766
|
var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6767
|
-
var tmp0_$this = this.
|
|
6767
|
+
var tmp0_$this = this.taj_1;
|
|
6768
6768
|
var tmp1_version = action.na1_1;
|
|
6769
6769
|
var tmp2_config = action.la1_1;
|
|
6770
6770
|
var tmp3_users = action.pa1_1;
|
|
6771
6771
|
var tmp4_spectators = action.ra1_1;
|
|
6772
6772
|
var tmp5_gameCreatorPlayerId = action.oa1_1;
|
|
6773
|
-
var tmp7_tableOrNull = tmp0_$this.
|
|
6773
|
+
var tmp7_tableOrNull = tmp0_$this.cal(tableId, tableId, tmp2_config, tmp1_version, tmp3_users, tmp4_spectators, tmp5_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(this, updatedServerPayload));
|
|
6774
6774
|
return state.ma0(tmp7_tableOrNull, updatedServerPayload, tmp6_gameLifecycleState);
|
|
6775
6775
|
};
|
|
6776
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6777
|
-
this.
|
|
6776
|
+
protoOf(ServerMechanicLifecycleReducer).qaj = function (state, action) {
|
|
6777
|
+
this.ubk_1.d('ServerMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
6778
6778
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6779
6779
|
var tmp2_tableOrNull = action.table;
|
|
6780
6780
|
var tmp = Companion_instance_17;
|
|
@@ -6784,10 +6784,10 @@
|
|
|
6784
6784
|
var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j6x_1), addRoomMetadata(this, get_serverStatePayload_0(state), action.table.gameId));
|
|
6785
6785
|
return state.ma0(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
6786
6786
|
};
|
|
6787
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6788
|
-
this.
|
|
6787
|
+
protoOf(ServerMechanicLifecycleReducer).raj = function (state, action) {
|
|
6788
|
+
this.uaj_1.j60(action.previousGameId);
|
|
6789
6789
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6790
|
-
var tmp1_tableOrNull = this.
|
|
6790
|
+
var tmp1_tableOrNull = this.taj_1.dal(state.k7l(), action.gameId);
|
|
6791
6791
|
var tmp2_payload = get_serverStatePayload_0(state).copy(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), action.gameId));
|
|
6792
6792
|
return state.ma0(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState);
|
|
6793
6793
|
};
|
|
@@ -6796,18 +6796,18 @@
|
|
|
6796
6796
|
return new spectatorsReducer$$inlined$reducerForActionType$1(logger);
|
|
6797
6797
|
}
|
|
6798
6798
|
function spectatorsReducer$$inlined$reducerForActionType$1($logger) {
|
|
6799
|
-
this.
|
|
6799
|
+
this.wbk_1 = $logger;
|
|
6800
6800
|
}
|
|
6801
6801
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).s79 = function (action) {
|
|
6802
6802
|
return isInterface(action, SpectatorsAction);
|
|
6803
6803
|
};
|
|
6804
|
-
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).
|
|
6804
|
+
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).bai = function (state, action) {
|
|
6805
6805
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
6806
6806
|
var table = state.k7l();
|
|
6807
6807
|
var tmp;
|
|
6808
6808
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
6809
6809
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
6810
|
-
var tmp0 = action_0.
|
|
6810
|
+
var tmp0 = action_0.gbi_1;
|
|
6811
6811
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
6812
6812
|
var destination = ArrayList_init_$Create$_0();
|
|
6813
6813
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -6826,9 +6826,9 @@
|
|
|
6826
6826
|
var tmp_0;
|
|
6827
6827
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6828
6828
|
if (!sameSpectators.r()) {
|
|
6829
|
-
this.
|
|
6829
|
+
this.wbk_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
6830
6830
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6831
|
-
var tmp0_0 = action_0.
|
|
6831
|
+
var tmp0_0 = action_0.gbi_1;
|
|
6832
6832
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
6833
6833
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
6834
6834
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -6863,7 +6863,7 @@
|
|
|
6863
6863
|
}
|
|
6864
6864
|
tmp_0 = destination_0;
|
|
6865
6865
|
} else {
|
|
6866
|
-
tmp_0 = action_0.
|
|
6866
|
+
tmp_0 = action_0.gbi_1;
|
|
6867
6867
|
}
|
|
6868
6868
|
// Inline function 'kotlin.collections.map' call
|
|
6869
6869
|
var this_0 = tmp_0;
|
|
@@ -6880,7 +6880,7 @@
|
|
|
6880
6880
|
} else {
|
|
6881
6881
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
6882
6882
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
6883
|
-
var tmp0_1 = action_0.
|
|
6883
|
+
var tmp0_1 = action_0.hbi_1;
|
|
6884
6884
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
6885
6885
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
6886
6886
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -6899,9 +6899,9 @@
|
|
|
6899
6899
|
var tmp_2;
|
|
6900
6900
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6901
6901
|
if (!sameSpectators_0.r()) {
|
|
6902
|
-
this.
|
|
6902
|
+
this.wbk_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
6903
6903
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6904
|
-
var tmp0_2 = action_0.
|
|
6904
|
+
var tmp0_2 = action_0.hbi_1;
|
|
6905
6905
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
6906
6906
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
6907
6907
|
var _iterator__ex2g4s_4 = tmp0_2.t();
|
|
@@ -6936,7 +6936,7 @@
|
|
|
6936
6936
|
}
|
|
6937
6937
|
tmp_2 = destination_3;
|
|
6938
6938
|
} else {
|
|
6939
|
-
tmp_2 = action_0.
|
|
6939
|
+
tmp_2 = action_0.hbi_1;
|
|
6940
6940
|
}
|
|
6941
6941
|
var spectatorsToRemove = toSet(tmp_2);
|
|
6942
6942
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -6981,7 +6981,7 @@
|
|
|
6981
6981
|
return tmp;
|
|
6982
6982
|
};
|
|
6983
6983
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).i7b = function (state, action) {
|
|
6984
|
-
return this.
|
|
6984
|
+
return this.bai((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6985
6985
|
};
|
|
6986
6986
|
function playerConnectionUpdateReducer() {
|
|
6987
6987
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -6992,7 +6992,7 @@
|
|
|
6992
6992
|
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).s79 = function (action) {
|
|
6993
6993
|
return action instanceof PlayerConnectionUpdateAction;
|
|
6994
6994
|
};
|
|
6995
|
-
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).
|
|
6995
|
+
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).bai = function (state, action) {
|
|
6996
6996
|
var action_0 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
6997
6997
|
var statePayload = get_serverStatePayload_0(state);
|
|
6998
6998
|
var tmp;
|
|
@@ -7004,17 +7004,17 @@
|
|
|
7004
7004
|
return tmp;
|
|
7005
7005
|
};
|
|
7006
7006
|
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).i7b = function (state, action) {
|
|
7007
|
-
return this.
|
|
7007
|
+
return this.bai((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
7008
7008
|
};
|
|
7009
7009
|
function Companion_6() {
|
|
7010
7010
|
}
|
|
7011
|
-
protoOf(Companion_6).
|
|
7011
|
+
protoOf(Companion_6).xbk = function (config, metadata) {
|
|
7012
7012
|
return new ServerStatePayload(config, metadata, emptyList());
|
|
7013
7013
|
};
|
|
7014
7014
|
protoOf(Companion_6).initial = function (config, metadata, $super) {
|
|
7015
7015
|
config = config === VOID ? Companion_instance_11.initial(null) : config;
|
|
7016
7016
|
metadata = metadata === VOID ? new RoomMetadata() : metadata;
|
|
7017
|
-
return $super === VOID ? this.
|
|
7017
|
+
return $super === VOID ? this.xbk(config, metadata) : $super.xbk.call(this, config, metadata);
|
|
7018
7018
|
};
|
|
7019
7019
|
var Companion_instance_17;
|
|
7020
7020
|
function Companion_getInstance_7() {
|
|
@@ -7031,7 +7031,7 @@
|
|
|
7031
7031
|
protoOf(ServerStatePayload).c9j = function () {
|
|
7032
7032
|
return this.metadata;
|
|
7033
7033
|
};
|
|
7034
|
-
protoOf(ServerStatePayload).
|
|
7034
|
+
protoOf(ServerStatePayload).ybk = function () {
|
|
7035
7035
|
return this.connectedPlayers;
|
|
7036
7036
|
};
|
|
7037
7037
|
protoOf(ServerStatePayload).jg = function () {
|
|
@@ -7043,14 +7043,14 @@
|
|
|
7043
7043
|
protoOf(ServerStatePayload).pn = function () {
|
|
7044
7044
|
return this.connectedPlayers;
|
|
7045
7045
|
};
|
|
7046
|
-
protoOf(ServerStatePayload).
|
|
7046
|
+
protoOf(ServerStatePayload).zbk = function (config, metadata, connectedPlayers) {
|
|
7047
7047
|
return new ServerStatePayload(config, metadata, connectedPlayers);
|
|
7048
7048
|
};
|
|
7049
7049
|
protoOf(ServerStatePayload).copy = function (config, metadata, connectedPlayers, $super) {
|
|
7050
7050
|
config = config === VOID ? this.config : config;
|
|
7051
7051
|
metadata = metadata === VOID ? this.metadata : metadata;
|
|
7052
7052
|
connectedPlayers = connectedPlayers === VOID ? this.connectedPlayers : connectedPlayers;
|
|
7053
|
-
return $super === VOID ? this.
|
|
7053
|
+
return $super === VOID ? this.zbk(config, metadata, connectedPlayers) : $super.zbk.call(this, config, metadata, connectedPlayers);
|
|
7054
7054
|
};
|
|
7055
7055
|
protoOf(ServerStatePayload).toString = function () {
|
|
7056
7056
|
return 'ServerStatePayload(config=' + this.config.toString() + ', metadata=' + toString(this.metadata) + ', connectedPlayers=' + toString(this.connectedPlayers) + ')';
|
|
@@ -7098,7 +7098,7 @@
|
|
|
7098
7098
|
return new ServerLoggerKey(_this__u8e3s4.gameId);
|
|
7099
7099
|
}
|
|
7100
7100
|
function serverLoggerKeyFromPayload(_this__u8e3s4, payload) {
|
|
7101
|
-
var gameId = Companion_instance_5.
|
|
7101
|
+
var gameId = Companion_instance_5.dan(payload);
|
|
7102
7102
|
var tmp;
|
|
7103
7103
|
if (!(gameId == null)) {
|
|
7104
7104
|
tmp = new ServerLoggerKey(gameId);
|
|
@@ -7115,14 +7115,14 @@
|
|
|
7115
7115
|
return new GameServerEngineControllerImpl(loggerCallback, randomOrgConfig);
|
|
7116
7116
|
}
|
|
7117
7117
|
function _get_logger__rkp4sl_0($this) {
|
|
7118
|
-
var tmp0 = $this.
|
|
7118
|
+
var tmp0 = $this.kbl_1;
|
|
7119
7119
|
var tmp = KProperty1;
|
|
7120
7120
|
// Inline function 'kotlin.getValue' call
|
|
7121
7121
|
getPropertyCallableRef('logger', 1, tmp, GameServerEngineControllerImpl$_get_logger_$ref_b9j0th(), null);
|
|
7122
7122
|
return tmp0.o1();
|
|
7123
7123
|
}
|
|
7124
7124
|
function _get_di__ndbzja($this) {
|
|
7125
|
-
var tmp0 = $this.
|
|
7125
|
+
var tmp0 = $this.lbl_1;
|
|
7126
7126
|
var tmp = KProperty1;
|
|
7127
7127
|
// Inline function 'kotlin.getValue' call
|
|
7128
7128
|
getPropertyCallableRef('di', 1, tmp, GameServerEngineControllerImpl$_get_di_$ref_cvlqo6(), null);
|
|
@@ -7139,8 +7139,8 @@
|
|
|
7139
7139
|
}
|
|
7140
7140
|
function createCallbackOutput($this, gameServer) {
|
|
7141
7141
|
var tmp;
|
|
7142
|
-
if (!($this.
|
|
7143
|
-
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.
|
|
7142
|
+
if (!($this.hbl_1 == null)) {
|
|
7143
|
+
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.hbl_1);
|
|
7144
7144
|
tmp = new CallbackWrapperLoggerOutput(tmp_0, GameServerEngineControllerImpl$createCallbackOutput$lambda(gameServer));
|
|
7145
7145
|
} else {
|
|
7146
7146
|
tmp = null;
|
|
@@ -7154,11 +7154,11 @@
|
|
|
7154
7154
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
7155
7155
|
return function () {
|
|
7156
7156
|
var tmp;
|
|
7157
|
-
if (this$0.
|
|
7157
|
+
if (this$0.hbl_1 == null) {
|
|
7158
7158
|
tmp = null;
|
|
7159
7159
|
} else {
|
|
7160
7160
|
// Inline function 'kotlin.let' call
|
|
7161
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
7161
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.hbl_1)]));
|
|
7162
7162
|
}
|
|
7163
7163
|
var tmp1_elvis_lhs = tmp;
|
|
7164
7164
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -7191,7 +7191,7 @@
|
|
|
7191
7191
|
tmp_0.c6v(tmp$ret$3);
|
|
7192
7192
|
$this$DI.b6r(jsonModule());
|
|
7193
7193
|
$this$DI.b6r(serverHelpersModule());
|
|
7194
|
-
$this$DI.b6r(randomOrgModule(this$0.
|
|
7194
|
+
$this$DI.b6r(randomOrgModule(this$0.ibl_1));
|
|
7195
7195
|
return Unit_instance;
|
|
7196
7196
|
};
|
|
7197
7197
|
}
|
|
@@ -7267,16 +7267,16 @@
|
|
|
7267
7267
|
};
|
|
7268
7268
|
}
|
|
7269
7269
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1($reducer) {
|
|
7270
|
-
this.
|
|
7270
|
+
this.sbl_1 = $reducer;
|
|
7271
7271
|
}
|
|
7272
7272
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).s79 = function (action) {
|
|
7273
7273
|
return isInterface(action, Action);
|
|
7274
7274
|
};
|
|
7275
|
-
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).
|
|
7276
|
-
return this.
|
|
7275
|
+
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).bai = function (state, action) {
|
|
7276
|
+
return this.sbl_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
7277
7277
|
};
|
|
7278
7278
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).i7b = function (state, action) {
|
|
7279
|
-
return this.
|
|
7279
|
+
return this.bai((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
7280
7280
|
};
|
|
7281
7281
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($gameServer) {
|
|
7282
7282
|
return function () {
|
|
@@ -7356,7 +7356,7 @@
|
|
|
7356
7356
|
}
|
|
7357
7357
|
function GameServerEngineControllerImpl$createCallbackOutput$lambda($gameServer) {
|
|
7358
7358
|
return function (it) {
|
|
7359
|
-
var payload = Companion_instance_8.
|
|
7359
|
+
var payload = Companion_instance_8.qal(it);
|
|
7360
7360
|
var tmp;
|
|
7361
7361
|
if (!(payload == null)) {
|
|
7362
7362
|
return payload;
|
|
@@ -7377,18 +7377,18 @@
|
|
|
7377
7377
|
// Inline function 'kotlin.let' call
|
|
7378
7378
|
$this$DI.b6r(tmp0_safe_receiver);
|
|
7379
7379
|
}
|
|
7380
|
-
$this$DI.b6r(dealerModule(this$0.randomPoolProvider, this$0.
|
|
7380
|
+
$this$DI.b6r(dealerModule(this$0.randomPoolProvider, this$0.ibl_1));
|
|
7381
7381
|
$this$DI.b6r(coreModule($coreConfig));
|
|
7382
|
-
$this$DI.b6r(createGameServerDI($serverConfig, $logicConfig, $engineBotConfig, $dealerConfig, $ratingConfig, $leaguesConfig, $externalReducers, $externalMiddlewares, this$0.
|
|
7382
|
+
$this$DI.b6r(createGameServerDI($serverConfig, $logicConfig, $engineBotConfig, $dealerConfig, $ratingConfig, $leaguesConfig, $externalReducers, $externalMiddlewares, this$0.jbl_1.car() ? this$0.jbl_1 : null));
|
|
7383
7383
|
return Unit_instance;
|
|
7384
7384
|
};
|
|
7385
7385
|
}
|
|
7386
7386
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
7387
7387
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
7388
7388
|
production = production === VOID ? true : production;
|
|
7389
|
-
this.
|
|
7390
|
-
this.
|
|
7391
|
-
this.
|
|
7389
|
+
this.hbl_1 = loggerCallback;
|
|
7390
|
+
this.ibl_1 = randomOrgConfig;
|
|
7391
|
+
this.jbl_1 = new BotModelRegistry();
|
|
7392
7392
|
var tmp = AppEnvironment_getInstance();
|
|
7393
7393
|
var tmp_0;
|
|
7394
7394
|
if (production) {
|
|
@@ -7398,9 +7398,9 @@
|
|
|
7398
7398
|
}
|
|
7399
7399
|
tmp.p7f(tmp_0);
|
|
7400
7400
|
var tmp_1 = this;
|
|
7401
|
-
tmp_1.
|
|
7401
|
+
tmp_1.kbl_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
7402
7402
|
var tmp_2 = this;
|
|
7403
|
-
tmp_2.
|
|
7403
|
+
tmp_2.lbl_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
7404
7404
|
var tmp_3 = this;
|
|
7405
7405
|
// Inline function 'org.kodein.di.instance' call
|
|
7406
7406
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -7409,7 +7409,7 @@
|
|
|
7409
7409
|
var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
7410
7410
|
var tmp_5 = Instance(this_0, tmp$ret$0, null);
|
|
7411
7411
|
var tmp_6 = KProperty1;
|
|
7412
|
-
tmp_3.
|
|
7412
|
+
tmp_3.mbl_1 = tmp_5.z6w(this, getPropertyCallableRef('parser', 1, tmp_6, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w(), null));
|
|
7413
7413
|
var tmp_7 = this;
|
|
7414
7414
|
// Inline function 'org.kodein.di.instance' call
|
|
7415
7415
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -7418,7 +7418,7 @@
|
|
|
7418
7418
|
var tmp$ret$2 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
7419
7419
|
var tmp_9 = Instance(this_1, tmp$ret$2, null);
|
|
7420
7420
|
var tmp_10 = KProperty1;
|
|
7421
|
-
tmp_7.
|
|
7421
|
+
tmp_7.nbl_1 = tmp_9.z6w(this, getPropertyCallableRef('helper', 1, tmp_10, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f(), null));
|
|
7422
7422
|
var tmp_11 = this;
|
|
7423
7423
|
// Inline function 'org.kodein.di.instance' call
|
|
7424
7424
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -7427,7 +7427,7 @@
|
|
|
7427
7427
|
var tmp$ret$4 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
7428
7428
|
var tmp_13 = Instance(this_2, tmp$ret$4, null);
|
|
7429
7429
|
var tmp_14 = KProperty1;
|
|
7430
|
-
tmp_11.
|
|
7430
|
+
tmp_11.obl_1 = tmp_13.z6w(this, getPropertyCallableRef('serverHelper', 1, tmp_14, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre(), null));
|
|
7431
7431
|
var tmp_15 = this;
|
|
7432
7432
|
// Inline function 'org.kodein.di.instance' call
|
|
7433
7433
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -7436,7 +7436,7 @@
|
|
|
7436
7436
|
var tmp$ret$6 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
7437
7437
|
var tmp_17 = Instance(this_3, tmp$ret$6, null);
|
|
7438
7438
|
var tmp_18 = KProperty1;
|
|
7439
|
-
tmp_15.
|
|
7439
|
+
tmp_15.pbl_1 = tmp_17.z6w(this, getPropertyCallableRef('resources', 1, tmp_18, GameServerEngineControllerImpl$_get_resources_$ref_dt6416(), null));
|
|
7440
7440
|
var tmp_19 = this;
|
|
7441
7441
|
// Inline function 'org.kodein.di.instance' call
|
|
7442
7442
|
var this_4 = _get_di__ndbzja(this);
|
|
@@ -7445,7 +7445,7 @@
|
|
|
7445
7445
|
var tmp$ret$8 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
7446
7446
|
var tmp_21 = Instance(this_4, tmp$ret$8, null);
|
|
7447
7447
|
var tmp_22 = KProperty1;
|
|
7448
|
-
tmp_19.
|
|
7448
|
+
tmp_19.qbl_1 = tmp_21.z6w(this, getPropertyCallableRef('test', 1, tmp_22, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5(), null));
|
|
7449
7449
|
var tmp_23 = this;
|
|
7450
7450
|
// Inline function 'org.kodein.di.instance' call
|
|
7451
7451
|
var this_5 = _get_di__ndbzja(this);
|
|
@@ -7454,52 +7454,52 @@
|
|
|
7454
7454
|
var tmp$ret$10 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
7455
7455
|
var tmp_25 = Instance(this_5, tmp$ret$10, null);
|
|
7456
7456
|
var tmp_26 = KProperty1;
|
|
7457
|
-
tmp_23.
|
|
7457
|
+
tmp_23.rbl_1 = tmp_25.z6w(this, getPropertyCallableRef('randomPoolProvider', 1, tmp_26, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl(), null));
|
|
7458
7458
|
}
|
|
7459
|
-
protoOf(GameServerEngineControllerImpl).
|
|
7460
|
-
var tmp0 = this.
|
|
7459
|
+
protoOf(GameServerEngineControllerImpl).abl = function () {
|
|
7460
|
+
var tmp0 = this.mbl_1;
|
|
7461
7461
|
var tmp = KProperty1;
|
|
7462
7462
|
// Inline function 'kotlin.getValue' call
|
|
7463
7463
|
getPropertyCallableRef('parser', 1, tmp, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w_0(), null);
|
|
7464
7464
|
return tmp0.o1();
|
|
7465
7465
|
};
|
|
7466
|
-
protoOf(GameServerEngineControllerImpl).
|
|
7467
|
-
var tmp0 = this.
|
|
7466
|
+
protoOf(GameServerEngineControllerImpl).cbl = function () {
|
|
7467
|
+
var tmp0 = this.nbl_1;
|
|
7468
7468
|
var tmp = KProperty1;
|
|
7469
7469
|
// Inline function 'kotlin.getValue' call
|
|
7470
7470
|
getPropertyCallableRef('helper', 1, tmp, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f_0(), null);
|
|
7471
7471
|
return tmp0.o1();
|
|
7472
7472
|
};
|
|
7473
|
-
protoOf(GameServerEngineControllerImpl).
|
|
7474
|
-
var tmp0 = this.
|
|
7473
|
+
protoOf(GameServerEngineControllerImpl).dbl = function () {
|
|
7474
|
+
var tmp0 = this.obl_1;
|
|
7475
7475
|
var tmp = KProperty1;
|
|
7476
7476
|
// Inline function 'kotlin.getValue' call
|
|
7477
7477
|
getPropertyCallableRef('serverHelper', 1, tmp, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre_0(), null);
|
|
7478
7478
|
return tmp0.o1();
|
|
7479
7479
|
};
|
|
7480
|
-
protoOf(GameServerEngineControllerImpl).
|
|
7481
|
-
var tmp0 = this.
|
|
7480
|
+
protoOf(GameServerEngineControllerImpl).ebl = function () {
|
|
7481
|
+
var tmp0 = this.pbl_1;
|
|
7482
7482
|
var tmp = KProperty1;
|
|
7483
7483
|
// Inline function 'kotlin.getValue' call
|
|
7484
7484
|
getPropertyCallableRef('resources', 1, tmp, GameServerEngineControllerImpl$_get_resources_$ref_dt6416_0(), null);
|
|
7485
7485
|
return tmp0.o1();
|
|
7486
7486
|
};
|
|
7487
|
-
protoOf(GameServerEngineControllerImpl).
|
|
7488
|
-
var tmp0 = this.
|
|
7487
|
+
protoOf(GameServerEngineControllerImpl).bbl = function () {
|
|
7488
|
+
var tmp0 = this.qbl_1;
|
|
7489
7489
|
var tmp = KProperty1;
|
|
7490
7490
|
// Inline function 'kotlin.getValue' call
|
|
7491
7491
|
getPropertyCallableRef('test', 1, tmp, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5_0(), null);
|
|
7492
7492
|
return tmp0.o1();
|
|
7493
7493
|
};
|
|
7494
|
-
protoOf(GameServerEngineControllerImpl).
|
|
7495
|
-
var tmp0 = this.
|
|
7494
|
+
protoOf(GameServerEngineControllerImpl).fbl = function () {
|
|
7495
|
+
var tmp0 = this.rbl_1;
|
|
7496
7496
|
var tmp = KProperty1;
|
|
7497
7497
|
// Inline function 'kotlin.getValue' call
|
|
7498
7498
|
getPropertyCallableRef('randomPoolProvider', 1, tmp, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl_0(), null);
|
|
7499
7499
|
return tmp0.o1();
|
|
7500
7500
|
};
|
|
7501
7501
|
protoOf(GameServerEngineControllerImpl).loadModel = function (rulesSetType, playersMode, modelBytes) {
|
|
7502
|
-
this.
|
|
7502
|
+
this.jbl_1.aar(new BotModelConfig(valueOf(playersMode), valueOf_0(rulesSetType), modelBytes));
|
|
7503
7503
|
};
|
|
7504
7504
|
protoOf(GameServerEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
7505
7505
|
Logger_getInstance().u1m_1 = enabled;
|
|
@@ -7507,7 +7507,7 @@
|
|
|
7507
7507
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
7508
7508
|
return this.createGameEngineWithLogic();
|
|
7509
7509
|
};
|
|
7510
|
-
protoOf(GameServerEngineControllerImpl).
|
|
7510
|
+
protoOf(GameServerEngineControllerImpl).gbl = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig, botConfig) {
|
|
7511
7511
|
var combinedLogger = Companion_instance_9.az();
|
|
7512
7512
|
var gameServer = {_v: null};
|
|
7513
7513
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -7555,7 +7555,7 @@
|
|
|
7555
7555
|
function TestHelper() {
|
|
7556
7556
|
}
|
|
7557
7557
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
7558
|
-
var tmp0 = $this.
|
|
7558
|
+
var tmp0 = $this.vbl_1;
|
|
7559
7559
|
var tmp = KProperty1;
|
|
7560
7560
|
// Inline function 'kotlin.getValue' call
|
|
7561
7561
|
getPropertyCallableRef('playerAnswerInteractor', 1, tmp, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy_0(), null);
|
|
@@ -7563,7 +7563,7 @@
|
|
|
7563
7563
|
}
|
|
7564
7564
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
7565
7565
|
return function ($this$singleton) {
|
|
7566
|
-
return this$0.
|
|
7566
|
+
return this$0.tbl_1;
|
|
7567
7567
|
};
|
|
7568
7568
|
}
|
|
7569
7569
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -7603,19 +7603,19 @@
|
|
|
7603
7603
|
return emptyMap();
|
|
7604
7604
|
}
|
|
7605
7605
|
function TestHelperImpl(logger) {
|
|
7606
|
-
this.
|
|
7606
|
+
this.tbl_1 = logger;
|
|
7607
7607
|
var tmp = this;
|
|
7608
7608
|
var tmp_0 = Companion_instance_7;
|
|
7609
|
-
tmp.
|
|
7609
|
+
tmp.ubl_1 = tmp_0.j6r(VOID, TestHelperImpl$di$lambda(this));
|
|
7610
7610
|
var tmp_1 = this;
|
|
7611
7611
|
// Inline function 'org.kodein.di.instance' call
|
|
7612
|
-
var this_0 = this.
|
|
7612
|
+
var this_0 = this.ubl_1;
|
|
7613
7613
|
// Inline function 'org.kodein.type.generic' call
|
|
7614
7614
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
7615
7615
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
7616
7616
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
7617
7617
|
var tmp_4 = KProperty1;
|
|
7618
|
-
tmp_1.
|
|
7618
|
+
tmp_1.vbl_1 = tmp_3.z6w(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_4, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy(), null));
|
|
7619
7619
|
}
|
|
7620
7620
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
7621
7621
|
return _get_playerAnswerInteractor__msggz1(this).g9q(playerId, table, botConfig);
|
|
@@ -7623,7 +7623,7 @@
|
|
|
7623
7623
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
7624
7624
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
7625
7625
|
if (isInterface(mechanicAction, NextPlayerTurnAction)) {
|
|
7626
|
-
var tmp0 = mechanicAction.
|
|
7626
|
+
var tmp0 = mechanicAction.oa4();
|
|
7627
7627
|
var tmp$ret$0;
|
|
7628
7628
|
$l$block_0: {
|
|
7629
7629
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -7655,7 +7655,7 @@
|
|
|
7655
7655
|
};
|
|
7656
7656
|
protoOf(TestHelperImpl).getPlayerAnswerFromMechanicAction = function (table, currentPlayerId, action, botConfig) {
|
|
7657
7657
|
if (isInterface(action, NextPlayerTurnAction)) {
|
|
7658
|
-
var tmp0 = action.
|
|
7658
|
+
var tmp0 = action.oa4();
|
|
7659
7659
|
var tmp$ret$0;
|
|
7660
7660
|
$l$block_0: {
|
|
7661
7661
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -7688,14 +7688,14 @@
|
|
|
7688
7688
|
function RoomMetadata() {
|
|
7689
7689
|
var tmp = this;
|
|
7690
7690
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7691
|
-
tmp.
|
|
7691
|
+
tmp.wbl_1 = LinkedHashMap_init_$Create$();
|
|
7692
7692
|
this.extras = {};
|
|
7693
|
-
this.extras = this.
|
|
7693
|
+
this.extras = this.wbl_1;
|
|
7694
7694
|
}
|
|
7695
|
-
protoOf(RoomMetadata).
|
|
7695
|
+
protoOf(RoomMetadata).xbl = function () {
|
|
7696
7696
|
return this.extras;
|
|
7697
7697
|
};
|
|
7698
|
-
protoOf(RoomMetadata).
|
|
7698
|
+
protoOf(RoomMetadata).xbl = function () {
|
|
7699
7699
|
return this.extras;
|
|
7700
7700
|
};
|
|
7701
7701
|
protoOf(RoomMetadata).getGame = function (gameId) {
|
|
@@ -7713,7 +7713,7 @@
|
|
|
7713
7713
|
};
|
|
7714
7714
|
protoOf(RoomMetadata).addGame = function (gameId, game) {
|
|
7715
7715
|
// Inline function 'kotlin.collections.set' call
|
|
7716
|
-
this.
|
|
7716
|
+
this.wbl_1.z2(gameId, game);
|
|
7717
7717
|
};
|
|
7718
7718
|
function GameMetadata(gameId) {
|
|
7719
7719
|
this.gameId = gameId;
|
|
@@ -7722,7 +7722,7 @@
|
|
|
7722
7722
|
protoOf(GameMetadata).y5v = function () {
|
|
7723
7723
|
return this.gameId;
|
|
7724
7724
|
};
|
|
7725
|
-
protoOf(GameMetadata).
|
|
7725
|
+
protoOf(GameMetadata).xbl = function () {
|
|
7726
7726
|
return this.extras;
|
|
7727
7727
|
};
|
|
7728
7728
|
function serverHelpersModule() {
|
|
@@ -7815,7 +7815,7 @@
|
|
|
7815
7815
|
defineProp(protoOf(ActionsStateUpdate), 'roomId', function () {
|
|
7816
7816
|
return this.q9f();
|
|
7817
7817
|
});
|
|
7818
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
7818
|
+
protoOf(PlayerConnectionInteractorImpl).ubc = getToClientContinueAction$default;
|
|
7819
7819
|
protoOf(UpdateServerConfigAction).e79 = get_actionTag;
|
|
7820
7820
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
7821
7821
|
return this.e79();
|
|
@@ -7832,22 +7832,22 @@
|
|
|
7832
7832
|
protoOf(PlayerReconnectionWaitingTimerTag).w9z = ignoreTimerResetValidation;
|
|
7833
7833
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
7834
7834
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
7835
|
-
return this.
|
|
7835
|
+
return this.abl();
|
|
7836
7836
|
});
|
|
7837
7837
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
7838
|
-
return this.
|
|
7838
|
+
return this.cbl();
|
|
7839
7839
|
});
|
|
7840
7840
|
defineProp(protoOf(GameServerEngineControllerImpl), 'serverHelper', function () {
|
|
7841
|
-
return this.
|
|
7841
|
+
return this.dbl();
|
|
7842
7842
|
});
|
|
7843
7843
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
7844
|
-
return this.
|
|
7844
|
+
return this.ebl();
|
|
7845
7845
|
});
|
|
7846
7846
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
7847
|
-
return this.
|
|
7847
|
+
return this.bbl();
|
|
7848
7848
|
});
|
|
7849
7849
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
7850
|
-
return this.
|
|
7850
|
+
return this.fbl();
|
|
7851
7851
|
});
|
|
7852
7852
|
//endregion
|
|
7853
7853
|
//region block: init
|