raspberry_games_server_game_logic 1.8.442 → 1.8.444
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-core.js +2 -2
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +10304 -10287
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +4 -2
- package/Logic_Debertz-game_server.js +973 -919
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -367,6 +367,7 @@
|
|
|
367
367
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda, CoroutineImpl, VOID, [1]);
|
|
368
368
|
initMetadataForLambda(GameServer$subscribeServerStateUpdate$slambda, CoroutineImpl, VOID, [1]);
|
|
369
369
|
initMetadataForLambda(GameServer$subscribeServerStateUpdateJson$slambda, CoroutineImpl, VOID, [1]);
|
|
370
|
+
initMetadataForLambda(GameServer$getServerTableState$slambda, CoroutineImpl, VOID, [1]);
|
|
370
371
|
initMetadataForLambda(GameServer$observeTableStateUpdates$slambda, CoroutineImpl, VOID, [2]);
|
|
371
372
|
initMetadataForClass(GameServer$observeTableStateUpdates$$inlined$mapNotNull$1, VOID, VOID, VOID, [Flow], [1]);
|
|
372
373
|
initMetadataForClass(GameServer$observeTableWhenRoundChanges$$inlined$mapNotNull$1, VOID, VOID, VOID, [Flow], [1]);
|
|
@@ -402,10 +403,10 @@
|
|
|
402
403
|
spectators = tmp;
|
|
403
404
|
var tmp_0;
|
|
404
405
|
if ($super === VOID) {
|
|
405
|
-
this.
|
|
406
|
+
this.na9(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
406
407
|
tmp_0 = Unit_instance;
|
|
407
408
|
} else {
|
|
408
|
-
tmp_0 = $super.
|
|
409
|
+
tmp_0 = $super.na9.call(this, roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
409
410
|
}
|
|
410
411
|
return tmp_0;
|
|
411
412
|
}
|
|
@@ -413,10 +414,10 @@
|
|
|
413
414
|
newRid = newRid === VOID ? null : newRid;
|
|
414
415
|
var tmp;
|
|
415
416
|
if ($super === VOID) {
|
|
416
|
-
this.
|
|
417
|
+
this.pa9(newRid);
|
|
417
418
|
tmp = Unit_instance;
|
|
418
419
|
} else {
|
|
419
|
-
tmp = $super.
|
|
420
|
+
tmp = $super.pa9.call(this, newRid);
|
|
420
421
|
}
|
|
421
422
|
return tmp;
|
|
422
423
|
}
|
|
@@ -424,16 +425,16 @@
|
|
|
424
425
|
roomId = roomId === VOID ? null : roomId;
|
|
425
426
|
var tmp;
|
|
426
427
|
if ($super === VOID) {
|
|
427
|
-
this.
|
|
428
|
+
this.qa9(reason, roomId);
|
|
428
429
|
tmp = Unit_instance;
|
|
429
430
|
} else {
|
|
430
|
-
tmp = $super.
|
|
431
|
+
tmp = $super.qa9.call(this, reason, roomId);
|
|
431
432
|
}
|
|
432
433
|
return tmp;
|
|
433
434
|
}
|
|
434
435
|
function playerLeft(playerId, roomId, permanently, $super) {
|
|
435
436
|
permanently = permanently === VOID ? true : permanently;
|
|
436
|
-
return $super === VOID ? this.
|
|
437
|
+
return $super === VOID ? this.ma9(playerId, roomId, permanently) : $super.ma9.call(this, playerId, roomId, permanently);
|
|
437
438
|
}
|
|
438
439
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
439
440
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -507,7 +508,7 @@
|
|
|
507
508
|
ratingConfig = ratingConfig === VOID ? new RatingConfig() : ratingConfig;
|
|
508
509
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
509
510
|
botConfig = botConfig === VOID ? new EngineBotConfig(VOID, VOID, VOID, false) : botConfig;
|
|
510
|
-
return $super === VOID ? this.
|
|
511
|
+
return $super === VOID ? this.taf(reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig) : $super.taf.call(this, reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig);
|
|
511
512
|
}
|
|
512
513
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
513
514
|
initMetadataForClass(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -520,17 +521,17 @@
|
|
|
520
521
|
initMetadataForClass(GameMetadata, 'GameMetadata');
|
|
521
522
|
//endregion
|
|
522
523
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
523
|
-
this.
|
|
524
|
+
this.s9q_1 = $subscriber;
|
|
524
525
|
CoroutineImpl.call(this, resultContinuation);
|
|
525
526
|
}
|
|
526
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
527
|
-
var tmp = this.
|
|
527
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).u9q = function (it, $completion) {
|
|
528
|
+
var tmp = this.v9q(it, $completion);
|
|
528
529
|
tmp.u8_1 = Unit_instance;
|
|
529
530
|
tmp.v8_1 = null;
|
|
530
531
|
return tmp.a9();
|
|
531
532
|
};
|
|
532
533
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).i9 = function (p1, $completion) {
|
|
533
|
-
return this.
|
|
534
|
+
return this.u9q(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
534
535
|
};
|
|
535
536
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).a9 = function () {
|
|
536
537
|
var suspendResult = this.u8_1;
|
|
@@ -539,7 +540,7 @@
|
|
|
539
540
|
var tmp = this.s8_1;
|
|
540
541
|
if (tmp === 0) {
|
|
541
542
|
this.t8_1 = 1;
|
|
542
|
-
this.
|
|
543
|
+
this.s9q_1(this.t9q_1);
|
|
543
544
|
return Unit_instance;
|
|
544
545
|
} else if (tmp === 1) {
|
|
545
546
|
throw this.v8_1;
|
|
@@ -550,31 +551,31 @@
|
|
|
550
551
|
}
|
|
551
552
|
while (true);
|
|
552
553
|
};
|
|
553
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
554
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
555
|
-
i.
|
|
554
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).v9q = function (it, completion) {
|
|
555
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.s9q_1, completion);
|
|
556
|
+
i.t9q_1 = it;
|
|
556
557
|
return i;
|
|
557
558
|
};
|
|
558
559
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
559
560
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
560
561
|
var l = function (it, $completion) {
|
|
561
|
-
return i.
|
|
562
|
+
return i.u9q(it, $completion);
|
|
562
563
|
};
|
|
563
564
|
l.$arity = 1;
|
|
564
565
|
return l;
|
|
565
566
|
}
|
|
566
567
|
function GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation) {
|
|
567
|
-
this.
|
|
568
|
+
this.e9r_1 = $subscriber;
|
|
568
569
|
CoroutineImpl.call(this, resultContinuation);
|
|
569
570
|
}
|
|
570
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
571
|
-
var tmp = this.
|
|
571
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).g9r = function (it, $completion) {
|
|
572
|
+
var tmp = this.h9r(it, $completion);
|
|
572
573
|
tmp.u8_1 = Unit_instance;
|
|
573
574
|
tmp.v8_1 = null;
|
|
574
575
|
return tmp.a9();
|
|
575
576
|
};
|
|
576
577
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).i9 = function (p1, $completion) {
|
|
577
|
-
return this.
|
|
578
|
+
return this.g9r((!(p1 == null) ? isInterface(p1, ServerStateUpdate) : false) ? p1 : THROW_CCE(), $completion);
|
|
578
579
|
};
|
|
579
580
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).a9 = function () {
|
|
580
581
|
var suspendResult = this.u8_1;
|
|
@@ -583,7 +584,7 @@
|
|
|
583
584
|
var tmp = this.s8_1;
|
|
584
585
|
if (tmp === 0) {
|
|
585
586
|
this.t8_1 = 1;
|
|
586
|
-
this.
|
|
587
|
+
this.e9r_1(this.f9r_1);
|
|
587
588
|
return Unit_instance;
|
|
588
589
|
} else if (tmp === 1) {
|
|
589
590
|
throw this.v8_1;
|
|
@@ -594,22 +595,22 @@
|
|
|
594
595
|
}
|
|
595
596
|
while (true);
|
|
596
597
|
};
|
|
597
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
598
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.
|
|
599
|
-
i.
|
|
598
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).h9r = function (it, completion) {
|
|
599
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.e9r_1, completion);
|
|
600
|
+
i.f9r_1 = it;
|
|
600
601
|
return i;
|
|
601
602
|
};
|
|
602
603
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_0($subscriber, resultContinuation) {
|
|
603
604
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation);
|
|
604
605
|
var l = function (it, $completion) {
|
|
605
|
-
return i.
|
|
606
|
+
return i.g9r(it, $completion);
|
|
606
607
|
};
|
|
607
608
|
l.$arity = 1;
|
|
608
609
|
return l;
|
|
609
610
|
}
|
|
610
611
|
function GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) {
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
612
|
+
this.q9r_1 = $$this$unsafeFlow;
|
|
613
|
+
this.r9r_1 = this$0;
|
|
613
614
|
CoroutineImpl.call(this, resultContinuation);
|
|
614
615
|
}
|
|
615
616
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -629,10 +630,10 @@
|
|
|
629
630
|
switch (tmp) {
|
|
630
631
|
case 0:
|
|
631
632
|
this.t8_1 = 2;
|
|
632
|
-
var tmp0 = this.
|
|
633
|
-
var value = this.
|
|
633
|
+
var tmp0 = this.q9r_1;
|
|
634
|
+
var value = this.s9r_1;
|
|
634
635
|
this.s8_1 = 1;
|
|
635
|
-
suspendResult = tmp0.o28(mapToDto_1(value, _get_encoderDecoderProvider__qqgrji(this.
|
|
636
|
+
suspendResult = tmp0.o28(mapToDto_1(value, _get_encoderDecoderProvider__qqgrji(this.r9r_1)), this);
|
|
636
637
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
637
638
|
return suspendResult;
|
|
638
639
|
}
|
|
@@ -655,8 +656,8 @@
|
|
|
655
656
|
while (true);
|
|
656
657
|
};
|
|
657
658
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda).y2h = function (value, completion) {
|
|
658
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda(this.
|
|
659
|
-
i.
|
|
659
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda(this.q9r_1, this.r9r_1, completion);
|
|
660
|
+
i.s9r_1 = value;
|
|
660
661
|
return i;
|
|
661
662
|
};
|
|
662
663
|
function GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($$this$unsafeFlow, this$0, resultContinuation) {
|
|
@@ -669,8 +670,8 @@
|
|
|
669
670
|
}
|
|
670
671
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
671
672
|
CoroutineImpl.call(this, resultContinuation);
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
673
|
+
this.b9s_1 = _this__u8e3s4;
|
|
674
|
+
this.c9s_1 = collector;
|
|
674
675
|
}
|
|
675
676
|
protoOf($collectCOROUTINE$).a9 = function () {
|
|
676
677
|
var suspendResult = this.u8_1;
|
|
@@ -680,10 +681,10 @@
|
|
|
680
681
|
switch (tmp) {
|
|
681
682
|
case 0:
|
|
682
683
|
this.t8_1 = 2;
|
|
683
|
-
var $this$unsafeFlow = this.
|
|
684
|
+
var $this$unsafeFlow = this.c9s_1;
|
|
684
685
|
this.s8_1 = 1;
|
|
685
|
-
var tmp_0 = GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($this$unsafeFlow, this.
|
|
686
|
-
suspendResult = this.
|
|
686
|
+
var tmp_0 = GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($this$unsafeFlow, this.b9s_1.e9s_1, null);
|
|
687
|
+
suspendResult = this.b9s_1.d9s_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_0), this);
|
|
687
688
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
688
689
|
return suspendResult;
|
|
689
690
|
}
|
|
@@ -706,8 +707,8 @@
|
|
|
706
707
|
while (true);
|
|
707
708
|
};
|
|
708
709
|
function GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1($this, this$0) {
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
710
|
+
this.d9s_1 = $this;
|
|
711
|
+
this.e9s_1 = this$0;
|
|
711
712
|
}
|
|
712
713
|
protoOf(GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1).p28 = function (collector, $completion) {
|
|
713
714
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -719,17 +720,17 @@
|
|
|
719
720
|
return this.p28(collector, $completion);
|
|
720
721
|
};
|
|
721
722
|
function GameServer$subscribeServerStateUpdateJson$slambda$slambda($subscriber, resultContinuation) {
|
|
722
|
-
this.
|
|
723
|
+
this.n9s_1 = $subscriber;
|
|
723
724
|
CoroutineImpl.call(this, resultContinuation);
|
|
724
725
|
}
|
|
725
|
-
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).
|
|
726
|
-
var tmp = this.
|
|
726
|
+
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).p9s = function (it, $completion) {
|
|
727
|
+
var tmp = this.q9s(it, $completion);
|
|
727
728
|
tmp.u8_1 = Unit_instance;
|
|
728
729
|
tmp.v8_1 = null;
|
|
729
730
|
return tmp.a9();
|
|
730
731
|
};
|
|
731
732
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).i9 = function (p1, $completion) {
|
|
732
|
-
return this.
|
|
733
|
+
return this.p9s((!(p1 == null) ? isInterface(p1, ServerStateUpdateDto) : false) ? p1 : THROW_CCE(), $completion);
|
|
733
734
|
};
|
|
734
735
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).a9 = function () {
|
|
735
736
|
var suspendResult = this.u8_1;
|
|
@@ -738,7 +739,7 @@
|
|
|
738
739
|
var tmp = this.s8_1;
|
|
739
740
|
if (tmp === 0) {
|
|
740
741
|
this.t8_1 = 1;
|
|
741
|
-
this.
|
|
742
|
+
this.n9s_1(this.o9s_1);
|
|
742
743
|
return Unit_instance;
|
|
743
744
|
} else if (tmp === 1) {
|
|
744
745
|
throw this.v8_1;
|
|
@@ -749,22 +750,22 @@
|
|
|
749
750
|
}
|
|
750
751
|
while (true);
|
|
751
752
|
};
|
|
752
|
-
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).
|
|
753
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda(this.
|
|
754
|
-
i.
|
|
753
|
+
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).q9s = function (it, completion) {
|
|
754
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda(this.n9s_1, completion);
|
|
755
|
+
i.o9s_1 = it;
|
|
755
756
|
return i;
|
|
756
757
|
};
|
|
757
758
|
function GameServer$subscribeServerStateUpdateJson$slambda$slambda_0($subscriber, resultContinuation) {
|
|
758
759
|
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda($subscriber, resultContinuation);
|
|
759
760
|
var l = function (it, $completion) {
|
|
760
|
-
return i.
|
|
761
|
+
return i.p9s(it, $completion);
|
|
761
762
|
};
|
|
762
763
|
l.$arity = 1;
|
|
763
764
|
return l;
|
|
764
765
|
}
|
|
765
766
|
function GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda($$this$unsafeFlow, $table, resultContinuation) {
|
|
766
|
-
this.
|
|
767
|
-
this.
|
|
767
|
+
this.z9s_1 = $$this$unsafeFlow;
|
|
768
|
+
this.a9t_1 = $table;
|
|
768
769
|
CoroutineImpl.call(this, resultContinuation);
|
|
769
770
|
}
|
|
770
771
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -784,10 +785,10 @@
|
|
|
784
785
|
switch (tmp) {
|
|
785
786
|
case 0:
|
|
786
787
|
this.t8_1 = 2;
|
|
787
|
-
var tmp0 = this.
|
|
788
|
-
var value = this.
|
|
788
|
+
var tmp0 = this.z9s_1;
|
|
789
|
+
var value = this.b9t_1;
|
|
789
790
|
this.s8_1 = 1;
|
|
790
|
-
suspendResult = tmp0.o28(new ActionsStateUpdate(this.
|
|
791
|
+
suspendResult = tmp0.o28(new ActionsStateUpdate(this.a9t_1.id, value), this);
|
|
791
792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
792
793
|
return suspendResult;
|
|
793
794
|
}
|
|
@@ -810,8 +811,8 @@
|
|
|
810
811
|
while (true);
|
|
811
812
|
};
|
|
812
813
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda).y2h = function (value, completion) {
|
|
813
|
-
var i = new GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda(this.
|
|
814
|
-
i.
|
|
814
|
+
var i = new GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda(this.z9s_1, this.a9t_1, completion);
|
|
815
|
+
i.b9t_1 = value;
|
|
815
816
|
return i;
|
|
816
817
|
};
|
|
817
818
|
function GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, $table, resultContinuation) {
|
|
@@ -824,8 +825,8 @@
|
|
|
824
825
|
}
|
|
825
826
|
function $collectCOROUTINE$_0(_this__u8e3s4, collector, resultContinuation) {
|
|
826
827
|
CoroutineImpl.call(this, resultContinuation);
|
|
827
|
-
this.
|
|
828
|
-
this.
|
|
828
|
+
this.k9t_1 = _this__u8e3s4;
|
|
829
|
+
this.l9t_1 = collector;
|
|
829
830
|
}
|
|
830
831
|
protoOf($collectCOROUTINE$_0).a9 = function () {
|
|
831
832
|
var suspendResult = this.u8_1;
|
|
@@ -835,10 +836,10 @@
|
|
|
835
836
|
switch (tmp) {
|
|
836
837
|
case 0:
|
|
837
838
|
this.t8_1 = 2;
|
|
838
|
-
var $this$unsafeFlow = this.
|
|
839
|
+
var $this$unsafeFlow = this.l9t_1;
|
|
839
840
|
this.s8_1 = 1;
|
|
840
|
-
var tmp_0 = GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($this$unsafeFlow, this.
|
|
841
|
-
suspendResult = this.
|
|
841
|
+
var tmp_0 = GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($this$unsafeFlow, this.k9t_1.n9t_1, null);
|
|
842
|
+
suspendResult = this.k9t_1.m9t_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_0), this);
|
|
842
843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
843
844
|
return suspendResult;
|
|
844
845
|
}
|
|
@@ -861,8 +862,8 @@
|
|
|
861
862
|
while (true);
|
|
862
863
|
};
|
|
863
864
|
function _no_name_provided__qut3iv($this, $table) {
|
|
864
|
-
this.
|
|
865
|
-
this.
|
|
865
|
+
this.m9t_1 = $this;
|
|
866
|
+
this.n9t_1 = $table;
|
|
866
867
|
}
|
|
867
868
|
protoOf(_no_name_provided__qut3iv).p28 = function (collector, $completion) {
|
|
868
869
|
var tmp = new $collectCOROUTINE$_0(this, collector, $completion);
|
|
@@ -874,18 +875,18 @@
|
|
|
874
875
|
return this.p28(collector, $completion);
|
|
875
876
|
};
|
|
876
877
|
function GameServer$observeTableStateUpdates$slambda$slambda($table, this$0, resultContinuation) {
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
878
|
+
this.w9t_1 = $table;
|
|
879
|
+
this.x9t_1 = this$0;
|
|
879
880
|
CoroutineImpl.call(this, resultContinuation);
|
|
880
881
|
}
|
|
881
|
-
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).
|
|
882
|
-
var tmp = this.
|
|
882
|
+
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).z9t = function ($this$flow, $completion) {
|
|
883
|
+
var tmp = this.a9u($this$flow, $completion);
|
|
883
884
|
tmp.u8_1 = Unit_instance;
|
|
884
885
|
tmp.v8_1 = null;
|
|
885
886
|
return tmp.a9();
|
|
886
887
|
};
|
|
887
888
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).i9 = function (p1, $completion) {
|
|
888
|
-
return this.
|
|
889
|
+
return this.z9t((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
889
890
|
};
|
|
890
891
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).a9 = function () {
|
|
891
892
|
var suspendResult = this.u8_1;
|
|
@@ -896,7 +897,7 @@
|
|
|
896
897
|
case 0:
|
|
897
898
|
this.t8_1 = 3;
|
|
898
899
|
this.s8_1 = 1;
|
|
899
|
-
suspendResult = this.
|
|
900
|
+
suspendResult = this.y9t_1.o28(new TableStateUpdate(this.w9t_1.id, this.w9t_1), this);
|
|
900
901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
901
902
|
return suspendResult;
|
|
902
903
|
}
|
|
@@ -904,8 +905,8 @@
|
|
|
904
905
|
continue $sm;
|
|
905
906
|
case 1:
|
|
906
907
|
this.s8_1 = 2;
|
|
907
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.
|
|
908
|
-
suspendResult = emitAll(this.
|
|
908
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.x9t_1).g8s(), fromInt(_get_serverReduxConfig__rprcrm(this.x9t_1).serverStateUpdateIntervalMillis));
|
|
909
|
+
suspendResult = emitAll(this.y9t_1, new _no_name_provided__qut3iv(this_0, this.w9t_1), this);
|
|
909
910
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
910
911
|
return suspendResult;
|
|
911
912
|
}
|
|
@@ -927,22 +928,22 @@
|
|
|
927
928
|
}
|
|
928
929
|
while (true);
|
|
929
930
|
};
|
|
930
|
-
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).
|
|
931
|
-
var i = new GameServer$observeTableStateUpdates$slambda$slambda(this.
|
|
932
|
-
i.
|
|
931
|
+
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).a9u = function ($this$flow, completion) {
|
|
932
|
+
var i = new GameServer$observeTableStateUpdates$slambda$slambda(this.w9t_1, this.x9t_1, completion);
|
|
933
|
+
i.y9t_1 = $this$flow;
|
|
933
934
|
return i;
|
|
934
935
|
};
|
|
935
936
|
function GameServer$observeTableStateUpdates$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
936
937
|
var i = new GameServer$observeTableStateUpdates$slambda$slambda($table, this$0, resultContinuation);
|
|
937
938
|
var l = function ($this$flow, $completion) {
|
|
938
|
-
return i.
|
|
939
|
+
return i.z9t($this$flow, $completion);
|
|
939
940
|
};
|
|
940
941
|
l.$arity = 1;
|
|
941
942
|
return l;
|
|
942
943
|
}
|
|
943
944
|
function GameServer$observeTableStateUpdates$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) {
|
|
944
|
-
this.
|
|
945
|
-
this.
|
|
945
|
+
this.j9u_1 = $$this$unsafeFlow;
|
|
946
|
+
this.k9u_1 = this$0;
|
|
946
947
|
CoroutineImpl.call(this, resultContinuation);
|
|
947
948
|
}
|
|
948
949
|
protoOf(GameServer$observeTableStateUpdates$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -963,16 +964,16 @@
|
|
|
963
964
|
case 0:
|
|
964
965
|
this.t8_1 = 5;
|
|
965
966
|
var tmp_0 = this;
|
|
966
|
-
tmp_0.
|
|
967
|
+
tmp_0.p9u_1 = this.j9u_1;
|
|
967
968
|
var tmp_1 = this;
|
|
968
|
-
tmp_1.
|
|
969
|
+
tmp_1.o9u_1 = this.l9u_1;
|
|
969
970
|
this.s8_1 = 1;
|
|
970
971
|
continue $sm;
|
|
971
972
|
case 1:
|
|
972
|
-
this.
|
|
973
|
-
var it = this.
|
|
973
|
+
this.m9u_1 = this.p9u_1;
|
|
974
|
+
var it = this.o9u_1;
|
|
974
975
|
var tmp_2;
|
|
975
|
-
if (get_isCreated(this.
|
|
976
|
+
if (get_isCreated(this.k9u_1.x66())) {
|
|
976
977
|
tmp_2 = it;
|
|
977
978
|
} else {
|
|
978
979
|
tmp_2 = null;
|
|
@@ -984,15 +985,15 @@
|
|
|
984
985
|
var tmp_3 = this;
|
|
985
986
|
continue $sm;
|
|
986
987
|
} else {
|
|
987
|
-
this.
|
|
988
|
+
this.n9u_1 = tmp0_elvis_lhs;
|
|
988
989
|
this.s8_1 = 2;
|
|
989
990
|
continue $sm;
|
|
990
991
|
}
|
|
991
992
|
|
|
992
993
|
case 2:
|
|
993
|
-
var transformed = this.
|
|
994
|
+
var transformed = this.n9u_1;
|
|
994
995
|
this.s8_1 = 3;
|
|
995
|
-
suspendResult = this.
|
|
996
|
+
suspendResult = this.m9u_1.o28(transformed, this);
|
|
996
997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
998
|
return suspendResult;
|
|
998
999
|
}
|
|
@@ -1023,8 +1024,8 @@
|
|
|
1023
1024
|
while (true);
|
|
1024
1025
|
};
|
|
1025
1026
|
protoOf(GameServer$observeTableStateUpdates$o$collect$slambda).y2h = function (value, completion) {
|
|
1026
|
-
var i = new GameServer$observeTableStateUpdates$o$collect$slambda(this.
|
|
1027
|
-
i.
|
|
1027
|
+
var i = new GameServer$observeTableStateUpdates$o$collect$slambda(this.j9u_1, this.k9u_1, completion);
|
|
1028
|
+
i.l9u_1 = value;
|
|
1028
1029
|
return i;
|
|
1029
1030
|
};
|
|
1030
1031
|
function GameServer$observeTableStateUpdates$o$collect$slambda_0($$this$unsafeFlow, this$0, resultContinuation) {
|
|
@@ -1037,8 +1038,8 @@
|
|
|
1037
1038
|
}
|
|
1038
1039
|
function $collectCOROUTINE$_1(_this__u8e3s4, collector, resultContinuation) {
|
|
1039
1040
|
CoroutineImpl.call(this, resultContinuation);
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1041
|
+
this.y9u_1 = _this__u8e3s4;
|
|
1042
|
+
this.z9u_1 = collector;
|
|
1042
1043
|
}
|
|
1043
1044
|
protoOf($collectCOROUTINE$_1).a9 = function () {
|
|
1044
1045
|
var suspendResult = this.u8_1;
|
|
@@ -1048,10 +1049,10 @@
|
|
|
1048
1049
|
switch (tmp) {
|
|
1049
1050
|
case 0:
|
|
1050
1051
|
this.t8_1 = 2;
|
|
1051
|
-
var $this$unsafeFlow = this.
|
|
1052
|
+
var $this$unsafeFlow = this.z9u_1;
|
|
1052
1053
|
this.s8_1 = 1;
|
|
1053
|
-
var tmp_0 = GameServer$observeTableStateUpdates$o$collect$slambda_0($this$unsafeFlow, this.
|
|
1054
|
-
suspendResult = this.
|
|
1054
|
+
var tmp_0 = GameServer$observeTableStateUpdates$o$collect$slambda_0($this$unsafeFlow, this.y9u_1.b9v_1, null);
|
|
1055
|
+
suspendResult = this.y9u_1.a9v_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_0), this);
|
|
1055
1056
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1056
1057
|
return suspendResult;
|
|
1057
1058
|
}
|
|
@@ -1074,7 +1075,7 @@
|
|
|
1074
1075
|
while (true);
|
|
1075
1076
|
};
|
|
1076
1077
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
1077
|
-
this.
|
|
1078
|
+
this.k9v_1 = $$this$unsafeFlow;
|
|
1078
1079
|
CoroutineImpl.call(this, resultContinuation);
|
|
1079
1080
|
}
|
|
1080
1081
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -1095,28 +1096,28 @@
|
|
|
1095
1096
|
case 0:
|
|
1096
1097
|
this.t8_1 = 5;
|
|
1097
1098
|
var tmp_0 = this;
|
|
1098
|
-
tmp_0.
|
|
1099
|
+
tmp_0.p9v_1 = this.k9v_1;
|
|
1099
1100
|
var tmp_1 = this;
|
|
1100
|
-
tmp_1.
|
|
1101
|
+
tmp_1.o9v_1 = this.l9v_1;
|
|
1101
1102
|
this.s8_1 = 1;
|
|
1102
1103
|
continue $sm;
|
|
1103
1104
|
case 1:
|
|
1104
|
-
this.
|
|
1105
|
-
var tmp0_elvis_lhs = this.
|
|
1105
|
+
this.m9v_1 = this.p9v_1;
|
|
1106
|
+
var tmp0_elvis_lhs = this.o9v_1.tableOrNull;
|
|
1106
1107
|
if (tmp0_elvis_lhs == null) {
|
|
1107
1108
|
this.s8_1 = 4;
|
|
1108
1109
|
var tmp_2 = this;
|
|
1109
1110
|
continue $sm;
|
|
1110
1111
|
} else {
|
|
1111
|
-
this.
|
|
1112
|
+
this.n9v_1 = tmp0_elvis_lhs;
|
|
1112
1113
|
this.s8_1 = 2;
|
|
1113
1114
|
continue $sm;
|
|
1114
1115
|
}
|
|
1115
1116
|
|
|
1116
1117
|
case 2:
|
|
1117
|
-
var transformed = this.
|
|
1118
|
+
var transformed = this.n9v_1;
|
|
1118
1119
|
this.s8_1 = 3;
|
|
1119
|
-
suspendResult = this.
|
|
1120
|
+
suspendResult = this.m9v_1.o28(transformed, this);
|
|
1120
1121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1121
1122
|
return suspendResult;
|
|
1122
1123
|
}
|
|
@@ -1147,8 +1148,8 @@
|
|
|
1147
1148
|
while (true);
|
|
1148
1149
|
};
|
|
1149
1150
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).y2h = function (value, completion) {
|
|
1150
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
1151
|
-
i.
|
|
1151
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.k9v_1, completion);
|
|
1152
|
+
i.l9v_1 = value;
|
|
1152
1153
|
return i;
|
|
1153
1154
|
};
|
|
1154
1155
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1161,8 +1162,8 @@
|
|
|
1161
1162
|
}
|
|
1162
1163
|
function $collectCOROUTINE$_2(_this__u8e3s4, collector, resultContinuation) {
|
|
1163
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1165
|
+
this.y9v_1 = _this__u8e3s4;
|
|
1166
|
+
this.z9v_1 = collector;
|
|
1166
1167
|
}
|
|
1167
1168
|
protoOf($collectCOROUTINE$_2).a9 = function () {
|
|
1168
1169
|
var suspendResult = this.u8_1;
|
|
@@ -1172,10 +1173,10 @@
|
|
|
1172
1173
|
switch (tmp) {
|
|
1173
1174
|
case 0:
|
|
1174
1175
|
this.t8_1 = 2;
|
|
1175
|
-
var $this$unsafeFlow = this.
|
|
1176
|
+
var $this$unsafeFlow = this.z9v_1;
|
|
1176
1177
|
this.s8_1 = 1;
|
|
1177
1178
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($this$unsafeFlow, null);
|
|
1178
|
-
suspendResult = this.
|
|
1179
|
+
suspendResult = this.y9v_1.a9w_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1179
1180
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1180
1181
|
return suspendResult;
|
|
1181
1182
|
}
|
|
@@ -1198,7 +1199,7 @@
|
|
|
1198
1199
|
while (true);
|
|
1199
1200
|
};
|
|
1200
1201
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) {
|
|
1201
|
-
this.
|
|
1202
|
+
this.j9w_1 = $$this$unsafeFlow;
|
|
1202
1203
|
CoroutineImpl.call(this, resultContinuation);
|
|
1203
1204
|
}
|
|
1204
1205
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_1).x2h = function (value, $completion) {
|
|
@@ -1218,8 +1219,8 @@
|
|
|
1218
1219
|
switch (tmp) {
|
|
1219
1220
|
case 0:
|
|
1220
1221
|
this.t8_1 = 2;
|
|
1221
|
-
var tmp0 = this.
|
|
1222
|
-
var value = this.
|
|
1222
|
+
var tmp0 = this.j9w_1;
|
|
1223
|
+
var value = this.k9w_1;
|
|
1223
1224
|
this.s8_1 = 1;
|
|
1224
1225
|
suspendResult = tmp0.o28(to(value.gameInfo.roundNumberTotal, value), this);
|
|
1225
1226
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1244,8 +1245,8 @@
|
|
|
1244
1245
|
while (true);
|
|
1245
1246
|
};
|
|
1246
1247
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_1).y2h = function (value, completion) {
|
|
1247
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_1(this.
|
|
1248
|
-
i.
|
|
1248
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_1(this.j9w_1, completion);
|
|
1249
|
+
i.k9w_1 = value;
|
|
1249
1250
|
return i;
|
|
1250
1251
|
};
|
|
1251
1252
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_2($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1258,8 +1259,8 @@
|
|
|
1258
1259
|
}
|
|
1259
1260
|
function $collectCOROUTINE$_3(_this__u8e3s4, collector, resultContinuation) {
|
|
1260
1261
|
CoroutineImpl.call(this, resultContinuation);
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1262
|
+
this.t9w_1 = _this__u8e3s4;
|
|
1263
|
+
this.u9w_1 = collector;
|
|
1263
1264
|
}
|
|
1264
1265
|
protoOf($collectCOROUTINE$_3).a9 = function () {
|
|
1265
1266
|
var suspendResult = this.u8_1;
|
|
@@ -1269,10 +1270,10 @@
|
|
|
1269
1270
|
switch (tmp) {
|
|
1270
1271
|
case 0:
|
|
1271
1272
|
this.t8_1 = 2;
|
|
1272
|
-
var $this$unsafeFlow = this.
|
|
1273
|
+
var $this$unsafeFlow = this.u9w_1;
|
|
1273
1274
|
this.s8_1 = 1;
|
|
1274
1275
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_2($this$unsafeFlow, null);
|
|
1275
|
-
suspendResult = this.
|
|
1276
|
+
suspendResult = this.t9w_1.v9w_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1276
1277
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1277
1278
|
return suspendResult;
|
|
1278
1279
|
}
|
|
@@ -1295,7 +1296,7 @@
|
|
|
1295
1296
|
while (true);
|
|
1296
1297
|
};
|
|
1297
1298
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) {
|
|
1298
|
-
this.
|
|
1299
|
+
this.e9x_1 = $$this$unsafeFlow;
|
|
1299
1300
|
CoroutineImpl.call(this, resultContinuation);
|
|
1300
1301
|
}
|
|
1301
1302
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_3).x2h = function (value, $completion) {
|
|
@@ -1315,8 +1316,8 @@
|
|
|
1315
1316
|
switch (tmp) {
|
|
1316
1317
|
case 0:
|
|
1317
1318
|
this.t8_1 = 2;
|
|
1318
|
-
var tmp0 = this.
|
|
1319
|
-
var value = this.
|
|
1319
|
+
var tmp0 = this.e9x_1;
|
|
1320
|
+
var value = this.f9x_1;
|
|
1320
1321
|
this.s8_1 = 1;
|
|
1321
1322
|
suspendResult = tmp0.o28(value.ne_1, this);
|
|
1322
1323
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1341,8 +1342,8 @@
|
|
|
1341
1342
|
while (true);
|
|
1342
1343
|
};
|
|
1343
1344
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_3).y2h = function (value, completion) {
|
|
1344
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_3(this.
|
|
1345
|
-
i.
|
|
1345
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_3(this.e9x_1, completion);
|
|
1346
|
+
i.f9x_1 = value;
|
|
1346
1347
|
return i;
|
|
1347
1348
|
};
|
|
1348
1349
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_4($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1355,8 +1356,8 @@
|
|
|
1355
1356
|
}
|
|
1356
1357
|
function $collectCOROUTINE$_4(_this__u8e3s4, collector, resultContinuation) {
|
|
1357
1358
|
CoroutineImpl.call(this, resultContinuation);
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1359
|
+
this.o9x_1 = _this__u8e3s4;
|
|
1360
|
+
this.p9x_1 = collector;
|
|
1360
1361
|
}
|
|
1361
1362
|
protoOf($collectCOROUTINE$_4).a9 = function () {
|
|
1362
1363
|
var suspendResult = this.u8_1;
|
|
@@ -1366,10 +1367,10 @@
|
|
|
1366
1367
|
switch (tmp) {
|
|
1367
1368
|
case 0:
|
|
1368
1369
|
this.t8_1 = 2;
|
|
1369
|
-
var $this$unsafeFlow = this.
|
|
1370
|
+
var $this$unsafeFlow = this.p9x_1;
|
|
1370
1371
|
this.s8_1 = 1;
|
|
1371
1372
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_4($this$unsafeFlow, null);
|
|
1372
|
-
suspendResult = this.
|
|
1373
|
+
suspendResult = this.o9x_1.q9x_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1373
1374
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1374
1375
|
return suspendResult;
|
|
1375
1376
|
}
|
|
@@ -1392,17 +1393,17 @@
|
|
|
1392
1393
|
while (true);
|
|
1393
1394
|
};
|
|
1394
1395
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
1395
|
-
this.
|
|
1396
|
+
this.z9x_1 = $subscriber;
|
|
1396
1397
|
CoroutineImpl.call(this, resultContinuation);
|
|
1397
1398
|
}
|
|
1398
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1399
|
-
var tmp = this.
|
|
1399
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).b9y = function (it, $completion) {
|
|
1400
|
+
var tmp = this.c9y(it, $completion);
|
|
1400
1401
|
tmp.u8_1 = Unit_instance;
|
|
1401
1402
|
tmp.v8_1 = null;
|
|
1402
1403
|
return tmp.a9();
|
|
1403
1404
|
};
|
|
1404
1405
|
protoOf(GameServer$subscribeWith$slambda$slambda).i9 = function (p1, $completion) {
|
|
1405
|
-
return this.
|
|
1406
|
+
return this.b9y(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
1406
1407
|
};
|
|
1407
1408
|
protoOf(GameServer$subscribeWith$slambda$slambda).a9 = function () {
|
|
1408
1409
|
var suspendResult = this.u8_1;
|
|
@@ -1411,7 +1412,7 @@
|
|
|
1411
1412
|
var tmp = this.s8_1;
|
|
1412
1413
|
if (tmp === 0) {
|
|
1413
1414
|
this.t8_1 = 1;
|
|
1414
|
-
this.
|
|
1415
|
+
this.z9x_1(this.a9y_1);
|
|
1415
1416
|
return Unit_instance;
|
|
1416
1417
|
} else if (tmp === 1) {
|
|
1417
1418
|
throw this.v8_1;
|
|
@@ -1422,91 +1423,91 @@
|
|
|
1422
1423
|
}
|
|
1423
1424
|
while (true);
|
|
1424
1425
|
};
|
|
1425
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1426
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
1427
|
-
i.
|
|
1426
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).c9y = function (it, completion) {
|
|
1427
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.z9x_1, completion);
|
|
1428
|
+
i.a9y_1 = it;
|
|
1428
1429
|
return i;
|
|
1429
1430
|
};
|
|
1430
1431
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
1431
1432
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
1432
1433
|
var l = function (it, $completion) {
|
|
1433
|
-
return i.
|
|
1434
|
+
return i.b9y(it, $completion);
|
|
1434
1435
|
};
|
|
1435
1436
|
l.$arity = 1;
|
|
1436
1437
|
return l;
|
|
1437
1438
|
}
|
|
1438
1439
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
1439
|
-
var tmp0 = $this.
|
|
1440
|
+
var tmp0 = $this.h9y_1;
|
|
1440
1441
|
var tmp = KProperty1;
|
|
1441
1442
|
// Inline function 'kotlin.getValue' call
|
|
1442
1443
|
getPropertyCallableRef('toClientEventsObserver', 1, tmp, GameServer$_get_toClientEventsObserver_$ref_utir8s_0(), null);
|
|
1443
1444
|
return tmp0.x();
|
|
1444
1445
|
}
|
|
1445
1446
|
function _get_fromClientEventsObserver__a7vzd3($this) {
|
|
1446
|
-
var tmp0 = $this.
|
|
1447
|
+
var tmp0 = $this.i9y_1;
|
|
1447
1448
|
var tmp = KProperty1;
|
|
1448
1449
|
// Inline function 'kotlin.getValue' call
|
|
1449
1450
|
getPropertyCallableRef('fromClientEventsObserver', 1, tmp, GameServer$_get_fromClientEventsObserver_$ref_nf1g79_0(), null);
|
|
1450
1451
|
return tmp0.x();
|
|
1451
1452
|
}
|
|
1452
1453
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
1453
|
-
var tmp0 = $this.
|
|
1454
|
+
var tmp0 = $this.j9y_1;
|
|
1454
1455
|
var tmp = KProperty1;
|
|
1455
1456
|
// Inline function 'kotlin.getValue' call
|
|
1456
1457
|
getPropertyCallableRef('playerConnectionInteractor', 1, tmp, GameServer$_get_playerConnectionInteractor_$ref_of8tan_0(), null);
|
|
1457
1458
|
return tmp0.x();
|
|
1458
1459
|
}
|
|
1459
1460
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
1460
|
-
var tmp0 = $this.
|
|
1461
|
+
var tmp0 = $this.k9y_1;
|
|
1461
1462
|
var tmp = KProperty1;
|
|
1462
1463
|
// Inline function 'kotlin.getValue' call
|
|
1463
1464
|
getPropertyCallableRef('teamsLogicProvider', 1, tmp, GameServer$_get_teamsLogicProvider_$ref_b7y54g_0(), null);
|
|
1464
1465
|
return tmp0.x();
|
|
1465
1466
|
}
|
|
1466
1467
|
function _get_userRatingInteractor__a09mdy($this) {
|
|
1467
|
-
var tmp0 = $this.
|
|
1468
|
+
var tmp0 = $this.l9y_1;
|
|
1468
1469
|
var tmp = KProperty1;
|
|
1469
1470
|
// Inline function 'kotlin.getValue' call
|
|
1470
1471
|
getPropertyCallableRef('userRatingInteractor', 1, tmp, GameServer$_get_userRatingInteractor_$ref_8uo6aw_0(), null);
|
|
1471
1472
|
return tmp0.x();
|
|
1472
1473
|
}
|
|
1473
1474
|
function _get_random__h29cgo($this) {
|
|
1474
|
-
var tmp0 = $this.
|
|
1475
|
+
var tmp0 = $this.m9y_1;
|
|
1475
1476
|
var tmp = KProperty1;
|
|
1476
1477
|
// Inline function 'kotlin.getValue' call
|
|
1477
1478
|
getPropertyCallableRef('random', 1, tmp, GameServer$_get_random_$ref_fottnq(), null);
|
|
1478
1479
|
return tmp0.x();
|
|
1479
1480
|
}
|
|
1480
1481
|
function _get_idsProvider__fnfajc($this) {
|
|
1481
|
-
var tmp0 = $this.
|
|
1482
|
+
var tmp0 = $this.n9y_1;
|
|
1482
1483
|
var tmp = KProperty1;
|
|
1483
1484
|
// Inline function 'kotlin.getValue' call
|
|
1484
1485
|
getPropertyCallableRef('idsProvider', 1, tmp, GameServer$_get_idsProvider_$ref_89s908_0(), null);
|
|
1485
1486
|
return tmp0.x();
|
|
1486
1487
|
}
|
|
1487
1488
|
function _get_serverReduxConfig__rprcrm($this) {
|
|
1488
|
-
var tmp0 = $this.
|
|
1489
|
+
var tmp0 = $this.o9y_1;
|
|
1489
1490
|
var tmp = KProperty1;
|
|
1490
1491
|
// Inline function 'kotlin.getValue' call
|
|
1491
1492
|
getPropertyCallableRef('serverReduxConfig', 1, tmp, GameServer$_get_serverReduxConfig_$ref_7h6jq6_0(), null);
|
|
1492
1493
|
return tmp0.x();
|
|
1493
1494
|
}
|
|
1494
1495
|
function _get_encoderDecoderProvider__qqgrji($this) {
|
|
1495
|
-
var tmp0 = $this.
|
|
1496
|
+
var tmp0 = $this.p9y_1;
|
|
1496
1497
|
var tmp = KProperty1;
|
|
1497
1498
|
// Inline function 'kotlin.getValue' call
|
|
1498
1499
|
getPropertyCallableRef('encoderDecoderProvider', 1, tmp, GameServer$_get_encoderDecoderProvider_$ref_6vxmq8_0(), null);
|
|
1499
1500
|
return tmp0.x();
|
|
1500
1501
|
}
|
|
1501
1502
|
function _get_engineLogicConfig__l11qpf($this) {
|
|
1502
|
-
var tmp0 = $this.
|
|
1503
|
+
var tmp0 = $this.q9y_1;
|
|
1503
1504
|
var tmp = KProperty1;
|
|
1504
1505
|
// Inline function 'kotlin.getValue' call
|
|
1505
1506
|
getPropertyCallableRef('engineLogicConfig', 1, tmp, GameServer$_get_engineLogicConfig_$ref_nlkv2l_0(), null);
|
|
1506
1507
|
return tmp0.x();
|
|
1507
1508
|
}
|
|
1508
1509
|
function _get_botChatInteractor__17f3on($this) {
|
|
1509
|
-
var tmp0 = $this.
|
|
1510
|
+
var tmp0 = $this.r9y_1;
|
|
1510
1511
|
var tmp = KProperty1;
|
|
1511
1512
|
// Inline function 'kotlin.getValue' call
|
|
1512
1513
|
getPropertyCallableRef('botChatInteractor', 1, tmp, GameServer$_get_botChatInteractor_$ref_zf10ih_0(), null);
|
|
@@ -1542,13 +1543,13 @@
|
|
|
1542
1543
|
var player = getPlayer(table.players, playerId);
|
|
1543
1544
|
var tmp;
|
|
1544
1545
|
if (_get_engineLogicConfig__l11qpf($this).updateRating) {
|
|
1545
|
-
var tmp0_safe_receiver = _get_userRatingInteractor__a09mdy($this).
|
|
1546
|
+
var tmp0_safe_receiver = _get_userRatingInteractor__a09mdy($this).t8z(player, table.players, table.config, table.gameDuration, table.isGameFinished);
|
|
1546
1547
|
var tmp_0;
|
|
1547
1548
|
if (tmp0_safe_receiver == null) {
|
|
1548
1549
|
tmp_0 = null;
|
|
1549
1550
|
} else {
|
|
1550
1551
|
// Inline function 'kotlin.let' call
|
|
1551
|
-
tmp_0 = new PlayerAchievements(tmp0_safe_receiver.
|
|
1552
|
+
tmp_0 = new PlayerAchievements(tmp0_safe_receiver.b77_1, tmp0_safe_receiver.c77_1, tmp0_safe_receiver.d77_1, true);
|
|
1552
1553
|
}
|
|
1553
1554
|
tmp = tmp_0;
|
|
1554
1555
|
} else {
|
|
@@ -1605,7 +1606,7 @@
|
|
|
1605
1606
|
var tmp$ret$3 = new GameServer$preserveTeams$previousTeams$1(item);
|
|
1606
1607
|
destination.j(tmp$ret$3);
|
|
1607
1608
|
}
|
|
1608
|
-
var previousTeams = tmp.
|
|
1609
|
+
var previousTeams = tmp.a8s(destination);
|
|
1609
1610
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1610
1611
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1611
1612
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
@@ -1636,23 +1637,23 @@
|
|
|
1636
1637
|
destination_1.j(destination_2);
|
|
1637
1638
|
}
|
|
1638
1639
|
var updatedTeams = destination_1;
|
|
1639
|
-
return _get_teamsLogicProvider__u10pm6($this).
|
|
1640
|
+
return _get_teamsLogicProvider__u10pm6($this).b8s(updatedTeams);
|
|
1640
1641
|
}
|
|
1641
1642
|
function Companion() {
|
|
1642
|
-
this.
|
|
1643
|
+
this.t9y_1 = 'GameEngine_API';
|
|
1643
1644
|
}
|
|
1644
1645
|
var Companion_instance_9;
|
|
1645
1646
|
function Companion_getInstance_0() {
|
|
1646
1647
|
return Companion_instance_9;
|
|
1647
1648
|
}
|
|
1648
1649
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1649
|
-
this.
|
|
1650
|
+
this.u9y_1 = function_0;
|
|
1650
1651
|
}
|
|
1651
1652
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o28 = function (value, $completion) {
|
|
1652
|
-
return this.
|
|
1653
|
+
return this.u9y_1(value, $completion);
|
|
1653
1654
|
};
|
|
1654
1655
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b3 = function () {
|
|
1655
|
-
return this.
|
|
1656
|
+
return this.u9y_1;
|
|
1656
1657
|
};
|
|
1657
1658
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1658
1659
|
var tmp;
|
|
@@ -1673,13 +1674,13 @@
|
|
|
1673
1674
|
return hashCode(this.b3());
|
|
1674
1675
|
};
|
|
1675
1676
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
1676
|
-
this.
|
|
1677
|
+
this.v9y_1 = function_0;
|
|
1677
1678
|
}
|
|
1678
1679
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o28 = function (value, $completion) {
|
|
1679
|
-
return this.
|
|
1680
|
+
return this.v9y_1(value, $completion);
|
|
1680
1681
|
};
|
|
1681
1682
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).b3 = function () {
|
|
1682
|
-
return this.
|
|
1683
|
+
return this.v9y_1;
|
|
1683
1684
|
};
|
|
1684
1685
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
1685
1686
|
var tmp;
|
|
@@ -1700,13 +1701,13 @@
|
|
|
1700
1701
|
return hashCode(this.b3());
|
|
1701
1702
|
};
|
|
1702
1703
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
1703
|
-
this.
|
|
1704
|
+
this.w9y_1 = function_0;
|
|
1704
1705
|
}
|
|
1705
1706
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).o28 = function (value, $completion) {
|
|
1706
|
-
return this.
|
|
1707
|
+
return this.w9y_1(value, $completion);
|
|
1707
1708
|
};
|
|
1708
1709
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).b3 = function () {
|
|
1709
|
-
return this.
|
|
1710
|
+
return this.w9y_1;
|
|
1710
1711
|
};
|
|
1711
1712
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
1712
1713
|
var tmp;
|
|
@@ -1727,13 +1728,13 @@
|
|
|
1727
1728
|
return hashCode(this.b3());
|
|
1728
1729
|
};
|
|
1729
1730
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
1730
|
-
this.
|
|
1731
|
+
this.x9y_1 = function_0;
|
|
1731
1732
|
}
|
|
1732
1733
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).o28 = function (value, $completion) {
|
|
1733
|
-
return this.
|
|
1734
|
+
return this.x9y_1(value, $completion);
|
|
1734
1735
|
};
|
|
1735
1736
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).b3 = function () {
|
|
1736
|
-
return this.
|
|
1737
|
+
return this.x9y_1;
|
|
1737
1738
|
};
|
|
1738
1739
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
1739
1740
|
var tmp;
|
|
@@ -1754,13 +1755,13 @@
|
|
|
1754
1755
|
return hashCode(this.b3());
|
|
1755
1756
|
};
|
|
1756
1757
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
1757
|
-
this.
|
|
1758
|
+
this.y9y_1 = function_0;
|
|
1758
1759
|
}
|
|
1759
1760
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).o28 = function (value, $completion) {
|
|
1760
|
-
return this.
|
|
1761
|
+
return this.y9y_1(value, $completion);
|
|
1761
1762
|
};
|
|
1762
1763
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).b3 = function () {
|
|
1763
|
-
return this.
|
|
1764
|
+
return this.y9y_1;
|
|
1764
1765
|
};
|
|
1765
1766
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
1766
1767
|
var tmp;
|
|
@@ -1781,13 +1782,13 @@
|
|
|
1781
1782
|
return hashCode(this.b3());
|
|
1782
1783
|
};
|
|
1783
1784
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) {
|
|
1784
|
-
this.
|
|
1785
|
+
this.z9y_1 = function_0;
|
|
1785
1786
|
}
|
|
1786
1787
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).o28 = function (value, $completion) {
|
|
1787
|
-
return this.
|
|
1788
|
+
return this.z9y_1(value, $completion);
|
|
1788
1789
|
};
|
|
1789
1790
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).b3 = function () {
|
|
1790
|
-
return this.
|
|
1791
|
+
return this.z9y_1;
|
|
1791
1792
|
};
|
|
1792
1793
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).equals = function (other) {
|
|
1793
1794
|
var tmp;
|
|
@@ -1918,8 +1919,8 @@
|
|
|
1918
1919
|
};
|
|
1919
1920
|
}
|
|
1920
1921
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1922
|
+
this.i9z_1 = this$0;
|
|
1923
|
+
this.j9z_1 = $subscriber;
|
|
1923
1924
|
CoroutineImpl.call(this, resultContinuation);
|
|
1924
1925
|
}
|
|
1925
1926
|
protoOf(GameServer$subscribeToClientAction$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -1940,8 +1941,8 @@
|
|
|
1940
1941
|
case 0:
|
|
1941
1942
|
this.t8_1 = 2;
|
|
1942
1943
|
this.s8_1 = 1;
|
|
1943
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
1944
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
1944
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.i9z_1).l9z();
|
|
1945
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.j9z_1, null);
|
|
1945
1946
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
1946
1947
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1947
1948
|
return suspendResult;
|
|
@@ -1965,8 +1966,8 @@
|
|
|
1965
1966
|
while (true);
|
|
1966
1967
|
};
|
|
1967
1968
|
protoOf(GameServer$subscribeToClientAction$slambda).d2d = function ($this$launchDefault, completion) {
|
|
1968
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
1969
|
-
i.
|
|
1969
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.i9z_1, this.j9z_1, completion);
|
|
1970
|
+
i.k9z_1 = $this$launchDefault;
|
|
1970
1971
|
return i;
|
|
1971
1972
|
};
|
|
1972
1973
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1978,8 +1979,8 @@
|
|
|
1978
1979
|
return l;
|
|
1979
1980
|
}
|
|
1980
1981
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
1982
|
+
this.u9z_1 = this$0;
|
|
1983
|
+
this.v9z_1 = $subscriber;
|
|
1983
1984
|
CoroutineImpl.call(this, resultContinuation);
|
|
1984
1985
|
}
|
|
1985
1986
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -2000,8 +2001,8 @@
|
|
|
2000
2001
|
case 0:
|
|
2001
2002
|
this.t8_1 = 2;
|
|
2002
2003
|
this.s8_1 = 1;
|
|
2003
|
-
var tmp_0 = observeTableStateUpdates(this.
|
|
2004
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
2004
|
+
var tmp_0 = observeTableStateUpdates(this.u9z_1);
|
|
2005
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.v9z_1, null);
|
|
2005
2006
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
2006
2007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2007
2008
|
return suspendResult;
|
|
@@ -2025,8 +2026,8 @@
|
|
|
2025
2026
|
while (true);
|
|
2026
2027
|
};
|
|
2027
2028
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).d2d = function ($this$launchDefault, completion) {
|
|
2028
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
2029
|
-
i.
|
|
2029
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.u9z_1, this.v9z_1, completion);
|
|
2030
|
+
i.w9z_1 = $this$launchDefault;
|
|
2030
2031
|
return i;
|
|
2031
2032
|
};
|
|
2032
2033
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2038,8 +2039,8 @@
|
|
|
2038
2039
|
return l;
|
|
2039
2040
|
}
|
|
2040
2041
|
function GameServer$subscribeServerStateUpdateJson$slambda(this$0, $subscriber, resultContinuation) {
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2042
|
+
this.fa0_1 = this$0;
|
|
2043
|
+
this.ga0_1 = $subscriber;
|
|
2043
2044
|
CoroutineImpl.call(this, resultContinuation);
|
|
2044
2045
|
}
|
|
2045
2046
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -2060,9 +2061,9 @@
|
|
|
2060
2061
|
case 0:
|
|
2061
2062
|
this.t8_1 = 2;
|
|
2062
2063
|
this.s8_1 = 1;
|
|
2063
|
-
var this_0 = observeTableStateUpdates(this.
|
|
2064
|
-
var tmp_0 = new GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1(this_0, this.
|
|
2065
|
-
var tmp_1 = GameServer$subscribeServerStateUpdateJson$slambda$slambda_0(this.
|
|
2064
|
+
var this_0 = observeTableStateUpdates(this.fa0_1);
|
|
2065
|
+
var tmp_0 = new GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1(this_0, this.fa0_1);
|
|
2066
|
+
var tmp_1 = GameServer$subscribeServerStateUpdateJson$slambda$slambda_0(this.ga0_1, null);
|
|
2066
2067
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
2067
2068
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2068
2069
|
return suspendResult;
|
|
@@ -2086,8 +2087,8 @@
|
|
|
2086
2087
|
while (true);
|
|
2087
2088
|
};
|
|
2088
2089
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).d2d = function ($this$launchDefault, completion) {
|
|
2089
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.
|
|
2090
|
-
i.
|
|
2090
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.fa0_1, this.ga0_1, completion);
|
|
2091
|
+
i.ha0_1 = $this$launchDefault;
|
|
2091
2092
|
return i;
|
|
2092
2093
|
};
|
|
2093
2094
|
function GameServer$subscribeServerStateUpdateJson$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2098,19 +2099,68 @@
|
|
|
2098
2099
|
l.$arity = 1;
|
|
2099
2100
|
return l;
|
|
2100
2101
|
}
|
|
2102
|
+
function GameServer$getServerTableState$slambda(this$0, $callback, resultContinuation) {
|
|
2103
|
+
this.qa0_1 = this$0;
|
|
2104
|
+
this.ra0_1 = $callback;
|
|
2105
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2106
|
+
}
|
|
2107
|
+
protoOf(GameServer$getServerTableState$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
2108
|
+
var tmp = this.d2d($this$launchDefault, $completion);
|
|
2109
|
+
tmp.u8_1 = Unit_instance;
|
|
2110
|
+
tmp.v8_1 = null;
|
|
2111
|
+
return tmp.a9();
|
|
2112
|
+
};
|
|
2113
|
+
protoOf(GameServer$getServerTableState$slambda).i9 = function (p1, $completion) {
|
|
2114
|
+
return this.c2d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2115
|
+
};
|
|
2116
|
+
protoOf(GameServer$getServerTableState$slambda).a9 = function () {
|
|
2117
|
+
var suspendResult = this.u8_1;
|
|
2118
|
+
$sm: do
|
|
2119
|
+
try {
|
|
2120
|
+
var tmp = this.s8_1;
|
|
2121
|
+
if (tmp === 0) {
|
|
2122
|
+
this.t8_1 = 1;
|
|
2123
|
+
if (!this.qa0_1.isTableExists) {
|
|
2124
|
+
return Unit_instance;
|
|
2125
|
+
}
|
|
2126
|
+
var dto = mapToDto_3(new TableStateUpdate(this.qa0_1.table.id, this.qa0_1.table), _get_encoderDecoderProvider__qqgrji(this.qa0_1));
|
|
2127
|
+
this.ra0_1(dto);
|
|
2128
|
+
return Unit_instance;
|
|
2129
|
+
} else if (tmp === 1) {
|
|
2130
|
+
throw this.v8_1;
|
|
2131
|
+
}
|
|
2132
|
+
} catch ($p) {
|
|
2133
|
+
var e = $p;
|
|
2134
|
+
throw e;
|
|
2135
|
+
}
|
|
2136
|
+
while (true);
|
|
2137
|
+
};
|
|
2138
|
+
protoOf(GameServer$getServerTableState$slambda).d2d = function ($this$launchDefault, completion) {
|
|
2139
|
+
var i = new GameServer$getServerTableState$slambda(this.qa0_1, this.ra0_1, completion);
|
|
2140
|
+
i.sa0_1 = $this$launchDefault;
|
|
2141
|
+
return i;
|
|
2142
|
+
};
|
|
2143
|
+
function GameServer$getServerTableState$slambda_0(this$0, $callback, resultContinuation) {
|
|
2144
|
+
var i = new GameServer$getServerTableState$slambda(this$0, $callback, resultContinuation);
|
|
2145
|
+
var l = function ($this$launchDefault, $completion) {
|
|
2146
|
+
return i.c2d($this$launchDefault, $completion);
|
|
2147
|
+
};
|
|
2148
|
+
l.$arity = 1;
|
|
2149
|
+
return l;
|
|
2150
|
+
}
|
|
2101
2151
|
function GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation) {
|
|
2102
|
-
this.
|
|
2152
|
+
this.ba1_1 = this$0;
|
|
2103
2153
|
CoroutineImpl.call(this, resultContinuation);
|
|
2104
2154
|
}
|
|
2105
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
2106
|
-
var tmp = this.
|
|
2155
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).ea1 = function ($this$transformLatest, it, $completion) {
|
|
2156
|
+
var tmp = this.fa1($this$transformLatest, it, $completion);
|
|
2107
2157
|
tmp.u8_1 = Unit_instance;
|
|
2108
2158
|
tmp.v8_1 = null;
|
|
2109
2159
|
return tmp.a9();
|
|
2110
2160
|
};
|
|
2111
2161
|
protoOf(GameServer$observeTableStateUpdates$slambda).j9 = function (p1, p2, $completion) {
|
|
2112
2162
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2113
|
-
return this.
|
|
2163
|
+
return this.ea1(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2114
2164
|
};
|
|
2115
2165
|
protoOf(GameServer$observeTableStateUpdates$slambda).a9 = function () {
|
|
2116
2166
|
var suspendResult = this.u8_1;
|
|
@@ -2121,8 +2171,8 @@
|
|
|
2121
2171
|
case 0:
|
|
2122
2172
|
this.t8_1 = 2;
|
|
2123
2173
|
this.s8_1 = 1;
|
|
2124
|
-
var table = this.
|
|
2125
|
-
suspendResult = emitAll(this.
|
|
2174
|
+
var table = this.da1_1;
|
|
2175
|
+
suspendResult = emitAll(this.ca1_1, flow(GameServer$observeTableStateUpdates$slambda$slambda_0(table, this.ba1_1, null)), this);
|
|
2126
2176
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2127
2177
|
return suspendResult;
|
|
2128
2178
|
}
|
|
@@ -2144,23 +2194,23 @@
|
|
|
2144
2194
|
}
|
|
2145
2195
|
while (true);
|
|
2146
2196
|
};
|
|
2147
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
2148
|
-
var i = new GameServer$observeTableStateUpdates$slambda(this.
|
|
2149
|
-
i.
|
|
2150
|
-
i.
|
|
2197
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).fa1 = function ($this$transformLatest, it, completion) {
|
|
2198
|
+
var i = new GameServer$observeTableStateUpdates$slambda(this.ba1_1, completion);
|
|
2199
|
+
i.ca1_1 = $this$transformLatest;
|
|
2200
|
+
i.da1_1 = it;
|
|
2151
2201
|
return i;
|
|
2152
2202
|
};
|
|
2153
2203
|
function GameServer$observeTableStateUpdates$slambda_0(this$0, resultContinuation) {
|
|
2154
2204
|
var i = new GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation);
|
|
2155
2205
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2156
|
-
return i.
|
|
2206
|
+
return i.ea1($this$transformLatest, it, $completion);
|
|
2157
2207
|
};
|
|
2158
2208
|
l.$arity = 2;
|
|
2159
2209
|
return l;
|
|
2160
2210
|
}
|
|
2161
2211
|
function GameServer$observeTableStateUpdates$$inlined$mapNotNull$1($this, this$0) {
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2212
|
+
this.a9v_1 = $this;
|
|
2213
|
+
this.b9v_1 = this$0;
|
|
2164
2214
|
}
|
|
2165
2215
|
protoOf(GameServer$observeTableStateUpdates$$inlined$mapNotNull$1).p28 = function (collector, $completion) {
|
|
2166
2216
|
var tmp = new $collectCOROUTINE$_1(this, collector, $completion);
|
|
@@ -2172,7 +2222,7 @@
|
|
|
2172
2222
|
return this.p28(collector, $completion);
|
|
2173
2223
|
};
|
|
2174
2224
|
function GameServer$observeTableWhenRoundChanges$$inlined$mapNotNull$1($this) {
|
|
2175
|
-
this.
|
|
2225
|
+
this.a9w_1 = $this;
|
|
2176
2226
|
}
|
|
2177
2227
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$mapNotNull$1).p28 = function (collector, $completion) {
|
|
2178
2228
|
var tmp = new $collectCOROUTINE$_2(this, collector, $completion);
|
|
@@ -2184,7 +2234,7 @@
|
|
|
2184
2234
|
return this.p28(collector, $completion);
|
|
2185
2235
|
};
|
|
2186
2236
|
function GameServer$observeTableWhenRoundChanges$$inlined$map$1($this) {
|
|
2187
|
-
this.
|
|
2237
|
+
this.v9w_1 = $this;
|
|
2188
2238
|
}
|
|
2189
2239
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$map$1).p28 = function (collector, $completion) {
|
|
2190
2240
|
var tmp = new $collectCOROUTINE$_3(this, collector, $completion);
|
|
@@ -2199,7 +2249,7 @@
|
|
|
2199
2249
|
return old.me_1 === new_0.me_1;
|
|
2200
2250
|
}
|
|
2201
2251
|
function GameServer$observeTableWhenRoundChanges$$inlined$map$2($this) {
|
|
2202
|
-
this.
|
|
2252
|
+
this.q9x_1 = $this;
|
|
2203
2253
|
}
|
|
2204
2254
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$map$2).p28 = function (collector, $completion) {
|
|
2205
2255
|
var tmp = new $collectCOROUTINE$_4(this, collector, $completion);
|
|
@@ -2211,8 +2261,8 @@
|
|
|
2211
2261
|
return this.p28(collector, $completion);
|
|
2212
2262
|
};
|
|
2213
2263
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
2214
|
-
this.
|
|
2215
|
-
this.
|
|
2264
|
+
this.oa1_1 = this$0;
|
|
2265
|
+
this.pa1_1 = $subscriber;
|
|
2216
2266
|
CoroutineImpl.call(this, resultContinuation);
|
|
2217
2267
|
}
|
|
2218
2268
|
protoOf(GameServer$subscribeWith$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -2233,8 +2283,8 @@
|
|
|
2233
2283
|
case 0:
|
|
2234
2284
|
this.t8_1 = 2;
|
|
2235
2285
|
this.s8_1 = 1;
|
|
2236
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
2237
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
2286
|
+
var tmp_0 = distinctUntilChanged(this.oa1_1.b6r());
|
|
2287
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.pa1_1, null);
|
|
2238
2288
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_4(tmp_1), this);
|
|
2239
2289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2240
2290
|
return suspendResult;
|
|
@@ -2258,8 +2308,8 @@
|
|
|
2258
2308
|
while (true);
|
|
2259
2309
|
};
|
|
2260
2310
|
protoOf(GameServer$subscribeWith$slambda).d2d = function ($this$launchDefault, completion) {
|
|
2261
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
2262
|
-
i.
|
|
2311
|
+
var i = new GameServer$subscribeWith$slambda(this.oa1_1, this.pa1_1, completion);
|
|
2312
|
+
i.qa1_1 = $this$launchDefault;
|
|
2263
2313
|
return i;
|
|
2264
2314
|
};
|
|
2265
2315
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2271,18 +2321,18 @@
|
|
|
2271
2321
|
return l;
|
|
2272
2322
|
}
|
|
2273
2323
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
2274
|
-
this.
|
|
2324
|
+
this.za1_1 = $action;
|
|
2275
2325
|
CoroutineImpl.call(this, resultContinuation);
|
|
2276
2326
|
}
|
|
2277
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
2278
|
-
var tmp = this.
|
|
2327
|
+
protoOf(GameServer$fromClientEvent$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2328
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2279
2329
|
tmp.u8_1 = Unit_instance;
|
|
2280
2330
|
tmp.v8_1 = null;
|
|
2281
2331
|
return tmp.a9();
|
|
2282
2332
|
};
|
|
2283
2333
|
protoOf(GameServer$fromClientEvent$slambda).j9 = function (p1, p2, $completion) {
|
|
2284
2334
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2285
|
-
return this.
|
|
2335
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2286
2336
|
};
|
|
2287
2337
|
protoOf(GameServer$fromClientEvent$slambda).a9 = function () {
|
|
2288
2338
|
var suspendResult = this.u8_1;
|
|
@@ -2291,11 +2341,11 @@
|
|
|
2291
2341
|
var tmp = this.s8_1;
|
|
2292
2342
|
if (tmp === 0) {
|
|
2293
2343
|
this.t8_1 = 1;
|
|
2294
|
-
if (this.
|
|
2295
|
-
if (!get_isCreated(this.
|
|
2344
|
+
if (this.za1_1 instanceof PlayerReadyFromClientAction)
|
|
2345
|
+
if (!get_isCreated(this.ba2_1.state)) {
|
|
2296
2346
|
return Unit_instance;
|
|
2297
2347
|
}
|
|
2298
|
-
this.
|
|
2348
|
+
this.ba2_1.dispatch(this.za1_1);
|
|
2299
2349
|
return Unit_instance;
|
|
2300
2350
|
} else if (tmp === 1) {
|
|
2301
2351
|
throw this.v8_1;
|
|
@@ -2306,34 +2356,34 @@
|
|
|
2306
2356
|
}
|
|
2307
2357
|
while (true);
|
|
2308
2358
|
};
|
|
2309
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
2310
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
2311
|
-
i.
|
|
2312
|
-
i.
|
|
2359
|
+
protoOf(GameServer$fromClientEvent$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2360
|
+
var i = new GameServer$fromClientEvent$slambda(this.za1_1, completion);
|
|
2361
|
+
i.aa2_1 = $this$dispatchAsync;
|
|
2362
|
+
i.ba2_1 = store;
|
|
2313
2363
|
return i;
|
|
2314
2364
|
};
|
|
2315
2365
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
2316
2366
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
2317
2367
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2318
|
-
return i.
|
|
2368
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2319
2369
|
};
|
|
2320
2370
|
l.$arity = 2;
|
|
2321
2371
|
return l;
|
|
2322
2372
|
}
|
|
2323
2373
|
function GameServer$playerLostConnection$slambda($playerId, $roomId, resultContinuation) {
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2374
|
+
this.ma2_1 = $playerId;
|
|
2375
|
+
this.na2_1 = $roomId;
|
|
2326
2376
|
CoroutineImpl.call(this, resultContinuation);
|
|
2327
2377
|
}
|
|
2328
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
2329
|
-
var tmp = this.
|
|
2378
|
+
protoOf(GameServer$playerLostConnection$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2379
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2330
2380
|
tmp.u8_1 = Unit_instance;
|
|
2331
2381
|
tmp.v8_1 = null;
|
|
2332
2382
|
return tmp.a9();
|
|
2333
2383
|
};
|
|
2334
2384
|
protoOf(GameServer$playerLostConnection$slambda).j9 = function (p1, p2, $completion) {
|
|
2335
2385
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2336
|
-
return this.
|
|
2386
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2337
2387
|
};
|
|
2338
2388
|
protoOf(GameServer$playerLostConnection$slambda).a9 = function () {
|
|
2339
2389
|
var suspendResult = this.u8_1;
|
|
@@ -2342,12 +2392,12 @@
|
|
|
2342
2392
|
var tmp = this.s8_1;
|
|
2343
2393
|
if (tmp === 0) {
|
|
2344
2394
|
this.t8_1 = 1;
|
|
2345
|
-
if (!get_isCreated(this.
|
|
2395
|
+
if (!get_isCreated(this.pa2_1.state)) {
|
|
2346
2396
|
return Unit_instance;
|
|
2347
2397
|
}
|
|
2348
|
-
var tmp_0 = this.
|
|
2398
|
+
var tmp_0 = this.pa2_1.dispatch;
|
|
2349
2399
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
2350
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2400
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ma2_1, this.na2_1));
|
|
2351
2401
|
return Unit_instance;
|
|
2352
2402
|
} else if (tmp === 1) {
|
|
2353
2403
|
throw this.v8_1;
|
|
@@ -2358,35 +2408,35 @@
|
|
|
2358
2408
|
}
|
|
2359
2409
|
while (true);
|
|
2360
2410
|
};
|
|
2361
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
2362
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
2363
|
-
i.
|
|
2364
|
-
i.
|
|
2411
|
+
protoOf(GameServer$playerLostConnection$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2412
|
+
var i = new GameServer$playerLostConnection$slambda(this.ma2_1, this.na2_1, completion);
|
|
2413
|
+
i.oa2_1 = $this$dispatchAsync;
|
|
2414
|
+
i.pa2_1 = store;
|
|
2365
2415
|
return i;
|
|
2366
2416
|
};
|
|
2367
2417
|
function GameServer$playerLostConnection$slambda_0($playerId, $roomId, resultContinuation) {
|
|
2368
2418
|
var i = new GameServer$playerLostConnection$slambda($playerId, $roomId, resultContinuation);
|
|
2369
2419
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2370
|
-
return i.
|
|
2420
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2371
2421
|
};
|
|
2372
2422
|
l.$arity = 2;
|
|
2373
2423
|
return l;
|
|
2374
2424
|
}
|
|
2375
2425
|
function GameServer$playerLive$slambda(this$0, $playerId, $roomId, resultContinuation) {
|
|
2376
|
-
this.
|
|
2377
|
-
this.
|
|
2378
|
-
this.
|
|
2426
|
+
this.ya2_1 = this$0;
|
|
2427
|
+
this.za2_1 = $playerId;
|
|
2428
|
+
this.aa3_1 = $roomId;
|
|
2379
2429
|
CoroutineImpl.call(this, resultContinuation);
|
|
2380
2430
|
}
|
|
2381
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2382
|
-
var tmp = this.
|
|
2431
|
+
protoOf(GameServer$playerLive$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2432
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2383
2433
|
tmp.u8_1 = Unit_instance;
|
|
2384
2434
|
tmp.v8_1 = null;
|
|
2385
2435
|
return tmp.a9();
|
|
2386
2436
|
};
|
|
2387
2437
|
protoOf(GameServer$playerLive$slambda).j9 = function (p1, p2, $completion) {
|
|
2388
2438
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2389
|
-
return this.
|
|
2439
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2390
2440
|
};
|
|
2391
2441
|
protoOf(GameServer$playerLive$slambda).a9 = function () {
|
|
2392
2442
|
var suspendResult = this.u8_1;
|
|
@@ -2395,16 +2445,16 @@
|
|
|
2395
2445
|
var tmp = this.s8_1;
|
|
2396
2446
|
if (tmp === 0) {
|
|
2397
2447
|
this.t8_1 = 1;
|
|
2398
|
-
if (get_isFinished(this.
|
|
2448
|
+
if (get_isFinished(this.ca3_1.state) || get_isFinishing(this.ca3_1.state)) {
|
|
2399
2449
|
return Unit_instance;
|
|
2400
2450
|
}
|
|
2401
|
-
if (!_get_serverReduxConfig__rprcrm(this.
|
|
2402
|
-
this.
|
|
2451
|
+
if (!_get_serverReduxConfig__rprcrm(this.ya2_1).waitForPlayerToConnectOnStart && (!get_isCreated(this.ca3_1.state) || !this.ya2_1.x66().e6s())) {
|
|
2452
|
+
this.ya2_1.i4q().v('GameEngine_API', 'playerLive: ' + this.za2_1 + ' before game is created');
|
|
2403
2453
|
return Unit_instance;
|
|
2404
2454
|
}
|
|
2405
|
-
var tmp_0 = this.
|
|
2455
|
+
var tmp_0 = this.ca3_1.dispatch;
|
|
2406
2456
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2407
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2457
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.za2_1, this.aa3_1));
|
|
2408
2458
|
return Unit_instance;
|
|
2409
2459
|
} else if (tmp === 1) {
|
|
2410
2460
|
throw this.v8_1;
|
|
@@ -2415,36 +2465,36 @@
|
|
|
2415
2465
|
}
|
|
2416
2466
|
while (true);
|
|
2417
2467
|
};
|
|
2418
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2419
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
2420
|
-
i.
|
|
2421
|
-
i.
|
|
2468
|
+
protoOf(GameServer$playerLive$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2469
|
+
var i = new GameServer$playerLive$slambda(this.ya2_1, this.za2_1, this.aa3_1, completion);
|
|
2470
|
+
i.ba3_1 = $this$dispatchAsync;
|
|
2471
|
+
i.ca3_1 = store;
|
|
2422
2472
|
return i;
|
|
2423
2473
|
};
|
|
2424
2474
|
function GameServer$playerLive$slambda_0(this$0, $playerId, $roomId, resultContinuation) {
|
|
2425
2475
|
var i = new GameServer$playerLive$slambda(this$0, $playerId, $roomId, resultContinuation);
|
|
2426
2476
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2427
|
-
return i.
|
|
2477
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2428
2478
|
};
|
|
2429
2479
|
l.$arity = 2;
|
|
2430
2480
|
return l;
|
|
2431
2481
|
}
|
|
2432
2482
|
function GameServer$playerLeft$slambda(this$0, $playerId, $permanently, $roomId, resultContinuation) {
|
|
2433
|
-
this.
|
|
2434
|
-
this.
|
|
2435
|
-
this.
|
|
2436
|
-
this.
|
|
2483
|
+
this.la3_1 = this$0;
|
|
2484
|
+
this.ma3_1 = $playerId;
|
|
2485
|
+
this.na3_1 = $permanently;
|
|
2486
|
+
this.oa3_1 = $roomId;
|
|
2437
2487
|
CoroutineImpl.call(this, resultContinuation);
|
|
2438
2488
|
}
|
|
2439
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2440
|
-
var tmp = this.
|
|
2489
|
+
protoOf(GameServer$playerLeft$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2490
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2441
2491
|
tmp.u8_1 = Unit_instance;
|
|
2442
2492
|
tmp.v8_1 = null;
|
|
2443
2493
|
return tmp.a9();
|
|
2444
2494
|
};
|
|
2445
2495
|
protoOf(GameServer$playerLeft$slambda).j9 = function (p1, p2, $completion) {
|
|
2446
2496
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2447
|
-
return this.
|
|
2497
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2448
2498
|
};
|
|
2449
2499
|
protoOf(GameServer$playerLeft$slambda).a9 = function () {
|
|
2450
2500
|
var suspendResult = this.u8_1;
|
|
@@ -2453,22 +2503,22 @@
|
|
|
2453
2503
|
var tmp = this.s8_1;
|
|
2454
2504
|
if (tmp === 0) {
|
|
2455
2505
|
this.t8_1 = 1;
|
|
2456
|
-
if (get_isFinished(this.
|
|
2506
|
+
if (get_isFinished(this.qa3_1.state) || get_isFinishing(this.qa3_1.state)) {
|
|
2457
2507
|
return Unit_instance;
|
|
2458
2508
|
}
|
|
2459
|
-
if (!get_isCreated(this.
|
|
2460
|
-
this.
|
|
2509
|
+
if (!get_isCreated(this.qa3_1.state) || !this.la3_1.x66().e6s()) {
|
|
2510
|
+
this.la3_1.i4q().w('GameEngine_API', 'playerLeft: ' + this.ma3_1 + ' before game is created');
|
|
2461
2511
|
return Unit_instance;
|
|
2462
2512
|
}
|
|
2463
|
-
var tmp_0 = this.
|
|
2513
|
+
var tmp_0 = this.qa3_1.dispatch;
|
|
2464
2514
|
var tmp_1;
|
|
2465
|
-
if (this.
|
|
2515
|
+
if (this.na3_1) {
|
|
2466
2516
|
tmp_1 = PlayerConnectionState_LEFT_PERMANENTLY_getInstance();
|
|
2467
2517
|
} else {
|
|
2468
2518
|
tmp_1 = PlayerConnectionState_LEFT_getInstance();
|
|
2469
2519
|
}
|
|
2470
2520
|
var tmp0_connectionState = tmp_1;
|
|
2471
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2521
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ma3_1, this.oa3_1));
|
|
2472
2522
|
return Unit_instance;
|
|
2473
2523
|
} else if (tmp === 1) {
|
|
2474
2524
|
throw this.v8_1;
|
|
@@ -2479,39 +2529,39 @@
|
|
|
2479
2529
|
}
|
|
2480
2530
|
while (true);
|
|
2481
2531
|
};
|
|
2482
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2483
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
2484
|
-
i.
|
|
2485
|
-
i.
|
|
2532
|
+
protoOf(GameServer$playerLeft$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2533
|
+
var i = new GameServer$playerLeft$slambda(this.la3_1, this.ma3_1, this.na3_1, this.oa3_1, completion);
|
|
2534
|
+
i.pa3_1 = $this$dispatchAsync;
|
|
2535
|
+
i.qa3_1 = store;
|
|
2486
2536
|
return i;
|
|
2487
2537
|
};
|
|
2488
2538
|
function GameServer$playerLeft$slambda_0(this$0, $playerId, $permanently, $roomId, resultContinuation) {
|
|
2489
2539
|
var i = new GameServer$playerLeft$slambda(this$0, $playerId, $permanently, $roomId, resultContinuation);
|
|
2490
2540
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2491
|
-
return i.
|
|
2541
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2492
2542
|
};
|
|
2493
2543
|
l.$arity = 2;
|
|
2494
2544
|
return l;
|
|
2495
2545
|
}
|
|
2496
2546
|
function GameServer$roomOnCreate$slambda($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2547
|
+
this.za3_1 = $usersArray;
|
|
2548
|
+
this.aa4_1 = this$0;
|
|
2549
|
+
this.ba4_1 = $config;
|
|
2550
|
+
this.ca4_1 = $roomId;
|
|
2551
|
+
this.da4_1 = $transition;
|
|
2552
|
+
this.ea4_1 = $gameCreatorId;
|
|
2553
|
+
this.fa4_1 = $spectators;
|
|
2504
2554
|
CoroutineImpl.call(this, resultContinuation);
|
|
2505
2555
|
}
|
|
2506
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2507
|
-
var tmp = this.
|
|
2556
|
+
protoOf(GameServer$roomOnCreate$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2557
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2508
2558
|
tmp.u8_1 = Unit_instance;
|
|
2509
2559
|
tmp.v8_1 = null;
|
|
2510
2560
|
return tmp.a9();
|
|
2511
2561
|
};
|
|
2512
2562
|
protoOf(GameServer$roomOnCreate$slambda).j9 = function (p1, p2, $completion) {
|
|
2513
2563
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2514
|
-
return this.
|
|
2564
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2515
2565
|
};
|
|
2516
2566
|
protoOf(GameServer$roomOnCreate$slambda).a9 = function () {
|
|
2517
2567
|
var suspendResult = this.u8_1;
|
|
@@ -2520,18 +2570,18 @@
|
|
|
2520
2570
|
var tmp = this.s8_1;
|
|
2521
2571
|
if (tmp === 0) {
|
|
2522
2572
|
this.t8_1 = 1;
|
|
2523
|
-
var users = toList(this.
|
|
2524
|
-
if (!validatePlayerCount(this.
|
|
2525
|
-
this.
|
|
2573
|
+
var users = toList(this.za3_1);
|
|
2574
|
+
if (!validatePlayerCount(this.aa4_1, this.ba4_1, users, this.ca4_1)) {
|
|
2575
|
+
this.ha4_1.dispatch(Companion_instance.fromTableWithAnalytics(new GameErrorReason(Reason_SERVER_ERROR_getInstance()), this.aa4_1.table.isGameFinished, this.aa4_1.table));
|
|
2526
2576
|
return Unit_instance;
|
|
2527
2577
|
}
|
|
2528
|
-
var orderedUsers = orderUsers(this.
|
|
2529
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
2530
|
-
var tmp_0 = this.
|
|
2578
|
+
var orderedUsers = orderUsers(this.aa4_1, users, this.ba4_1, this.da4_1);
|
|
2579
|
+
var gameCreatorUser = getPlayer(users, this.ea4_1);
|
|
2580
|
+
var tmp_0 = this.ha4_1.dispatch;
|
|
2531
2581
|
var tmp0_version = get_versionOrDefault(GameEngineConfig_instance);
|
|
2532
2582
|
var tmp1_users = sortWithItem(orderedUsers, gameCreatorUser);
|
|
2533
|
-
var tmp2_spectators = toList(this.
|
|
2534
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
2583
|
+
var tmp2_spectators = toList(this.fa4_1);
|
|
2584
|
+
tmp_0(new StartGameMechanicAction(this.ba4_1, this.ca4_1, tmp0_version, this.ea4_1, tmp1_users, VOID, tmp2_spectators));
|
|
2535
2585
|
return Unit_instance;
|
|
2536
2586
|
} else if (tmp === 1) {
|
|
2537
2587
|
throw this.v8_1;
|
|
@@ -2542,39 +2592,39 @@
|
|
|
2542
2592
|
}
|
|
2543
2593
|
while (true);
|
|
2544
2594
|
};
|
|
2545
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2546
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
2547
|
-
i.
|
|
2548
|
-
i.
|
|
2595
|
+
protoOf(GameServer$roomOnCreate$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2596
|
+
var i = new GameServer$roomOnCreate$slambda(this.za3_1, this.aa4_1, this.ba4_1, this.ca4_1, this.da4_1, this.ea4_1, this.fa4_1, completion);
|
|
2597
|
+
i.ga4_1 = $this$dispatchAsync;
|
|
2598
|
+
i.ha4_1 = store;
|
|
2549
2599
|
return i;
|
|
2550
2600
|
};
|
|
2551
2601
|
function GameServer$roomOnCreate$slambda_0($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2552
2602
|
var i = new GameServer$roomOnCreate$slambda($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation);
|
|
2553
2603
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2554
|
-
return i.
|
|
2604
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2555
2605
|
};
|
|
2556
2606
|
l.$arity = 2;
|
|
2557
2607
|
return l;
|
|
2558
2608
|
}
|
|
2559
2609
|
function GameServer$preserveTeams$previousTeams$1($playerId) {
|
|
2560
|
-
this.
|
|
2610
|
+
this.ia4_1 = $playerId;
|
|
2561
2611
|
}
|
|
2562
2612
|
protoOf(GameServer$preserveTeams$previousTeams$1).z65 = function () {
|
|
2563
|
-
return this.
|
|
2613
|
+
return this.ia4_1;
|
|
2564
2614
|
};
|
|
2565
2615
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
2566
|
-
this.
|
|
2616
|
+
this.ra4_1 = $state;
|
|
2567
2617
|
CoroutineImpl.call(this, resultContinuation);
|
|
2568
2618
|
}
|
|
2569
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2570
|
-
var tmp = this.
|
|
2619
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).ua4 = function ($this$dispatchAwait, store, $completion) {
|
|
2620
|
+
var tmp = this.da2($this$dispatchAwait, store, $completion);
|
|
2571
2621
|
tmp.u8_1 = Unit_instance;
|
|
2572
2622
|
tmp.v8_1 = null;
|
|
2573
2623
|
return tmp.a9();
|
|
2574
2624
|
};
|
|
2575
2625
|
protoOf(GameServer$roomOnContinueFromState$slambda).j9 = function (p1, p2, $completion) {
|
|
2576
2626
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2577
|
-
return this.
|
|
2627
|
+
return this.ua4(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2578
2628
|
};
|
|
2579
2629
|
protoOf(GameServer$roomOnContinueFromState$slambda).a9 = function () {
|
|
2580
2630
|
var suspendResult = this.u8_1;
|
|
@@ -2583,10 +2633,10 @@
|
|
|
2583
2633
|
var tmp = this.s8_1;
|
|
2584
2634
|
if (tmp === 0) {
|
|
2585
2635
|
this.t8_1 = 1;
|
|
2586
|
-
if (get_isCreating(this.
|
|
2587
|
-
var tmp_0 = this.
|
|
2636
|
+
if (get_isCreating(this.ta4_1.state)) {
|
|
2637
|
+
var tmp_0 = this.ta4_1.dispatch;
|
|
2588
2638
|
var tmp0_reason = new RestartRoundReason(null);
|
|
2589
|
-
var tmp1_table = this.
|
|
2639
|
+
var tmp1_table = this.ra4_1.table;
|
|
2590
2640
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2591
2641
|
return true;
|
|
2592
2642
|
}
|
|
@@ -2600,34 +2650,34 @@
|
|
|
2600
2650
|
}
|
|
2601
2651
|
while (true);
|
|
2602
2652
|
};
|
|
2603
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2604
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
2605
|
-
i.
|
|
2606
|
-
i.
|
|
2653
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).da2 = function ($this$dispatchAwait, store, completion) {
|
|
2654
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.ra4_1, completion);
|
|
2655
|
+
i.sa4_1 = $this$dispatchAwait;
|
|
2656
|
+
i.ta4_1 = store;
|
|
2607
2657
|
return i;
|
|
2608
2658
|
};
|
|
2609
2659
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
2610
2660
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
2611
2661
|
var l = function ($this$dispatchAwait, store, $completion) {
|
|
2612
|
-
return i.
|
|
2662
|
+
return i.ua4($this$dispatchAwait, store, $completion);
|
|
2613
2663
|
};
|
|
2614
2664
|
l.$arity = 2;
|
|
2615
2665
|
return l;
|
|
2616
2666
|
}
|
|
2617
2667
|
function GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation) {
|
|
2618
|
-
this.
|
|
2619
|
-
this.
|
|
2668
|
+
this.da5_1 = $isCreated;
|
|
2669
|
+
this.ea5_1 = $state;
|
|
2620
2670
|
CoroutineImpl.call(this, resultContinuation);
|
|
2621
2671
|
}
|
|
2622
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2623
|
-
var tmp = this.
|
|
2672
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2673
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2624
2674
|
tmp.u8_1 = Unit_instance;
|
|
2625
2675
|
tmp.v8_1 = null;
|
|
2626
2676
|
return tmp.a9();
|
|
2627
2677
|
};
|
|
2628
2678
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).j9 = function (p1, p2, $completion) {
|
|
2629
2679
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2630
|
-
return this.
|
|
2680
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2631
2681
|
};
|
|
2632
2682
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).a9 = function () {
|
|
2633
2683
|
var suspendResult = this.u8_1;
|
|
@@ -2638,7 +2688,7 @@
|
|
|
2638
2688
|
case 0:
|
|
2639
2689
|
this.t8_1 = 3;
|
|
2640
2690
|
this.s8_1 = 1;
|
|
2641
|
-
suspendResult = this.
|
|
2691
|
+
suspendResult = this.da5_1.a1u(this);
|
|
2642
2692
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2643
2693
|
return suspendResult;
|
|
2644
2694
|
}
|
|
@@ -2646,10 +2696,10 @@
|
|
|
2646
2696
|
continue $sm;
|
|
2647
2697
|
case 1:
|
|
2648
2698
|
if (suspendResult) {
|
|
2649
|
-
var _iterator__ex2g4s = this.
|
|
2699
|
+
var _iterator__ex2g4s = this.ea5_1.actions.l();
|
|
2650
2700
|
while (_iterator__ex2g4s.m()) {
|
|
2651
2701
|
var element = _iterator__ex2g4s.n();
|
|
2652
|
-
this.
|
|
2702
|
+
this.ga5_1.dispatch(element);
|
|
2653
2703
|
}
|
|
2654
2704
|
this.s8_1 = 2;
|
|
2655
2705
|
continue $sm;
|
|
@@ -2674,35 +2724,35 @@
|
|
|
2674
2724
|
}
|
|
2675
2725
|
while (true);
|
|
2676
2726
|
};
|
|
2677
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2678
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
2679
|
-
i.
|
|
2680
|
-
i.
|
|
2727
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2728
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.da5_1, this.ea5_1, completion);
|
|
2729
|
+
i.fa5_1 = $this$dispatchAsync;
|
|
2730
|
+
i.ga5_1 = store;
|
|
2681
2731
|
return i;
|
|
2682
2732
|
};
|
|
2683
2733
|
function GameServer$roomOnContinueFromState$slambda_2($isCreated, $state, resultContinuation) {
|
|
2684
2734
|
var i = new GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation);
|
|
2685
2735
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2686
|
-
return i.
|
|
2736
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2687
2737
|
};
|
|
2688
2738
|
l.$arity = 2;
|
|
2689
2739
|
return l;
|
|
2690
2740
|
}
|
|
2691
2741
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
2692
|
-
this.
|
|
2693
|
-
this.
|
|
2694
|
-
this.
|
|
2742
|
+
this.pa5_1 = $tableLite;
|
|
2743
|
+
this.qa5_1 = $roomId;
|
|
2744
|
+
this.ra5_1 = this$0;
|
|
2695
2745
|
CoroutineImpl.call(this, resultContinuation);
|
|
2696
2746
|
}
|
|
2697
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2698
|
-
var tmp = this.
|
|
2747
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2748
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2699
2749
|
tmp.u8_1 = Unit_instance;
|
|
2700
2750
|
tmp.v8_1 = null;
|
|
2701
2751
|
return tmp.a9();
|
|
2702
2752
|
};
|
|
2703
2753
|
protoOf(GameServer$roomOnContinueFromRound$slambda).j9 = function (p1, p2, $completion) {
|
|
2704
2754
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2705
|
-
return this.
|
|
2755
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2706
2756
|
};
|
|
2707
2757
|
protoOf(GameServer$roomOnContinueFromRound$slambda).a9 = function () {
|
|
2708
2758
|
var suspendResult = this.u8_1;
|
|
@@ -2711,9 +2761,9 @@
|
|
|
2711
2761
|
var tmp = this.s8_1;
|
|
2712
2762
|
if (tmp === 0) {
|
|
2713
2763
|
this.t8_1 = 1;
|
|
2714
|
-
var tmp_0 = this.
|
|
2715
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
2716
|
-
var tmp1_table = Companion_instance_0.restartRound(this.
|
|
2764
|
+
var tmp_0 = this.ta5_1.dispatch;
|
|
2765
|
+
var tmp0_reason = new RestartRoundReason(this.pa5_1.gameInfo.round.roundNumber);
|
|
2766
|
+
var tmp1_table = Companion_instance_0.restartRound(this.qa5_1, _get_idsProvider__fnfajc(this.ra5_1).h6e(), get_versionOrDefault(GameEngineConfig_instance), this.pa5_1);
|
|
2717
2767
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2718
2768
|
return Unit_instance;
|
|
2719
2769
|
} else if (tmp === 1) {
|
|
@@ -2725,16 +2775,16 @@
|
|
|
2725
2775
|
}
|
|
2726
2776
|
while (true);
|
|
2727
2777
|
};
|
|
2728
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2729
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
2730
|
-
i.
|
|
2731
|
-
i.
|
|
2778
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2779
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.pa5_1, this.qa5_1, this.ra5_1, completion);
|
|
2780
|
+
i.sa5_1 = $this$dispatchAsync;
|
|
2781
|
+
i.ta5_1 = store;
|
|
2732
2782
|
return i;
|
|
2733
2783
|
};
|
|
2734
2784
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
2735
2785
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
2736
2786
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2737
|
-
return i.
|
|
2787
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2738
2788
|
};
|
|
2739
2789
|
l.$arity = 2;
|
|
2740
2790
|
return l;
|
|
@@ -2742,15 +2792,15 @@
|
|
|
2742
2792
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
2743
2793
|
CoroutineImpl.call(this, resultContinuation);
|
|
2744
2794
|
}
|
|
2745
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2746
|
-
var tmp = this.
|
|
2795
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2796
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2747
2797
|
tmp.u8_1 = Unit_instance;
|
|
2748
2798
|
tmp.v8_1 = null;
|
|
2749
2799
|
return tmp.a9();
|
|
2750
2800
|
};
|
|
2751
2801
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).j9 = function (p1, p2, $completion) {
|
|
2752
2802
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2753
|
-
return this.
|
|
2803
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2754
2804
|
};
|
|
2755
2805
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).a9 = function () {
|
|
2756
2806
|
var suspendResult = this.u8_1;
|
|
@@ -2759,7 +2809,7 @@
|
|
|
2759
2809
|
var tmp = this.s8_1;
|
|
2760
2810
|
if (tmp === 0) {
|
|
2761
2811
|
this.t8_1 = 1;
|
|
2762
|
-
this.
|
|
2812
|
+
this.da6_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
2763
2813
|
return Unit_instance;
|
|
2764
2814
|
} else if (tmp === 1) {
|
|
2765
2815
|
throw this.v8_1;
|
|
@@ -2770,33 +2820,33 @@
|
|
|
2770
2820
|
}
|
|
2771
2821
|
while (true);
|
|
2772
2822
|
};
|
|
2773
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2823
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2774
2824
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
2775
|
-
i.
|
|
2776
|
-
i.
|
|
2825
|
+
i.ca6_1 = $this$dispatchAsync;
|
|
2826
|
+
i.da6_1 = store;
|
|
2777
2827
|
return i;
|
|
2778
2828
|
};
|
|
2779
2829
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
2780
2830
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
2781
2831
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2782
|
-
return i.
|
|
2832
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2783
2833
|
};
|
|
2784
2834
|
l.$arity = 2;
|
|
2785
2835
|
return l;
|
|
2786
2836
|
}
|
|
2787
2837
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
2788
|
-
this.
|
|
2838
|
+
this.ma6_1 = $spectators;
|
|
2789
2839
|
CoroutineImpl.call(this, resultContinuation);
|
|
2790
2840
|
}
|
|
2791
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2792
|
-
var tmp = this.
|
|
2841
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2842
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2793
2843
|
tmp.u8_1 = Unit_instance;
|
|
2794
2844
|
tmp.v8_1 = null;
|
|
2795
2845
|
return tmp.a9();
|
|
2796
2846
|
};
|
|
2797
2847
|
protoOf(GameServer$addSpectatorsToRoom$slambda).j9 = function (p1, p2, $completion) {
|
|
2798
2848
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2799
|
-
return this.
|
|
2849
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2800
2850
|
};
|
|
2801
2851
|
protoOf(GameServer$addSpectatorsToRoom$slambda).a9 = function () {
|
|
2802
2852
|
var suspendResult = this.u8_1;
|
|
@@ -2805,7 +2855,7 @@
|
|
|
2805
2855
|
var tmp = this.s8_1;
|
|
2806
2856
|
if (tmp === 0) {
|
|
2807
2857
|
this.t8_1 = 1;
|
|
2808
|
-
this.
|
|
2858
|
+
this.oa6_1.dispatch(new AddSpectatorsAction(toList(this.ma6_1)));
|
|
2809
2859
|
return Unit_instance;
|
|
2810
2860
|
} else if (tmp === 1) {
|
|
2811
2861
|
throw this.v8_1;
|
|
@@ -2816,33 +2866,33 @@
|
|
|
2816
2866
|
}
|
|
2817
2867
|
while (true);
|
|
2818
2868
|
};
|
|
2819
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2820
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
2821
|
-
i.
|
|
2822
|
-
i.
|
|
2869
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2870
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.ma6_1, completion);
|
|
2871
|
+
i.na6_1 = $this$dispatchAsync;
|
|
2872
|
+
i.oa6_1 = store;
|
|
2823
2873
|
return i;
|
|
2824
2874
|
};
|
|
2825
2875
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
2826
2876
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
2827
2877
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2828
|
-
return i.
|
|
2878
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2829
2879
|
};
|
|
2830
2880
|
l.$arity = 2;
|
|
2831
2881
|
return l;
|
|
2832
2882
|
}
|
|
2833
2883
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
2834
|
-
this.
|
|
2884
|
+
this.xa6_1 = $spectators;
|
|
2835
2885
|
CoroutineImpl.call(this, resultContinuation);
|
|
2836
2886
|
}
|
|
2837
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2838
|
-
var tmp = this.
|
|
2887
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2888
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2839
2889
|
tmp.u8_1 = Unit_instance;
|
|
2840
2890
|
tmp.v8_1 = null;
|
|
2841
2891
|
return tmp.a9();
|
|
2842
2892
|
};
|
|
2843
2893
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).j9 = function (p1, p2, $completion) {
|
|
2844
2894
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2845
|
-
return this.
|
|
2895
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2846
2896
|
};
|
|
2847
2897
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).a9 = function () {
|
|
2848
2898
|
var suspendResult = this.u8_1;
|
|
@@ -2851,7 +2901,7 @@
|
|
|
2851
2901
|
var tmp = this.s8_1;
|
|
2852
2902
|
if (tmp === 0) {
|
|
2853
2903
|
this.t8_1 = 1;
|
|
2854
|
-
this.
|
|
2904
|
+
this.za6_1.dispatch(new RemoveSpectatorsAction(toList(this.xa6_1)));
|
|
2855
2905
|
return Unit_instance;
|
|
2856
2906
|
} else if (tmp === 1) {
|
|
2857
2907
|
throw this.v8_1;
|
|
@@ -2862,34 +2912,34 @@
|
|
|
2862
2912
|
}
|
|
2863
2913
|
while (true);
|
|
2864
2914
|
};
|
|
2865
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2866
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2867
|
-
i.
|
|
2868
|
-
i.
|
|
2915
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2916
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.xa6_1, completion);
|
|
2917
|
+
i.ya6_1 = $this$dispatchAsync;
|
|
2918
|
+
i.za6_1 = store;
|
|
2869
2919
|
return i;
|
|
2870
2920
|
};
|
|
2871
2921
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2872
2922
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2873
2923
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2874
|
-
return i.
|
|
2924
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2875
2925
|
};
|
|
2876
2926
|
l.$arity = 2;
|
|
2877
2927
|
return l;
|
|
2878
2928
|
}
|
|
2879
2929
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2930
|
+
this.ia7_1 = $playerId;
|
|
2931
|
+
this.ja7_1 = this$0;
|
|
2882
2932
|
CoroutineImpl.call(this, resultContinuation);
|
|
2883
2933
|
}
|
|
2884
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2885
|
-
var tmp = this.
|
|
2934
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2935
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2886
2936
|
tmp.u8_1 = Unit_instance;
|
|
2887
2937
|
tmp.v8_1 = null;
|
|
2888
2938
|
return tmp.a9();
|
|
2889
2939
|
};
|
|
2890
2940
|
protoOf(GameServer$roomRefreshPlayerState$slambda).j9 = function (p1, p2, $completion) {
|
|
2891
2941
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2892
|
-
return this.
|
|
2942
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2893
2943
|
};
|
|
2894
2944
|
protoOf(GameServer$roomRefreshPlayerState$slambda).a9 = function () {
|
|
2895
2945
|
var suspendResult = this.u8_1;
|
|
@@ -2898,14 +2948,14 @@
|
|
|
2898
2948
|
var tmp = this.s8_1;
|
|
2899
2949
|
if (tmp === 0) {
|
|
2900
2950
|
this.t8_1 = 1;
|
|
2901
|
-
var table = this.
|
|
2902
|
-
var player = getPlayer(table.players, this.
|
|
2903
|
-
if (player.
|
|
2904
|
-
this.
|
|
2951
|
+
var table = this.la7_1.state.c6s();
|
|
2952
|
+
var player = getPlayer(table.players, this.ia7_1);
|
|
2953
|
+
if (player.q6v_1.d69().n67_1.isLive) {
|
|
2954
|
+
this.la7_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.ja7_1).ma7(player, table));
|
|
2905
2955
|
} else {
|
|
2906
|
-
var tmp_0 = this.
|
|
2956
|
+
var tmp_0 = this.la7_1.dispatch;
|
|
2907
2957
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2908
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2958
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ia7_1));
|
|
2909
2959
|
}
|
|
2910
2960
|
return Unit_instance;
|
|
2911
2961
|
} else if (tmp === 1) {
|
|
@@ -2917,34 +2967,34 @@
|
|
|
2917
2967
|
}
|
|
2918
2968
|
while (true);
|
|
2919
2969
|
};
|
|
2920
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2921
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
2922
|
-
i.
|
|
2923
|
-
i.
|
|
2970
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
2971
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.ia7_1, this.ja7_1, completion);
|
|
2972
|
+
i.ka7_1 = $this$dispatchAsync;
|
|
2973
|
+
i.la7_1 = store;
|
|
2924
2974
|
return i;
|
|
2925
2975
|
};
|
|
2926
2976
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
2927
2977
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
2928
2978
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2929
|
-
return i.
|
|
2979
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2930
2980
|
};
|
|
2931
2981
|
l.$arity = 2;
|
|
2932
2982
|
return l;
|
|
2933
2983
|
}
|
|
2934
2984
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
2935
|
-
this.
|
|
2936
|
-
this.
|
|
2985
|
+
this.va7_1 = this$0;
|
|
2986
|
+
this.wa7_1 = $newRid;
|
|
2937
2987
|
CoroutineImpl.call(this, resultContinuation);
|
|
2938
2988
|
}
|
|
2939
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2940
|
-
var tmp = this.
|
|
2989
|
+
protoOf(GameServer$roomOnDelete$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
2990
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
2941
2991
|
tmp.u8_1 = Unit_instance;
|
|
2942
2992
|
tmp.v8_1 = null;
|
|
2943
2993
|
return tmp.a9();
|
|
2944
2994
|
};
|
|
2945
2995
|
protoOf(GameServer$roomOnDelete$slambda).j9 = function (p1, p2, $completion) {
|
|
2946
2996
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2947
|
-
return this.
|
|
2997
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2948
2998
|
};
|
|
2949
2999
|
protoOf(GameServer$roomOnDelete$slambda).a9 = function () {
|
|
2950
3000
|
var suspendResult = this.u8_1;
|
|
@@ -2953,27 +3003,27 @@
|
|
|
2953
3003
|
var tmp = this.s8_1;
|
|
2954
3004
|
if (tmp === 0) {
|
|
2955
3005
|
this.t8_1 = 1;
|
|
2956
|
-
var it = this.
|
|
3006
|
+
var it = this.va7_1.x66().c6r_1;
|
|
2957
3007
|
var tmp_0;
|
|
2958
3008
|
if (it == null) {
|
|
2959
|
-
this.
|
|
3009
|
+
this.va7_1.i4q().w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
2960
3010
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
2961
3011
|
} else {
|
|
2962
3012
|
tmp_0 = it;
|
|
2963
3013
|
}
|
|
2964
3014
|
var terminationState = tmp_0;
|
|
2965
|
-
var gameTransition = terminationState.
|
|
3015
|
+
var gameTransition = terminationState.t93_1;
|
|
2966
3016
|
var tmp_1;
|
|
2967
3017
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2968
|
-
var tmp0_elvis_lhs = this.
|
|
3018
|
+
var tmp0_elvis_lhs = this.wa7_1;
|
|
2969
3019
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
2970
3020
|
} else {
|
|
2971
3021
|
tmp_1 = gameTransition;
|
|
2972
3022
|
}
|
|
2973
3023
|
var transition = tmp_1;
|
|
2974
|
-
var tmp_2 = this.
|
|
2975
|
-
var tmp0_reason = terminationState.
|
|
2976
|
-
var tmp1_isGameFinished = this.
|
|
3024
|
+
var tmp_2 = this.ya7_1.dispatch;
|
|
3025
|
+
var tmp0_reason = terminationState.s93_1;
|
|
3026
|
+
var tmp1_isGameFinished = this.va7_1.x66().c6s().isGameFinished;
|
|
2977
3027
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2978
3028
|
return Unit_instance;
|
|
2979
3029
|
} else if (tmp === 1) {
|
|
@@ -2985,33 +3035,33 @@
|
|
|
2985
3035
|
}
|
|
2986
3036
|
while (true);
|
|
2987
3037
|
};
|
|
2988
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2989
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
2990
|
-
i.
|
|
2991
|
-
i.
|
|
3038
|
+
protoOf(GameServer$roomOnDelete$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
3039
|
+
var i = new GameServer$roomOnDelete$slambda(this.va7_1, this.wa7_1, completion);
|
|
3040
|
+
i.xa7_1 = $this$dispatchAsync;
|
|
3041
|
+
i.ya7_1 = store;
|
|
2992
3042
|
return i;
|
|
2993
3043
|
};
|
|
2994
3044
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
2995
3045
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
2996
3046
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2997
|
-
return i.
|
|
3047
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
2998
3048
|
};
|
|
2999
3049
|
l.$arity = 2;
|
|
3000
3050
|
return l;
|
|
3001
3051
|
}
|
|
3002
3052
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
3003
|
-
this.
|
|
3053
|
+
this.ha8_1 = $enabled;
|
|
3004
3054
|
CoroutineImpl.call(this, resultContinuation);
|
|
3005
3055
|
}
|
|
3006
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
3007
|
-
var tmp = this.
|
|
3056
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
3057
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
3008
3058
|
tmp.u8_1 = Unit_instance;
|
|
3009
3059
|
tmp.v8_1 = null;
|
|
3010
3060
|
return tmp.a9();
|
|
3011
3061
|
};
|
|
3012
3062
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).j9 = function (p1, p2, $completion) {
|
|
3013
3063
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3014
|
-
return this.
|
|
3064
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3015
3065
|
};
|
|
3016
3066
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).a9 = function () {
|
|
3017
3067
|
var suspendResult = this.u8_1;
|
|
@@ -3020,7 +3070,7 @@
|
|
|
3020
3070
|
var tmp = this.s8_1;
|
|
3021
3071
|
if (tmp === 0) {
|
|
3022
3072
|
this.t8_1 = 1;
|
|
3023
|
-
this.
|
|
3073
|
+
this.ja8_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.ja8_1.state).config.copy(VOID, !this.ha8_1)));
|
|
3024
3074
|
return Unit_instance;
|
|
3025
3075
|
} else if (tmp === 1) {
|
|
3026
3076
|
throw this.v8_1;
|
|
@@ -3031,35 +3081,35 @@
|
|
|
3031
3081
|
}
|
|
3032
3082
|
while (true);
|
|
3033
3083
|
};
|
|
3034
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
3035
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
3036
|
-
i.
|
|
3037
|
-
i.
|
|
3084
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
3085
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.ha8_1, completion);
|
|
3086
|
+
i.ia8_1 = $this$dispatchAsync;
|
|
3087
|
+
i.ja8_1 = store;
|
|
3038
3088
|
return i;
|
|
3039
3089
|
};
|
|
3040
3090
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
3041
3091
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
3042
3092
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3043
|
-
return i.
|
|
3093
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
3044
3094
|
};
|
|
3045
3095
|
l.$arity = 2;
|
|
3046
3096
|
return l;
|
|
3047
3097
|
}
|
|
3048
3098
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
3049
|
-
this.
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3099
|
+
this.sa8_1 = $reason;
|
|
3100
|
+
this.ta8_1 = this$0;
|
|
3101
|
+
this.ua8_1 = $roomId;
|
|
3052
3102
|
CoroutineImpl.call(this, resultContinuation);
|
|
3053
3103
|
}
|
|
3054
|
-
protoOf(GameServer$shutdown$slambda).
|
|
3055
|
-
var tmp = this.
|
|
3104
|
+
protoOf(GameServer$shutdown$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
3105
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
3056
3106
|
tmp.u8_1 = Unit_instance;
|
|
3057
3107
|
tmp.v8_1 = null;
|
|
3058
3108
|
return tmp.a9();
|
|
3059
3109
|
};
|
|
3060
3110
|
protoOf(GameServer$shutdown$slambda).j9 = function (p1, p2, $completion) {
|
|
3061
3111
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3062
|
-
return this.
|
|
3112
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3063
3113
|
};
|
|
3064
3114
|
protoOf(GameServer$shutdown$slambda).a9 = function () {
|
|
3065
3115
|
var suspendResult = this.u8_1;
|
|
@@ -3068,11 +3118,11 @@
|
|
|
3068
3118
|
var tmp = this.s8_1;
|
|
3069
3119
|
if (tmp === 0) {
|
|
3070
3120
|
this.t8_1 = 1;
|
|
3071
|
-
var state = this.
|
|
3121
|
+
var state = this.wa8_1.store.state;
|
|
3072
3122
|
if (state.e6s()) {
|
|
3073
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
3123
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.sa8_1, get_serverShutdownReasonMapping());
|
|
3074
3124
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
3075
|
-
var tmp_0 = this.
|
|
3125
|
+
var tmp_0 = this.wa8_1.dispatch;
|
|
3076
3126
|
var tmp_1 = Companion_instance;
|
|
3077
3127
|
var tmp_2;
|
|
3078
3128
|
switch (shutdownReason.q2_1) {
|
|
@@ -3086,12 +3136,12 @@
|
|
|
3086
3136
|
noWhenBranchMatchedException();
|
|
3087
3137
|
break;
|
|
3088
3138
|
}
|
|
3089
|
-
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.
|
|
3139
|
+
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.ta8_1.table.isGameFinished, this.ta8_1.table));
|
|
3090
3140
|
} else {
|
|
3091
|
-
this.
|
|
3092
|
-
var tmp_3 = this.
|
|
3141
|
+
this.ta8_1.i4q().w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.ua8_1);
|
|
3142
|
+
var tmp_3 = this.wa8_1.dispatch;
|
|
3093
3143
|
var tmp2_safe_receiver = state.c6r_1;
|
|
3094
|
-
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3144
|
+
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t93_1));
|
|
3095
3145
|
}
|
|
3096
3146
|
return Unit_instance;
|
|
3097
3147
|
} else if (tmp === 1) {
|
|
@@ -3103,37 +3153,37 @@
|
|
|
3103
3153
|
}
|
|
3104
3154
|
while (true);
|
|
3105
3155
|
};
|
|
3106
|
-
protoOf(GameServer$shutdown$slambda).
|
|
3107
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
3108
|
-
i.
|
|
3109
|
-
i.
|
|
3156
|
+
protoOf(GameServer$shutdown$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
3157
|
+
var i = new GameServer$shutdown$slambda(this.sa8_1, this.ta8_1, this.ua8_1, completion);
|
|
3158
|
+
i.va8_1 = $this$dispatchAsync;
|
|
3159
|
+
i.wa8_1 = store;
|
|
3110
3160
|
return i;
|
|
3111
3161
|
};
|
|
3112
3162
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
3113
3163
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
3114
3164
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3115
|
-
return i.
|
|
3165
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
3116
3166
|
};
|
|
3117
3167
|
l.$arity = 2;
|
|
3118
3168
|
return l;
|
|
3119
3169
|
}
|
|
3120
3170
|
function GameServer$handlePlayerMessage$slambda($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation) {
|
|
3121
|
-
this.
|
|
3122
|
-
this.
|
|
3123
|
-
this.
|
|
3124
|
-
this.
|
|
3125
|
-
this.
|
|
3171
|
+
this.fa9_1 = $botChatInteractor;
|
|
3172
|
+
this.ga9_1 = $message;
|
|
3173
|
+
this.ha9_1 = $fromPlayerId;
|
|
3174
|
+
this.ia9_1 = $onMessageGenerated;
|
|
3175
|
+
this.ja9_1 = this$0;
|
|
3126
3176
|
CoroutineImpl.call(this, resultContinuation);
|
|
3127
3177
|
}
|
|
3128
|
-
protoOf(GameServer$handlePlayerMessage$slambda).
|
|
3129
|
-
var tmp = this.
|
|
3178
|
+
protoOf(GameServer$handlePlayerMessage$slambda).ca2 = function ($this$dispatchAsync, store, $completion) {
|
|
3179
|
+
var tmp = this.da2($this$dispatchAsync, store, $completion);
|
|
3130
3180
|
tmp.u8_1 = Unit_instance;
|
|
3131
3181
|
tmp.v8_1 = null;
|
|
3132
3182
|
return tmp.a9();
|
|
3133
3183
|
};
|
|
3134
3184
|
protoOf(GameServer$handlePlayerMessage$slambda).j9 = function (p1, p2, $completion) {
|
|
3135
3185
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3136
|
-
return this.
|
|
3186
|
+
return this.ca2(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3137
3187
|
};
|
|
3138
3188
|
protoOf(GameServer$handlePlayerMessage$slambda).a9 = function () {
|
|
3139
3189
|
var suspendResult = this.u8_1;
|
|
@@ -3143,20 +3193,20 @@
|
|
|
3143
3193
|
switch (tmp) {
|
|
3144
3194
|
case 0:
|
|
3145
3195
|
this.t8_1 = 3;
|
|
3146
|
-
var state = this.
|
|
3196
|
+
var state = this.la9_1.store.state;
|
|
3147
3197
|
if (state.e6s()) {
|
|
3148
3198
|
var tmp0_table = state.c6s();
|
|
3149
3199
|
this.s8_1 = 1;
|
|
3150
|
-
suspendResult = this.
|
|
3200
|
+
suspendResult = this.fa9_1.n8s(tmp0_table, this.ga9_1, this.ha9_1, VOID, this);
|
|
3151
3201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3152
3202
|
return suspendResult;
|
|
3153
3203
|
}
|
|
3154
3204
|
continue $sm;
|
|
3155
3205
|
} else {
|
|
3156
|
-
this.
|
|
3157
|
-
var tmp_0 = this.
|
|
3206
|
+
this.ja9_1.i4q().w('GameEngine_API', "GameServer: can't generate message without table, " + this.ha9_1);
|
|
3207
|
+
var tmp_0 = this.la9_1.dispatch;
|
|
3158
3208
|
var tmp1_safe_receiver = state.c6r_1;
|
|
3159
|
-
tmp_0(new ClearAction(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3209
|
+
tmp_0(new ClearAction(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t93_1));
|
|
3160
3210
|
this.s8_1 = 2;
|
|
3161
3211
|
continue $sm;
|
|
3162
3212
|
}
|
|
@@ -3164,7 +3214,7 @@
|
|
|
3164
3214
|
case 1:
|
|
3165
3215
|
var message = suspendResult;
|
|
3166
3216
|
if (!(message == null)) {
|
|
3167
|
-
this.
|
|
3217
|
+
this.ia9_1(message);
|
|
3168
3218
|
}
|
|
3169
3219
|
|
|
3170
3220
|
this.s8_1 = 2;
|
|
@@ -3185,16 +3235,16 @@
|
|
|
3185
3235
|
}
|
|
3186
3236
|
while (true);
|
|
3187
3237
|
};
|
|
3188
|
-
protoOf(GameServer$handlePlayerMessage$slambda).
|
|
3189
|
-
var i = new GameServer$handlePlayerMessage$slambda(this.
|
|
3190
|
-
i.
|
|
3191
|
-
i.
|
|
3238
|
+
protoOf(GameServer$handlePlayerMessage$slambda).da2 = function ($this$dispatchAsync, store, completion) {
|
|
3239
|
+
var i = new GameServer$handlePlayerMessage$slambda(this.fa9_1, this.ga9_1, this.ha9_1, this.ia9_1, this.ja9_1, completion);
|
|
3240
|
+
i.ka9_1 = $this$dispatchAsync;
|
|
3241
|
+
i.la9_1 = store;
|
|
3192
3242
|
return i;
|
|
3193
3243
|
};
|
|
3194
3244
|
function GameServer$handlePlayerMessage$slambda_0($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation) {
|
|
3195
3245
|
var i = new GameServer$handlePlayerMessage$slambda($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation);
|
|
3196
3246
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3197
|
-
return i.
|
|
3247
|
+
return i.ca2($this$dispatchAsync, store, $completion);
|
|
3198
3248
|
};
|
|
3199
3249
|
l.$arity = 2;
|
|
3200
3250
|
return l;
|
|
@@ -3225,7 +3275,7 @@
|
|
|
3225
3275
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3226
3276
|
var tmp_3 = Instance(di, tmp$ret$2, null);
|
|
3227
3277
|
var tmp_4 = KProperty1;
|
|
3228
|
-
tmp_1.
|
|
3278
|
+
tmp_1.h9y_1 = tmp_3.a65(this, getPropertyCallableRef('toClientEventsObserver', 1, tmp_4, GameServer$_get_toClientEventsObserver_$ref_utir8s(), null));
|
|
3229
3279
|
var tmp_5 = this;
|
|
3230
3280
|
// Inline function 'org.kodein.di.instance' call
|
|
3231
3281
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3233,7 +3283,7 @@
|
|
|
3233
3283
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3234
3284
|
var tmp_7 = Instance(di, tmp$ret$4, null);
|
|
3235
3285
|
var tmp_8 = KProperty1;
|
|
3236
|
-
tmp_5.
|
|
3286
|
+
tmp_5.i9y_1 = tmp_7.a65(this, getPropertyCallableRef('fromClientEventsObserver', 1, tmp_8, GameServer$_get_fromClientEventsObserver_$ref_nf1g79(), null));
|
|
3237
3287
|
var tmp_9 = this;
|
|
3238
3288
|
// Inline function 'org.kodein.di.instance' call
|
|
3239
3289
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3241,7 +3291,7 @@
|
|
|
3241
3291
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3242
3292
|
var tmp_11 = Instance(di, tmp$ret$6, null);
|
|
3243
3293
|
var tmp_12 = KProperty1;
|
|
3244
|
-
tmp_9.
|
|
3294
|
+
tmp_9.j9y_1 = tmp_11.a65(this, getPropertyCallableRef('playerConnectionInteractor', 1, tmp_12, GameServer$_get_playerConnectionInteractor_$ref_of8tan(), null));
|
|
3245
3295
|
var tmp_13 = this;
|
|
3246
3296
|
// Inline function 'org.kodein.di.instance' call
|
|
3247
3297
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3249,7 +3299,7 @@
|
|
|
3249
3299
|
var tmp$ret$8 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3250
3300
|
var tmp_15 = Instance(di, tmp$ret$8, null);
|
|
3251
3301
|
var tmp_16 = KProperty1;
|
|
3252
|
-
tmp_13.
|
|
3302
|
+
tmp_13.k9y_1 = tmp_15.a65(this, getPropertyCallableRef('teamsLogicProvider', 1, tmp_16, GameServer$_get_teamsLogicProvider_$ref_b7y54g(), null));
|
|
3253
3303
|
var tmp_17 = this;
|
|
3254
3304
|
// Inline function 'org.kodein.di.instance' call
|
|
3255
3305
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3257,9 +3307,9 @@
|
|
|
3257
3307
|
var tmp$ret$10 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3258
3308
|
var tmp_19 = Instance(di, tmp$ret$10, null);
|
|
3259
3309
|
var tmp_20 = KProperty1;
|
|
3260
|
-
tmp_17.
|
|
3310
|
+
tmp_17.l9y_1 = tmp_19.a65(this, getPropertyCallableRef('userRatingInteractor', 1, tmp_20, GameServer$_get_userRatingInteractor_$ref_8uo6aw(), null));
|
|
3261
3311
|
var tmp_21 = this;
|
|
3262
|
-
tmp_21.
|
|
3312
|
+
tmp_21.m9y_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
3263
3313
|
var tmp_22 = this;
|
|
3264
3314
|
// Inline function 'org.kodein.di.instance' call
|
|
3265
3315
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3267,7 +3317,7 @@
|
|
|
3267
3317
|
var tmp$ret$12 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE();
|
|
3268
3318
|
var tmp_24 = Instance(di, tmp$ret$12, null);
|
|
3269
3319
|
var tmp_25 = KProperty1;
|
|
3270
|
-
tmp_22.
|
|
3320
|
+
tmp_22.n9y_1 = tmp_24.a65(this, getPropertyCallableRef('idsProvider', 1, tmp_25, GameServer$_get_idsProvider_$ref_89s908(), null));
|
|
3271
3321
|
var tmp_26 = this;
|
|
3272
3322
|
// Inline function 'org.kodein.di.instance' call
|
|
3273
3323
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3275,7 +3325,7 @@
|
|
|
3275
3325
|
var tmp$ret$14 = isInterface(tmp_27, TypeToken) ? tmp_27 : THROW_CCE();
|
|
3276
3326
|
var tmp_28 = Instance(di, tmp$ret$14, null);
|
|
3277
3327
|
var tmp_29 = KProperty1;
|
|
3278
|
-
tmp_26.
|
|
3328
|
+
tmp_26.o9y_1 = tmp_28.a65(this, getPropertyCallableRef('serverReduxConfig', 1, tmp_29, GameServer$_get_serverReduxConfig_$ref_7h6jq6(), null));
|
|
3279
3329
|
var tmp_30 = this;
|
|
3280
3330
|
// Inline function 'org.kodein.di.instance' call
|
|
3281
3331
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3283,7 +3333,7 @@
|
|
|
3283
3333
|
var tmp$ret$16 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE();
|
|
3284
3334
|
var tmp_32 = Instance(di, tmp$ret$16, null);
|
|
3285
3335
|
var tmp_33 = KProperty1;
|
|
3286
|
-
tmp_30.
|
|
3336
|
+
tmp_30.p9y_1 = tmp_32.a65(this, getPropertyCallableRef('encoderDecoderProvider', 1, tmp_33, GameServer$_get_encoderDecoderProvider_$ref_6vxmq8(), null));
|
|
3287
3337
|
var tmp_34 = this;
|
|
3288
3338
|
// Inline function 'org.kodein.di.instance' call
|
|
3289
3339
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3291,7 +3341,7 @@
|
|
|
3291
3341
|
var tmp$ret$18 = isInterface(tmp_35, TypeToken) ? tmp_35 : THROW_CCE();
|
|
3292
3342
|
var tmp_36 = Instance(di, tmp$ret$18, null);
|
|
3293
3343
|
var tmp_37 = KProperty1;
|
|
3294
|
-
tmp_34.
|
|
3344
|
+
tmp_34.q9y_1 = tmp_36.a65(this, getPropertyCallableRef('engineLogicConfig', 1, tmp_37, GameServer$_get_engineLogicConfig_$ref_nlkv2l(), null));
|
|
3295
3345
|
var tmp_38 = this;
|
|
3296
3346
|
// Inline function 'org.kodein.di.instanceOrNull' call
|
|
3297
3347
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3299,16 +3349,16 @@
|
|
|
3299
3349
|
var tmp$ret$20 = isInterface(tmp_39, TypeToken) ? tmp_39 : THROW_CCE();
|
|
3300
3350
|
var tmp_40 = InstanceOrNull(di, tmp$ret$20, null);
|
|
3301
3351
|
var tmp_41 = KProperty1;
|
|
3302
|
-
tmp_38.
|
|
3352
|
+
tmp_38.r9y_1 = tmp_40.a65(this, getPropertyCallableRef('botChatInteractor', 1, tmp_41, GameServer$_get_botChatInteractor_$ref_zf10ih(), null));
|
|
3303
3353
|
var tmp_42 = this;
|
|
3304
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
3305
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
3306
|
-
tmp_42.
|
|
3354
|
+
var tmp0_externalMiddlewares = plus(storeContract.l98(), externalMiddlewares);
|
|
3355
|
+
var tmp1_externalReducers = plus(storeContract.k98(), externalReducers);
|
|
3356
|
+
tmp_42.s9y_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
3307
3357
|
}
|
|
3308
3358
|
protoOf(GameServer).s6q = function () {
|
|
3309
|
-
return this.
|
|
3359
|
+
return this.s9y_1;
|
|
3310
3360
|
};
|
|
3311
|
-
protoOf(GameServer).
|
|
3361
|
+
protoOf(GameServer).x8m = function () {
|
|
3312
3362
|
return get_serverStatePayload_0(this.x66()).metadata;
|
|
3313
3363
|
};
|
|
3314
3364
|
protoOf(GameServer).canReconnectPlayer = function (playerId) {
|
|
@@ -3319,7 +3369,7 @@
|
|
|
3319
3369
|
if (player == null) {
|
|
3320
3370
|
return false;
|
|
3321
3371
|
}
|
|
3322
|
-
return player.
|
|
3372
|
+
return player.q6v_1.d69().n67_1.canReconnect;
|
|
3323
3373
|
};
|
|
3324
3374
|
protoOf(GameServer).z53 = function () {
|
|
3325
3375
|
return this.x66().c6s().id;
|
|
@@ -3348,23 +3398,27 @@
|
|
|
3348
3398
|
var tmp = this.p6q();
|
|
3349
3399
|
tmp.m6c(VOID, GameServer$subscribeServerStateUpdateJson$slambda_0(this, subscriber, null));
|
|
3350
3400
|
};
|
|
3401
|
+
protoOf(GameServer).getServerTableState = function (callback) {
|
|
3402
|
+
var tmp = this.p6q();
|
|
3403
|
+
tmp.m6c(VOID, GameServer$getServerTableState$slambda_0(this, callback, null));
|
|
3404
|
+
};
|
|
3351
3405
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
3352
3406
|
var tmp = this.p6q();
|
|
3353
3407
|
tmp.m6c(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
3354
3408
|
};
|
|
3355
3409
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
3356
3410
|
this.i4q().d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
3357
|
-
this.
|
|
3411
|
+
this.s9y_1.a6s(GameServer$fromClientEvent$slambda_0(action, null));
|
|
3358
3412
|
};
|
|
3359
3413
|
protoOf(GameServer).playerLostConnection = function (playerId, roomId) {
|
|
3360
3414
|
this.i4q().d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
3361
|
-
this.
|
|
3415
|
+
this.s9y_1.a6s(GameServer$playerLostConnection$slambda_0(playerId, roomId, null));
|
|
3362
3416
|
};
|
|
3363
3417
|
protoOf(GameServer).playerLive = function (playerId, roomId) {
|
|
3364
3418
|
this.i4q().d('GameEngine_API', 'playerLive: ' + playerId);
|
|
3365
|
-
this.
|
|
3419
|
+
this.s9y_1.a6s(GameServer$playerLive$slambda_0(this, playerId, roomId, null));
|
|
3366
3420
|
};
|
|
3367
|
-
protoOf(GameServer).
|
|
3421
|
+
protoOf(GameServer).ma9 = function (playerId, roomId, permanently) {
|
|
3368
3422
|
this.i4q().d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
3369
3423
|
var tmp;
|
|
3370
3424
|
if (this.x66().e6s()) {
|
|
@@ -3373,33 +3427,33 @@
|
|
|
3373
3427
|
tmp = null;
|
|
3374
3428
|
}
|
|
3375
3429
|
var result = tmp;
|
|
3376
|
-
this.
|
|
3430
|
+
this.s9y_1.a6s(GameServer$playerLeft$slambda_0(this, playerId, permanently, roomId, null));
|
|
3377
3431
|
this.i4q().d('GameEngine_API', 'playerLeft result: ' + toString_0(result));
|
|
3378
3432
|
return result;
|
|
3379
3433
|
};
|
|
3380
|
-
protoOf(GameServer).
|
|
3434
|
+
protoOf(GameServer).na9 = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
3381
3435
|
this.i4q().d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
3382
|
-
this.
|
|
3436
|
+
this.s9y_1.a6s(GameServer$roomOnCreate$slambda_0(usersArray, this, config, roomId, transition, gameCreatorId, spectators, null));
|
|
3383
3437
|
};
|
|
3384
3438
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
3385
3439
|
this.i4q().d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
3386
|
-
var isCreated = this.
|
|
3387
|
-
this.
|
|
3440
|
+
var isCreated = this.s9y_1.b6s(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
3441
|
+
this.s9y_1.a6s(GameServer$roomOnContinueFromState$slambda_2(isCreated, state, null));
|
|
3388
3442
|
};
|
|
3389
3443
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
3390
3444
|
this.i4q().d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
3391
|
-
this.
|
|
3392
|
-
this.
|
|
3445
|
+
this.s9y_1.a6s(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
3446
|
+
this.s9y_1.a6s(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
3393
3447
|
};
|
|
3394
3448
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
3395
|
-
this.
|
|
3449
|
+
this.s9y_1.a6s(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
3396
3450
|
};
|
|
3397
3451
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
3398
|
-
this.
|
|
3452
|
+
this.s9y_1.a6s(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
3399
3453
|
};
|
|
3400
3454
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
3401
3455
|
this.i4q().d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
3402
|
-
this.
|
|
3456
|
+
this.s9y_1.a6s(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
3403
3457
|
};
|
|
3404
3458
|
protoOf(GameServer).getToClientFinishActionBeforeDisconnect = function (playerId, previousState, originState) {
|
|
3405
3459
|
if (!this.isTableExists) {
|
|
@@ -3408,25 +3462,25 @@
|
|
|
3408
3462
|
}
|
|
3409
3463
|
var table = this.table;
|
|
3410
3464
|
var player = getPlayer(table.players, playerId);
|
|
3411
|
-
this.i4q().d('GameEngine_API', 'getToClientFinishActionBeforeDisconnect: ' + playerId + ', ' + ('state = ' + player.
|
|
3412
|
-
var actions = _get_playerConnectionInteractor__si6cxf(this).
|
|
3465
|
+
this.i4q().d('GameEngine_API', 'getToClientFinishActionBeforeDisconnect: ' + playerId + ', ' + ('state = ' + player.q6v_1.d69().n67_1.toString() + ', ') + ('isBot = ' + player.p6v_1.isBot));
|
|
3466
|
+
var actions = _get_playerConnectionInteractor__si6cxf(this).oa9(playerId, previousState.isLive, table.id, mapToFinishReason(originState, player, table.playersConnections), table.isGameFinished);
|
|
3413
3467
|
this.i4q().d('GameEngine_API', 'getToClientFinishActionBeforeDisconnect: ' + toString(actions));
|
|
3414
3468
|
if (actions.r()) {
|
|
3415
3469
|
return null;
|
|
3416
3470
|
}
|
|
3417
3471
|
return new CombinedToClientAction(actions, Companion_instance_1.user(_get_idsProvider__fnfajc(this).h6e(), table.id, playerId));
|
|
3418
3472
|
};
|
|
3419
|
-
protoOf(GameServer).
|
|
3473
|
+
protoOf(GameServer).pa9 = function (newRid) {
|
|
3420
3474
|
this.i4q().d('GameEngine_API', 'roomOnDelete: newRid = ' + newRid);
|
|
3421
|
-
this.
|
|
3475
|
+
this.s9y_1.a6s(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
3422
3476
|
};
|
|
3423
3477
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
3424
3478
|
this.i4q().d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
3425
|
-
this.
|
|
3479
|
+
this.s9y_1.a6s(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
3426
3480
|
};
|
|
3427
|
-
protoOf(GameServer).
|
|
3481
|
+
protoOf(GameServer).qa9 = function (reason, roomId) {
|
|
3428
3482
|
this.i4q().d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
3429
|
-
this.
|
|
3483
|
+
this.s9y_1.a6s(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
3430
3484
|
};
|
|
3431
3485
|
protoOf(GameServer).handlePlayerMessage = function (message, fromPlayerId, onMessageGenerated) {
|
|
3432
3486
|
var tmp0_elvis_lhs = _get_botChatInteractor__17f3on(this);
|
|
@@ -3438,7 +3492,7 @@
|
|
|
3438
3492
|
}
|
|
3439
3493
|
var botChatInteractor = tmp;
|
|
3440
3494
|
this.i4q().d('GameEngine_API', 'handlePlayerMessage: ' + fromPlayerId);
|
|
3441
|
-
this.
|
|
3495
|
+
this.s9y_1.a6s(GameServer$handlePlayerMessage$slambda_0(botChatInteractor, message, fromPlayerId, onMessageGenerated, this, null));
|
|
3442
3496
|
};
|
|
3443
3497
|
protoOf(GameServer).clear = function () {
|
|
3444
3498
|
return this.i2();
|
|
@@ -3492,13 +3546,13 @@
|
|
|
3492
3546
|
this.shouldFinishGameWhenDeploy = shouldFinishGameWhenDeploy;
|
|
3493
3547
|
this.shouldFinishGameWithBots = shouldFinishGameWithBots;
|
|
3494
3548
|
}
|
|
3495
|
-
protoOf(ServerConfig).
|
|
3549
|
+
protoOf(ServerConfig).ra9 = function () {
|
|
3496
3550
|
return this.fromRound;
|
|
3497
3551
|
};
|
|
3498
|
-
protoOf(ServerConfig).
|
|
3552
|
+
protoOf(ServerConfig).sa9 = function () {
|
|
3499
3553
|
return this.shouldFinishGameWhenDeploy;
|
|
3500
3554
|
};
|
|
3501
|
-
protoOf(ServerConfig).
|
|
3555
|
+
protoOf(ServerConfig).ta9 = function () {
|
|
3502
3556
|
return this.shouldFinishGameWithBots;
|
|
3503
3557
|
};
|
|
3504
3558
|
protoOf(ServerConfig).oe = function () {
|
|
@@ -3510,14 +3564,14 @@
|
|
|
3510
3564
|
protoOf(ServerConfig).yl = function () {
|
|
3511
3565
|
return this.shouldFinishGameWithBots;
|
|
3512
3566
|
};
|
|
3513
|
-
protoOf(ServerConfig).
|
|
3567
|
+
protoOf(ServerConfig).ua9 = function (fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots) {
|
|
3514
3568
|
return new ServerConfig(fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots);
|
|
3515
3569
|
};
|
|
3516
3570
|
protoOf(ServerConfig).copy = function (fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots, $super) {
|
|
3517
3571
|
fromRound = fromRound === VOID ? this.fromRound : fromRound;
|
|
3518
3572
|
shouldFinishGameWhenDeploy = shouldFinishGameWhenDeploy === VOID ? this.shouldFinishGameWhenDeploy : shouldFinishGameWhenDeploy;
|
|
3519
3573
|
shouldFinishGameWithBots = shouldFinishGameWithBots === VOID ? this.shouldFinishGameWithBots : shouldFinishGameWithBots;
|
|
3520
|
-
return $super === VOID ? this.
|
|
3574
|
+
return $super === VOID ? this.ua9(fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots) : $super.ua9.call(this, fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots);
|
|
3521
3575
|
};
|
|
3522
3576
|
protoOf(ServerConfig).toString = function () {
|
|
3523
3577
|
return 'ServerConfig(fromRound=' + this.fromRound + ', shouldFinishGameWhenDeploy=' + this.shouldFinishGameWhenDeploy + ', shouldFinishGameWithBots=' + this.shouldFinishGameWithBots + ')';
|
|
@@ -3582,20 +3636,20 @@
|
|
|
3582
3636
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.jass.logic.server.data.models.serializable.TableStateUpdateDto', this, 2);
|
|
3583
3637
|
tmp0_serialDesc.hz('roomId', false);
|
|
3584
3638
|
tmp0_serialDesc.hz('table', false);
|
|
3585
|
-
this.
|
|
3639
|
+
this.va9_1 = tmp0_serialDesc;
|
|
3586
3640
|
}
|
|
3587
|
-
protoOf($serializer).
|
|
3588
|
-
var tmp0_desc = this.
|
|
3641
|
+
protoOf($serializer).wa9 = function (encoder, value) {
|
|
3642
|
+
var tmp0_desc = this.va9_1;
|
|
3589
3643
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
3590
|
-
tmp1_output.et(tmp0_desc, 0, value.
|
|
3644
|
+
tmp1_output.et(tmp0_desc, 0, value.xa9_1);
|
|
3591
3645
|
tmp1_output.et(tmp0_desc, 1, value.table);
|
|
3592
3646
|
tmp1_output.qr(tmp0_desc);
|
|
3593
3647
|
};
|
|
3594
3648
|
protoOf($serializer).do = function (encoder, value) {
|
|
3595
|
-
return this.
|
|
3649
|
+
return this.wa9(encoder, value instanceof TableStateUpdateDto ? value : THROW_CCE());
|
|
3596
3650
|
};
|
|
3597
3651
|
protoOf($serializer).eo = function (decoder) {
|
|
3598
|
-
var tmp0_desc = this.
|
|
3652
|
+
var tmp0_desc = this.va9_1;
|
|
3599
3653
|
var tmp1_flag = true;
|
|
3600
3654
|
var tmp2_index = 0;
|
|
3601
3655
|
var tmp3_bitMask0 = 0;
|
|
@@ -3630,7 +3684,7 @@
|
|
|
3630
3684
|
return TableStateUpdateDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3631
3685
|
};
|
|
3632
3686
|
protoOf($serializer).co = function () {
|
|
3633
|
-
return this.
|
|
3687
|
+
return this.va9_1;
|
|
3634
3688
|
};
|
|
3635
3689
|
protoOf($serializer).wz = function () {
|
|
3636
3690
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3646,9 +3700,9 @@
|
|
|
3646
3700
|
}
|
|
3647
3701
|
function TableStateUpdateDto_init_$Init$(seen0, roomId, table, serializationConstructorMarker, $this) {
|
|
3648
3702
|
if (!(3 === (3 & seen0))) {
|
|
3649
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
3703
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().va9_1);
|
|
3650
3704
|
}
|
|
3651
|
-
$this.
|
|
3705
|
+
$this.xa9_1 = roomId;
|
|
3652
3706
|
$this.table = table;
|
|
3653
3707
|
return $this;
|
|
3654
3708
|
}
|
|
@@ -3656,17 +3710,17 @@
|
|
|
3656
3710
|
return TableStateUpdateDto_init_$Init$(seen0, roomId, table, serializationConstructorMarker, objectCreate(protoOf(TableStateUpdateDto)));
|
|
3657
3711
|
}
|
|
3658
3712
|
function TableStateUpdateDto(roomId, table) {
|
|
3659
|
-
this.
|
|
3713
|
+
this.xa9_1 = roomId;
|
|
3660
3714
|
this.table = table;
|
|
3661
3715
|
}
|
|
3662
|
-
protoOf(TableStateUpdateDto).
|
|
3663
|
-
return this.
|
|
3716
|
+
protoOf(TableStateUpdateDto).r8j = function () {
|
|
3717
|
+
return this.xa9_1;
|
|
3664
3718
|
};
|
|
3665
3719
|
protoOf(TableStateUpdateDto).c6s = function () {
|
|
3666
3720
|
return this.table;
|
|
3667
3721
|
};
|
|
3668
3722
|
protoOf(TableStateUpdateDto).oe = function () {
|
|
3669
|
-
return this.
|
|
3723
|
+
return this.xa9_1;
|
|
3670
3724
|
};
|
|
3671
3725
|
protoOf(TableStateUpdateDto).pe = function () {
|
|
3672
3726
|
return this.table;
|
|
@@ -3675,15 +3729,15 @@
|
|
|
3675
3729
|
return new TableStateUpdateDto(roomId, table);
|
|
3676
3730
|
};
|
|
3677
3731
|
protoOf(TableStateUpdateDto).copy = function (roomId, table, $super) {
|
|
3678
|
-
roomId = roomId === VOID ? this.
|
|
3732
|
+
roomId = roomId === VOID ? this.xa9_1 : roomId;
|
|
3679
3733
|
table = table === VOID ? this.table : table;
|
|
3680
3734
|
return $super === VOID ? this.f54(roomId, table) : $super.f54.call(this, roomId, table);
|
|
3681
3735
|
};
|
|
3682
3736
|
protoOf(TableStateUpdateDto).toString = function () {
|
|
3683
|
-
return 'TableStateUpdateDto(roomId=' + this.
|
|
3737
|
+
return 'TableStateUpdateDto(roomId=' + this.xa9_1 + ', table=' + this.table + ')';
|
|
3684
3738
|
};
|
|
3685
3739
|
protoOf(TableStateUpdateDto).hashCode = function () {
|
|
3686
|
-
var result = getStringHashCode(this.
|
|
3740
|
+
var result = getStringHashCode(this.xa9_1);
|
|
3687
3741
|
result = imul(result, 31) + getStringHashCode(this.table) | 0;
|
|
3688
3742
|
return result;
|
|
3689
3743
|
};
|
|
@@ -3692,7 +3746,7 @@
|
|
|
3692
3746
|
return true;
|
|
3693
3747
|
if (!(other instanceof TableStateUpdateDto))
|
|
3694
3748
|
return false;
|
|
3695
|
-
if (!(this.
|
|
3749
|
+
if (!(this.xa9_1 === other.xa9_1))
|
|
3696
3750
|
return false;
|
|
3697
3751
|
if (!(this.table === other.table))
|
|
3698
3752
|
return false;
|
|
@@ -3712,20 +3766,20 @@
|
|
|
3712
3766
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.jass.logic.server.data.models.serializable.ActionsStateUpdateDto', this, 2);
|
|
3713
3767
|
tmp0_serialDesc.hz('roomId', false);
|
|
3714
3768
|
tmp0_serialDesc.hz('actions', false);
|
|
3715
|
-
this.
|
|
3769
|
+
this.ya9_1 = tmp0_serialDesc;
|
|
3716
3770
|
}
|
|
3717
|
-
protoOf($serializer_0).
|
|
3718
|
-
var tmp0_desc = this.
|
|
3771
|
+
protoOf($serializer_0).za9 = function (encoder, value) {
|
|
3772
|
+
var tmp0_desc = this.ya9_1;
|
|
3719
3773
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
3720
|
-
tmp1_output.et(tmp0_desc, 0, value.
|
|
3774
|
+
tmp1_output.et(tmp0_desc, 0, value.aaa_1);
|
|
3721
3775
|
tmp1_output.et(tmp0_desc, 1, value.actions);
|
|
3722
3776
|
tmp1_output.qr(tmp0_desc);
|
|
3723
3777
|
};
|
|
3724
3778
|
protoOf($serializer_0).do = function (encoder, value) {
|
|
3725
|
-
return this.
|
|
3779
|
+
return this.za9(encoder, value instanceof ActionsStateUpdateDto ? value : THROW_CCE());
|
|
3726
3780
|
};
|
|
3727
3781
|
protoOf($serializer_0).eo = function (decoder) {
|
|
3728
|
-
var tmp0_desc = this.
|
|
3782
|
+
var tmp0_desc = this.ya9_1;
|
|
3729
3783
|
var tmp1_flag = true;
|
|
3730
3784
|
var tmp2_index = 0;
|
|
3731
3785
|
var tmp3_bitMask0 = 0;
|
|
@@ -3760,7 +3814,7 @@
|
|
|
3760
3814
|
return ActionsStateUpdateDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3761
3815
|
};
|
|
3762
3816
|
protoOf($serializer_0).co = function () {
|
|
3763
|
-
return this.
|
|
3817
|
+
return this.ya9_1;
|
|
3764
3818
|
};
|
|
3765
3819
|
protoOf($serializer_0).wz = function () {
|
|
3766
3820
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3776,9 +3830,9 @@
|
|
|
3776
3830
|
}
|
|
3777
3831
|
function ActionsStateUpdateDto_init_$Init$(seen0, roomId, actions, serializationConstructorMarker, $this) {
|
|
3778
3832
|
if (!(3 === (3 & seen0))) {
|
|
3779
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
3833
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().ya9_1);
|
|
3780
3834
|
}
|
|
3781
|
-
$this.
|
|
3835
|
+
$this.aaa_1 = roomId;
|
|
3782
3836
|
$this.actions = actions;
|
|
3783
3837
|
return $this;
|
|
3784
3838
|
}
|
|
@@ -3786,17 +3840,17 @@
|
|
|
3786
3840
|
return ActionsStateUpdateDto_init_$Init$(seen0, roomId, actions, serializationConstructorMarker, objectCreate(protoOf(ActionsStateUpdateDto)));
|
|
3787
3841
|
}
|
|
3788
3842
|
function ActionsStateUpdateDto(roomId, actions) {
|
|
3789
|
-
this.
|
|
3843
|
+
this.aaa_1 = roomId;
|
|
3790
3844
|
this.actions = actions;
|
|
3791
3845
|
}
|
|
3792
|
-
protoOf(ActionsStateUpdateDto).
|
|
3793
|
-
return this.
|
|
3846
|
+
protoOf(ActionsStateUpdateDto).r8j = function () {
|
|
3847
|
+
return this.aaa_1;
|
|
3794
3848
|
};
|
|
3795
|
-
protoOf(ActionsStateUpdateDto).
|
|
3849
|
+
protoOf(ActionsStateUpdateDto).e8k = function () {
|
|
3796
3850
|
return this.actions;
|
|
3797
3851
|
};
|
|
3798
3852
|
protoOf(ActionsStateUpdateDto).oe = function () {
|
|
3799
|
-
return this.
|
|
3853
|
+
return this.aaa_1;
|
|
3800
3854
|
};
|
|
3801
3855
|
protoOf(ActionsStateUpdateDto).pe = function () {
|
|
3802
3856
|
return this.actions;
|
|
@@ -3805,15 +3859,15 @@
|
|
|
3805
3859
|
return new ActionsStateUpdateDto(roomId, actions);
|
|
3806
3860
|
};
|
|
3807
3861
|
protoOf(ActionsStateUpdateDto).copy = function (roomId, actions, $super) {
|
|
3808
|
-
roomId = roomId === VOID ? this.
|
|
3862
|
+
roomId = roomId === VOID ? this.aaa_1 : roomId;
|
|
3809
3863
|
actions = actions === VOID ? this.actions : actions;
|
|
3810
3864
|
return $super === VOID ? this.f54(roomId, actions) : $super.f54.call(this, roomId, actions);
|
|
3811
3865
|
};
|
|
3812
3866
|
protoOf(ActionsStateUpdateDto).toString = function () {
|
|
3813
|
-
return 'ActionsStateUpdateDto(roomId=' + this.
|
|
3867
|
+
return 'ActionsStateUpdateDto(roomId=' + this.aaa_1 + ', actions=' + this.actions + ')';
|
|
3814
3868
|
};
|
|
3815
3869
|
protoOf(ActionsStateUpdateDto).hashCode = function () {
|
|
3816
|
-
var result = getStringHashCode(this.
|
|
3870
|
+
var result = getStringHashCode(this.aaa_1);
|
|
3817
3871
|
result = imul(result, 31) + getStringHashCode(this.actions) | 0;
|
|
3818
3872
|
return result;
|
|
3819
3873
|
};
|
|
@@ -3822,7 +3876,7 @@
|
|
|
3822
3876
|
return true;
|
|
3823
3877
|
if (!(other instanceof ActionsStateUpdateDto))
|
|
3824
3878
|
return false;
|
|
3825
|
-
if (!(this.
|
|
3879
|
+
if (!(this.aaa_1 === other.aaa_1))
|
|
3826
3880
|
return false;
|
|
3827
3881
|
if (!(this.actions === other.actions))
|
|
3828
3882
|
return false;
|
|
@@ -3852,42 +3906,42 @@
|
|
|
3852
3906
|
var tmp$ret$0 = mapToDto(item);
|
|
3853
3907
|
destination.j(tmp$ret$0);
|
|
3854
3908
|
}
|
|
3855
|
-
return new ActionsStateUpdateDto(_this__u8e3s4.
|
|
3909
|
+
return new ActionsStateUpdateDto(_this__u8e3s4.baa_1, encoderDecoderProvider.h8r(destination));
|
|
3856
3910
|
}
|
|
3857
3911
|
function mapToDto_3(_this__u8e3s4, encoderDecoderProvider) {
|
|
3858
|
-
return new TableStateUpdateDto(_this__u8e3s4.
|
|
3912
|
+
return new TableStateUpdateDto(_this__u8e3s4.caa_1, encoderDecoderProvider.f8r(mapToDto_0(_this__u8e3s4.table)));
|
|
3859
3913
|
}
|
|
3860
3914
|
function ServerStateUpdate() {
|
|
3861
3915
|
}
|
|
3862
3916
|
function TableStateUpdate(roomId, table) {
|
|
3863
|
-
this.
|
|
3917
|
+
this.caa_1 = roomId;
|
|
3864
3918
|
this.table = table;
|
|
3865
3919
|
}
|
|
3866
|
-
protoOf(TableStateUpdate).
|
|
3867
|
-
return this.
|
|
3920
|
+
protoOf(TableStateUpdate).r8j = function () {
|
|
3921
|
+
return this.caa_1;
|
|
3868
3922
|
};
|
|
3869
3923
|
protoOf(TableStateUpdate).c6s = function () {
|
|
3870
3924
|
return this.table;
|
|
3871
3925
|
};
|
|
3872
3926
|
protoOf(TableStateUpdate).oe = function () {
|
|
3873
|
-
return this.
|
|
3927
|
+
return this.caa_1;
|
|
3874
3928
|
};
|
|
3875
3929
|
protoOf(TableStateUpdate).pe = function () {
|
|
3876
3930
|
return this.table;
|
|
3877
3931
|
};
|
|
3878
|
-
protoOf(TableStateUpdate).
|
|
3932
|
+
protoOf(TableStateUpdate).daa = function (roomId, table) {
|
|
3879
3933
|
return new TableStateUpdate(roomId, table);
|
|
3880
3934
|
};
|
|
3881
3935
|
protoOf(TableStateUpdate).copy = function (roomId, table, $super) {
|
|
3882
|
-
roomId = roomId === VOID ? this.
|
|
3936
|
+
roomId = roomId === VOID ? this.caa_1 : roomId;
|
|
3883
3937
|
table = table === VOID ? this.table : table;
|
|
3884
|
-
return $super === VOID ? this.
|
|
3938
|
+
return $super === VOID ? this.daa(roomId, table) : $super.daa.call(this, roomId, table);
|
|
3885
3939
|
};
|
|
3886
3940
|
protoOf(TableStateUpdate).toString = function () {
|
|
3887
|
-
return 'TableStateUpdate(roomId=' + this.
|
|
3941
|
+
return 'TableStateUpdate(roomId=' + this.caa_1 + ', table=' + this.table.toString() + ')';
|
|
3888
3942
|
};
|
|
3889
3943
|
protoOf(TableStateUpdate).hashCode = function () {
|
|
3890
|
-
var result = getStringHashCode(this.
|
|
3944
|
+
var result = getStringHashCode(this.caa_1);
|
|
3891
3945
|
result = imul(result, 31) + this.table.hashCode() | 0;
|
|
3892
3946
|
return result;
|
|
3893
3947
|
};
|
|
@@ -3896,41 +3950,41 @@
|
|
|
3896
3950
|
return true;
|
|
3897
3951
|
if (!(other instanceof TableStateUpdate))
|
|
3898
3952
|
return false;
|
|
3899
|
-
if (!(this.
|
|
3953
|
+
if (!(this.caa_1 === other.caa_1))
|
|
3900
3954
|
return false;
|
|
3901
3955
|
if (!this.table.equals(other.table))
|
|
3902
3956
|
return false;
|
|
3903
3957
|
return true;
|
|
3904
3958
|
};
|
|
3905
3959
|
function ActionsStateUpdate(roomId, actions) {
|
|
3906
|
-
this.
|
|
3960
|
+
this.baa_1 = roomId;
|
|
3907
3961
|
this.actions = actions;
|
|
3908
3962
|
}
|
|
3909
|
-
protoOf(ActionsStateUpdate).
|
|
3910
|
-
return this.
|
|
3963
|
+
protoOf(ActionsStateUpdate).r8j = function () {
|
|
3964
|
+
return this.baa_1;
|
|
3911
3965
|
};
|
|
3912
|
-
protoOf(ActionsStateUpdate).
|
|
3966
|
+
protoOf(ActionsStateUpdate).e8k = function () {
|
|
3913
3967
|
return this.actions;
|
|
3914
3968
|
};
|
|
3915
3969
|
protoOf(ActionsStateUpdate).oe = function () {
|
|
3916
|
-
return this.
|
|
3970
|
+
return this.baa_1;
|
|
3917
3971
|
};
|
|
3918
3972
|
protoOf(ActionsStateUpdate).pe = function () {
|
|
3919
3973
|
return this.actions;
|
|
3920
3974
|
};
|
|
3921
|
-
protoOf(ActionsStateUpdate).
|
|
3975
|
+
protoOf(ActionsStateUpdate).eaa = function (roomId, actions) {
|
|
3922
3976
|
return new ActionsStateUpdate(roomId, actions);
|
|
3923
3977
|
};
|
|
3924
3978
|
protoOf(ActionsStateUpdate).copy = function (roomId, actions, $super) {
|
|
3925
|
-
roomId = roomId === VOID ? this.
|
|
3979
|
+
roomId = roomId === VOID ? this.baa_1 : roomId;
|
|
3926
3980
|
actions = actions === VOID ? this.actions : actions;
|
|
3927
|
-
return $super === VOID ? this.
|
|
3981
|
+
return $super === VOID ? this.eaa(roomId, actions) : $super.eaa.call(this, roomId, actions);
|
|
3928
3982
|
};
|
|
3929
3983
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
3930
|
-
return 'ActionsStateUpdate(roomId=' + this.
|
|
3984
|
+
return 'ActionsStateUpdate(roomId=' + this.baa_1 + ', actions=' + toString(this.actions) + ')';
|
|
3931
3985
|
};
|
|
3932
3986
|
protoOf(ActionsStateUpdate).hashCode = function () {
|
|
3933
|
-
var result = getStringHashCode(this.
|
|
3987
|
+
var result = getStringHashCode(this.baa_1);
|
|
3934
3988
|
result = imul(result, 31) + hashCode(this.actions) | 0;
|
|
3935
3989
|
return result;
|
|
3936
3990
|
};
|
|
@@ -3939,7 +3993,7 @@
|
|
|
3939
3993
|
return true;
|
|
3940
3994
|
if (!(other instanceof ActionsStateUpdate))
|
|
3941
3995
|
return false;
|
|
3942
|
-
if (!(this.
|
|
3996
|
+
if (!(this.baa_1 === other.baa_1))
|
|
3943
3997
|
return false;
|
|
3944
3998
|
if (!equals(this.actions, other.actions))
|
|
3945
3999
|
return false;
|
|
@@ -4179,18 +4233,18 @@
|
|
|
4179
4233
|
function ToClientEventsObserver() {
|
|
4180
4234
|
}
|
|
4181
4235
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
4182
|
-
this.
|
|
4183
|
-
this.
|
|
4236
|
+
this.oaa_1 = this$0;
|
|
4237
|
+
this.paa_1 = $actions;
|
|
4184
4238
|
CoroutineImpl.call(this, resultContinuation);
|
|
4185
4239
|
}
|
|
4186
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
4187
|
-
var tmp = this.
|
|
4240
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).saa = function ($this$flow, $completion) {
|
|
4241
|
+
var tmp = this.taa($this$flow, $completion);
|
|
4188
4242
|
tmp.u8_1 = Unit_instance;
|
|
4189
4243
|
tmp.v8_1 = null;
|
|
4190
4244
|
return tmp.a9();
|
|
4191
4245
|
};
|
|
4192
4246
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).i9 = function (p1, $completion) {
|
|
4193
|
-
return this.
|
|
4247
|
+
return this.saa((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
4194
4248
|
};
|
|
4195
4249
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).a9 = function () {
|
|
4196
4250
|
var suspendResult = this.u8_1;
|
|
@@ -4200,19 +4254,19 @@
|
|
|
4200
4254
|
switch (tmp) {
|
|
4201
4255
|
case 0:
|
|
4202
4256
|
this.t8_1 = 4;
|
|
4203
|
-
this.
|
|
4204
|
-
this.
|
|
4257
|
+
this.oaa_1.yaa_1;
|
|
4258
|
+
this.raa_1 = transformToEmits(this.oaa_1, this.paa_1).l();
|
|
4205
4259
|
this.s8_1 = 1;
|
|
4206
4260
|
continue $sm;
|
|
4207
4261
|
case 1:
|
|
4208
|
-
if (!this.
|
|
4262
|
+
if (!this.raa_1.m()) {
|
|
4209
4263
|
this.s8_1 = 3;
|
|
4210
4264
|
continue $sm;
|
|
4211
4265
|
}
|
|
4212
4266
|
|
|
4213
|
-
var element = this.
|
|
4267
|
+
var element = this.raa_1.n();
|
|
4214
4268
|
this.s8_1 = 2;
|
|
4215
|
-
suspendResult = this.
|
|
4269
|
+
suspendResult = this.qaa_1.o28(element, this);
|
|
4216
4270
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4217
4271
|
return suspendResult;
|
|
4218
4272
|
}
|
|
@@ -4222,11 +4276,11 @@
|
|
|
4222
4276
|
this.s8_1 = 1;
|
|
4223
4277
|
continue $sm;
|
|
4224
4278
|
case 3:
|
|
4225
|
-
var tmp0 = this.
|
|
4279
|
+
var tmp0 = this.oaa_1.xaa_1;
|
|
4226
4280
|
l$ret$1: do {
|
|
4227
4281
|
while (true) {
|
|
4228
4282
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
4229
|
-
var upd = cur - this.
|
|
4283
|
+
var upd = cur - this.paa_1.o() | 0;
|
|
4230
4284
|
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
4231
4285
|
break l$ret$1;
|
|
4232
4286
|
}
|
|
@@ -4248,15 +4302,15 @@
|
|
|
4248
4302
|
}
|
|
4249
4303
|
while (true);
|
|
4250
4304
|
};
|
|
4251
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
4252
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
4253
|
-
i.
|
|
4305
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).taa = function ($this$flow, completion) {
|
|
4306
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.oaa_1, this.paa_1, completion);
|
|
4307
|
+
i.qaa_1 = $this$flow;
|
|
4254
4308
|
return i;
|
|
4255
4309
|
};
|
|
4256
4310
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
4257
4311
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
4258
4312
|
var l = function ($this$flow, $completion) {
|
|
4259
|
-
return i.
|
|
4313
|
+
return i.saa($this$flow, $completion);
|
|
4260
4314
|
};
|
|
4261
4315
|
l.$arity = 1;
|
|
4262
4316
|
return l;
|
|
@@ -4326,29 +4380,29 @@
|
|
|
4326
4380
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
4327
4381
|
}
|
|
4328
4382
|
function mapFromGroupKey($this, _this__u8e3s4) {
|
|
4329
|
-
var tmp = $this.
|
|
4383
|
+
var tmp = $this.waa_1.h6e();
|
|
4330
4384
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4331
|
-
var this_0 = _this__u8e3s4.
|
|
4385
|
+
var this_0 = _this__u8e3s4.bab_1;
|
|
4332
4386
|
var tmp_0 = copyToArray(this_0);
|
|
4333
4387
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4334
|
-
var this_1 = _this__u8e3s4.
|
|
4388
|
+
var this_1 = _this__u8e3s4.cab_1;
|
|
4335
4389
|
var tmp$ret$1 = copyToArray(this_1);
|
|
4336
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
4390
|
+
return new ActionDeliveryPayload(_this__u8e3s4.aab_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.dab_1);
|
|
4337
4391
|
}
|
|
4338
4392
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
4339
|
-
this.
|
|
4340
|
-
this.
|
|
4341
|
-
this.
|
|
4342
|
-
this.
|
|
4393
|
+
this.aab_1 = tableId;
|
|
4394
|
+
this.bab_1 = includePlayers;
|
|
4395
|
+
this.cab_1 = excludePlayers;
|
|
4396
|
+
this.dab_1 = deliveryType;
|
|
4343
4397
|
}
|
|
4344
4398
|
protoOf(GroupKey).toString = function () {
|
|
4345
|
-
return 'GroupKey(tableId=' + this.
|
|
4399
|
+
return 'GroupKey(tableId=' + this.aab_1 + ', includePlayers=' + toString(this.bab_1) + ', excludePlayers=' + toString(this.cab_1) + ', deliveryType=' + this.dab_1.toString() + ')';
|
|
4346
4400
|
};
|
|
4347
4401
|
protoOf(GroupKey).hashCode = function () {
|
|
4348
|
-
var result = getStringHashCode(this.
|
|
4349
|
-
result = imul(result, 31) + hashCode(this.
|
|
4350
|
-
result = imul(result, 31) + hashCode(this.
|
|
4351
|
-
result = imul(result, 31) + this.
|
|
4402
|
+
var result = getStringHashCode(this.aab_1);
|
|
4403
|
+
result = imul(result, 31) + hashCode(this.bab_1) | 0;
|
|
4404
|
+
result = imul(result, 31) + hashCode(this.cab_1) | 0;
|
|
4405
|
+
result = imul(result, 31) + this.dab_1.hashCode() | 0;
|
|
4352
4406
|
return result;
|
|
4353
4407
|
};
|
|
4354
4408
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -4356,35 +4410,35 @@
|
|
|
4356
4410
|
return true;
|
|
4357
4411
|
if (!(other instanceof GroupKey))
|
|
4358
4412
|
return false;
|
|
4359
|
-
if (!(this.
|
|
4413
|
+
if (!(this.aab_1 === other.aab_1))
|
|
4360
4414
|
return false;
|
|
4361
|
-
if (!equals(this.
|
|
4415
|
+
if (!equals(this.bab_1, other.bab_1))
|
|
4362
4416
|
return false;
|
|
4363
|
-
if (!equals(this.
|
|
4417
|
+
if (!equals(this.cab_1, other.cab_1))
|
|
4364
4418
|
return false;
|
|
4365
|
-
if (!this.
|
|
4419
|
+
if (!this.dab_1.equals(other.dab_1))
|
|
4366
4420
|
return false;
|
|
4367
4421
|
return true;
|
|
4368
4422
|
};
|
|
4369
4423
|
function Companion_4() {
|
|
4370
|
-
this.
|
|
4424
|
+
this.eab_1 = 6;
|
|
4371
4425
|
}
|
|
4372
4426
|
var Companion_instance_14;
|
|
4373
4427
|
function Companion_getInstance_5() {
|
|
4374
4428
|
return Companion_instance_14;
|
|
4375
4429
|
}
|
|
4376
4430
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
4377
|
-
this.
|
|
4431
|
+
this.nab_1 = this$0;
|
|
4378
4432
|
CoroutineImpl.call(this, resultContinuation);
|
|
4379
4433
|
}
|
|
4380
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
4381
|
-
var tmp = this.
|
|
4434
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).pab = function (actions, $completion) {
|
|
4435
|
+
var tmp = this.qab(actions, $completion);
|
|
4382
4436
|
tmp.u8_1 = Unit_instance;
|
|
4383
4437
|
tmp.v8_1 = null;
|
|
4384
4438
|
return tmp.a9();
|
|
4385
4439
|
};
|
|
4386
4440
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).i9 = function (p1, $completion) {
|
|
4387
|
-
return this.
|
|
4441
|
+
return this.pab((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
4388
4442
|
};
|
|
4389
4443
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).a9 = function () {
|
|
4390
4444
|
var suspendResult = this.u8_1;
|
|
@@ -4393,7 +4447,7 @@
|
|
|
4393
4447
|
var tmp = this.s8_1;
|
|
4394
4448
|
if (tmp === 0) {
|
|
4395
4449
|
this.t8_1 = 1;
|
|
4396
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
4450
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.nab_1, this.oab_1, null));
|
|
4397
4451
|
} else if (tmp === 1) {
|
|
4398
4452
|
throw this.v8_1;
|
|
4399
4453
|
}
|
|
@@ -4403,23 +4457,23 @@
|
|
|
4403
4457
|
}
|
|
4404
4458
|
while (true);
|
|
4405
4459
|
};
|
|
4406
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
4407
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
4408
|
-
i.
|
|
4460
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).qab = function (actions, completion) {
|
|
4461
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.nab_1, completion);
|
|
4462
|
+
i.oab_1 = actions;
|
|
4409
4463
|
return i;
|
|
4410
4464
|
};
|
|
4411
4465
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
4412
4466
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
4413
4467
|
var l = function (actions, $completion) {
|
|
4414
|
-
return i.
|
|
4468
|
+
return i.pab(actions, $completion);
|
|
4415
4469
|
};
|
|
4416
4470
|
l.$arity = 1;
|
|
4417
4471
|
return l;
|
|
4418
4472
|
}
|
|
4419
4473
|
function $sentEventCOROUTINE$(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
4420
4474
|
CoroutineImpl.call(this, resultContinuation);
|
|
4421
|
-
this.
|
|
4422
|
-
this.
|
|
4475
|
+
this.zab_1 = _this__u8e3s4;
|
|
4476
|
+
this.aac_1 = fromEvent;
|
|
4423
4477
|
}
|
|
4424
4478
|
protoOf($sentEventCOROUTINE$).a9 = function () {
|
|
4425
4479
|
var suspendResult = this.u8_1;
|
|
@@ -4429,8 +4483,8 @@
|
|
|
4429
4483
|
switch (tmp) {
|
|
4430
4484
|
case 0:
|
|
4431
4485
|
this.t8_1 = 2;
|
|
4432
|
-
this.
|
|
4433
|
-
var tmp0 = this.
|
|
4486
|
+
this.zab_1.yaa_1;
|
|
4487
|
+
var tmp0 = this.zab_1.xaa_1;
|
|
4434
4488
|
l$ret$1: do {
|
|
4435
4489
|
while (true) {
|
|
4436
4490
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
@@ -4442,7 +4496,7 @@
|
|
|
4442
4496
|
}
|
|
4443
4497
|
while (false);
|
|
4444
4498
|
this.s8_1 = 1;
|
|
4445
|
-
suspendResult = this.
|
|
4499
|
+
suspendResult = this.zab_1.zaa_1.o28(this.aac_1, this);
|
|
4446
4500
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4447
4501
|
return suspendResult;
|
|
4448
4502
|
}
|
|
@@ -4466,7 +4520,7 @@
|
|
|
4466
4520
|
};
|
|
4467
4521
|
function $waitForCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
4468
4522
|
CoroutineImpl.call(this, resultContinuation);
|
|
4469
|
-
this.
|
|
4523
|
+
this.jac_1 = _this__u8e3s4;
|
|
4470
4524
|
}
|
|
4471
4525
|
protoOf($waitForCOROUTINE$).a9 = function () {
|
|
4472
4526
|
var suspendResult = this.u8_1;
|
|
@@ -4476,12 +4530,12 @@
|
|
|
4476
4530
|
switch (tmp) {
|
|
4477
4531
|
case 0:
|
|
4478
4532
|
this.t8_1 = 5;
|
|
4479
|
-
this.
|
|
4480
|
-
this.
|
|
4533
|
+
this.jac_1.yaa_1;
|
|
4534
|
+
this.kac_1 = 0;
|
|
4481
4535
|
this.s8_1 = 1;
|
|
4482
4536
|
continue $sm;
|
|
4483
4537
|
case 1:
|
|
4484
|
-
if (!!(this.
|
|
4538
|
+
if (!!(this.jac_1.xaa_1.kotlinx$atomicfu$value === 0)) {
|
|
4485
4539
|
this.s8_1 = 4;
|
|
4486
4540
|
continue $sm;
|
|
4487
4541
|
}
|
|
@@ -4494,9 +4548,9 @@
|
|
|
4494
4548
|
|
|
4495
4549
|
continue $sm;
|
|
4496
4550
|
case 2:
|
|
4497
|
-
this.
|
|
4498
|
-
if (this.
|
|
4499
|
-
this.
|
|
4551
|
+
this.kac_1 = this.kac_1 + 1 | 0;
|
|
4552
|
+
if (this.kac_1 > 6) {
|
|
4553
|
+
this.jac_1.vaa_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.jac_1.xaa_1.kotlinx$atomicfu$value);
|
|
4500
4554
|
this.s8_1 = 4;
|
|
4501
4555
|
continue $sm;
|
|
4502
4556
|
} else {
|
|
@@ -4524,54 +4578,54 @@
|
|
|
4524
4578
|
while (true);
|
|
4525
4579
|
};
|
|
4526
4580
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
4527
|
-
this.
|
|
4528
|
-
this.
|
|
4529
|
-
this.
|
|
4530
|
-
this.
|
|
4581
|
+
this.uaa_1 = serverReduxConfig;
|
|
4582
|
+
this.vaa_1 = logger;
|
|
4583
|
+
this.waa_1 = idsProvider;
|
|
4584
|
+
this.xaa_1 = atomic$ref$1(0);
|
|
4531
4585
|
var tmp = this;
|
|
4532
4586
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
4533
|
-
tmp.
|
|
4534
|
-
this.
|
|
4587
|
+
tmp.yaa_1 = get_atomicfu$reentrantLock();
|
|
4588
|
+
this.zaa_1 = MutableSharedFlow();
|
|
4535
4589
|
}
|
|
4536
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4590
|
+
protoOf(ToClientEventsObserverImpl).faa = function (fromEvent, $completion) {
|
|
4537
4591
|
var tmp = new $sentEventCOROUTINE$(this, fromEvent, $completion);
|
|
4538
4592
|
tmp.u8_1 = Unit_instance;
|
|
4539
4593
|
tmp.v8_1 = null;
|
|
4540
4594
|
return tmp.a9();
|
|
4541
4595
|
};
|
|
4542
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4596
|
+
protoOf(ToClientEventsObserverImpl).f9i = function ($completion) {
|
|
4543
4597
|
var tmp = new $waitForCOROUTINE$(this, $completion);
|
|
4544
4598
|
tmp.u8_1 = Unit_instance;
|
|
4545
4599
|
tmp.v8_1 = null;
|
|
4546
4600
|
return tmp.a9();
|
|
4547
4601
|
};
|
|
4548
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4549
|
-
if (!this.
|
|
4550
|
-
return this.
|
|
4602
|
+
protoOf(ToClientEventsObserverImpl).l9z = function () {
|
|
4603
|
+
if (!this.uaa_1.enabledCombinedEvents) {
|
|
4604
|
+
return this.zaa_1;
|
|
4551
4605
|
}
|
|
4552
|
-
var tmp = windowedByInterval(this.
|
|
4606
|
+
var tmp = windowedByInterval(this.zaa_1, fromInt(this.uaa_1.combinedEventsIntervalMillis));
|
|
4553
4607
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
4554
4608
|
};
|
|
4555
4609
|
function PlayerConnectionInteractor() {
|
|
4556
4610
|
}
|
|
4557
4611
|
function waitPlayerOrDisconnect($this, newConnectionState, previousConnectionState, table, player, waitForPlayer) {
|
|
4558
|
-
if (waitForPlayer && $this.
|
|
4612
|
+
if (waitForPlayer && $this.oac_1.waitForPlayerToReconnect) {
|
|
4559
4613
|
Companion_getInstance();
|
|
4560
4614
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4561
|
-
var this_0 = $this.
|
|
4615
|
+
var this_0 = $this.oac_1.reconnectionCheckDurationMillis;
|
|
4562
4616
|
var reconnectionCheckDurationMillis = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4563
|
-
var noRecentReconnects = Duration__compareTo_impl_pchp0f(table.gameDuration, reconnectionCheckDurationMillis) < 0 || player.
|
|
4617
|
+
var noRecentReconnects = Duration__compareTo_impl_pchp0f(table.gameDuration, reconnectionCheckDurationMillis) < 0 || player.q6v_1.d69().x67(reconnectionCheckDurationMillis);
|
|
4564
4618
|
if (noRecentReconnects) {
|
|
4565
|
-
return $this.
|
|
4619
|
+
return $this.mac(player.playerId, newConnectionState, previousConnectionState);
|
|
4566
4620
|
}
|
|
4567
4621
|
}
|
|
4568
|
-
var canRemoveGameWhenNoPlayers = Companion_instance_2.
|
|
4622
|
+
var canRemoveGameWhenNoPlayers = Companion_instance_2.o6v($this.oac_1.finishGameWhenNotLiveStrategy, player.playerId, table.players);
|
|
4569
4623
|
if (canRemoveGameWhenNoPlayers) {
|
|
4570
|
-
return listOf($this.
|
|
4624
|
+
return listOf($this.sac_1.f8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: No Players to continue game'));
|
|
4571
4625
|
}
|
|
4572
|
-
if (table.sceneInfo.
|
|
4573
|
-
if (!$this.
|
|
4574
|
-
return listOf($this.
|
|
4626
|
+
if (table.sceneInfo.n7g()) {
|
|
4627
|
+
if (!$this.pac_1.openRoomIfFinished) {
|
|
4628
|
+
return listOf($this.sac_1.f8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: Game is finished'));
|
|
4575
4629
|
}
|
|
4576
4630
|
// Inline function 'kotlin.collections.filter' call
|
|
4577
4631
|
var tmp0 = table.players;
|
|
@@ -4581,9 +4635,9 @@
|
|
|
4581
4635
|
while (_iterator__ex2g4s.m()) {
|
|
4582
4636
|
var element = _iterator__ex2g4s.n();
|
|
4583
4637
|
var tmp;
|
|
4584
|
-
if (!(element.playerId === player.playerId) && !(element.
|
|
4638
|
+
if (!(element.playerId === player.playerId) && !(element.q6v_1.l67_1 == null)) {
|
|
4585
4639
|
// Inline function 'kotlin.requireNotNull' call
|
|
4586
|
-
var tmp0_0 = element.
|
|
4640
|
+
var tmp0_0 = element.q6v_1.l67_1;
|
|
4587
4641
|
var tmp$ret$2;
|
|
4588
4642
|
$l$block: {
|
|
4589
4643
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -4620,7 +4674,7 @@
|
|
|
4620
4674
|
var _iterator__ex2g4s_1 = tmp0_1.l();
|
|
4621
4675
|
while (_iterator__ex2g4s_1.m()) {
|
|
4622
4676
|
var element_0 = _iterator__ex2g4s_1.n();
|
|
4623
|
-
if (element_0.
|
|
4677
|
+
if (element_0.q6v_1.j67_1) {
|
|
4624
4678
|
destination_1.j(element_0);
|
|
4625
4679
|
}
|
|
4626
4680
|
}
|
|
@@ -4646,27 +4700,27 @@
|
|
|
4646
4700
|
}
|
|
4647
4701
|
var readyLivePlayers = destination_3;
|
|
4648
4702
|
var usersToJoinRoomSize = table.players.o() - notAlivePlayers.o() | 0;
|
|
4649
|
-
if ($this.
|
|
4650
|
-
return listOf($this.
|
|
4703
|
+
if ($this.pac_1.minPlayersToOpenRoom >= usersToJoinRoomSize) {
|
|
4704
|
+
return listOf($this.sac_1.f8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: Not enough users to create room'));
|
|
4651
4705
|
}
|
|
4652
4706
|
var allPlayersMadeDecision = (readyLivePlayers.o() + notAlivePlayers.o() | 0) === table.players.o();
|
|
4653
4707
|
if (allPlayersMadeDecision) {
|
|
4654
|
-
var tmp0_$this = $this.
|
|
4708
|
+
var tmp0_$this = $this.sac_1;
|
|
4655
4709
|
var tmp1_reason = mapToFinishReason(newConnectionState, player, table.playersConnections);
|
|
4656
|
-
return listOf(tmp0_$this.
|
|
4710
|
+
return listOf(tmp0_$this.e8y(tmp1_reason, table, 'Disconnect: Game is finished, transition to room', readyLivePlayers));
|
|
4657
4711
|
}
|
|
4658
4712
|
}
|
|
4659
|
-
if (!$this.
|
|
4660
|
-
return listOf($this.
|
|
4713
|
+
if (!$this.oac_1.botReplacesPlayerAfterTimeout) {
|
|
4714
|
+
return listOf($this.sac_1.f8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, "Disconnect: Can't continue game without bots"));
|
|
4661
4715
|
}
|
|
4662
4716
|
return getPlayerDisconnectedActions($this, newConnectionState, previousConnectionState, player);
|
|
4663
4717
|
}
|
|
4664
4718
|
function getPlayerConnectedActions($this, player, table, previousConnectionState) {
|
|
4665
4719
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4666
4720
|
var actionsList = ArrayList_init_$Create$_0();
|
|
4667
|
-
actionsList.q(listOf_0([new PlayerConnectionChangedMechanicAction(player.playerId, PlayerConnectionState_LIVE_getInstance(), previousConnectionState), $this.
|
|
4668
|
-
if (player.
|
|
4669
|
-
actionsList.q(listOf_0([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.
|
|
4721
|
+
actionsList.q(listOf_0([new PlayerConnectionChangedMechanicAction(player.playerId, PlayerConnectionState_LIVE_getInstance(), previousConnectionState), $this.ma7(player, table)]));
|
|
4722
|
+
if (player.q6v_1.m67()) {
|
|
4723
|
+
actionsList.q(listOf_0([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.q6v_1.t68())), new StartTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.q6v_1.t68(), true), _Duration___get_inWholeMilliseconds__impl__msfiry($this.qac_1.i9m(table.config)), VOID, TimerType_DELAY_getInstance())]));
|
|
4670
4724
|
}
|
|
4671
4725
|
return actionsList;
|
|
4672
4726
|
}
|
|
@@ -4674,19 +4728,19 @@
|
|
|
4674
4728
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4675
4729
|
var actionsList = ArrayList_init_$Create$_0();
|
|
4676
4730
|
actionsList.j(new PlayerConnectionChangedMechanicAction(player.playerId, newConnectionState, previousConnectionState));
|
|
4677
|
-
if (player.
|
|
4731
|
+
if (player.q6v_1.m67()) {
|
|
4678
4732
|
actionsList.j(AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection changed'));
|
|
4679
4733
|
}
|
|
4680
4734
|
return actionsList;
|
|
4681
4735
|
}
|
|
4682
4736
|
function PlayerConnectionInteractorImpl(serverConfig, engineLogicConfig, playerTurnMechanicReducer, idsProvider, gameLifecycleInteractor) {
|
|
4683
|
-
this.
|
|
4684
|
-
this.
|
|
4685
|
-
this.
|
|
4686
|
-
this.
|
|
4687
|
-
this.
|
|
4737
|
+
this.oac_1 = serverConfig;
|
|
4738
|
+
this.pac_1 = engineLogicConfig;
|
|
4739
|
+
this.qac_1 = playerTurnMechanicReducer;
|
|
4740
|
+
this.rac_1 = idsProvider;
|
|
4741
|
+
this.sac_1 = gameLifecycleInteractor;
|
|
4688
4742
|
}
|
|
4689
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4743
|
+
protoOf(PlayerConnectionInteractorImpl).lac = function (newConnectionState, previousConnectionState, player, table, afterReconnection) {
|
|
4690
4744
|
var tmp;
|
|
4691
4745
|
switch (newConnectionState.q2_1) {
|
|
4692
4746
|
case 1:
|
|
@@ -4694,7 +4748,7 @@
|
|
|
4694
4748
|
break;
|
|
4695
4749
|
case 4:
|
|
4696
4750
|
case 5:
|
|
4697
|
-
var tmp1_waitForPlayer = !afterReconnection && !table.sceneInfo.
|
|
4751
|
+
var tmp1_waitForPlayer = !afterReconnection && !table.sceneInfo.n7g() && table.config.isPrivate;
|
|
4698
4752
|
tmp = waitPlayerOrDisconnect(this, newConnectionState, previousConnectionState, table, player, tmp1_waitForPlayer);
|
|
4699
4753
|
break;
|
|
4700
4754
|
case 2:
|
|
@@ -4717,18 +4771,18 @@
|
|
|
4717
4771
|
}
|
|
4718
4772
|
return tmp;
|
|
4719
4773
|
};
|
|
4720
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4774
|
+
protoOf(PlayerConnectionInteractorImpl).oa9 = function (sendToPlayerId, isLive, tableId, reason, isGameFinished) {
|
|
4721
4775
|
if (!isLive) {
|
|
4722
4776
|
return emptyList();
|
|
4723
4777
|
}
|
|
4724
|
-
var tmp0_deliveryPayload = Companion_instance_1.user(this.
|
|
4778
|
+
var tmp0_deliveryPayload = Companion_instance_1.user(this.rac_1.h6e(), tableId, sendToPlayerId);
|
|
4725
4779
|
var tmp = new FinishingGameToClientAction(reason, isGameFinished, null, tmp0_deliveryPayload);
|
|
4726
|
-
var tmp1_deliveryPayload = Companion_instance_1.user(this.
|
|
4780
|
+
var tmp1_deliveryPayload = Companion_instance_1.user(this.rac_1.h6e(), tableId, sendToPlayerId);
|
|
4727
4781
|
return listOf_0([tmp, new FinishGameToClientAction(reason, isGameFinished, null, tmp1_deliveryPayload)]);
|
|
4728
4782
|
};
|
|
4729
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4730
|
-
var updatedTable = this.
|
|
4731
|
-
var aid = this.
|
|
4783
|
+
protoOf(PlayerConnectionInteractorImpl).ma7 = function (sendToPlayer, table) {
|
|
4784
|
+
var updatedTable = this.qac_1.j9k(table, sendToPlayer.playerId, PlayerConnectionState_LIVE_getInstance(), null);
|
|
4785
|
+
var aid = this.rac_1.h6e();
|
|
4732
4786
|
var tmp4_deliveryPayload = Companion_instance_1.userFromTable(aid, updatedTable, sendToPlayer.playerId);
|
|
4733
4787
|
var tmp0_playerId = sendToPlayer.playerId;
|
|
4734
4788
|
var tmp1_gameCreatorPlayerId = getGameCreator(updatedTable.players).playerId;
|
|
@@ -4747,24 +4801,24 @@
|
|
|
4747
4801
|
var tmp6_reason = new PlayerReturnsReason(sendToPlayer.playerId);
|
|
4748
4802
|
return new ContinueGameToClientAction(tmp5_table, tmp6_reason, null, tmp4_deliveryPayload);
|
|
4749
4803
|
};
|
|
4750
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4804
|
+
protoOf(PlayerConnectionInteractorImpl).mac = function (playerId, newConnectionState, previousConnectionState) {
|
|
4751
4805
|
var tmp = System_instance.dk();
|
|
4752
4806
|
Companion_getInstance();
|
|
4753
4807
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4754
|
-
var this_0 = this.
|
|
4808
|
+
var this_0 = this.oac_1.waitForPlayerToReconnectTimeOutMillis;
|
|
4755
4809
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4756
4810
|
var reconnectUntilTime = tmp.sk(tmp$ret$0);
|
|
4757
4811
|
var tmp0_state = PlayerConnectionState_DISCONNECTING_getInstance();
|
|
4758
4812
|
var tmp1_reconnectUntilTime = reconnectUntilTime.toString();
|
|
4759
|
-
return listOf_0([new PlayerConnectionChangedMechanicAction(playerId, tmp0_state, previousConnectionState, newConnectionState, false, tmp1_reconnectUntilTime), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(playerId, newConnectionState, previousConnectionState), fromInt(this.
|
|
4813
|
+
return listOf_0([new PlayerConnectionChangedMechanicAction(playerId, tmp0_state, previousConnectionState, newConnectionState, false, tmp1_reconnectUntilTime), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(playerId, newConnectionState, previousConnectionState), fromInt(this.oac_1.waitForPlayerToReconnectTimeOutMillis), VOID, TimerType_DELAY_getInstance())]);
|
|
4760
4814
|
};
|
|
4761
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4815
|
+
protoOf(PlayerConnectionInteractorImpl).nac = function (isBot, playerId, connectedPlayers) {
|
|
4762
4816
|
var tmp;
|
|
4763
4817
|
if (isBot) {
|
|
4764
4818
|
tmp = Companion_instance_3.s67(PlayerConnectionState_LEFT_PERMANENTLY_getInstance());
|
|
4765
4819
|
} else {
|
|
4766
4820
|
var tmp_0;
|
|
4767
|
-
if (this.
|
|
4821
|
+
if (this.oac_1.waitForPlayerToConnectOnStart) {
|
|
4768
4822
|
var tmp_1;
|
|
4769
4823
|
if (connectedPlayers.u1(playerId)) {
|
|
4770
4824
|
tmp_1 = Companion_instance_3.s67(PlayerConnectionState_LIVE_getInstance());
|
|
@@ -4780,154 +4834,154 @@
|
|
|
4780
4834
|
return tmp;
|
|
4781
4835
|
};
|
|
4782
4836
|
function UpdateServerConfigAction(serverConfig) {
|
|
4783
|
-
this.
|
|
4837
|
+
this.tac_1 = serverConfig;
|
|
4784
4838
|
}
|
|
4785
4839
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
4786
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
4840
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.tac_1.toString() + ')';
|
|
4787
4841
|
};
|
|
4788
4842
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
4789
|
-
return this.
|
|
4843
|
+
return this.tac_1.hashCode();
|
|
4790
4844
|
};
|
|
4791
4845
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
4792
4846
|
if (this === other)
|
|
4793
4847
|
return true;
|
|
4794
4848
|
if (!(other instanceof UpdateServerConfigAction))
|
|
4795
4849
|
return false;
|
|
4796
|
-
if (!this.
|
|
4850
|
+
if (!this.tac_1.equals(other.tac_1))
|
|
4797
4851
|
return false;
|
|
4798
4852
|
return true;
|
|
4799
4853
|
};
|
|
4800
4854
|
function SpectatorsAction() {
|
|
4801
4855
|
}
|
|
4802
4856
|
function AddSpectatorsAction(spectators) {
|
|
4803
|
-
this.
|
|
4857
|
+
this.uac_1 = spectators;
|
|
4804
4858
|
}
|
|
4805
4859
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
4806
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
4860
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.uac_1) + ')';
|
|
4807
4861
|
};
|
|
4808
4862
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
4809
|
-
return hashCode(this.
|
|
4863
|
+
return hashCode(this.uac_1);
|
|
4810
4864
|
};
|
|
4811
4865
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
4812
4866
|
if (this === other)
|
|
4813
4867
|
return true;
|
|
4814
4868
|
if (!(other instanceof AddSpectatorsAction))
|
|
4815
4869
|
return false;
|
|
4816
|
-
if (!equals(this.
|
|
4870
|
+
if (!equals(this.uac_1, other.uac_1))
|
|
4817
4871
|
return false;
|
|
4818
4872
|
return true;
|
|
4819
4873
|
};
|
|
4820
4874
|
function RemoveSpectatorsAction(spectators) {
|
|
4821
|
-
this.
|
|
4875
|
+
this.vac_1 = spectators;
|
|
4822
4876
|
}
|
|
4823
4877
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
4824
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
4878
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.vac_1) + ')';
|
|
4825
4879
|
};
|
|
4826
4880
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
4827
|
-
return hashCode(this.
|
|
4881
|
+
return hashCode(this.vac_1);
|
|
4828
4882
|
};
|
|
4829
4883
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
4830
4884
|
if (this === other)
|
|
4831
4885
|
return true;
|
|
4832
4886
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
4833
4887
|
return false;
|
|
4834
|
-
if (!equals(this.
|
|
4888
|
+
if (!equals(this.vac_1, other.vac_1))
|
|
4835
4889
|
return false;
|
|
4836
4890
|
return true;
|
|
4837
4891
|
};
|
|
4838
4892
|
function _get_asyncProvider__jbpyhw($this) {
|
|
4839
|
-
var tmp0 = $this.
|
|
4893
|
+
var tmp0 = $this.bad_1;
|
|
4840
4894
|
var tmp = KProperty1;
|
|
4841
4895
|
// Inline function 'kotlin.getValue' call
|
|
4842
4896
|
getPropertyCallableRef('asyncProvider', 1, tmp, ServerGameStoreContract$_get_asyncProvider_$ref_1q7po3_0(), null);
|
|
4843
4897
|
return tmp0.x();
|
|
4844
4898
|
}
|
|
4845
4899
|
function _get_logger__rkp4sl($this) {
|
|
4846
|
-
var tmp0 = $this.
|
|
4900
|
+
var tmp0 = $this.cad_1;
|
|
4847
4901
|
var tmp = KProperty1;
|
|
4848
4902
|
// Inline function 'kotlin.getValue' call
|
|
4849
4903
|
getPropertyCallableRef('logger', 1, tmp, ServerGameStoreContract$_get_logger_$ref_zbgw28_0(), null);
|
|
4850
4904
|
return tmp0.x();
|
|
4851
4905
|
}
|
|
4852
4906
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
4853
|
-
var tmp0 = $this.
|
|
4907
|
+
var tmp0 = $this.dad_1;
|
|
4854
4908
|
var tmp = KProperty1;
|
|
4855
4909
|
// Inline function 'kotlin.getValue' call
|
|
4856
4910
|
getPropertyCallableRef('playerConnectionInteractor', 1, tmp, ServerGameStoreContract$_get_playerConnectionInteractor_$ref_d9n2s8_0(), null);
|
|
4857
4911
|
return tmp0.x();
|
|
4858
4912
|
}
|
|
4859
4913
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
4860
|
-
var tmp0 = $this.
|
|
4914
|
+
var tmp0 = $this.ead_1;
|
|
4861
4915
|
var tmp = KProperty1;
|
|
4862
4916
|
// Inline function 'kotlin.getValue' call
|
|
4863
4917
|
getPropertyCallableRef('lastCardInteractor', 1, tmp, ServerGameStoreContract$_get_lastCardInteractor_$ref_khpgh_0(), null);
|
|
4864
4918
|
return tmp0.x();
|
|
4865
4919
|
}
|
|
4866
4920
|
function _get_serverConfig__rk2g06($this) {
|
|
4867
|
-
var tmp0 = $this.
|
|
4921
|
+
var tmp0 = $this.fad_1;
|
|
4868
4922
|
var tmp = KProperty1;
|
|
4869
4923
|
// Inline function 'kotlin.getValue' call
|
|
4870
4924
|
getPropertyCallableRef('serverConfig', 1, tmp, ServerGameStoreContract$_get_serverConfig_$ref_bz2891_0(), null);
|
|
4871
4925
|
return tmp0.x();
|
|
4872
4926
|
}
|
|
4873
4927
|
function _get_logicConfig__52ww9d($this) {
|
|
4874
|
-
var tmp0 = $this.
|
|
4928
|
+
var tmp0 = $this.gad_1;
|
|
4875
4929
|
var tmp = KProperty1;
|
|
4876
4930
|
// Inline function 'kotlin.getValue' call
|
|
4877
4931
|
getPropertyCallableRef('logicConfig', 1, tmp, ServerGameStoreContract$_get_logicConfig_$ref_nqj2yi_0(), null);
|
|
4878
4932
|
return tmp0.x();
|
|
4879
4933
|
}
|
|
4880
4934
|
function _get_idsProvider__fnfajc_0($this) {
|
|
4881
|
-
var tmp0 = $this.
|
|
4935
|
+
var tmp0 = $this.had_1;
|
|
4882
4936
|
var tmp = KProperty1;
|
|
4883
4937
|
// Inline function 'kotlin.getValue' call
|
|
4884
4938
|
getPropertyCallableRef('idsProvider', 1, tmp, ServerGameStoreContract$_get_idsProvider_$ref_rf1ck1_0(), null);
|
|
4885
4939
|
return tmp0.x();
|
|
4886
4940
|
}
|
|
4887
4941
|
function _get_botConfig__cpaxzc($this) {
|
|
4888
|
-
var tmp0 = $this.
|
|
4942
|
+
var tmp0 = $this.iad_1;
|
|
4889
4943
|
var tmp = KProperty1;
|
|
4890
4944
|
// Inline function 'kotlin.getValue' call
|
|
4891
4945
|
getPropertyCallableRef('botConfig', 1, tmp, ServerGameStoreContract$_get_botConfig_$ref_nebw1d_0(), null);
|
|
4892
4946
|
return tmp0.x();
|
|
4893
4947
|
}
|
|
4894
4948
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
4895
|
-
var tmp0 = $this.
|
|
4949
|
+
var tmp0 = $this.jad_1;
|
|
4896
4950
|
var tmp = KProperty1;
|
|
4897
4951
|
// Inline function 'kotlin.getValue' call
|
|
4898
4952
|
getPropertyCallableRef('scenePositionProvider', 1, tmp, ServerGameStoreContract$_get_scenePositionProvider_$ref_ue39g4_0(), null);
|
|
4899
4953
|
return tmp0.x();
|
|
4900
4954
|
}
|
|
4901
4955
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
4902
|
-
var tmp0 = $this.
|
|
4956
|
+
var tmp0 = $this.kad_1;
|
|
4903
4957
|
var tmp = KProperty1;
|
|
4904
4958
|
// Inline function 'kotlin.getValue' call
|
|
4905
4959
|
getPropertyCallableRef('toClientEventsObserver', 1, tmp, ServerGameStoreContract$_get_toClientEventsObserver_$ref_nkgv3p_0(), null);
|
|
4906
4960
|
return tmp0.x();
|
|
4907
4961
|
}
|
|
4908
4962
|
function _get_fromClientEventsObserver__a7vzd3_0($this) {
|
|
4909
|
-
var tmp0 = $this.
|
|
4963
|
+
var tmp0 = $this.lad_1;
|
|
4910
4964
|
var tmp = KProperty1;
|
|
4911
4965
|
// Inline function 'kotlin.getValue' call
|
|
4912
4966
|
getPropertyCallableRef('fromClientEventsObserver', 1, tmp, ServerGameStoreContract$_get_fromClientEventsObserver_$ref_v1j2bg_0(), null);
|
|
4913
4967
|
return tmp0.x();
|
|
4914
4968
|
}
|
|
4915
4969
|
function _get_dealerConfig__183ci8($this) {
|
|
4916
|
-
var tmp0 = $this.
|
|
4970
|
+
var tmp0 = $this.mad_1;
|
|
4917
4971
|
var tmp = KProperty1;
|
|
4918
4972
|
// Inline function 'kotlin.getValue' call
|
|
4919
4973
|
getPropertyCallableRef('dealerConfig', 1, tmp, ServerGameStoreContract$_get_dealerConfig_$ref_mdo2zp_0(), null);
|
|
4920
4974
|
return tmp0.x();
|
|
4921
4975
|
}
|
|
4922
4976
|
function _get_poolProvider__tqti6a($this) {
|
|
4923
|
-
var tmp0 = $this.
|
|
4977
|
+
var tmp0 = $this.nad_1;
|
|
4924
4978
|
var tmp = KProperty1;
|
|
4925
4979
|
// Inline function 'kotlin.getValue' call
|
|
4926
4980
|
getPropertyCallableRef('poolProvider', 1, tmp, ServerGameStoreContract$_get_poolProvider_$ref_4pfoc3_0(), null);
|
|
4927
4981
|
return tmp0.x();
|
|
4928
4982
|
}
|
|
4929
4983
|
function _get_cardsDealerProvider__bekjpg($this) {
|
|
4930
|
-
var tmp0 = $this.
|
|
4984
|
+
var tmp0 = $this.oad_1;
|
|
4931
4985
|
var tmp = KProperty1;
|
|
4932
4986
|
// Inline function 'kotlin.getValue' call
|
|
4933
4987
|
getPropertyCallableRef('cardsDealerProvider', 1, tmp, ServerGameStoreContract$_get_cardsDealerProvider_$ref_ipxqoj_0(), null);
|
|
@@ -5091,11 +5145,11 @@
|
|
|
5091
5145
|
tmp = fileLoggerStoreContract;
|
|
5092
5146
|
}
|
|
5093
5147
|
fileLoggerStoreContract = tmp;
|
|
5094
|
-
this.
|
|
5095
|
-
this.
|
|
5096
|
-
this.
|
|
5097
|
-
this.
|
|
5098
|
-
this.
|
|
5148
|
+
this.wac_1 = validationStoreContract;
|
|
5149
|
+
this.xac_1 = timersStoreContract;
|
|
5150
|
+
this.yac_1 = botGameStoreContract;
|
|
5151
|
+
this.zac_1 = gameMechanicStoreContract;
|
|
5152
|
+
this.aad_1 = fileLoggerStoreContract;
|
|
5099
5153
|
var tmp_0 = this;
|
|
5100
5154
|
// Inline function 'org.kodein.di.instance' call
|
|
5101
5155
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5103,7 +5157,7 @@
|
|
|
5103
5157
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
5104
5158
|
var tmp_2 = Instance(di, tmp$ret$0, null);
|
|
5105
5159
|
var tmp_3 = KProperty1;
|
|
5106
|
-
tmp_0.
|
|
5160
|
+
tmp_0.bad_1 = tmp_2.a65(this, getPropertyCallableRef('asyncProvider', 1, tmp_3, ServerGameStoreContract$_get_asyncProvider_$ref_1q7po3(), null));
|
|
5107
5161
|
var tmp_4 = this;
|
|
5108
5162
|
// Inline function 'org.kodein.di.instance' call
|
|
5109
5163
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5111,7 +5165,7 @@
|
|
|
5111
5165
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
5112
5166
|
var tmp_6 = Instance(di, tmp$ret$2, null);
|
|
5113
5167
|
var tmp_7 = KProperty1;
|
|
5114
|
-
tmp_4.
|
|
5168
|
+
tmp_4.cad_1 = tmp_6.a65(this, getPropertyCallableRef('logger', 1, tmp_7, ServerGameStoreContract$_get_logger_$ref_zbgw28(), null));
|
|
5115
5169
|
var tmp_8 = this;
|
|
5116
5170
|
// Inline function 'org.kodein.di.instance' call
|
|
5117
5171
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5119,7 +5173,7 @@
|
|
|
5119
5173
|
var tmp$ret$4 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE();
|
|
5120
5174
|
var tmp_10 = Instance(di, tmp$ret$4, null);
|
|
5121
5175
|
var tmp_11 = KProperty1;
|
|
5122
|
-
tmp_8.
|
|
5176
|
+
tmp_8.dad_1 = tmp_10.a65(this, getPropertyCallableRef('playerConnectionInteractor', 1, tmp_11, ServerGameStoreContract$_get_playerConnectionInteractor_$ref_d9n2s8(), null));
|
|
5123
5177
|
var tmp_12 = this;
|
|
5124
5178
|
// Inline function 'org.kodein.di.instance' call
|
|
5125
5179
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5127,7 +5181,7 @@
|
|
|
5127
5181
|
var tmp$ret$6 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
5128
5182
|
var tmp_14 = Instance(di, tmp$ret$6, null);
|
|
5129
5183
|
var tmp_15 = KProperty1;
|
|
5130
|
-
tmp_12.
|
|
5184
|
+
tmp_12.ead_1 = tmp_14.a65(this, getPropertyCallableRef('lastCardInteractor', 1, tmp_15, ServerGameStoreContract$_get_lastCardInteractor_$ref_khpgh(), null));
|
|
5131
5185
|
var tmp_16 = this;
|
|
5132
5186
|
// Inline function 'org.kodein.di.instance' call
|
|
5133
5187
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5135,7 +5189,7 @@
|
|
|
5135
5189
|
var tmp$ret$8 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
5136
5190
|
var tmp_18 = Instance(di, tmp$ret$8, null);
|
|
5137
5191
|
var tmp_19 = KProperty1;
|
|
5138
|
-
tmp_16.
|
|
5192
|
+
tmp_16.fad_1 = tmp_18.a65(this, getPropertyCallableRef('serverConfig', 1, tmp_19, ServerGameStoreContract$_get_serverConfig_$ref_bz2891(), null));
|
|
5139
5193
|
var tmp_20 = this;
|
|
5140
5194
|
// Inline function 'org.kodein.di.instance' call
|
|
5141
5195
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5143,7 +5197,7 @@
|
|
|
5143
5197
|
var tmp$ret$10 = isInterface(tmp_21, TypeToken) ? tmp_21 : THROW_CCE();
|
|
5144
5198
|
var tmp_22 = Instance(di, tmp$ret$10, null);
|
|
5145
5199
|
var tmp_23 = KProperty1;
|
|
5146
|
-
tmp_20.
|
|
5200
|
+
tmp_20.gad_1 = tmp_22.a65(this, getPropertyCallableRef('logicConfig', 1, tmp_23, ServerGameStoreContract$_get_logicConfig_$ref_nqj2yi(), null));
|
|
5147
5201
|
var tmp_24 = this;
|
|
5148
5202
|
// Inline function 'org.kodein.di.instance' call
|
|
5149
5203
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5151,7 +5205,7 @@
|
|
|
5151
5205
|
var tmp$ret$12 = isInterface(tmp_25, TypeToken) ? tmp_25 : THROW_CCE();
|
|
5152
5206
|
var tmp_26 = Instance(di, tmp$ret$12, null);
|
|
5153
5207
|
var tmp_27 = KProperty1;
|
|
5154
|
-
tmp_24.
|
|
5208
|
+
tmp_24.had_1 = tmp_26.a65(this, getPropertyCallableRef('idsProvider', 1, tmp_27, ServerGameStoreContract$_get_idsProvider_$ref_rf1ck1(), null));
|
|
5155
5209
|
var tmp_28 = this;
|
|
5156
5210
|
// Inline function 'org.kodein.di.instance' call
|
|
5157
5211
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5159,7 +5213,7 @@
|
|
|
5159
5213
|
var tmp$ret$14 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE();
|
|
5160
5214
|
var tmp_30 = Instance(di, tmp$ret$14, null);
|
|
5161
5215
|
var tmp_31 = KProperty1;
|
|
5162
|
-
tmp_28.
|
|
5216
|
+
tmp_28.iad_1 = tmp_30.a65(this, getPropertyCallableRef('botConfig', 1, tmp_31, ServerGameStoreContract$_get_botConfig_$ref_nebw1d(), null));
|
|
5163
5217
|
var tmp_32 = this;
|
|
5164
5218
|
// Inline function 'org.kodein.di.instance' call
|
|
5165
5219
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5167,7 +5221,7 @@
|
|
|
5167
5221
|
var tmp$ret$16 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE();
|
|
5168
5222
|
var tmp_34 = Instance(di, tmp$ret$16, null);
|
|
5169
5223
|
var tmp_35 = KProperty1;
|
|
5170
|
-
tmp_32.
|
|
5224
|
+
tmp_32.jad_1 = tmp_34.a65(this, getPropertyCallableRef('scenePositionProvider', 1, tmp_35, ServerGameStoreContract$_get_scenePositionProvider_$ref_ue39g4(), null));
|
|
5171
5225
|
var tmp_36 = this;
|
|
5172
5226
|
// Inline function 'org.kodein.di.instance' call
|
|
5173
5227
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5175,7 +5229,7 @@
|
|
|
5175
5229
|
var tmp$ret$18 = isInterface(tmp_37, TypeToken) ? tmp_37 : THROW_CCE();
|
|
5176
5230
|
var tmp_38 = Instance(di, tmp$ret$18, null);
|
|
5177
5231
|
var tmp_39 = KProperty1;
|
|
5178
|
-
tmp_36.
|
|
5232
|
+
tmp_36.kad_1 = tmp_38.a65(this, getPropertyCallableRef('toClientEventsObserver', 1, tmp_39, ServerGameStoreContract$_get_toClientEventsObserver_$ref_nkgv3p(), null));
|
|
5179
5233
|
var tmp_40 = this;
|
|
5180
5234
|
// Inline function 'org.kodein.di.instance' call
|
|
5181
5235
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5183,7 +5237,7 @@
|
|
|
5183
5237
|
var tmp$ret$20 = isInterface(tmp_41, TypeToken) ? tmp_41 : THROW_CCE();
|
|
5184
5238
|
var tmp_42 = Instance(di, tmp$ret$20, null);
|
|
5185
5239
|
var tmp_43 = KProperty1;
|
|
5186
|
-
tmp_40.
|
|
5240
|
+
tmp_40.lad_1 = tmp_42.a65(this, getPropertyCallableRef('fromClientEventsObserver', 1, tmp_43, ServerGameStoreContract$_get_fromClientEventsObserver_$ref_v1j2bg(), null));
|
|
5187
5241
|
var tmp_44 = this;
|
|
5188
5242
|
// Inline function 'org.kodein.di.instance' call
|
|
5189
5243
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5191,7 +5245,7 @@
|
|
|
5191
5245
|
var tmp$ret$22 = isInterface(tmp_45, TypeToken) ? tmp_45 : THROW_CCE();
|
|
5192
5246
|
var tmp_46 = Instance(di, tmp$ret$22, null);
|
|
5193
5247
|
var tmp_47 = KProperty1;
|
|
5194
|
-
tmp_44.
|
|
5248
|
+
tmp_44.mad_1 = tmp_46.a65(this, getPropertyCallableRef('dealerConfig', 1, tmp_47, ServerGameStoreContract$_get_dealerConfig_$ref_mdo2zp(), null));
|
|
5195
5249
|
var tmp_48 = this;
|
|
5196
5250
|
// Inline function 'org.kodein.di.instance' call
|
|
5197
5251
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5199,7 +5253,7 @@
|
|
|
5199
5253
|
var tmp$ret$24 = isInterface(tmp_49, TypeToken) ? tmp_49 : THROW_CCE();
|
|
5200
5254
|
var tmp_50 = Instance(di, tmp$ret$24, null);
|
|
5201
5255
|
var tmp_51 = KProperty1;
|
|
5202
|
-
tmp_48.
|
|
5256
|
+
tmp_48.nad_1 = tmp_50.a65(this, getPropertyCallableRef('poolProvider', 1, tmp_51, ServerGameStoreContract$_get_poolProvider_$ref_4pfoc3(), null));
|
|
5203
5257
|
var tmp_52 = this;
|
|
5204
5258
|
// Inline function 'org.kodein.di.instance' call
|
|
5205
5259
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5207,20 +5261,20 @@
|
|
|
5207
5261
|
var tmp$ret$26 = isInterface(tmp_53, TypeToken) ? tmp_53 : THROW_CCE();
|
|
5208
5262
|
var tmp_54 = Instance(di, tmp$ret$26, null);
|
|
5209
5263
|
var tmp_55 = KProperty1;
|
|
5210
|
-
tmp_52.
|
|
5264
|
+
tmp_52.oad_1 = tmp_54.a65(this, getPropertyCallableRef('cardsDealerProvider', 1, tmp_55, ServerGameStoreContract$_get_cardsDealerProvider_$ref_ipxqoj(), null));
|
|
5211
5265
|
}
|
|
5212
|
-
protoOf(ServerGameStoreContract).j98 = function () {
|
|
5213
|
-
return plus(plus(plus(plus(plus(this.kac_1.j98(), this.nac_1.j98()), this.lac_1.j98()), this.mac_1.j98()), this.oac_1.j98()), listOf_0([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl(this)), playerConnectionUpdateReducer()]));
|
|
5214
|
-
};
|
|
5215
5266
|
protoOf(ServerGameStoreContract).k98 = function () {
|
|
5216
|
-
|
|
5267
|
+
return plus(plus(plus(plus(plus(this.wac_1.k98(), this.zac_1.k98()), this.xac_1.k98()), this.yac_1.k98()), this.aad_1.k98()), listOf_0([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl(this)), playerConnectionUpdateReducer()]));
|
|
5268
|
+
};
|
|
5269
|
+
protoOf(ServerGameStoreContract).l98 = function () {
|
|
5270
|
+
var tmp = this.wac_1.l98();
|
|
5217
5271
|
var tmp_0;
|
|
5218
5272
|
if (_get_serverConfig__rk2g06(this).finishGameWhenNotLiveStrategy.equals(FinishGameWhenNotLiveStrategy_ALL_REPLACED_WITH_BOT_getInstance())) {
|
|
5219
5273
|
tmp_0 = checkBotsMiddleware(_get_logger__rkp4sl(this));
|
|
5220
5274
|
} else {
|
|
5221
5275
|
tmp_0 = null;
|
|
5222
5276
|
}
|
|
5223
|
-
var tmp_1 = plus(plus(plus(plus(plus(tmp, listOfNotNull(tmp_0)), this.
|
|
5277
|
+
var tmp_1 = plus(plus(plus(plus(plus(tmp, listOfNotNull(tmp_0)), this.zac_1.l98()), this.xac_1.l98()), this.yac_1.l98()), this.aad_1.l98());
|
|
5224
5278
|
var tmp_2 = playerConnectionUpdateMiddleware(_get_logger__rkp4sl(this), _get_playerConnectionInteractor__si6cxf_0(this));
|
|
5225
5279
|
var tmp_3 = playerReconnectionTimeoutMiddleware(_get_playerConnectionInteractor__si6cxf_0(this));
|
|
5226
5280
|
var tmp_4;
|
|
@@ -5229,7 +5283,7 @@
|
|
|
5229
5283
|
} else {
|
|
5230
5284
|
tmp_4 = null;
|
|
5231
5285
|
}
|
|
5232
|
-
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))).
|
|
5286
|
+
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))).r9a(), finishingGameWhenCantStartNewMiddleware()]));
|
|
5233
5287
|
var tmp_6 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this), _get_logger__rkp4sl(this));
|
|
5234
5288
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
5235
5289
|
var tmp1_logger = _get_logger__rkp4sl(this);
|
|
@@ -5280,7 +5334,7 @@
|
|
|
5280
5334
|
return this.y6h(store, next, action);
|
|
5281
5335
|
};
|
|
5282
5336
|
function ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
5283
|
-
this.
|
|
5337
|
+
this.sad_1 = this$0;
|
|
5284
5338
|
}
|
|
5285
5339
|
protoOf(ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5286
5340
|
return action instanceof MechanicAction;
|
|
@@ -5291,17 +5345,17 @@
|
|
|
5291
5345
|
// Inline function 'kotlin.with' call
|
|
5292
5346
|
var tmp;
|
|
5293
5347
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
5294
|
-
var tmp0 = this.
|
|
5295
|
-
var tmp2 = action_0.
|
|
5296
|
-
var tmp4 = action_0.
|
|
5348
|
+
var tmp0 = this.sad_1;
|
|
5349
|
+
var tmp2 = action_0.r94_1;
|
|
5350
|
+
var tmp4 = action_0.t94_1;
|
|
5297
5351
|
// Inline function 'kotlin.collections.map' call
|
|
5298
|
-
var this_0 = action_0.
|
|
5352
|
+
var this_0 = action_0.u94_1;
|
|
5299
5353
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5300
5354
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
5301
5355
|
var _iterator__ex2g4s = this_0.l();
|
|
5302
5356
|
while (_iterator__ex2g4s.m()) {
|
|
5303
5357
|
var item = _iterator__ex2g4s.n();
|
|
5304
|
-
var tmp$ret$0 = to(item.n66_1, this.
|
|
5358
|
+
var tmp$ret$0 = to(item.n66_1, this.sad_1.rad_1.nac(item.isBot, item.n66_1, get_serverStatePayload_0(state).connectedPlayers).n67_1);
|
|
5305
5359
|
destination.j(tmp$ret$0);
|
|
5306
5360
|
}
|
|
5307
5361
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -5331,7 +5385,7 @@
|
|
|
5331
5385
|
var _iterator__ex2g4s_2 = destination_1.l();
|
|
5332
5386
|
while (_iterator__ex2g4s_2.m()) {
|
|
5333
5387
|
var element_0 = _iterator__ex2g4s_2.n();
|
|
5334
|
-
var tmp0_aid = tmp0.
|
|
5388
|
+
var tmp0_aid = tmp0.qad_1.h6e();
|
|
5335
5389
|
// Inline function 'kotlin.collections.map' call
|
|
5336
5390
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5337
5391
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -5353,15 +5407,15 @@
|
|
|
5353
5407
|
tmp = destination_2;
|
|
5354
5408
|
} else {
|
|
5355
5409
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
5356
|
-
var tmp0_0 = this.
|
|
5410
|
+
var tmp0_0 = this.sad_1;
|
|
5357
5411
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5358
5412
|
var tableId = state.c6s().id;
|
|
5359
|
-
var sendToPlayer_0 = new RoomActionPayload(tmp0_0.
|
|
5413
|
+
var sendToPlayer_0 = new RoomActionPayload(tmp0_0.qad_1.h6e(), tableId, null);
|
|
5360
5414
|
var tmp$ret$21 = mapToClient_18(action_0, sendToPlayer_0);
|
|
5361
5415
|
tmp = listOfNotNull(tmp$ret$21);
|
|
5362
5416
|
} else {
|
|
5363
5417
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
5364
|
-
var tmp0_1 = this.
|
|
5418
|
+
var tmp0_1 = this.sad_1;
|
|
5365
5419
|
var tmp2_0 = action_0.table.id;
|
|
5366
5420
|
var tmp4_0 = action_0.gameCreatorPlayerId;
|
|
5367
5421
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5401,7 +5455,7 @@
|
|
|
5401
5455
|
var _iterator__ex2g4s_7 = destination_6.l();
|
|
5402
5456
|
while (_iterator__ex2g4s_7.m()) {
|
|
5403
5457
|
var element_2 = _iterator__ex2g4s_7.n();
|
|
5404
|
-
var tmp0_aid_0 = tmp0_1.
|
|
5458
|
+
var tmp0_aid_0 = tmp0_1.qad_1.h6e();
|
|
5405
5459
|
// Inline function 'kotlin.collections.map' call
|
|
5406
5460
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5407
5461
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -5423,39 +5477,39 @@
|
|
|
5423
5477
|
tmp = destination_7;
|
|
5424
5478
|
} else {
|
|
5425
5479
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
5426
|
-
var tmp0_2 = this.
|
|
5480
|
+
var tmp0_2 = this.sad_1;
|
|
5427
5481
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5428
5482
|
var tableId_0 = state.c6s().id;
|
|
5429
|
-
var sendToPlayer_2 = new RoomActionPayload(tmp0_2.
|
|
5483
|
+
var sendToPlayer_2 = new RoomActionPayload(tmp0_2.qad_1.h6e(), tableId_0, null);
|
|
5430
5484
|
var tmp$ret$44 = mapToClient_16(action_0, sendToPlayer_2);
|
|
5431
5485
|
tmp = listOfNotNull(tmp$ret$44);
|
|
5432
5486
|
} else {
|
|
5433
5487
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
5434
|
-
var tmp0_3 = this.
|
|
5488
|
+
var tmp0_3 = this.sad_1;
|
|
5435
5489
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5436
5490
|
var tableId_1 = state.c6s().id;
|
|
5437
|
-
var sendToPlayer_3 = new RoomActionPayload(tmp0_3.
|
|
5491
|
+
var sendToPlayer_3 = new RoomActionPayload(tmp0_3.qad_1.h6e(), tableId_1, null);
|
|
5438
5492
|
var tmp$ret$46 = mapToClient_15(action_0, sendToPlayer_3);
|
|
5439
5493
|
tmp = listOfNotNull(tmp$ret$46);
|
|
5440
5494
|
} else {
|
|
5441
5495
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
5442
|
-
var tmp0_4 = this.
|
|
5496
|
+
var tmp0_4 = this.sad_1;
|
|
5443
5497
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5444
5498
|
var tableId_2 = state.c6s().id;
|
|
5445
|
-
var sendToPlayer_4 = new RoomActionPayload(tmp0_4.
|
|
5499
|
+
var sendToPlayer_4 = new RoomActionPayload(tmp0_4.qad_1.h6e(), tableId_2, null);
|
|
5446
5500
|
var tmp$ret$48 = mapToClient_14(action_0, sendToPlayer_4);
|
|
5447
5501
|
tmp = listOfNotNull(tmp$ret$48);
|
|
5448
5502
|
} else {
|
|
5449
5503
|
if (action_0 instanceof ErrorAction) {
|
|
5450
|
-
var tmp0_5 = this.
|
|
5504
|
+
var tmp0_5 = this.sad_1;
|
|
5451
5505
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5452
5506
|
var tableId_3 = state.c6s().id;
|
|
5453
|
-
var sendToPlayer_5 = new RoomActionPayload(tmp0_5.
|
|
5507
|
+
var sendToPlayer_5 = new RoomActionPayload(tmp0_5.qad_1.h6e(), tableId_3, null);
|
|
5454
5508
|
var tmp$ret$50 = mapToClient_13(action_0, sendToPlayer_5);
|
|
5455
5509
|
tmp = listOfNotNull(tmp$ret$50);
|
|
5456
5510
|
} else {
|
|
5457
5511
|
if (action_0 instanceof SceneMechanicAction) {
|
|
5458
|
-
var tmp0_6 = this.
|
|
5512
|
+
var tmp0_6 = this.sad_1;
|
|
5459
5513
|
var tmp2_1 = state.c6s().id;
|
|
5460
5514
|
var tmp4_1 = state.c6s().playersConnections;
|
|
5461
5515
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
@@ -5487,7 +5541,7 @@
|
|
|
5487
5541
|
var _iterator__ex2g4s_11 = destination_10.l();
|
|
5488
5542
|
while (_iterator__ex2g4s_11.m()) {
|
|
5489
5543
|
var element_4 = _iterator__ex2g4s_11.n();
|
|
5490
|
-
var tmp0_aid_1 = tmp0_6.
|
|
5544
|
+
var tmp0_aid_1 = tmp0_6.qad_1.h6e();
|
|
5491
5545
|
// Inline function 'kotlin.collections.map' call
|
|
5492
5546
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5493
5547
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_1, 10));
|
|
@@ -5509,7 +5563,7 @@
|
|
|
5509
5563
|
tmp = destination_11;
|
|
5510
5564
|
} else {
|
|
5511
5565
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
5512
|
-
var tmp0_7 = this.
|
|
5566
|
+
var tmp0_7 = this.sad_1;
|
|
5513
5567
|
var tmp2_2 = state.c6s().id;
|
|
5514
5568
|
var tmp4_2 = state.c6s().playersConnections;
|
|
5515
5569
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
@@ -5541,7 +5595,7 @@
|
|
|
5541
5595
|
var _iterator__ex2g4s_15 = destination_14.l();
|
|
5542
5596
|
while (_iterator__ex2g4s_15.m()) {
|
|
5543
5597
|
var element_6 = _iterator__ex2g4s_15.n();
|
|
5544
|
-
var tmp0_aid_2 = tmp0_7.
|
|
5598
|
+
var tmp0_aid_2 = tmp0_7.qad_1.h6e();
|
|
5545
5599
|
// Inline function 'kotlin.collections.map' call
|
|
5546
5600
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5547
5601
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_2, 10));
|
|
@@ -5563,7 +5617,7 @@
|
|
|
5563
5617
|
tmp = destination_15;
|
|
5564
5618
|
} else {
|
|
5565
5619
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
5566
|
-
var tmp0_8 = this.
|
|
5620
|
+
var tmp0_8 = this.sad_1;
|
|
5567
5621
|
var tmp2_3 = state.c6s().id;
|
|
5568
5622
|
var tmp4_3 = state.c6s().playersConnections;
|
|
5569
5623
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
@@ -5595,7 +5649,7 @@
|
|
|
5595
5649
|
var _iterator__ex2g4s_19 = destination_18.l();
|
|
5596
5650
|
while (_iterator__ex2g4s_19.m()) {
|
|
5597
5651
|
var element_8 = _iterator__ex2g4s_19.n();
|
|
5598
|
-
var tmp0_aid_3 = tmp0_8.
|
|
5652
|
+
var tmp0_aid_3 = tmp0_8.qad_1.h6e();
|
|
5599
5653
|
// Inline function 'kotlin.collections.map' call
|
|
5600
5654
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5601
5655
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_3, 10));
|
|
@@ -5607,7 +5661,7 @@
|
|
|
5607
5661
|
}
|
|
5608
5662
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3, gameCreatorPlayerId_1, element_8, destination_20);
|
|
5609
5663
|
var tmp_0;
|
|
5610
|
-
if (this.
|
|
5664
|
+
if (this.sad_1.pad_1.supportBackwardActions && getPlayer(state.c6s().players, sendToPlayer_8.g7h_1).s6v_1.d70_1) {
|
|
5611
5665
|
tmp_0 = null;
|
|
5612
5666
|
} else {
|
|
5613
5667
|
tmp_0 = mapToClient_10(action_0, sendToPlayer_8);
|
|
@@ -5623,81 +5677,81 @@
|
|
|
5623
5677
|
tmp = destination_19;
|
|
5624
5678
|
} else {
|
|
5625
5679
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
5626
|
-
var tmp0_9 = this.
|
|
5680
|
+
var tmp0_9 = this.sad_1;
|
|
5627
5681
|
var tmp2_4 = state.c6s().id;
|
|
5628
5682
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5629
|
-
var exceptPlayerId = this.
|
|
5630
|
-
var sendToPlayer_9 = new RoomActionPayload(tmp0_9.
|
|
5683
|
+
var exceptPlayerId = this.sad_1.pad_1.supportBackwardActions ? action_0.k95_1 : null;
|
|
5684
|
+
var sendToPlayer_9 = new RoomActionPayload(tmp0_9.qad_1.h6e(), tmp2_4, exceptPlayerId);
|
|
5631
5685
|
var tmp$ret$109 = mapToClient_9(action_0, sendToPlayer_9);
|
|
5632
5686
|
tmp = listOfNotNull(tmp$ret$109);
|
|
5633
5687
|
} else {
|
|
5634
5688
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
5635
|
-
var tmp0_10 = this.
|
|
5689
|
+
var tmp0_10 = this.sad_1;
|
|
5636
5690
|
var tmp2_5 = state.c6s().id;
|
|
5637
5691
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5638
|
-
var exceptPlayerId_0 = this.
|
|
5639
|
-
var sendToPlayer_10 = new RoomActionPayload(tmp0_10.
|
|
5692
|
+
var exceptPlayerId_0 = this.sad_1.pad_1.supportBackwardActions ? action_0.r90_1 : null;
|
|
5693
|
+
var sendToPlayer_10 = new RoomActionPayload(tmp0_10.qad_1.h6e(), tmp2_5, exceptPlayerId_0);
|
|
5640
5694
|
var tmp$ret$111 = mapToClient_8(action_0, sendToPlayer_10);
|
|
5641
5695
|
tmp = listOfNotNull(tmp$ret$111);
|
|
5642
5696
|
} else {
|
|
5643
5697
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
5644
|
-
var tmp0_11 = this.
|
|
5698
|
+
var tmp0_11 = this.sad_1;
|
|
5645
5699
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5646
5700
|
var tableId_4 = state.c6s().id;
|
|
5647
|
-
var sendToPlayer_11 = new RoomActionPayload(tmp0_11.
|
|
5701
|
+
var sendToPlayer_11 = new RoomActionPayload(tmp0_11.qad_1.h6e(), tableId_4, null);
|
|
5648
5702
|
var tmp$ret$113 = mapToClient_7(action_0, sendToPlayer_11);
|
|
5649
5703
|
tmp = listOfNotNull(tmp$ret$113);
|
|
5650
5704
|
} else {
|
|
5651
5705
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
5652
|
-
var tmp0_12 = this.
|
|
5706
|
+
var tmp0_12 = this.sad_1;
|
|
5653
5707
|
var tmp2_6 = state.c6s().id;
|
|
5654
5708
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5655
|
-
var exceptPlayerId_1 = this.
|
|
5656
|
-
var sendToPlayer_12 = new RoomActionPayload(tmp0_12.
|
|
5709
|
+
var exceptPlayerId_1 = this.sad_1.pad_1.supportBackwardActions ? action_0.q95_1 : null;
|
|
5710
|
+
var sendToPlayer_12 = new RoomActionPayload(tmp0_12.qad_1.h6e(), tmp2_6, exceptPlayerId_1);
|
|
5657
5711
|
var tmp$ret$115 = mapToClient_6(action_0, sendToPlayer_12);
|
|
5658
5712
|
tmp = listOfNotNull(tmp$ret$115);
|
|
5659
5713
|
} else {
|
|
5660
5714
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
5661
|
-
var tmp0_13 = this.
|
|
5715
|
+
var tmp0_13 = this.sad_1;
|
|
5662
5716
|
var tmp2_7 = state.c6s().id;
|
|
5663
5717
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5664
|
-
var exceptPlayerId_2 = this.
|
|
5665
|
-
var sendToPlayer_13 = new RoomActionPayload(tmp0_13.
|
|
5718
|
+
var exceptPlayerId_2 = this.sad_1.pad_1.supportBackwardActions ? action_0.x90_1 : null;
|
|
5719
|
+
var sendToPlayer_13 = new RoomActionPayload(tmp0_13.qad_1.h6e(), tmp2_7, exceptPlayerId_2);
|
|
5666
5720
|
var tmp$ret$117 = mapToClient_5(action_0, sendToPlayer_13);
|
|
5667
5721
|
tmp = listOfNotNull(tmp$ret$117);
|
|
5668
5722
|
} else {
|
|
5669
5723
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
5670
|
-
var tmp0_14 = this.
|
|
5724
|
+
var tmp0_14 = this.sad_1;
|
|
5671
5725
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5672
5726
|
var tableId_5 = state.c6s().id;
|
|
5673
|
-
var sendToPlayer_14 = new RoomActionPayload(tmp0_14.
|
|
5727
|
+
var sendToPlayer_14 = new RoomActionPayload(tmp0_14.qad_1.h6e(), tableId_5, null);
|
|
5674
5728
|
var tmp$ret$119 = mapToClient_4(action_0, sendToPlayer_14);
|
|
5675
5729
|
tmp = listOfNotNull(tmp$ret$119);
|
|
5676
5730
|
} else {
|
|
5677
5731
|
if (action_0 instanceof TakeAllRemainingCardsMechanicAction) {
|
|
5678
|
-
var tmp0_15 = this.
|
|
5732
|
+
var tmp0_15 = this.sad_1;
|
|
5679
5733
|
var tmp2_8 = state.c6s().id;
|
|
5680
5734
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5681
|
-
var exceptPlayerId_3 = this.
|
|
5682
|
-
var sendToPlayer_15 = new RoomActionPayload(tmp0_15.
|
|
5735
|
+
var exceptPlayerId_3 = this.sad_1.pad_1.supportBackwardActions ? action_0.s95_1 : null;
|
|
5736
|
+
var sendToPlayer_15 = new RoomActionPayload(tmp0_15.qad_1.h6e(), tmp2_8, exceptPlayerId_3);
|
|
5683
5737
|
var tmp$ret$121 = mapToClient_3(action_0, sendToPlayer_15);
|
|
5684
5738
|
tmp = listOfNotNull(tmp$ret$121);
|
|
5685
5739
|
} else {
|
|
5686
5740
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
5687
|
-
var tmp0_16 = this.
|
|
5741
|
+
var tmp0_16 = this.sad_1;
|
|
5688
5742
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5689
5743
|
var tableId_6 = state.c6s().id;
|
|
5690
|
-
var sendToPlayer_16 = new RoomActionPayload(tmp0_16.
|
|
5744
|
+
var sendToPlayer_16 = new RoomActionPayload(tmp0_16.qad_1.h6e(), tableId_6, null);
|
|
5691
5745
|
var tmp$ret$123 = mapToClient_2(action_0, sendToPlayer_16);
|
|
5692
5746
|
tmp = listOfNotNull(tmp$ret$123);
|
|
5693
5747
|
} else {
|
|
5694
5748
|
if (action_0 instanceof MessageMechanicAction) {
|
|
5695
5749
|
var message = action_0.message;
|
|
5696
|
-
var tmp0_17 = this.
|
|
5750
|
+
var tmp0_17 = this.sad_1;
|
|
5697
5751
|
var tmp2_9 = state.c6s().id;
|
|
5698
5752
|
var tmp_1;
|
|
5699
5753
|
var tmp_2;
|
|
5700
|
-
if (this.
|
|
5754
|
+
if (this.sad_1.pad_1.supportBackwardActions) {
|
|
5701
5755
|
tmp_2 = isInterface(message, UserMessage);
|
|
5702
5756
|
} else {
|
|
5703
5757
|
tmp_2 = false;
|
|
@@ -5709,16 +5763,16 @@
|
|
|
5709
5763
|
}
|
|
5710
5764
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5711
5765
|
var exceptPlayerId_4 = tmp_1;
|
|
5712
|
-
var sendToPlayer_17 = new RoomActionPayload(tmp0_17.
|
|
5766
|
+
var sendToPlayer_17 = new RoomActionPayload(tmp0_17.qad_1.h6e(), tmp2_9, exceptPlayerId_4);
|
|
5713
5767
|
var tmp$ret$125 = mapToClient_1(action_0, sendToPlayer_17);
|
|
5714
5768
|
tmp = listOfNotNull(tmp$ret$125);
|
|
5715
5769
|
} else {
|
|
5716
5770
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
5717
|
-
var tmp0_18 = this.
|
|
5771
|
+
var tmp0_18 = this.sad_1;
|
|
5718
5772
|
var tmp2_10 = state.c6s().id;
|
|
5719
5773
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5720
5774
|
var exceptPlayerId_5 = action_0.playerId;
|
|
5721
|
-
var sendToPlayer_18 = new RoomActionPayload(tmp0_18.
|
|
5775
|
+
var sendToPlayer_18 = new RoomActionPayload(tmp0_18.qad_1.h6e(), tmp2_10, exceptPlayerId_5);
|
|
5722
5776
|
var tmp$ret$127 = mapToClient_0(action_0, sendToPlayer_18);
|
|
5723
5777
|
tmp = listOfNotNull(tmp$ret$127);
|
|
5724
5778
|
} else {
|
|
@@ -5756,11 +5810,11 @@
|
|
|
5756
5810
|
return this.y6h(store, next, action);
|
|
5757
5811
|
};
|
|
5758
5812
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider, playerConnectionInteractor) {
|
|
5759
|
-
this.
|
|
5760
|
-
this.
|
|
5761
|
-
this.
|
|
5813
|
+
this.pad_1 = logicConfig;
|
|
5814
|
+
this.qad_1 = idsProvider;
|
|
5815
|
+
this.rad_1 = playerConnectionInteractor;
|
|
5762
5816
|
}
|
|
5763
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
5817
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).r9a = function () {
|
|
5764
5818
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
5765
5819
|
return new ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1(this);
|
|
5766
5820
|
};
|
|
@@ -5769,8 +5823,8 @@
|
|
|
5769
5823
|
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(logger, playerConnectionInteractor);
|
|
5770
5824
|
}
|
|
5771
5825
|
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($logger, $playerConnectionInteractor) {
|
|
5772
|
-
this.
|
|
5773
|
-
this.
|
|
5826
|
+
this.tad_1 = $logger;
|
|
5827
|
+
this.uad_1 = $playerConnectionInteractor;
|
|
5774
5828
|
}
|
|
5775
5829
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5776
5830
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -5783,13 +5837,13 @@
|
|
|
5783
5837
|
if (!get_isCreated(state)) {
|
|
5784
5838
|
break $l$block_1;
|
|
5785
5839
|
}
|
|
5786
|
-
var player = getPlayer(state.c6s().players, tmp4.
|
|
5787
|
-
if (tmp4.
|
|
5788
|
-
if (player.
|
|
5840
|
+
var player = getPlayer(state.c6s().players, tmp4.z93_1);
|
|
5841
|
+
if (tmp4.y93_1.isVisibleDisconnectedReason) {
|
|
5842
|
+
if (player.q6v_1.d69().n67_1.isDisconnecting) {
|
|
5789
5843
|
break $l$block_1;
|
|
5790
5844
|
}
|
|
5791
|
-
if (player.
|
|
5792
|
-
this.
|
|
5845
|
+
if (player.q6v_1.d69().n67_1.isLeftPermanently) {
|
|
5846
|
+
this.tad_1.w('playerConnectionUpdateMiddleware', "player connection state can't be changed after [playerLeft] is invoked, " + tmp4.toString());
|
|
5793
5847
|
break $l$block_1;
|
|
5794
5848
|
}
|
|
5795
5849
|
}
|
|
@@ -5812,7 +5866,7 @@
|
|
|
5812
5866
|
var _iterator__ex2g4s_0 = destination.l();
|
|
5813
5867
|
while (_iterator__ex2g4s_0.m()) {
|
|
5814
5868
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
5815
|
-
if (element_0.
|
|
5869
|
+
if (element_0.vad_1 === tmp4.z93_1) {
|
|
5816
5870
|
if (found) {
|
|
5817
5871
|
tmp$ret$4 = null;
|
|
5818
5872
|
break $l$block_3;
|
|
@@ -5831,7 +5885,7 @@
|
|
|
5831
5885
|
if (!(reconnectionTimerTag == null)) {
|
|
5832
5886
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
5833
5887
|
}
|
|
5834
|
-
var actions = this.
|
|
5888
|
+
var actions = this.uad_1.lac(tmp4.y93_1, player.q6v_1.d69().n67_1, player, store.state.c6s(), tmp4.b94_1);
|
|
5835
5889
|
// Inline function 'kotlin.collections.forEach' call
|
|
5836
5890
|
var _iterator__ex2g4s_1 = actions.l();
|
|
5837
5891
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -5848,17 +5902,17 @@
|
|
|
5848
5902
|
return new playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5849
5903
|
}
|
|
5850
5904
|
function PlayerReconnectionWaitingTimerTag(playerId, state, previousState) {
|
|
5851
|
-
this.
|
|
5852
|
-
this.
|
|
5853
|
-
this.
|
|
5905
|
+
this.vad_1 = playerId;
|
|
5906
|
+
this.wad_1 = state;
|
|
5907
|
+
this.xad_1 = previousState;
|
|
5854
5908
|
}
|
|
5855
5909
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
5856
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
5910
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.vad_1 + ', state=' + this.wad_1.toString() + ', previousState=' + this.xad_1.toString() + ')';
|
|
5857
5911
|
};
|
|
5858
5912
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
5859
|
-
var result = getStringHashCode(this.
|
|
5860
|
-
result = imul(result, 31) + this.
|
|
5861
|
-
result = imul(result, 31) + this.
|
|
5913
|
+
var result = getStringHashCode(this.vad_1);
|
|
5914
|
+
result = imul(result, 31) + this.wad_1.hashCode() | 0;
|
|
5915
|
+
result = imul(result, 31) + this.xad_1.hashCode() | 0;
|
|
5862
5916
|
return result;
|
|
5863
5917
|
};
|
|
5864
5918
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -5866,16 +5920,16 @@
|
|
|
5866
5920
|
return true;
|
|
5867
5921
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
5868
5922
|
return false;
|
|
5869
|
-
if (!(this.
|
|
5923
|
+
if (!(this.vad_1 === other.vad_1))
|
|
5870
5924
|
return false;
|
|
5871
|
-
if (!this.
|
|
5925
|
+
if (!this.wad_1.equals(other.wad_1))
|
|
5872
5926
|
return false;
|
|
5873
|
-
if (!this.
|
|
5927
|
+
if (!this.xad_1.equals(other.xad_1))
|
|
5874
5928
|
return false;
|
|
5875
5929
|
return true;
|
|
5876
5930
|
};
|
|
5877
5931
|
function playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5878
|
-
this.
|
|
5932
|
+
this.yad_1 = $playerConnectionInteractor;
|
|
5879
5933
|
}
|
|
5880
5934
|
protoOf(playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5881
5935
|
return action instanceof TimerTickAction;
|
|
@@ -5889,8 +5943,8 @@
|
|
|
5889
5943
|
var timerTag = tmp4.f6g_1;
|
|
5890
5944
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
5891
5945
|
var state = store.state;
|
|
5892
|
-
var player = getPlayer(state.c6s().players, timerTag.
|
|
5893
|
-
var actions = this.
|
|
5946
|
+
var player = getPlayer(state.c6s().players, timerTag.vad_1);
|
|
5947
|
+
var actions = this.yad_1.lac(timerTag.wad_1, timerTag.xad_1, player, state.c6s(), true);
|
|
5894
5948
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5895
5949
|
if (!actions.r()) {
|
|
5896
5950
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -5912,7 +5966,7 @@
|
|
|
5912
5966
|
return new playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5913
5967
|
}
|
|
5914
5968
|
function playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5915
|
-
this.
|
|
5969
|
+
this.zad_1 = $playerConnectionInteractor;
|
|
5916
5970
|
}
|
|
5917
5971
|
protoOf(playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5918
5972
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -5928,7 +5982,7 @@
|
|
|
5928
5982
|
var _iterator__ex2g4s = tmp0.l();
|
|
5929
5983
|
while (_iterator__ex2g4s.m()) {
|
|
5930
5984
|
var element = _iterator__ex2g4s.n();
|
|
5931
|
-
if (!(connectedPlayers.u1(element.playerId) || element.
|
|
5985
|
+
if (!(connectedPlayers.u1(element.playerId) || element.p6v_1.isBot)) {
|
|
5932
5986
|
destination.j(element);
|
|
5933
5987
|
}
|
|
5934
5988
|
}
|
|
@@ -5937,10 +5991,10 @@
|
|
|
5937
5991
|
while (_iterator__ex2g4s_0.m()) {
|
|
5938
5992
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
5939
5993
|
var tmp0_newConnectionState = PlayerConnectionState_WAITING_getInstance();
|
|
5940
|
-
var tmp1_previousConnectionState = element_0.
|
|
5994
|
+
var tmp1_previousConnectionState = element_0.q6v_1.d69().n67_1;
|
|
5941
5995
|
var tmp2_playerId = element_0.playerId;
|
|
5942
5996
|
// Inline function 'kotlin.collections.forEach' call
|
|
5943
|
-
var _iterator__ex2g4s_1 = this.
|
|
5997
|
+
var _iterator__ex2g4s_1 = this.zad_1.mac(tmp2_playerId, tmp0_newConnectionState, tmp1_previousConnectionState).l();
|
|
5944
5998
|
while (_iterator__ex2g4s_1.m()) {
|
|
5945
5999
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
5946
6000
|
store.dispatch(element_1);
|
|
@@ -5955,8 +6009,8 @@
|
|
|
5955
6009
|
return new sendToClientActionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, provider);
|
|
5956
6010
|
}
|
|
5957
6011
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
5958
|
-
this.
|
|
5959
|
-
this.
|
|
6012
|
+
this.iae_1 = $provider;
|
|
6013
|
+
this.jae_1 = $action;
|
|
5960
6014
|
CoroutineImpl.call(this, resultContinuation);
|
|
5961
6015
|
}
|
|
5962
6016
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -5977,7 +6031,7 @@
|
|
|
5977
6031
|
case 0:
|
|
5978
6032
|
this.t8_1 = 2;
|
|
5979
6033
|
this.s8_1 = 1;
|
|
5980
|
-
suspendResult = this.
|
|
6034
|
+
suspendResult = this.iae_1.faa(this.jae_1, this);
|
|
5981
6035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5982
6036
|
return suspendResult;
|
|
5983
6037
|
}
|
|
@@ -6000,8 +6054,8 @@
|
|
|
6000
6054
|
while (true);
|
|
6001
6055
|
};
|
|
6002
6056
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).d2d = function ($this$launchDefault, completion) {
|
|
6003
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
6004
|
-
i.
|
|
6057
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.iae_1, this.jae_1, completion);
|
|
6058
|
+
i.kae_1 = $this$launchDefault;
|
|
6005
6059
|
return i;
|
|
6006
6060
|
};
|
|
6007
6061
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -6013,15 +6067,15 @@
|
|
|
6013
6067
|
return l;
|
|
6014
6068
|
}
|
|
6015
6069
|
function sendToClientActionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $provider) {
|
|
6016
|
-
this.
|
|
6017
|
-
this.
|
|
6070
|
+
this.lae_1 = $asyncProvider;
|
|
6071
|
+
this.mae_1 = $provider;
|
|
6018
6072
|
}
|
|
6019
6073
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
6020
6074
|
return action instanceof ToClientAction;
|
|
6021
6075
|
};
|
|
6022
6076
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).y6h = function (store, next, action) {
|
|
6023
6077
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
6024
|
-
this.
|
|
6078
|
+
this.lae_1.m6c(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.mae_1, action_0, null));
|
|
6025
6079
|
next(action_0);
|
|
6026
6080
|
};
|
|
6027
6081
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).i6g = function (store, next, action) {
|
|
@@ -6032,11 +6086,11 @@
|
|
|
6032
6086
|
return new playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
6033
6087
|
}
|
|
6034
6088
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
6035
|
-
this.
|
|
6036
|
-
this.
|
|
6037
|
-
this.
|
|
6038
|
-
this.
|
|
6039
|
-
this.
|
|
6089
|
+
this.vae_1 = $store;
|
|
6090
|
+
this.wae_1 = $timerTag;
|
|
6091
|
+
this.xae_1 = $serverConfig;
|
|
6092
|
+
this.yae_1 = $logger;
|
|
6093
|
+
this.zae_1 = $action;
|
|
6040
6094
|
CoroutineImpl.call(this, resultContinuation);
|
|
6041
6095
|
}
|
|
6042
6096
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).c2d = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -6055,13 +6109,13 @@
|
|
|
6055
6109
|
var tmp = this.s8_1;
|
|
6056
6110
|
if (tmp === 0) {
|
|
6057
6111
|
this.t8_1 = 1;
|
|
6058
|
-
var table = this.
|
|
6059
|
-
var player = getPlayer(table.players, this.
|
|
6060
|
-
var connectionState = player.
|
|
6112
|
+
var table = this.vae_1.state.c6s();
|
|
6113
|
+
var player = getPlayer(table.players, this.wae_1.z65());
|
|
6114
|
+
var connectionState = player.q6v_1.d69().n67_1;
|
|
6061
6115
|
var tmp_0;
|
|
6062
6116
|
switch (connectionState.q2_1) {
|
|
6063
6117
|
case 1:
|
|
6064
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, VOID, this.
|
|
6118
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, VOID, this.wae_1.n9h_1));
|
|
6065
6119
|
break;
|
|
6066
6120
|
case 6:
|
|
6067
6121
|
tmp_0 = emptyList();
|
|
@@ -6071,8 +6125,8 @@
|
|
|
6071
6125
|
case 3:
|
|
6072
6126
|
case 2:
|
|
6073
6127
|
var tmp_1;
|
|
6074
|
-
if (table.sceneInfo.
|
|
6075
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, VOID, this.
|
|
6128
|
+
if (table.sceneInfo.n7g() && this.xae_1.closeIfBotsAtFinish) {
|
|
6129
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, VOID, this.wae_1.n9h_1);
|
|
6076
6130
|
} else {
|
|
6077
6131
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
6078
6132
|
}
|
|
@@ -6081,7 +6135,7 @@
|
|
|
6081
6135
|
break;
|
|
6082
6136
|
case 0:
|
|
6083
6137
|
case 7:
|
|
6084
|
-
this.
|
|
6138
|
+
this.yae_1.w('playerTurnTimeoutWhenHasConnectionMiddleware', "Can't support this state " + connectionState.toString() + ', ' + ('action:' + this.zae_1.toString()));
|
|
6085
6139
|
tmp_0 = emptyList();
|
|
6086
6140
|
break;
|
|
6087
6141
|
default:
|
|
@@ -6093,7 +6147,7 @@
|
|
|
6093
6147
|
var _iterator__ex2g4s = actions.l();
|
|
6094
6148
|
while (_iterator__ex2g4s.m()) {
|
|
6095
6149
|
var element = _iterator__ex2g4s.n();
|
|
6096
|
-
this.
|
|
6150
|
+
this.vae_1.dispatch(element);
|
|
6097
6151
|
}
|
|
6098
6152
|
}
|
|
6099
6153
|
return Unit_instance;
|
|
@@ -6107,8 +6161,8 @@
|
|
|
6107
6161
|
while (true);
|
|
6108
6162
|
};
|
|
6109
6163
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).d2d = function ($this$launchDefaultWithLock, completion) {
|
|
6110
|
-
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.
|
|
6111
|
-
i.
|
|
6164
|
+
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.vae_1, this.wae_1, this.xae_1, this.yae_1, this.zae_1, completion);
|
|
6165
|
+
i.aaf_1 = $this$launchDefaultWithLock;
|
|
6112
6166
|
return i;
|
|
6113
6167
|
};
|
|
6114
6168
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -6120,9 +6174,9 @@
|
|
|
6120
6174
|
return l;
|
|
6121
6175
|
}
|
|
6122
6176
|
function playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
6123
|
-
this.
|
|
6124
|
-
this.
|
|
6125
|
-
this.
|
|
6177
|
+
this.baf_1 = $asyncProvider;
|
|
6178
|
+
this.caf_1 = $serverConfig;
|
|
6179
|
+
this.daf_1 = $logger;
|
|
6126
6180
|
}
|
|
6127
6181
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
6128
6182
|
return action instanceof TimerTickAction;
|
|
@@ -6131,7 +6185,7 @@
|
|
|
6131
6185
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
6132
6186
|
var timerTag = action_0.f6g_1;
|
|
6133
6187
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
6134
|
-
this.
|
|
6188
|
+
this.baf_1.o6c(VOID, playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0(store, timerTag, this.caf_1, this.daf_1, action_0, null));
|
|
6135
6189
|
}
|
|
6136
6190
|
next(action_0);
|
|
6137
6191
|
};
|
|
@@ -6147,19 +6201,19 @@
|
|
|
6147
6201
|
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).j6g = function (action) {
|
|
6148
6202
|
return action instanceof UpdateServerConfigAction;
|
|
6149
6203
|
};
|
|
6150
|
-
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).
|
|
6204
|
+
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).w9j = function (state, action) {
|
|
6151
6205
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
6152
|
-
return state.
|
|
6206
|
+
return state.r93(VOID, get_serverStatePayload_0(state).copy(action_0.tac_1));
|
|
6153
6207
|
};
|
|
6154
6208
|
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).z6h = function (state, action) {
|
|
6155
|
-
return this.
|
|
6209
|
+
return this.w9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6156
6210
|
};
|
|
6157
6211
|
function addRoomMetadata($this, _this__u8e3s4, gameId) {
|
|
6158
6212
|
_this__u8e3s4.metadata.addGame(gameId, new GameMetadata(gameId));
|
|
6159
6213
|
return _this__u8e3s4.metadata;
|
|
6160
6214
|
}
|
|
6161
6215
|
function Companion_5() {
|
|
6162
|
-
this.
|
|
6216
|
+
this.eaf_1 = 'ServerMechanicLifecycleReducer';
|
|
6163
6217
|
}
|
|
6164
6218
|
var Companion_instance_15;
|
|
6165
6219
|
function Companion_getInstance_6() {
|
|
@@ -6167,31 +6221,31 @@
|
|
|
6167
6221
|
}
|
|
6168
6222
|
function ServerMechanicLifecycleReducer$onStart$lambda(this$0, $updatedServerPayload) {
|
|
6169
6223
|
return function (it) {
|
|
6170
|
-
return Companion_instance_4.z68(this$0.
|
|
6224
|
+
return Companion_instance_4.z68(this$0.iaf_1.nac(it.isBot, it.n66_1, $updatedServerPayload.connectedPlayers));
|
|
6171
6225
|
};
|
|
6172
6226
|
}
|
|
6173
6227
|
function ServerMechanicLifecycleReducer(logger, connectionInteractor, tableLifecycleReducer, randomPoolProvider) {
|
|
6174
6228
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
6175
|
-
this.
|
|
6176
|
-
this.
|
|
6229
|
+
this.haf_1 = logger;
|
|
6230
|
+
this.iaf_1 = connectionInteractor;
|
|
6177
6231
|
}
|
|
6178
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6232
|
+
protoOf(ServerMechanicLifecycleReducer).n9l = function (state, action) {
|
|
6179
6233
|
var serverState = get_serverStatePayload_0(state);
|
|
6180
|
-
this.
|
|
6181
|
-
var tableId = action.
|
|
6234
|
+
this.haf_1.d('ServerMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance) + ', connectedPlayers: ' + toString(serverState.connectedPlayers), action);
|
|
6235
|
+
var tableId = action.r94_1;
|
|
6182
6236
|
var updatedServerPayload = serverState.copy(VOID, addRoomMetadata(this, serverState, tableId));
|
|
6183
6237
|
var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6184
|
-
var tmp0_$this = this.
|
|
6185
|
-
var tmp1_version = action.
|
|
6186
|
-
var tmp2_config = action.
|
|
6187
|
-
var tmp3_users = action.
|
|
6238
|
+
var tmp0_$this = this.o9l_1;
|
|
6239
|
+
var tmp1_version = action.s94_1;
|
|
6240
|
+
var tmp2_config = action.q94_1;
|
|
6241
|
+
var tmp3_users = action.u94_1;
|
|
6188
6242
|
var tmp4_spectators = action.spectators;
|
|
6189
|
-
var tmp5_gameCreatorPlayerId = action.
|
|
6190
|
-
var tmp7_tableOrNull = tmp0_$this.
|
|
6191
|
-
return state.
|
|
6243
|
+
var tmp5_gameCreatorPlayerId = action.t94_1;
|
|
6244
|
+
var tmp7_tableOrNull = tmp0_$this.w9m(tableId, tableId, tmp2_config, tmp1_version, tmp3_users, tmp4_spectators, tmp5_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(this, updatedServerPayload));
|
|
6245
|
+
return state.r93(tmp7_tableOrNull, updatedServerPayload, tmp6_gameLifecycleState);
|
|
6192
6246
|
};
|
|
6193
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6194
|
-
this.
|
|
6247
|
+
protoOf(ServerMechanicLifecycleReducer).l9l = function (state, action) {
|
|
6248
|
+
this.haf_1.d('ServerMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
6195
6249
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6196
6250
|
var tmp2_tableOrNull = action.table;
|
|
6197
6251
|
var tmp = Companion_instance_16;
|
|
@@ -6199,32 +6253,32 @@
|
|
|
6199
6253
|
var tmp_1 = action.reason;
|
|
6200
6254
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
6201
6255
|
var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j65_1), addRoomMetadata(this, get_serverStatePayload_0(state), action.table.gameId));
|
|
6202
|
-
return state.
|
|
6256
|
+
return state.r93(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
6203
6257
|
};
|
|
6204
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6205
|
-
this.
|
|
6258
|
+
protoOf(ServerMechanicLifecycleReducer).m9l = function (state, action) {
|
|
6259
|
+
this.p9l_1.o58(action.previousGameId);
|
|
6206
6260
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6207
|
-
var tmp1_tableOrNull = this.
|
|
6261
|
+
var tmp1_tableOrNull = this.o9l_1.x9m(state.c6s(), action.gameId);
|
|
6208
6262
|
var tmp2_payload = get_serverStatePayload_0(state).copy(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), action.gameId));
|
|
6209
|
-
return state.
|
|
6263
|
+
return state.r93(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState);
|
|
6210
6264
|
};
|
|
6211
6265
|
function spectatorsReducer(logger) {
|
|
6212
6266
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
6213
6267
|
return new spectatorsReducer$$inlined$reducerForActionType$1(logger);
|
|
6214
6268
|
}
|
|
6215
6269
|
function spectatorsReducer$$inlined$reducerForActionType$1($logger) {
|
|
6216
|
-
this.
|
|
6270
|
+
this.jaf_1 = $logger;
|
|
6217
6271
|
}
|
|
6218
6272
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).j6g = function (action) {
|
|
6219
6273
|
return isInterface(action, SpectatorsAction);
|
|
6220
6274
|
};
|
|
6221
|
-
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).
|
|
6275
|
+
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).w9j = function (state, action) {
|
|
6222
6276
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
6223
6277
|
var table = state.c6s();
|
|
6224
6278
|
var tmp;
|
|
6225
6279
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
6226
6280
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
6227
|
-
var tmp0 = action_0.
|
|
6281
|
+
var tmp0 = action_0.uac_1;
|
|
6228
6282
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
6229
6283
|
var destination = ArrayList_init_$Create$_0();
|
|
6230
6284
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -6243,9 +6297,9 @@
|
|
|
6243
6297
|
var tmp_0;
|
|
6244
6298
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6245
6299
|
if (!sameSpectators.r()) {
|
|
6246
|
-
this.
|
|
6300
|
+
this.jaf_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
6247
6301
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6248
|
-
var tmp0_0 = action_0.
|
|
6302
|
+
var tmp0_0 = action_0.uac_1;
|
|
6249
6303
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
6250
6304
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
6251
6305
|
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
@@ -6280,7 +6334,7 @@
|
|
|
6280
6334
|
}
|
|
6281
6335
|
tmp_0 = destination_0;
|
|
6282
6336
|
} else {
|
|
6283
|
-
tmp_0 = action_0.
|
|
6337
|
+
tmp_0 = action_0.uac_1;
|
|
6284
6338
|
}
|
|
6285
6339
|
// Inline function 'kotlin.collections.map' call
|
|
6286
6340
|
var this_0 = tmp_0;
|
|
@@ -6293,11 +6347,11 @@
|
|
|
6293
6347
|
destination_1.j(tmp$ret$13);
|
|
6294
6348
|
}
|
|
6295
6349
|
var spectatorsToAdd = toSet(destination_1);
|
|
6296
|
-
tmp = state.
|
|
6350
|
+
tmp = state.r93(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
6297
6351
|
} else {
|
|
6298
6352
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
6299
6353
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
6300
|
-
var tmp0_1 = action_0.
|
|
6354
|
+
var tmp0_1 = action_0.vac_1;
|
|
6301
6355
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
6302
6356
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
6303
6357
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -6316,9 +6370,9 @@
|
|
|
6316
6370
|
var tmp_2;
|
|
6317
6371
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6318
6372
|
if (!sameSpectators_0.r()) {
|
|
6319
|
-
this.
|
|
6373
|
+
this.jaf_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
6320
6374
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6321
|
-
var tmp0_2 = action_0.
|
|
6375
|
+
var tmp0_2 = action_0.vac_1;
|
|
6322
6376
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
6323
6377
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
6324
6378
|
var _iterator__ex2g4s_4 = tmp0_2.l();
|
|
@@ -6353,7 +6407,7 @@
|
|
|
6353
6407
|
}
|
|
6354
6408
|
tmp_2 = destination_3;
|
|
6355
6409
|
} else {
|
|
6356
|
-
tmp_2 = action_0.
|
|
6410
|
+
tmp_2 = action_0.vac_1;
|
|
6357
6411
|
}
|
|
6358
6412
|
var spectatorsToRemove = toSet(tmp_2);
|
|
6359
6413
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -6390,7 +6444,7 @@
|
|
|
6390
6444
|
destination_4.j(element_5);
|
|
6391
6445
|
}
|
|
6392
6446
|
}
|
|
6393
|
-
tmp = state.
|
|
6447
|
+
tmp = state.r93(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
6394
6448
|
} else {
|
|
6395
6449
|
noWhenBranchMatchedException();
|
|
6396
6450
|
}
|
|
@@ -6398,7 +6452,7 @@
|
|
|
6398
6452
|
return tmp;
|
|
6399
6453
|
};
|
|
6400
6454
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).z6h = function (state, action) {
|
|
6401
|
-
return this.
|
|
6455
|
+
return this.w9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6402
6456
|
};
|
|
6403
6457
|
function playerConnectionUpdateReducer() {
|
|
6404
6458
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -6409,29 +6463,29 @@
|
|
|
6409
6463
|
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).j6g = function (action) {
|
|
6410
6464
|
return action instanceof PlayerConnectionUpdateAction;
|
|
6411
6465
|
};
|
|
6412
|
-
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).
|
|
6466
|
+
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).w9j = function (state, action) {
|
|
6413
6467
|
var action_0 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
6414
6468
|
var statePayload = get_serverStatePayload_0(state);
|
|
6415
6469
|
var tmp;
|
|
6416
|
-
if (action_0.
|
|
6417
|
-
tmp = state.
|
|
6470
|
+
if (action_0.y93_1.isLive) {
|
|
6471
|
+
tmp = state.r93(VOID, statePayload.copy(VOID, VOID, plus_0(statePayload.connectedPlayers, action_0.z93_1)));
|
|
6418
6472
|
} else {
|
|
6419
6473
|
tmp = state;
|
|
6420
6474
|
}
|
|
6421
6475
|
return tmp;
|
|
6422
6476
|
};
|
|
6423
6477
|
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).z6h = function (state, action) {
|
|
6424
|
-
return this.
|
|
6478
|
+
return this.w9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6425
6479
|
};
|
|
6426
6480
|
function Companion_6() {
|
|
6427
6481
|
}
|
|
6428
|
-
protoOf(Companion_6).
|
|
6482
|
+
protoOf(Companion_6).kaf = function (config, metadata) {
|
|
6429
6483
|
return new ServerStatePayload(config, metadata, emptyList());
|
|
6430
6484
|
};
|
|
6431
6485
|
protoOf(Companion_6).initial = function (config, metadata, $super) {
|
|
6432
6486
|
config = config === VOID ? Companion_instance_10.initial(null) : config;
|
|
6433
6487
|
metadata = metadata === VOID ? new RoomMetadata() : metadata;
|
|
6434
|
-
return $super === VOID ? this.
|
|
6488
|
+
return $super === VOID ? this.kaf(config, metadata) : $super.kaf.call(this, config, metadata);
|
|
6435
6489
|
};
|
|
6436
6490
|
var Companion_instance_16;
|
|
6437
6491
|
function Companion_getInstance_7() {
|
|
@@ -6445,10 +6499,10 @@
|
|
|
6445
6499
|
protoOf(ServerStatePayload).a3t = function () {
|
|
6446
6500
|
return this.config;
|
|
6447
6501
|
};
|
|
6448
|
-
protoOf(ServerStatePayload).
|
|
6502
|
+
protoOf(ServerStatePayload).x8m = function () {
|
|
6449
6503
|
return this.metadata;
|
|
6450
6504
|
};
|
|
6451
|
-
protoOf(ServerStatePayload).
|
|
6505
|
+
protoOf(ServerStatePayload).laf = function () {
|
|
6452
6506
|
return this.connectedPlayers;
|
|
6453
6507
|
};
|
|
6454
6508
|
protoOf(ServerStatePayload).oe = function () {
|
|
@@ -6460,14 +6514,14 @@
|
|
|
6460
6514
|
protoOf(ServerStatePayload).yl = function () {
|
|
6461
6515
|
return this.connectedPlayers;
|
|
6462
6516
|
};
|
|
6463
|
-
protoOf(ServerStatePayload).
|
|
6517
|
+
protoOf(ServerStatePayload).maf = function (config, metadata, connectedPlayers) {
|
|
6464
6518
|
return new ServerStatePayload(config, metadata, connectedPlayers);
|
|
6465
6519
|
};
|
|
6466
6520
|
protoOf(ServerStatePayload).copy = function (config, metadata, connectedPlayers, $super) {
|
|
6467
6521
|
config = config === VOID ? this.config : config;
|
|
6468
6522
|
metadata = metadata === VOID ? this.metadata : metadata;
|
|
6469
6523
|
connectedPlayers = connectedPlayers === VOID ? this.connectedPlayers : connectedPlayers;
|
|
6470
|
-
return $super === VOID ? this.
|
|
6524
|
+
return $super === VOID ? this.maf(config, metadata, connectedPlayers) : $super.maf.call(this, config, metadata, connectedPlayers);
|
|
6471
6525
|
};
|
|
6472
6526
|
protoOf(ServerStatePayload).toString = function () {
|
|
6473
6527
|
return 'ServerStatePayload(config=' + this.config.toString() + ', metadata=' + toString(this.metadata) + ', connectedPlayers=' + toString(this.connectedPlayers) + ')';
|
|
@@ -6515,7 +6569,7 @@
|
|
|
6515
6569
|
return new ServerLoggerKey(_this__u8e3s4.gameId);
|
|
6516
6570
|
}
|
|
6517
6571
|
function serverLoggerKeyFromPayload(_this__u8e3s4, payload) {
|
|
6518
|
-
var gameId = Companion_instance_5.
|
|
6572
|
+
var gameId = Companion_instance_5.y9o(payload);
|
|
6519
6573
|
var tmp;
|
|
6520
6574
|
if (!(gameId == null)) {
|
|
6521
6575
|
tmp = new ServerLoggerKey(gameId);
|
|
@@ -6532,14 +6586,14 @@
|
|
|
6532
6586
|
return new GameServerEngineControllerImpl(loggerCallback, randomOrgConfig);
|
|
6533
6587
|
}
|
|
6534
6588
|
function _get_logger__rkp4sl_0($this) {
|
|
6535
|
-
var tmp0 = $this.
|
|
6589
|
+
var tmp0 = $this.waf_1;
|
|
6536
6590
|
var tmp = KProperty1;
|
|
6537
6591
|
// Inline function 'kotlin.getValue' call
|
|
6538
6592
|
getPropertyCallableRef('logger', 1, tmp, GameServerEngineControllerImpl$_get_logger_$ref_b9j0th(), null);
|
|
6539
6593
|
return tmp0.x();
|
|
6540
6594
|
}
|
|
6541
6595
|
function _get_di__ndbzja($this) {
|
|
6542
|
-
var tmp0 = $this.
|
|
6596
|
+
var tmp0 = $this.xaf_1;
|
|
6543
6597
|
var tmp = KProperty1;
|
|
6544
6598
|
// Inline function 'kotlin.getValue' call
|
|
6545
6599
|
getPropertyCallableRef('di', 1, tmp, GameServerEngineControllerImpl$_get_di_$ref_cvlqo6(), null);
|
|
@@ -6556,8 +6610,8 @@
|
|
|
6556
6610
|
}
|
|
6557
6611
|
function createCallbackOutput($this, gameServer) {
|
|
6558
6612
|
var tmp;
|
|
6559
|
-
if (!($this.
|
|
6560
|
-
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.
|
|
6613
|
+
if (!($this.uaf_1 == null)) {
|
|
6614
|
+
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.uaf_1);
|
|
6561
6615
|
tmp = new CallbackWrapperLoggerOutput(tmp_0, GameServerEngineControllerImpl$createCallbackOutput$lambda(gameServer));
|
|
6562
6616
|
} else {
|
|
6563
6617
|
tmp = null;
|
|
@@ -6571,11 +6625,11 @@
|
|
|
6571
6625
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
6572
6626
|
return function () {
|
|
6573
6627
|
var tmp;
|
|
6574
|
-
if (this$0.
|
|
6628
|
+
if (this$0.uaf_1 == null) {
|
|
6575
6629
|
tmp = null;
|
|
6576
6630
|
} else {
|
|
6577
6631
|
// Inline function 'kotlin.let' call
|
|
6578
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
6632
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.uaf_1)]));
|
|
6579
6633
|
}
|
|
6580
6634
|
var tmp1_elvis_lhs = tmp;
|
|
6581
6635
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -6608,7 +6662,7 @@
|
|
|
6608
6662
|
tmp_0.d63(tmp$ret$3);
|
|
6609
6663
|
$this$DI.h5z(jsonModule());
|
|
6610
6664
|
$this$DI.h5z(serverHelpersModule());
|
|
6611
|
-
$this$DI.h5z(randomOrgModule(this$0.
|
|
6665
|
+
$this$DI.h5z(randomOrgModule(this$0.vaf_1));
|
|
6612
6666
|
return Unit_instance;
|
|
6613
6667
|
};
|
|
6614
6668
|
}
|
|
@@ -6684,16 +6738,16 @@
|
|
|
6684
6738
|
};
|
|
6685
6739
|
}
|
|
6686
6740
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1($reducer) {
|
|
6687
|
-
this.
|
|
6741
|
+
this.eag_1 = $reducer;
|
|
6688
6742
|
}
|
|
6689
6743
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).j6g = function (action) {
|
|
6690
6744
|
return isInterface(action, Action);
|
|
6691
6745
|
};
|
|
6692
|
-
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).
|
|
6693
|
-
return this.
|
|
6746
|
+
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).w9j = function (state, action) {
|
|
6747
|
+
return this.eag_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
6694
6748
|
};
|
|
6695
6749
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).z6h = function (state, action) {
|
|
6696
|
-
return this.
|
|
6750
|
+
return this.w9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6697
6751
|
};
|
|
6698
6752
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($gameServer) {
|
|
6699
6753
|
return function () {
|
|
@@ -6773,7 +6827,7 @@
|
|
|
6773
6827
|
}
|
|
6774
6828
|
function GameServerEngineControllerImpl$createCallbackOutput$lambda($gameServer) {
|
|
6775
6829
|
return function (it) {
|
|
6776
|
-
var payload = Companion_instance_7.
|
|
6830
|
+
var payload = Companion_instance_7.k9n(it);
|
|
6777
6831
|
var tmp;
|
|
6778
6832
|
if (!(payload == null)) {
|
|
6779
6833
|
return payload;
|
|
@@ -6794,7 +6848,7 @@
|
|
|
6794
6848
|
// Inline function 'kotlin.let' call
|
|
6795
6849
|
$this$DI.h5z(tmp0_safe_receiver);
|
|
6796
6850
|
}
|
|
6797
|
-
$this$DI.h5z(dealerModule(this$0.randomPoolProvider, this$0.
|
|
6851
|
+
$this$DI.h5z(dealerModule(this$0.randomPoolProvider, this$0.vaf_1));
|
|
6798
6852
|
$this$DI.h5z(coreModule($coreConfig));
|
|
6799
6853
|
$this$DI.h5z(createGameServerDI($serverConfig, $logicConfig, $engineBotConfig, $dealerConfig, $ratingConfig, $externalReducers, $externalMiddlewares));
|
|
6800
6854
|
return Unit_instance;
|
|
@@ -6803,8 +6857,8 @@
|
|
|
6803
6857
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
6804
6858
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
6805
6859
|
production = production === VOID ? true : production;
|
|
6806
|
-
this.
|
|
6807
|
-
this.
|
|
6860
|
+
this.uaf_1 = loggerCallback;
|
|
6861
|
+
this.vaf_1 = randomOrgConfig;
|
|
6808
6862
|
var tmp = AppEnvironment_getInstance();
|
|
6809
6863
|
var tmp_0;
|
|
6810
6864
|
if (production) {
|
|
@@ -6814,9 +6868,9 @@
|
|
|
6814
6868
|
}
|
|
6815
6869
|
tmp.g6m(tmp_0);
|
|
6816
6870
|
var tmp_1 = this;
|
|
6817
|
-
tmp_1.
|
|
6871
|
+
tmp_1.waf_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
6818
6872
|
var tmp_2 = this;
|
|
6819
|
-
tmp_2.
|
|
6873
|
+
tmp_2.xaf_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
6820
6874
|
var tmp_3 = this;
|
|
6821
6875
|
// Inline function 'org.kodein.di.instance' call
|
|
6822
6876
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -6825,7 +6879,7 @@
|
|
|
6825
6879
|
var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
6826
6880
|
var tmp_5 = Instance(this_0, tmp$ret$0, null);
|
|
6827
6881
|
var tmp_6 = KProperty1;
|
|
6828
|
-
tmp_3.
|
|
6882
|
+
tmp_3.yaf_1 = tmp_5.a65(this, getPropertyCallableRef('parser', 1, tmp_6, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w(), null));
|
|
6829
6883
|
var tmp_7 = this;
|
|
6830
6884
|
// Inline function 'org.kodein.di.instance' call
|
|
6831
6885
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -6834,7 +6888,7 @@
|
|
|
6834
6888
|
var tmp$ret$2 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
6835
6889
|
var tmp_9 = Instance(this_1, tmp$ret$2, null);
|
|
6836
6890
|
var tmp_10 = KProperty1;
|
|
6837
|
-
tmp_7.
|
|
6891
|
+
tmp_7.zaf_1 = tmp_9.a65(this, getPropertyCallableRef('helper', 1, tmp_10, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f(), null));
|
|
6838
6892
|
var tmp_11 = this;
|
|
6839
6893
|
// Inline function 'org.kodein.di.instance' call
|
|
6840
6894
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -6843,7 +6897,7 @@
|
|
|
6843
6897
|
var tmp$ret$4 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
6844
6898
|
var tmp_13 = Instance(this_2, tmp$ret$4, null);
|
|
6845
6899
|
var tmp_14 = KProperty1;
|
|
6846
|
-
tmp_11.
|
|
6900
|
+
tmp_11.aag_1 = tmp_13.a65(this, getPropertyCallableRef('serverHelper', 1, tmp_14, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre(), null));
|
|
6847
6901
|
var tmp_15 = this;
|
|
6848
6902
|
// Inline function 'org.kodein.di.instance' call
|
|
6849
6903
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -6852,7 +6906,7 @@
|
|
|
6852
6906
|
var tmp$ret$6 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
6853
6907
|
var tmp_17 = Instance(this_3, tmp$ret$6, null);
|
|
6854
6908
|
var tmp_18 = KProperty1;
|
|
6855
|
-
tmp_15.
|
|
6909
|
+
tmp_15.bag_1 = tmp_17.a65(this, getPropertyCallableRef('resources', 1, tmp_18, GameServerEngineControllerImpl$_get_resources_$ref_dt6416(), null));
|
|
6856
6910
|
var tmp_19 = this;
|
|
6857
6911
|
// Inline function 'org.kodein.di.instance' call
|
|
6858
6912
|
var this_4 = _get_di__ndbzja(this);
|
|
@@ -6861,7 +6915,7 @@
|
|
|
6861
6915
|
var tmp$ret$8 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
6862
6916
|
var tmp_21 = Instance(this_4, tmp$ret$8, null);
|
|
6863
6917
|
var tmp_22 = KProperty1;
|
|
6864
|
-
tmp_19.
|
|
6918
|
+
tmp_19.cag_1 = tmp_21.a65(this, getPropertyCallableRef('test', 1, tmp_22, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5(), null));
|
|
6865
6919
|
var tmp_23 = this;
|
|
6866
6920
|
// Inline function 'org.kodein.di.instance' call
|
|
6867
6921
|
var this_5 = _get_di__ndbzja(this);
|
|
@@ -6870,45 +6924,45 @@
|
|
|
6870
6924
|
var tmp$ret$10 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
6871
6925
|
var tmp_25 = Instance(this_5, tmp$ret$10, null);
|
|
6872
6926
|
var tmp_26 = KProperty1;
|
|
6873
|
-
tmp_23.
|
|
6927
|
+
tmp_23.dag_1 = tmp_25.a65(this, getPropertyCallableRef('randomPoolProvider', 1, tmp_26, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl(), null));
|
|
6874
6928
|
}
|
|
6875
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6876
|
-
var tmp0 = this.
|
|
6929
|
+
protoOf(GameServerEngineControllerImpl).naf = function () {
|
|
6930
|
+
var tmp0 = this.yaf_1;
|
|
6877
6931
|
var tmp = KProperty1;
|
|
6878
6932
|
// Inline function 'kotlin.getValue' call
|
|
6879
6933
|
getPropertyCallableRef('parser', 1, tmp, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w_0(), null);
|
|
6880
6934
|
return tmp0.x();
|
|
6881
6935
|
};
|
|
6882
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6883
|
-
var tmp0 = this.
|
|
6936
|
+
protoOf(GameServerEngineControllerImpl).paf = function () {
|
|
6937
|
+
var tmp0 = this.zaf_1;
|
|
6884
6938
|
var tmp = KProperty1;
|
|
6885
6939
|
// Inline function 'kotlin.getValue' call
|
|
6886
6940
|
getPropertyCallableRef('helper', 1, tmp, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f_0(), null);
|
|
6887
6941
|
return tmp0.x();
|
|
6888
6942
|
};
|
|
6889
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6890
|
-
var tmp0 = this.
|
|
6943
|
+
protoOf(GameServerEngineControllerImpl).qaf = function () {
|
|
6944
|
+
var tmp0 = this.aag_1;
|
|
6891
6945
|
var tmp = KProperty1;
|
|
6892
6946
|
// Inline function 'kotlin.getValue' call
|
|
6893
6947
|
getPropertyCallableRef('serverHelper', 1, tmp, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre_0(), null);
|
|
6894
6948
|
return tmp0.x();
|
|
6895
6949
|
};
|
|
6896
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6897
|
-
var tmp0 = this.
|
|
6950
|
+
protoOf(GameServerEngineControllerImpl).raf = function () {
|
|
6951
|
+
var tmp0 = this.bag_1;
|
|
6898
6952
|
var tmp = KProperty1;
|
|
6899
6953
|
// Inline function 'kotlin.getValue' call
|
|
6900
6954
|
getPropertyCallableRef('resources', 1, tmp, GameServerEngineControllerImpl$_get_resources_$ref_dt6416_0(), null);
|
|
6901
6955
|
return tmp0.x();
|
|
6902
6956
|
};
|
|
6903
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6904
|
-
var tmp0 = this.
|
|
6957
|
+
protoOf(GameServerEngineControllerImpl).oaf = function () {
|
|
6958
|
+
var tmp0 = this.cag_1;
|
|
6905
6959
|
var tmp = KProperty1;
|
|
6906
6960
|
// Inline function 'kotlin.getValue' call
|
|
6907
6961
|
getPropertyCallableRef('test', 1, tmp, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5_0(), null);
|
|
6908
6962
|
return tmp0.x();
|
|
6909
6963
|
};
|
|
6910
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6911
|
-
var tmp0 = this.
|
|
6964
|
+
protoOf(GameServerEngineControllerImpl).saf = function () {
|
|
6965
|
+
var tmp0 = this.dag_1;
|
|
6912
6966
|
var tmp = KProperty1;
|
|
6913
6967
|
// Inline function 'kotlin.getValue' call
|
|
6914
6968
|
getPropertyCallableRef('randomPoolProvider', 1, tmp, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl_0(), null);
|
|
@@ -6920,7 +6974,7 @@
|
|
|
6920
6974
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
6921
6975
|
return this.createGameEngineWithLogic();
|
|
6922
6976
|
};
|
|
6923
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6977
|
+
protoOf(GameServerEngineControllerImpl).taf = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig) {
|
|
6924
6978
|
var combinedLogger = Companion_instance_8.nx();
|
|
6925
6979
|
var gameServer = {_v: null};
|
|
6926
6980
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -6968,7 +7022,7 @@
|
|
|
6968
7022
|
function TestHelper() {
|
|
6969
7023
|
}
|
|
6970
7024
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
6971
|
-
var tmp0 = $this.
|
|
7025
|
+
var tmp0 = $this.hag_1;
|
|
6972
7026
|
var tmp = KProperty1;
|
|
6973
7027
|
// Inline function 'kotlin.getValue' call
|
|
6974
7028
|
getPropertyCallableRef('playerAnswerInteractor', 1, tmp, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy_0(), null);
|
|
@@ -6976,7 +7030,7 @@
|
|
|
6976
7030
|
}
|
|
6977
7031
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
6978
7032
|
return function ($this$singleton) {
|
|
6979
|
-
return this$0.
|
|
7033
|
+
return this$0.fag_1;
|
|
6980
7034
|
};
|
|
6981
7035
|
}
|
|
6982
7036
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -7016,27 +7070,27 @@
|
|
|
7016
7070
|
return emptyMap();
|
|
7017
7071
|
}
|
|
7018
7072
|
function TestHelperImpl(logger) {
|
|
7019
|
-
this.
|
|
7073
|
+
this.fag_1 = logger;
|
|
7020
7074
|
var tmp = this;
|
|
7021
7075
|
var tmp_0 = Companion_instance_6;
|
|
7022
|
-
tmp.
|
|
7076
|
+
tmp.gag_1 = tmp_0.o5z(VOID, TestHelperImpl$di$lambda(this));
|
|
7023
7077
|
var tmp_1 = this;
|
|
7024
7078
|
// Inline function 'org.kodein.di.instance' call
|
|
7025
|
-
var this_0 = this.
|
|
7079
|
+
var this_0 = this.gag_1;
|
|
7026
7080
|
// Inline function 'org.kodein.type.generic' call
|
|
7027
7081
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
7028
7082
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
7029
7083
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
7030
7084
|
var tmp_4 = KProperty1;
|
|
7031
|
-
tmp_1.
|
|
7085
|
+
tmp_1.hag_1 = tmp_3.a65(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_4, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy(), null));
|
|
7032
7086
|
}
|
|
7033
7087
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
7034
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
7088
|
+
return _get_playerAnswerInteractor__msggz1(this).e8u(playerId, table, botConfig);
|
|
7035
7089
|
};
|
|
7036
7090
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
7037
7091
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
7038
7092
|
if (isInterface(mechanicAction, NextPlayerTurnAction)) {
|
|
7039
|
-
var tmp0 = mechanicAction.
|
|
7093
|
+
var tmp0 = mechanicAction.g97();
|
|
7040
7094
|
var tmp$ret$0;
|
|
7041
7095
|
$l$block_0: {
|
|
7042
7096
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -7068,7 +7122,7 @@
|
|
|
7068
7122
|
};
|
|
7069
7123
|
protoOf(TestHelperImpl).getPlayerAnswerFromMechanicAction = function (table, currentPlayerId, action, botConfig) {
|
|
7070
7124
|
if (isInterface(action, NextPlayerTurnAction)) {
|
|
7071
|
-
var tmp0 = action.
|
|
7125
|
+
var tmp0 = action.g97();
|
|
7072
7126
|
var tmp$ret$0;
|
|
7073
7127
|
$l$block_0: {
|
|
7074
7128
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -7101,14 +7155,14 @@
|
|
|
7101
7155
|
function RoomMetadata() {
|
|
7102
7156
|
var tmp = this;
|
|
7103
7157
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7104
|
-
tmp.
|
|
7158
|
+
tmp.iag_1 = LinkedHashMap_init_$Create$();
|
|
7105
7159
|
this.extras = {};
|
|
7106
|
-
this.extras = this.
|
|
7160
|
+
this.extras = this.iag_1;
|
|
7107
7161
|
}
|
|
7108
|
-
protoOf(RoomMetadata).
|
|
7162
|
+
protoOf(RoomMetadata).jag = function () {
|
|
7109
7163
|
return this.extras;
|
|
7110
7164
|
};
|
|
7111
|
-
protoOf(RoomMetadata).
|
|
7165
|
+
protoOf(RoomMetadata).jag = function () {
|
|
7112
7166
|
return this.extras;
|
|
7113
7167
|
};
|
|
7114
7168
|
protoOf(RoomMetadata).getGame = function (gameId) {
|
|
@@ -7126,7 +7180,7 @@
|
|
|
7126
7180
|
};
|
|
7127
7181
|
protoOf(RoomMetadata).addGame = function (gameId, game) {
|
|
7128
7182
|
// Inline function 'kotlin.collections.set' call
|
|
7129
|
-
this.
|
|
7183
|
+
this.iag_1.f2(gameId, game);
|
|
7130
7184
|
};
|
|
7131
7185
|
function GameMetadata(gameId) {
|
|
7132
7186
|
this.gameId = gameId;
|
|
@@ -7135,7 +7189,7 @@
|
|
|
7135
7189
|
protoOf(GameMetadata).d54 = function () {
|
|
7136
7190
|
return this.gameId;
|
|
7137
7191
|
};
|
|
7138
|
-
protoOf(GameMetadata).
|
|
7192
|
+
protoOf(GameMetadata).jag = function () {
|
|
7139
7193
|
return this.extras;
|
|
7140
7194
|
};
|
|
7141
7195
|
function serverHelpersModule() {
|
|
@@ -7197,7 +7251,7 @@
|
|
|
7197
7251
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
7198
7252
|
protoOf(GameServer).shutdown = shutdown;
|
|
7199
7253
|
defineProp(protoOf(GameServer), 'metadata', function () {
|
|
7200
|
-
return this.
|
|
7254
|
+
return this.x8m();
|
|
7201
7255
|
});
|
|
7202
7256
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
7203
7257
|
return this.z53();
|
|
@@ -7216,17 +7270,17 @@
|
|
|
7216
7270
|
});
|
|
7217
7271
|
protoOf($serializer).xz = typeParametersSerializers;
|
|
7218
7272
|
defineProp(protoOf(TableStateUpdateDto), 'roomId', function () {
|
|
7219
|
-
return this.
|
|
7273
|
+
return this.r8j();
|
|
7220
7274
|
});
|
|
7221
7275
|
protoOf($serializer_0).xz = typeParametersSerializers;
|
|
7222
7276
|
defineProp(protoOf(ActionsStateUpdateDto), 'roomId', function () {
|
|
7223
|
-
return this.
|
|
7277
|
+
return this.r8j();
|
|
7224
7278
|
});
|
|
7225
7279
|
defineProp(protoOf(TableStateUpdate), 'roomId', function () {
|
|
7226
|
-
return this.
|
|
7280
|
+
return this.r8j();
|
|
7227
7281
|
});
|
|
7228
7282
|
defineProp(protoOf(ActionsStateUpdate), 'roomId', function () {
|
|
7229
|
-
return this.
|
|
7283
|
+
return this.r8j();
|
|
7230
7284
|
});
|
|
7231
7285
|
protoOf(UpdateServerConfigAction).v6f = get_actionTag;
|
|
7232
7286
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
@@ -7241,25 +7295,25 @@
|
|
|
7241
7295
|
return this.v6f();
|
|
7242
7296
|
});
|
|
7243
7297
|
protoOf(PlayerReconnectionWaitingTimerTag).ignoreValidation = ignoreValidation;
|
|
7244
|
-
protoOf(PlayerReconnectionWaitingTimerTag).
|
|
7298
|
+
protoOf(PlayerReconnectionWaitingTimerTag).b93 = ignoreTimerResetValidation;
|
|
7245
7299
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
7246
7300
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
7247
|
-
return this.
|
|
7301
|
+
return this.naf();
|
|
7248
7302
|
});
|
|
7249
7303
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
7250
|
-
return this.
|
|
7304
|
+
return this.paf();
|
|
7251
7305
|
});
|
|
7252
7306
|
defineProp(protoOf(GameServerEngineControllerImpl), 'serverHelper', function () {
|
|
7253
|
-
return this.
|
|
7307
|
+
return this.qaf();
|
|
7254
7308
|
});
|
|
7255
7309
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
7256
|
-
return this.
|
|
7310
|
+
return this.raf();
|
|
7257
7311
|
});
|
|
7258
7312
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
7259
|
-
return this.
|
|
7313
|
+
return this.oaf();
|
|
7260
7314
|
});
|
|
7261
7315
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
7262
|
-
return this.
|
|
7316
|
+
return this.saf();
|
|
7263
7317
|
});
|
|
7264
7318
|
//endregion
|
|
7265
7319
|
//region block: init
|