raspberry_games_server_game_logic 1.8.437 → 1.8.439
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 +1 -1
- package/Logic_Debertz-engine.js +1894 -1801
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +3 -3
- package/Logic_Debertz-game_server.js +972 -969
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -212,6 +212,8 @@
|
|
|
212
212
|
var ContinueGameToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o1;
|
|
213
213
|
var System_instance = kotlin_kotlin.$_$.u4;
|
|
214
214
|
var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w3;
|
|
215
|
+
var Companion_instance_3 = kotlin_io_raspberryapps_game_engine_core.$_$.u4;
|
|
216
|
+
var PlayerConnectionState_WAITING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c4;
|
|
215
217
|
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.l2;
|
|
216
218
|
var Action = kotlin_io_raspberryapps_game_engine_core.$_$.m2;
|
|
217
219
|
var ServerLoggerKey = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
|
|
@@ -288,9 +290,7 @@
|
|
|
288
290
|
var PlayerConnectionState_DELETED_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v3;
|
|
289
291
|
var PlayerTurnTimerTag = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
|
|
290
292
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.o2;
|
|
291
|
-
var
|
|
292
|
-
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_core.$_$.u4;
|
|
293
|
-
var PlayerConnectionState_WAITING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c4;
|
|
293
|
+
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
|
|
294
294
|
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
295
295
|
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.x4;
|
|
296
296
|
var singleOrNull = kotlin_kotlin.$_$.c9;
|
|
@@ -402,10 +402,10 @@
|
|
|
402
402
|
spectators = tmp;
|
|
403
403
|
var tmp_0;
|
|
404
404
|
if ($super === VOID) {
|
|
405
|
-
this.
|
|
405
|
+
this.ya8(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
406
406
|
tmp_0 = Unit_instance;
|
|
407
407
|
} else {
|
|
408
|
-
tmp_0 = $super.
|
|
408
|
+
tmp_0 = $super.ya8.call(this, roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
409
409
|
}
|
|
410
410
|
return tmp_0;
|
|
411
411
|
}
|
|
@@ -413,10 +413,10 @@
|
|
|
413
413
|
newRid = newRid === VOID ? null : newRid;
|
|
414
414
|
var tmp;
|
|
415
415
|
if ($super === VOID) {
|
|
416
|
-
this.
|
|
416
|
+
this.aa9(newRid);
|
|
417
417
|
tmp = Unit_instance;
|
|
418
418
|
} else {
|
|
419
|
-
tmp = $super.
|
|
419
|
+
tmp = $super.aa9.call(this, newRid);
|
|
420
420
|
}
|
|
421
421
|
return tmp;
|
|
422
422
|
}
|
|
@@ -424,16 +424,16 @@
|
|
|
424
424
|
roomId = roomId === VOID ? null : roomId;
|
|
425
425
|
var tmp;
|
|
426
426
|
if ($super === VOID) {
|
|
427
|
-
this.
|
|
427
|
+
this.ba9(reason, roomId);
|
|
428
428
|
tmp = Unit_instance;
|
|
429
429
|
} else {
|
|
430
|
-
tmp = $super.
|
|
430
|
+
tmp = $super.ba9.call(this, reason, roomId);
|
|
431
431
|
}
|
|
432
432
|
return tmp;
|
|
433
433
|
}
|
|
434
|
-
function playerLeft(playerId, permanently, $super) {
|
|
434
|
+
function playerLeft(playerId, roomId, permanently, $super) {
|
|
435
435
|
permanently = permanently === VOID ? true : permanently;
|
|
436
|
-
return $super === VOID ? this.
|
|
436
|
+
return $super === VOID ? this.xa8(playerId, roomId, permanently) : $super.xa8.call(this, playerId, roomId, permanently);
|
|
437
437
|
}
|
|
438
438
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
439
439
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
ratingConfig = ratingConfig === VOID ? new RatingConfig() : ratingConfig;
|
|
508
508
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
509
509
|
botConfig = botConfig === VOID ? new EngineBotConfig(VOID, VOID, VOID, false) : botConfig;
|
|
510
|
-
return $super === VOID ? this.
|
|
510
|
+
return $super === VOID ? this.eaf(reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig) : $super.eaf.call(this, reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig);
|
|
511
511
|
}
|
|
512
512
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
513
513
|
initMetadataForClass(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -520,17 +520,17 @@
|
|
|
520
520
|
initMetadataForClass(GameMetadata, 'GameMetadata');
|
|
521
521
|
//endregion
|
|
522
522
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
523
|
-
this.
|
|
523
|
+
this.o9q_1 = $subscriber;
|
|
524
524
|
CoroutineImpl.call(this, resultContinuation);
|
|
525
525
|
}
|
|
526
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
527
|
-
var tmp = this.
|
|
526
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).q9q = function (it, $completion) {
|
|
527
|
+
var tmp = this.r9q(it, $completion);
|
|
528
528
|
tmp.u8_1 = Unit_instance;
|
|
529
529
|
tmp.v8_1 = null;
|
|
530
530
|
return tmp.a9();
|
|
531
531
|
};
|
|
532
532
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).i9 = function (p1, $completion) {
|
|
533
|
-
return this.
|
|
533
|
+
return this.q9q(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
534
534
|
};
|
|
535
535
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).a9 = function () {
|
|
536
536
|
var suspendResult = this.u8_1;
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
var tmp = this.s8_1;
|
|
540
540
|
if (tmp === 0) {
|
|
541
541
|
this.t8_1 = 1;
|
|
542
|
-
this.
|
|
542
|
+
this.o9q_1(this.p9q_1);
|
|
543
543
|
return Unit_instance;
|
|
544
544
|
} else if (tmp === 1) {
|
|
545
545
|
throw this.v8_1;
|
|
@@ -550,31 +550,31 @@
|
|
|
550
550
|
}
|
|
551
551
|
while (true);
|
|
552
552
|
};
|
|
553
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
554
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
555
|
-
i.
|
|
553
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).r9q = function (it, completion) {
|
|
554
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.o9q_1, completion);
|
|
555
|
+
i.p9q_1 = it;
|
|
556
556
|
return i;
|
|
557
557
|
};
|
|
558
558
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
559
559
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
560
560
|
var l = function (it, $completion) {
|
|
561
|
-
return i.
|
|
561
|
+
return i.q9q(it, $completion);
|
|
562
562
|
};
|
|
563
563
|
l.$arity = 1;
|
|
564
564
|
return l;
|
|
565
565
|
}
|
|
566
566
|
function GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation) {
|
|
567
|
-
this.
|
|
567
|
+
this.a9r_1 = $subscriber;
|
|
568
568
|
CoroutineImpl.call(this, resultContinuation);
|
|
569
569
|
}
|
|
570
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
571
|
-
var tmp = this.
|
|
570
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).c9r = function (it, $completion) {
|
|
571
|
+
var tmp = this.d9r(it, $completion);
|
|
572
572
|
tmp.u8_1 = Unit_instance;
|
|
573
573
|
tmp.v8_1 = null;
|
|
574
574
|
return tmp.a9();
|
|
575
575
|
};
|
|
576
576
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).i9 = function (p1, $completion) {
|
|
577
|
-
return this.
|
|
577
|
+
return this.c9r((!(p1 == null) ? isInterface(p1, ServerStateUpdate) : false) ? p1 : THROW_CCE(), $completion);
|
|
578
578
|
};
|
|
579
579
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).a9 = function () {
|
|
580
580
|
var suspendResult = this.u8_1;
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
var tmp = this.s8_1;
|
|
584
584
|
if (tmp === 0) {
|
|
585
585
|
this.t8_1 = 1;
|
|
586
|
-
this.
|
|
586
|
+
this.a9r_1(this.b9r_1);
|
|
587
587
|
return Unit_instance;
|
|
588
588
|
} else if (tmp === 1) {
|
|
589
589
|
throw this.v8_1;
|
|
@@ -594,22 +594,22 @@
|
|
|
594
594
|
}
|
|
595
595
|
while (true);
|
|
596
596
|
};
|
|
597
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
598
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.
|
|
599
|
-
i.
|
|
597
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).d9r = function (it, completion) {
|
|
598
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.a9r_1, completion);
|
|
599
|
+
i.b9r_1 = it;
|
|
600
600
|
return i;
|
|
601
601
|
};
|
|
602
602
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_0($subscriber, resultContinuation) {
|
|
603
603
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation);
|
|
604
604
|
var l = function (it, $completion) {
|
|
605
|
-
return i.
|
|
605
|
+
return i.c9r(it, $completion);
|
|
606
606
|
};
|
|
607
607
|
l.$arity = 1;
|
|
608
608
|
return l;
|
|
609
609
|
}
|
|
610
610
|
function GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) {
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
611
|
+
this.m9r_1 = $$this$unsafeFlow;
|
|
612
|
+
this.n9r_1 = this$0;
|
|
613
613
|
CoroutineImpl.call(this, resultContinuation);
|
|
614
614
|
}
|
|
615
615
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -629,10 +629,10 @@
|
|
|
629
629
|
switch (tmp) {
|
|
630
630
|
case 0:
|
|
631
631
|
this.t8_1 = 2;
|
|
632
|
-
var tmp0 = this.
|
|
633
|
-
var value = this.
|
|
632
|
+
var tmp0 = this.m9r_1;
|
|
633
|
+
var value = this.o9r_1;
|
|
634
634
|
this.s8_1 = 1;
|
|
635
|
-
suspendResult = tmp0.o28(mapToDto_1(value, _get_encoderDecoderProvider__qqgrji(this.
|
|
635
|
+
suspendResult = tmp0.o28(mapToDto_1(value, _get_encoderDecoderProvider__qqgrji(this.n9r_1)), this);
|
|
636
636
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
637
637
|
return suspendResult;
|
|
638
638
|
}
|
|
@@ -655,8 +655,8 @@
|
|
|
655
655
|
while (true);
|
|
656
656
|
};
|
|
657
657
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda).y2h = function (value, completion) {
|
|
658
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda(this.
|
|
659
|
-
i.
|
|
658
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda(this.m9r_1, this.n9r_1, completion);
|
|
659
|
+
i.o9r_1 = value;
|
|
660
660
|
return i;
|
|
661
661
|
};
|
|
662
662
|
function GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($$this$unsafeFlow, this$0, resultContinuation) {
|
|
@@ -669,8 +669,8 @@
|
|
|
669
669
|
}
|
|
670
670
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
671
671
|
CoroutineImpl.call(this, resultContinuation);
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
672
|
+
this.x9r_1 = _this__u8e3s4;
|
|
673
|
+
this.y9r_1 = collector;
|
|
674
674
|
}
|
|
675
675
|
protoOf($collectCOROUTINE$).a9 = function () {
|
|
676
676
|
var suspendResult = this.u8_1;
|
|
@@ -680,10 +680,10 @@
|
|
|
680
680
|
switch (tmp) {
|
|
681
681
|
case 0:
|
|
682
682
|
this.t8_1 = 2;
|
|
683
|
-
var $this$unsafeFlow = this.
|
|
683
|
+
var $this$unsafeFlow = this.y9r_1;
|
|
684
684
|
this.s8_1 = 1;
|
|
685
|
-
var tmp_0 = GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($this$unsafeFlow, this.
|
|
686
|
-
suspendResult = this.
|
|
685
|
+
var tmp_0 = GameServer$subscribeServerStateUpdateJson$slambda$o$collect$slambda_0($this$unsafeFlow, this.x9r_1.a9s_1, null);
|
|
686
|
+
suspendResult = this.x9r_1.z9r_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_0), this);
|
|
687
687
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
688
688
|
return suspendResult;
|
|
689
689
|
}
|
|
@@ -706,8 +706,8 @@
|
|
|
706
706
|
while (true);
|
|
707
707
|
};
|
|
708
708
|
function GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1($this, this$0) {
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
709
|
+
this.z9r_1 = $this;
|
|
710
|
+
this.a9s_1 = this$0;
|
|
711
711
|
}
|
|
712
712
|
protoOf(GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1).p28 = function (collector, $completion) {
|
|
713
713
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -719,17 +719,17 @@
|
|
|
719
719
|
return this.p28(collector, $completion);
|
|
720
720
|
};
|
|
721
721
|
function GameServer$subscribeServerStateUpdateJson$slambda$slambda($subscriber, resultContinuation) {
|
|
722
|
-
this.
|
|
722
|
+
this.j9s_1 = $subscriber;
|
|
723
723
|
CoroutineImpl.call(this, resultContinuation);
|
|
724
724
|
}
|
|
725
|
-
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).
|
|
726
|
-
var tmp = this.
|
|
725
|
+
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).l9s = function (it, $completion) {
|
|
726
|
+
var tmp = this.m9s(it, $completion);
|
|
727
727
|
tmp.u8_1 = Unit_instance;
|
|
728
728
|
tmp.v8_1 = null;
|
|
729
729
|
return tmp.a9();
|
|
730
730
|
};
|
|
731
731
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).i9 = function (p1, $completion) {
|
|
732
|
-
return this.
|
|
732
|
+
return this.l9s((!(p1 == null) ? isInterface(p1, ServerStateUpdateDto) : false) ? p1 : THROW_CCE(), $completion);
|
|
733
733
|
};
|
|
734
734
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).a9 = function () {
|
|
735
735
|
var suspendResult = this.u8_1;
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
var tmp = this.s8_1;
|
|
739
739
|
if (tmp === 0) {
|
|
740
740
|
this.t8_1 = 1;
|
|
741
|
-
this.
|
|
741
|
+
this.j9s_1(this.k9s_1);
|
|
742
742
|
return Unit_instance;
|
|
743
743
|
} else if (tmp === 1) {
|
|
744
744
|
throw this.v8_1;
|
|
@@ -749,22 +749,22 @@
|
|
|
749
749
|
}
|
|
750
750
|
while (true);
|
|
751
751
|
};
|
|
752
|
-
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).
|
|
753
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda(this.
|
|
754
|
-
i.
|
|
752
|
+
protoOf(GameServer$subscribeServerStateUpdateJson$slambda$slambda).m9s = function (it, completion) {
|
|
753
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda(this.j9s_1, completion);
|
|
754
|
+
i.k9s_1 = it;
|
|
755
755
|
return i;
|
|
756
756
|
};
|
|
757
757
|
function GameServer$subscribeServerStateUpdateJson$slambda$slambda_0($subscriber, resultContinuation) {
|
|
758
758
|
var i = new GameServer$subscribeServerStateUpdateJson$slambda$slambda($subscriber, resultContinuation);
|
|
759
759
|
var l = function (it, $completion) {
|
|
760
|
-
return i.
|
|
760
|
+
return i.l9s(it, $completion);
|
|
761
761
|
};
|
|
762
762
|
l.$arity = 1;
|
|
763
763
|
return l;
|
|
764
764
|
}
|
|
765
765
|
function GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda($$this$unsafeFlow, $table, resultContinuation) {
|
|
766
|
-
this.
|
|
767
|
-
this.
|
|
766
|
+
this.v9s_1 = $$this$unsafeFlow;
|
|
767
|
+
this.w9s_1 = $table;
|
|
768
768
|
CoroutineImpl.call(this, resultContinuation);
|
|
769
769
|
}
|
|
770
770
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -784,10 +784,10 @@
|
|
|
784
784
|
switch (tmp) {
|
|
785
785
|
case 0:
|
|
786
786
|
this.t8_1 = 2;
|
|
787
|
-
var tmp0 = this.
|
|
788
|
-
var value = this.
|
|
787
|
+
var tmp0 = this.v9s_1;
|
|
788
|
+
var value = this.x9s_1;
|
|
789
789
|
this.s8_1 = 1;
|
|
790
|
-
suspendResult = tmp0.o28(new ActionsStateUpdate(this.
|
|
790
|
+
suspendResult = tmp0.o28(new ActionsStateUpdate(this.w9s_1.id, value), this);
|
|
791
791
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
792
792
|
return suspendResult;
|
|
793
793
|
}
|
|
@@ -810,8 +810,8 @@
|
|
|
810
810
|
while (true);
|
|
811
811
|
};
|
|
812
812
|
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.
|
|
813
|
+
var i = new GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda(this.v9s_1, this.w9s_1, completion);
|
|
814
|
+
i.x9s_1 = value;
|
|
815
815
|
return i;
|
|
816
816
|
};
|
|
817
817
|
function GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, $table, resultContinuation) {
|
|
@@ -824,8 +824,8 @@
|
|
|
824
824
|
}
|
|
825
825
|
function $collectCOROUTINE$_0(_this__u8e3s4, collector, resultContinuation) {
|
|
826
826
|
CoroutineImpl.call(this, resultContinuation);
|
|
827
|
-
this.
|
|
828
|
-
this.
|
|
827
|
+
this.g9t_1 = _this__u8e3s4;
|
|
828
|
+
this.h9t_1 = collector;
|
|
829
829
|
}
|
|
830
830
|
protoOf($collectCOROUTINE$_0).a9 = function () {
|
|
831
831
|
var suspendResult = this.u8_1;
|
|
@@ -835,10 +835,10 @@
|
|
|
835
835
|
switch (tmp) {
|
|
836
836
|
case 0:
|
|
837
837
|
this.t8_1 = 2;
|
|
838
|
-
var $this$unsafeFlow = this.
|
|
838
|
+
var $this$unsafeFlow = this.h9t_1;
|
|
839
839
|
this.s8_1 = 1;
|
|
840
|
-
var tmp_0 = GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($this$unsafeFlow, this.
|
|
841
|
-
suspendResult = this.
|
|
840
|
+
var tmp_0 = GameServer$observeTableStateUpdates$slambda$slambda$o$collect$slambda_0($this$unsafeFlow, this.g9t_1.j9t_1, null);
|
|
841
|
+
suspendResult = this.g9t_1.i9t_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_0), this);
|
|
842
842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
843
843
|
return suspendResult;
|
|
844
844
|
}
|
|
@@ -861,8 +861,8 @@
|
|
|
861
861
|
while (true);
|
|
862
862
|
};
|
|
863
863
|
function _no_name_provided__qut3iv($this, $table) {
|
|
864
|
-
this.
|
|
865
|
-
this.
|
|
864
|
+
this.i9t_1 = $this;
|
|
865
|
+
this.j9t_1 = $table;
|
|
866
866
|
}
|
|
867
867
|
protoOf(_no_name_provided__qut3iv).p28 = function (collector, $completion) {
|
|
868
868
|
var tmp = new $collectCOROUTINE$_0(this, collector, $completion);
|
|
@@ -874,18 +874,18 @@
|
|
|
874
874
|
return this.p28(collector, $completion);
|
|
875
875
|
};
|
|
876
876
|
function GameServer$observeTableStateUpdates$slambda$slambda($table, this$0, resultContinuation) {
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
877
|
+
this.s9t_1 = $table;
|
|
878
|
+
this.t9t_1 = this$0;
|
|
879
879
|
CoroutineImpl.call(this, resultContinuation);
|
|
880
880
|
}
|
|
881
|
-
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).
|
|
882
|
-
var tmp = this.
|
|
881
|
+
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).v9t = function ($this$flow, $completion) {
|
|
882
|
+
var tmp = this.w9t($this$flow, $completion);
|
|
883
883
|
tmp.u8_1 = Unit_instance;
|
|
884
884
|
tmp.v8_1 = null;
|
|
885
885
|
return tmp.a9();
|
|
886
886
|
};
|
|
887
887
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).i9 = function (p1, $completion) {
|
|
888
|
-
return this.
|
|
888
|
+
return this.v9t((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
889
889
|
};
|
|
890
890
|
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).a9 = function () {
|
|
891
891
|
var suspendResult = this.u8_1;
|
|
@@ -896,7 +896,7 @@
|
|
|
896
896
|
case 0:
|
|
897
897
|
this.t8_1 = 3;
|
|
898
898
|
this.s8_1 = 1;
|
|
899
|
-
suspendResult = this.
|
|
899
|
+
suspendResult = this.u9t_1.o28(new TableStateUpdate(this.s9t_1.id, this.s9t_1), this);
|
|
900
900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
901
901
|
return suspendResult;
|
|
902
902
|
}
|
|
@@ -904,8 +904,8 @@
|
|
|
904
904
|
continue $sm;
|
|
905
905
|
case 1:
|
|
906
906
|
this.s8_1 = 2;
|
|
907
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.
|
|
908
|
-
suspendResult = emitAll(this.
|
|
907
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.t9t_1).c8s(), fromInt(_get_serverReduxConfig__rprcrm(this.t9t_1).serverStateUpdateIntervalMillis));
|
|
908
|
+
suspendResult = emitAll(this.u9t_1, new _no_name_provided__qut3iv(this_0, this.s9t_1), this);
|
|
909
909
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
910
910
|
return suspendResult;
|
|
911
911
|
}
|
|
@@ -927,22 +927,22 @@
|
|
|
927
927
|
}
|
|
928
928
|
while (true);
|
|
929
929
|
};
|
|
930
|
-
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).
|
|
931
|
-
var i = new GameServer$observeTableStateUpdates$slambda$slambda(this.
|
|
932
|
-
i.
|
|
930
|
+
protoOf(GameServer$observeTableStateUpdates$slambda$slambda).w9t = function ($this$flow, completion) {
|
|
931
|
+
var i = new GameServer$observeTableStateUpdates$slambda$slambda(this.s9t_1, this.t9t_1, completion);
|
|
932
|
+
i.u9t_1 = $this$flow;
|
|
933
933
|
return i;
|
|
934
934
|
};
|
|
935
935
|
function GameServer$observeTableStateUpdates$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
936
936
|
var i = new GameServer$observeTableStateUpdates$slambda$slambda($table, this$0, resultContinuation);
|
|
937
937
|
var l = function ($this$flow, $completion) {
|
|
938
|
-
return i.
|
|
938
|
+
return i.v9t($this$flow, $completion);
|
|
939
939
|
};
|
|
940
940
|
l.$arity = 1;
|
|
941
941
|
return l;
|
|
942
942
|
}
|
|
943
943
|
function GameServer$observeTableStateUpdates$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) {
|
|
944
|
-
this.
|
|
945
|
-
this.
|
|
944
|
+
this.f9u_1 = $$this$unsafeFlow;
|
|
945
|
+
this.g9u_1 = this$0;
|
|
946
946
|
CoroutineImpl.call(this, resultContinuation);
|
|
947
947
|
}
|
|
948
948
|
protoOf(GameServer$observeTableStateUpdates$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -963,16 +963,16 @@
|
|
|
963
963
|
case 0:
|
|
964
964
|
this.t8_1 = 5;
|
|
965
965
|
var tmp_0 = this;
|
|
966
|
-
tmp_0.
|
|
966
|
+
tmp_0.l9u_1 = this.f9u_1;
|
|
967
967
|
var tmp_1 = this;
|
|
968
|
-
tmp_1.
|
|
968
|
+
tmp_1.k9u_1 = this.h9u_1;
|
|
969
969
|
this.s8_1 = 1;
|
|
970
970
|
continue $sm;
|
|
971
971
|
case 1:
|
|
972
|
-
this.
|
|
973
|
-
var it = this.
|
|
972
|
+
this.i9u_1 = this.l9u_1;
|
|
973
|
+
var it = this.k9u_1;
|
|
974
974
|
var tmp_2;
|
|
975
|
-
if (get_isCreated(this.
|
|
975
|
+
if (get_isCreated(this.g9u_1.x66())) {
|
|
976
976
|
tmp_2 = it;
|
|
977
977
|
} else {
|
|
978
978
|
tmp_2 = null;
|
|
@@ -984,15 +984,15 @@
|
|
|
984
984
|
var tmp_3 = this;
|
|
985
985
|
continue $sm;
|
|
986
986
|
} else {
|
|
987
|
-
this.
|
|
987
|
+
this.j9u_1 = tmp0_elvis_lhs;
|
|
988
988
|
this.s8_1 = 2;
|
|
989
989
|
continue $sm;
|
|
990
990
|
}
|
|
991
991
|
|
|
992
992
|
case 2:
|
|
993
|
-
var transformed = this.
|
|
993
|
+
var transformed = this.j9u_1;
|
|
994
994
|
this.s8_1 = 3;
|
|
995
|
-
suspendResult = this.
|
|
995
|
+
suspendResult = this.i9u_1.o28(transformed, this);
|
|
996
996
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
997
|
return suspendResult;
|
|
998
998
|
}
|
|
@@ -1023,8 +1023,8 @@
|
|
|
1023
1023
|
while (true);
|
|
1024
1024
|
};
|
|
1025
1025
|
protoOf(GameServer$observeTableStateUpdates$o$collect$slambda).y2h = function (value, completion) {
|
|
1026
|
-
var i = new GameServer$observeTableStateUpdates$o$collect$slambda(this.
|
|
1027
|
-
i.
|
|
1026
|
+
var i = new GameServer$observeTableStateUpdates$o$collect$slambda(this.f9u_1, this.g9u_1, completion);
|
|
1027
|
+
i.h9u_1 = value;
|
|
1028
1028
|
return i;
|
|
1029
1029
|
};
|
|
1030
1030
|
function GameServer$observeTableStateUpdates$o$collect$slambda_0($$this$unsafeFlow, this$0, resultContinuation) {
|
|
@@ -1037,8 +1037,8 @@
|
|
|
1037
1037
|
}
|
|
1038
1038
|
function $collectCOROUTINE$_1(_this__u8e3s4, collector, resultContinuation) {
|
|
1039
1039
|
CoroutineImpl.call(this, resultContinuation);
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1040
|
+
this.u9u_1 = _this__u8e3s4;
|
|
1041
|
+
this.v9u_1 = collector;
|
|
1042
1042
|
}
|
|
1043
1043
|
protoOf($collectCOROUTINE$_1).a9 = function () {
|
|
1044
1044
|
var suspendResult = this.u8_1;
|
|
@@ -1048,10 +1048,10 @@
|
|
|
1048
1048
|
switch (tmp) {
|
|
1049
1049
|
case 0:
|
|
1050
1050
|
this.t8_1 = 2;
|
|
1051
|
-
var $this$unsafeFlow = this.
|
|
1051
|
+
var $this$unsafeFlow = this.v9u_1;
|
|
1052
1052
|
this.s8_1 = 1;
|
|
1053
|
-
var tmp_0 = GameServer$observeTableStateUpdates$o$collect$slambda_0($this$unsafeFlow, this.
|
|
1054
|
-
suspendResult = this.
|
|
1053
|
+
var tmp_0 = GameServer$observeTableStateUpdates$o$collect$slambda_0($this$unsafeFlow, this.u9u_1.x9u_1, null);
|
|
1054
|
+
suspendResult = this.u9u_1.w9u_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_0), this);
|
|
1055
1055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1056
1056
|
return suspendResult;
|
|
1057
1057
|
}
|
|
@@ -1074,7 +1074,7 @@
|
|
|
1074
1074
|
while (true);
|
|
1075
1075
|
};
|
|
1076
1076
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
1077
|
-
this.
|
|
1077
|
+
this.g9v_1 = $$this$unsafeFlow;
|
|
1078
1078
|
CoroutineImpl.call(this, resultContinuation);
|
|
1079
1079
|
}
|
|
1080
1080
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).x2h = function (value, $completion) {
|
|
@@ -1095,28 +1095,28 @@
|
|
|
1095
1095
|
case 0:
|
|
1096
1096
|
this.t8_1 = 5;
|
|
1097
1097
|
var tmp_0 = this;
|
|
1098
|
-
tmp_0.
|
|
1098
|
+
tmp_0.l9v_1 = this.g9v_1;
|
|
1099
1099
|
var tmp_1 = this;
|
|
1100
|
-
tmp_1.
|
|
1100
|
+
tmp_1.k9v_1 = this.h9v_1;
|
|
1101
1101
|
this.s8_1 = 1;
|
|
1102
1102
|
continue $sm;
|
|
1103
1103
|
case 1:
|
|
1104
|
-
this.
|
|
1105
|
-
var tmp0_elvis_lhs = this.
|
|
1104
|
+
this.i9v_1 = this.l9v_1;
|
|
1105
|
+
var tmp0_elvis_lhs = this.k9v_1.tableOrNull;
|
|
1106
1106
|
if (tmp0_elvis_lhs == null) {
|
|
1107
1107
|
this.s8_1 = 4;
|
|
1108
1108
|
var tmp_2 = this;
|
|
1109
1109
|
continue $sm;
|
|
1110
1110
|
} else {
|
|
1111
|
-
this.
|
|
1111
|
+
this.j9v_1 = tmp0_elvis_lhs;
|
|
1112
1112
|
this.s8_1 = 2;
|
|
1113
1113
|
continue $sm;
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
1116
|
case 2:
|
|
1117
|
-
var transformed = this.
|
|
1117
|
+
var transformed = this.j9v_1;
|
|
1118
1118
|
this.s8_1 = 3;
|
|
1119
|
-
suspendResult = this.
|
|
1119
|
+
suspendResult = this.i9v_1.o28(transformed, this);
|
|
1120
1120
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1121
1121
|
return suspendResult;
|
|
1122
1122
|
}
|
|
@@ -1147,8 +1147,8 @@
|
|
|
1147
1147
|
while (true);
|
|
1148
1148
|
};
|
|
1149
1149
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).y2h = function (value, completion) {
|
|
1150
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
1151
|
-
i.
|
|
1150
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.g9v_1, completion);
|
|
1151
|
+
i.h9v_1 = value;
|
|
1152
1152
|
return i;
|
|
1153
1153
|
};
|
|
1154
1154
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1161,8 +1161,8 @@
|
|
|
1161
1161
|
}
|
|
1162
1162
|
function $collectCOROUTINE$_2(_this__u8e3s4, collector, resultContinuation) {
|
|
1163
1163
|
CoroutineImpl.call(this, resultContinuation);
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1164
|
+
this.u9v_1 = _this__u8e3s4;
|
|
1165
|
+
this.v9v_1 = collector;
|
|
1166
1166
|
}
|
|
1167
1167
|
protoOf($collectCOROUTINE$_2).a9 = function () {
|
|
1168
1168
|
var suspendResult = this.u8_1;
|
|
@@ -1172,10 +1172,10 @@
|
|
|
1172
1172
|
switch (tmp) {
|
|
1173
1173
|
case 0:
|
|
1174
1174
|
this.t8_1 = 2;
|
|
1175
|
-
var $this$unsafeFlow = this.
|
|
1175
|
+
var $this$unsafeFlow = this.v9v_1;
|
|
1176
1176
|
this.s8_1 = 1;
|
|
1177
1177
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($this$unsafeFlow, null);
|
|
1178
|
-
suspendResult = this.
|
|
1178
|
+
suspendResult = this.u9v_1.w9v_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1179
1179
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1180
1180
|
return suspendResult;
|
|
1181
1181
|
}
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
while (true);
|
|
1199
1199
|
};
|
|
1200
1200
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) {
|
|
1201
|
-
this.
|
|
1201
|
+
this.f9w_1 = $$this$unsafeFlow;
|
|
1202
1202
|
CoroutineImpl.call(this, resultContinuation);
|
|
1203
1203
|
}
|
|
1204
1204
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_1).x2h = function (value, $completion) {
|
|
@@ -1218,8 +1218,8 @@
|
|
|
1218
1218
|
switch (tmp) {
|
|
1219
1219
|
case 0:
|
|
1220
1220
|
this.t8_1 = 2;
|
|
1221
|
-
var tmp0 = this.
|
|
1222
|
-
var value = this.
|
|
1221
|
+
var tmp0 = this.f9w_1;
|
|
1222
|
+
var value = this.g9w_1;
|
|
1223
1223
|
this.s8_1 = 1;
|
|
1224
1224
|
suspendResult = tmp0.o28(to(value.gameInfo.roundNumberTotal, value), this);
|
|
1225
1225
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1244,8 +1244,8 @@
|
|
|
1244
1244
|
while (true);
|
|
1245
1245
|
};
|
|
1246
1246
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_1).y2h = function (value, completion) {
|
|
1247
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_1(this.
|
|
1248
|
-
i.
|
|
1247
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_1(this.f9w_1, completion);
|
|
1248
|
+
i.g9w_1 = value;
|
|
1249
1249
|
return i;
|
|
1250
1250
|
};
|
|
1251
1251
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_2($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1258,8 +1258,8 @@
|
|
|
1258
1258
|
}
|
|
1259
1259
|
function $collectCOROUTINE$_3(_this__u8e3s4, collector, resultContinuation) {
|
|
1260
1260
|
CoroutineImpl.call(this, resultContinuation);
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1261
|
+
this.p9w_1 = _this__u8e3s4;
|
|
1262
|
+
this.q9w_1 = collector;
|
|
1263
1263
|
}
|
|
1264
1264
|
protoOf($collectCOROUTINE$_3).a9 = function () {
|
|
1265
1265
|
var suspendResult = this.u8_1;
|
|
@@ -1269,10 +1269,10 @@
|
|
|
1269
1269
|
switch (tmp) {
|
|
1270
1270
|
case 0:
|
|
1271
1271
|
this.t8_1 = 2;
|
|
1272
|
-
var $this$unsafeFlow = this.
|
|
1272
|
+
var $this$unsafeFlow = this.q9w_1;
|
|
1273
1273
|
this.s8_1 = 1;
|
|
1274
1274
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_2($this$unsafeFlow, null);
|
|
1275
|
-
suspendResult = this.
|
|
1275
|
+
suspendResult = this.p9w_1.r9w_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1276
1276
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1277
1277
|
return suspendResult;
|
|
1278
1278
|
}
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
while (true);
|
|
1296
1296
|
};
|
|
1297
1297
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) {
|
|
1298
|
-
this.
|
|
1298
|
+
this.a9x_1 = $$this$unsafeFlow;
|
|
1299
1299
|
CoroutineImpl.call(this, resultContinuation);
|
|
1300
1300
|
}
|
|
1301
1301
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_3).x2h = function (value, $completion) {
|
|
@@ -1315,8 +1315,8 @@
|
|
|
1315
1315
|
switch (tmp) {
|
|
1316
1316
|
case 0:
|
|
1317
1317
|
this.t8_1 = 2;
|
|
1318
|
-
var tmp0 = this.
|
|
1319
|
-
var value = this.
|
|
1318
|
+
var tmp0 = this.a9x_1;
|
|
1319
|
+
var value = this.b9x_1;
|
|
1320
1320
|
this.s8_1 = 1;
|
|
1321
1321
|
suspendResult = tmp0.o28(value.ne_1, this);
|
|
1322
1322
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1341,8 +1341,8 @@
|
|
|
1341
1341
|
while (true);
|
|
1342
1342
|
};
|
|
1343
1343
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda_3).y2h = function (value, completion) {
|
|
1344
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_3(this.
|
|
1345
|
-
i.
|
|
1344
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda_3(this.a9x_1, completion);
|
|
1345
|
+
i.b9x_1 = value;
|
|
1346
1346
|
return i;
|
|
1347
1347
|
};
|
|
1348
1348
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_4($$this$unsafeFlow, resultContinuation) {
|
|
@@ -1355,8 +1355,8 @@
|
|
|
1355
1355
|
}
|
|
1356
1356
|
function $collectCOROUTINE$_4(_this__u8e3s4, collector, resultContinuation) {
|
|
1357
1357
|
CoroutineImpl.call(this, resultContinuation);
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1358
|
+
this.k9x_1 = _this__u8e3s4;
|
|
1359
|
+
this.l9x_1 = collector;
|
|
1360
1360
|
}
|
|
1361
1361
|
protoOf($collectCOROUTINE$_4).a9 = function () {
|
|
1362
1362
|
var suspendResult = this.u8_1;
|
|
@@ -1366,10 +1366,10 @@
|
|
|
1366
1366
|
switch (tmp) {
|
|
1367
1367
|
case 0:
|
|
1368
1368
|
this.t8_1 = 2;
|
|
1369
|
-
var $this$unsafeFlow = this.
|
|
1369
|
+
var $this$unsafeFlow = this.l9x_1;
|
|
1370
1370
|
this.s8_1 = 1;
|
|
1371
1371
|
var tmp_0 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_4($this$unsafeFlow, null);
|
|
1372
|
-
suspendResult = this.
|
|
1372
|
+
suspendResult = this.k9x_1.m9x_1.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), this);
|
|
1373
1373
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1374
1374
|
return suspendResult;
|
|
1375
1375
|
}
|
|
@@ -1392,17 +1392,17 @@
|
|
|
1392
1392
|
while (true);
|
|
1393
1393
|
};
|
|
1394
1394
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
1395
|
-
this.
|
|
1395
|
+
this.v9x_1 = $subscriber;
|
|
1396
1396
|
CoroutineImpl.call(this, resultContinuation);
|
|
1397
1397
|
}
|
|
1398
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1399
|
-
var tmp = this.
|
|
1398
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).x9x = function (it, $completion) {
|
|
1399
|
+
var tmp = this.y9x(it, $completion);
|
|
1400
1400
|
tmp.u8_1 = Unit_instance;
|
|
1401
1401
|
tmp.v8_1 = null;
|
|
1402
1402
|
return tmp.a9();
|
|
1403
1403
|
};
|
|
1404
1404
|
protoOf(GameServer$subscribeWith$slambda$slambda).i9 = function (p1, $completion) {
|
|
1405
|
-
return this.
|
|
1405
|
+
return this.x9x(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
1406
1406
|
};
|
|
1407
1407
|
protoOf(GameServer$subscribeWith$slambda$slambda).a9 = function () {
|
|
1408
1408
|
var suspendResult = this.u8_1;
|
|
@@ -1411,7 +1411,7 @@
|
|
|
1411
1411
|
var tmp = this.s8_1;
|
|
1412
1412
|
if (tmp === 0) {
|
|
1413
1413
|
this.t8_1 = 1;
|
|
1414
|
-
this.
|
|
1414
|
+
this.v9x_1(this.w9x_1);
|
|
1415
1415
|
return Unit_instance;
|
|
1416
1416
|
} else if (tmp === 1) {
|
|
1417
1417
|
throw this.v8_1;
|
|
@@ -1422,91 +1422,91 @@
|
|
|
1422
1422
|
}
|
|
1423
1423
|
while (true);
|
|
1424
1424
|
};
|
|
1425
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1426
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
1427
|
-
i.
|
|
1425
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).y9x = function (it, completion) {
|
|
1426
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.v9x_1, completion);
|
|
1427
|
+
i.w9x_1 = it;
|
|
1428
1428
|
return i;
|
|
1429
1429
|
};
|
|
1430
1430
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
1431
1431
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
1432
1432
|
var l = function (it, $completion) {
|
|
1433
|
-
return i.
|
|
1433
|
+
return i.x9x(it, $completion);
|
|
1434
1434
|
};
|
|
1435
1435
|
l.$arity = 1;
|
|
1436
1436
|
return l;
|
|
1437
1437
|
}
|
|
1438
1438
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
1439
|
-
var tmp0 = $this.
|
|
1439
|
+
var tmp0 = $this.d9y_1;
|
|
1440
1440
|
var tmp = KProperty1;
|
|
1441
1441
|
// Inline function 'kotlin.getValue' call
|
|
1442
1442
|
getPropertyCallableRef('toClientEventsObserver', 1, tmp, GameServer$_get_toClientEventsObserver_$ref_utir8s_0(), null);
|
|
1443
1443
|
return tmp0.x();
|
|
1444
1444
|
}
|
|
1445
1445
|
function _get_fromClientEventsObserver__a7vzd3($this) {
|
|
1446
|
-
var tmp0 = $this.
|
|
1446
|
+
var tmp0 = $this.e9y_1;
|
|
1447
1447
|
var tmp = KProperty1;
|
|
1448
1448
|
// Inline function 'kotlin.getValue' call
|
|
1449
1449
|
getPropertyCallableRef('fromClientEventsObserver', 1, tmp, GameServer$_get_fromClientEventsObserver_$ref_nf1g79_0(), null);
|
|
1450
1450
|
return tmp0.x();
|
|
1451
1451
|
}
|
|
1452
1452
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
1453
|
-
var tmp0 = $this.
|
|
1453
|
+
var tmp0 = $this.f9y_1;
|
|
1454
1454
|
var tmp = KProperty1;
|
|
1455
1455
|
// Inline function 'kotlin.getValue' call
|
|
1456
1456
|
getPropertyCallableRef('playerConnectionInteractor', 1, tmp, GameServer$_get_playerConnectionInteractor_$ref_of8tan_0(), null);
|
|
1457
1457
|
return tmp0.x();
|
|
1458
1458
|
}
|
|
1459
1459
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
1460
|
-
var tmp0 = $this.
|
|
1460
|
+
var tmp0 = $this.g9y_1;
|
|
1461
1461
|
var tmp = KProperty1;
|
|
1462
1462
|
// Inline function 'kotlin.getValue' call
|
|
1463
1463
|
getPropertyCallableRef('teamsLogicProvider', 1, tmp, GameServer$_get_teamsLogicProvider_$ref_b7y54g_0(), null);
|
|
1464
1464
|
return tmp0.x();
|
|
1465
1465
|
}
|
|
1466
1466
|
function _get_userRatingInteractor__a09mdy($this) {
|
|
1467
|
-
var tmp0 = $this.
|
|
1467
|
+
var tmp0 = $this.h9y_1;
|
|
1468
1468
|
var tmp = KProperty1;
|
|
1469
1469
|
// Inline function 'kotlin.getValue' call
|
|
1470
1470
|
getPropertyCallableRef('userRatingInteractor', 1, tmp, GameServer$_get_userRatingInteractor_$ref_8uo6aw_0(), null);
|
|
1471
1471
|
return tmp0.x();
|
|
1472
1472
|
}
|
|
1473
1473
|
function _get_random__h29cgo($this) {
|
|
1474
|
-
var tmp0 = $this.
|
|
1474
|
+
var tmp0 = $this.i9y_1;
|
|
1475
1475
|
var tmp = KProperty1;
|
|
1476
1476
|
// Inline function 'kotlin.getValue' call
|
|
1477
1477
|
getPropertyCallableRef('random', 1, tmp, GameServer$_get_random_$ref_fottnq(), null);
|
|
1478
1478
|
return tmp0.x();
|
|
1479
1479
|
}
|
|
1480
1480
|
function _get_idsProvider__fnfajc($this) {
|
|
1481
|
-
var tmp0 = $this.
|
|
1481
|
+
var tmp0 = $this.j9y_1;
|
|
1482
1482
|
var tmp = KProperty1;
|
|
1483
1483
|
// Inline function 'kotlin.getValue' call
|
|
1484
1484
|
getPropertyCallableRef('idsProvider', 1, tmp, GameServer$_get_idsProvider_$ref_89s908_0(), null);
|
|
1485
1485
|
return tmp0.x();
|
|
1486
1486
|
}
|
|
1487
1487
|
function _get_serverReduxConfig__rprcrm($this) {
|
|
1488
|
-
var tmp0 = $this.
|
|
1488
|
+
var tmp0 = $this.k9y_1;
|
|
1489
1489
|
var tmp = KProperty1;
|
|
1490
1490
|
// Inline function 'kotlin.getValue' call
|
|
1491
1491
|
getPropertyCallableRef('serverReduxConfig', 1, tmp, GameServer$_get_serverReduxConfig_$ref_7h6jq6_0(), null);
|
|
1492
1492
|
return tmp0.x();
|
|
1493
1493
|
}
|
|
1494
1494
|
function _get_encoderDecoderProvider__qqgrji($this) {
|
|
1495
|
-
var tmp0 = $this.
|
|
1495
|
+
var tmp0 = $this.l9y_1;
|
|
1496
1496
|
var tmp = KProperty1;
|
|
1497
1497
|
// Inline function 'kotlin.getValue' call
|
|
1498
1498
|
getPropertyCallableRef('encoderDecoderProvider', 1, tmp, GameServer$_get_encoderDecoderProvider_$ref_6vxmq8_0(), null);
|
|
1499
1499
|
return tmp0.x();
|
|
1500
1500
|
}
|
|
1501
1501
|
function _get_engineLogicConfig__l11qpf($this) {
|
|
1502
|
-
var tmp0 = $this.
|
|
1502
|
+
var tmp0 = $this.m9y_1;
|
|
1503
1503
|
var tmp = KProperty1;
|
|
1504
1504
|
// Inline function 'kotlin.getValue' call
|
|
1505
1505
|
getPropertyCallableRef('engineLogicConfig', 1, tmp, GameServer$_get_engineLogicConfig_$ref_nlkv2l_0(), null);
|
|
1506
1506
|
return tmp0.x();
|
|
1507
1507
|
}
|
|
1508
1508
|
function _get_botChatInteractor__17f3on($this) {
|
|
1509
|
-
var tmp0 = $this.
|
|
1509
|
+
var tmp0 = $this.n9y_1;
|
|
1510
1510
|
var tmp = KProperty1;
|
|
1511
1511
|
// Inline function 'kotlin.getValue' call
|
|
1512
1512
|
getPropertyCallableRef('botChatInteractor', 1, tmp, GameServer$_get_botChatInteractor_$ref_zf10ih_0(), null);
|
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
var player = getPlayer(table.players, playerId);
|
|
1543
1543
|
var tmp;
|
|
1544
1544
|
if (_get_engineLogicConfig__l11qpf($this).updateRating) {
|
|
1545
|
-
var tmp0_safe_receiver = _get_userRatingInteractor__a09mdy($this).
|
|
1545
|
+
var tmp0_safe_receiver = _get_userRatingInteractor__a09mdy($this).p8z(player, table.players, table.config, table.gameDuration, table.isGameFinished);
|
|
1546
1546
|
var tmp_0;
|
|
1547
1547
|
if (tmp0_safe_receiver == null) {
|
|
1548
1548
|
tmp_0 = null;
|
|
@@ -1639,20 +1639,20 @@
|
|
|
1639
1639
|
return _get_teamsLogicProvider__u10pm6($this).x8r(updatedTeams);
|
|
1640
1640
|
}
|
|
1641
1641
|
function Companion() {
|
|
1642
|
-
this.
|
|
1642
|
+
this.p9y_1 = 'GameEngine_API';
|
|
1643
1643
|
}
|
|
1644
1644
|
var Companion_instance_9;
|
|
1645
1645
|
function Companion_getInstance_0() {
|
|
1646
1646
|
return Companion_instance_9;
|
|
1647
1647
|
}
|
|
1648
1648
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1649
|
-
this.
|
|
1649
|
+
this.q9y_1 = function_0;
|
|
1650
1650
|
}
|
|
1651
1651
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o28 = function (value, $completion) {
|
|
1652
|
-
return this.
|
|
1652
|
+
return this.q9y_1(value, $completion);
|
|
1653
1653
|
};
|
|
1654
1654
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b3 = function () {
|
|
1655
|
-
return this.
|
|
1655
|
+
return this.q9y_1;
|
|
1656
1656
|
};
|
|
1657
1657
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1658
1658
|
var tmp;
|
|
@@ -1673,13 +1673,13 @@
|
|
|
1673
1673
|
return hashCode(this.b3());
|
|
1674
1674
|
};
|
|
1675
1675
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
1676
|
-
this.
|
|
1676
|
+
this.r9y_1 = function_0;
|
|
1677
1677
|
}
|
|
1678
1678
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o28 = function (value, $completion) {
|
|
1679
|
-
return this.
|
|
1679
|
+
return this.r9y_1(value, $completion);
|
|
1680
1680
|
};
|
|
1681
1681
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).b3 = function () {
|
|
1682
|
-
return this.
|
|
1682
|
+
return this.r9y_1;
|
|
1683
1683
|
};
|
|
1684
1684
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
1685
1685
|
var tmp;
|
|
@@ -1700,13 +1700,13 @@
|
|
|
1700
1700
|
return hashCode(this.b3());
|
|
1701
1701
|
};
|
|
1702
1702
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
1703
|
-
this.
|
|
1703
|
+
this.s9y_1 = function_0;
|
|
1704
1704
|
}
|
|
1705
1705
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).o28 = function (value, $completion) {
|
|
1706
|
-
return this.
|
|
1706
|
+
return this.s9y_1(value, $completion);
|
|
1707
1707
|
};
|
|
1708
1708
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).b3 = function () {
|
|
1709
|
-
return this.
|
|
1709
|
+
return this.s9y_1;
|
|
1710
1710
|
};
|
|
1711
1711
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
1712
1712
|
var tmp;
|
|
@@ -1727,13 +1727,13 @@
|
|
|
1727
1727
|
return hashCode(this.b3());
|
|
1728
1728
|
};
|
|
1729
1729
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
1730
|
-
this.
|
|
1730
|
+
this.t9y_1 = function_0;
|
|
1731
1731
|
}
|
|
1732
1732
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).o28 = function (value, $completion) {
|
|
1733
|
-
return this.
|
|
1733
|
+
return this.t9y_1(value, $completion);
|
|
1734
1734
|
};
|
|
1735
1735
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).b3 = function () {
|
|
1736
|
-
return this.
|
|
1736
|
+
return this.t9y_1;
|
|
1737
1737
|
};
|
|
1738
1738
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
1739
1739
|
var tmp;
|
|
@@ -1754,13 +1754,13 @@
|
|
|
1754
1754
|
return hashCode(this.b3());
|
|
1755
1755
|
};
|
|
1756
1756
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
1757
|
-
this.
|
|
1757
|
+
this.u9y_1 = function_0;
|
|
1758
1758
|
}
|
|
1759
1759
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).o28 = function (value, $completion) {
|
|
1760
|
-
return this.
|
|
1760
|
+
return this.u9y_1(value, $completion);
|
|
1761
1761
|
};
|
|
1762
1762
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).b3 = function () {
|
|
1763
|
-
return this.
|
|
1763
|
+
return this.u9y_1;
|
|
1764
1764
|
};
|
|
1765
1765
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
1766
1766
|
var tmp;
|
|
@@ -1781,13 +1781,13 @@
|
|
|
1781
1781
|
return hashCode(this.b3());
|
|
1782
1782
|
};
|
|
1783
1783
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) {
|
|
1784
|
-
this.
|
|
1784
|
+
this.v9y_1 = function_0;
|
|
1785
1785
|
}
|
|
1786
1786
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).o28 = function (value, $completion) {
|
|
1787
|
-
return this.
|
|
1787
|
+
return this.v9y_1(value, $completion);
|
|
1788
1788
|
};
|
|
1789
1789
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).b3 = function () {
|
|
1790
|
-
return this.
|
|
1790
|
+
return this.v9y_1;
|
|
1791
1791
|
};
|
|
1792
1792
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).equals = function (other) {
|
|
1793
1793
|
var tmp;
|
|
@@ -1918,8 +1918,8 @@
|
|
|
1918
1918
|
};
|
|
1919
1919
|
}
|
|
1920
1920
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1921
|
+
this.e9z_1 = this$0;
|
|
1922
|
+
this.f9z_1 = $subscriber;
|
|
1923
1923
|
CoroutineImpl.call(this, resultContinuation);
|
|
1924
1924
|
}
|
|
1925
1925
|
protoOf(GameServer$subscribeToClientAction$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -1940,8 +1940,8 @@
|
|
|
1940
1940
|
case 0:
|
|
1941
1941
|
this.t8_1 = 2;
|
|
1942
1942
|
this.s8_1 = 1;
|
|
1943
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
1944
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
1943
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.e9z_1).h9z();
|
|
1944
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.f9z_1, null);
|
|
1945
1945
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
1946
1946
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1947
1947
|
return suspendResult;
|
|
@@ -1965,8 +1965,8 @@
|
|
|
1965
1965
|
while (true);
|
|
1966
1966
|
};
|
|
1967
1967
|
protoOf(GameServer$subscribeToClientAction$slambda).d2d = function ($this$launchDefault, completion) {
|
|
1968
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
1969
|
-
i.
|
|
1968
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.e9z_1, this.f9z_1, completion);
|
|
1969
|
+
i.g9z_1 = $this$launchDefault;
|
|
1970
1970
|
return i;
|
|
1971
1971
|
};
|
|
1972
1972
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1978,8 +1978,8 @@
|
|
|
1978
1978
|
return l;
|
|
1979
1979
|
}
|
|
1980
1980
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
1981
|
+
this.q9z_1 = this$0;
|
|
1982
|
+
this.r9z_1 = $subscriber;
|
|
1983
1983
|
CoroutineImpl.call(this, resultContinuation);
|
|
1984
1984
|
}
|
|
1985
1985
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -2000,8 +2000,8 @@
|
|
|
2000
2000
|
case 0:
|
|
2001
2001
|
this.t8_1 = 2;
|
|
2002
2002
|
this.s8_1 = 1;
|
|
2003
|
-
var tmp_0 = observeTableStateUpdates(this.
|
|
2004
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
2003
|
+
var tmp_0 = observeTableStateUpdates(this.q9z_1);
|
|
2004
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.r9z_1, null);
|
|
2005
2005
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
2006
2006
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2007
2007
|
return suspendResult;
|
|
@@ -2025,8 +2025,8 @@
|
|
|
2025
2025
|
while (true);
|
|
2026
2026
|
};
|
|
2027
2027
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).d2d = function ($this$launchDefault, completion) {
|
|
2028
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
2029
|
-
i.
|
|
2028
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.q9z_1, this.r9z_1, completion);
|
|
2029
|
+
i.s9z_1 = $this$launchDefault;
|
|
2030
2030
|
return i;
|
|
2031
2031
|
};
|
|
2032
2032
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2038,8 +2038,8 @@
|
|
|
2038
2038
|
return l;
|
|
2039
2039
|
}
|
|
2040
2040
|
function GameServer$subscribeServerStateUpdateJson$slambda(this$0, $subscriber, resultContinuation) {
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2041
|
+
this.ba0_1 = this$0;
|
|
2042
|
+
this.ca0_1 = $subscriber;
|
|
2043
2043
|
CoroutineImpl.call(this, resultContinuation);
|
|
2044
2044
|
}
|
|
2045
2045
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -2060,9 +2060,9 @@
|
|
|
2060
2060
|
case 0:
|
|
2061
2061
|
this.t8_1 = 2;
|
|
2062
2062
|
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.
|
|
2063
|
+
var this_0 = observeTableStateUpdates(this.ba0_1);
|
|
2064
|
+
var tmp_0 = new GameServer$subscribeServerStateUpdateJson$2$$inlined$map$1(this_0, this.ba0_1);
|
|
2065
|
+
var tmp_1 = GameServer$subscribeServerStateUpdateJson$slambda$slambda_0(this.ca0_1, null);
|
|
2066
2066
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
2067
2067
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2068
2068
|
return suspendResult;
|
|
@@ -2086,8 +2086,8 @@
|
|
|
2086
2086
|
while (true);
|
|
2087
2087
|
};
|
|
2088
2088
|
protoOf(GameServer$subscribeServerStateUpdateJson$slambda).d2d = function ($this$launchDefault, completion) {
|
|
2089
|
-
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.
|
|
2090
|
-
i.
|
|
2089
|
+
var i = new GameServer$subscribeServerStateUpdateJson$slambda(this.ba0_1, this.ca0_1, completion);
|
|
2090
|
+
i.da0_1 = $this$launchDefault;
|
|
2091
2091
|
return i;
|
|
2092
2092
|
};
|
|
2093
2093
|
function GameServer$subscribeServerStateUpdateJson$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2099,18 +2099,18 @@
|
|
|
2099
2099
|
return l;
|
|
2100
2100
|
}
|
|
2101
2101
|
function GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation) {
|
|
2102
|
-
this.
|
|
2102
|
+
this.ma0_1 = this$0;
|
|
2103
2103
|
CoroutineImpl.call(this, resultContinuation);
|
|
2104
2104
|
}
|
|
2105
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
2106
|
-
var tmp = this.
|
|
2105
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).pa0 = function ($this$transformLatest, it, $completion) {
|
|
2106
|
+
var tmp = this.qa0($this$transformLatest, it, $completion);
|
|
2107
2107
|
tmp.u8_1 = Unit_instance;
|
|
2108
2108
|
tmp.v8_1 = null;
|
|
2109
2109
|
return tmp.a9();
|
|
2110
2110
|
};
|
|
2111
2111
|
protoOf(GameServer$observeTableStateUpdates$slambda).j9 = function (p1, p2, $completion) {
|
|
2112
2112
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2113
|
-
return this.
|
|
2113
|
+
return this.pa0(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2114
2114
|
};
|
|
2115
2115
|
protoOf(GameServer$observeTableStateUpdates$slambda).a9 = function () {
|
|
2116
2116
|
var suspendResult = this.u8_1;
|
|
@@ -2121,8 +2121,8 @@
|
|
|
2121
2121
|
case 0:
|
|
2122
2122
|
this.t8_1 = 2;
|
|
2123
2123
|
this.s8_1 = 1;
|
|
2124
|
-
var table = this.
|
|
2125
|
-
suspendResult = emitAll(this.
|
|
2124
|
+
var table = this.oa0_1;
|
|
2125
|
+
suspendResult = emitAll(this.na0_1, flow(GameServer$observeTableStateUpdates$slambda$slambda_0(table, this.ma0_1, null)), this);
|
|
2126
2126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2127
2127
|
return suspendResult;
|
|
2128
2128
|
}
|
|
@@ -2144,23 +2144,23 @@
|
|
|
2144
2144
|
}
|
|
2145
2145
|
while (true);
|
|
2146
2146
|
};
|
|
2147
|
-
protoOf(GameServer$observeTableStateUpdates$slambda).
|
|
2148
|
-
var i = new GameServer$observeTableStateUpdates$slambda(this.
|
|
2149
|
-
i.
|
|
2150
|
-
i.
|
|
2147
|
+
protoOf(GameServer$observeTableStateUpdates$slambda).qa0 = function ($this$transformLatest, it, completion) {
|
|
2148
|
+
var i = new GameServer$observeTableStateUpdates$slambda(this.ma0_1, completion);
|
|
2149
|
+
i.na0_1 = $this$transformLatest;
|
|
2150
|
+
i.oa0_1 = it;
|
|
2151
2151
|
return i;
|
|
2152
2152
|
};
|
|
2153
2153
|
function GameServer$observeTableStateUpdates$slambda_0(this$0, resultContinuation) {
|
|
2154
2154
|
var i = new GameServer$observeTableStateUpdates$slambda(this$0, resultContinuation);
|
|
2155
2155
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2156
|
-
return i.
|
|
2156
|
+
return i.pa0($this$transformLatest, it, $completion);
|
|
2157
2157
|
};
|
|
2158
2158
|
l.$arity = 2;
|
|
2159
2159
|
return l;
|
|
2160
2160
|
}
|
|
2161
2161
|
function GameServer$observeTableStateUpdates$$inlined$mapNotNull$1($this, this$0) {
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2162
|
+
this.w9u_1 = $this;
|
|
2163
|
+
this.x9u_1 = this$0;
|
|
2164
2164
|
}
|
|
2165
2165
|
protoOf(GameServer$observeTableStateUpdates$$inlined$mapNotNull$1).p28 = function (collector, $completion) {
|
|
2166
2166
|
var tmp = new $collectCOROUTINE$_1(this, collector, $completion);
|
|
@@ -2172,7 +2172,7 @@
|
|
|
2172
2172
|
return this.p28(collector, $completion);
|
|
2173
2173
|
};
|
|
2174
2174
|
function GameServer$observeTableWhenRoundChanges$$inlined$mapNotNull$1($this) {
|
|
2175
|
-
this.
|
|
2175
|
+
this.w9v_1 = $this;
|
|
2176
2176
|
}
|
|
2177
2177
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$mapNotNull$1).p28 = function (collector, $completion) {
|
|
2178
2178
|
var tmp = new $collectCOROUTINE$_2(this, collector, $completion);
|
|
@@ -2184,7 +2184,7 @@
|
|
|
2184
2184
|
return this.p28(collector, $completion);
|
|
2185
2185
|
};
|
|
2186
2186
|
function GameServer$observeTableWhenRoundChanges$$inlined$map$1($this) {
|
|
2187
|
-
this.
|
|
2187
|
+
this.r9w_1 = $this;
|
|
2188
2188
|
}
|
|
2189
2189
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$map$1).p28 = function (collector, $completion) {
|
|
2190
2190
|
var tmp = new $collectCOROUTINE$_3(this, collector, $completion);
|
|
@@ -2199,7 +2199,7 @@
|
|
|
2199
2199
|
return old.me_1 === new_0.me_1;
|
|
2200
2200
|
}
|
|
2201
2201
|
function GameServer$observeTableWhenRoundChanges$$inlined$map$2($this) {
|
|
2202
|
-
this.
|
|
2202
|
+
this.m9x_1 = $this;
|
|
2203
2203
|
}
|
|
2204
2204
|
protoOf(GameServer$observeTableWhenRoundChanges$$inlined$map$2).p28 = function (collector, $completion) {
|
|
2205
2205
|
var tmp = new $collectCOROUTINE$_4(this, collector, $completion);
|
|
@@ -2211,8 +2211,8 @@
|
|
|
2211
2211
|
return this.p28(collector, $completion);
|
|
2212
2212
|
};
|
|
2213
2213
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
2214
|
-
this.
|
|
2215
|
-
this.
|
|
2214
|
+
this.za0_1 = this$0;
|
|
2215
|
+
this.aa1_1 = $subscriber;
|
|
2216
2216
|
CoroutineImpl.call(this, resultContinuation);
|
|
2217
2217
|
}
|
|
2218
2218
|
protoOf(GameServer$subscribeWith$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -2233,8 +2233,8 @@
|
|
|
2233
2233
|
case 0:
|
|
2234
2234
|
this.t8_1 = 2;
|
|
2235
2235
|
this.s8_1 = 1;
|
|
2236
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
2237
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
2236
|
+
var tmp_0 = distinctUntilChanged(this.za0_1.b6r());
|
|
2237
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.aa1_1, null);
|
|
2238
2238
|
suspendResult = tmp_0.o27(new sam$kotlinx_coroutines_flow_FlowCollector$0_4(tmp_1), this);
|
|
2239
2239
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2240
2240
|
return suspendResult;
|
|
@@ -2258,8 +2258,8 @@
|
|
|
2258
2258
|
while (true);
|
|
2259
2259
|
};
|
|
2260
2260
|
protoOf(GameServer$subscribeWith$slambda).d2d = function ($this$launchDefault, completion) {
|
|
2261
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
2262
|
-
i.
|
|
2261
|
+
var i = new GameServer$subscribeWith$slambda(this.za0_1, this.aa1_1, completion);
|
|
2262
|
+
i.ba1_1 = $this$launchDefault;
|
|
2263
2263
|
return i;
|
|
2264
2264
|
};
|
|
2265
2265
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -2271,18 +2271,18 @@
|
|
|
2271
2271
|
return l;
|
|
2272
2272
|
}
|
|
2273
2273
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
2274
|
-
this.
|
|
2274
|
+
this.ka1_1 = $action;
|
|
2275
2275
|
CoroutineImpl.call(this, resultContinuation);
|
|
2276
2276
|
}
|
|
2277
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
2278
|
-
var tmp = this.
|
|
2277
|
+
protoOf(GameServer$fromClientEvent$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2278
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2279
2279
|
tmp.u8_1 = Unit_instance;
|
|
2280
2280
|
tmp.v8_1 = null;
|
|
2281
2281
|
return tmp.a9();
|
|
2282
2282
|
};
|
|
2283
2283
|
protoOf(GameServer$fromClientEvent$slambda).j9 = function (p1, p2, $completion) {
|
|
2284
2284
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2285
|
-
return this.
|
|
2285
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2286
2286
|
};
|
|
2287
2287
|
protoOf(GameServer$fromClientEvent$slambda).a9 = function () {
|
|
2288
2288
|
var suspendResult = this.u8_1;
|
|
@@ -2291,11 +2291,11 @@
|
|
|
2291
2291
|
var tmp = this.s8_1;
|
|
2292
2292
|
if (tmp === 0) {
|
|
2293
2293
|
this.t8_1 = 1;
|
|
2294
|
-
if (this.
|
|
2295
|
-
if (!get_isCreated(this.
|
|
2294
|
+
if (this.ka1_1 instanceof PlayerReadyFromClientAction)
|
|
2295
|
+
if (!get_isCreated(this.ma1_1.state)) {
|
|
2296
2296
|
return Unit_instance;
|
|
2297
2297
|
}
|
|
2298
|
-
this.
|
|
2298
|
+
this.ma1_1.dispatch(this.ka1_1);
|
|
2299
2299
|
return Unit_instance;
|
|
2300
2300
|
} else if (tmp === 1) {
|
|
2301
2301
|
throw this.v8_1;
|
|
@@ -2306,33 +2306,34 @@
|
|
|
2306
2306
|
}
|
|
2307
2307
|
while (true);
|
|
2308
2308
|
};
|
|
2309
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
2310
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
2311
|
-
i.
|
|
2312
|
-
i.
|
|
2309
|
+
protoOf(GameServer$fromClientEvent$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2310
|
+
var i = new GameServer$fromClientEvent$slambda(this.ka1_1, completion);
|
|
2311
|
+
i.la1_1 = $this$dispatchAsync;
|
|
2312
|
+
i.ma1_1 = store;
|
|
2313
2313
|
return i;
|
|
2314
2314
|
};
|
|
2315
2315
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
2316
2316
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
2317
2317
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2318
|
-
return i.
|
|
2318
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2319
2319
|
};
|
|
2320
2320
|
l.$arity = 2;
|
|
2321
2321
|
return l;
|
|
2322
2322
|
}
|
|
2323
|
-
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
2324
|
-
this.
|
|
2323
|
+
function GameServer$playerLostConnection$slambda($playerId, $roomId, resultContinuation) {
|
|
2324
|
+
this.xa1_1 = $playerId;
|
|
2325
|
+
this.ya1_1 = $roomId;
|
|
2325
2326
|
CoroutineImpl.call(this, resultContinuation);
|
|
2326
2327
|
}
|
|
2327
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
2328
|
-
var tmp = this.
|
|
2328
|
+
protoOf(GameServer$playerLostConnection$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2329
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2329
2330
|
tmp.u8_1 = Unit_instance;
|
|
2330
2331
|
tmp.v8_1 = null;
|
|
2331
2332
|
return tmp.a9();
|
|
2332
2333
|
};
|
|
2333
2334
|
protoOf(GameServer$playerLostConnection$slambda).j9 = function (p1, p2, $completion) {
|
|
2334
2335
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2335
|
-
return this.
|
|
2336
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2336
2337
|
};
|
|
2337
2338
|
protoOf(GameServer$playerLostConnection$slambda).a9 = function () {
|
|
2338
2339
|
var suspendResult = this.u8_1;
|
|
@@ -2341,12 +2342,12 @@
|
|
|
2341
2342
|
var tmp = this.s8_1;
|
|
2342
2343
|
if (tmp === 0) {
|
|
2343
2344
|
this.t8_1 = 1;
|
|
2344
|
-
if (!get_isCreated(this.
|
|
2345
|
+
if (!get_isCreated(this.aa2_1.state)) {
|
|
2345
2346
|
return Unit_instance;
|
|
2346
2347
|
}
|
|
2347
|
-
var tmp_0 = this.
|
|
2348
|
+
var tmp_0 = this.aa2_1.dispatch;
|
|
2348
2349
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
2349
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2350
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.xa1_1, this.ya1_1));
|
|
2350
2351
|
return Unit_instance;
|
|
2351
2352
|
} else if (tmp === 1) {
|
|
2352
2353
|
throw this.v8_1;
|
|
@@ -2357,34 +2358,35 @@
|
|
|
2357
2358
|
}
|
|
2358
2359
|
while (true);
|
|
2359
2360
|
};
|
|
2360
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
2361
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
2362
|
-
i.
|
|
2363
|
-
i.
|
|
2361
|
+
protoOf(GameServer$playerLostConnection$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2362
|
+
var i = new GameServer$playerLostConnection$slambda(this.xa1_1, this.ya1_1, completion);
|
|
2363
|
+
i.za1_1 = $this$dispatchAsync;
|
|
2364
|
+
i.aa2_1 = store;
|
|
2364
2365
|
return i;
|
|
2365
2366
|
};
|
|
2366
|
-
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
2367
|
-
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
2367
|
+
function GameServer$playerLostConnection$slambda_0($playerId, $roomId, resultContinuation) {
|
|
2368
|
+
var i = new GameServer$playerLostConnection$slambda($playerId, $roomId, resultContinuation);
|
|
2368
2369
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2369
|
-
return i.
|
|
2370
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2370
2371
|
};
|
|
2371
2372
|
l.$arity = 2;
|
|
2372
2373
|
return l;
|
|
2373
2374
|
}
|
|
2374
|
-
function GameServer$playerLive$slambda(this$0, $playerId, resultContinuation) {
|
|
2375
|
-
this.
|
|
2376
|
-
this.
|
|
2375
|
+
function GameServer$playerLive$slambda(this$0, $playerId, $roomId, resultContinuation) {
|
|
2376
|
+
this.ja2_1 = this$0;
|
|
2377
|
+
this.ka2_1 = $playerId;
|
|
2378
|
+
this.la2_1 = $roomId;
|
|
2377
2379
|
CoroutineImpl.call(this, resultContinuation);
|
|
2378
2380
|
}
|
|
2379
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2380
|
-
var tmp = this.
|
|
2381
|
+
protoOf(GameServer$playerLive$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2382
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2381
2383
|
tmp.u8_1 = Unit_instance;
|
|
2382
2384
|
tmp.v8_1 = null;
|
|
2383
2385
|
return tmp.a9();
|
|
2384
2386
|
};
|
|
2385
2387
|
protoOf(GameServer$playerLive$slambda).j9 = function (p1, p2, $completion) {
|
|
2386
2388
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2387
|
-
return this.
|
|
2389
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2388
2390
|
};
|
|
2389
2391
|
protoOf(GameServer$playerLive$slambda).a9 = function () {
|
|
2390
2392
|
var suspendResult = this.u8_1;
|
|
@@ -2393,16 +2395,16 @@
|
|
|
2393
2395
|
var tmp = this.s8_1;
|
|
2394
2396
|
if (tmp === 0) {
|
|
2395
2397
|
this.t8_1 = 1;
|
|
2396
|
-
if (get_isFinished(this.
|
|
2398
|
+
if (get_isFinished(this.na2_1.state) || get_isFinishing(this.na2_1.state)) {
|
|
2397
2399
|
return Unit_instance;
|
|
2398
2400
|
}
|
|
2399
|
-
if (!_get_serverReduxConfig__rprcrm(this.
|
|
2400
|
-
this.
|
|
2401
|
+
if (!_get_serverReduxConfig__rprcrm(this.ja2_1).waitForPlayerToConnectOnStart && (!get_isCreated(this.na2_1.state) || !this.ja2_1.x66().e6s())) {
|
|
2402
|
+
this.ja2_1.i4q().v('GameEngine_API', 'playerLive: ' + this.ka2_1 + ' before game is created');
|
|
2401
2403
|
return Unit_instance;
|
|
2402
2404
|
}
|
|
2403
|
-
var tmp_0 = this.
|
|
2405
|
+
var tmp_0 = this.na2_1.dispatch;
|
|
2404
2406
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2405
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2407
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ka2_1, this.la2_1));
|
|
2406
2408
|
return Unit_instance;
|
|
2407
2409
|
} else if (tmp === 1) {
|
|
2408
2410
|
throw this.v8_1;
|
|
@@ -2413,35 +2415,36 @@
|
|
|
2413
2415
|
}
|
|
2414
2416
|
while (true);
|
|
2415
2417
|
};
|
|
2416
|
-
protoOf(GameServer$playerLive$slambda).
|
|
2417
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
2418
|
-
i.
|
|
2419
|
-
i.
|
|
2418
|
+
protoOf(GameServer$playerLive$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2419
|
+
var i = new GameServer$playerLive$slambda(this.ja2_1, this.ka2_1, this.la2_1, completion);
|
|
2420
|
+
i.ma2_1 = $this$dispatchAsync;
|
|
2421
|
+
i.na2_1 = store;
|
|
2420
2422
|
return i;
|
|
2421
2423
|
};
|
|
2422
|
-
function GameServer$playerLive$slambda_0(this$0, $playerId, resultContinuation) {
|
|
2423
|
-
var i = new GameServer$playerLive$slambda(this$0, $playerId, resultContinuation);
|
|
2424
|
+
function GameServer$playerLive$slambda_0(this$0, $playerId, $roomId, resultContinuation) {
|
|
2425
|
+
var i = new GameServer$playerLive$slambda(this$0, $playerId, $roomId, resultContinuation);
|
|
2424
2426
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2425
|
-
return i.
|
|
2427
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2426
2428
|
};
|
|
2427
2429
|
l.$arity = 2;
|
|
2428
2430
|
return l;
|
|
2429
2431
|
}
|
|
2430
|
-
function GameServer$playerLeft$slambda(this$0, $playerId, $permanently, resultContinuation) {
|
|
2431
|
-
this.
|
|
2432
|
-
this.
|
|
2433
|
-
this.
|
|
2432
|
+
function GameServer$playerLeft$slambda(this$0, $playerId, $permanently, $roomId, resultContinuation) {
|
|
2433
|
+
this.wa2_1 = this$0;
|
|
2434
|
+
this.xa2_1 = $playerId;
|
|
2435
|
+
this.ya2_1 = $permanently;
|
|
2436
|
+
this.za2_1 = $roomId;
|
|
2434
2437
|
CoroutineImpl.call(this, resultContinuation);
|
|
2435
2438
|
}
|
|
2436
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2437
|
-
var tmp = this.
|
|
2439
|
+
protoOf(GameServer$playerLeft$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2440
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2438
2441
|
tmp.u8_1 = Unit_instance;
|
|
2439
2442
|
tmp.v8_1 = null;
|
|
2440
2443
|
return tmp.a9();
|
|
2441
2444
|
};
|
|
2442
2445
|
protoOf(GameServer$playerLeft$slambda).j9 = function (p1, p2, $completion) {
|
|
2443
2446
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2444
|
-
return this.
|
|
2447
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2445
2448
|
};
|
|
2446
2449
|
protoOf(GameServer$playerLeft$slambda).a9 = function () {
|
|
2447
2450
|
var suspendResult = this.u8_1;
|
|
@@ -2450,22 +2453,22 @@
|
|
|
2450
2453
|
var tmp = this.s8_1;
|
|
2451
2454
|
if (tmp === 0) {
|
|
2452
2455
|
this.t8_1 = 1;
|
|
2453
|
-
if (get_isFinished(this.
|
|
2456
|
+
if (get_isFinished(this.ba3_1.state) || get_isFinishing(this.ba3_1.state)) {
|
|
2454
2457
|
return Unit_instance;
|
|
2455
2458
|
}
|
|
2456
|
-
if (!get_isCreated(this.
|
|
2457
|
-
this.
|
|
2459
|
+
if (!get_isCreated(this.ba3_1.state) || !this.wa2_1.x66().e6s()) {
|
|
2460
|
+
this.wa2_1.i4q().w('GameEngine_API', 'playerLeft: ' + this.xa2_1 + ' before game is created');
|
|
2458
2461
|
return Unit_instance;
|
|
2459
2462
|
}
|
|
2460
|
-
var tmp_0 = this.
|
|
2463
|
+
var tmp_0 = this.ba3_1.dispatch;
|
|
2461
2464
|
var tmp_1;
|
|
2462
|
-
if (this.
|
|
2465
|
+
if (this.ya2_1) {
|
|
2463
2466
|
tmp_1 = PlayerConnectionState_LEFT_PERMANENTLY_getInstance();
|
|
2464
2467
|
} else {
|
|
2465
2468
|
tmp_1 = PlayerConnectionState_LEFT_getInstance();
|
|
2466
2469
|
}
|
|
2467
2470
|
var tmp0_connectionState = tmp_1;
|
|
2468
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2471
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.xa2_1, this.za2_1));
|
|
2469
2472
|
return Unit_instance;
|
|
2470
2473
|
} else if (tmp === 1) {
|
|
2471
2474
|
throw this.v8_1;
|
|
@@ -2476,39 +2479,39 @@
|
|
|
2476
2479
|
}
|
|
2477
2480
|
while (true);
|
|
2478
2481
|
};
|
|
2479
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
2480
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
2481
|
-
i.
|
|
2482
|
-
i.
|
|
2482
|
+
protoOf(GameServer$playerLeft$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2483
|
+
var i = new GameServer$playerLeft$slambda(this.wa2_1, this.xa2_1, this.ya2_1, this.za2_1, completion);
|
|
2484
|
+
i.aa3_1 = $this$dispatchAsync;
|
|
2485
|
+
i.ba3_1 = store;
|
|
2483
2486
|
return i;
|
|
2484
2487
|
};
|
|
2485
|
-
function GameServer$playerLeft$slambda_0(this$0, $playerId, $permanently, resultContinuation) {
|
|
2486
|
-
var i = new GameServer$playerLeft$slambda(this$0, $playerId, $permanently, resultContinuation);
|
|
2488
|
+
function GameServer$playerLeft$slambda_0(this$0, $playerId, $permanently, $roomId, resultContinuation) {
|
|
2489
|
+
var i = new GameServer$playerLeft$slambda(this$0, $playerId, $permanently, $roomId, resultContinuation);
|
|
2487
2490
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2488
|
-
return i.
|
|
2491
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2489
2492
|
};
|
|
2490
2493
|
l.$arity = 2;
|
|
2491
2494
|
return l;
|
|
2492
2495
|
}
|
|
2493
2496
|
function GameServer$roomOnCreate$slambda($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2494
|
-
this.
|
|
2495
|
-
this.
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2497
|
+
this.ka3_1 = $usersArray;
|
|
2498
|
+
this.la3_1 = this$0;
|
|
2499
|
+
this.ma3_1 = $config;
|
|
2500
|
+
this.na3_1 = $roomId;
|
|
2501
|
+
this.oa3_1 = $transition;
|
|
2502
|
+
this.pa3_1 = $gameCreatorId;
|
|
2503
|
+
this.qa3_1 = $spectators;
|
|
2501
2504
|
CoroutineImpl.call(this, resultContinuation);
|
|
2502
2505
|
}
|
|
2503
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2504
|
-
var tmp = this.
|
|
2506
|
+
protoOf(GameServer$roomOnCreate$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2507
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2505
2508
|
tmp.u8_1 = Unit_instance;
|
|
2506
2509
|
tmp.v8_1 = null;
|
|
2507
2510
|
return tmp.a9();
|
|
2508
2511
|
};
|
|
2509
2512
|
protoOf(GameServer$roomOnCreate$slambda).j9 = function (p1, p2, $completion) {
|
|
2510
2513
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2511
|
-
return this.
|
|
2514
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2512
2515
|
};
|
|
2513
2516
|
protoOf(GameServer$roomOnCreate$slambda).a9 = function () {
|
|
2514
2517
|
var suspendResult = this.u8_1;
|
|
@@ -2517,18 +2520,18 @@
|
|
|
2517
2520
|
var tmp = this.s8_1;
|
|
2518
2521
|
if (tmp === 0) {
|
|
2519
2522
|
this.t8_1 = 1;
|
|
2520
|
-
var users = toList(this.
|
|
2521
|
-
if (!validatePlayerCount(this.
|
|
2522
|
-
this.
|
|
2523
|
+
var users = toList(this.ka3_1);
|
|
2524
|
+
if (!validatePlayerCount(this.la3_1, this.ma3_1, users, this.na3_1)) {
|
|
2525
|
+
this.sa3_1.dispatch(Companion_instance.fromTableWithAnalytics(new GameErrorReason(Reason_SERVER_ERROR_getInstance()), this.la3_1.table.isGameFinished, this.la3_1.table));
|
|
2523
2526
|
return Unit_instance;
|
|
2524
2527
|
}
|
|
2525
|
-
var orderedUsers = orderUsers(this.
|
|
2526
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
2527
|
-
var tmp_0 = this.
|
|
2528
|
+
var orderedUsers = orderUsers(this.la3_1, users, this.ma3_1, this.oa3_1);
|
|
2529
|
+
var gameCreatorUser = getPlayer(users, this.pa3_1);
|
|
2530
|
+
var tmp_0 = this.sa3_1.dispatch;
|
|
2528
2531
|
var tmp0_version = get_versionOrDefault(GameEngineConfig_instance);
|
|
2529
2532
|
var tmp1_users = sortWithItem(orderedUsers, gameCreatorUser);
|
|
2530
|
-
var tmp2_spectators = toList(this.
|
|
2531
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
2533
|
+
var tmp2_spectators = toList(this.qa3_1);
|
|
2534
|
+
tmp_0(new StartGameMechanicAction(this.ma3_1, this.na3_1, tmp0_version, this.pa3_1, tmp1_users, VOID, tmp2_spectators));
|
|
2532
2535
|
return Unit_instance;
|
|
2533
2536
|
} else if (tmp === 1) {
|
|
2534
2537
|
throw this.v8_1;
|
|
@@ -2539,39 +2542,39 @@
|
|
|
2539
2542
|
}
|
|
2540
2543
|
while (true);
|
|
2541
2544
|
};
|
|
2542
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
2543
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
2544
|
-
i.
|
|
2545
|
-
i.
|
|
2545
|
+
protoOf(GameServer$roomOnCreate$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2546
|
+
var i = new GameServer$roomOnCreate$slambda(this.ka3_1, this.la3_1, this.ma3_1, this.na3_1, this.oa3_1, this.pa3_1, this.qa3_1, completion);
|
|
2547
|
+
i.ra3_1 = $this$dispatchAsync;
|
|
2548
|
+
i.sa3_1 = store;
|
|
2546
2549
|
return i;
|
|
2547
2550
|
};
|
|
2548
2551
|
function GameServer$roomOnCreate$slambda_0($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
2549
2552
|
var i = new GameServer$roomOnCreate$slambda($usersArray, this$0, $config, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation);
|
|
2550
2553
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2551
|
-
return i.
|
|
2554
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2552
2555
|
};
|
|
2553
2556
|
l.$arity = 2;
|
|
2554
2557
|
return l;
|
|
2555
2558
|
}
|
|
2556
2559
|
function GameServer$preserveTeams$previousTeams$1($playerId) {
|
|
2557
|
-
this.
|
|
2560
|
+
this.ta3_1 = $playerId;
|
|
2558
2561
|
}
|
|
2559
2562
|
protoOf(GameServer$preserveTeams$previousTeams$1).z65 = function () {
|
|
2560
|
-
return this.
|
|
2563
|
+
return this.ta3_1;
|
|
2561
2564
|
};
|
|
2562
2565
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
2563
|
-
this.
|
|
2566
|
+
this.ca4_1 = $state;
|
|
2564
2567
|
CoroutineImpl.call(this, resultContinuation);
|
|
2565
2568
|
}
|
|
2566
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2567
|
-
var tmp = this.
|
|
2569
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).fa4 = function ($this$dispatchAwait, store, $completion) {
|
|
2570
|
+
var tmp = this.oa1($this$dispatchAwait, store, $completion);
|
|
2568
2571
|
tmp.u8_1 = Unit_instance;
|
|
2569
2572
|
tmp.v8_1 = null;
|
|
2570
2573
|
return tmp.a9();
|
|
2571
2574
|
};
|
|
2572
2575
|
protoOf(GameServer$roomOnContinueFromState$slambda).j9 = function (p1, p2, $completion) {
|
|
2573
2576
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2574
|
-
return this.
|
|
2577
|
+
return this.fa4(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2575
2578
|
};
|
|
2576
2579
|
protoOf(GameServer$roomOnContinueFromState$slambda).a9 = function () {
|
|
2577
2580
|
var suspendResult = this.u8_1;
|
|
@@ -2580,10 +2583,10 @@
|
|
|
2580
2583
|
var tmp = this.s8_1;
|
|
2581
2584
|
if (tmp === 0) {
|
|
2582
2585
|
this.t8_1 = 1;
|
|
2583
|
-
if (get_isCreating(this.
|
|
2584
|
-
var tmp_0 = this.
|
|
2586
|
+
if (get_isCreating(this.ea4_1.state)) {
|
|
2587
|
+
var tmp_0 = this.ea4_1.dispatch;
|
|
2585
2588
|
var tmp0_reason = new RestartRoundReason(null);
|
|
2586
|
-
var tmp1_table = this.
|
|
2589
|
+
var tmp1_table = this.ca4_1.table;
|
|
2587
2590
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2588
2591
|
return true;
|
|
2589
2592
|
}
|
|
@@ -2597,34 +2600,34 @@
|
|
|
2597
2600
|
}
|
|
2598
2601
|
while (true);
|
|
2599
2602
|
};
|
|
2600
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
2601
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
2602
|
-
i.
|
|
2603
|
-
i.
|
|
2603
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).oa1 = function ($this$dispatchAwait, store, completion) {
|
|
2604
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.ca4_1, completion);
|
|
2605
|
+
i.da4_1 = $this$dispatchAwait;
|
|
2606
|
+
i.ea4_1 = store;
|
|
2604
2607
|
return i;
|
|
2605
2608
|
};
|
|
2606
2609
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
2607
2610
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
2608
2611
|
var l = function ($this$dispatchAwait, store, $completion) {
|
|
2609
|
-
return i.
|
|
2612
|
+
return i.fa4($this$dispatchAwait, store, $completion);
|
|
2610
2613
|
};
|
|
2611
2614
|
l.$arity = 2;
|
|
2612
2615
|
return l;
|
|
2613
2616
|
}
|
|
2614
2617
|
function GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation) {
|
|
2615
|
-
this.
|
|
2616
|
-
this.
|
|
2618
|
+
this.oa4_1 = $isCreated;
|
|
2619
|
+
this.pa4_1 = $state;
|
|
2617
2620
|
CoroutineImpl.call(this, resultContinuation);
|
|
2618
2621
|
}
|
|
2619
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2620
|
-
var tmp = this.
|
|
2622
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2623
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2621
2624
|
tmp.u8_1 = Unit_instance;
|
|
2622
2625
|
tmp.v8_1 = null;
|
|
2623
2626
|
return tmp.a9();
|
|
2624
2627
|
};
|
|
2625
2628
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).j9 = function (p1, p2, $completion) {
|
|
2626
2629
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2627
|
-
return this.
|
|
2630
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2628
2631
|
};
|
|
2629
2632
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).a9 = function () {
|
|
2630
2633
|
var suspendResult = this.u8_1;
|
|
@@ -2635,7 +2638,7 @@
|
|
|
2635
2638
|
case 0:
|
|
2636
2639
|
this.t8_1 = 3;
|
|
2637
2640
|
this.s8_1 = 1;
|
|
2638
|
-
suspendResult = this.
|
|
2641
|
+
suspendResult = this.oa4_1.a1u(this);
|
|
2639
2642
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2640
2643
|
return suspendResult;
|
|
2641
2644
|
}
|
|
@@ -2643,10 +2646,10 @@
|
|
|
2643
2646
|
continue $sm;
|
|
2644
2647
|
case 1:
|
|
2645
2648
|
if (suspendResult) {
|
|
2646
|
-
var _iterator__ex2g4s = this.
|
|
2649
|
+
var _iterator__ex2g4s = this.pa4_1.actions.l();
|
|
2647
2650
|
while (_iterator__ex2g4s.m()) {
|
|
2648
2651
|
var element = _iterator__ex2g4s.n();
|
|
2649
|
-
this.
|
|
2652
|
+
this.ra4_1.dispatch(element);
|
|
2650
2653
|
}
|
|
2651
2654
|
this.s8_1 = 2;
|
|
2652
2655
|
continue $sm;
|
|
@@ -2671,35 +2674,35 @@
|
|
|
2671
2674
|
}
|
|
2672
2675
|
while (true);
|
|
2673
2676
|
};
|
|
2674
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
2675
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
2676
|
-
i.
|
|
2677
|
-
i.
|
|
2677
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2678
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.oa4_1, this.pa4_1, completion);
|
|
2679
|
+
i.qa4_1 = $this$dispatchAsync;
|
|
2680
|
+
i.ra4_1 = store;
|
|
2678
2681
|
return i;
|
|
2679
2682
|
};
|
|
2680
2683
|
function GameServer$roomOnContinueFromState$slambda_2($isCreated, $state, resultContinuation) {
|
|
2681
2684
|
var i = new GameServer$roomOnContinueFromState$slambda_1($isCreated, $state, resultContinuation);
|
|
2682
2685
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2683
|
-
return i.
|
|
2686
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2684
2687
|
};
|
|
2685
2688
|
l.$arity = 2;
|
|
2686
2689
|
return l;
|
|
2687
2690
|
}
|
|
2688
2691
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
2689
|
-
this.
|
|
2690
|
-
this.
|
|
2691
|
-
this.
|
|
2692
|
+
this.aa5_1 = $tableLite;
|
|
2693
|
+
this.ba5_1 = $roomId;
|
|
2694
|
+
this.ca5_1 = this$0;
|
|
2692
2695
|
CoroutineImpl.call(this, resultContinuation);
|
|
2693
2696
|
}
|
|
2694
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2695
|
-
var tmp = this.
|
|
2697
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2698
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2696
2699
|
tmp.u8_1 = Unit_instance;
|
|
2697
2700
|
tmp.v8_1 = null;
|
|
2698
2701
|
return tmp.a9();
|
|
2699
2702
|
};
|
|
2700
2703
|
protoOf(GameServer$roomOnContinueFromRound$slambda).j9 = function (p1, p2, $completion) {
|
|
2701
2704
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2702
|
-
return this.
|
|
2705
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2703
2706
|
};
|
|
2704
2707
|
protoOf(GameServer$roomOnContinueFromRound$slambda).a9 = function () {
|
|
2705
2708
|
var suspendResult = this.u8_1;
|
|
@@ -2708,9 +2711,9 @@
|
|
|
2708
2711
|
var tmp = this.s8_1;
|
|
2709
2712
|
if (tmp === 0) {
|
|
2710
2713
|
this.t8_1 = 1;
|
|
2711
|
-
var tmp_0 = this.
|
|
2712
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
2713
|
-
var tmp1_table = Companion_instance_0.restartRound(this.
|
|
2714
|
+
var tmp_0 = this.ea5_1.dispatch;
|
|
2715
|
+
var tmp0_reason = new RestartRoundReason(this.aa5_1.gameInfo.round.roundNumber);
|
|
2716
|
+
var tmp1_table = Companion_instance_0.restartRound(this.ba5_1, _get_idsProvider__fnfajc(this.ca5_1).h6e(), get_versionOrDefault(GameEngineConfig_instance), this.aa5_1);
|
|
2714
2717
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
2715
2718
|
return Unit_instance;
|
|
2716
2719
|
} else if (tmp === 1) {
|
|
@@ -2722,16 +2725,16 @@
|
|
|
2722
2725
|
}
|
|
2723
2726
|
while (true);
|
|
2724
2727
|
};
|
|
2725
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
2726
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
2727
|
-
i.
|
|
2728
|
-
i.
|
|
2728
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2729
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.aa5_1, this.ba5_1, this.ca5_1, completion);
|
|
2730
|
+
i.da5_1 = $this$dispatchAsync;
|
|
2731
|
+
i.ea5_1 = store;
|
|
2729
2732
|
return i;
|
|
2730
2733
|
};
|
|
2731
2734
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
2732
2735
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
2733
2736
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2734
|
-
return i.
|
|
2737
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2735
2738
|
};
|
|
2736
2739
|
l.$arity = 2;
|
|
2737
2740
|
return l;
|
|
@@ -2739,15 +2742,15 @@
|
|
|
2739
2742
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
2740
2743
|
CoroutineImpl.call(this, resultContinuation);
|
|
2741
2744
|
}
|
|
2742
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2743
|
-
var tmp = this.
|
|
2745
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2746
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2744
2747
|
tmp.u8_1 = Unit_instance;
|
|
2745
2748
|
tmp.v8_1 = null;
|
|
2746
2749
|
return tmp.a9();
|
|
2747
2750
|
};
|
|
2748
2751
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).j9 = function (p1, p2, $completion) {
|
|
2749
2752
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2750
|
-
return this.
|
|
2753
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2751
2754
|
};
|
|
2752
2755
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).a9 = function () {
|
|
2753
2756
|
var suspendResult = this.u8_1;
|
|
@@ -2756,7 +2759,7 @@
|
|
|
2756
2759
|
var tmp = this.s8_1;
|
|
2757
2760
|
if (tmp === 0) {
|
|
2758
2761
|
this.t8_1 = 1;
|
|
2759
|
-
this.
|
|
2762
|
+
this.oa5_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
2760
2763
|
return Unit_instance;
|
|
2761
2764
|
} else if (tmp === 1) {
|
|
2762
2765
|
throw this.v8_1;
|
|
@@ -2767,33 +2770,33 @@
|
|
|
2767
2770
|
}
|
|
2768
2771
|
while (true);
|
|
2769
2772
|
};
|
|
2770
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
2773
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2771
2774
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
2772
|
-
i.
|
|
2773
|
-
i.
|
|
2775
|
+
i.na5_1 = $this$dispatchAsync;
|
|
2776
|
+
i.oa5_1 = store;
|
|
2774
2777
|
return i;
|
|
2775
2778
|
};
|
|
2776
2779
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
2777
2780
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
2778
2781
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2779
|
-
return i.
|
|
2782
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2780
2783
|
};
|
|
2781
2784
|
l.$arity = 2;
|
|
2782
2785
|
return l;
|
|
2783
2786
|
}
|
|
2784
2787
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
2785
|
-
this.
|
|
2788
|
+
this.xa5_1 = $spectators;
|
|
2786
2789
|
CoroutineImpl.call(this, resultContinuation);
|
|
2787
2790
|
}
|
|
2788
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2789
|
-
var tmp = this.
|
|
2791
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2792
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2790
2793
|
tmp.u8_1 = Unit_instance;
|
|
2791
2794
|
tmp.v8_1 = null;
|
|
2792
2795
|
return tmp.a9();
|
|
2793
2796
|
};
|
|
2794
2797
|
protoOf(GameServer$addSpectatorsToRoom$slambda).j9 = function (p1, p2, $completion) {
|
|
2795
2798
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2796
|
-
return this.
|
|
2799
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2797
2800
|
};
|
|
2798
2801
|
protoOf(GameServer$addSpectatorsToRoom$slambda).a9 = function () {
|
|
2799
2802
|
var suspendResult = this.u8_1;
|
|
@@ -2802,7 +2805,7 @@
|
|
|
2802
2805
|
var tmp = this.s8_1;
|
|
2803
2806
|
if (tmp === 0) {
|
|
2804
2807
|
this.t8_1 = 1;
|
|
2805
|
-
this.
|
|
2808
|
+
this.za5_1.dispatch(new AddSpectatorsAction(toList(this.xa5_1)));
|
|
2806
2809
|
return Unit_instance;
|
|
2807
2810
|
} else if (tmp === 1) {
|
|
2808
2811
|
throw this.v8_1;
|
|
@@ -2813,33 +2816,33 @@
|
|
|
2813
2816
|
}
|
|
2814
2817
|
while (true);
|
|
2815
2818
|
};
|
|
2816
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
2817
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
2818
|
-
i.
|
|
2819
|
-
i.
|
|
2819
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2820
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.xa5_1, completion);
|
|
2821
|
+
i.ya5_1 = $this$dispatchAsync;
|
|
2822
|
+
i.za5_1 = store;
|
|
2820
2823
|
return i;
|
|
2821
2824
|
};
|
|
2822
2825
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
2823
2826
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
2824
2827
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2825
|
-
return i.
|
|
2828
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2826
2829
|
};
|
|
2827
2830
|
l.$arity = 2;
|
|
2828
2831
|
return l;
|
|
2829
2832
|
}
|
|
2830
2833
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
2831
|
-
this.
|
|
2834
|
+
this.ia6_1 = $spectators;
|
|
2832
2835
|
CoroutineImpl.call(this, resultContinuation);
|
|
2833
2836
|
}
|
|
2834
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2835
|
-
var tmp = this.
|
|
2837
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2838
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2836
2839
|
tmp.u8_1 = Unit_instance;
|
|
2837
2840
|
tmp.v8_1 = null;
|
|
2838
2841
|
return tmp.a9();
|
|
2839
2842
|
};
|
|
2840
2843
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).j9 = function (p1, p2, $completion) {
|
|
2841
2844
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2842
|
-
return this.
|
|
2845
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2843
2846
|
};
|
|
2844
2847
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).a9 = function () {
|
|
2845
2848
|
var suspendResult = this.u8_1;
|
|
@@ -2848,7 +2851,7 @@
|
|
|
2848
2851
|
var tmp = this.s8_1;
|
|
2849
2852
|
if (tmp === 0) {
|
|
2850
2853
|
this.t8_1 = 1;
|
|
2851
|
-
this.
|
|
2854
|
+
this.ka6_1.dispatch(new RemoveSpectatorsAction(toList(this.ia6_1)));
|
|
2852
2855
|
return Unit_instance;
|
|
2853
2856
|
} else if (tmp === 1) {
|
|
2854
2857
|
throw this.v8_1;
|
|
@@ -2859,34 +2862,34 @@
|
|
|
2859
2862
|
}
|
|
2860
2863
|
while (true);
|
|
2861
2864
|
};
|
|
2862
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2863
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2864
|
-
i.
|
|
2865
|
-
i.
|
|
2865
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2866
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.ia6_1, completion);
|
|
2867
|
+
i.ja6_1 = $this$dispatchAsync;
|
|
2868
|
+
i.ka6_1 = store;
|
|
2866
2869
|
return i;
|
|
2867
2870
|
};
|
|
2868
2871
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2869
2872
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2870
2873
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2871
|
-
return i.
|
|
2874
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2872
2875
|
};
|
|
2873
2876
|
l.$arity = 2;
|
|
2874
2877
|
return l;
|
|
2875
2878
|
}
|
|
2876
2879
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2877
|
-
this.
|
|
2878
|
-
this.
|
|
2880
|
+
this.ta6_1 = $playerId;
|
|
2881
|
+
this.ua6_1 = this$0;
|
|
2879
2882
|
CoroutineImpl.call(this, resultContinuation);
|
|
2880
2883
|
}
|
|
2881
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2882
|
-
var tmp = this.
|
|
2884
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2885
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2883
2886
|
tmp.u8_1 = Unit_instance;
|
|
2884
2887
|
tmp.v8_1 = null;
|
|
2885
2888
|
return tmp.a9();
|
|
2886
2889
|
};
|
|
2887
2890
|
protoOf(GameServer$roomRefreshPlayerState$slambda).j9 = function (p1, p2, $completion) {
|
|
2888
2891
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2889
|
-
return this.
|
|
2892
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2890
2893
|
};
|
|
2891
2894
|
protoOf(GameServer$roomRefreshPlayerState$slambda).a9 = function () {
|
|
2892
2895
|
var suspendResult = this.u8_1;
|
|
@@ -2895,14 +2898,14 @@
|
|
|
2895
2898
|
var tmp = this.s8_1;
|
|
2896
2899
|
if (tmp === 0) {
|
|
2897
2900
|
this.t8_1 = 1;
|
|
2898
|
-
var table = this.
|
|
2899
|
-
var player = getPlayer(table.players, this.
|
|
2901
|
+
var table = this.wa6_1.state.c6s();
|
|
2902
|
+
var player = getPlayer(table.players, this.ta6_1);
|
|
2900
2903
|
if (player.n6v_1.d69().n67_1.isLive) {
|
|
2901
|
-
this.
|
|
2904
|
+
this.wa6_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.ua6_1).xa6(player, table));
|
|
2902
2905
|
} else {
|
|
2903
|
-
var tmp_0 = this.
|
|
2906
|
+
var tmp_0 = this.wa6_1.dispatch;
|
|
2904
2907
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2905
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2908
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ta6_1));
|
|
2906
2909
|
}
|
|
2907
2910
|
return Unit_instance;
|
|
2908
2911
|
} else if (tmp === 1) {
|
|
@@ -2914,34 +2917,34 @@
|
|
|
2914
2917
|
}
|
|
2915
2918
|
while (true);
|
|
2916
2919
|
};
|
|
2917
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2918
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
2919
|
-
i.
|
|
2920
|
-
i.
|
|
2920
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2921
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.ta6_1, this.ua6_1, completion);
|
|
2922
|
+
i.va6_1 = $this$dispatchAsync;
|
|
2923
|
+
i.wa6_1 = store;
|
|
2921
2924
|
return i;
|
|
2922
2925
|
};
|
|
2923
2926
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
2924
2927
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
2925
2928
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2926
|
-
return i.
|
|
2929
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2927
2930
|
};
|
|
2928
2931
|
l.$arity = 2;
|
|
2929
2932
|
return l;
|
|
2930
2933
|
}
|
|
2931
2934
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
2932
|
-
this.
|
|
2933
|
-
this.
|
|
2935
|
+
this.ga7_1 = this$0;
|
|
2936
|
+
this.ha7_1 = $newRid;
|
|
2934
2937
|
CoroutineImpl.call(this, resultContinuation);
|
|
2935
2938
|
}
|
|
2936
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2937
|
-
var tmp = this.
|
|
2939
|
+
protoOf(GameServer$roomOnDelete$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
2940
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
2938
2941
|
tmp.u8_1 = Unit_instance;
|
|
2939
2942
|
tmp.v8_1 = null;
|
|
2940
2943
|
return tmp.a9();
|
|
2941
2944
|
};
|
|
2942
2945
|
protoOf(GameServer$roomOnDelete$slambda).j9 = function (p1, p2, $completion) {
|
|
2943
2946
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2944
|
-
return this.
|
|
2947
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2945
2948
|
};
|
|
2946
2949
|
protoOf(GameServer$roomOnDelete$slambda).a9 = function () {
|
|
2947
2950
|
var suspendResult = this.u8_1;
|
|
@@ -2950,27 +2953,27 @@
|
|
|
2950
2953
|
var tmp = this.s8_1;
|
|
2951
2954
|
if (tmp === 0) {
|
|
2952
2955
|
this.t8_1 = 1;
|
|
2953
|
-
var it = this.
|
|
2956
|
+
var it = this.ga7_1.x66().c6r_1;
|
|
2954
2957
|
var tmp_0;
|
|
2955
2958
|
if (it == null) {
|
|
2956
|
-
this.
|
|
2959
|
+
this.ga7_1.i4q().w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
2957
2960
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
2958
2961
|
} else {
|
|
2959
2962
|
tmp_0 = it;
|
|
2960
2963
|
}
|
|
2961
2964
|
var terminationState = tmp_0;
|
|
2962
|
-
var gameTransition = terminationState.
|
|
2965
|
+
var gameTransition = terminationState.p93_1;
|
|
2963
2966
|
var tmp_1;
|
|
2964
2967
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2965
|
-
var tmp0_elvis_lhs = this.
|
|
2968
|
+
var tmp0_elvis_lhs = this.ha7_1;
|
|
2966
2969
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
2967
2970
|
} else {
|
|
2968
2971
|
tmp_1 = gameTransition;
|
|
2969
2972
|
}
|
|
2970
2973
|
var transition = tmp_1;
|
|
2971
|
-
var tmp_2 = this.
|
|
2972
|
-
var tmp0_reason = terminationState.
|
|
2973
|
-
var tmp1_isGameFinished = this.
|
|
2974
|
+
var tmp_2 = this.ja7_1.dispatch;
|
|
2975
|
+
var tmp0_reason = terminationState.o93_1;
|
|
2976
|
+
var tmp1_isGameFinished = this.ga7_1.x66().c6s().isGameFinished;
|
|
2974
2977
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2975
2978
|
return Unit_instance;
|
|
2976
2979
|
} else if (tmp === 1) {
|
|
@@ -2982,33 +2985,33 @@
|
|
|
2982
2985
|
}
|
|
2983
2986
|
while (true);
|
|
2984
2987
|
};
|
|
2985
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2986
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
2987
|
-
i.
|
|
2988
|
-
i.
|
|
2988
|
+
protoOf(GameServer$roomOnDelete$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
2989
|
+
var i = new GameServer$roomOnDelete$slambda(this.ga7_1, this.ha7_1, completion);
|
|
2990
|
+
i.ia7_1 = $this$dispatchAsync;
|
|
2991
|
+
i.ja7_1 = store;
|
|
2989
2992
|
return i;
|
|
2990
2993
|
};
|
|
2991
2994
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
2992
2995
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
2993
2996
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2994
|
-
return i.
|
|
2997
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
2995
2998
|
};
|
|
2996
2999
|
l.$arity = 2;
|
|
2997
3000
|
return l;
|
|
2998
3001
|
}
|
|
2999
3002
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
3000
|
-
this.
|
|
3003
|
+
this.sa7_1 = $enabled;
|
|
3001
3004
|
CoroutineImpl.call(this, resultContinuation);
|
|
3002
3005
|
}
|
|
3003
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
3004
|
-
var tmp = this.
|
|
3006
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
3007
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
3005
3008
|
tmp.u8_1 = Unit_instance;
|
|
3006
3009
|
tmp.v8_1 = null;
|
|
3007
3010
|
return tmp.a9();
|
|
3008
3011
|
};
|
|
3009
3012
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).j9 = function (p1, p2, $completion) {
|
|
3010
3013
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3011
|
-
return this.
|
|
3014
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3012
3015
|
};
|
|
3013
3016
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).a9 = function () {
|
|
3014
3017
|
var suspendResult = this.u8_1;
|
|
@@ -3017,7 +3020,7 @@
|
|
|
3017
3020
|
var tmp = this.s8_1;
|
|
3018
3021
|
if (tmp === 0) {
|
|
3019
3022
|
this.t8_1 = 1;
|
|
3020
|
-
this.
|
|
3023
|
+
this.ua7_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.ua7_1.state).config.copy(VOID, !this.sa7_1)));
|
|
3021
3024
|
return Unit_instance;
|
|
3022
3025
|
} else if (tmp === 1) {
|
|
3023
3026
|
throw this.v8_1;
|
|
@@ -3028,35 +3031,35 @@
|
|
|
3028
3031
|
}
|
|
3029
3032
|
while (true);
|
|
3030
3033
|
};
|
|
3031
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
3032
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
3033
|
-
i.
|
|
3034
|
-
i.
|
|
3034
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
3035
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.sa7_1, completion);
|
|
3036
|
+
i.ta7_1 = $this$dispatchAsync;
|
|
3037
|
+
i.ua7_1 = store;
|
|
3035
3038
|
return i;
|
|
3036
3039
|
};
|
|
3037
3040
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
3038
3041
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
3039
3042
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3040
|
-
return i.
|
|
3043
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
3041
3044
|
};
|
|
3042
3045
|
l.$arity = 2;
|
|
3043
3046
|
return l;
|
|
3044
3047
|
}
|
|
3045
3048
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
3046
|
-
this.
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3049
|
+
this.da8_1 = $reason;
|
|
3050
|
+
this.ea8_1 = this$0;
|
|
3051
|
+
this.fa8_1 = $roomId;
|
|
3049
3052
|
CoroutineImpl.call(this, resultContinuation);
|
|
3050
3053
|
}
|
|
3051
|
-
protoOf(GameServer$shutdown$slambda).
|
|
3052
|
-
var tmp = this.
|
|
3054
|
+
protoOf(GameServer$shutdown$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
3055
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
3053
3056
|
tmp.u8_1 = Unit_instance;
|
|
3054
3057
|
tmp.v8_1 = null;
|
|
3055
3058
|
return tmp.a9();
|
|
3056
3059
|
};
|
|
3057
3060
|
protoOf(GameServer$shutdown$slambda).j9 = function (p1, p2, $completion) {
|
|
3058
3061
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3059
|
-
return this.
|
|
3062
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3060
3063
|
};
|
|
3061
3064
|
protoOf(GameServer$shutdown$slambda).a9 = function () {
|
|
3062
3065
|
var suspendResult = this.u8_1;
|
|
@@ -3065,11 +3068,11 @@
|
|
|
3065
3068
|
var tmp = this.s8_1;
|
|
3066
3069
|
if (tmp === 0) {
|
|
3067
3070
|
this.t8_1 = 1;
|
|
3068
|
-
var state = this.
|
|
3071
|
+
var state = this.ha8_1.store.state;
|
|
3069
3072
|
if (state.e6s()) {
|
|
3070
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
3073
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.da8_1, get_serverShutdownReasonMapping());
|
|
3071
3074
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
3072
|
-
var tmp_0 = this.
|
|
3075
|
+
var tmp_0 = this.ha8_1.dispatch;
|
|
3073
3076
|
var tmp_1 = Companion_instance;
|
|
3074
3077
|
var tmp_2;
|
|
3075
3078
|
switch (shutdownReason.q2_1) {
|
|
@@ -3083,12 +3086,12 @@
|
|
|
3083
3086
|
noWhenBranchMatchedException();
|
|
3084
3087
|
break;
|
|
3085
3088
|
}
|
|
3086
|
-
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.
|
|
3089
|
+
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.ea8_1.table.isGameFinished, this.ea8_1.table));
|
|
3087
3090
|
} else {
|
|
3088
|
-
this.
|
|
3089
|
-
var tmp_3 = this.
|
|
3091
|
+
this.ea8_1.i4q().w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.fa8_1);
|
|
3092
|
+
var tmp_3 = this.ha8_1.dispatch;
|
|
3090
3093
|
var tmp2_safe_receiver = state.c6r_1;
|
|
3091
|
-
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3094
|
+
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p93_1));
|
|
3092
3095
|
}
|
|
3093
3096
|
return Unit_instance;
|
|
3094
3097
|
} else if (tmp === 1) {
|
|
@@ -3100,37 +3103,37 @@
|
|
|
3100
3103
|
}
|
|
3101
3104
|
while (true);
|
|
3102
3105
|
};
|
|
3103
|
-
protoOf(GameServer$shutdown$slambda).
|
|
3104
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
3105
|
-
i.
|
|
3106
|
-
i.
|
|
3106
|
+
protoOf(GameServer$shutdown$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
3107
|
+
var i = new GameServer$shutdown$slambda(this.da8_1, this.ea8_1, this.fa8_1, completion);
|
|
3108
|
+
i.ga8_1 = $this$dispatchAsync;
|
|
3109
|
+
i.ha8_1 = store;
|
|
3107
3110
|
return i;
|
|
3108
3111
|
};
|
|
3109
3112
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
3110
3113
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
3111
3114
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3112
|
-
return i.
|
|
3115
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
3113
3116
|
};
|
|
3114
3117
|
l.$arity = 2;
|
|
3115
3118
|
return l;
|
|
3116
3119
|
}
|
|
3117
3120
|
function GameServer$handlePlayerMessage$slambda($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation) {
|
|
3118
|
-
this.
|
|
3119
|
-
this.
|
|
3120
|
-
this.
|
|
3121
|
-
this.
|
|
3122
|
-
this.
|
|
3121
|
+
this.qa8_1 = $botChatInteractor;
|
|
3122
|
+
this.ra8_1 = $message;
|
|
3123
|
+
this.sa8_1 = $fromPlayerId;
|
|
3124
|
+
this.ta8_1 = $onMessageGenerated;
|
|
3125
|
+
this.ua8_1 = this$0;
|
|
3123
3126
|
CoroutineImpl.call(this, resultContinuation);
|
|
3124
3127
|
}
|
|
3125
|
-
protoOf(GameServer$handlePlayerMessage$slambda).
|
|
3126
|
-
var tmp = this.
|
|
3128
|
+
protoOf(GameServer$handlePlayerMessage$slambda).na1 = function ($this$dispatchAsync, store, $completion) {
|
|
3129
|
+
var tmp = this.oa1($this$dispatchAsync, store, $completion);
|
|
3127
3130
|
tmp.u8_1 = Unit_instance;
|
|
3128
3131
|
tmp.v8_1 = null;
|
|
3129
3132
|
return tmp.a9();
|
|
3130
3133
|
};
|
|
3131
3134
|
protoOf(GameServer$handlePlayerMessage$slambda).j9 = function (p1, p2, $completion) {
|
|
3132
3135
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
3133
|
-
return this.
|
|
3136
|
+
return this.na1(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
3134
3137
|
};
|
|
3135
3138
|
protoOf(GameServer$handlePlayerMessage$slambda).a9 = function () {
|
|
3136
3139
|
var suspendResult = this.u8_1;
|
|
@@ -3140,20 +3143,20 @@
|
|
|
3140
3143
|
switch (tmp) {
|
|
3141
3144
|
case 0:
|
|
3142
3145
|
this.t8_1 = 3;
|
|
3143
|
-
var state = this.
|
|
3146
|
+
var state = this.wa8_1.store.state;
|
|
3144
3147
|
if (state.e6s()) {
|
|
3145
3148
|
var tmp0_table = state.c6s();
|
|
3146
3149
|
this.s8_1 = 1;
|
|
3147
|
-
suspendResult = this.
|
|
3150
|
+
suspendResult = this.qa8_1.j8s(tmp0_table, this.ra8_1, this.sa8_1, VOID, this);
|
|
3148
3151
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3149
3152
|
return suspendResult;
|
|
3150
3153
|
}
|
|
3151
3154
|
continue $sm;
|
|
3152
3155
|
} else {
|
|
3153
|
-
this.
|
|
3154
|
-
var tmp_0 = this.
|
|
3156
|
+
this.ua8_1.i4q().w('GameEngine_API', "GameServer: can't generate message without table, " + this.sa8_1);
|
|
3157
|
+
var tmp_0 = this.wa8_1.dispatch;
|
|
3155
3158
|
var tmp1_safe_receiver = state.c6r_1;
|
|
3156
|
-
tmp_0(new ClearAction(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3159
|
+
tmp_0(new ClearAction(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p93_1));
|
|
3157
3160
|
this.s8_1 = 2;
|
|
3158
3161
|
continue $sm;
|
|
3159
3162
|
}
|
|
@@ -3161,7 +3164,7 @@
|
|
|
3161
3164
|
case 1:
|
|
3162
3165
|
var message = suspendResult;
|
|
3163
3166
|
if (!(message == null)) {
|
|
3164
|
-
this.
|
|
3167
|
+
this.ta8_1(message);
|
|
3165
3168
|
}
|
|
3166
3169
|
|
|
3167
3170
|
this.s8_1 = 2;
|
|
@@ -3182,16 +3185,16 @@
|
|
|
3182
3185
|
}
|
|
3183
3186
|
while (true);
|
|
3184
3187
|
};
|
|
3185
|
-
protoOf(GameServer$handlePlayerMessage$slambda).
|
|
3186
|
-
var i = new GameServer$handlePlayerMessage$slambda(this.
|
|
3187
|
-
i.
|
|
3188
|
-
i.
|
|
3188
|
+
protoOf(GameServer$handlePlayerMessage$slambda).oa1 = function ($this$dispatchAsync, store, completion) {
|
|
3189
|
+
var i = new GameServer$handlePlayerMessage$slambda(this.qa8_1, this.ra8_1, this.sa8_1, this.ta8_1, this.ua8_1, completion);
|
|
3190
|
+
i.va8_1 = $this$dispatchAsync;
|
|
3191
|
+
i.wa8_1 = store;
|
|
3189
3192
|
return i;
|
|
3190
3193
|
};
|
|
3191
3194
|
function GameServer$handlePlayerMessage$slambda_0($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation) {
|
|
3192
3195
|
var i = new GameServer$handlePlayerMessage$slambda($botChatInteractor, $message, $fromPlayerId, $onMessageGenerated, this$0, resultContinuation);
|
|
3193
3196
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
3194
|
-
return i.
|
|
3197
|
+
return i.na1($this$dispatchAsync, store, $completion);
|
|
3195
3198
|
};
|
|
3196
3199
|
l.$arity = 2;
|
|
3197
3200
|
return l;
|
|
@@ -3222,7 +3225,7 @@
|
|
|
3222
3225
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3223
3226
|
var tmp_3 = Instance(di, tmp$ret$2, null);
|
|
3224
3227
|
var tmp_4 = KProperty1;
|
|
3225
|
-
tmp_1.
|
|
3228
|
+
tmp_1.d9y_1 = tmp_3.a65(this, getPropertyCallableRef('toClientEventsObserver', 1, tmp_4, GameServer$_get_toClientEventsObserver_$ref_utir8s(), null));
|
|
3226
3229
|
var tmp_5 = this;
|
|
3227
3230
|
// Inline function 'org.kodein.di.instance' call
|
|
3228
3231
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3230,7 +3233,7 @@
|
|
|
3230
3233
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3231
3234
|
var tmp_7 = Instance(di, tmp$ret$4, null);
|
|
3232
3235
|
var tmp_8 = KProperty1;
|
|
3233
|
-
tmp_5.
|
|
3236
|
+
tmp_5.e9y_1 = tmp_7.a65(this, getPropertyCallableRef('fromClientEventsObserver', 1, tmp_8, GameServer$_get_fromClientEventsObserver_$ref_nf1g79(), null));
|
|
3234
3237
|
var tmp_9 = this;
|
|
3235
3238
|
// Inline function 'org.kodein.di.instance' call
|
|
3236
3239
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3238,7 +3241,7 @@
|
|
|
3238
3241
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3239
3242
|
var tmp_11 = Instance(di, tmp$ret$6, null);
|
|
3240
3243
|
var tmp_12 = KProperty1;
|
|
3241
|
-
tmp_9.
|
|
3244
|
+
tmp_9.f9y_1 = tmp_11.a65(this, getPropertyCallableRef('playerConnectionInteractor', 1, tmp_12, GameServer$_get_playerConnectionInteractor_$ref_of8tan(), null));
|
|
3242
3245
|
var tmp_13 = this;
|
|
3243
3246
|
// Inline function 'org.kodein.di.instance' call
|
|
3244
3247
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3246,7 +3249,7 @@
|
|
|
3246
3249
|
var tmp$ret$8 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3247
3250
|
var tmp_15 = Instance(di, tmp$ret$8, null);
|
|
3248
3251
|
var tmp_16 = KProperty1;
|
|
3249
|
-
tmp_13.
|
|
3252
|
+
tmp_13.g9y_1 = tmp_15.a65(this, getPropertyCallableRef('teamsLogicProvider', 1, tmp_16, GameServer$_get_teamsLogicProvider_$ref_b7y54g(), null));
|
|
3250
3253
|
var tmp_17 = this;
|
|
3251
3254
|
// Inline function 'org.kodein.di.instance' call
|
|
3252
3255
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3254,9 +3257,9 @@
|
|
|
3254
3257
|
var tmp$ret$10 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3255
3258
|
var tmp_19 = Instance(di, tmp$ret$10, null);
|
|
3256
3259
|
var tmp_20 = KProperty1;
|
|
3257
|
-
tmp_17.
|
|
3260
|
+
tmp_17.h9y_1 = tmp_19.a65(this, getPropertyCallableRef('userRatingInteractor', 1, tmp_20, GameServer$_get_userRatingInteractor_$ref_8uo6aw(), null));
|
|
3258
3261
|
var tmp_21 = this;
|
|
3259
|
-
tmp_21.
|
|
3262
|
+
tmp_21.i9y_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
3260
3263
|
var tmp_22 = this;
|
|
3261
3264
|
// Inline function 'org.kodein.di.instance' call
|
|
3262
3265
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3264,7 +3267,7 @@
|
|
|
3264
3267
|
var tmp$ret$12 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE();
|
|
3265
3268
|
var tmp_24 = Instance(di, tmp$ret$12, null);
|
|
3266
3269
|
var tmp_25 = KProperty1;
|
|
3267
|
-
tmp_22.
|
|
3270
|
+
tmp_22.j9y_1 = tmp_24.a65(this, getPropertyCallableRef('idsProvider', 1, tmp_25, GameServer$_get_idsProvider_$ref_89s908(), null));
|
|
3268
3271
|
var tmp_26 = this;
|
|
3269
3272
|
// Inline function 'org.kodein.di.instance' call
|
|
3270
3273
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3272,7 +3275,7 @@
|
|
|
3272
3275
|
var tmp$ret$14 = isInterface(tmp_27, TypeToken) ? tmp_27 : THROW_CCE();
|
|
3273
3276
|
var tmp_28 = Instance(di, tmp$ret$14, null);
|
|
3274
3277
|
var tmp_29 = KProperty1;
|
|
3275
|
-
tmp_26.
|
|
3278
|
+
tmp_26.k9y_1 = tmp_28.a65(this, getPropertyCallableRef('serverReduxConfig', 1, tmp_29, GameServer$_get_serverReduxConfig_$ref_7h6jq6(), null));
|
|
3276
3279
|
var tmp_30 = this;
|
|
3277
3280
|
// Inline function 'org.kodein.di.instance' call
|
|
3278
3281
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3280,7 +3283,7 @@
|
|
|
3280
3283
|
var tmp$ret$16 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE();
|
|
3281
3284
|
var tmp_32 = Instance(di, tmp$ret$16, null);
|
|
3282
3285
|
var tmp_33 = KProperty1;
|
|
3283
|
-
tmp_30.
|
|
3286
|
+
tmp_30.l9y_1 = tmp_32.a65(this, getPropertyCallableRef('encoderDecoderProvider', 1, tmp_33, GameServer$_get_encoderDecoderProvider_$ref_6vxmq8(), null));
|
|
3284
3287
|
var tmp_34 = this;
|
|
3285
3288
|
// Inline function 'org.kodein.di.instance' call
|
|
3286
3289
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3288,7 +3291,7 @@
|
|
|
3288
3291
|
var tmp$ret$18 = isInterface(tmp_35, TypeToken) ? tmp_35 : THROW_CCE();
|
|
3289
3292
|
var tmp_36 = Instance(di, tmp$ret$18, null);
|
|
3290
3293
|
var tmp_37 = KProperty1;
|
|
3291
|
-
tmp_34.
|
|
3294
|
+
tmp_34.m9y_1 = tmp_36.a65(this, getPropertyCallableRef('engineLogicConfig', 1, tmp_37, GameServer$_get_engineLogicConfig_$ref_nlkv2l(), null));
|
|
3292
3295
|
var tmp_38 = this;
|
|
3293
3296
|
// Inline function 'org.kodein.di.instanceOrNull' call
|
|
3294
3297
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -3296,14 +3299,14 @@
|
|
|
3296
3299
|
var tmp$ret$20 = isInterface(tmp_39, TypeToken) ? tmp_39 : THROW_CCE();
|
|
3297
3300
|
var tmp_40 = InstanceOrNull(di, tmp$ret$20, null);
|
|
3298
3301
|
var tmp_41 = KProperty1;
|
|
3299
|
-
tmp_38.
|
|
3302
|
+
tmp_38.n9y_1 = tmp_40.a65(this, getPropertyCallableRef('botChatInteractor', 1, tmp_41, GameServer$_get_botChatInteractor_$ref_zf10ih(), null));
|
|
3300
3303
|
var tmp_42 = this;
|
|
3301
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
3302
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
3303
|
-
tmp_42.
|
|
3304
|
+
var tmp0_externalMiddlewares = plus(storeContract.h98(), externalMiddlewares);
|
|
3305
|
+
var tmp1_externalReducers = plus(storeContract.g98(), externalReducers);
|
|
3306
|
+
tmp_42.o9y_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
3304
3307
|
}
|
|
3305
3308
|
protoOf(GameServer).s6q = function () {
|
|
3306
|
-
return this.
|
|
3309
|
+
return this.o9y_1;
|
|
3307
3310
|
};
|
|
3308
3311
|
protoOf(GameServer).t8m = function () {
|
|
3309
3312
|
return get_serverStatePayload_0(this.x66()).metadata;
|
|
@@ -3351,17 +3354,17 @@
|
|
|
3351
3354
|
};
|
|
3352
3355
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
3353
3356
|
this.i4q().d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
3354
|
-
this.
|
|
3357
|
+
this.o9y_1.a6s(GameServer$fromClientEvent$slambda_0(action, null));
|
|
3355
3358
|
};
|
|
3356
|
-
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
3359
|
+
protoOf(GameServer).playerLostConnection = function (playerId, roomId) {
|
|
3357
3360
|
this.i4q().d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
3358
|
-
this.
|
|
3361
|
+
this.o9y_1.a6s(GameServer$playerLostConnection$slambda_0(playerId, roomId, null));
|
|
3359
3362
|
};
|
|
3360
|
-
protoOf(GameServer).playerLive = function (playerId) {
|
|
3363
|
+
protoOf(GameServer).playerLive = function (playerId, roomId) {
|
|
3361
3364
|
this.i4q().d('GameEngine_API', 'playerLive: ' + playerId);
|
|
3362
|
-
this.
|
|
3365
|
+
this.o9y_1.a6s(GameServer$playerLive$slambda_0(this, playerId, roomId, null));
|
|
3363
3366
|
};
|
|
3364
|
-
protoOf(GameServer).
|
|
3367
|
+
protoOf(GameServer).xa8 = function (playerId, roomId, permanently) {
|
|
3365
3368
|
this.i4q().d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
3366
3369
|
var tmp;
|
|
3367
3370
|
if (this.x66().e6s()) {
|
|
@@ -3370,33 +3373,33 @@
|
|
|
3370
3373
|
tmp = null;
|
|
3371
3374
|
}
|
|
3372
3375
|
var result = tmp;
|
|
3373
|
-
this.
|
|
3376
|
+
this.o9y_1.a6s(GameServer$playerLeft$slambda_0(this, playerId, permanently, roomId, null));
|
|
3374
3377
|
this.i4q().d('GameEngine_API', 'playerLeft result: ' + toString_0(result));
|
|
3375
3378
|
return result;
|
|
3376
3379
|
};
|
|
3377
|
-
protoOf(GameServer).
|
|
3380
|
+
protoOf(GameServer).ya8 = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
3378
3381
|
this.i4q().d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
3379
|
-
this.
|
|
3382
|
+
this.o9y_1.a6s(GameServer$roomOnCreate$slambda_0(usersArray, this, config, roomId, transition, gameCreatorId, spectators, null));
|
|
3380
3383
|
};
|
|
3381
3384
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
3382
3385
|
this.i4q().d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
3383
|
-
var isCreated = this.
|
|
3384
|
-
this.
|
|
3386
|
+
var isCreated = this.o9y_1.b6s(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
3387
|
+
this.o9y_1.a6s(GameServer$roomOnContinueFromState$slambda_2(isCreated, state, null));
|
|
3385
3388
|
};
|
|
3386
3389
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
3387
3390
|
this.i4q().d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
3388
|
-
this.
|
|
3389
|
-
this.
|
|
3391
|
+
this.o9y_1.a6s(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
3392
|
+
this.o9y_1.a6s(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
3390
3393
|
};
|
|
3391
3394
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
3392
|
-
this.
|
|
3395
|
+
this.o9y_1.a6s(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
3393
3396
|
};
|
|
3394
3397
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
3395
|
-
this.
|
|
3398
|
+
this.o9y_1.a6s(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
3396
3399
|
};
|
|
3397
3400
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
3398
3401
|
this.i4q().d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
3399
|
-
this.
|
|
3402
|
+
this.o9y_1.a6s(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
3400
3403
|
};
|
|
3401
3404
|
protoOf(GameServer).getToClientFinishActionBeforeDisconnect = function (playerId, previousState, originState) {
|
|
3402
3405
|
if (!this.isTableExists) {
|
|
@@ -3406,24 +3409,24 @@
|
|
|
3406
3409
|
var table = this.table;
|
|
3407
3410
|
var player = getPlayer(table.players, playerId);
|
|
3408
3411
|
this.i4q().d('GameEngine_API', 'getToClientFinishActionBeforeDisconnect: ' + playerId + ', ' + ('state = ' + player.n6v_1.d69().n67_1.toString() + ', ') + ('isBot = ' + player.m6v_1.isBot));
|
|
3409
|
-
var actions = _get_playerConnectionInteractor__si6cxf(this).
|
|
3412
|
+
var actions = _get_playerConnectionInteractor__si6cxf(this).za8(playerId, previousState.isLive, table.id, mapToFinishReason(originState, player, table.playersConnections), table.isGameFinished);
|
|
3410
3413
|
this.i4q().d('GameEngine_API', 'getToClientFinishActionBeforeDisconnect: ' + toString(actions));
|
|
3411
3414
|
if (actions.r()) {
|
|
3412
3415
|
return null;
|
|
3413
3416
|
}
|
|
3414
3417
|
return new CombinedToClientAction(actions, Companion_instance_1.user(_get_idsProvider__fnfajc(this).h6e(), table.id, playerId));
|
|
3415
3418
|
};
|
|
3416
|
-
protoOf(GameServer).
|
|
3419
|
+
protoOf(GameServer).aa9 = function (newRid) {
|
|
3417
3420
|
this.i4q().d('GameEngine_API', 'roomOnDelete: newRid = ' + newRid);
|
|
3418
|
-
this.
|
|
3421
|
+
this.o9y_1.a6s(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
3419
3422
|
};
|
|
3420
3423
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
3421
3424
|
this.i4q().d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
3422
|
-
this.
|
|
3425
|
+
this.o9y_1.a6s(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
3423
3426
|
};
|
|
3424
|
-
protoOf(GameServer).
|
|
3427
|
+
protoOf(GameServer).ba9 = function (reason, roomId) {
|
|
3425
3428
|
this.i4q().d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
3426
|
-
this.
|
|
3429
|
+
this.o9y_1.a6s(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
3427
3430
|
};
|
|
3428
3431
|
protoOf(GameServer).handlePlayerMessage = function (message, fromPlayerId, onMessageGenerated) {
|
|
3429
3432
|
var tmp0_elvis_lhs = _get_botChatInteractor__17f3on(this);
|
|
@@ -3435,7 +3438,7 @@
|
|
|
3435
3438
|
}
|
|
3436
3439
|
var botChatInteractor = tmp;
|
|
3437
3440
|
this.i4q().d('GameEngine_API', 'handlePlayerMessage: ' + fromPlayerId);
|
|
3438
|
-
this.
|
|
3441
|
+
this.o9y_1.a6s(GameServer$handlePlayerMessage$slambda_0(botChatInteractor, message, fromPlayerId, onMessageGenerated, this, null));
|
|
3439
3442
|
};
|
|
3440
3443
|
protoOf(GameServer).clear = function () {
|
|
3441
3444
|
return this.i2();
|
|
@@ -3489,13 +3492,13 @@
|
|
|
3489
3492
|
this.shouldFinishGameWhenDeploy = shouldFinishGameWhenDeploy;
|
|
3490
3493
|
this.shouldFinishGameWithBots = shouldFinishGameWithBots;
|
|
3491
3494
|
}
|
|
3492
|
-
protoOf(ServerConfig).
|
|
3495
|
+
protoOf(ServerConfig).ca9 = function () {
|
|
3493
3496
|
return this.fromRound;
|
|
3494
3497
|
};
|
|
3495
|
-
protoOf(ServerConfig).
|
|
3498
|
+
protoOf(ServerConfig).da9 = function () {
|
|
3496
3499
|
return this.shouldFinishGameWhenDeploy;
|
|
3497
3500
|
};
|
|
3498
|
-
protoOf(ServerConfig).
|
|
3501
|
+
protoOf(ServerConfig).ea9 = function () {
|
|
3499
3502
|
return this.shouldFinishGameWithBots;
|
|
3500
3503
|
};
|
|
3501
3504
|
protoOf(ServerConfig).oe = function () {
|
|
@@ -3507,14 +3510,14 @@
|
|
|
3507
3510
|
protoOf(ServerConfig).yl = function () {
|
|
3508
3511
|
return this.shouldFinishGameWithBots;
|
|
3509
3512
|
};
|
|
3510
|
-
protoOf(ServerConfig).
|
|
3513
|
+
protoOf(ServerConfig).fa9 = function (fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots) {
|
|
3511
3514
|
return new ServerConfig(fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots);
|
|
3512
3515
|
};
|
|
3513
3516
|
protoOf(ServerConfig).copy = function (fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots, $super) {
|
|
3514
3517
|
fromRound = fromRound === VOID ? this.fromRound : fromRound;
|
|
3515
3518
|
shouldFinishGameWhenDeploy = shouldFinishGameWhenDeploy === VOID ? this.shouldFinishGameWhenDeploy : shouldFinishGameWhenDeploy;
|
|
3516
3519
|
shouldFinishGameWithBots = shouldFinishGameWithBots === VOID ? this.shouldFinishGameWithBots : shouldFinishGameWithBots;
|
|
3517
|
-
return $super === VOID ? this.
|
|
3520
|
+
return $super === VOID ? this.fa9(fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots) : $super.fa9.call(this, fromRound, shouldFinishGameWhenDeploy, shouldFinishGameWithBots);
|
|
3518
3521
|
};
|
|
3519
3522
|
protoOf(ServerConfig).toString = function () {
|
|
3520
3523
|
return 'ServerConfig(fromRound=' + this.fromRound + ', shouldFinishGameWhenDeploy=' + this.shouldFinishGameWhenDeploy + ', shouldFinishGameWithBots=' + this.shouldFinishGameWithBots + ')';
|
|
@@ -3579,20 +3582,20 @@
|
|
|
3579
3582
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.jass.logic.server.data.models.serializable.TableStateUpdateDto', this, 2);
|
|
3580
3583
|
tmp0_serialDesc.hz('roomId', false);
|
|
3581
3584
|
tmp0_serialDesc.hz('table', false);
|
|
3582
|
-
this.
|
|
3585
|
+
this.ga9_1 = tmp0_serialDesc;
|
|
3583
3586
|
}
|
|
3584
|
-
protoOf($serializer).
|
|
3585
|
-
var tmp0_desc = this.
|
|
3587
|
+
protoOf($serializer).ha9 = function (encoder, value) {
|
|
3588
|
+
var tmp0_desc = this.ga9_1;
|
|
3586
3589
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
3587
|
-
tmp1_output.et(tmp0_desc, 0, value.
|
|
3590
|
+
tmp1_output.et(tmp0_desc, 0, value.ia9_1);
|
|
3588
3591
|
tmp1_output.et(tmp0_desc, 1, value.table);
|
|
3589
3592
|
tmp1_output.qr(tmp0_desc);
|
|
3590
3593
|
};
|
|
3591
3594
|
protoOf($serializer).do = function (encoder, value) {
|
|
3592
|
-
return this.
|
|
3595
|
+
return this.ha9(encoder, value instanceof TableStateUpdateDto ? value : THROW_CCE());
|
|
3593
3596
|
};
|
|
3594
3597
|
protoOf($serializer).eo = function (decoder) {
|
|
3595
|
-
var tmp0_desc = this.
|
|
3598
|
+
var tmp0_desc = this.ga9_1;
|
|
3596
3599
|
var tmp1_flag = true;
|
|
3597
3600
|
var tmp2_index = 0;
|
|
3598
3601
|
var tmp3_bitMask0 = 0;
|
|
@@ -3627,7 +3630,7 @@
|
|
|
3627
3630
|
return TableStateUpdateDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3628
3631
|
};
|
|
3629
3632
|
protoOf($serializer).co = function () {
|
|
3630
|
-
return this.
|
|
3633
|
+
return this.ga9_1;
|
|
3631
3634
|
};
|
|
3632
3635
|
protoOf($serializer).wz = function () {
|
|
3633
3636
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3643,9 +3646,9 @@
|
|
|
3643
3646
|
}
|
|
3644
3647
|
function TableStateUpdateDto_init_$Init$(seen0, roomId, table, serializationConstructorMarker, $this) {
|
|
3645
3648
|
if (!(3 === (3 & seen0))) {
|
|
3646
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
3649
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().ga9_1);
|
|
3647
3650
|
}
|
|
3648
|
-
$this.
|
|
3651
|
+
$this.ia9_1 = roomId;
|
|
3649
3652
|
$this.table = table;
|
|
3650
3653
|
return $this;
|
|
3651
3654
|
}
|
|
@@ -3653,17 +3656,17 @@
|
|
|
3653
3656
|
return TableStateUpdateDto_init_$Init$(seen0, roomId, table, serializationConstructorMarker, objectCreate(protoOf(TableStateUpdateDto)));
|
|
3654
3657
|
}
|
|
3655
3658
|
function TableStateUpdateDto(roomId, table) {
|
|
3656
|
-
this.
|
|
3659
|
+
this.ia9_1 = roomId;
|
|
3657
3660
|
this.table = table;
|
|
3658
3661
|
}
|
|
3659
3662
|
protoOf(TableStateUpdateDto).n8j = function () {
|
|
3660
|
-
return this.
|
|
3663
|
+
return this.ia9_1;
|
|
3661
3664
|
};
|
|
3662
3665
|
protoOf(TableStateUpdateDto).c6s = function () {
|
|
3663
3666
|
return this.table;
|
|
3664
3667
|
};
|
|
3665
3668
|
protoOf(TableStateUpdateDto).oe = function () {
|
|
3666
|
-
return this.
|
|
3669
|
+
return this.ia9_1;
|
|
3667
3670
|
};
|
|
3668
3671
|
protoOf(TableStateUpdateDto).pe = function () {
|
|
3669
3672
|
return this.table;
|
|
@@ -3672,15 +3675,15 @@
|
|
|
3672
3675
|
return new TableStateUpdateDto(roomId, table);
|
|
3673
3676
|
};
|
|
3674
3677
|
protoOf(TableStateUpdateDto).copy = function (roomId, table, $super) {
|
|
3675
|
-
roomId = roomId === VOID ? this.
|
|
3678
|
+
roomId = roomId === VOID ? this.ia9_1 : roomId;
|
|
3676
3679
|
table = table === VOID ? this.table : table;
|
|
3677
3680
|
return $super === VOID ? this.f54(roomId, table) : $super.f54.call(this, roomId, table);
|
|
3678
3681
|
};
|
|
3679
3682
|
protoOf(TableStateUpdateDto).toString = function () {
|
|
3680
|
-
return 'TableStateUpdateDto(roomId=' + this.
|
|
3683
|
+
return 'TableStateUpdateDto(roomId=' + this.ia9_1 + ', table=' + this.table + ')';
|
|
3681
3684
|
};
|
|
3682
3685
|
protoOf(TableStateUpdateDto).hashCode = function () {
|
|
3683
|
-
var result = getStringHashCode(this.
|
|
3686
|
+
var result = getStringHashCode(this.ia9_1);
|
|
3684
3687
|
result = imul(result, 31) + getStringHashCode(this.table) | 0;
|
|
3685
3688
|
return result;
|
|
3686
3689
|
};
|
|
@@ -3689,7 +3692,7 @@
|
|
|
3689
3692
|
return true;
|
|
3690
3693
|
if (!(other instanceof TableStateUpdateDto))
|
|
3691
3694
|
return false;
|
|
3692
|
-
if (!(this.
|
|
3695
|
+
if (!(this.ia9_1 === other.ia9_1))
|
|
3693
3696
|
return false;
|
|
3694
3697
|
if (!(this.table === other.table))
|
|
3695
3698
|
return false;
|
|
@@ -3709,20 +3712,20 @@
|
|
|
3709
3712
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.jass.logic.server.data.models.serializable.ActionsStateUpdateDto', this, 2);
|
|
3710
3713
|
tmp0_serialDesc.hz('roomId', false);
|
|
3711
3714
|
tmp0_serialDesc.hz('actions', false);
|
|
3712
|
-
this.
|
|
3715
|
+
this.ja9_1 = tmp0_serialDesc;
|
|
3713
3716
|
}
|
|
3714
|
-
protoOf($serializer_0).
|
|
3715
|
-
var tmp0_desc = this.
|
|
3717
|
+
protoOf($serializer_0).ka9 = function (encoder, value) {
|
|
3718
|
+
var tmp0_desc = this.ja9_1;
|
|
3716
3719
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
3717
|
-
tmp1_output.et(tmp0_desc, 0, value.
|
|
3720
|
+
tmp1_output.et(tmp0_desc, 0, value.la9_1);
|
|
3718
3721
|
tmp1_output.et(tmp0_desc, 1, value.actions);
|
|
3719
3722
|
tmp1_output.qr(tmp0_desc);
|
|
3720
3723
|
};
|
|
3721
3724
|
protoOf($serializer_0).do = function (encoder, value) {
|
|
3722
|
-
return this.
|
|
3725
|
+
return this.ka9(encoder, value instanceof ActionsStateUpdateDto ? value : THROW_CCE());
|
|
3723
3726
|
};
|
|
3724
3727
|
protoOf($serializer_0).eo = function (decoder) {
|
|
3725
|
-
var tmp0_desc = this.
|
|
3728
|
+
var tmp0_desc = this.ja9_1;
|
|
3726
3729
|
var tmp1_flag = true;
|
|
3727
3730
|
var tmp2_index = 0;
|
|
3728
3731
|
var tmp3_bitMask0 = 0;
|
|
@@ -3757,7 +3760,7 @@
|
|
|
3757
3760
|
return ActionsStateUpdateDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3758
3761
|
};
|
|
3759
3762
|
protoOf($serializer_0).co = function () {
|
|
3760
|
-
return this.
|
|
3763
|
+
return this.ja9_1;
|
|
3761
3764
|
};
|
|
3762
3765
|
protoOf($serializer_0).wz = function () {
|
|
3763
3766
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3773,9 +3776,9 @@
|
|
|
3773
3776
|
}
|
|
3774
3777
|
function ActionsStateUpdateDto_init_$Init$(seen0, roomId, actions, serializationConstructorMarker, $this) {
|
|
3775
3778
|
if (!(3 === (3 & seen0))) {
|
|
3776
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
3779
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().ja9_1);
|
|
3777
3780
|
}
|
|
3778
|
-
$this.
|
|
3781
|
+
$this.la9_1 = roomId;
|
|
3779
3782
|
$this.actions = actions;
|
|
3780
3783
|
return $this;
|
|
3781
3784
|
}
|
|
@@ -3783,17 +3786,17 @@
|
|
|
3783
3786
|
return ActionsStateUpdateDto_init_$Init$(seen0, roomId, actions, serializationConstructorMarker, objectCreate(protoOf(ActionsStateUpdateDto)));
|
|
3784
3787
|
}
|
|
3785
3788
|
function ActionsStateUpdateDto(roomId, actions) {
|
|
3786
|
-
this.
|
|
3789
|
+
this.la9_1 = roomId;
|
|
3787
3790
|
this.actions = actions;
|
|
3788
3791
|
}
|
|
3789
3792
|
protoOf(ActionsStateUpdateDto).n8j = function () {
|
|
3790
|
-
return this.
|
|
3793
|
+
return this.la9_1;
|
|
3791
3794
|
};
|
|
3792
3795
|
protoOf(ActionsStateUpdateDto).a8k = function () {
|
|
3793
3796
|
return this.actions;
|
|
3794
3797
|
};
|
|
3795
3798
|
protoOf(ActionsStateUpdateDto).oe = function () {
|
|
3796
|
-
return this.
|
|
3799
|
+
return this.la9_1;
|
|
3797
3800
|
};
|
|
3798
3801
|
protoOf(ActionsStateUpdateDto).pe = function () {
|
|
3799
3802
|
return this.actions;
|
|
@@ -3802,15 +3805,15 @@
|
|
|
3802
3805
|
return new ActionsStateUpdateDto(roomId, actions);
|
|
3803
3806
|
};
|
|
3804
3807
|
protoOf(ActionsStateUpdateDto).copy = function (roomId, actions, $super) {
|
|
3805
|
-
roomId = roomId === VOID ? this.
|
|
3808
|
+
roomId = roomId === VOID ? this.la9_1 : roomId;
|
|
3806
3809
|
actions = actions === VOID ? this.actions : actions;
|
|
3807
3810
|
return $super === VOID ? this.f54(roomId, actions) : $super.f54.call(this, roomId, actions);
|
|
3808
3811
|
};
|
|
3809
3812
|
protoOf(ActionsStateUpdateDto).toString = function () {
|
|
3810
|
-
return 'ActionsStateUpdateDto(roomId=' + this.
|
|
3813
|
+
return 'ActionsStateUpdateDto(roomId=' + this.la9_1 + ', actions=' + this.actions + ')';
|
|
3811
3814
|
};
|
|
3812
3815
|
protoOf(ActionsStateUpdateDto).hashCode = function () {
|
|
3813
|
-
var result = getStringHashCode(this.
|
|
3816
|
+
var result = getStringHashCode(this.la9_1);
|
|
3814
3817
|
result = imul(result, 31) + getStringHashCode(this.actions) | 0;
|
|
3815
3818
|
return result;
|
|
3816
3819
|
};
|
|
@@ -3819,7 +3822,7 @@
|
|
|
3819
3822
|
return true;
|
|
3820
3823
|
if (!(other instanceof ActionsStateUpdateDto))
|
|
3821
3824
|
return false;
|
|
3822
|
-
if (!(this.
|
|
3825
|
+
if (!(this.la9_1 === other.la9_1))
|
|
3823
3826
|
return false;
|
|
3824
3827
|
if (!(this.actions === other.actions))
|
|
3825
3828
|
return false;
|
|
@@ -3849,42 +3852,42 @@
|
|
|
3849
3852
|
var tmp$ret$0 = mapToDto(item);
|
|
3850
3853
|
destination.j(tmp$ret$0);
|
|
3851
3854
|
}
|
|
3852
|
-
return new ActionsStateUpdateDto(_this__u8e3s4.
|
|
3855
|
+
return new ActionsStateUpdateDto(_this__u8e3s4.ma9_1, encoderDecoderProvider.d8r(destination));
|
|
3853
3856
|
}
|
|
3854
3857
|
function mapToDto_3(_this__u8e3s4, encoderDecoderProvider) {
|
|
3855
|
-
return new TableStateUpdateDto(_this__u8e3s4.
|
|
3858
|
+
return new TableStateUpdateDto(_this__u8e3s4.na9_1, encoderDecoderProvider.b8r(mapToDto_0(_this__u8e3s4.table)));
|
|
3856
3859
|
}
|
|
3857
3860
|
function ServerStateUpdate() {
|
|
3858
3861
|
}
|
|
3859
3862
|
function TableStateUpdate(roomId, table) {
|
|
3860
|
-
this.
|
|
3863
|
+
this.na9_1 = roomId;
|
|
3861
3864
|
this.table = table;
|
|
3862
3865
|
}
|
|
3863
3866
|
protoOf(TableStateUpdate).n8j = function () {
|
|
3864
|
-
return this.
|
|
3867
|
+
return this.na9_1;
|
|
3865
3868
|
};
|
|
3866
3869
|
protoOf(TableStateUpdate).c6s = function () {
|
|
3867
3870
|
return this.table;
|
|
3868
3871
|
};
|
|
3869
3872
|
protoOf(TableStateUpdate).oe = function () {
|
|
3870
|
-
return this.
|
|
3873
|
+
return this.na9_1;
|
|
3871
3874
|
};
|
|
3872
3875
|
protoOf(TableStateUpdate).pe = function () {
|
|
3873
3876
|
return this.table;
|
|
3874
3877
|
};
|
|
3875
|
-
protoOf(TableStateUpdate).
|
|
3878
|
+
protoOf(TableStateUpdate).oa9 = function (roomId, table) {
|
|
3876
3879
|
return new TableStateUpdate(roomId, table);
|
|
3877
3880
|
};
|
|
3878
3881
|
protoOf(TableStateUpdate).copy = function (roomId, table, $super) {
|
|
3879
|
-
roomId = roomId === VOID ? this.
|
|
3882
|
+
roomId = roomId === VOID ? this.na9_1 : roomId;
|
|
3880
3883
|
table = table === VOID ? this.table : table;
|
|
3881
|
-
return $super === VOID ? this.
|
|
3884
|
+
return $super === VOID ? this.oa9(roomId, table) : $super.oa9.call(this, roomId, table);
|
|
3882
3885
|
};
|
|
3883
3886
|
protoOf(TableStateUpdate).toString = function () {
|
|
3884
|
-
return 'TableStateUpdate(roomId=' + this.
|
|
3887
|
+
return 'TableStateUpdate(roomId=' + this.na9_1 + ', table=' + this.table.toString() + ')';
|
|
3885
3888
|
};
|
|
3886
3889
|
protoOf(TableStateUpdate).hashCode = function () {
|
|
3887
|
-
var result = getStringHashCode(this.
|
|
3890
|
+
var result = getStringHashCode(this.na9_1);
|
|
3888
3891
|
result = imul(result, 31) + this.table.hashCode() | 0;
|
|
3889
3892
|
return result;
|
|
3890
3893
|
};
|
|
@@ -3893,41 +3896,41 @@
|
|
|
3893
3896
|
return true;
|
|
3894
3897
|
if (!(other instanceof TableStateUpdate))
|
|
3895
3898
|
return false;
|
|
3896
|
-
if (!(this.
|
|
3899
|
+
if (!(this.na9_1 === other.na9_1))
|
|
3897
3900
|
return false;
|
|
3898
3901
|
if (!this.table.equals(other.table))
|
|
3899
3902
|
return false;
|
|
3900
3903
|
return true;
|
|
3901
3904
|
};
|
|
3902
3905
|
function ActionsStateUpdate(roomId, actions) {
|
|
3903
|
-
this.
|
|
3906
|
+
this.ma9_1 = roomId;
|
|
3904
3907
|
this.actions = actions;
|
|
3905
3908
|
}
|
|
3906
3909
|
protoOf(ActionsStateUpdate).n8j = function () {
|
|
3907
|
-
return this.
|
|
3910
|
+
return this.ma9_1;
|
|
3908
3911
|
};
|
|
3909
3912
|
protoOf(ActionsStateUpdate).a8k = function () {
|
|
3910
3913
|
return this.actions;
|
|
3911
3914
|
};
|
|
3912
3915
|
protoOf(ActionsStateUpdate).oe = function () {
|
|
3913
|
-
return this.
|
|
3916
|
+
return this.ma9_1;
|
|
3914
3917
|
};
|
|
3915
3918
|
protoOf(ActionsStateUpdate).pe = function () {
|
|
3916
3919
|
return this.actions;
|
|
3917
3920
|
};
|
|
3918
|
-
protoOf(ActionsStateUpdate).
|
|
3921
|
+
protoOf(ActionsStateUpdate).pa9 = function (roomId, actions) {
|
|
3919
3922
|
return new ActionsStateUpdate(roomId, actions);
|
|
3920
3923
|
};
|
|
3921
3924
|
protoOf(ActionsStateUpdate).copy = function (roomId, actions, $super) {
|
|
3922
|
-
roomId = roomId === VOID ? this.
|
|
3925
|
+
roomId = roomId === VOID ? this.ma9_1 : roomId;
|
|
3923
3926
|
actions = actions === VOID ? this.actions : actions;
|
|
3924
|
-
return $super === VOID ? this.
|
|
3927
|
+
return $super === VOID ? this.pa9(roomId, actions) : $super.pa9.call(this, roomId, actions);
|
|
3925
3928
|
};
|
|
3926
3929
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
3927
|
-
return 'ActionsStateUpdate(roomId=' + this.
|
|
3930
|
+
return 'ActionsStateUpdate(roomId=' + this.ma9_1 + ', actions=' + toString(this.actions) + ')';
|
|
3928
3931
|
};
|
|
3929
3932
|
protoOf(ActionsStateUpdate).hashCode = function () {
|
|
3930
|
-
var result = getStringHashCode(this.
|
|
3933
|
+
var result = getStringHashCode(this.ma9_1);
|
|
3931
3934
|
result = imul(result, 31) + hashCode(this.actions) | 0;
|
|
3932
3935
|
return result;
|
|
3933
3936
|
};
|
|
@@ -3936,7 +3939,7 @@
|
|
|
3936
3939
|
return true;
|
|
3937
3940
|
if (!(other instanceof ActionsStateUpdate))
|
|
3938
3941
|
return false;
|
|
3939
|
-
if (!(this.
|
|
3942
|
+
if (!(this.ma9_1 === other.ma9_1))
|
|
3940
3943
|
return false;
|
|
3941
3944
|
if (!equals(this.actions, other.actions))
|
|
3942
3945
|
return false;
|
|
@@ -3956,26 +3959,26 @@
|
|
|
3956
3959
|
// Inline function 'org.kodein.type.generic' call
|
|
3957
3960
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3958
3961
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3959
|
-
var
|
|
3962
|
+
var tmp_1 = tmp.r60(tmp$ret$0, null);
|
|
3960
3963
|
// Inline function 'org.kodein.di.instance' call
|
|
3961
|
-
var
|
|
3964
|
+
var tmp_2 = $this$provider.s60();
|
|
3962
3965
|
// Inline function 'org.kodein.type.generic' call
|
|
3963
|
-
var
|
|
3964
|
-
var tmp$ret$2 = isInterface(
|
|
3965
|
-
var
|
|
3966
|
+
var tmp_3 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3967
|
+
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
3968
|
+
var tmp_4 = tmp_2.r60(tmp$ret$2, null);
|
|
3966
3969
|
// Inline function 'org.kodein.di.instance' call
|
|
3967
|
-
var
|
|
3970
|
+
var tmp_5 = $this$provider.s60();
|
|
3968
3971
|
// Inline function 'org.kodein.type.generic' call
|
|
3969
|
-
var
|
|
3970
|
-
var tmp$ret$4 = isInterface(
|
|
3971
|
-
var
|
|
3972
|
+
var tmp_6 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
3973
|
+
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3974
|
+
var tmp_7 = tmp_5.r60(tmp$ret$4, null);
|
|
3972
3975
|
// Inline function 'org.kodein.di.instance' call
|
|
3973
|
-
var
|
|
3976
|
+
var tmp_8 = $this$provider.s60();
|
|
3974
3977
|
// Inline function 'org.kodein.type.generic' call
|
|
3975
|
-
var
|
|
3976
|
-
var tmp$ret$6 = isInterface(
|
|
3977
|
-
var
|
|
3978
|
-
return new ServerMechanicLifecycleReducer(
|
|
3978
|
+
var tmp_9 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3979
|
+
var tmp$ret$6 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE();
|
|
3980
|
+
var tmp$ret$7 = tmp_8.r60(tmp$ret$6, null);
|
|
3981
|
+
return new ServerMechanicLifecycleReducer(tmp_1, tmp_4, tmp_7, tmp$ret$7);
|
|
3979
3982
|
}
|
|
3980
3983
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
3981
3984
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -4176,18 +4179,18 @@
|
|
|
4176
4179
|
function ToClientEventsObserver() {
|
|
4177
4180
|
}
|
|
4178
4181
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
4179
|
-
this.
|
|
4180
|
-
this.
|
|
4182
|
+
this.za9_1 = this$0;
|
|
4183
|
+
this.aaa_1 = $actions;
|
|
4181
4184
|
CoroutineImpl.call(this, resultContinuation);
|
|
4182
4185
|
}
|
|
4183
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
4184
|
-
var tmp = this.
|
|
4186
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).daa = function ($this$flow, $completion) {
|
|
4187
|
+
var tmp = this.eaa($this$flow, $completion);
|
|
4185
4188
|
tmp.u8_1 = Unit_instance;
|
|
4186
4189
|
tmp.v8_1 = null;
|
|
4187
4190
|
return tmp.a9();
|
|
4188
4191
|
};
|
|
4189
4192
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).i9 = function (p1, $completion) {
|
|
4190
|
-
return this.
|
|
4193
|
+
return this.daa((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
4191
4194
|
};
|
|
4192
4195
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).a9 = function () {
|
|
4193
4196
|
var suspendResult = this.u8_1;
|
|
@@ -4197,19 +4200,19 @@
|
|
|
4197
4200
|
switch (tmp) {
|
|
4198
4201
|
case 0:
|
|
4199
4202
|
this.t8_1 = 4;
|
|
4200
|
-
this.
|
|
4201
|
-
this.
|
|
4203
|
+
this.za9_1.jaa_1;
|
|
4204
|
+
this.caa_1 = transformToEmits(this.za9_1, this.aaa_1).l();
|
|
4202
4205
|
this.s8_1 = 1;
|
|
4203
4206
|
continue $sm;
|
|
4204
4207
|
case 1:
|
|
4205
|
-
if (!this.
|
|
4208
|
+
if (!this.caa_1.m()) {
|
|
4206
4209
|
this.s8_1 = 3;
|
|
4207
4210
|
continue $sm;
|
|
4208
4211
|
}
|
|
4209
4212
|
|
|
4210
|
-
var element = this.
|
|
4213
|
+
var element = this.caa_1.n();
|
|
4211
4214
|
this.s8_1 = 2;
|
|
4212
|
-
suspendResult = this.
|
|
4215
|
+
suspendResult = this.baa_1.o28(element, this);
|
|
4213
4216
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4214
4217
|
return suspendResult;
|
|
4215
4218
|
}
|
|
@@ -4219,11 +4222,11 @@
|
|
|
4219
4222
|
this.s8_1 = 1;
|
|
4220
4223
|
continue $sm;
|
|
4221
4224
|
case 3:
|
|
4222
|
-
var tmp0 = this.
|
|
4225
|
+
var tmp0 = this.za9_1.iaa_1;
|
|
4223
4226
|
l$ret$1: do {
|
|
4224
4227
|
while (true) {
|
|
4225
4228
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
4226
|
-
var upd = cur - this.
|
|
4229
|
+
var upd = cur - this.aaa_1.o() | 0;
|
|
4227
4230
|
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
4228
4231
|
break l$ret$1;
|
|
4229
4232
|
}
|
|
@@ -4245,15 +4248,15 @@
|
|
|
4245
4248
|
}
|
|
4246
4249
|
while (true);
|
|
4247
4250
|
};
|
|
4248
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
4249
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
4250
|
-
i.
|
|
4251
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).eaa = function ($this$flow, completion) {
|
|
4252
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.za9_1, this.aaa_1, completion);
|
|
4253
|
+
i.baa_1 = $this$flow;
|
|
4251
4254
|
return i;
|
|
4252
4255
|
};
|
|
4253
4256
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
4254
4257
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
4255
4258
|
var l = function ($this$flow, $completion) {
|
|
4256
|
-
return i.
|
|
4259
|
+
return i.daa($this$flow, $completion);
|
|
4257
4260
|
};
|
|
4258
4261
|
l.$arity = 1;
|
|
4259
4262
|
return l;
|
|
@@ -4323,29 +4326,29 @@
|
|
|
4323
4326
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
4324
4327
|
}
|
|
4325
4328
|
function mapFromGroupKey($this, _this__u8e3s4) {
|
|
4326
|
-
var tmp = $this.
|
|
4329
|
+
var tmp = $this.haa_1.h6e();
|
|
4327
4330
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4328
|
-
var this_0 = _this__u8e3s4.
|
|
4331
|
+
var this_0 = _this__u8e3s4.maa_1;
|
|
4329
4332
|
var tmp_0 = copyToArray(this_0);
|
|
4330
4333
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4331
|
-
var this_1 = _this__u8e3s4.
|
|
4334
|
+
var this_1 = _this__u8e3s4.naa_1;
|
|
4332
4335
|
var tmp$ret$1 = copyToArray(this_1);
|
|
4333
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
4336
|
+
return new ActionDeliveryPayload(_this__u8e3s4.laa_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.oaa_1);
|
|
4334
4337
|
}
|
|
4335
4338
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
4336
|
-
this.
|
|
4337
|
-
this.
|
|
4338
|
-
this.
|
|
4339
|
-
this.
|
|
4339
|
+
this.laa_1 = tableId;
|
|
4340
|
+
this.maa_1 = includePlayers;
|
|
4341
|
+
this.naa_1 = excludePlayers;
|
|
4342
|
+
this.oaa_1 = deliveryType;
|
|
4340
4343
|
}
|
|
4341
4344
|
protoOf(GroupKey).toString = function () {
|
|
4342
|
-
return 'GroupKey(tableId=' + this.
|
|
4345
|
+
return 'GroupKey(tableId=' + this.laa_1 + ', includePlayers=' + toString(this.maa_1) + ', excludePlayers=' + toString(this.naa_1) + ', deliveryType=' + this.oaa_1.toString() + ')';
|
|
4343
4346
|
};
|
|
4344
4347
|
protoOf(GroupKey).hashCode = function () {
|
|
4345
|
-
var result = getStringHashCode(this.
|
|
4346
|
-
result = imul(result, 31) + hashCode(this.
|
|
4347
|
-
result = imul(result, 31) + hashCode(this.
|
|
4348
|
-
result = imul(result, 31) + this.
|
|
4348
|
+
var result = getStringHashCode(this.laa_1);
|
|
4349
|
+
result = imul(result, 31) + hashCode(this.maa_1) | 0;
|
|
4350
|
+
result = imul(result, 31) + hashCode(this.naa_1) | 0;
|
|
4351
|
+
result = imul(result, 31) + this.oaa_1.hashCode() | 0;
|
|
4349
4352
|
return result;
|
|
4350
4353
|
};
|
|
4351
4354
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -4353,35 +4356,35 @@
|
|
|
4353
4356
|
return true;
|
|
4354
4357
|
if (!(other instanceof GroupKey))
|
|
4355
4358
|
return false;
|
|
4356
|
-
if (!(this.
|
|
4359
|
+
if (!(this.laa_1 === other.laa_1))
|
|
4357
4360
|
return false;
|
|
4358
|
-
if (!equals(this.
|
|
4361
|
+
if (!equals(this.maa_1, other.maa_1))
|
|
4359
4362
|
return false;
|
|
4360
|
-
if (!equals(this.
|
|
4363
|
+
if (!equals(this.naa_1, other.naa_1))
|
|
4361
4364
|
return false;
|
|
4362
|
-
if (!this.
|
|
4365
|
+
if (!this.oaa_1.equals(other.oaa_1))
|
|
4363
4366
|
return false;
|
|
4364
4367
|
return true;
|
|
4365
4368
|
};
|
|
4366
4369
|
function Companion_4() {
|
|
4367
|
-
this.
|
|
4370
|
+
this.paa_1 = 6;
|
|
4368
4371
|
}
|
|
4369
4372
|
var Companion_instance_14;
|
|
4370
4373
|
function Companion_getInstance_5() {
|
|
4371
4374
|
return Companion_instance_14;
|
|
4372
4375
|
}
|
|
4373
4376
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
4374
|
-
this.
|
|
4377
|
+
this.yaa_1 = this$0;
|
|
4375
4378
|
CoroutineImpl.call(this, resultContinuation);
|
|
4376
4379
|
}
|
|
4377
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
4378
|
-
var tmp = this.
|
|
4380
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).aab = function (actions, $completion) {
|
|
4381
|
+
var tmp = this.bab(actions, $completion);
|
|
4379
4382
|
tmp.u8_1 = Unit_instance;
|
|
4380
4383
|
tmp.v8_1 = null;
|
|
4381
4384
|
return tmp.a9();
|
|
4382
4385
|
};
|
|
4383
4386
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).i9 = function (p1, $completion) {
|
|
4384
|
-
return this.
|
|
4387
|
+
return this.aab((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
4385
4388
|
};
|
|
4386
4389
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).a9 = function () {
|
|
4387
4390
|
var suspendResult = this.u8_1;
|
|
@@ -4390,7 +4393,7 @@
|
|
|
4390
4393
|
var tmp = this.s8_1;
|
|
4391
4394
|
if (tmp === 0) {
|
|
4392
4395
|
this.t8_1 = 1;
|
|
4393
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
4396
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.yaa_1, this.zaa_1, null));
|
|
4394
4397
|
} else if (tmp === 1) {
|
|
4395
4398
|
throw this.v8_1;
|
|
4396
4399
|
}
|
|
@@ -4400,23 +4403,23 @@
|
|
|
4400
4403
|
}
|
|
4401
4404
|
while (true);
|
|
4402
4405
|
};
|
|
4403
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
4404
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
4405
|
-
i.
|
|
4406
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).bab = function (actions, completion) {
|
|
4407
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.yaa_1, completion);
|
|
4408
|
+
i.zaa_1 = actions;
|
|
4406
4409
|
return i;
|
|
4407
4410
|
};
|
|
4408
4411
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
4409
4412
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
4410
4413
|
var l = function (actions, $completion) {
|
|
4411
|
-
return i.
|
|
4414
|
+
return i.aab(actions, $completion);
|
|
4412
4415
|
};
|
|
4413
4416
|
l.$arity = 1;
|
|
4414
4417
|
return l;
|
|
4415
4418
|
}
|
|
4416
4419
|
function $sentEventCOROUTINE$(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
4417
4420
|
CoroutineImpl.call(this, resultContinuation);
|
|
4418
|
-
this.
|
|
4419
|
-
this.
|
|
4421
|
+
this.kab_1 = _this__u8e3s4;
|
|
4422
|
+
this.lab_1 = fromEvent;
|
|
4420
4423
|
}
|
|
4421
4424
|
protoOf($sentEventCOROUTINE$).a9 = function () {
|
|
4422
4425
|
var suspendResult = this.u8_1;
|
|
@@ -4426,8 +4429,8 @@
|
|
|
4426
4429
|
switch (tmp) {
|
|
4427
4430
|
case 0:
|
|
4428
4431
|
this.t8_1 = 2;
|
|
4429
|
-
this.
|
|
4430
|
-
var tmp0 = this.
|
|
4432
|
+
this.kab_1.jaa_1;
|
|
4433
|
+
var tmp0 = this.kab_1.iaa_1;
|
|
4431
4434
|
l$ret$1: do {
|
|
4432
4435
|
while (true) {
|
|
4433
4436
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
@@ -4439,7 +4442,7 @@
|
|
|
4439
4442
|
}
|
|
4440
4443
|
while (false);
|
|
4441
4444
|
this.s8_1 = 1;
|
|
4442
|
-
suspendResult = this.
|
|
4445
|
+
suspendResult = this.kab_1.kaa_1.o28(this.lab_1, this);
|
|
4443
4446
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4444
4447
|
return suspendResult;
|
|
4445
4448
|
}
|
|
@@ -4463,7 +4466,7 @@
|
|
|
4463
4466
|
};
|
|
4464
4467
|
function $waitForCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
4465
4468
|
CoroutineImpl.call(this, resultContinuation);
|
|
4466
|
-
this.
|
|
4469
|
+
this.uab_1 = _this__u8e3s4;
|
|
4467
4470
|
}
|
|
4468
4471
|
protoOf($waitForCOROUTINE$).a9 = function () {
|
|
4469
4472
|
var suspendResult = this.u8_1;
|
|
@@ -4473,12 +4476,12 @@
|
|
|
4473
4476
|
switch (tmp) {
|
|
4474
4477
|
case 0:
|
|
4475
4478
|
this.t8_1 = 5;
|
|
4476
|
-
this.
|
|
4477
|
-
this.
|
|
4479
|
+
this.uab_1.jaa_1;
|
|
4480
|
+
this.vab_1 = 0;
|
|
4478
4481
|
this.s8_1 = 1;
|
|
4479
4482
|
continue $sm;
|
|
4480
4483
|
case 1:
|
|
4481
|
-
if (!!(this.
|
|
4484
|
+
if (!!(this.uab_1.iaa_1.kotlinx$atomicfu$value === 0)) {
|
|
4482
4485
|
this.s8_1 = 4;
|
|
4483
4486
|
continue $sm;
|
|
4484
4487
|
}
|
|
@@ -4491,9 +4494,9 @@
|
|
|
4491
4494
|
|
|
4492
4495
|
continue $sm;
|
|
4493
4496
|
case 2:
|
|
4494
|
-
this.
|
|
4495
|
-
if (this.
|
|
4496
|
-
this.
|
|
4497
|
+
this.vab_1 = this.vab_1 + 1 | 0;
|
|
4498
|
+
if (this.vab_1 > 6) {
|
|
4499
|
+
this.uab_1.gaa_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.uab_1.iaa_1.kotlinx$atomicfu$value);
|
|
4497
4500
|
this.s8_1 = 4;
|
|
4498
4501
|
continue $sm;
|
|
4499
4502
|
} else {
|
|
@@ -4521,54 +4524,54 @@
|
|
|
4521
4524
|
while (true);
|
|
4522
4525
|
};
|
|
4523
4526
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
4524
|
-
this.
|
|
4525
|
-
this.
|
|
4526
|
-
this.
|
|
4527
|
-
this.
|
|
4527
|
+
this.faa_1 = serverReduxConfig;
|
|
4528
|
+
this.gaa_1 = logger;
|
|
4529
|
+
this.haa_1 = idsProvider;
|
|
4530
|
+
this.iaa_1 = atomic$ref$1(0);
|
|
4528
4531
|
var tmp = this;
|
|
4529
4532
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
4530
|
-
tmp.
|
|
4531
|
-
this.
|
|
4533
|
+
tmp.jaa_1 = get_atomicfu$reentrantLock();
|
|
4534
|
+
this.kaa_1 = MutableSharedFlow();
|
|
4532
4535
|
}
|
|
4533
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4536
|
+
protoOf(ToClientEventsObserverImpl).qa9 = function (fromEvent, $completion) {
|
|
4534
4537
|
var tmp = new $sentEventCOROUTINE$(this, fromEvent, $completion);
|
|
4535
4538
|
tmp.u8_1 = Unit_instance;
|
|
4536
4539
|
tmp.v8_1 = null;
|
|
4537
4540
|
return tmp.a9();
|
|
4538
4541
|
};
|
|
4539
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4542
|
+
protoOf(ToClientEventsObserverImpl).b9i = function ($completion) {
|
|
4540
4543
|
var tmp = new $waitForCOROUTINE$(this, $completion);
|
|
4541
4544
|
tmp.u8_1 = Unit_instance;
|
|
4542
4545
|
tmp.v8_1 = null;
|
|
4543
4546
|
return tmp.a9();
|
|
4544
4547
|
};
|
|
4545
|
-
protoOf(ToClientEventsObserverImpl).
|
|
4546
|
-
if (!this.
|
|
4547
|
-
return this.
|
|
4548
|
+
protoOf(ToClientEventsObserverImpl).h9z = function () {
|
|
4549
|
+
if (!this.faa_1.enabledCombinedEvents) {
|
|
4550
|
+
return this.kaa_1;
|
|
4548
4551
|
}
|
|
4549
|
-
var tmp = windowedByInterval(this.
|
|
4552
|
+
var tmp = windowedByInterval(this.kaa_1, fromInt(this.faa_1.combinedEventsIntervalMillis));
|
|
4550
4553
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
4551
4554
|
};
|
|
4552
4555
|
function PlayerConnectionInteractor() {
|
|
4553
4556
|
}
|
|
4554
4557
|
function waitPlayerOrDisconnect($this, newConnectionState, previousConnectionState, table, player, waitForPlayer) {
|
|
4555
|
-
if (waitForPlayer && $this.
|
|
4558
|
+
if (waitForPlayer && $this.zab_1.waitForPlayerToReconnect) {
|
|
4556
4559
|
Companion_getInstance();
|
|
4557
4560
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4558
|
-
var this_0 = $this.
|
|
4561
|
+
var this_0 = $this.zab_1.reconnectionCheckDurationMillis;
|
|
4559
4562
|
var reconnectionCheckDurationMillis = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4560
4563
|
var noRecentReconnects = Duration__compareTo_impl_pchp0f(table.gameDuration, reconnectionCheckDurationMillis) < 0 || player.n6v_1.d69().x67(reconnectionCheckDurationMillis);
|
|
4561
4564
|
if (noRecentReconnects) {
|
|
4562
|
-
return $this.
|
|
4565
|
+
return $this.xab(player.playerId, newConnectionState, previousConnectionState);
|
|
4563
4566
|
}
|
|
4564
4567
|
}
|
|
4565
|
-
var canRemoveGameWhenNoPlayers = Companion_instance_2.l6v($this.
|
|
4568
|
+
var canRemoveGameWhenNoPlayers = Companion_instance_2.l6v($this.zab_1.finishGameWhenNotLiveStrategy, player.playerId, table.players);
|
|
4566
4569
|
if (canRemoveGameWhenNoPlayers) {
|
|
4567
|
-
return listOf($this.
|
|
4570
|
+
return listOf($this.dac_1.b8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: No Players to continue game'));
|
|
4568
4571
|
}
|
|
4569
4572
|
if (table.sceneInfo.k7g()) {
|
|
4570
|
-
if (!$this.
|
|
4571
|
-
return listOf($this.
|
|
4573
|
+
if (!$this.aac_1.openRoomIfFinished) {
|
|
4574
|
+
return listOf($this.dac_1.b8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: Game is finished'));
|
|
4572
4575
|
}
|
|
4573
4576
|
// Inline function 'kotlin.collections.filter' call
|
|
4574
4577
|
var tmp0 = table.players;
|
|
@@ -4643,27 +4646,27 @@
|
|
|
4643
4646
|
}
|
|
4644
4647
|
var readyLivePlayers = destination_3;
|
|
4645
4648
|
var usersToJoinRoomSize = table.players.o() - notAlivePlayers.o() | 0;
|
|
4646
|
-
if ($this.
|
|
4647
|
-
return listOf($this.
|
|
4649
|
+
if ($this.aac_1.minPlayersToOpenRoom >= usersToJoinRoomSize) {
|
|
4650
|
+
return listOf($this.dac_1.b8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: Not enough users to create room'));
|
|
4648
4651
|
}
|
|
4649
4652
|
var allPlayersMadeDecision = (readyLivePlayers.o() + notAlivePlayers.o() | 0) === table.players.o();
|
|
4650
4653
|
if (allPlayersMadeDecision) {
|
|
4651
|
-
var tmp0_$this = $this.
|
|
4654
|
+
var tmp0_$this = $this.dac_1;
|
|
4652
4655
|
var tmp1_reason = mapToFinishReason(newConnectionState, player, table.playersConnections);
|
|
4653
4656
|
return listOf(tmp0_$this.a8y(tmp1_reason, table, 'Disconnect: Game is finished, transition to room', readyLivePlayers));
|
|
4654
4657
|
}
|
|
4655
4658
|
}
|
|
4656
|
-
if (!$this.
|
|
4657
|
-
return listOf($this.
|
|
4659
|
+
if (!$this.zab_1.botReplacesPlayerAfterTimeout) {
|
|
4660
|
+
return listOf($this.dac_1.b8y(mapToFinishReason(newConnectionState, player, table.playersConnections), table, "Disconnect: Can't continue game without bots"));
|
|
4658
4661
|
}
|
|
4659
4662
|
return getPlayerDisconnectedActions($this, newConnectionState, previousConnectionState, player);
|
|
4660
4663
|
}
|
|
4661
4664
|
function getPlayerConnectedActions($this, player, table, previousConnectionState) {
|
|
4662
4665
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4663
4666
|
var actionsList = ArrayList_init_$Create$_0();
|
|
4664
|
-
actionsList.q(listOf_0([new PlayerConnectionChangedMechanicAction(player.playerId, PlayerConnectionState_LIVE_getInstance(), previousConnectionState), $this.
|
|
4667
|
+
actionsList.q(listOf_0([new PlayerConnectionChangedMechanicAction(player.playerId, PlayerConnectionState_LIVE_getInstance(), previousConnectionState), $this.xa6(player, table)]));
|
|
4665
4668
|
if (player.n6v_1.m67()) {
|
|
4666
|
-
actionsList.q(listOf_0([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.n6v_1.t68())), new StartTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.n6v_1.t68(), true), _Duration___get_inWholeMilliseconds__impl__msfiry($this.
|
|
4669
|
+
actionsList.q(listOf_0([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.n6v_1.t68())), new StartTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.n6v_1.t68(), true), _Duration___get_inWholeMilliseconds__impl__msfiry($this.bac_1.e9m(table.config)), VOID, TimerType_DELAY_getInstance())]));
|
|
4667
4670
|
}
|
|
4668
4671
|
return actionsList;
|
|
4669
4672
|
}
|
|
@@ -4677,13 +4680,13 @@
|
|
|
4677
4680
|
return actionsList;
|
|
4678
4681
|
}
|
|
4679
4682
|
function PlayerConnectionInteractorImpl(serverConfig, engineLogicConfig, playerTurnMechanicReducer, idsProvider, gameLifecycleInteractor) {
|
|
4680
|
-
this.
|
|
4681
|
-
this.
|
|
4682
|
-
this.
|
|
4683
|
-
this.
|
|
4684
|
-
this.
|
|
4683
|
+
this.zab_1 = serverConfig;
|
|
4684
|
+
this.aac_1 = engineLogicConfig;
|
|
4685
|
+
this.bac_1 = playerTurnMechanicReducer;
|
|
4686
|
+
this.cac_1 = idsProvider;
|
|
4687
|
+
this.dac_1 = gameLifecycleInteractor;
|
|
4685
4688
|
}
|
|
4686
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4689
|
+
protoOf(PlayerConnectionInteractorImpl).wab = function (newConnectionState, previousConnectionState, player, table, afterReconnection) {
|
|
4687
4690
|
var tmp;
|
|
4688
4691
|
switch (newConnectionState.q2_1) {
|
|
4689
4692
|
case 1:
|
|
@@ -4714,18 +4717,18 @@
|
|
|
4714
4717
|
}
|
|
4715
4718
|
return tmp;
|
|
4716
4719
|
};
|
|
4717
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4720
|
+
protoOf(PlayerConnectionInteractorImpl).za8 = function (sendToPlayerId, isLive, tableId, reason, isGameFinished) {
|
|
4718
4721
|
if (!isLive) {
|
|
4719
4722
|
return emptyList();
|
|
4720
4723
|
}
|
|
4721
|
-
var tmp0_deliveryPayload = Companion_instance_1.user(this.
|
|
4724
|
+
var tmp0_deliveryPayload = Companion_instance_1.user(this.cac_1.h6e(), tableId, sendToPlayerId);
|
|
4722
4725
|
var tmp = new FinishingGameToClientAction(reason, isGameFinished, null, tmp0_deliveryPayload);
|
|
4723
|
-
var tmp1_deliveryPayload = Companion_instance_1.user(this.
|
|
4726
|
+
var tmp1_deliveryPayload = Companion_instance_1.user(this.cac_1.h6e(), tableId, sendToPlayerId);
|
|
4724
4727
|
return listOf_0([tmp, new FinishGameToClientAction(reason, isGameFinished, null, tmp1_deliveryPayload)]);
|
|
4725
4728
|
};
|
|
4726
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4727
|
-
var updatedTable = this.
|
|
4728
|
-
var aid = this.
|
|
4729
|
+
protoOf(PlayerConnectionInteractorImpl).xa6 = function (sendToPlayer, table) {
|
|
4730
|
+
var updatedTable = this.bac_1.f9k(table, sendToPlayer.playerId, PlayerConnectionState_LIVE_getInstance(), null);
|
|
4731
|
+
var aid = this.cac_1.h6e();
|
|
4729
4732
|
var tmp4_deliveryPayload = Companion_instance_1.userFromTable(aid, updatedTable, sendToPlayer.playerId);
|
|
4730
4733
|
var tmp0_playerId = sendToPlayer.playerId;
|
|
4731
4734
|
var tmp1_gameCreatorPlayerId = getGameCreator(updatedTable.players).playerId;
|
|
@@ -4744,166 +4747,187 @@
|
|
|
4744
4747
|
var tmp6_reason = new PlayerReturnsReason(sendToPlayer.playerId);
|
|
4745
4748
|
return new ContinueGameToClientAction(tmp5_table, tmp6_reason, null, tmp4_deliveryPayload);
|
|
4746
4749
|
};
|
|
4747
|
-
protoOf(PlayerConnectionInteractorImpl).
|
|
4750
|
+
protoOf(PlayerConnectionInteractorImpl).xab = function (playerId, newConnectionState, previousConnectionState) {
|
|
4748
4751
|
var tmp = System_instance.dk();
|
|
4749
4752
|
Companion_getInstance();
|
|
4750
4753
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4751
|
-
var this_0 = this.
|
|
4754
|
+
var this_0 = this.zab_1.waitForPlayerToReconnectTimeOutMillis;
|
|
4752
4755
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4753
4756
|
var reconnectUntilTime = tmp.sk(tmp$ret$0);
|
|
4754
4757
|
var tmp0_state = PlayerConnectionState_DISCONNECTING_getInstance();
|
|
4755
4758
|
var tmp1_reconnectUntilTime = reconnectUntilTime.toString();
|
|
4756
|
-
return listOf_0([new PlayerConnectionChangedMechanicAction(playerId, tmp0_state, previousConnectionState, newConnectionState, false, tmp1_reconnectUntilTime), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(playerId, newConnectionState, previousConnectionState), fromInt(this.
|
|
4759
|
+
return listOf_0([new PlayerConnectionChangedMechanicAction(playerId, tmp0_state, previousConnectionState, newConnectionState, false, tmp1_reconnectUntilTime), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(playerId, newConnectionState, previousConnectionState), fromInt(this.zab_1.waitForPlayerToReconnectTimeOutMillis), VOID, TimerType_DELAY_getInstance())]);
|
|
4760
|
+
};
|
|
4761
|
+
protoOf(PlayerConnectionInteractorImpl).yab = function (isBot, playerId, connectedPlayers) {
|
|
4762
|
+
var tmp;
|
|
4763
|
+
if (isBot) {
|
|
4764
|
+
tmp = Companion_instance_3.s67(PlayerConnectionState_LEFT_PERMANENTLY_getInstance());
|
|
4765
|
+
} else {
|
|
4766
|
+
var tmp_0;
|
|
4767
|
+
if (this.zab_1.waitForPlayerToConnectOnStart) {
|
|
4768
|
+
var tmp_1;
|
|
4769
|
+
if (connectedPlayers.u1(playerId)) {
|
|
4770
|
+
tmp_1 = Companion_instance_3.s67(PlayerConnectionState_LIVE_getInstance());
|
|
4771
|
+
} else {
|
|
4772
|
+
tmp_1 = Companion_instance_3.s67(PlayerConnectionState_WAITING_getInstance());
|
|
4773
|
+
}
|
|
4774
|
+
tmp_0 = tmp_1;
|
|
4775
|
+
} else {
|
|
4776
|
+
tmp_0 = Companion_instance_3.s67(PlayerConnectionState_LIVE_getInstance());
|
|
4777
|
+
}
|
|
4778
|
+
tmp = tmp_0;
|
|
4779
|
+
}
|
|
4780
|
+
return tmp;
|
|
4757
4781
|
};
|
|
4758
4782
|
function UpdateServerConfigAction(serverConfig) {
|
|
4759
|
-
this.
|
|
4783
|
+
this.eac_1 = serverConfig;
|
|
4760
4784
|
}
|
|
4761
4785
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
4762
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
4786
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.eac_1.toString() + ')';
|
|
4763
4787
|
};
|
|
4764
4788
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
4765
|
-
return this.
|
|
4789
|
+
return this.eac_1.hashCode();
|
|
4766
4790
|
};
|
|
4767
4791
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
4768
4792
|
if (this === other)
|
|
4769
4793
|
return true;
|
|
4770
4794
|
if (!(other instanceof UpdateServerConfigAction))
|
|
4771
4795
|
return false;
|
|
4772
|
-
if (!this.
|
|
4796
|
+
if (!this.eac_1.equals(other.eac_1))
|
|
4773
4797
|
return false;
|
|
4774
4798
|
return true;
|
|
4775
4799
|
};
|
|
4776
4800
|
function SpectatorsAction() {
|
|
4777
4801
|
}
|
|
4778
4802
|
function AddSpectatorsAction(spectators) {
|
|
4779
|
-
this.
|
|
4803
|
+
this.fac_1 = spectators;
|
|
4780
4804
|
}
|
|
4781
4805
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
4782
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
4806
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.fac_1) + ')';
|
|
4783
4807
|
};
|
|
4784
4808
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
4785
|
-
return hashCode(this.
|
|
4809
|
+
return hashCode(this.fac_1);
|
|
4786
4810
|
};
|
|
4787
4811
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
4788
4812
|
if (this === other)
|
|
4789
4813
|
return true;
|
|
4790
4814
|
if (!(other instanceof AddSpectatorsAction))
|
|
4791
4815
|
return false;
|
|
4792
|
-
if (!equals(this.
|
|
4816
|
+
if (!equals(this.fac_1, other.fac_1))
|
|
4793
4817
|
return false;
|
|
4794
4818
|
return true;
|
|
4795
4819
|
};
|
|
4796
4820
|
function RemoveSpectatorsAction(spectators) {
|
|
4797
|
-
this.
|
|
4821
|
+
this.gac_1 = spectators;
|
|
4798
4822
|
}
|
|
4799
4823
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
4800
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
4824
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.gac_1) + ')';
|
|
4801
4825
|
};
|
|
4802
4826
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
4803
|
-
return hashCode(this.
|
|
4827
|
+
return hashCode(this.gac_1);
|
|
4804
4828
|
};
|
|
4805
4829
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
4806
4830
|
if (this === other)
|
|
4807
4831
|
return true;
|
|
4808
4832
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
4809
4833
|
return false;
|
|
4810
|
-
if (!equals(this.
|
|
4834
|
+
if (!equals(this.gac_1, other.gac_1))
|
|
4811
4835
|
return false;
|
|
4812
4836
|
return true;
|
|
4813
4837
|
};
|
|
4814
4838
|
function _get_asyncProvider__jbpyhw($this) {
|
|
4815
|
-
var tmp0 = $this.
|
|
4839
|
+
var tmp0 = $this.mac_1;
|
|
4816
4840
|
var tmp = KProperty1;
|
|
4817
4841
|
// Inline function 'kotlin.getValue' call
|
|
4818
4842
|
getPropertyCallableRef('asyncProvider', 1, tmp, ServerGameStoreContract$_get_asyncProvider_$ref_1q7po3_0(), null);
|
|
4819
4843
|
return tmp0.x();
|
|
4820
4844
|
}
|
|
4821
4845
|
function _get_logger__rkp4sl($this) {
|
|
4822
|
-
var tmp0 = $this.
|
|
4846
|
+
var tmp0 = $this.nac_1;
|
|
4823
4847
|
var tmp = KProperty1;
|
|
4824
4848
|
// Inline function 'kotlin.getValue' call
|
|
4825
4849
|
getPropertyCallableRef('logger', 1, tmp, ServerGameStoreContract$_get_logger_$ref_zbgw28_0(), null);
|
|
4826
4850
|
return tmp0.x();
|
|
4827
4851
|
}
|
|
4828
4852
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
4829
|
-
var tmp0 = $this.
|
|
4853
|
+
var tmp0 = $this.oac_1;
|
|
4830
4854
|
var tmp = KProperty1;
|
|
4831
4855
|
// Inline function 'kotlin.getValue' call
|
|
4832
4856
|
getPropertyCallableRef('playerConnectionInteractor', 1, tmp, ServerGameStoreContract$_get_playerConnectionInteractor_$ref_d9n2s8_0(), null);
|
|
4833
4857
|
return tmp0.x();
|
|
4834
4858
|
}
|
|
4835
4859
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
4836
|
-
var tmp0 = $this.
|
|
4860
|
+
var tmp0 = $this.pac_1;
|
|
4837
4861
|
var tmp = KProperty1;
|
|
4838
4862
|
// Inline function 'kotlin.getValue' call
|
|
4839
4863
|
getPropertyCallableRef('lastCardInteractor', 1, tmp, ServerGameStoreContract$_get_lastCardInteractor_$ref_khpgh_0(), null);
|
|
4840
4864
|
return tmp0.x();
|
|
4841
4865
|
}
|
|
4842
4866
|
function _get_serverConfig__rk2g06($this) {
|
|
4843
|
-
var tmp0 = $this.
|
|
4867
|
+
var tmp0 = $this.qac_1;
|
|
4844
4868
|
var tmp = KProperty1;
|
|
4845
4869
|
// Inline function 'kotlin.getValue' call
|
|
4846
4870
|
getPropertyCallableRef('serverConfig', 1, tmp, ServerGameStoreContract$_get_serverConfig_$ref_bz2891_0(), null);
|
|
4847
4871
|
return tmp0.x();
|
|
4848
4872
|
}
|
|
4849
4873
|
function _get_logicConfig__52ww9d($this) {
|
|
4850
|
-
var tmp0 = $this.
|
|
4874
|
+
var tmp0 = $this.rac_1;
|
|
4851
4875
|
var tmp = KProperty1;
|
|
4852
4876
|
// Inline function 'kotlin.getValue' call
|
|
4853
4877
|
getPropertyCallableRef('logicConfig', 1, tmp, ServerGameStoreContract$_get_logicConfig_$ref_nqj2yi_0(), null);
|
|
4854
4878
|
return tmp0.x();
|
|
4855
4879
|
}
|
|
4856
4880
|
function _get_idsProvider__fnfajc_0($this) {
|
|
4857
|
-
var tmp0 = $this.
|
|
4881
|
+
var tmp0 = $this.sac_1;
|
|
4858
4882
|
var tmp = KProperty1;
|
|
4859
4883
|
// Inline function 'kotlin.getValue' call
|
|
4860
4884
|
getPropertyCallableRef('idsProvider', 1, tmp, ServerGameStoreContract$_get_idsProvider_$ref_rf1ck1_0(), null);
|
|
4861
4885
|
return tmp0.x();
|
|
4862
4886
|
}
|
|
4863
4887
|
function _get_botConfig__cpaxzc($this) {
|
|
4864
|
-
var tmp0 = $this.
|
|
4888
|
+
var tmp0 = $this.tac_1;
|
|
4865
4889
|
var tmp = KProperty1;
|
|
4866
4890
|
// Inline function 'kotlin.getValue' call
|
|
4867
4891
|
getPropertyCallableRef('botConfig', 1, tmp, ServerGameStoreContract$_get_botConfig_$ref_nebw1d_0(), null);
|
|
4868
4892
|
return tmp0.x();
|
|
4869
4893
|
}
|
|
4870
4894
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
4871
|
-
var tmp0 = $this.
|
|
4895
|
+
var tmp0 = $this.uac_1;
|
|
4872
4896
|
var tmp = KProperty1;
|
|
4873
4897
|
// Inline function 'kotlin.getValue' call
|
|
4874
4898
|
getPropertyCallableRef('scenePositionProvider', 1, tmp, ServerGameStoreContract$_get_scenePositionProvider_$ref_ue39g4_0(), null);
|
|
4875
4899
|
return tmp0.x();
|
|
4876
4900
|
}
|
|
4877
4901
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
4878
|
-
var tmp0 = $this.
|
|
4902
|
+
var tmp0 = $this.vac_1;
|
|
4879
4903
|
var tmp = KProperty1;
|
|
4880
4904
|
// Inline function 'kotlin.getValue' call
|
|
4881
4905
|
getPropertyCallableRef('toClientEventsObserver', 1, tmp, ServerGameStoreContract$_get_toClientEventsObserver_$ref_nkgv3p_0(), null);
|
|
4882
4906
|
return tmp0.x();
|
|
4883
4907
|
}
|
|
4884
4908
|
function _get_fromClientEventsObserver__a7vzd3_0($this) {
|
|
4885
|
-
var tmp0 = $this.
|
|
4909
|
+
var tmp0 = $this.wac_1;
|
|
4886
4910
|
var tmp = KProperty1;
|
|
4887
4911
|
// Inline function 'kotlin.getValue' call
|
|
4888
4912
|
getPropertyCallableRef('fromClientEventsObserver', 1, tmp, ServerGameStoreContract$_get_fromClientEventsObserver_$ref_v1j2bg_0(), null);
|
|
4889
4913
|
return tmp0.x();
|
|
4890
4914
|
}
|
|
4891
4915
|
function _get_dealerConfig__183ci8($this) {
|
|
4892
|
-
var tmp0 = $this.
|
|
4916
|
+
var tmp0 = $this.xac_1;
|
|
4893
4917
|
var tmp = KProperty1;
|
|
4894
4918
|
// Inline function 'kotlin.getValue' call
|
|
4895
4919
|
getPropertyCallableRef('dealerConfig', 1, tmp, ServerGameStoreContract$_get_dealerConfig_$ref_mdo2zp_0(), null);
|
|
4896
4920
|
return tmp0.x();
|
|
4897
4921
|
}
|
|
4898
4922
|
function _get_poolProvider__tqti6a($this) {
|
|
4899
|
-
var tmp0 = $this.
|
|
4923
|
+
var tmp0 = $this.yac_1;
|
|
4900
4924
|
var tmp = KProperty1;
|
|
4901
4925
|
// Inline function 'kotlin.getValue' call
|
|
4902
4926
|
getPropertyCallableRef('poolProvider', 1, tmp, ServerGameStoreContract$_get_poolProvider_$ref_4pfoc3_0(), null);
|
|
4903
4927
|
return tmp0.x();
|
|
4904
4928
|
}
|
|
4905
4929
|
function _get_cardsDealerProvider__bekjpg($this) {
|
|
4906
|
-
var tmp0 = $this.
|
|
4930
|
+
var tmp0 = $this.zac_1;
|
|
4907
4931
|
var tmp = KProperty1;
|
|
4908
4932
|
// Inline function 'kotlin.getValue' call
|
|
4909
4933
|
getPropertyCallableRef('cardsDealerProvider', 1, tmp, ServerGameStoreContract$_get_cardsDealerProvider_$ref_ipxqoj_0(), null);
|
|
@@ -5067,11 +5091,11 @@
|
|
|
5067
5091
|
tmp = fileLoggerStoreContract;
|
|
5068
5092
|
}
|
|
5069
5093
|
fileLoggerStoreContract = tmp;
|
|
5070
|
-
this.
|
|
5071
|
-
this.
|
|
5072
|
-
this.
|
|
5073
|
-
this.
|
|
5074
|
-
this.
|
|
5094
|
+
this.hac_1 = validationStoreContract;
|
|
5095
|
+
this.iac_1 = timersStoreContract;
|
|
5096
|
+
this.jac_1 = botGameStoreContract;
|
|
5097
|
+
this.kac_1 = gameMechanicStoreContract;
|
|
5098
|
+
this.lac_1 = fileLoggerStoreContract;
|
|
5075
5099
|
var tmp_0 = this;
|
|
5076
5100
|
// Inline function 'org.kodein.di.instance' call
|
|
5077
5101
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5079,7 +5103,7 @@
|
|
|
5079
5103
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
5080
5104
|
var tmp_2 = Instance(di, tmp$ret$0, null);
|
|
5081
5105
|
var tmp_3 = KProperty1;
|
|
5082
|
-
tmp_0.
|
|
5106
|
+
tmp_0.mac_1 = tmp_2.a65(this, getPropertyCallableRef('asyncProvider', 1, tmp_3, ServerGameStoreContract$_get_asyncProvider_$ref_1q7po3(), null));
|
|
5083
5107
|
var tmp_4 = this;
|
|
5084
5108
|
// Inline function 'org.kodein.di.instance' call
|
|
5085
5109
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5087,7 +5111,7 @@
|
|
|
5087
5111
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
5088
5112
|
var tmp_6 = Instance(di, tmp$ret$2, null);
|
|
5089
5113
|
var tmp_7 = KProperty1;
|
|
5090
|
-
tmp_4.
|
|
5114
|
+
tmp_4.nac_1 = tmp_6.a65(this, getPropertyCallableRef('logger', 1, tmp_7, ServerGameStoreContract$_get_logger_$ref_zbgw28(), null));
|
|
5091
5115
|
var tmp_8 = this;
|
|
5092
5116
|
// Inline function 'org.kodein.di.instance' call
|
|
5093
5117
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5095,7 +5119,7 @@
|
|
|
5095
5119
|
var tmp$ret$4 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE();
|
|
5096
5120
|
var tmp_10 = Instance(di, tmp$ret$4, null);
|
|
5097
5121
|
var tmp_11 = KProperty1;
|
|
5098
|
-
tmp_8.
|
|
5122
|
+
tmp_8.oac_1 = tmp_10.a65(this, getPropertyCallableRef('playerConnectionInteractor', 1, tmp_11, ServerGameStoreContract$_get_playerConnectionInteractor_$ref_d9n2s8(), null));
|
|
5099
5123
|
var tmp_12 = this;
|
|
5100
5124
|
// Inline function 'org.kodein.di.instance' call
|
|
5101
5125
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5103,7 +5127,7 @@
|
|
|
5103
5127
|
var tmp$ret$6 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
5104
5128
|
var tmp_14 = Instance(di, tmp$ret$6, null);
|
|
5105
5129
|
var tmp_15 = KProperty1;
|
|
5106
|
-
tmp_12.
|
|
5130
|
+
tmp_12.pac_1 = tmp_14.a65(this, getPropertyCallableRef('lastCardInteractor', 1, tmp_15, ServerGameStoreContract$_get_lastCardInteractor_$ref_khpgh(), null));
|
|
5107
5131
|
var tmp_16 = this;
|
|
5108
5132
|
// Inline function 'org.kodein.di.instance' call
|
|
5109
5133
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5111,7 +5135,7 @@
|
|
|
5111
5135
|
var tmp$ret$8 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
5112
5136
|
var tmp_18 = Instance(di, tmp$ret$8, null);
|
|
5113
5137
|
var tmp_19 = KProperty1;
|
|
5114
|
-
tmp_16.
|
|
5138
|
+
tmp_16.qac_1 = tmp_18.a65(this, getPropertyCallableRef('serverConfig', 1, tmp_19, ServerGameStoreContract$_get_serverConfig_$ref_bz2891(), null));
|
|
5115
5139
|
var tmp_20 = this;
|
|
5116
5140
|
// Inline function 'org.kodein.di.instance' call
|
|
5117
5141
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5119,7 +5143,7 @@
|
|
|
5119
5143
|
var tmp$ret$10 = isInterface(tmp_21, TypeToken) ? tmp_21 : THROW_CCE();
|
|
5120
5144
|
var tmp_22 = Instance(di, tmp$ret$10, null);
|
|
5121
5145
|
var tmp_23 = KProperty1;
|
|
5122
|
-
tmp_20.
|
|
5146
|
+
tmp_20.rac_1 = tmp_22.a65(this, getPropertyCallableRef('logicConfig', 1, tmp_23, ServerGameStoreContract$_get_logicConfig_$ref_nqj2yi(), null));
|
|
5123
5147
|
var tmp_24 = this;
|
|
5124
5148
|
// Inline function 'org.kodein.di.instance' call
|
|
5125
5149
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5127,7 +5151,7 @@
|
|
|
5127
5151
|
var tmp$ret$12 = isInterface(tmp_25, TypeToken) ? tmp_25 : THROW_CCE();
|
|
5128
5152
|
var tmp_26 = Instance(di, tmp$ret$12, null);
|
|
5129
5153
|
var tmp_27 = KProperty1;
|
|
5130
|
-
tmp_24.
|
|
5154
|
+
tmp_24.sac_1 = tmp_26.a65(this, getPropertyCallableRef('idsProvider', 1, tmp_27, ServerGameStoreContract$_get_idsProvider_$ref_rf1ck1(), null));
|
|
5131
5155
|
var tmp_28 = this;
|
|
5132
5156
|
// Inline function 'org.kodein.di.instance' call
|
|
5133
5157
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5135,7 +5159,7 @@
|
|
|
5135
5159
|
var tmp$ret$14 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE();
|
|
5136
5160
|
var tmp_30 = Instance(di, tmp$ret$14, null);
|
|
5137
5161
|
var tmp_31 = KProperty1;
|
|
5138
|
-
tmp_28.
|
|
5162
|
+
tmp_28.tac_1 = tmp_30.a65(this, getPropertyCallableRef('botConfig', 1, tmp_31, ServerGameStoreContract$_get_botConfig_$ref_nebw1d(), null));
|
|
5139
5163
|
var tmp_32 = this;
|
|
5140
5164
|
// Inline function 'org.kodein.di.instance' call
|
|
5141
5165
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5143,7 +5167,7 @@
|
|
|
5143
5167
|
var tmp$ret$16 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE();
|
|
5144
5168
|
var tmp_34 = Instance(di, tmp$ret$16, null);
|
|
5145
5169
|
var tmp_35 = KProperty1;
|
|
5146
|
-
tmp_32.
|
|
5170
|
+
tmp_32.uac_1 = tmp_34.a65(this, getPropertyCallableRef('scenePositionProvider', 1, tmp_35, ServerGameStoreContract$_get_scenePositionProvider_$ref_ue39g4(), null));
|
|
5147
5171
|
var tmp_36 = this;
|
|
5148
5172
|
// Inline function 'org.kodein.di.instance' call
|
|
5149
5173
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5151,7 +5175,7 @@
|
|
|
5151
5175
|
var tmp$ret$18 = isInterface(tmp_37, TypeToken) ? tmp_37 : THROW_CCE();
|
|
5152
5176
|
var tmp_38 = Instance(di, tmp$ret$18, null);
|
|
5153
5177
|
var tmp_39 = KProperty1;
|
|
5154
|
-
tmp_36.
|
|
5178
|
+
tmp_36.vac_1 = tmp_38.a65(this, getPropertyCallableRef('toClientEventsObserver', 1, tmp_39, ServerGameStoreContract$_get_toClientEventsObserver_$ref_nkgv3p(), null));
|
|
5155
5179
|
var tmp_40 = this;
|
|
5156
5180
|
// Inline function 'org.kodein.di.instance' call
|
|
5157
5181
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5159,7 +5183,7 @@
|
|
|
5159
5183
|
var tmp$ret$20 = isInterface(tmp_41, TypeToken) ? tmp_41 : THROW_CCE();
|
|
5160
5184
|
var tmp_42 = Instance(di, tmp$ret$20, null);
|
|
5161
5185
|
var tmp_43 = KProperty1;
|
|
5162
|
-
tmp_40.
|
|
5186
|
+
tmp_40.wac_1 = tmp_42.a65(this, getPropertyCallableRef('fromClientEventsObserver', 1, tmp_43, ServerGameStoreContract$_get_fromClientEventsObserver_$ref_v1j2bg(), null));
|
|
5163
5187
|
var tmp_44 = this;
|
|
5164
5188
|
// Inline function 'org.kodein.di.instance' call
|
|
5165
5189
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5167,7 +5191,7 @@
|
|
|
5167
5191
|
var tmp$ret$22 = isInterface(tmp_45, TypeToken) ? tmp_45 : THROW_CCE();
|
|
5168
5192
|
var tmp_46 = Instance(di, tmp$ret$22, null);
|
|
5169
5193
|
var tmp_47 = KProperty1;
|
|
5170
|
-
tmp_44.
|
|
5194
|
+
tmp_44.xac_1 = tmp_46.a65(this, getPropertyCallableRef('dealerConfig', 1, tmp_47, ServerGameStoreContract$_get_dealerConfig_$ref_mdo2zp(), null));
|
|
5171
5195
|
var tmp_48 = this;
|
|
5172
5196
|
// Inline function 'org.kodein.di.instance' call
|
|
5173
5197
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5175,7 +5199,7 @@
|
|
|
5175
5199
|
var tmp$ret$24 = isInterface(tmp_49, TypeToken) ? tmp_49 : THROW_CCE();
|
|
5176
5200
|
var tmp_50 = Instance(di, tmp$ret$24, null);
|
|
5177
5201
|
var tmp_51 = KProperty1;
|
|
5178
|
-
tmp_48.
|
|
5202
|
+
tmp_48.yac_1 = tmp_50.a65(this, getPropertyCallableRef('poolProvider', 1, tmp_51, ServerGameStoreContract$_get_poolProvider_$ref_4pfoc3(), null));
|
|
5179
5203
|
var tmp_52 = this;
|
|
5180
5204
|
// Inline function 'org.kodein.di.instance' call
|
|
5181
5205
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5183,20 +5207,20 @@
|
|
|
5183
5207
|
var tmp$ret$26 = isInterface(tmp_53, TypeToken) ? tmp_53 : THROW_CCE();
|
|
5184
5208
|
var tmp_54 = Instance(di, tmp$ret$26, null);
|
|
5185
5209
|
var tmp_55 = KProperty1;
|
|
5186
|
-
tmp_52.
|
|
5210
|
+
tmp_52.zac_1 = tmp_54.a65(this, getPropertyCallableRef('cardsDealerProvider', 1, tmp_55, ServerGameStoreContract$_get_cardsDealerProvider_$ref_ipxqoj(), null));
|
|
5187
5211
|
}
|
|
5188
|
-
protoOf(ServerGameStoreContract).
|
|
5189
|
-
return plus(plus(plus(plus(plus(this.
|
|
5212
|
+
protoOf(ServerGameStoreContract).g98 = function () {
|
|
5213
|
+
return plus(plus(plus(plus(plus(this.hac_1.g98(), this.kac_1.g98()), this.iac_1.g98()), this.jac_1.g98()), this.lac_1.g98()), listOf_0([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl(this)), playerConnectionUpdateReducer()]));
|
|
5190
5214
|
};
|
|
5191
|
-
protoOf(ServerGameStoreContract).
|
|
5192
|
-
var tmp = this.
|
|
5215
|
+
protoOf(ServerGameStoreContract).h98 = function () {
|
|
5216
|
+
var tmp = this.hac_1.h98();
|
|
5193
5217
|
var tmp_0;
|
|
5194
5218
|
if (_get_serverConfig__rk2g06(this).finishGameWhenNotLiveStrategy.equals(FinishGameWhenNotLiveStrategy_ALL_REPLACED_WITH_BOT_getInstance())) {
|
|
5195
5219
|
tmp_0 = checkBotsMiddleware(_get_logger__rkp4sl(this));
|
|
5196
5220
|
} else {
|
|
5197
5221
|
tmp_0 = null;
|
|
5198
5222
|
}
|
|
5199
|
-
var tmp_1 = plus(plus(plus(plus(plus(tmp, listOfNotNull(tmp_0)), this.
|
|
5223
|
+
var tmp_1 = plus(plus(plus(plus(plus(tmp, listOfNotNull(tmp_0)), this.kac_1.h98()), this.iac_1.h98()), this.jac_1.h98()), this.lac_1.h98());
|
|
5200
5224
|
var tmp_2 = playerConnectionUpdateMiddleware(_get_logger__rkp4sl(this), _get_playerConnectionInteractor__si6cxf_0(this));
|
|
5201
5225
|
var tmp_3 = playerReconnectionTimeoutMiddleware(_get_playerConnectionInteractor__si6cxf_0(this));
|
|
5202
5226
|
var tmp_4;
|
|
@@ -5205,7 +5229,7 @@
|
|
|
5205
5229
|
} else {
|
|
5206
5230
|
tmp_4 = null;
|
|
5207
5231
|
}
|
|
5208
|
-
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))).
|
|
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))).n9a(), finishingGameWhenCantStartNewMiddleware()]));
|
|
5209
5233
|
var tmp_6 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this), _get_logger__rkp4sl(this));
|
|
5210
5234
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
5211
5235
|
var tmp1_logger = _get_logger__rkp4sl(this);
|
|
@@ -5256,7 +5280,7 @@
|
|
|
5256
5280
|
return this.y6h(store, next, action);
|
|
5257
5281
|
};
|
|
5258
5282
|
function ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
5259
|
-
this.
|
|
5283
|
+
this.dad_1 = this$0;
|
|
5260
5284
|
}
|
|
5261
5285
|
protoOf(ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5262
5286
|
return action instanceof MechanicAction;
|
|
@@ -5267,17 +5291,17 @@
|
|
|
5267
5291
|
// Inline function 'kotlin.with' call
|
|
5268
5292
|
var tmp;
|
|
5269
5293
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
5270
|
-
var tmp0 = this.
|
|
5271
|
-
var tmp2 = action_0.
|
|
5272
|
-
var tmp4 = action_0.
|
|
5294
|
+
var tmp0 = this.dad_1;
|
|
5295
|
+
var tmp2 = action_0.n94_1;
|
|
5296
|
+
var tmp4 = action_0.p94_1;
|
|
5273
5297
|
// Inline function 'kotlin.collections.map' call
|
|
5274
|
-
var this_0 = action_0.
|
|
5298
|
+
var this_0 = action_0.q94_1;
|
|
5275
5299
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5276
5300
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
5277
5301
|
var _iterator__ex2g4s = this_0.l();
|
|
5278
5302
|
while (_iterator__ex2g4s.m()) {
|
|
5279
5303
|
var item = _iterator__ex2g4s.n();
|
|
5280
|
-
var tmp$ret$0 = to(item.n66_1,
|
|
5304
|
+
var tmp$ret$0 = to(item.n66_1, this.dad_1.cad_1.yab(item.isBot, item.n66_1, get_serverStatePayload_0(state).connectedPlayers).n67_1);
|
|
5281
5305
|
destination.j(tmp$ret$0);
|
|
5282
5306
|
}
|
|
5283
5307
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
@@ -5307,7 +5331,7 @@
|
|
|
5307
5331
|
var _iterator__ex2g4s_2 = destination_1.l();
|
|
5308
5332
|
while (_iterator__ex2g4s_2.m()) {
|
|
5309
5333
|
var element_0 = _iterator__ex2g4s_2.n();
|
|
5310
|
-
var tmp0_aid = tmp0.
|
|
5334
|
+
var tmp0_aid = tmp0.bad_1.h6e();
|
|
5311
5335
|
// Inline function 'kotlin.collections.map' call
|
|
5312
5336
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5313
5337
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -5329,15 +5353,15 @@
|
|
|
5329
5353
|
tmp = destination_2;
|
|
5330
5354
|
} else {
|
|
5331
5355
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
5332
|
-
var tmp0_0 = this.
|
|
5356
|
+
var tmp0_0 = this.dad_1;
|
|
5333
5357
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5334
|
-
var
|
|
5335
|
-
var sendToPlayer_0 = new RoomActionPayload(tmp0_0.
|
|
5358
|
+
var tableId = state.c6s().id;
|
|
5359
|
+
var sendToPlayer_0 = new RoomActionPayload(tmp0_0.bad_1.h6e(), tableId, null);
|
|
5336
5360
|
var tmp$ret$21 = mapToClient_18(action_0, sendToPlayer_0);
|
|
5337
5361
|
tmp = listOfNotNull(tmp$ret$21);
|
|
5338
5362
|
} else {
|
|
5339
5363
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
5340
|
-
var tmp0_1 = this.
|
|
5364
|
+
var tmp0_1 = this.dad_1;
|
|
5341
5365
|
var tmp2_0 = action_0.table.id;
|
|
5342
5366
|
var tmp4_0 = action_0.gameCreatorPlayerId;
|
|
5343
5367
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -5377,7 +5401,7 @@
|
|
|
5377
5401
|
var _iterator__ex2g4s_7 = destination_6.l();
|
|
5378
5402
|
while (_iterator__ex2g4s_7.m()) {
|
|
5379
5403
|
var element_2 = _iterator__ex2g4s_7.n();
|
|
5380
|
-
var tmp0_aid_0 = tmp0_1.
|
|
5404
|
+
var tmp0_aid_0 = tmp0_1.bad_1.h6e();
|
|
5381
5405
|
// Inline function 'kotlin.collections.map' call
|
|
5382
5406
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5383
5407
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -5399,49 +5423,48 @@
|
|
|
5399
5423
|
tmp = destination_7;
|
|
5400
5424
|
} else {
|
|
5401
5425
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
5402
|
-
var tmp0_2 = this.
|
|
5426
|
+
var tmp0_2 = this.dad_1;
|
|
5403
5427
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5404
|
-
var
|
|
5405
|
-
var sendToPlayer_2 = new RoomActionPayload(tmp0_2.
|
|
5428
|
+
var tableId_0 = state.c6s().id;
|
|
5429
|
+
var sendToPlayer_2 = new RoomActionPayload(tmp0_2.bad_1.h6e(), tableId_0, null);
|
|
5406
5430
|
var tmp$ret$44 = mapToClient_16(action_0, sendToPlayer_2);
|
|
5407
5431
|
tmp = listOfNotNull(tmp$ret$44);
|
|
5408
5432
|
} else {
|
|
5409
5433
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
5410
|
-
var tmp0_3 = this.
|
|
5434
|
+
var tmp0_3 = this.dad_1;
|
|
5411
5435
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5412
|
-
var
|
|
5413
|
-
var sendToPlayer_3 = new RoomActionPayload(tmp0_3.
|
|
5436
|
+
var tableId_1 = state.c6s().id;
|
|
5437
|
+
var sendToPlayer_3 = new RoomActionPayload(tmp0_3.bad_1.h6e(), tableId_1, null);
|
|
5414
5438
|
var tmp$ret$46 = mapToClient_15(action_0, sendToPlayer_3);
|
|
5415
5439
|
tmp = listOfNotNull(tmp$ret$46);
|
|
5416
5440
|
} else {
|
|
5417
5441
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
5418
|
-
var tmp0_4 = this.
|
|
5442
|
+
var tmp0_4 = this.dad_1;
|
|
5419
5443
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5420
|
-
var
|
|
5421
|
-
var sendToPlayer_4 = new RoomActionPayload(tmp0_4.
|
|
5444
|
+
var tableId_2 = state.c6s().id;
|
|
5445
|
+
var sendToPlayer_4 = new RoomActionPayload(tmp0_4.bad_1.h6e(), tableId_2, null);
|
|
5422
5446
|
var tmp$ret$48 = mapToClient_14(action_0, sendToPlayer_4);
|
|
5423
5447
|
tmp = listOfNotNull(tmp$ret$48);
|
|
5424
5448
|
} else {
|
|
5425
5449
|
if (action_0 instanceof ErrorAction) {
|
|
5426
|
-
var tmp0_5 = this.
|
|
5450
|
+
var tmp0_5 = this.dad_1;
|
|
5427
5451
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5428
|
-
var
|
|
5429
|
-
var sendToPlayer_5 = new RoomActionPayload(tmp0_5.
|
|
5452
|
+
var tableId_3 = state.c6s().id;
|
|
5453
|
+
var sendToPlayer_5 = new RoomActionPayload(tmp0_5.bad_1.h6e(), tableId_3, null);
|
|
5430
5454
|
var tmp$ret$50 = mapToClient_13(action_0, sendToPlayer_5);
|
|
5431
5455
|
tmp = listOfNotNull(tmp$ret$50);
|
|
5432
5456
|
} else {
|
|
5433
5457
|
if (action_0 instanceof SceneMechanicAction) {
|
|
5434
|
-
var tmp0_6 = this.
|
|
5458
|
+
var tmp0_6 = this.dad_1;
|
|
5459
|
+
var tmp2_1 = state.c6s().id;
|
|
5460
|
+
var tmp4_1 = state.c6s().playersConnections;
|
|
5435
5461
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
5436
|
-
var table_4 = state.c6s();
|
|
5437
|
-
var tmp2_1 = table_4.id;
|
|
5438
|
-
var tmp4_1 = getGameCreator(table_4.players).playerId;
|
|
5439
5462
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
5440
|
-
var
|
|
5463
|
+
var gameCreatorPlayerId = getGameCreator(state.c6s().players).playerId;
|
|
5441
5464
|
// Inline function 'kotlin.collections.filter' call
|
|
5442
5465
|
// Inline function 'kotlin.collections.filterTo' call
|
|
5443
5466
|
var destination_9 = ArrayList_init_$Create$_0();
|
|
5444
|
-
var _iterator__ex2g4s_9 =
|
|
5467
|
+
var _iterator__ex2g4s_9 = tmp4_1.l();
|
|
5445
5468
|
while (_iterator__ex2g4s_9.m()) {
|
|
5446
5469
|
var element_3 = _iterator__ex2g4s_9.n();
|
|
5447
5470
|
if (element_3.ne_1.isLive) {
|
|
@@ -5464,17 +5487,17 @@
|
|
|
5464
5487
|
var _iterator__ex2g4s_11 = destination_10.l();
|
|
5465
5488
|
while (_iterator__ex2g4s_11.m()) {
|
|
5466
5489
|
var element_4 = _iterator__ex2g4s_11.n();
|
|
5467
|
-
var tmp0_aid_1 = tmp0_6.
|
|
5490
|
+
var tmp0_aid_1 = tmp0_6.bad_1.h6e();
|
|
5468
5491
|
// Inline function 'kotlin.collections.map' call
|
|
5469
5492
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5470
|
-
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(
|
|
5471
|
-
var _iterator__ex2g4s_12 =
|
|
5493
|
+
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_1, 10));
|
|
5494
|
+
var _iterator__ex2g4s_12 = tmp4_1.l();
|
|
5472
5495
|
while (_iterator__ex2g4s_12.m()) {
|
|
5473
5496
|
var item_6 = _iterator__ex2g4s_12.n();
|
|
5474
5497
|
var tmp$ret$58 = item_6.me_1;
|
|
5475
5498
|
destination_12.j(tmp$ret$58);
|
|
5476
5499
|
}
|
|
5477
|
-
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tmp2_1,
|
|
5500
|
+
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tmp2_1, gameCreatorPlayerId, element_4, destination_12);
|
|
5478
5501
|
var tmp0_safe_receiver_1 = mapToClient_12(action_0, sendToPlayer_6);
|
|
5479
5502
|
if (tmp0_safe_receiver_1 == null)
|
|
5480
5503
|
null;
|
|
@@ -5486,17 +5509,16 @@
|
|
|
5486
5509
|
tmp = destination_11;
|
|
5487
5510
|
} else {
|
|
5488
5511
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
5489
|
-
var tmp0_7 = this.
|
|
5512
|
+
var tmp0_7 = this.dad_1;
|
|
5513
|
+
var tmp2_2 = state.c6s().id;
|
|
5514
|
+
var tmp4_2 = state.c6s().playersConnections;
|
|
5490
5515
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
5491
|
-
var table_5 = state.c6s();
|
|
5492
|
-
var tmp2_2 = table_5.id;
|
|
5493
|
-
var tmp4_2 = getGameCreator(table_5.players).playerId;
|
|
5494
5516
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
5495
|
-
var
|
|
5517
|
+
var gameCreatorPlayerId_0 = getGameCreator(state.c6s().players).playerId;
|
|
5496
5518
|
// Inline function 'kotlin.collections.filter' call
|
|
5497
5519
|
// Inline function 'kotlin.collections.filterTo' call
|
|
5498
5520
|
var destination_13 = ArrayList_init_$Create$_0();
|
|
5499
|
-
var _iterator__ex2g4s_13 =
|
|
5521
|
+
var _iterator__ex2g4s_13 = tmp4_2.l();
|
|
5500
5522
|
while (_iterator__ex2g4s_13.m()) {
|
|
5501
5523
|
var element_5 = _iterator__ex2g4s_13.n();
|
|
5502
5524
|
if (element_5.ne_1.isLive) {
|
|
@@ -5519,17 +5541,17 @@
|
|
|
5519
5541
|
var _iterator__ex2g4s_15 = destination_14.l();
|
|
5520
5542
|
while (_iterator__ex2g4s_15.m()) {
|
|
5521
5543
|
var element_6 = _iterator__ex2g4s_15.n();
|
|
5522
|
-
var tmp0_aid_2 = tmp0_7.
|
|
5544
|
+
var tmp0_aid_2 = tmp0_7.bad_1.h6e();
|
|
5523
5545
|
// Inline function 'kotlin.collections.map' call
|
|
5524
5546
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5525
|
-
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(
|
|
5526
|
-
var _iterator__ex2g4s_16 =
|
|
5547
|
+
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_2, 10));
|
|
5548
|
+
var _iterator__ex2g4s_16 = tmp4_2.l();
|
|
5527
5549
|
while (_iterator__ex2g4s_16.m()) {
|
|
5528
5550
|
var item_8 = _iterator__ex2g4s_16.n();
|
|
5529
5551
|
var tmp$ret$77 = item_8.me_1;
|
|
5530
5552
|
destination_16.j(tmp$ret$77);
|
|
5531
5553
|
}
|
|
5532
|
-
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tmp2_2,
|
|
5554
|
+
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tmp2_2, gameCreatorPlayerId_0, element_6, destination_16);
|
|
5533
5555
|
var tmp0_safe_receiver_2 = mapToClient_11(action_0, sendToPlayer_7);
|
|
5534
5556
|
if (tmp0_safe_receiver_2 == null)
|
|
5535
5557
|
null;
|
|
@@ -5541,17 +5563,16 @@
|
|
|
5541
5563
|
tmp = destination_15;
|
|
5542
5564
|
} else {
|
|
5543
5565
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
5544
|
-
var tmp0_8 = this.
|
|
5566
|
+
var tmp0_8 = this.dad_1;
|
|
5567
|
+
var tmp2_3 = state.c6s().id;
|
|
5568
|
+
var tmp4_3 = state.c6s().playersConnections;
|
|
5545
5569
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
5546
|
-
var table_6 = state.c6s();
|
|
5547
|
-
var tmp2_3 = table_6.id;
|
|
5548
|
-
var tmp4_3 = getGameCreator(table_6.players).playerId;
|
|
5549
5570
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
5550
|
-
var
|
|
5571
|
+
var gameCreatorPlayerId_1 = getGameCreator(state.c6s().players).playerId;
|
|
5551
5572
|
// Inline function 'kotlin.collections.filter' call
|
|
5552
5573
|
// Inline function 'kotlin.collections.filterTo' call
|
|
5553
5574
|
var destination_17 = ArrayList_init_$Create$_0();
|
|
5554
|
-
var _iterator__ex2g4s_17 =
|
|
5575
|
+
var _iterator__ex2g4s_17 = tmp4_3.l();
|
|
5555
5576
|
while (_iterator__ex2g4s_17.m()) {
|
|
5556
5577
|
var element_7 = _iterator__ex2g4s_17.n();
|
|
5557
5578
|
if (element_7.ne_1.isLive) {
|
|
@@ -5574,19 +5595,19 @@
|
|
|
5574
5595
|
var _iterator__ex2g4s_19 = destination_18.l();
|
|
5575
5596
|
while (_iterator__ex2g4s_19.m()) {
|
|
5576
5597
|
var element_8 = _iterator__ex2g4s_19.n();
|
|
5577
|
-
var tmp0_aid_3 = tmp0_8.
|
|
5598
|
+
var tmp0_aid_3 = tmp0_8.bad_1.h6e();
|
|
5578
5599
|
// Inline function 'kotlin.collections.map' call
|
|
5579
5600
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5580
|
-
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(
|
|
5581
|
-
var _iterator__ex2g4s_20 =
|
|
5601
|
+
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp4_3, 10));
|
|
5602
|
+
var _iterator__ex2g4s_20 = tmp4_3.l();
|
|
5582
5603
|
while (_iterator__ex2g4s_20.m()) {
|
|
5583
5604
|
var item_10 = _iterator__ex2g4s_20.n();
|
|
5584
5605
|
var tmp$ret$96 = item_10.me_1;
|
|
5585
5606
|
destination_20.j(tmp$ret$96);
|
|
5586
5607
|
}
|
|
5587
|
-
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3,
|
|
5608
|
+
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3, gameCreatorPlayerId_1, element_8, destination_20);
|
|
5588
5609
|
var tmp_0;
|
|
5589
|
-
if (this.
|
|
5610
|
+
if (this.dad_1.aad_1.supportBackwardActions && getPlayer(state.c6s().players, sendToPlayer_8.d7h_1).p6v_1.a70_1) {
|
|
5590
5611
|
tmp_0 = null;
|
|
5591
5612
|
} else {
|
|
5592
5613
|
tmp_0 = mapToClient_10(action_0, sendToPlayer_8);
|
|
@@ -5602,81 +5623,81 @@
|
|
|
5602
5623
|
tmp = destination_19;
|
|
5603
5624
|
} else {
|
|
5604
5625
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
5605
|
-
var tmp0_9 = this.
|
|
5606
|
-
var tmp2_4 = state.c6s();
|
|
5626
|
+
var tmp0_9 = this.dad_1;
|
|
5627
|
+
var tmp2_4 = state.c6s().id;
|
|
5607
5628
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5608
|
-
var exceptPlayerId = this.
|
|
5609
|
-
var sendToPlayer_9 = new RoomActionPayload(tmp0_9.
|
|
5629
|
+
var exceptPlayerId = this.dad_1.aad_1.supportBackwardActions ? action_0.g95_1 : null;
|
|
5630
|
+
var sendToPlayer_9 = new RoomActionPayload(tmp0_9.bad_1.h6e(), tmp2_4, exceptPlayerId);
|
|
5610
5631
|
var tmp$ret$109 = mapToClient_9(action_0, sendToPlayer_9);
|
|
5611
5632
|
tmp = listOfNotNull(tmp$ret$109);
|
|
5612
5633
|
} else {
|
|
5613
5634
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
5614
|
-
var tmp0_10 = this.
|
|
5615
|
-
var tmp2_5 = state.c6s();
|
|
5635
|
+
var tmp0_10 = this.dad_1;
|
|
5636
|
+
var tmp2_5 = state.c6s().id;
|
|
5616
5637
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5617
|
-
var exceptPlayerId_0 = this.
|
|
5618
|
-
var sendToPlayer_10 = new RoomActionPayload(tmp0_10.
|
|
5638
|
+
var exceptPlayerId_0 = this.dad_1.aad_1.supportBackwardActions ? action_0.n90_1 : null;
|
|
5639
|
+
var sendToPlayer_10 = new RoomActionPayload(tmp0_10.bad_1.h6e(), tmp2_5, exceptPlayerId_0);
|
|
5619
5640
|
var tmp$ret$111 = mapToClient_8(action_0, sendToPlayer_10);
|
|
5620
5641
|
tmp = listOfNotNull(tmp$ret$111);
|
|
5621
5642
|
} else {
|
|
5622
5643
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
5623
|
-
var tmp0_11 = this.
|
|
5644
|
+
var tmp0_11 = this.dad_1;
|
|
5624
5645
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5625
|
-
var
|
|
5626
|
-
var sendToPlayer_11 = new RoomActionPayload(tmp0_11.
|
|
5646
|
+
var tableId_4 = state.c6s().id;
|
|
5647
|
+
var sendToPlayer_11 = new RoomActionPayload(tmp0_11.bad_1.h6e(), tableId_4, null);
|
|
5627
5648
|
var tmp$ret$113 = mapToClient_7(action_0, sendToPlayer_11);
|
|
5628
5649
|
tmp = listOfNotNull(tmp$ret$113);
|
|
5629
5650
|
} else {
|
|
5630
5651
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
5631
|
-
var tmp0_12 = this.
|
|
5632
|
-
var tmp2_6 = state.c6s();
|
|
5652
|
+
var tmp0_12 = this.dad_1;
|
|
5653
|
+
var tmp2_6 = state.c6s().id;
|
|
5633
5654
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5634
|
-
var exceptPlayerId_1 = this.
|
|
5635
|
-
var sendToPlayer_12 = new RoomActionPayload(tmp0_12.
|
|
5655
|
+
var exceptPlayerId_1 = this.dad_1.aad_1.supportBackwardActions ? action_0.m95_1 : null;
|
|
5656
|
+
var sendToPlayer_12 = new RoomActionPayload(tmp0_12.bad_1.h6e(), tmp2_6, exceptPlayerId_1);
|
|
5636
5657
|
var tmp$ret$115 = mapToClient_6(action_0, sendToPlayer_12);
|
|
5637
5658
|
tmp = listOfNotNull(tmp$ret$115);
|
|
5638
5659
|
} else {
|
|
5639
5660
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
5640
|
-
var tmp0_13 = this.
|
|
5641
|
-
var tmp2_7 = state.c6s();
|
|
5661
|
+
var tmp0_13 = this.dad_1;
|
|
5662
|
+
var tmp2_7 = state.c6s().id;
|
|
5642
5663
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5643
|
-
var exceptPlayerId_2 = this.
|
|
5644
|
-
var sendToPlayer_13 = new RoomActionPayload(tmp0_13.
|
|
5664
|
+
var exceptPlayerId_2 = this.dad_1.aad_1.supportBackwardActions ? action_0.t90_1 : null;
|
|
5665
|
+
var sendToPlayer_13 = new RoomActionPayload(tmp0_13.bad_1.h6e(), tmp2_7, exceptPlayerId_2);
|
|
5645
5666
|
var tmp$ret$117 = mapToClient_5(action_0, sendToPlayer_13);
|
|
5646
5667
|
tmp = listOfNotNull(tmp$ret$117);
|
|
5647
5668
|
} else {
|
|
5648
5669
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
5649
|
-
var tmp0_14 = this.
|
|
5670
|
+
var tmp0_14 = this.dad_1;
|
|
5650
5671
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5651
|
-
var
|
|
5652
|
-
var sendToPlayer_14 = new RoomActionPayload(tmp0_14.
|
|
5672
|
+
var tableId_5 = state.c6s().id;
|
|
5673
|
+
var sendToPlayer_14 = new RoomActionPayload(tmp0_14.bad_1.h6e(), tableId_5, null);
|
|
5653
5674
|
var tmp$ret$119 = mapToClient_4(action_0, sendToPlayer_14);
|
|
5654
5675
|
tmp = listOfNotNull(tmp$ret$119);
|
|
5655
5676
|
} else {
|
|
5656
5677
|
if (action_0 instanceof TakeAllRemainingCardsMechanicAction) {
|
|
5657
|
-
var tmp0_15 = this.
|
|
5658
|
-
var tmp2_8 = state.c6s();
|
|
5678
|
+
var tmp0_15 = this.dad_1;
|
|
5679
|
+
var tmp2_8 = state.c6s().id;
|
|
5659
5680
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5660
|
-
var exceptPlayerId_3 = this.
|
|
5661
|
-
var sendToPlayer_15 = new RoomActionPayload(tmp0_15.
|
|
5681
|
+
var exceptPlayerId_3 = this.dad_1.aad_1.supportBackwardActions ? action_0.o95_1 : null;
|
|
5682
|
+
var sendToPlayer_15 = new RoomActionPayload(tmp0_15.bad_1.h6e(), tmp2_8, exceptPlayerId_3);
|
|
5662
5683
|
var tmp$ret$121 = mapToClient_3(action_0, sendToPlayer_15);
|
|
5663
5684
|
tmp = listOfNotNull(tmp$ret$121);
|
|
5664
5685
|
} else {
|
|
5665
5686
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
5666
|
-
var tmp0_16 = this.
|
|
5687
|
+
var tmp0_16 = this.dad_1;
|
|
5667
5688
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5668
|
-
var
|
|
5669
|
-
var sendToPlayer_16 = new RoomActionPayload(tmp0_16.
|
|
5689
|
+
var tableId_6 = state.c6s().id;
|
|
5690
|
+
var sendToPlayer_16 = new RoomActionPayload(tmp0_16.bad_1.h6e(), tableId_6, null);
|
|
5670
5691
|
var tmp$ret$123 = mapToClient_2(action_0, sendToPlayer_16);
|
|
5671
5692
|
tmp = listOfNotNull(tmp$ret$123);
|
|
5672
5693
|
} else {
|
|
5673
5694
|
if (action_0 instanceof MessageMechanicAction) {
|
|
5674
5695
|
var message = action_0.message;
|
|
5675
|
-
var tmp0_17 = this.
|
|
5676
|
-
var tmp2_9 = state.c6s();
|
|
5696
|
+
var tmp0_17 = this.dad_1;
|
|
5697
|
+
var tmp2_9 = state.c6s().id;
|
|
5677
5698
|
var tmp_1;
|
|
5678
5699
|
var tmp_2;
|
|
5679
|
-
if (this.
|
|
5700
|
+
if (this.dad_1.aad_1.supportBackwardActions) {
|
|
5680
5701
|
tmp_2 = isInterface(message, UserMessage);
|
|
5681
5702
|
} else {
|
|
5682
5703
|
tmp_2 = false;
|
|
@@ -5688,16 +5709,16 @@
|
|
|
5688
5709
|
}
|
|
5689
5710
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5690
5711
|
var exceptPlayerId_4 = tmp_1;
|
|
5691
|
-
var sendToPlayer_17 = new RoomActionPayload(tmp0_17.
|
|
5712
|
+
var sendToPlayer_17 = new RoomActionPayload(tmp0_17.bad_1.h6e(), tmp2_9, exceptPlayerId_4);
|
|
5692
5713
|
var tmp$ret$125 = mapToClient_1(action_0, sendToPlayer_17);
|
|
5693
5714
|
tmp = listOfNotNull(tmp$ret$125);
|
|
5694
5715
|
} else {
|
|
5695
5716
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
5696
|
-
var tmp0_18 = this.
|
|
5697
|
-
var tmp2_10 = state.c6s();
|
|
5717
|
+
var tmp0_18 = this.dad_1;
|
|
5718
|
+
var tmp2_10 = state.c6s().id;
|
|
5698
5719
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
5699
5720
|
var exceptPlayerId_5 = action_0.playerId;
|
|
5700
|
-
var sendToPlayer_18 = new RoomActionPayload(tmp0_18.
|
|
5721
|
+
var sendToPlayer_18 = new RoomActionPayload(tmp0_18.bad_1.h6e(), tmp2_10, exceptPlayerId_5);
|
|
5701
5722
|
var tmp$ret$127 = mapToClient_0(action_0, sendToPlayer_18);
|
|
5702
5723
|
tmp = listOfNotNull(tmp$ret$127);
|
|
5703
5724
|
} else {
|
|
@@ -5734,11 +5755,12 @@
|
|
|
5734
5755
|
protoOf(ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1).i6g = function (store, next, action) {
|
|
5735
5756
|
return this.y6h(store, next, action);
|
|
5736
5757
|
};
|
|
5737
|
-
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
5738
|
-
this.
|
|
5739
|
-
this.
|
|
5758
|
+
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider, playerConnectionInteractor) {
|
|
5759
|
+
this.aad_1 = logicConfig;
|
|
5760
|
+
this.bad_1 = idsProvider;
|
|
5761
|
+
this.cad_1 = playerConnectionInteractor;
|
|
5740
5762
|
}
|
|
5741
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
5763
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).n9a = function () {
|
|
5742
5764
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
5743
5765
|
return new ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1(this);
|
|
5744
5766
|
};
|
|
@@ -5747,8 +5769,8 @@
|
|
|
5747
5769
|
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(logger, playerConnectionInteractor);
|
|
5748
5770
|
}
|
|
5749
5771
|
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($logger, $playerConnectionInteractor) {
|
|
5750
|
-
this.
|
|
5751
|
-
this.
|
|
5772
|
+
this.ead_1 = $logger;
|
|
5773
|
+
this.fad_1 = $playerConnectionInteractor;
|
|
5752
5774
|
}
|
|
5753
5775
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5754
5776
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -5761,13 +5783,13 @@
|
|
|
5761
5783
|
if (!get_isCreated(state)) {
|
|
5762
5784
|
break $l$block_1;
|
|
5763
5785
|
}
|
|
5764
|
-
var player = getPlayer(state.c6s().players, tmp4.
|
|
5765
|
-
if (tmp4.
|
|
5786
|
+
var player = getPlayer(state.c6s().players, tmp4.v93_1);
|
|
5787
|
+
if (tmp4.u93_1.isVisibleDisconnectedReason) {
|
|
5766
5788
|
if (player.n6v_1.d69().n67_1.isDisconnecting) {
|
|
5767
5789
|
break $l$block_1;
|
|
5768
5790
|
}
|
|
5769
5791
|
if (player.n6v_1.d69().n67_1.isLeftPermanently) {
|
|
5770
|
-
this.
|
|
5792
|
+
this.ead_1.w('playerConnectionUpdateMiddleware', "player connection state can't be changed after [playerLeft] is invoked, " + tmp4.toString());
|
|
5771
5793
|
break $l$block_1;
|
|
5772
5794
|
}
|
|
5773
5795
|
}
|
|
@@ -5790,7 +5812,7 @@
|
|
|
5790
5812
|
var _iterator__ex2g4s_0 = destination.l();
|
|
5791
5813
|
while (_iterator__ex2g4s_0.m()) {
|
|
5792
5814
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
5793
|
-
if (element_0.
|
|
5815
|
+
if (element_0.gad_1 === tmp4.v93_1) {
|
|
5794
5816
|
if (found) {
|
|
5795
5817
|
tmp$ret$4 = null;
|
|
5796
5818
|
break $l$block_3;
|
|
@@ -5809,7 +5831,7 @@
|
|
|
5809
5831
|
if (!(reconnectionTimerTag == null)) {
|
|
5810
5832
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
5811
5833
|
}
|
|
5812
|
-
var actions = this.
|
|
5834
|
+
var actions = this.fad_1.wab(tmp4.u93_1, player.n6v_1.d69().n67_1, player, store.state.c6s(), tmp4.x93_1);
|
|
5813
5835
|
// Inline function 'kotlin.collections.forEach' call
|
|
5814
5836
|
var _iterator__ex2g4s_1 = actions.l();
|
|
5815
5837
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -5826,17 +5848,17 @@
|
|
|
5826
5848
|
return new playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5827
5849
|
}
|
|
5828
5850
|
function PlayerReconnectionWaitingTimerTag(playerId, state, previousState) {
|
|
5829
|
-
this.
|
|
5830
|
-
this.
|
|
5831
|
-
this.
|
|
5851
|
+
this.gad_1 = playerId;
|
|
5852
|
+
this.had_1 = state;
|
|
5853
|
+
this.iad_1 = previousState;
|
|
5832
5854
|
}
|
|
5833
5855
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
5834
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
5856
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.gad_1 + ', state=' + this.had_1.toString() + ', previousState=' + this.iad_1.toString() + ')';
|
|
5835
5857
|
};
|
|
5836
5858
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
5837
|
-
var result = getStringHashCode(this.
|
|
5838
|
-
result = imul(result, 31) + this.
|
|
5839
|
-
result = imul(result, 31) + this.
|
|
5859
|
+
var result = getStringHashCode(this.gad_1);
|
|
5860
|
+
result = imul(result, 31) + this.had_1.hashCode() | 0;
|
|
5861
|
+
result = imul(result, 31) + this.iad_1.hashCode() | 0;
|
|
5840
5862
|
return result;
|
|
5841
5863
|
};
|
|
5842
5864
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -5844,16 +5866,16 @@
|
|
|
5844
5866
|
return true;
|
|
5845
5867
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
5846
5868
|
return false;
|
|
5847
|
-
if (!(this.
|
|
5869
|
+
if (!(this.gad_1 === other.gad_1))
|
|
5848
5870
|
return false;
|
|
5849
|
-
if (!this.
|
|
5871
|
+
if (!this.had_1.equals(other.had_1))
|
|
5850
5872
|
return false;
|
|
5851
|
-
if (!this.
|
|
5873
|
+
if (!this.iad_1.equals(other.iad_1))
|
|
5852
5874
|
return false;
|
|
5853
5875
|
return true;
|
|
5854
5876
|
};
|
|
5855
5877
|
function playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5856
|
-
this.
|
|
5878
|
+
this.jad_1 = $playerConnectionInteractor;
|
|
5857
5879
|
}
|
|
5858
5880
|
protoOf(playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5859
5881
|
return action instanceof TimerTickAction;
|
|
@@ -5867,8 +5889,8 @@
|
|
|
5867
5889
|
var timerTag = tmp4.f6g_1;
|
|
5868
5890
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
5869
5891
|
var state = store.state;
|
|
5870
|
-
var player = getPlayer(state.c6s().players, timerTag.
|
|
5871
|
-
var actions = this.
|
|
5892
|
+
var player = getPlayer(state.c6s().players, timerTag.gad_1);
|
|
5893
|
+
var actions = this.jad_1.wab(timerTag.had_1, timerTag.iad_1, player, state.c6s(), true);
|
|
5872
5894
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5873
5895
|
if (!actions.r()) {
|
|
5874
5896
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -5890,7 +5912,7 @@
|
|
|
5890
5912
|
return new playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5891
5913
|
}
|
|
5892
5914
|
function playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5893
|
-
this.
|
|
5915
|
+
this.kad_1 = $playerConnectionInteractor;
|
|
5894
5916
|
}
|
|
5895
5917
|
protoOf(playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5896
5918
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -5914,11 +5936,11 @@
|
|
|
5914
5936
|
var _iterator__ex2g4s_0 = destination.l();
|
|
5915
5937
|
while (_iterator__ex2g4s_0.m()) {
|
|
5916
5938
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
5917
|
-
var tmp0_newConnectionState =
|
|
5939
|
+
var tmp0_newConnectionState = PlayerConnectionState_WAITING_getInstance();
|
|
5918
5940
|
var tmp1_previousConnectionState = element_0.n6v_1.d69().n67_1;
|
|
5919
5941
|
var tmp2_playerId = element_0.playerId;
|
|
5920
5942
|
// Inline function 'kotlin.collections.forEach' call
|
|
5921
|
-
var _iterator__ex2g4s_1 = this.
|
|
5943
|
+
var _iterator__ex2g4s_1 = this.kad_1.xab(tmp2_playerId, tmp0_newConnectionState, tmp1_previousConnectionState).l();
|
|
5922
5944
|
while (_iterator__ex2g4s_1.m()) {
|
|
5923
5945
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
5924
5946
|
store.dispatch(element_1);
|
|
@@ -5933,8 +5955,8 @@
|
|
|
5933
5955
|
return new sendToClientActionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, provider);
|
|
5934
5956
|
}
|
|
5935
5957
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
5936
|
-
this.
|
|
5937
|
-
this.
|
|
5958
|
+
this.tad_1 = $provider;
|
|
5959
|
+
this.uad_1 = $action;
|
|
5938
5960
|
CoroutineImpl.call(this, resultContinuation);
|
|
5939
5961
|
}
|
|
5940
5962
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, $completion) {
|
|
@@ -5955,7 +5977,7 @@
|
|
|
5955
5977
|
case 0:
|
|
5956
5978
|
this.t8_1 = 2;
|
|
5957
5979
|
this.s8_1 = 1;
|
|
5958
|
-
suspendResult = this.
|
|
5980
|
+
suspendResult = this.tad_1.qa9(this.uad_1, this);
|
|
5959
5981
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5960
5982
|
return suspendResult;
|
|
5961
5983
|
}
|
|
@@ -5978,8 +6000,8 @@
|
|
|
5978
6000
|
while (true);
|
|
5979
6001
|
};
|
|
5980
6002
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).d2d = function ($this$launchDefault, completion) {
|
|
5981
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
5982
|
-
i.
|
|
6003
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.tad_1, this.uad_1, completion);
|
|
6004
|
+
i.vad_1 = $this$launchDefault;
|
|
5983
6005
|
return i;
|
|
5984
6006
|
};
|
|
5985
6007
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -5991,15 +6013,15 @@
|
|
|
5991
6013
|
return l;
|
|
5992
6014
|
}
|
|
5993
6015
|
function sendToClientActionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $provider) {
|
|
5994
|
-
this.
|
|
5995
|
-
this.
|
|
6016
|
+
this.wad_1 = $asyncProvider;
|
|
6017
|
+
this.xad_1 = $provider;
|
|
5996
6018
|
}
|
|
5997
6019
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
5998
6020
|
return action instanceof ToClientAction;
|
|
5999
6021
|
};
|
|
6000
6022
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).y6h = function (store, next, action) {
|
|
6001
6023
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
6002
|
-
this.
|
|
6024
|
+
this.wad_1.m6c(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.xad_1, action_0, null));
|
|
6003
6025
|
next(action_0);
|
|
6004
6026
|
};
|
|
6005
6027
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).i6g = function (store, next, action) {
|
|
@@ -6010,11 +6032,11 @@
|
|
|
6010
6032
|
return new playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
6011
6033
|
}
|
|
6012
6034
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
6013
|
-
this.
|
|
6014
|
-
this.
|
|
6015
|
-
this.
|
|
6016
|
-
this.
|
|
6017
|
-
this.
|
|
6035
|
+
this.gae_1 = $store;
|
|
6036
|
+
this.hae_1 = $timerTag;
|
|
6037
|
+
this.iae_1 = $serverConfig;
|
|
6038
|
+
this.jae_1 = $logger;
|
|
6039
|
+
this.kae_1 = $action;
|
|
6018
6040
|
CoroutineImpl.call(this, resultContinuation);
|
|
6019
6041
|
}
|
|
6020
6042
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).c2d = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -6033,13 +6055,13 @@
|
|
|
6033
6055
|
var tmp = this.s8_1;
|
|
6034
6056
|
if (tmp === 0) {
|
|
6035
6057
|
this.t8_1 = 1;
|
|
6036
|
-
var table = this.
|
|
6037
|
-
var player = getPlayer(table.players, this.
|
|
6058
|
+
var table = this.gae_1.state.c6s();
|
|
6059
|
+
var player = getPlayer(table.players, this.hae_1.z65());
|
|
6038
6060
|
var connectionState = player.n6v_1.d69().n67_1;
|
|
6039
6061
|
var tmp_0;
|
|
6040
6062
|
switch (connectionState.q2_1) {
|
|
6041
6063
|
case 1:
|
|
6042
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.
|
|
6064
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, VOID, this.hae_1.j9h_1));
|
|
6043
6065
|
break;
|
|
6044
6066
|
case 6:
|
|
6045
6067
|
tmp_0 = emptyList();
|
|
@@ -6049,8 +6071,8 @@
|
|
|
6049
6071
|
case 3:
|
|
6050
6072
|
case 2:
|
|
6051
6073
|
var tmp_1;
|
|
6052
|
-
if (table.sceneInfo.k7g() && this.
|
|
6053
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.
|
|
6074
|
+
if (table.sceneInfo.k7g() && this.iae_1.closeIfBotsAtFinish) {
|
|
6075
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, VOID, this.hae_1.j9h_1);
|
|
6054
6076
|
} else {
|
|
6055
6077
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
6056
6078
|
}
|
|
@@ -6059,7 +6081,7 @@
|
|
|
6059
6081
|
break;
|
|
6060
6082
|
case 0:
|
|
6061
6083
|
case 7:
|
|
6062
|
-
this.
|
|
6084
|
+
this.jae_1.w('playerTurnTimeoutWhenHasConnectionMiddleware', "Can't support this state " + connectionState.toString() + ', ' + ('action:' + this.kae_1.toString()));
|
|
6063
6085
|
tmp_0 = emptyList();
|
|
6064
6086
|
break;
|
|
6065
6087
|
default:
|
|
@@ -6071,7 +6093,7 @@
|
|
|
6071
6093
|
var _iterator__ex2g4s = actions.l();
|
|
6072
6094
|
while (_iterator__ex2g4s.m()) {
|
|
6073
6095
|
var element = _iterator__ex2g4s.n();
|
|
6074
|
-
this.
|
|
6096
|
+
this.gae_1.dispatch(element);
|
|
6075
6097
|
}
|
|
6076
6098
|
}
|
|
6077
6099
|
return Unit_instance;
|
|
@@ -6085,8 +6107,8 @@
|
|
|
6085
6107
|
while (true);
|
|
6086
6108
|
};
|
|
6087
6109
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).d2d = function ($this$launchDefaultWithLock, completion) {
|
|
6088
|
-
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.
|
|
6089
|
-
i.
|
|
6110
|
+
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.gae_1, this.hae_1, this.iae_1, this.jae_1, this.kae_1, completion);
|
|
6111
|
+
i.lae_1 = $this$launchDefaultWithLock;
|
|
6090
6112
|
return i;
|
|
6091
6113
|
};
|
|
6092
6114
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -6098,9 +6120,9 @@
|
|
|
6098
6120
|
return l;
|
|
6099
6121
|
}
|
|
6100
6122
|
function playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
6101
|
-
this.
|
|
6102
|
-
this.
|
|
6103
|
-
this.
|
|
6123
|
+
this.mae_1 = $asyncProvider;
|
|
6124
|
+
this.nae_1 = $serverConfig;
|
|
6125
|
+
this.oae_1 = $logger;
|
|
6104
6126
|
}
|
|
6105
6127
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1).j6g = function (action) {
|
|
6106
6128
|
return action instanceof TimerTickAction;
|
|
@@ -6109,7 +6131,7 @@
|
|
|
6109
6131
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
6110
6132
|
var timerTag = action_0.f6g_1;
|
|
6111
6133
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
6112
|
-
this.
|
|
6134
|
+
this.mae_1.o6c(VOID, playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0(store, timerTag, this.nae_1, this.oae_1, action_0, null));
|
|
6113
6135
|
}
|
|
6114
6136
|
next(action_0);
|
|
6115
6137
|
};
|
|
@@ -6125,19 +6147,19 @@
|
|
|
6125
6147
|
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).j6g = function (action) {
|
|
6126
6148
|
return action instanceof UpdateServerConfigAction;
|
|
6127
6149
|
};
|
|
6128
|
-
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).
|
|
6150
|
+
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).s9j = function (state, action) {
|
|
6129
6151
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
6130
|
-
return state.
|
|
6152
|
+
return state.n93(VOID, get_serverStatePayload_0(state).copy(action_0.eac_1));
|
|
6131
6153
|
};
|
|
6132
6154
|
protoOf(serverConfigReducer$$inlined$reducerForActionType$1).z6h = function (state, action) {
|
|
6133
|
-
return this.
|
|
6155
|
+
return this.s9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6134
6156
|
};
|
|
6135
6157
|
function addRoomMetadata($this, _this__u8e3s4, gameId) {
|
|
6136
6158
|
_this__u8e3s4.metadata.addGame(gameId, new GameMetadata(gameId));
|
|
6137
6159
|
return _this__u8e3s4.metadata;
|
|
6138
6160
|
}
|
|
6139
6161
|
function Companion_5() {
|
|
6140
|
-
this.
|
|
6162
|
+
this.pae_1 = 'ServerMechanicLifecycleReducer';
|
|
6141
6163
|
}
|
|
6142
6164
|
var Companion_instance_15;
|
|
6143
6165
|
function Companion_getInstance_6() {
|
|
@@ -6145,50 +6167,31 @@
|
|
|
6145
6167
|
}
|
|
6146
6168
|
function ServerMechanicLifecycleReducer$onStart$lambda(this$0, $updatedServerPayload) {
|
|
6147
6169
|
return function (it) {
|
|
6148
|
-
|
|
6149
|
-
var tmp_0;
|
|
6150
|
-
if (it.isBot) {
|
|
6151
|
-
tmp_0 = Companion_instance_4.s67(PlayerConnectionState_LEFT_PERMANENTLY_getInstance());
|
|
6152
|
-
} else {
|
|
6153
|
-
var tmp_1;
|
|
6154
|
-
if (this$0.mae_1.waitForPlayerToConnectOnStart) {
|
|
6155
|
-
var tmp_2;
|
|
6156
|
-
if ($updatedServerPayload.connectedPlayers.u1(it.n66_1)) {
|
|
6157
|
-
tmp_2 = Companion_instance_4.s67(PlayerConnectionState_LIVE_getInstance());
|
|
6158
|
-
} else {
|
|
6159
|
-
tmp_2 = Companion_instance_4.s67(PlayerConnectionState_WAITING_getInstance());
|
|
6160
|
-
}
|
|
6161
|
-
tmp_1 = tmp_2;
|
|
6162
|
-
} else {
|
|
6163
|
-
tmp_1 = Companion_instance_4.s67(PlayerConnectionState_LIVE_getInstance());
|
|
6164
|
-
}
|
|
6165
|
-
tmp_0 = tmp_1;
|
|
6166
|
-
}
|
|
6167
|
-
return tmp.z68(tmp_0);
|
|
6170
|
+
return Companion_instance_4.z68(this$0.tae_1.yab(it.isBot, it.n66_1, $updatedServerPayload.connectedPlayers));
|
|
6168
6171
|
};
|
|
6169
6172
|
}
|
|
6170
|
-
function ServerMechanicLifecycleReducer(logger,
|
|
6173
|
+
function ServerMechanicLifecycleReducer(logger, connectionInteractor, tableLifecycleReducer, randomPoolProvider) {
|
|
6171
6174
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
6172
|
-
this.
|
|
6173
|
-
this.
|
|
6175
|
+
this.sae_1 = logger;
|
|
6176
|
+
this.tae_1 = connectionInteractor;
|
|
6174
6177
|
}
|
|
6175
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6176
|
-
this.lae_1.d('ServerMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
6177
|
-
var tableId = action.l94_1;
|
|
6178
|
+
protoOf(ServerMechanicLifecycleReducer).j9l = function (state, action) {
|
|
6178
6179
|
var serverState = get_serverStatePayload_0(state);
|
|
6180
|
+
this.sae_1.d('ServerMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance) + ', connectedPlayers: ' + toString(serverState.connectedPlayers), action);
|
|
6181
|
+
var tableId = action.n94_1;
|
|
6179
6182
|
var updatedServerPayload = serverState.copy(VOID, addRoomMetadata(this, serverState, tableId));
|
|
6180
6183
|
var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6181
|
-
var tmp0_$this = this.
|
|
6182
|
-
var tmp1_version = action.
|
|
6183
|
-
var tmp2_config = action.
|
|
6184
|
-
var tmp3_users = action.
|
|
6184
|
+
var tmp0_$this = this.k9l_1;
|
|
6185
|
+
var tmp1_version = action.o94_1;
|
|
6186
|
+
var tmp2_config = action.m94_1;
|
|
6187
|
+
var tmp3_users = action.q94_1;
|
|
6185
6188
|
var tmp4_spectators = action.spectators;
|
|
6186
|
-
var tmp5_gameCreatorPlayerId = action.
|
|
6187
|
-
var tmp7_tableOrNull = tmp0_$this.
|
|
6188
|
-
return state.
|
|
6189
|
+
var tmp5_gameCreatorPlayerId = action.p94_1;
|
|
6190
|
+
var tmp7_tableOrNull = tmp0_$this.s9m(tableId, tableId, tmp2_config, tmp1_version, tmp3_users, tmp4_spectators, tmp5_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(this, updatedServerPayload));
|
|
6191
|
+
return state.n93(tmp7_tableOrNull, updatedServerPayload, tmp6_gameLifecycleState);
|
|
6189
6192
|
};
|
|
6190
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6191
|
-
this.
|
|
6193
|
+
protoOf(ServerMechanicLifecycleReducer).h9l = function (state, action) {
|
|
6194
|
+
this.sae_1.d('ServerMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
6192
6195
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6193
6196
|
var tmp2_tableOrNull = action.table;
|
|
6194
6197
|
var tmp = Companion_instance_16;
|
|
@@ -6196,32 +6199,32 @@
|
|
|
6196
6199
|
var tmp_1 = action.reason;
|
|
6197
6200
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
6198
6201
|
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));
|
|
6199
|
-
return state.
|
|
6202
|
+
return state.n93(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
6200
6203
|
};
|
|
6201
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
6202
|
-
this.
|
|
6204
|
+
protoOf(ServerMechanicLifecycleReducer).i9l = function (state, action) {
|
|
6205
|
+
this.l9l_1.o58(action.previousGameId);
|
|
6203
6206
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6204
|
-
var tmp1_tableOrNull = this.
|
|
6207
|
+
var tmp1_tableOrNull = this.k9l_1.t9m(state.c6s(), action.gameId);
|
|
6205
6208
|
var tmp2_payload = get_serverStatePayload_0(state).copy(VOID, addRoomMetadata(this, get_serverStatePayload_0(state), action.gameId));
|
|
6206
|
-
return state.
|
|
6209
|
+
return state.n93(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState);
|
|
6207
6210
|
};
|
|
6208
6211
|
function spectatorsReducer(logger) {
|
|
6209
6212
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
6210
6213
|
return new spectatorsReducer$$inlined$reducerForActionType$1(logger);
|
|
6211
6214
|
}
|
|
6212
6215
|
function spectatorsReducer$$inlined$reducerForActionType$1($logger) {
|
|
6213
|
-
this.
|
|
6216
|
+
this.uae_1 = $logger;
|
|
6214
6217
|
}
|
|
6215
6218
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).j6g = function (action) {
|
|
6216
6219
|
return isInterface(action, SpectatorsAction);
|
|
6217
6220
|
};
|
|
6218
|
-
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).
|
|
6221
|
+
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).s9j = function (state, action) {
|
|
6219
6222
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
6220
6223
|
var table = state.c6s();
|
|
6221
6224
|
var tmp;
|
|
6222
6225
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
6223
6226
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
6224
|
-
var tmp0 = action_0.
|
|
6227
|
+
var tmp0 = action_0.fac_1;
|
|
6225
6228
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
6226
6229
|
var destination = ArrayList_init_$Create$_0();
|
|
6227
6230
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -6240,9 +6243,9 @@
|
|
|
6240
6243
|
var tmp_0;
|
|
6241
6244
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6242
6245
|
if (!sameSpectators.r()) {
|
|
6243
|
-
this.
|
|
6246
|
+
this.uae_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
6244
6247
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6245
|
-
var tmp0_0 = action_0.
|
|
6248
|
+
var tmp0_0 = action_0.fac_1;
|
|
6246
6249
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
6247
6250
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
6248
6251
|
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
@@ -6277,7 +6280,7 @@
|
|
|
6277
6280
|
}
|
|
6278
6281
|
tmp_0 = destination_0;
|
|
6279
6282
|
} else {
|
|
6280
|
-
tmp_0 = action_0.
|
|
6283
|
+
tmp_0 = action_0.fac_1;
|
|
6281
6284
|
}
|
|
6282
6285
|
// Inline function 'kotlin.collections.map' call
|
|
6283
6286
|
var this_0 = tmp_0;
|
|
@@ -6290,11 +6293,11 @@
|
|
|
6290
6293
|
destination_1.j(tmp$ret$13);
|
|
6291
6294
|
}
|
|
6292
6295
|
var spectatorsToAdd = toSet(destination_1);
|
|
6293
|
-
tmp = state.
|
|
6296
|
+
tmp = state.n93(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
6294
6297
|
} else {
|
|
6295
6298
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
6296
6299
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
6297
|
-
var tmp0_1 = action_0.
|
|
6300
|
+
var tmp0_1 = action_0.gac_1;
|
|
6298
6301
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
6299
6302
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
6300
6303
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -6313,9 +6316,9 @@
|
|
|
6313
6316
|
var tmp_2;
|
|
6314
6317
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6315
6318
|
if (!sameSpectators_0.r()) {
|
|
6316
|
-
this.
|
|
6319
|
+
this.uae_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
6317
6320
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6318
|
-
var tmp0_2 = action_0.
|
|
6321
|
+
var tmp0_2 = action_0.gac_1;
|
|
6319
6322
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
6320
6323
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
6321
6324
|
var _iterator__ex2g4s_4 = tmp0_2.l();
|
|
@@ -6350,7 +6353,7 @@
|
|
|
6350
6353
|
}
|
|
6351
6354
|
tmp_2 = destination_3;
|
|
6352
6355
|
} else {
|
|
6353
|
-
tmp_2 = action_0.
|
|
6356
|
+
tmp_2 = action_0.gac_1;
|
|
6354
6357
|
}
|
|
6355
6358
|
var spectatorsToRemove = toSet(tmp_2);
|
|
6356
6359
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -6387,7 +6390,7 @@
|
|
|
6387
6390
|
destination_4.j(element_5);
|
|
6388
6391
|
}
|
|
6389
6392
|
}
|
|
6390
|
-
tmp = state.
|
|
6393
|
+
tmp = state.n93(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
6391
6394
|
} else {
|
|
6392
6395
|
noWhenBranchMatchedException();
|
|
6393
6396
|
}
|
|
@@ -6395,7 +6398,7 @@
|
|
|
6395
6398
|
return tmp;
|
|
6396
6399
|
};
|
|
6397
6400
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).z6h = function (state, action) {
|
|
6398
|
-
return this.
|
|
6401
|
+
return this.s9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6399
6402
|
};
|
|
6400
6403
|
function playerConnectionUpdateReducer() {
|
|
6401
6404
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -6406,29 +6409,29 @@
|
|
|
6406
6409
|
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).j6g = function (action) {
|
|
6407
6410
|
return action instanceof PlayerConnectionUpdateAction;
|
|
6408
6411
|
};
|
|
6409
|
-
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).
|
|
6412
|
+
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).s9j = function (state, action) {
|
|
6410
6413
|
var action_0 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
6411
6414
|
var statePayload = get_serverStatePayload_0(state);
|
|
6412
6415
|
var tmp;
|
|
6413
|
-
if (action_0.
|
|
6414
|
-
tmp = state.
|
|
6416
|
+
if (action_0.u93_1.isLive) {
|
|
6417
|
+
tmp = state.n93(VOID, statePayload.copy(VOID, VOID, plus_0(statePayload.connectedPlayers, action_0.v93_1)));
|
|
6415
6418
|
} else {
|
|
6416
6419
|
tmp = state;
|
|
6417
6420
|
}
|
|
6418
6421
|
return tmp;
|
|
6419
6422
|
};
|
|
6420
6423
|
protoOf(playerConnectionUpdateReducer$$inlined$reducerForActionType$1).z6h = function (state, action) {
|
|
6421
|
-
return this.
|
|
6424
|
+
return this.s9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6422
6425
|
};
|
|
6423
6426
|
function Companion_6() {
|
|
6424
6427
|
}
|
|
6425
|
-
protoOf(Companion_6).
|
|
6428
|
+
protoOf(Companion_6).vae = function (config, metadata) {
|
|
6426
6429
|
return new ServerStatePayload(config, metadata, emptyList());
|
|
6427
6430
|
};
|
|
6428
6431
|
protoOf(Companion_6).initial = function (config, metadata, $super) {
|
|
6429
6432
|
config = config === VOID ? Companion_instance_10.initial(null) : config;
|
|
6430
6433
|
metadata = metadata === VOID ? new RoomMetadata() : metadata;
|
|
6431
|
-
return $super === VOID ? this.
|
|
6434
|
+
return $super === VOID ? this.vae(config, metadata) : $super.vae.call(this, config, metadata);
|
|
6432
6435
|
};
|
|
6433
6436
|
var Companion_instance_16;
|
|
6434
6437
|
function Companion_getInstance_7() {
|
|
@@ -6445,7 +6448,7 @@
|
|
|
6445
6448
|
protoOf(ServerStatePayload).t8m = function () {
|
|
6446
6449
|
return this.metadata;
|
|
6447
6450
|
};
|
|
6448
|
-
protoOf(ServerStatePayload).
|
|
6451
|
+
protoOf(ServerStatePayload).wae = function () {
|
|
6449
6452
|
return this.connectedPlayers;
|
|
6450
6453
|
};
|
|
6451
6454
|
protoOf(ServerStatePayload).oe = function () {
|
|
@@ -6457,14 +6460,14 @@
|
|
|
6457
6460
|
protoOf(ServerStatePayload).yl = function () {
|
|
6458
6461
|
return this.connectedPlayers;
|
|
6459
6462
|
};
|
|
6460
|
-
protoOf(ServerStatePayload).
|
|
6463
|
+
protoOf(ServerStatePayload).xae = function (config, metadata, connectedPlayers) {
|
|
6461
6464
|
return new ServerStatePayload(config, metadata, connectedPlayers);
|
|
6462
6465
|
};
|
|
6463
6466
|
protoOf(ServerStatePayload).copy = function (config, metadata, connectedPlayers, $super) {
|
|
6464
6467
|
config = config === VOID ? this.config : config;
|
|
6465
6468
|
metadata = metadata === VOID ? this.metadata : metadata;
|
|
6466
6469
|
connectedPlayers = connectedPlayers === VOID ? this.connectedPlayers : connectedPlayers;
|
|
6467
|
-
return $super === VOID ? this.
|
|
6470
|
+
return $super === VOID ? this.xae(config, metadata, connectedPlayers) : $super.xae.call(this, config, metadata, connectedPlayers);
|
|
6468
6471
|
};
|
|
6469
6472
|
protoOf(ServerStatePayload).toString = function () {
|
|
6470
6473
|
return 'ServerStatePayload(config=' + this.config.toString() + ', metadata=' + toString(this.metadata) + ', connectedPlayers=' + toString(this.connectedPlayers) + ')';
|
|
@@ -6512,7 +6515,7 @@
|
|
|
6512
6515
|
return new ServerLoggerKey(_this__u8e3s4.gameId);
|
|
6513
6516
|
}
|
|
6514
6517
|
function serverLoggerKeyFromPayload(_this__u8e3s4, payload) {
|
|
6515
|
-
var gameId = Companion_instance_5.
|
|
6518
|
+
var gameId = Companion_instance_5.u9o(payload);
|
|
6516
6519
|
var tmp;
|
|
6517
6520
|
if (!(gameId == null)) {
|
|
6518
6521
|
tmp = new ServerLoggerKey(gameId);
|
|
@@ -6529,14 +6532,14 @@
|
|
|
6529
6532
|
return new GameServerEngineControllerImpl(loggerCallback, randomOrgConfig);
|
|
6530
6533
|
}
|
|
6531
6534
|
function _get_logger__rkp4sl_0($this) {
|
|
6532
|
-
var tmp0 = $this.
|
|
6535
|
+
var tmp0 = $this.haf_1;
|
|
6533
6536
|
var tmp = KProperty1;
|
|
6534
6537
|
// Inline function 'kotlin.getValue' call
|
|
6535
6538
|
getPropertyCallableRef('logger', 1, tmp, GameServerEngineControllerImpl$_get_logger_$ref_b9j0th(), null);
|
|
6536
6539
|
return tmp0.x();
|
|
6537
6540
|
}
|
|
6538
6541
|
function _get_di__ndbzja($this) {
|
|
6539
|
-
var tmp0 = $this.
|
|
6542
|
+
var tmp0 = $this.iaf_1;
|
|
6540
6543
|
var tmp = KProperty1;
|
|
6541
6544
|
// Inline function 'kotlin.getValue' call
|
|
6542
6545
|
getPropertyCallableRef('di', 1, tmp, GameServerEngineControllerImpl$_get_di_$ref_cvlqo6(), null);
|
|
@@ -6553,8 +6556,8 @@
|
|
|
6553
6556
|
}
|
|
6554
6557
|
function createCallbackOutput($this, gameServer) {
|
|
6555
6558
|
var tmp;
|
|
6556
|
-
if (!($this.
|
|
6557
|
-
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.
|
|
6559
|
+
if (!($this.faf_1 == null)) {
|
|
6560
|
+
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.faf_1);
|
|
6558
6561
|
tmp = new CallbackWrapperLoggerOutput(tmp_0, GameServerEngineControllerImpl$createCallbackOutput$lambda(gameServer));
|
|
6559
6562
|
} else {
|
|
6560
6563
|
tmp = null;
|
|
@@ -6568,11 +6571,11 @@
|
|
|
6568
6571
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
6569
6572
|
return function () {
|
|
6570
6573
|
var tmp;
|
|
6571
|
-
if (this$0.
|
|
6574
|
+
if (this$0.faf_1 == null) {
|
|
6572
6575
|
tmp = null;
|
|
6573
6576
|
} else {
|
|
6574
6577
|
// Inline function 'kotlin.let' call
|
|
6575
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
6578
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.faf_1)]));
|
|
6576
6579
|
}
|
|
6577
6580
|
var tmp1_elvis_lhs = tmp;
|
|
6578
6581
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -6605,7 +6608,7 @@
|
|
|
6605
6608
|
tmp_0.d63(tmp$ret$3);
|
|
6606
6609
|
$this$DI.h5z(jsonModule());
|
|
6607
6610
|
$this$DI.h5z(serverHelpersModule());
|
|
6608
|
-
$this$DI.h5z(randomOrgModule(this$0.
|
|
6611
|
+
$this$DI.h5z(randomOrgModule(this$0.gaf_1));
|
|
6609
6612
|
return Unit_instance;
|
|
6610
6613
|
};
|
|
6611
6614
|
}
|
|
@@ -6681,16 +6684,16 @@
|
|
|
6681
6684
|
};
|
|
6682
6685
|
}
|
|
6683
6686
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1($reducer) {
|
|
6684
|
-
this.
|
|
6687
|
+
this.paf_1 = $reducer;
|
|
6685
6688
|
}
|
|
6686
6689
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).j6g = function (action) {
|
|
6687
6690
|
return isInterface(action, Action);
|
|
6688
6691
|
};
|
|
6689
|
-
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).
|
|
6690
|
-
return this.
|
|
6692
|
+
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).s9j = function (state, action) {
|
|
6693
|
+
return this.paf_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
6691
6694
|
};
|
|
6692
6695
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).z6h = function (state, action) {
|
|
6693
|
-
return this.
|
|
6696
|
+
return this.s9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
6694
6697
|
};
|
|
6695
6698
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($gameServer) {
|
|
6696
6699
|
return function () {
|
|
@@ -6770,7 +6773,7 @@
|
|
|
6770
6773
|
}
|
|
6771
6774
|
function GameServerEngineControllerImpl$createCallbackOutput$lambda($gameServer) {
|
|
6772
6775
|
return function (it) {
|
|
6773
|
-
var payload = Companion_instance_7.
|
|
6776
|
+
var payload = Companion_instance_7.g9n(it);
|
|
6774
6777
|
var tmp;
|
|
6775
6778
|
if (!(payload == null)) {
|
|
6776
6779
|
return payload;
|
|
@@ -6791,7 +6794,7 @@
|
|
|
6791
6794
|
// Inline function 'kotlin.let' call
|
|
6792
6795
|
$this$DI.h5z(tmp0_safe_receiver);
|
|
6793
6796
|
}
|
|
6794
|
-
$this$DI.h5z(dealerModule(this$0.randomPoolProvider, this$0.
|
|
6797
|
+
$this$DI.h5z(dealerModule(this$0.randomPoolProvider, this$0.gaf_1));
|
|
6795
6798
|
$this$DI.h5z(coreModule($coreConfig));
|
|
6796
6799
|
$this$DI.h5z(createGameServerDI($serverConfig, $logicConfig, $engineBotConfig, $dealerConfig, $ratingConfig, $externalReducers, $externalMiddlewares));
|
|
6797
6800
|
return Unit_instance;
|
|
@@ -6800,8 +6803,8 @@
|
|
|
6800
6803
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
6801
6804
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
6802
6805
|
production = production === VOID ? true : production;
|
|
6803
|
-
this.
|
|
6804
|
-
this.
|
|
6806
|
+
this.faf_1 = loggerCallback;
|
|
6807
|
+
this.gaf_1 = randomOrgConfig;
|
|
6805
6808
|
var tmp = AppEnvironment_getInstance();
|
|
6806
6809
|
var tmp_0;
|
|
6807
6810
|
if (production) {
|
|
@@ -6811,9 +6814,9 @@
|
|
|
6811
6814
|
}
|
|
6812
6815
|
tmp.g6m(tmp_0);
|
|
6813
6816
|
var tmp_1 = this;
|
|
6814
|
-
tmp_1.
|
|
6817
|
+
tmp_1.haf_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
6815
6818
|
var tmp_2 = this;
|
|
6816
|
-
tmp_2.
|
|
6819
|
+
tmp_2.iaf_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
6817
6820
|
var tmp_3 = this;
|
|
6818
6821
|
// Inline function 'org.kodein.di.instance' call
|
|
6819
6822
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -6822,7 +6825,7 @@
|
|
|
6822
6825
|
var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
6823
6826
|
var tmp_5 = Instance(this_0, tmp$ret$0, null);
|
|
6824
6827
|
var tmp_6 = KProperty1;
|
|
6825
|
-
tmp_3.
|
|
6828
|
+
tmp_3.jaf_1 = tmp_5.a65(this, getPropertyCallableRef('parser', 1, tmp_6, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w(), null));
|
|
6826
6829
|
var tmp_7 = this;
|
|
6827
6830
|
// Inline function 'org.kodein.di.instance' call
|
|
6828
6831
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -6831,7 +6834,7 @@
|
|
|
6831
6834
|
var tmp$ret$2 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
6832
6835
|
var tmp_9 = Instance(this_1, tmp$ret$2, null);
|
|
6833
6836
|
var tmp_10 = KProperty1;
|
|
6834
|
-
tmp_7.
|
|
6837
|
+
tmp_7.kaf_1 = tmp_9.a65(this, getPropertyCallableRef('helper', 1, tmp_10, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f(), null));
|
|
6835
6838
|
var tmp_11 = this;
|
|
6836
6839
|
// Inline function 'org.kodein.di.instance' call
|
|
6837
6840
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -6840,7 +6843,7 @@
|
|
|
6840
6843
|
var tmp$ret$4 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
6841
6844
|
var tmp_13 = Instance(this_2, tmp$ret$4, null);
|
|
6842
6845
|
var tmp_14 = KProperty1;
|
|
6843
|
-
tmp_11.
|
|
6846
|
+
tmp_11.laf_1 = tmp_13.a65(this, getPropertyCallableRef('serverHelper', 1, tmp_14, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre(), null));
|
|
6844
6847
|
var tmp_15 = this;
|
|
6845
6848
|
// Inline function 'org.kodein.di.instance' call
|
|
6846
6849
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -6849,7 +6852,7 @@
|
|
|
6849
6852
|
var tmp$ret$6 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
6850
6853
|
var tmp_17 = Instance(this_3, tmp$ret$6, null);
|
|
6851
6854
|
var tmp_18 = KProperty1;
|
|
6852
|
-
tmp_15.
|
|
6855
|
+
tmp_15.maf_1 = tmp_17.a65(this, getPropertyCallableRef('resources', 1, tmp_18, GameServerEngineControllerImpl$_get_resources_$ref_dt6416(), null));
|
|
6853
6856
|
var tmp_19 = this;
|
|
6854
6857
|
// Inline function 'org.kodein.di.instance' call
|
|
6855
6858
|
var this_4 = _get_di__ndbzja(this);
|
|
@@ -6858,7 +6861,7 @@
|
|
|
6858
6861
|
var tmp$ret$8 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
6859
6862
|
var tmp_21 = Instance(this_4, tmp$ret$8, null);
|
|
6860
6863
|
var tmp_22 = KProperty1;
|
|
6861
|
-
tmp_19.
|
|
6864
|
+
tmp_19.naf_1 = tmp_21.a65(this, getPropertyCallableRef('test', 1, tmp_22, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5(), null));
|
|
6862
6865
|
var tmp_23 = this;
|
|
6863
6866
|
// Inline function 'org.kodein.di.instance' call
|
|
6864
6867
|
var this_5 = _get_di__ndbzja(this);
|
|
@@ -6867,45 +6870,45 @@
|
|
|
6867
6870
|
var tmp$ret$10 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
6868
6871
|
var tmp_25 = Instance(this_5, tmp$ret$10, null);
|
|
6869
6872
|
var tmp_26 = KProperty1;
|
|
6870
|
-
tmp_23.
|
|
6873
|
+
tmp_23.oaf_1 = tmp_25.a65(this, getPropertyCallableRef('randomPoolProvider', 1, tmp_26, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl(), null));
|
|
6871
6874
|
}
|
|
6872
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6873
|
-
var tmp0 = this.
|
|
6875
|
+
protoOf(GameServerEngineControllerImpl).yae = function () {
|
|
6876
|
+
var tmp0 = this.jaf_1;
|
|
6874
6877
|
var tmp = KProperty1;
|
|
6875
6878
|
// Inline function 'kotlin.getValue' call
|
|
6876
6879
|
getPropertyCallableRef('parser', 1, tmp, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w_0(), null);
|
|
6877
6880
|
return tmp0.x();
|
|
6878
6881
|
};
|
|
6879
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6880
|
-
var tmp0 = this.
|
|
6882
|
+
protoOf(GameServerEngineControllerImpl).aaf = function () {
|
|
6883
|
+
var tmp0 = this.kaf_1;
|
|
6881
6884
|
var tmp = KProperty1;
|
|
6882
6885
|
// Inline function 'kotlin.getValue' call
|
|
6883
6886
|
getPropertyCallableRef('helper', 1, tmp, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f_0(), null);
|
|
6884
6887
|
return tmp0.x();
|
|
6885
6888
|
};
|
|
6886
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6887
|
-
var tmp0 = this.
|
|
6889
|
+
protoOf(GameServerEngineControllerImpl).baf = function () {
|
|
6890
|
+
var tmp0 = this.laf_1;
|
|
6888
6891
|
var tmp = KProperty1;
|
|
6889
6892
|
// Inline function 'kotlin.getValue' call
|
|
6890
6893
|
getPropertyCallableRef('serverHelper', 1, tmp, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre_0(), null);
|
|
6891
6894
|
return tmp0.x();
|
|
6892
6895
|
};
|
|
6893
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6894
|
-
var tmp0 = this.
|
|
6896
|
+
protoOf(GameServerEngineControllerImpl).caf = function () {
|
|
6897
|
+
var tmp0 = this.maf_1;
|
|
6895
6898
|
var tmp = KProperty1;
|
|
6896
6899
|
// Inline function 'kotlin.getValue' call
|
|
6897
6900
|
getPropertyCallableRef('resources', 1, tmp, GameServerEngineControllerImpl$_get_resources_$ref_dt6416_0(), null);
|
|
6898
6901
|
return tmp0.x();
|
|
6899
6902
|
};
|
|
6900
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6901
|
-
var tmp0 = this.
|
|
6903
|
+
protoOf(GameServerEngineControllerImpl).zae = function () {
|
|
6904
|
+
var tmp0 = this.naf_1;
|
|
6902
6905
|
var tmp = KProperty1;
|
|
6903
6906
|
// Inline function 'kotlin.getValue' call
|
|
6904
6907
|
getPropertyCallableRef('test', 1, tmp, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5_0(), null);
|
|
6905
6908
|
return tmp0.x();
|
|
6906
6909
|
};
|
|
6907
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6908
|
-
var tmp0 = this.
|
|
6910
|
+
protoOf(GameServerEngineControllerImpl).daf = function () {
|
|
6911
|
+
var tmp0 = this.oaf_1;
|
|
6909
6912
|
var tmp = KProperty1;
|
|
6910
6913
|
// Inline function 'kotlin.getValue' call
|
|
6911
6914
|
getPropertyCallableRef('randomPoolProvider', 1, tmp, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl_0(), null);
|
|
@@ -6917,7 +6920,7 @@
|
|
|
6917
6920
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
6918
6921
|
return this.createGameEngineWithLogic();
|
|
6919
6922
|
};
|
|
6920
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6923
|
+
protoOf(GameServerEngineControllerImpl).eaf = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig) {
|
|
6921
6924
|
var combinedLogger = Companion_instance_8.nx();
|
|
6922
6925
|
var gameServer = {_v: null};
|
|
6923
6926
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -6965,7 +6968,7 @@
|
|
|
6965
6968
|
function TestHelper() {
|
|
6966
6969
|
}
|
|
6967
6970
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
6968
|
-
var tmp0 = $this.
|
|
6971
|
+
var tmp0 = $this.saf_1;
|
|
6969
6972
|
var tmp = KProperty1;
|
|
6970
6973
|
// Inline function 'kotlin.getValue' call
|
|
6971
6974
|
getPropertyCallableRef('playerAnswerInteractor', 1, tmp, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy_0(), null);
|
|
@@ -6973,7 +6976,7 @@
|
|
|
6973
6976
|
}
|
|
6974
6977
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
6975
6978
|
return function ($this$singleton) {
|
|
6976
|
-
return this$0.
|
|
6979
|
+
return this$0.qaf_1;
|
|
6977
6980
|
};
|
|
6978
6981
|
}
|
|
6979
6982
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -7013,19 +7016,19 @@
|
|
|
7013
7016
|
return emptyMap();
|
|
7014
7017
|
}
|
|
7015
7018
|
function TestHelperImpl(logger) {
|
|
7016
|
-
this.
|
|
7019
|
+
this.qaf_1 = logger;
|
|
7017
7020
|
var tmp = this;
|
|
7018
7021
|
var tmp_0 = Companion_instance_6;
|
|
7019
|
-
tmp.
|
|
7022
|
+
tmp.raf_1 = tmp_0.o5z(VOID, TestHelperImpl$di$lambda(this));
|
|
7020
7023
|
var tmp_1 = this;
|
|
7021
7024
|
// Inline function 'org.kodein.di.instance' call
|
|
7022
|
-
var this_0 = this.
|
|
7025
|
+
var this_0 = this.raf_1;
|
|
7023
7026
|
// Inline function 'org.kodein.type.generic' call
|
|
7024
7027
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
7025
7028
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
7026
7029
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
7027
7030
|
var tmp_4 = KProperty1;
|
|
7028
|
-
tmp_1.
|
|
7031
|
+
tmp_1.saf_1 = tmp_3.a65(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_4, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy(), null));
|
|
7029
7032
|
}
|
|
7030
7033
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
7031
7034
|
return _get_playerAnswerInteractor__msggz1(this).a8u(playerId, table, botConfig);
|
|
@@ -7033,7 +7036,7 @@
|
|
|
7033
7036
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
7034
7037
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
7035
7038
|
if (isInterface(mechanicAction, NextPlayerTurnAction)) {
|
|
7036
|
-
var tmp0 = mechanicAction.
|
|
7039
|
+
var tmp0 = mechanicAction.c97();
|
|
7037
7040
|
var tmp$ret$0;
|
|
7038
7041
|
$l$block_0: {
|
|
7039
7042
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -7065,7 +7068,7 @@
|
|
|
7065
7068
|
};
|
|
7066
7069
|
protoOf(TestHelperImpl).getPlayerAnswerFromMechanicAction = function (table, currentPlayerId, action, botConfig) {
|
|
7067
7070
|
if (isInterface(action, NextPlayerTurnAction)) {
|
|
7068
|
-
var tmp0 = action.
|
|
7071
|
+
var tmp0 = action.c97();
|
|
7069
7072
|
var tmp$ret$0;
|
|
7070
7073
|
$l$block_0: {
|
|
7071
7074
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -7098,14 +7101,14 @@
|
|
|
7098
7101
|
function RoomMetadata() {
|
|
7099
7102
|
var tmp = this;
|
|
7100
7103
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7101
|
-
tmp.
|
|
7104
|
+
tmp.taf_1 = LinkedHashMap_init_$Create$();
|
|
7102
7105
|
this.extras = {};
|
|
7103
|
-
this.extras = this.
|
|
7106
|
+
this.extras = this.taf_1;
|
|
7104
7107
|
}
|
|
7105
|
-
protoOf(RoomMetadata).
|
|
7108
|
+
protoOf(RoomMetadata).uaf = function () {
|
|
7106
7109
|
return this.extras;
|
|
7107
7110
|
};
|
|
7108
|
-
protoOf(RoomMetadata).
|
|
7111
|
+
protoOf(RoomMetadata).uaf = function () {
|
|
7109
7112
|
return this.extras;
|
|
7110
7113
|
};
|
|
7111
7114
|
protoOf(RoomMetadata).getGame = function (gameId) {
|
|
@@ -7123,7 +7126,7 @@
|
|
|
7123
7126
|
};
|
|
7124
7127
|
protoOf(RoomMetadata).addGame = function (gameId, game) {
|
|
7125
7128
|
// Inline function 'kotlin.collections.set' call
|
|
7126
|
-
this.
|
|
7129
|
+
this.taf_1.f2(gameId, game);
|
|
7127
7130
|
};
|
|
7128
7131
|
function GameMetadata(gameId) {
|
|
7129
7132
|
this.gameId = gameId;
|
|
@@ -7132,7 +7135,7 @@
|
|
|
7132
7135
|
protoOf(GameMetadata).d54 = function () {
|
|
7133
7136
|
return this.gameId;
|
|
7134
7137
|
};
|
|
7135
|
-
protoOf(GameMetadata).
|
|
7138
|
+
protoOf(GameMetadata).uaf = function () {
|
|
7136
7139
|
return this.extras;
|
|
7137
7140
|
};
|
|
7138
7141
|
function serverHelpersModule() {
|
|
@@ -7238,25 +7241,25 @@
|
|
|
7238
7241
|
return this.v6f();
|
|
7239
7242
|
});
|
|
7240
7243
|
protoOf(PlayerReconnectionWaitingTimerTag).ignoreValidation = ignoreValidation;
|
|
7241
|
-
protoOf(PlayerReconnectionWaitingTimerTag).
|
|
7244
|
+
protoOf(PlayerReconnectionWaitingTimerTag).x92 = ignoreTimerResetValidation;
|
|
7242
7245
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
7243
7246
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
7244
|
-
return this.
|
|
7247
|
+
return this.yae();
|
|
7245
7248
|
});
|
|
7246
7249
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
7247
|
-
return this.
|
|
7250
|
+
return this.aaf();
|
|
7248
7251
|
});
|
|
7249
7252
|
defineProp(protoOf(GameServerEngineControllerImpl), 'serverHelper', function () {
|
|
7250
|
-
return this.
|
|
7253
|
+
return this.baf();
|
|
7251
7254
|
});
|
|
7252
7255
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
7253
|
-
return this.
|
|
7256
|
+
return this.caf();
|
|
7254
7257
|
});
|
|
7255
7258
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
7256
|
-
return this.
|
|
7259
|
+
return this.zae();
|
|
7257
7260
|
});
|
|
7258
7261
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
7259
|
-
return this.
|
|
7262
|
+
return this.daf();
|
|
7260
7263
|
});
|
|
7261
7264
|
//endregion
|
|
7262
7265
|
//region block: init
|