raspberry_games_server_game_logic 1.8.336 → 1.8.338
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +9727 -9705
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +3 -2
- package/Logic_Debertz-game_server.js +672 -672
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -328,15 +328,15 @@
|
|
|
328
328
|
tmp = spectators;
|
|
329
329
|
}
|
|
330
330
|
spectators = tmp;
|
|
331
|
-
return this.
|
|
331
|
+
return this.b9x(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
332
332
|
}
|
|
333
333
|
function roomOnDelete(newRid, $super) {
|
|
334
334
|
newRid = newRid === VOID ? null : newRid;
|
|
335
|
-
return this.
|
|
335
|
+
return this.c9x(newRid);
|
|
336
336
|
}
|
|
337
337
|
function shutdown(reason, roomId, $super) {
|
|
338
338
|
roomId = roomId === VOID ? null : roomId;
|
|
339
|
-
return this.
|
|
339
|
+
return this.d9x(reason, roomId);
|
|
340
340
|
}
|
|
341
341
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
342
342
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
391
391
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
392
392
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
393
|
-
return this.
|
|
393
|
+
return this.ta1(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
394
394
|
}
|
|
395
395
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
396
396
|
initMetadataForClass(_no_name_provided__qut3iv_7, VOID, VOID, VOID, [Reducer]);
|
|
@@ -401,17 +401,17 @@
|
|
|
401
401
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
402
402
|
//endregion
|
|
403
403
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
404
|
-
this.
|
|
404
|
+
this.u9i_1 = $subscriber;
|
|
405
405
|
CoroutineImpl.call(this, resultContinuation);
|
|
406
406
|
}
|
|
407
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
408
|
-
var tmp = this.
|
|
407
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9i = function (it, $completion) {
|
|
408
|
+
var tmp = this.x9i(it, $completion);
|
|
409
409
|
tmp.l9_1 = Unit_instance;
|
|
410
410
|
tmp.m9_1 = null;
|
|
411
411
|
return tmp.r9();
|
|
412
412
|
};
|
|
413
413
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).ba = function (p1, $completion) {
|
|
414
|
-
return this.
|
|
414
|
+
return this.w9i(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
415
415
|
};
|
|
416
416
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).r9 = function () {
|
|
417
417
|
var suspendResult = this.l9_1;
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
var tmp = this.j9_1;
|
|
421
421
|
if (tmp === 0) {
|
|
422
422
|
this.k9_1 = 1;
|
|
423
|
-
this.
|
|
423
|
+
this.u9i_1(this.v9i_1);
|
|
424
424
|
return Unit_instance;
|
|
425
425
|
} else if (tmp === 1) {
|
|
426
426
|
throw this.m9_1;
|
|
@@ -431,21 +431,21 @@
|
|
|
431
431
|
}
|
|
432
432
|
while (true);
|
|
433
433
|
};
|
|
434
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
435
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
436
|
-
i.
|
|
434
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).x9i = function (it, completion) {
|
|
435
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.u9i_1, completion);
|
|
436
|
+
i.v9i_1 = it;
|
|
437
437
|
return i;
|
|
438
438
|
};
|
|
439
439
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
440
440
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
441
441
|
var l = function (it, $completion) {
|
|
442
|
-
return i.
|
|
442
|
+
return i.w9i(it, $completion);
|
|
443
443
|
};
|
|
444
444
|
l.$arity = 1;
|
|
445
445
|
return l;
|
|
446
446
|
}
|
|
447
447
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
448
|
-
this.
|
|
448
|
+
this.g9j_1 = $$this$unsafeFlow;
|
|
449
449
|
CoroutineImpl.call(this, resultContinuation);
|
|
450
450
|
}
|
|
451
451
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda).k1i = function (value, $completion) {
|
|
@@ -466,12 +466,12 @@
|
|
|
466
466
|
case 0:
|
|
467
467
|
this.k9_1 = 2;
|
|
468
468
|
var tmp_0 = this;
|
|
469
|
-
tmp_0.
|
|
469
|
+
tmp_0.i9j_1 = this.g9j_1;
|
|
470
470
|
var tmp_1 = this;
|
|
471
|
-
tmp_1.
|
|
471
|
+
tmp_1.j9j_1 = this.h9j_1;
|
|
472
472
|
this.j9_1 = 1;
|
|
473
|
-
var it = this.
|
|
474
|
-
suspendResult = this.
|
|
473
|
+
var it = this.j9j_1;
|
|
474
|
+
suspendResult = this.i9j_1.r18(new ActionsStateUpdate(it), this);
|
|
475
475
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
476
476
|
return suspendResult;
|
|
477
477
|
}
|
|
@@ -494,8 +494,8 @@
|
|
|
494
494
|
while (true);
|
|
495
495
|
};
|
|
496
496
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda).l1i = function (value, completion) {
|
|
497
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda(this.
|
|
498
|
-
i.
|
|
497
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda(this.g9j_1, completion);
|
|
498
|
+
i.h9j_1 = value;
|
|
499
499
|
return i;
|
|
500
500
|
};
|
|
501
501
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -508,8 +508,8 @@
|
|
|
508
508
|
}
|
|
509
509
|
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
510
510
|
CoroutineImpl.call(this, resultContinuation);
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
511
|
+
this.s9j_1 = _this__u8e3s4;
|
|
512
|
+
this.t9j_1 = collector;
|
|
513
513
|
}
|
|
514
514
|
protoOf($collectCOROUTINE$0).r9 = function () {
|
|
515
515
|
var suspendResult = this.l9_1;
|
|
@@ -520,10 +520,10 @@
|
|
|
520
520
|
case 0:
|
|
521
521
|
this.k9_1 = 2;
|
|
522
522
|
var tmp_0 = this;
|
|
523
|
-
tmp_0.
|
|
523
|
+
tmp_0.u9j_1 = this.t9j_1;
|
|
524
524
|
this.j9_1 = 1;
|
|
525
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0(this.
|
|
526
|
-
suspendResult = this.
|
|
525
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0(this.u9j_1, null);
|
|
526
|
+
suspendResult = this.s9j_1.v9j_1.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
527
527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
528
528
|
return suspendResult;
|
|
529
529
|
}
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
while (true);
|
|
547
547
|
};
|
|
548
548
|
function _no_name_provided__qut3iv($this) {
|
|
549
|
-
this.
|
|
549
|
+
this.v9j_1 = $this;
|
|
550
550
|
}
|
|
551
551
|
protoOf(_no_name_provided__qut3iv).s18 = function (collector, $completion) {
|
|
552
552
|
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
@@ -558,18 +558,18 @@
|
|
|
558
558
|
return this.s18(collector, $completion);
|
|
559
559
|
};
|
|
560
560
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda($table, this$0, resultContinuation) {
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
561
|
+
this.e9k_1 = $table;
|
|
562
|
+
this.f9k_1 = this$0;
|
|
563
563
|
CoroutineImpl.call(this, resultContinuation);
|
|
564
564
|
}
|
|
565
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).
|
|
566
|
-
var tmp = this.
|
|
565
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).h9k = function ($this$flow, $completion) {
|
|
566
|
+
var tmp = this.i9k($this$flow, $completion);
|
|
567
567
|
tmp.l9_1 = Unit_instance;
|
|
568
568
|
tmp.m9_1 = null;
|
|
569
569
|
return tmp.r9();
|
|
570
570
|
};
|
|
571
571
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).ba = function (p1, $completion) {
|
|
572
|
-
return this.
|
|
572
|
+
return this.h9k((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
573
573
|
};
|
|
574
574
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).r9 = function () {
|
|
575
575
|
var suspendResult = this.l9_1;
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
case 0:
|
|
581
581
|
this.k9_1 = 3;
|
|
582
582
|
this.j9_1 = 1;
|
|
583
|
-
suspendResult = this.
|
|
583
|
+
suspendResult = this.g9k_1.r18(new TableStateUpdate(this.e9k_1), this);
|
|
584
584
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
585
585
|
return suspendResult;
|
|
586
586
|
}
|
|
@@ -588,8 +588,8 @@
|
|
|
588
588
|
continue $sm;
|
|
589
589
|
case 1:
|
|
590
590
|
this.j9_1 = 2;
|
|
591
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.
|
|
592
|
-
suspendResult = emitAll(this.
|
|
591
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.f9k_1).y8m(), new Long(3000, 0));
|
|
592
|
+
suspendResult = emitAll(this.g9k_1, new _no_name_provided__qut3iv(this_0), this);
|
|
593
593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
594
594
|
return suspendResult;
|
|
595
595
|
}
|
|
@@ -611,32 +611,32 @@
|
|
|
611
611
|
}
|
|
612
612
|
while (true);
|
|
613
613
|
};
|
|
614
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).
|
|
615
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda(this.
|
|
616
|
-
i.
|
|
614
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).i9k = function ($this$flow, completion) {
|
|
615
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda(this.e9k_1, this.f9k_1, completion);
|
|
616
|
+
i.g9k_1 = $this$flow;
|
|
617
617
|
return i;
|
|
618
618
|
};
|
|
619
619
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
620
620
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda($table, this$0, resultContinuation);
|
|
621
621
|
var l = function ($this$flow, $completion) {
|
|
622
|
-
return i.
|
|
622
|
+
return i.h9k($this$flow, $completion);
|
|
623
623
|
};
|
|
624
624
|
l.$arity = 1;
|
|
625
625
|
return l;
|
|
626
626
|
}
|
|
627
627
|
function GameServer$subscribeServerStateUpdate$slambda$slambda(this$0, resultContinuation) {
|
|
628
|
-
this.
|
|
628
|
+
this.r9k_1 = this$0;
|
|
629
629
|
CoroutineImpl.call(this, resultContinuation);
|
|
630
630
|
}
|
|
631
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
632
|
-
var tmp = this.
|
|
631
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).u9k = function ($this$transformLatest, it, $completion) {
|
|
632
|
+
var tmp = this.v9k($this$transformLatest, it, $completion);
|
|
633
633
|
tmp.l9_1 = Unit_instance;
|
|
634
634
|
tmp.m9_1 = null;
|
|
635
635
|
return tmp.r9();
|
|
636
636
|
};
|
|
637
637
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).ca = function (p1, p2, $completion) {
|
|
638
638
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
639
|
-
return this.
|
|
639
|
+
return this.u9k(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
640
640
|
};
|
|
641
641
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).r9 = function () {
|
|
642
642
|
var suspendResult = this.l9_1;
|
|
@@ -647,8 +647,8 @@
|
|
|
647
647
|
case 0:
|
|
648
648
|
this.k9_1 = 2;
|
|
649
649
|
this.j9_1 = 1;
|
|
650
|
-
var table = this.
|
|
651
|
-
suspendResult = emitAll(this.
|
|
650
|
+
var table = this.t9k_1;
|
|
651
|
+
suspendResult = emitAll(this.s9k_1, flow(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda_0(table, this.r9k_1, null)), this);
|
|
652
652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
653
653
|
return suspendResult;
|
|
654
654
|
}
|
|
@@ -670,32 +670,32 @@
|
|
|
670
670
|
}
|
|
671
671
|
while (true);
|
|
672
672
|
};
|
|
673
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
674
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.
|
|
675
|
-
i.
|
|
676
|
-
i.
|
|
673
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).v9k = function ($this$transformLatest, it, completion) {
|
|
674
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.r9k_1, completion);
|
|
675
|
+
i.s9k_1 = $this$transformLatest;
|
|
676
|
+
i.t9k_1 = it;
|
|
677
677
|
return i;
|
|
678
678
|
};
|
|
679
679
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_0(this$0, resultContinuation) {
|
|
680
680
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this$0, resultContinuation);
|
|
681
681
|
var l = function ($this$transformLatest, it, $completion) {
|
|
682
|
-
return i.
|
|
682
|
+
return i.u9k($this$transformLatest, it, $completion);
|
|
683
683
|
};
|
|
684
684
|
l.$arity = 2;
|
|
685
685
|
return l;
|
|
686
686
|
}
|
|
687
687
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_1($subscriber, resultContinuation) {
|
|
688
|
-
this.
|
|
688
|
+
this.e9l_1 = $subscriber;
|
|
689
689
|
CoroutineImpl.call(this, resultContinuation);
|
|
690
690
|
}
|
|
691
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).
|
|
692
|
-
var tmp = this.
|
|
691
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).g9l = function (it, $completion) {
|
|
692
|
+
var tmp = this.h9l(it, $completion);
|
|
693
693
|
tmp.l9_1 = Unit_instance;
|
|
694
694
|
tmp.m9_1 = null;
|
|
695
695
|
return tmp.r9();
|
|
696
696
|
};
|
|
697
697
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).ba = function (p1, $completion) {
|
|
698
|
-
return this.
|
|
698
|
+
return this.g9l((!(p1 == null) ? isInterface(p1, ServerStateUpdate) : false) ? p1 : THROW_CCE(), $completion);
|
|
699
699
|
};
|
|
700
700
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).r9 = function () {
|
|
701
701
|
var suspendResult = this.l9_1;
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
var tmp = this.j9_1;
|
|
705
705
|
if (tmp === 0) {
|
|
706
706
|
this.k9_1 = 1;
|
|
707
|
-
this.
|
|
707
|
+
this.e9l_1(this.f9l_1);
|
|
708
708
|
return Unit_instance;
|
|
709
709
|
} else if (tmp === 1) {
|
|
710
710
|
throw this.m9_1;
|
|
@@ -715,21 +715,21 @@
|
|
|
715
715
|
}
|
|
716
716
|
while (true);
|
|
717
717
|
};
|
|
718
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).
|
|
719
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1(this.
|
|
720
|
-
i.
|
|
718
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).h9l = function (it, completion) {
|
|
719
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1(this.e9l_1, completion);
|
|
720
|
+
i.f9l_1 = it;
|
|
721
721
|
return i;
|
|
722
722
|
};
|
|
723
723
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_2($subscriber, resultContinuation) {
|
|
724
724
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1($subscriber, resultContinuation);
|
|
725
725
|
var l = function (it, $completion) {
|
|
726
|
-
return i.
|
|
726
|
+
return i.g9l(it, $completion);
|
|
727
727
|
};
|
|
728
728
|
l.$arity = 1;
|
|
729
729
|
return l;
|
|
730
730
|
}
|
|
731
731
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
732
|
-
this.
|
|
732
|
+
this.q9l_1 = $$this$unsafeFlow;
|
|
733
733
|
CoroutineImpl.call(this, resultContinuation);
|
|
734
734
|
}
|
|
735
735
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).k1i = function (value, $completion) {
|
|
@@ -750,12 +750,12 @@
|
|
|
750
750
|
case 0:
|
|
751
751
|
this.k9_1 = 2;
|
|
752
752
|
var tmp_0 = this;
|
|
753
|
-
tmp_0.
|
|
753
|
+
tmp_0.s9l_1 = this.q9l_1;
|
|
754
754
|
var tmp_1 = this;
|
|
755
|
-
tmp_1.
|
|
755
|
+
tmp_1.t9l_1 = this.r9l_1;
|
|
756
756
|
this.j9_1 = 1;
|
|
757
|
-
var state = this.
|
|
758
|
-
suspendResult = this.
|
|
757
|
+
var state = this.t9l_1;
|
|
758
|
+
suspendResult = this.s9l_1.r18(state.s6r().gameInfo.roundNumberTotal, this);
|
|
759
759
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
760
760
|
return suspendResult;
|
|
761
761
|
}
|
|
@@ -778,8 +778,8 @@
|
|
|
778
778
|
while (true);
|
|
779
779
|
};
|
|
780
780
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).l1i = function (value, completion) {
|
|
781
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
782
|
-
i.
|
|
781
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.q9l_1, completion);
|
|
782
|
+
i.r9l_1 = value;
|
|
783
783
|
return i;
|
|
784
784
|
};
|
|
785
785
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -792,8 +792,8 @@
|
|
|
792
792
|
}
|
|
793
793
|
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
794
794
|
CoroutineImpl.call(this, resultContinuation);
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
795
|
+
this.c9m_1 = _this__u8e3s4;
|
|
796
|
+
this.d9m_1 = collector;
|
|
797
797
|
}
|
|
798
798
|
protoOf($collectCOROUTINE$1).r9 = function () {
|
|
799
799
|
var suspendResult = this.l9_1;
|
|
@@ -804,10 +804,10 @@
|
|
|
804
804
|
case 0:
|
|
805
805
|
this.k9_1 = 2;
|
|
806
806
|
var tmp_0 = this;
|
|
807
|
-
tmp_0.
|
|
807
|
+
tmp_0.e9m_1 = this.d9m_1;
|
|
808
808
|
this.j9_1 = 1;
|
|
809
|
-
var tmp_1 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0(this.
|
|
810
|
-
suspendResult = this.
|
|
809
|
+
var tmp_1 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0(this.e9m_1, null);
|
|
810
|
+
suspendResult = this.c9m_1.f9m_1.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
811
811
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
812
812
|
return suspendResult;
|
|
813
813
|
}
|
|
@@ -830,7 +830,7 @@
|
|
|
830
830
|
while (true);
|
|
831
831
|
};
|
|
832
832
|
function GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
833
|
-
this.
|
|
833
|
+
this.o9m_1 = $$this$unsafeFlow;
|
|
834
834
|
CoroutineImpl.call(this, resultContinuation);
|
|
835
835
|
}
|
|
836
836
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda).k1i = function (value, $completion) {
|
|
@@ -854,33 +854,33 @@
|
|
|
854
854
|
continue $sm;
|
|
855
855
|
case 1:
|
|
856
856
|
var tmp_0 = this;
|
|
857
|
-
tmp_0.
|
|
857
|
+
tmp_0.r9m_1 = this.o9m_1;
|
|
858
858
|
var tmp_1 = this;
|
|
859
|
-
tmp_1.
|
|
859
|
+
tmp_1.s9m_1 = this.p9m_1;
|
|
860
860
|
var tmp_2 = this;
|
|
861
|
-
tmp_2.
|
|
862
|
-
if (this.
|
|
863
|
-
this.
|
|
861
|
+
tmp_2.t9m_1 = this.s9m_1.b6r_1;
|
|
862
|
+
if (this.t9m_1 == null) {
|
|
863
|
+
this.q9m_1 = Unit_instance;
|
|
864
864
|
this.j9_1 = 4;
|
|
865
865
|
var tmp_3 = this;
|
|
866
866
|
continue $sm;
|
|
867
867
|
} else {
|
|
868
|
-
this.
|
|
868
|
+
this.u9m_1 = this.t9m_1;
|
|
869
869
|
this.j9_1 = 2;
|
|
870
870
|
continue $sm;
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
case 2:
|
|
874
|
-
this.
|
|
874
|
+
this.v9m_1 = this.u9m_1;
|
|
875
875
|
this.j9_1 = 3;
|
|
876
|
-
suspendResult = this.
|
|
876
|
+
suspendResult = this.r9m_1.r18(this.v9m_1, this);
|
|
877
877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
878
878
|
return suspendResult;
|
|
879
879
|
}
|
|
880
880
|
|
|
881
881
|
continue $sm;
|
|
882
882
|
case 3:
|
|
883
|
-
this.
|
|
883
|
+
this.q9m_1 = suspendResult;
|
|
884
884
|
if (false) {
|
|
885
885
|
this.j9_1 = 1;
|
|
886
886
|
continue $sm;
|
|
@@ -905,8 +905,8 @@
|
|
|
905
905
|
while (true);
|
|
906
906
|
};
|
|
907
907
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda).l1i = function (value, completion) {
|
|
908
|
-
var i = new GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.
|
|
909
|
-
i.
|
|
908
|
+
var i = new GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.o9m_1, completion);
|
|
909
|
+
i.p9m_1 = value;
|
|
910
910
|
return i;
|
|
911
911
|
};
|
|
912
912
|
function GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -919,8 +919,8 @@
|
|
|
919
919
|
}
|
|
920
920
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
921
921
|
CoroutineImpl.call(this, resultContinuation);
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
922
|
+
this.e9n_1 = _this__u8e3s4;
|
|
923
|
+
this.f9n_1 = collector;
|
|
924
924
|
}
|
|
925
925
|
protoOf($collectCOROUTINE$2).r9 = function () {
|
|
926
926
|
var suspendResult = this.l9_1;
|
|
@@ -931,10 +931,10 @@
|
|
|
931
931
|
case 0:
|
|
932
932
|
this.k9_1 = 2;
|
|
933
933
|
var tmp_0 = this;
|
|
934
|
-
tmp_0.
|
|
934
|
+
tmp_0.g9n_1 = this.f9n_1;
|
|
935
935
|
this.j9_1 = 1;
|
|
936
|
-
var tmp_1 = GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.
|
|
937
|
-
suspendResult = this.
|
|
936
|
+
var tmp_1 = GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.g9n_1, null);
|
|
937
|
+
suspendResult = this.e9n_1.h9n_1.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
938
938
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
939
939
|
return suspendResult;
|
|
940
940
|
}
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
while (true);
|
|
958
958
|
};
|
|
959
959
|
function _no_name_provided__qut3iv_0($this) {
|
|
960
|
-
this.
|
|
960
|
+
this.h9n_1 = $this;
|
|
961
961
|
}
|
|
962
962
|
protoOf(_no_name_provided__qut3iv_0).s18 = function (collector, $completion) {
|
|
963
963
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
@@ -969,17 +969,17 @@
|
|
|
969
969
|
return this.s18(collector, $completion);
|
|
970
970
|
};
|
|
971
971
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
972
|
-
this.
|
|
972
|
+
this.q9n_1 = $subscriber;
|
|
973
973
|
CoroutineImpl.call(this, resultContinuation);
|
|
974
974
|
}
|
|
975
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
976
|
-
var tmp = this.
|
|
975
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).s9n = function (it, $completion) {
|
|
976
|
+
var tmp = this.t9n(it, $completion);
|
|
977
977
|
tmp.l9_1 = Unit_instance;
|
|
978
978
|
tmp.m9_1 = null;
|
|
979
979
|
return tmp.r9();
|
|
980
980
|
};
|
|
981
981
|
protoOf(GameServer$subscribeWith$slambda$slambda).ba = function (p1, $completion) {
|
|
982
|
-
return this.
|
|
982
|
+
return this.s9n(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
983
983
|
};
|
|
984
984
|
protoOf(GameServer$subscribeWith$slambda$slambda).r9 = function () {
|
|
985
985
|
var suspendResult = this.l9_1;
|
|
@@ -988,7 +988,7 @@
|
|
|
988
988
|
var tmp = this.j9_1;
|
|
989
989
|
if (tmp === 0) {
|
|
990
990
|
this.k9_1 = 1;
|
|
991
|
-
this.
|
|
991
|
+
this.q9n_1(this.r9n_1);
|
|
992
992
|
return Unit_instance;
|
|
993
993
|
} else if (tmp === 1) {
|
|
994
994
|
throw this.m9_1;
|
|
@@ -999,64 +999,64 @@
|
|
|
999
999
|
}
|
|
1000
1000
|
while (true);
|
|
1001
1001
|
};
|
|
1002
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1003
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
1004
|
-
i.
|
|
1002
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).t9n = function (it, completion) {
|
|
1003
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.q9n_1, completion);
|
|
1004
|
+
i.r9n_1 = it;
|
|
1005
1005
|
return i;
|
|
1006
1006
|
};
|
|
1007
1007
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
1008
1008
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
1009
1009
|
var l = function (it, $completion) {
|
|
1010
|
-
return i.
|
|
1010
|
+
return i.s9n(it, $completion);
|
|
1011
1011
|
};
|
|
1012
1012
|
l.$arity = 1;
|
|
1013
1013
|
return l;
|
|
1014
1014
|
}
|
|
1015
1015
|
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($playerId) {
|
|
1016
|
-
this.
|
|
1016
|
+
this.u9n_1 = $playerId;
|
|
1017
1017
|
}
|
|
1018
1018
|
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).w6a = function () {
|
|
1019
|
-
return this.
|
|
1019
|
+
return this.u9n_1;
|
|
1020
1020
|
};
|
|
1021
1021
|
function _get_logger__rkp4sl($this) {
|
|
1022
1022
|
// Inline function 'kotlin.getValue' call
|
|
1023
|
-
var this_0 = $this.
|
|
1023
|
+
var this_0 = $this.x9n_1;
|
|
1024
1024
|
logger$factory_0();
|
|
1025
1025
|
return this_0.u();
|
|
1026
1026
|
}
|
|
1027
1027
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
1028
1028
|
// Inline function 'kotlin.getValue' call
|
|
1029
|
-
var this_0 = $this.
|
|
1029
|
+
var this_0 = $this.y9n_1;
|
|
1030
1030
|
toClientEventsObserver$factory_0();
|
|
1031
1031
|
return this_0.u();
|
|
1032
1032
|
}
|
|
1033
1033
|
function _get_fromClientEventsObserver__a7vzd3($this) {
|
|
1034
1034
|
// Inline function 'kotlin.getValue' call
|
|
1035
|
-
var this_0 = $this.
|
|
1035
|
+
var this_0 = $this.z9n_1;
|
|
1036
1036
|
fromClientEventsObserver$factory_0();
|
|
1037
1037
|
return this_0.u();
|
|
1038
1038
|
}
|
|
1039
1039
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
1040
1040
|
// Inline function 'kotlin.getValue' call
|
|
1041
|
-
var this_0 = $this.
|
|
1041
|
+
var this_0 = $this.a9o_1;
|
|
1042
1042
|
playerConnectionInteractor$factory_0();
|
|
1043
1043
|
return this_0.u();
|
|
1044
1044
|
}
|
|
1045
1045
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
1046
1046
|
// Inline function 'kotlin.getValue' call
|
|
1047
|
-
var this_0 = $this.
|
|
1047
|
+
var this_0 = $this.b9o_1;
|
|
1048
1048
|
teamsLogicProvider$factory_0();
|
|
1049
1049
|
return this_0.u();
|
|
1050
1050
|
}
|
|
1051
1051
|
function _get_random__h29cgo($this) {
|
|
1052
1052
|
// Inline function 'kotlin.getValue' call
|
|
1053
|
-
var this_0 = $this.
|
|
1053
|
+
var this_0 = $this.c9o_1;
|
|
1054
1054
|
random$factory();
|
|
1055
1055
|
return this_0.u();
|
|
1056
1056
|
}
|
|
1057
1057
|
function _get_idsProvider__fnfajc($this) {
|
|
1058
1058
|
// Inline function 'kotlin.getValue' call
|
|
1059
|
-
var this_0 = $this.
|
|
1059
|
+
var this_0 = $this.d9o_1;
|
|
1060
1060
|
idsProvider$factory_0();
|
|
1061
1061
|
return this_0.u();
|
|
1062
1062
|
}
|
|
@@ -1070,20 +1070,20 @@
|
|
|
1070
1070
|
return transformLatest(this_0, GameServer$observeTableWhenRoundChanges$slambda_0(observeState, null));
|
|
1071
1071
|
}
|
|
1072
1072
|
function Companion() {
|
|
1073
|
-
this.
|
|
1073
|
+
this.f9o_1 = 'GameEngine_API';
|
|
1074
1074
|
}
|
|
1075
1075
|
var Companion_instance_7;
|
|
1076
1076
|
function Companion_getInstance_0() {
|
|
1077
1077
|
return Companion_instance_7;
|
|
1078
1078
|
}
|
|
1079
1079
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1080
|
-
this.
|
|
1080
|
+
this.g9o_1 = function_0;
|
|
1081
1081
|
}
|
|
1082
1082
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).r18 = function (value, $completion) {
|
|
1083
|
-
return this.
|
|
1083
|
+
return this.g9o_1(value, $completion);
|
|
1084
1084
|
};
|
|
1085
1085
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t3 = function () {
|
|
1086
|
-
return this.
|
|
1086
|
+
return this.g9o_1;
|
|
1087
1087
|
};
|
|
1088
1088
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1089
1089
|
var tmp;
|
|
@@ -1104,13 +1104,13 @@
|
|
|
1104
1104
|
return hashCode(this.t3());
|
|
1105
1105
|
};
|
|
1106
1106
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
1107
|
-
this.
|
|
1107
|
+
this.h9o_1 = function_0;
|
|
1108
1108
|
}
|
|
1109
1109
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).r18 = function (value, $completion) {
|
|
1110
|
-
return this.
|
|
1110
|
+
return this.h9o_1(value, $completion);
|
|
1111
1111
|
};
|
|
1112
1112
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).t3 = function () {
|
|
1113
|
-
return this.
|
|
1113
|
+
return this.h9o_1;
|
|
1114
1114
|
};
|
|
1115
1115
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
1116
1116
|
var tmp;
|
|
@@ -1131,13 +1131,13 @@
|
|
|
1131
1131
|
return hashCode(this.t3());
|
|
1132
1132
|
};
|
|
1133
1133
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
1134
|
-
this.
|
|
1134
|
+
this.i9o_1 = function_0;
|
|
1135
1135
|
}
|
|
1136
1136
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).r18 = function (value, $completion) {
|
|
1137
|
-
return this.
|
|
1137
|
+
return this.i9o_1(value, $completion);
|
|
1138
1138
|
};
|
|
1139
1139
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).t3 = function () {
|
|
1140
|
-
return this.
|
|
1140
|
+
return this.i9o_1;
|
|
1141
1141
|
};
|
|
1142
1142
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
1143
1143
|
var tmp;
|
|
@@ -1158,13 +1158,13 @@
|
|
|
1158
1158
|
return hashCode(this.t3());
|
|
1159
1159
|
};
|
|
1160
1160
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
1161
|
-
this.
|
|
1161
|
+
this.j9o_1 = function_0;
|
|
1162
1162
|
}
|
|
1163
1163
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).r18 = function (value, $completion) {
|
|
1164
|
-
return this.
|
|
1164
|
+
return this.j9o_1(value, $completion);
|
|
1165
1165
|
};
|
|
1166
1166
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).t3 = function () {
|
|
1167
|
-
return this.
|
|
1167
|
+
return this.j9o_1;
|
|
1168
1168
|
};
|
|
1169
1169
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
1170
1170
|
var tmp;
|
|
@@ -1190,8 +1190,8 @@
|
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
1192
1192
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1193
|
+
this.s9o_1 = this$0;
|
|
1194
|
+
this.t9o_1 = $subscriber;
|
|
1195
1195
|
CoroutineImpl.call(this, resultContinuation);
|
|
1196
1196
|
}
|
|
1197
1197
|
protoOf(GameServer$subscribeToClientAction$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -1212,8 +1212,8 @@
|
|
|
1212
1212
|
case 0:
|
|
1213
1213
|
this.k9_1 = 2;
|
|
1214
1214
|
this.j9_1 = 1;
|
|
1215
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
1216
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
1215
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.s9o_1).v9o();
|
|
1216
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.t9o_1, null);
|
|
1217
1217
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
1218
1218
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1219
1219
|
return suspendResult;
|
|
@@ -1237,8 +1237,8 @@
|
|
|
1237
1237
|
while (true);
|
|
1238
1238
|
};
|
|
1239
1239
|
protoOf(GameServer$subscribeToClientAction$slambda).n1e = function ($this$launchDefault, completion) {
|
|
1240
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
1241
|
-
i.
|
|
1240
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.s9o_1, this.t9o_1, completion);
|
|
1241
|
+
i.u9o_1 = $this$launchDefault;
|
|
1242
1242
|
return i;
|
|
1243
1243
|
};
|
|
1244
1244
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1250,8 +1250,8 @@
|
|
|
1250
1250
|
return l;
|
|
1251
1251
|
}
|
|
1252
1252
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1253
|
+
this.e9p_1 = this$0;
|
|
1254
|
+
this.f9p_1 = $subscriber;
|
|
1255
1255
|
CoroutineImpl.call(this, resultContinuation);
|
|
1256
1256
|
}
|
|
1257
1257
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -1272,9 +1272,9 @@
|
|
|
1272
1272
|
case 0:
|
|
1273
1273
|
this.k9_1 = 2;
|
|
1274
1274
|
this.j9_1 = 1;
|
|
1275
|
-
var this_0 = observeTableWhenRoundChanges(this.
|
|
1276
|
-
var tmp_0 = transformLatest(this_0, GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
1277
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_2(this.
|
|
1275
|
+
var this_0 = observeTableWhenRoundChanges(this.e9p_1, this.e9p_1.a6r());
|
|
1276
|
+
var tmp_0 = transformLatest(this_0, GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.e9p_1, null));
|
|
1277
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_2(this.f9p_1, null);
|
|
1278
1278
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
1279
1279
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1280
1280
|
return suspendResult;
|
|
@@ -1298,8 +1298,8 @@
|
|
|
1298
1298
|
while (true);
|
|
1299
1299
|
};
|
|
1300
1300
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).n1e = function ($this$launchDefault, completion) {
|
|
1301
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
1302
|
-
i.
|
|
1301
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.e9p_1, this.f9p_1, completion);
|
|
1302
|
+
i.g9p_1 = $this$launchDefault;
|
|
1303
1303
|
return i;
|
|
1304
1304
|
};
|
|
1305
1305
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1311,7 +1311,7 @@
|
|
|
1311
1311
|
return l;
|
|
1312
1312
|
}
|
|
1313
1313
|
function _no_name_provided__qut3iv_1($this) {
|
|
1314
|
-
this.
|
|
1314
|
+
this.f9m_1 = $this;
|
|
1315
1315
|
}
|
|
1316
1316
|
protoOf(_no_name_provided__qut3iv_1).s18 = function (collector, $completion) {
|
|
1317
1317
|
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
@@ -1323,18 +1323,18 @@
|
|
|
1323
1323
|
return this.s18(collector, $completion);
|
|
1324
1324
|
};
|
|
1325
1325
|
function GameServer$observeTableWhenRoundChanges$slambda($observeState, resultContinuation) {
|
|
1326
|
-
this.
|
|
1326
|
+
this.p9p_1 = $observeState;
|
|
1327
1327
|
CoroutineImpl.call(this, resultContinuation);
|
|
1328
1328
|
}
|
|
1329
|
-
protoOf(GameServer$observeTableWhenRoundChanges$slambda).
|
|
1330
|
-
var tmp = this.
|
|
1329
|
+
protoOf(GameServer$observeTableWhenRoundChanges$slambda).u9k = function ($this$transformLatest, it, $completion) {
|
|
1330
|
+
var tmp = this.v9k($this$transformLatest, it, $completion);
|
|
1331
1331
|
tmp.l9_1 = Unit_instance;
|
|
1332
1332
|
tmp.m9_1 = null;
|
|
1333
1333
|
return tmp.r9();
|
|
1334
1334
|
};
|
|
1335
1335
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda).ca = function (p1, p2, $completion) {
|
|
1336
1336
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
1337
|
-
return this.
|
|
1337
|
+
return this.u9k(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
1338
1338
|
};
|
|
1339
1339
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda).r9 = function () {
|
|
1340
1340
|
var suspendResult = this.l9_1;
|
|
@@ -1345,9 +1345,9 @@
|
|
|
1345
1345
|
case 0:
|
|
1346
1346
|
this.k9_1 = 2;
|
|
1347
1347
|
this.j9_1 = 1;
|
|
1348
|
-
this.
|
|
1349
|
-
var this_0 = this.
|
|
1350
|
-
suspendResult = emitAll(this.
|
|
1348
|
+
this.r9p_1;
|
|
1349
|
+
var this_0 = this.p9p_1;
|
|
1350
|
+
suspendResult = emitAll(this.q9p_1, new _no_name_provided__qut3iv_0(this_0), this);
|
|
1351
1351
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1352
1352
|
return suspendResult;
|
|
1353
1353
|
}
|
|
@@ -1369,23 +1369,23 @@
|
|
|
1369
1369
|
}
|
|
1370
1370
|
while (true);
|
|
1371
1371
|
};
|
|
1372
|
-
protoOf(GameServer$observeTableWhenRoundChanges$slambda).
|
|
1373
|
-
var i = new GameServer$observeTableWhenRoundChanges$slambda(this.
|
|
1374
|
-
i.
|
|
1375
|
-
i.
|
|
1372
|
+
protoOf(GameServer$observeTableWhenRoundChanges$slambda).v9k = function ($this$transformLatest, it, completion) {
|
|
1373
|
+
var i = new GameServer$observeTableWhenRoundChanges$slambda(this.p9p_1, completion);
|
|
1374
|
+
i.q9p_1 = $this$transformLatest;
|
|
1375
|
+
i.r9p_1 = it;
|
|
1376
1376
|
return i;
|
|
1377
1377
|
};
|
|
1378
1378
|
function GameServer$observeTableWhenRoundChanges$slambda_0($observeState, resultContinuation) {
|
|
1379
1379
|
var i = new GameServer$observeTableWhenRoundChanges$slambda($observeState, resultContinuation);
|
|
1380
1380
|
var l = function ($this$transformLatest, it, $completion) {
|
|
1381
|
-
return i.
|
|
1381
|
+
return i.u9k($this$transformLatest, it, $completion);
|
|
1382
1382
|
};
|
|
1383
1383
|
l.$arity = 2;
|
|
1384
1384
|
return l;
|
|
1385
1385
|
}
|
|
1386
1386
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1387
|
+
this.a9q_1 = this$0;
|
|
1388
|
+
this.b9q_1 = $subscriber;
|
|
1389
1389
|
CoroutineImpl.call(this, resultContinuation);
|
|
1390
1390
|
}
|
|
1391
1391
|
protoOf(GameServer$subscribeWith$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -1406,8 +1406,8 @@
|
|
|
1406
1406
|
case 0:
|
|
1407
1407
|
this.k9_1 = 2;
|
|
1408
1408
|
this.j9_1 = 1;
|
|
1409
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
1410
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
1409
|
+
var tmp_0 = distinctUntilChanged(this.a9q_1.a6r());
|
|
1410
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.b9q_1, null);
|
|
1411
1411
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this);
|
|
1412
1412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1413
1413
|
return suspendResult;
|
|
@@ -1431,8 +1431,8 @@
|
|
|
1431
1431
|
while (true);
|
|
1432
1432
|
};
|
|
1433
1433
|
protoOf(GameServer$subscribeWith$slambda).n1e = function ($this$launchDefault, completion) {
|
|
1434
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
1435
|
-
i.
|
|
1434
|
+
var i = new GameServer$subscribeWith$slambda(this.a9q_1, this.b9q_1, completion);
|
|
1435
|
+
i.c9q_1 = $this$launchDefault;
|
|
1436
1436
|
return i;
|
|
1437
1437
|
};
|
|
1438
1438
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1444,18 +1444,18 @@
|
|
|
1444
1444
|
return l;
|
|
1445
1445
|
}
|
|
1446
1446
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
1447
|
-
this.
|
|
1447
|
+
this.l9q_1 = $action;
|
|
1448
1448
|
CoroutineImpl.call(this, resultContinuation);
|
|
1449
1449
|
}
|
|
1450
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1451
|
-
var tmp = this.
|
|
1450
|
+
protoOf(GameServer$fromClientEvent$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1451
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1452
1452
|
tmp.l9_1 = Unit_instance;
|
|
1453
1453
|
tmp.m9_1 = null;
|
|
1454
1454
|
return tmp.r9();
|
|
1455
1455
|
};
|
|
1456
1456
|
protoOf(GameServer$fromClientEvent$slambda).ca = function (p1, p2, $completion) {
|
|
1457
1457
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1458
|
-
return this.
|
|
1458
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1459
1459
|
};
|
|
1460
1460
|
protoOf(GameServer$fromClientEvent$slambda).r9 = function () {
|
|
1461
1461
|
var suspendResult = this.l9_1;
|
|
@@ -1464,11 +1464,11 @@
|
|
|
1464
1464
|
var tmp = this.j9_1;
|
|
1465
1465
|
if (tmp === 0) {
|
|
1466
1466
|
this.k9_1 = 1;
|
|
1467
|
-
if (this.
|
|
1468
|
-
if (!get_isCreated(this.
|
|
1467
|
+
if (this.l9q_1 instanceof PlayerReadyFromClientAction)
|
|
1468
|
+
if (!get_isCreated(this.n9q_1.state)) {
|
|
1469
1469
|
return Unit_instance;
|
|
1470
1470
|
}
|
|
1471
|
-
this.
|
|
1471
|
+
this.n9q_1.dispatch(this.l9q_1);
|
|
1472
1472
|
return Unit_instance;
|
|
1473
1473
|
} else if (tmp === 1) {
|
|
1474
1474
|
throw this.m9_1;
|
|
@@ -1479,33 +1479,33 @@
|
|
|
1479
1479
|
}
|
|
1480
1480
|
while (true);
|
|
1481
1481
|
};
|
|
1482
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1483
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
1484
|
-
i.
|
|
1485
|
-
i.
|
|
1482
|
+
protoOf(GameServer$fromClientEvent$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1483
|
+
var i = new GameServer$fromClientEvent$slambda(this.l9q_1, completion);
|
|
1484
|
+
i.m9q_1 = $this$dispatchAsync;
|
|
1485
|
+
i.n9q_1 = store;
|
|
1486
1486
|
return i;
|
|
1487
1487
|
};
|
|
1488
1488
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
1489
1489
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
1490
1490
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1491
|
-
return i.
|
|
1491
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1492
1492
|
};
|
|
1493
1493
|
l.$arity = 2;
|
|
1494
1494
|
return l;
|
|
1495
1495
|
}
|
|
1496
1496
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
1497
|
-
this.
|
|
1497
|
+
this.y9q_1 = $playerId;
|
|
1498
1498
|
CoroutineImpl.call(this, resultContinuation);
|
|
1499
1499
|
}
|
|
1500
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
1501
|
-
var tmp = this.
|
|
1500
|
+
protoOf(GameServer$playerLostConnection$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1501
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1502
1502
|
tmp.l9_1 = Unit_instance;
|
|
1503
1503
|
tmp.m9_1 = null;
|
|
1504
1504
|
return tmp.r9();
|
|
1505
1505
|
};
|
|
1506
1506
|
protoOf(GameServer$playerLostConnection$slambda).ca = function (p1, p2, $completion) {
|
|
1507
1507
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1508
|
-
return this.
|
|
1508
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1509
1509
|
};
|
|
1510
1510
|
protoOf(GameServer$playerLostConnection$slambda).r9 = function () {
|
|
1511
1511
|
var suspendResult = this.l9_1;
|
|
@@ -1514,12 +1514,12 @@
|
|
|
1514
1514
|
var tmp = this.j9_1;
|
|
1515
1515
|
if (tmp === 0) {
|
|
1516
1516
|
this.k9_1 = 1;
|
|
1517
|
-
if (!get_isCreated(this.
|
|
1517
|
+
if (!get_isCreated(this.a9r_1.state)) {
|
|
1518
1518
|
return Unit_instance;
|
|
1519
1519
|
}
|
|
1520
|
-
var tmp_0 = this.
|
|
1520
|
+
var tmp_0 = this.a9r_1.dispatch;
|
|
1521
1521
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
1522
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1522
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.y9q_1));
|
|
1523
1523
|
return Unit_instance;
|
|
1524
1524
|
} else if (tmp === 1) {
|
|
1525
1525
|
throw this.m9_1;
|
|
@@ -1530,34 +1530,34 @@
|
|
|
1530
1530
|
}
|
|
1531
1531
|
while (true);
|
|
1532
1532
|
};
|
|
1533
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
1534
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
1535
|
-
i.
|
|
1536
|
-
i.
|
|
1533
|
+
protoOf(GameServer$playerLostConnection$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1534
|
+
var i = new GameServer$playerLostConnection$slambda(this.y9q_1, completion);
|
|
1535
|
+
i.z9q_1 = $this$dispatchAsync;
|
|
1536
|
+
i.a9r_1 = store;
|
|
1537
1537
|
return i;
|
|
1538
1538
|
};
|
|
1539
1539
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
1540
1540
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
1541
1541
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1542
|
-
return i.
|
|
1542
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1543
1543
|
};
|
|
1544
1544
|
l.$arity = 2;
|
|
1545
1545
|
return l;
|
|
1546
1546
|
}
|
|
1547
1547
|
function GameServer$playerLive$slambda(this$0, $playerId, resultContinuation) {
|
|
1548
|
-
this.
|
|
1549
|
-
this.
|
|
1548
|
+
this.j9r_1 = this$0;
|
|
1549
|
+
this.k9r_1 = $playerId;
|
|
1550
1550
|
CoroutineImpl.call(this, resultContinuation);
|
|
1551
1551
|
}
|
|
1552
|
-
protoOf(GameServer$playerLive$slambda).
|
|
1553
|
-
var tmp = this.
|
|
1552
|
+
protoOf(GameServer$playerLive$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1553
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1554
1554
|
tmp.l9_1 = Unit_instance;
|
|
1555
1555
|
tmp.m9_1 = null;
|
|
1556
1556
|
return tmp.r9();
|
|
1557
1557
|
};
|
|
1558
1558
|
protoOf(GameServer$playerLive$slambda).ca = function (p1, p2, $completion) {
|
|
1559
1559
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1560
|
-
return this.
|
|
1560
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1561
1561
|
};
|
|
1562
1562
|
protoOf(GameServer$playerLive$slambda).r9 = function () {
|
|
1563
1563
|
var suspendResult = this.l9_1;
|
|
@@ -1566,16 +1566,16 @@
|
|
|
1566
1566
|
var tmp = this.j9_1;
|
|
1567
1567
|
if (tmp === 0) {
|
|
1568
1568
|
this.k9_1 = 1;
|
|
1569
|
-
if (get_isFinished(this.
|
|
1569
|
+
if (get_isFinished(this.m9r_1.state) || get_isFinishing(this.m9r_1.state)) {
|
|
1570
1570
|
return Unit_instance;
|
|
1571
1571
|
}
|
|
1572
|
-
if (!get_isCreated(this.
|
|
1573
|
-
_get_logger__rkp4sl(this.
|
|
1572
|
+
if (!get_isCreated(this.m9r_1.state) || !this.j9r_1.v6b().t6r()) {
|
|
1573
|
+
_get_logger__rkp4sl(this.j9r_1).w('GameEngine_API', 'playerLive: ' + this.k9r_1 + ' before game is created');
|
|
1574
1574
|
return Unit_instance;
|
|
1575
1575
|
}
|
|
1576
|
-
var tmp_0 = this.
|
|
1576
|
+
var tmp_0 = this.m9r_1.dispatch;
|
|
1577
1577
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1578
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1578
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.k9r_1));
|
|
1579
1579
|
return Unit_instance;
|
|
1580
1580
|
} else if (tmp === 1) {
|
|
1581
1581
|
throw this.m9_1;
|
|
@@ -1586,34 +1586,34 @@
|
|
|
1586
1586
|
}
|
|
1587
1587
|
while (true);
|
|
1588
1588
|
};
|
|
1589
|
-
protoOf(GameServer$playerLive$slambda).
|
|
1590
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
1591
|
-
i.
|
|
1592
|
-
i.
|
|
1589
|
+
protoOf(GameServer$playerLive$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1590
|
+
var i = new GameServer$playerLive$slambda(this.j9r_1, this.k9r_1, completion);
|
|
1591
|
+
i.l9r_1 = $this$dispatchAsync;
|
|
1592
|
+
i.m9r_1 = store;
|
|
1593
1593
|
return i;
|
|
1594
1594
|
};
|
|
1595
1595
|
function GameServer$playerLive$slambda_0(this$0, $playerId, resultContinuation) {
|
|
1596
1596
|
var i = new GameServer$playerLive$slambda(this$0, $playerId, resultContinuation);
|
|
1597
1597
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1598
|
-
return i.
|
|
1598
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1599
1599
|
};
|
|
1600
1600
|
l.$arity = 2;
|
|
1601
1601
|
return l;
|
|
1602
1602
|
}
|
|
1603
1603
|
function GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation) {
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1604
|
+
this.v9r_1 = this$0;
|
|
1605
|
+
this.w9r_1 = $playerId;
|
|
1606
1606
|
CoroutineImpl.call(this, resultContinuation);
|
|
1607
1607
|
}
|
|
1608
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1609
|
-
var tmp = this.
|
|
1608
|
+
protoOf(GameServer$playerLeft$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1609
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1610
1610
|
tmp.l9_1 = Unit_instance;
|
|
1611
1611
|
tmp.m9_1 = null;
|
|
1612
1612
|
return tmp.r9();
|
|
1613
1613
|
};
|
|
1614
1614
|
protoOf(GameServer$playerLeft$slambda).ca = function (p1, p2, $completion) {
|
|
1615
1615
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1616
|
-
return this.
|
|
1616
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1617
1617
|
};
|
|
1618
1618
|
protoOf(GameServer$playerLeft$slambda).r9 = function () {
|
|
1619
1619
|
var suspendResult = this.l9_1;
|
|
@@ -1622,16 +1622,16 @@
|
|
|
1622
1622
|
var tmp = this.j9_1;
|
|
1623
1623
|
if (tmp === 0) {
|
|
1624
1624
|
this.k9_1 = 1;
|
|
1625
|
-
if (get_isFinished(this.
|
|
1625
|
+
if (get_isFinished(this.y9r_1.state) || get_isFinishing(this.y9r_1.state)) {
|
|
1626
1626
|
return Unit_instance;
|
|
1627
1627
|
}
|
|
1628
|
-
if (!get_isCreated(this.
|
|
1629
|
-
_get_logger__rkp4sl(this.
|
|
1628
|
+
if (!get_isCreated(this.y9r_1.state) || !this.v9r_1.v6b().t6r()) {
|
|
1629
|
+
_get_logger__rkp4sl(this.v9r_1).w('GameEngine_API', 'playerLeft: ' + this.w9r_1 + ' before game is created');
|
|
1630
1630
|
return Unit_instance;
|
|
1631
1631
|
}
|
|
1632
|
-
var tmp_0 = this.
|
|
1632
|
+
var tmp_0 = this.y9r_1.dispatch;
|
|
1633
1633
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
1634
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1634
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.w9r_1));
|
|
1635
1635
|
return Unit_instance;
|
|
1636
1636
|
} else if (tmp === 1) {
|
|
1637
1637
|
throw this.m9_1;
|
|
@@ -1642,39 +1642,39 @@
|
|
|
1642
1642
|
}
|
|
1643
1643
|
while (true);
|
|
1644
1644
|
};
|
|
1645
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1646
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
1647
|
-
i.
|
|
1648
|
-
i.
|
|
1645
|
+
protoOf(GameServer$playerLeft$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1646
|
+
var i = new GameServer$playerLeft$slambda(this.v9r_1, this.w9r_1, completion);
|
|
1647
|
+
i.x9r_1 = $this$dispatchAsync;
|
|
1648
|
+
i.y9r_1 = store;
|
|
1649
1649
|
return i;
|
|
1650
1650
|
};
|
|
1651
1651
|
function GameServer$playerLeft$slambda_0(this$0, $playerId, resultContinuation) {
|
|
1652
1652
|
var i = new GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation);
|
|
1653
1653
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1654
|
-
return i.
|
|
1654
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1655
1655
|
};
|
|
1656
1656
|
l.$arity = 2;
|
|
1657
1657
|
return l;
|
|
1658
1658
|
}
|
|
1659
1659
|
function GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1660
|
+
this.h9s_1 = $usersArray;
|
|
1661
|
+
this.i9s_1 = $config;
|
|
1662
|
+
this.j9s_1 = this$0;
|
|
1663
|
+
this.k9s_1 = $roomId;
|
|
1664
|
+
this.l9s_1 = $transition;
|
|
1665
|
+
this.m9s_1 = $gameCreatorId;
|
|
1666
|
+
this.n9s_1 = $spectators;
|
|
1667
1667
|
CoroutineImpl.call(this, resultContinuation);
|
|
1668
1668
|
}
|
|
1669
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1670
|
-
var tmp = this.
|
|
1669
|
+
protoOf(GameServer$roomOnCreate$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1670
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1671
1671
|
tmp.l9_1 = Unit_instance;
|
|
1672
1672
|
tmp.m9_1 = null;
|
|
1673
1673
|
return tmp.r9();
|
|
1674
1674
|
};
|
|
1675
1675
|
protoOf(GameServer$roomOnCreate$slambda).ca = function (p1, p2, $completion) {
|
|
1676
1676
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1677
|
-
return this.
|
|
1677
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1678
1678
|
};
|
|
1679
1679
|
protoOf(GameServer$roomOnCreate$slambda).r9 = function () {
|
|
1680
1680
|
var suspendResult = this.l9_1;
|
|
@@ -1683,28 +1683,28 @@
|
|
|
1683
1683
|
var tmp = this.j9_1;
|
|
1684
1684
|
if (tmp === 0) {
|
|
1685
1685
|
this.k9_1 = 1;
|
|
1686
|
-
var users = toList(this.
|
|
1687
|
-
if (!(this.
|
|
1688
|
-
_get_logger__rkp4sl(this.
|
|
1689
|
-
this.
|
|
1686
|
+
var users = toList(this.h9s_1);
|
|
1687
|
+
if (!(this.i9s_1.playersMode.count === users.m())) {
|
|
1688
|
+
_get_logger__rkp4sl(this.j9s_1).w('GameEngine_API', 'roomOnCreate: wrong player count for game ' + this.k9s_1 + ', config = ' + this.i9s_1.toString() + ', users = ' + toString(users));
|
|
1689
|
+
this.p9s_1.dispatch(Companion_instance.fromTableWithAnalytics(new GameErrorReason(Reason_SERVER_ERROR_getInstance()), this.j9s_1.table.isGameFinished, this.j9s_1.table));
|
|
1690
1690
|
return Unit_instance;
|
|
1691
1691
|
}
|
|
1692
1692
|
var tmp_0;
|
|
1693
|
-
if (this.
|
|
1694
|
-
tmp_0 = _get_random__h29cgo(this.
|
|
1693
|
+
if (this.i9s_1.mode.shufflePlayers && this.l9s_1 == null) {
|
|
1694
|
+
tmp_0 = _get_random__h29cgo(this.j9s_1).r5w(toMutableList(users));
|
|
1695
1695
|
} else {
|
|
1696
|
-
var tmp0_safe_receiver = this.
|
|
1696
|
+
var tmp0_safe_receiver = this.l9s_1;
|
|
1697
1697
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
1698
1698
|
var tmp_1;
|
|
1699
|
-
if (!(previousPlayers == null) && this.
|
|
1700
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
1699
|
+
if (!(previousPlayers == null) && this.i9s_1.playersMode.isTeamGame) {
|
|
1700
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.j9s_1);
|
|
1701
1701
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
1702
1702
|
var tmp0_iterator = previousPlayers.j();
|
|
1703
1703
|
while (tmp0_iterator.k()) {
|
|
1704
1704
|
var item = tmp0_iterator.l();
|
|
1705
1705
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
1706
1706
|
}
|
|
1707
|
-
var previousTeams = tmp_2.
|
|
1707
|
+
var previousTeams = tmp_2.p8m(destination);
|
|
1708
1708
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1709
1709
|
var tmp0_iterator_0 = users.j();
|
|
1710
1710
|
while (tmp0_iterator_0.k()) {
|
|
@@ -1728,19 +1728,19 @@
|
|
|
1728
1728
|
destination_1.e(destination_2);
|
|
1729
1729
|
}
|
|
1730
1730
|
var updatedTeams = destination_1;
|
|
1731
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
1731
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.j9s_1).t8m(updatedTeams);
|
|
1732
1732
|
} else {
|
|
1733
1733
|
tmp_1 = users;
|
|
1734
1734
|
}
|
|
1735
1735
|
tmp_0 = tmp_1;
|
|
1736
1736
|
}
|
|
1737
1737
|
var updatedUsers = tmp_0;
|
|
1738
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
1739
|
-
var tmp_3 = this.
|
|
1738
|
+
var gameCreatorUser = getPlayer(users, this.m9s_1);
|
|
1739
|
+
var tmp_3 = this.p9s_1.dispatch;
|
|
1740
1740
|
var tmp1_version = get_versionOrDefault(GameEngineConfig_instance);
|
|
1741
1741
|
var tmp2_users = sortWithItem(updatedUsers, gameCreatorUser);
|
|
1742
|
-
var tmp3_spectators = toList(this.
|
|
1743
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
1742
|
+
var tmp3_spectators = toList(this.n9s_1);
|
|
1743
|
+
tmp_3(new StartGameMechanicAction(this.i9s_1, this.k9s_1, tmp1_version, this.m9s_1, tmp2_users, VOID, tmp3_spectators));
|
|
1744
1744
|
return Unit_instance;
|
|
1745
1745
|
} else if (tmp === 1) {
|
|
1746
1746
|
throw this.m9_1;
|
|
@@ -1751,33 +1751,33 @@
|
|
|
1751
1751
|
}
|
|
1752
1752
|
while (true);
|
|
1753
1753
|
};
|
|
1754
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1755
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
1756
|
-
i.
|
|
1757
|
-
i.
|
|
1754
|
+
protoOf(GameServer$roomOnCreate$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1755
|
+
var i = new GameServer$roomOnCreate$slambda(this.h9s_1, this.i9s_1, this.j9s_1, this.k9s_1, this.l9s_1, this.m9s_1, this.n9s_1, completion);
|
|
1756
|
+
i.o9s_1 = $this$dispatchAsync;
|
|
1757
|
+
i.p9s_1 = store;
|
|
1758
1758
|
return i;
|
|
1759
1759
|
};
|
|
1760
1760
|
function GameServer$roomOnCreate$slambda_0($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
1761
1761
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation);
|
|
1762
1762
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1763
|
-
return i.
|
|
1763
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1764
1764
|
};
|
|
1765
1765
|
l.$arity = 2;
|
|
1766
1766
|
return l;
|
|
1767
1767
|
}
|
|
1768
1768
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
1769
|
-
this.
|
|
1769
|
+
this.y9s_1 = $state;
|
|
1770
1770
|
CoroutineImpl.call(this, resultContinuation);
|
|
1771
1771
|
}
|
|
1772
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1773
|
-
var tmp = this.
|
|
1772
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1773
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1774
1774
|
tmp.l9_1 = Unit_instance;
|
|
1775
1775
|
tmp.m9_1 = null;
|
|
1776
1776
|
return tmp.r9();
|
|
1777
1777
|
};
|
|
1778
1778
|
protoOf(GameServer$roomOnContinueFromState$slambda).ca = function (p1, p2, $completion) {
|
|
1779
1779
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1780
|
-
return this.
|
|
1780
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1781
1781
|
};
|
|
1782
1782
|
protoOf(GameServer$roomOnContinueFromState$slambda).r9 = function () {
|
|
1783
1783
|
var suspendResult = this.l9_1;
|
|
@@ -1786,9 +1786,9 @@
|
|
|
1786
1786
|
var tmp = this.j9_1;
|
|
1787
1787
|
if (tmp === 0) {
|
|
1788
1788
|
this.k9_1 = 1;
|
|
1789
|
-
var tmp_0 = this.
|
|
1789
|
+
var tmp_0 = this.a9t_1.dispatch;
|
|
1790
1790
|
var tmp0_reason = new RestartRoundReason(null);
|
|
1791
|
-
var tmp1_table = this.
|
|
1791
|
+
var tmp1_table = this.y9s_1.table;
|
|
1792
1792
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1793
1793
|
return Unit_instance;
|
|
1794
1794
|
} else if (tmp === 1) {
|
|
@@ -1800,33 +1800,33 @@
|
|
|
1800
1800
|
}
|
|
1801
1801
|
while (true);
|
|
1802
1802
|
};
|
|
1803
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1804
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
1805
|
-
i.
|
|
1806
|
-
i.
|
|
1803
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1804
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.y9s_1, completion);
|
|
1805
|
+
i.z9s_1 = $this$dispatchAsync;
|
|
1806
|
+
i.a9t_1 = store;
|
|
1807
1807
|
return i;
|
|
1808
1808
|
};
|
|
1809
1809
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
1810
1810
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
1811
1811
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1812
|
-
return i.
|
|
1812
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1813
1813
|
};
|
|
1814
1814
|
l.$arity = 2;
|
|
1815
1815
|
return l;
|
|
1816
1816
|
}
|
|
1817
1817
|
function GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation) {
|
|
1818
|
-
this.
|
|
1818
|
+
this.j9t_1 = $state;
|
|
1819
1819
|
CoroutineImpl.call(this, resultContinuation);
|
|
1820
1820
|
}
|
|
1821
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1822
|
-
var tmp = this.
|
|
1821
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1822
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1823
1823
|
tmp.l9_1 = Unit_instance;
|
|
1824
1824
|
tmp.m9_1 = null;
|
|
1825
1825
|
return tmp.r9();
|
|
1826
1826
|
};
|
|
1827
1827
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).ca = function (p1, p2, $completion) {
|
|
1828
1828
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1829
|
-
return this.
|
|
1829
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1830
1830
|
};
|
|
1831
1831
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).r9 = function () {
|
|
1832
1832
|
var suspendResult = this.l9_1;
|
|
@@ -1835,10 +1835,10 @@
|
|
|
1835
1835
|
var tmp = this.j9_1;
|
|
1836
1836
|
if (tmp === 0) {
|
|
1837
1837
|
this.k9_1 = 1;
|
|
1838
|
-
var tmp0_iterator = this.
|
|
1838
|
+
var tmp0_iterator = this.j9t_1.actions.j();
|
|
1839
1839
|
while (tmp0_iterator.k()) {
|
|
1840
1840
|
var element = tmp0_iterator.l();
|
|
1841
|
-
this.
|
|
1841
|
+
this.l9t_1.dispatch(element);
|
|
1842
1842
|
}
|
|
1843
1843
|
return Unit_instance;
|
|
1844
1844
|
} else if (tmp === 1) {
|
|
@@ -1850,35 +1850,35 @@
|
|
|
1850
1850
|
}
|
|
1851
1851
|
while (true);
|
|
1852
1852
|
};
|
|
1853
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1854
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
1855
|
-
i.
|
|
1856
|
-
i.
|
|
1853
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1854
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.j9t_1, completion);
|
|
1855
|
+
i.k9t_1 = $this$dispatchAsync;
|
|
1856
|
+
i.l9t_1 = store;
|
|
1857
1857
|
return i;
|
|
1858
1858
|
};
|
|
1859
1859
|
function GameServer$roomOnContinueFromState$slambda_2($state, resultContinuation) {
|
|
1860
1860
|
var i = new GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation);
|
|
1861
1861
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1862
|
-
return i.
|
|
1862
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1863
1863
|
};
|
|
1864
1864
|
l.$arity = 2;
|
|
1865
1865
|
return l;
|
|
1866
1866
|
}
|
|
1867
1867
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
1868
|
-
this.
|
|
1869
|
-
this.
|
|
1870
|
-
this.
|
|
1868
|
+
this.u9t_1 = $tableLite;
|
|
1869
|
+
this.v9t_1 = $roomId;
|
|
1870
|
+
this.w9t_1 = this$0;
|
|
1871
1871
|
CoroutineImpl.call(this, resultContinuation);
|
|
1872
1872
|
}
|
|
1873
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1874
|
-
var tmp = this.
|
|
1873
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1874
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1875
1875
|
tmp.l9_1 = Unit_instance;
|
|
1876
1876
|
tmp.m9_1 = null;
|
|
1877
1877
|
return tmp.r9();
|
|
1878
1878
|
};
|
|
1879
1879
|
protoOf(GameServer$roomOnContinueFromRound$slambda).ca = function (p1, p2, $completion) {
|
|
1880
1880
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1881
|
-
return this.
|
|
1881
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1882
1882
|
};
|
|
1883
1883
|
protoOf(GameServer$roomOnContinueFromRound$slambda).r9 = function () {
|
|
1884
1884
|
var suspendResult = this.l9_1;
|
|
@@ -1887,9 +1887,9 @@
|
|
|
1887
1887
|
var tmp = this.j9_1;
|
|
1888
1888
|
if (tmp === 0) {
|
|
1889
1889
|
this.k9_1 = 1;
|
|
1890
|
-
var tmp_0 = this.
|
|
1891
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
1892
|
-
var tmp1_table = Companion_instance_0.restartRound(this.
|
|
1890
|
+
var tmp_0 = this.y9t_1.dispatch;
|
|
1891
|
+
var tmp0_reason = new RestartRoundReason(this.u9t_1.gameInfo.round.roundNumber);
|
|
1892
|
+
var tmp1_table = Companion_instance_0.restartRound(this.v9t_1, _get_idsProvider__fnfajc(this.w9t_1).k6i(), get_versionOrDefault(GameEngineConfig_instance), this.u9t_1);
|
|
1893
1893
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1894
1894
|
return Unit_instance;
|
|
1895
1895
|
} else if (tmp === 1) {
|
|
@@ -1901,16 +1901,16 @@
|
|
|
1901
1901
|
}
|
|
1902
1902
|
while (true);
|
|
1903
1903
|
};
|
|
1904
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1905
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
1906
|
-
i.
|
|
1907
|
-
i.
|
|
1904
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1905
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.u9t_1, this.v9t_1, this.w9t_1, completion);
|
|
1906
|
+
i.x9t_1 = $this$dispatchAsync;
|
|
1907
|
+
i.y9t_1 = store;
|
|
1908
1908
|
return i;
|
|
1909
1909
|
};
|
|
1910
1910
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
1911
1911
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
1912
1912
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1913
|
-
return i.
|
|
1913
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1914
1914
|
};
|
|
1915
1915
|
l.$arity = 2;
|
|
1916
1916
|
return l;
|
|
@@ -1918,15 +1918,15 @@
|
|
|
1918
1918
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1919
1919
|
CoroutineImpl.call(this, resultContinuation);
|
|
1920
1920
|
}
|
|
1921
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1922
|
-
var tmp = this.
|
|
1921
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1922
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1923
1923
|
tmp.l9_1 = Unit_instance;
|
|
1924
1924
|
tmp.m9_1 = null;
|
|
1925
1925
|
return tmp.r9();
|
|
1926
1926
|
};
|
|
1927
1927
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).ca = function (p1, p2, $completion) {
|
|
1928
1928
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1929
|
-
return this.
|
|
1929
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1930
1930
|
};
|
|
1931
1931
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).r9 = function () {
|
|
1932
1932
|
var suspendResult = this.l9_1;
|
|
@@ -1935,7 +1935,7 @@
|
|
|
1935
1935
|
var tmp = this.j9_1;
|
|
1936
1936
|
if (tmp === 0) {
|
|
1937
1937
|
this.k9_1 = 1;
|
|
1938
|
-
this.
|
|
1938
|
+
this.i9u_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1939
1939
|
return Unit_instance;
|
|
1940
1940
|
} else if (tmp === 1) {
|
|
1941
1941
|
throw this.m9_1;
|
|
@@ -1946,33 +1946,33 @@
|
|
|
1946
1946
|
}
|
|
1947
1947
|
while (true);
|
|
1948
1948
|
};
|
|
1949
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1949
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1950
1950
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1951
|
-
i.
|
|
1952
|
-
i.
|
|
1951
|
+
i.h9u_1 = $this$dispatchAsync;
|
|
1952
|
+
i.i9u_1 = store;
|
|
1953
1953
|
return i;
|
|
1954
1954
|
};
|
|
1955
1955
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1956
1956
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1957
1957
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1958
|
-
return i.
|
|
1958
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
1959
1959
|
};
|
|
1960
1960
|
l.$arity = 2;
|
|
1961
1961
|
return l;
|
|
1962
1962
|
}
|
|
1963
1963
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1964
|
-
this.
|
|
1964
|
+
this.r9u_1 = $spectators;
|
|
1965
1965
|
CoroutineImpl.call(this, resultContinuation);
|
|
1966
1966
|
}
|
|
1967
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1968
|
-
var tmp = this.
|
|
1967
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
1968
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
1969
1969
|
tmp.l9_1 = Unit_instance;
|
|
1970
1970
|
tmp.m9_1 = null;
|
|
1971
1971
|
return tmp.r9();
|
|
1972
1972
|
};
|
|
1973
1973
|
protoOf(GameServer$addSpectatorsToRoom$slambda).ca = function (p1, p2, $completion) {
|
|
1974
1974
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1975
|
-
return this.
|
|
1975
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1976
1976
|
};
|
|
1977
1977
|
protoOf(GameServer$addSpectatorsToRoom$slambda).r9 = function () {
|
|
1978
1978
|
var suspendResult = this.l9_1;
|
|
@@ -1981,7 +1981,7 @@
|
|
|
1981
1981
|
var tmp = this.j9_1;
|
|
1982
1982
|
if (tmp === 0) {
|
|
1983
1983
|
this.k9_1 = 1;
|
|
1984
|
-
this.
|
|
1984
|
+
this.t9u_1.dispatch(new AddSpectatorsAction(toList(this.r9u_1)));
|
|
1985
1985
|
return Unit_instance;
|
|
1986
1986
|
} else if (tmp === 1) {
|
|
1987
1987
|
throw this.m9_1;
|
|
@@ -1992,33 +1992,33 @@
|
|
|
1992
1992
|
}
|
|
1993
1993
|
while (true);
|
|
1994
1994
|
};
|
|
1995
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1996
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1997
|
-
i.
|
|
1998
|
-
i.
|
|
1995
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
1996
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.r9u_1, completion);
|
|
1997
|
+
i.s9u_1 = $this$dispatchAsync;
|
|
1998
|
+
i.t9u_1 = store;
|
|
1999
1999
|
return i;
|
|
2000
2000
|
};
|
|
2001
2001
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
2002
2002
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
2003
2003
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2004
|
-
return i.
|
|
2004
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
2005
2005
|
};
|
|
2006
2006
|
l.$arity = 2;
|
|
2007
2007
|
return l;
|
|
2008
2008
|
}
|
|
2009
2009
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
2010
|
-
this.
|
|
2010
|
+
this.c9v_1 = $spectators;
|
|
2011
2011
|
CoroutineImpl.call(this, resultContinuation);
|
|
2012
2012
|
}
|
|
2013
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2014
|
-
var tmp = this.
|
|
2013
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
2014
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
2015
2015
|
tmp.l9_1 = Unit_instance;
|
|
2016
2016
|
tmp.m9_1 = null;
|
|
2017
2017
|
return tmp.r9();
|
|
2018
2018
|
};
|
|
2019
2019
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).ca = function (p1, p2, $completion) {
|
|
2020
2020
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2021
|
-
return this.
|
|
2021
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2022
2022
|
};
|
|
2023
2023
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).r9 = function () {
|
|
2024
2024
|
var suspendResult = this.l9_1;
|
|
@@ -2027,7 +2027,7 @@
|
|
|
2027
2027
|
var tmp = this.j9_1;
|
|
2028
2028
|
if (tmp === 0) {
|
|
2029
2029
|
this.k9_1 = 1;
|
|
2030
|
-
this.
|
|
2030
|
+
this.e9v_1.dispatch(new RemoveSpectatorsAction(toList(this.c9v_1)));
|
|
2031
2031
|
return Unit_instance;
|
|
2032
2032
|
} else if (tmp === 1) {
|
|
2033
2033
|
throw this.m9_1;
|
|
@@ -2038,34 +2038,34 @@
|
|
|
2038
2038
|
}
|
|
2039
2039
|
while (true);
|
|
2040
2040
|
};
|
|
2041
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2042
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2043
|
-
i.
|
|
2044
|
-
i.
|
|
2041
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
2042
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.c9v_1, completion);
|
|
2043
|
+
i.d9v_1 = $this$dispatchAsync;
|
|
2044
|
+
i.e9v_1 = store;
|
|
2045
2045
|
return i;
|
|
2046
2046
|
};
|
|
2047
2047
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2048
2048
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2049
2049
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2050
|
-
return i.
|
|
2050
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
2051
2051
|
};
|
|
2052
2052
|
l.$arity = 2;
|
|
2053
2053
|
return l;
|
|
2054
2054
|
}
|
|
2055
2055
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2056
|
+
this.n9v_1 = $playerId;
|
|
2057
|
+
this.o9v_1 = this$0;
|
|
2058
2058
|
CoroutineImpl.call(this, resultContinuation);
|
|
2059
2059
|
}
|
|
2060
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2061
|
-
var tmp = this.
|
|
2060
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
2061
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
2062
2062
|
tmp.l9_1 = Unit_instance;
|
|
2063
2063
|
tmp.m9_1 = null;
|
|
2064
2064
|
return tmp.r9();
|
|
2065
2065
|
};
|
|
2066
2066
|
protoOf(GameServer$roomRefreshPlayerState$slambda).ca = function (p1, p2, $completion) {
|
|
2067
2067
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2068
|
-
return this.
|
|
2068
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2069
2069
|
};
|
|
2070
2070
|
protoOf(GameServer$roomRefreshPlayerState$slambda).r9 = function () {
|
|
2071
2071
|
var suspendResult = this.l9_1;
|
|
@@ -2074,14 +2074,14 @@
|
|
|
2074
2074
|
var tmp = this.j9_1;
|
|
2075
2075
|
if (tmp === 0) {
|
|
2076
2076
|
this.k9_1 = 1;
|
|
2077
|
-
var table = this.
|
|
2078
|
-
var player = getPlayer(table.players, this.
|
|
2079
|
-
if (player.
|
|
2080
|
-
this.
|
|
2077
|
+
var table = this.q9v_1.state.s6r();
|
|
2078
|
+
var player = getPlayer(table.players, this.n9v_1);
|
|
2079
|
+
if (player.o6x_1.y6d().p6c_1.isLive) {
|
|
2080
|
+
this.q9v_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.o9v_1).o8t(player, table));
|
|
2081
2081
|
} else {
|
|
2082
|
-
var tmp_0 = this.
|
|
2082
|
+
var tmp_0 = this.q9v_1.dispatch;
|
|
2083
2083
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2084
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2084
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.n9v_1));
|
|
2085
2085
|
}
|
|
2086
2086
|
return Unit_instance;
|
|
2087
2087
|
} else if (tmp === 1) {
|
|
@@ -2093,34 +2093,34 @@
|
|
|
2093
2093
|
}
|
|
2094
2094
|
while (true);
|
|
2095
2095
|
};
|
|
2096
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2097
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
2098
|
-
i.
|
|
2099
|
-
i.
|
|
2096
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
2097
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.n9v_1, this.o9v_1, completion);
|
|
2098
|
+
i.p9v_1 = $this$dispatchAsync;
|
|
2099
|
+
i.q9v_1 = store;
|
|
2100
2100
|
return i;
|
|
2101
2101
|
};
|
|
2102
2102
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
2103
2103
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
2104
2104
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2105
|
-
return i.
|
|
2105
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
2106
2106
|
};
|
|
2107
2107
|
l.$arity = 2;
|
|
2108
2108
|
return l;
|
|
2109
2109
|
}
|
|
2110
2110
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
2111
|
-
this.
|
|
2112
|
-
this.
|
|
2111
|
+
this.z9v_1 = this$0;
|
|
2112
|
+
this.a9w_1 = $newRid;
|
|
2113
2113
|
CoroutineImpl.call(this, resultContinuation);
|
|
2114
2114
|
}
|
|
2115
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2116
|
-
var tmp = this.
|
|
2115
|
+
protoOf(GameServer$roomOnDelete$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
2116
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
2117
2117
|
tmp.l9_1 = Unit_instance;
|
|
2118
2118
|
tmp.m9_1 = null;
|
|
2119
2119
|
return tmp.r9();
|
|
2120
2120
|
};
|
|
2121
2121
|
protoOf(GameServer$roomOnDelete$slambda).ca = function (p1, p2, $completion) {
|
|
2122
2122
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2123
|
-
return this.
|
|
2123
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2124
2124
|
};
|
|
2125
2125
|
protoOf(GameServer$roomOnDelete$slambda).r9 = function () {
|
|
2126
2126
|
var suspendResult = this.l9_1;
|
|
@@ -2129,27 +2129,27 @@
|
|
|
2129
2129
|
var tmp = this.j9_1;
|
|
2130
2130
|
if (tmp === 0) {
|
|
2131
2131
|
this.k9_1 = 1;
|
|
2132
|
-
var it = this.
|
|
2132
|
+
var it = this.z9v_1.v6b().e6r_1;
|
|
2133
2133
|
var tmp_0;
|
|
2134
2134
|
if (it == null) {
|
|
2135
|
-
_get_logger__rkp4sl(this.
|
|
2135
|
+
_get_logger__rkp4sl(this.z9v_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
2136
2136
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
2137
2137
|
} else {
|
|
2138
2138
|
tmp_0 = it;
|
|
2139
2139
|
}
|
|
2140
2140
|
var terminationState = tmp_0;
|
|
2141
|
-
var gameTransition = terminationState.
|
|
2141
|
+
var gameTransition = terminationState.s8x_1;
|
|
2142
2142
|
var tmp_1;
|
|
2143
2143
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2144
|
-
var tmp0_elvis_lhs = this.
|
|
2144
|
+
var tmp0_elvis_lhs = this.a9w_1;
|
|
2145
2145
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
2146
2146
|
} else {
|
|
2147
2147
|
tmp_1 = gameTransition;
|
|
2148
2148
|
}
|
|
2149
2149
|
var transition = tmp_1;
|
|
2150
|
-
var tmp_2 = this.
|
|
2151
|
-
var tmp0_reason = terminationState.
|
|
2152
|
-
var tmp1_isGameFinished = this.
|
|
2150
|
+
var tmp_2 = this.c9w_1.dispatch;
|
|
2151
|
+
var tmp0_reason = terminationState.r8x_1;
|
|
2152
|
+
var tmp1_isGameFinished = this.z9v_1.v6b().s6r().isGameFinished;
|
|
2153
2153
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2154
2154
|
return Unit_instance;
|
|
2155
2155
|
} else if (tmp === 1) {
|
|
@@ -2161,33 +2161,33 @@
|
|
|
2161
2161
|
}
|
|
2162
2162
|
while (true);
|
|
2163
2163
|
};
|
|
2164
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2165
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
2166
|
-
i.
|
|
2167
|
-
i.
|
|
2164
|
+
protoOf(GameServer$roomOnDelete$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
2165
|
+
var i = new GameServer$roomOnDelete$slambda(this.z9v_1, this.a9w_1, completion);
|
|
2166
|
+
i.b9w_1 = $this$dispatchAsync;
|
|
2167
|
+
i.c9w_1 = store;
|
|
2168
2168
|
return i;
|
|
2169
2169
|
};
|
|
2170
2170
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
2171
2171
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
2172
2172
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2173
|
-
return i.
|
|
2173
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
2174
2174
|
};
|
|
2175
2175
|
l.$arity = 2;
|
|
2176
2176
|
return l;
|
|
2177
2177
|
}
|
|
2178
2178
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
2179
|
-
this.
|
|
2179
|
+
this.l9w_1 = $enabled;
|
|
2180
2180
|
CoroutineImpl.call(this, resultContinuation);
|
|
2181
2181
|
}
|
|
2182
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2183
|
-
var tmp = this.
|
|
2182
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
2183
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
2184
2184
|
tmp.l9_1 = Unit_instance;
|
|
2185
2185
|
tmp.m9_1 = null;
|
|
2186
2186
|
return tmp.r9();
|
|
2187
2187
|
};
|
|
2188
2188
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).ca = function (p1, p2, $completion) {
|
|
2189
2189
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2190
|
-
return this.
|
|
2190
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2191
2191
|
};
|
|
2192
2192
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).r9 = function () {
|
|
2193
2193
|
var suspendResult = this.l9_1;
|
|
@@ -2196,7 +2196,7 @@
|
|
|
2196
2196
|
var tmp = this.j9_1;
|
|
2197
2197
|
if (tmp === 0) {
|
|
2198
2198
|
this.k9_1 = 1;
|
|
2199
|
-
this.
|
|
2199
|
+
this.n9w_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.n9w_1.state).config.copy(VOID, this.l9w_1)));
|
|
2200
2200
|
return Unit_instance;
|
|
2201
2201
|
} else if (tmp === 1) {
|
|
2202
2202
|
throw this.m9_1;
|
|
@@ -2207,35 +2207,35 @@
|
|
|
2207
2207
|
}
|
|
2208
2208
|
while (true);
|
|
2209
2209
|
};
|
|
2210
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2211
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
2212
|
-
i.
|
|
2213
|
-
i.
|
|
2210
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
2211
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.l9w_1, completion);
|
|
2212
|
+
i.m9w_1 = $this$dispatchAsync;
|
|
2213
|
+
i.n9w_1 = store;
|
|
2214
2214
|
return i;
|
|
2215
2215
|
};
|
|
2216
2216
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
2217
2217
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
2218
2218
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2219
|
-
return i.
|
|
2219
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
2220
2220
|
};
|
|
2221
2221
|
l.$arity = 2;
|
|
2222
2222
|
return l;
|
|
2223
2223
|
}
|
|
2224
2224
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2225
|
+
this.w9w_1 = $reason;
|
|
2226
|
+
this.x9w_1 = this$0;
|
|
2227
|
+
this.y9w_1 = $roomId;
|
|
2228
2228
|
CoroutineImpl.call(this, resultContinuation);
|
|
2229
2229
|
}
|
|
2230
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2231
|
-
var tmp = this.
|
|
2230
|
+
protoOf(GameServer$shutdown$slambda).o9q = function ($this$dispatchAsync, store, $completion) {
|
|
2231
|
+
var tmp = this.p9q($this$dispatchAsync, store, $completion);
|
|
2232
2232
|
tmp.l9_1 = Unit_instance;
|
|
2233
2233
|
tmp.m9_1 = null;
|
|
2234
2234
|
return tmp.r9();
|
|
2235
2235
|
};
|
|
2236
2236
|
protoOf(GameServer$shutdown$slambda).ca = function (p1, p2, $completion) {
|
|
2237
2237
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2238
|
-
return this.
|
|
2238
|
+
return this.o9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2239
2239
|
};
|
|
2240
2240
|
protoOf(GameServer$shutdown$slambda).r9 = function () {
|
|
2241
2241
|
var suspendResult = this.l9_1;
|
|
@@ -2244,11 +2244,11 @@
|
|
|
2244
2244
|
var tmp = this.j9_1;
|
|
2245
2245
|
if (tmp === 0) {
|
|
2246
2246
|
this.k9_1 = 1;
|
|
2247
|
-
var state = this.
|
|
2247
|
+
var state = this.a9x_1.store.state;
|
|
2248
2248
|
if (state.t6r()) {
|
|
2249
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
2249
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.w9w_1, get_serverShutdownReasonMapping());
|
|
2250
2250
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
2251
|
-
var tmp_0 = this.
|
|
2251
|
+
var tmp_0 = this.a9x_1.dispatch;
|
|
2252
2252
|
var tmp_1 = Companion_instance;
|
|
2253
2253
|
var tmp_2;
|
|
2254
2254
|
switch (shutdownReason.r2_1) {
|
|
@@ -2262,12 +2262,12 @@
|
|
|
2262
2262
|
noWhenBranchMatchedException();
|
|
2263
2263
|
break;
|
|
2264
2264
|
}
|
|
2265
|
-
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.
|
|
2265
|
+
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.x9w_1.table.isGameFinished, this.x9w_1.table));
|
|
2266
2266
|
} else {
|
|
2267
|
-
_get_logger__rkp4sl(this.
|
|
2268
|
-
var tmp_3 = this.
|
|
2267
|
+
_get_logger__rkp4sl(this.x9w_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.y9w_1);
|
|
2268
|
+
var tmp_3 = this.a9x_1.dispatch;
|
|
2269
2269
|
var tmp2_safe_receiver = state.e6r_1;
|
|
2270
|
-
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2270
|
+
tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s8x_1));
|
|
2271
2271
|
}
|
|
2272
2272
|
return Unit_instance;
|
|
2273
2273
|
} else if (tmp === 1) {
|
|
@@ -2279,16 +2279,16 @@
|
|
|
2279
2279
|
}
|
|
2280
2280
|
while (true);
|
|
2281
2281
|
};
|
|
2282
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2283
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
2284
|
-
i.
|
|
2285
|
-
i.
|
|
2282
|
+
protoOf(GameServer$shutdown$slambda).p9q = function ($this$dispatchAsync, store, completion) {
|
|
2283
|
+
var i = new GameServer$shutdown$slambda(this.w9w_1, this.x9w_1, this.y9w_1, completion);
|
|
2284
|
+
i.z9w_1 = $this$dispatchAsync;
|
|
2285
|
+
i.a9x_1 = store;
|
|
2286
2286
|
return i;
|
|
2287
2287
|
};
|
|
2288
2288
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
2289
2289
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
2290
2290
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2291
|
-
return i.
|
|
2291
|
+
return i.o9q($this$dispatchAsync, store, $completion);
|
|
2292
2292
|
};
|
|
2293
2293
|
l.$arity = 2;
|
|
2294
2294
|
return l;
|
|
@@ -2317,46 +2317,46 @@
|
|
|
2317
2317
|
// Inline function 'org.kodein.type.generic' call
|
|
2318
2318
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2319
2319
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2320
|
-
tmp_1.
|
|
2320
|
+
tmp_1.x9n_1 = Instance(di, tmp$ret$2, null).d64(this, logger$factory());
|
|
2321
2321
|
var tmp_3 = this;
|
|
2322
2322
|
// Inline function 'org.kodein.di.instance' call
|
|
2323
2323
|
// Inline function 'org.kodein.type.generic' call
|
|
2324
2324
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2325
2325
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2326
|
-
tmp_3.
|
|
2326
|
+
tmp_3.y9n_1 = Instance(di, tmp$ret$4, null).d64(this, toClientEventsObserver$factory());
|
|
2327
2327
|
var tmp_5 = this;
|
|
2328
2328
|
// Inline function 'org.kodein.di.instance' call
|
|
2329
2329
|
// Inline function 'org.kodein.type.generic' call
|
|
2330
2330
|
var tmp_6 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
2331
2331
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2332
|
-
tmp_5.
|
|
2332
|
+
tmp_5.z9n_1 = Instance(di, tmp$ret$6, null).d64(this, fromClientEventsObserver$factory());
|
|
2333
2333
|
var tmp_7 = this;
|
|
2334
2334
|
// Inline function 'org.kodein.di.instance' call
|
|
2335
2335
|
// Inline function 'org.kodein.type.generic' call
|
|
2336
2336
|
var tmp_8 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2337
2337
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2338
|
-
tmp_7.
|
|
2338
|
+
tmp_7.a9o_1 = Instance(di, tmp$ret$8, null).d64(this, playerConnectionInteractor$factory());
|
|
2339
2339
|
var tmp_9 = this;
|
|
2340
2340
|
// Inline function 'org.kodein.di.instance' call
|
|
2341
2341
|
// Inline function 'org.kodein.type.generic' call
|
|
2342
2342
|
var tmp_10 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
2343
2343
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2344
|
-
tmp_9.
|
|
2344
|
+
tmp_9.b9o_1 = Instance(di, tmp$ret$10, null).d64(this, teamsLogicProvider$factory());
|
|
2345
2345
|
var tmp_11 = this;
|
|
2346
|
-
tmp_11.
|
|
2346
|
+
tmp_11.c9o_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
2347
2347
|
var tmp_12 = this;
|
|
2348
2348
|
// Inline function 'org.kodein.di.instance' call
|
|
2349
2349
|
// Inline function 'org.kodein.type.generic' call
|
|
2350
2350
|
var tmp_13 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2351
2351
|
var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
2352
|
-
tmp_12.
|
|
2352
|
+
tmp_12.d9o_1 = Instance(di, tmp$ret$12, null).d64(this, idsProvider$factory());
|
|
2353
2353
|
var tmp_14 = this;
|
|
2354
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
2355
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
2356
|
-
tmp_14.
|
|
2354
|
+
var tmp0_externalMiddlewares = plus(storeContract.d92(), externalMiddlewares);
|
|
2355
|
+
var tmp1_externalReducers = plus(storeContract.c92(), externalReducers);
|
|
2356
|
+
tmp_14.e9o_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
2357
2357
|
}
|
|
2358
2358
|
protoOf(GameServer).r6q = function () {
|
|
2359
|
-
return this.
|
|
2359
|
+
return this.e9o_1;
|
|
2360
2360
|
};
|
|
2361
2361
|
protoOf(GameServer).g5l = function () {
|
|
2362
2362
|
return this.v6b().s6r().id;
|
|
@@ -2384,55 +2384,55 @@
|
|
|
2384
2384
|
};
|
|
2385
2385
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
2386
2386
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
2387
|
-
this.
|
|
2387
|
+
this.e9o_1.r6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
2388
2388
|
};
|
|
2389
2389
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
2390
2390
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
2391
|
-
this.
|
|
2391
|
+
this.e9o_1.r6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
2392
2392
|
};
|
|
2393
2393
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
2394
2394
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
2395
|
-
this.
|
|
2395
|
+
this.e9o_1.r6r(GameServer$playerLive$slambda_0(this, playerId, null));
|
|
2396
2396
|
};
|
|
2397
2397
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
2398
2398
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
2399
|
-
this.
|
|
2399
|
+
this.e9o_1.r6r(GameServer$playerLeft$slambda_0(this, playerId, null));
|
|
2400
2400
|
};
|
|
2401
|
-
protoOf(GameServer).
|
|
2401
|
+
protoOf(GameServer).b9x = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
2402
2402
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
2403
|
-
this.
|
|
2403
|
+
this.e9o_1.r6r(GameServer$roomOnCreate$slambda_0(usersArray, config, this, roomId, transition, gameCreatorId, spectators, null));
|
|
2404
2404
|
};
|
|
2405
2405
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
2406
2406
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
2407
|
-
this.
|
|
2408
|
-
this.
|
|
2407
|
+
this.e9o_1.r6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
2408
|
+
this.e9o_1.r6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
2409
2409
|
};
|
|
2410
2410
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
2411
2411
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2412
|
+
this.e9o_1.r6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
2413
|
+
this.e9o_1.r6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
2414
2414
|
};
|
|
2415
2415
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
2416
|
-
this.
|
|
2416
|
+
this.e9o_1.r6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
2417
2417
|
};
|
|
2418
2418
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
2419
|
-
this.
|
|
2419
|
+
this.e9o_1.r6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
2420
2420
|
};
|
|
2421
2421
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
2422
2422
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
2423
|
-
this.
|
|
2423
|
+
this.e9o_1.r6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
2424
2424
|
};
|
|
2425
|
-
protoOf(GameServer).
|
|
2425
|
+
protoOf(GameServer).c9x = function (newRid) {
|
|
2426
2426
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
2427
|
-
this.
|
|
2427
|
+
this.e9o_1.r6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
2428
2428
|
};
|
|
2429
2429
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
2430
2430
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
2431
|
-
this.
|
|
2431
|
+
this.e9o_1.r6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
2432
2432
|
};
|
|
2433
|
-
protoOf(GameServer).
|
|
2433
|
+
protoOf(GameServer).d9x = function (reason, roomId) {
|
|
2434
2434
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
2435
|
-
this.
|
|
2435
|
+
this.e9o_1.r6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
2436
2436
|
};
|
|
2437
2437
|
protoOf(GameServer).clear = function () {
|
|
2438
2438
|
return this.d2();
|
|
@@ -2548,10 +2548,10 @@
|
|
|
2548
2548
|
this.fromRound = fromRound;
|
|
2549
2549
|
this.canStartNewGame = canStartNewGame;
|
|
2550
2550
|
}
|
|
2551
|
-
protoOf(ServerConfig).
|
|
2551
|
+
protoOf(ServerConfig).e9x = function () {
|
|
2552
2552
|
return this.fromRound;
|
|
2553
2553
|
};
|
|
2554
|
-
protoOf(ServerConfig).
|
|
2554
|
+
protoOf(ServerConfig).f9x = function () {
|
|
2555
2555
|
return this.canStartNewGame;
|
|
2556
2556
|
};
|
|
2557
2557
|
protoOf(ServerConfig).ue = function () {
|
|
@@ -2560,13 +2560,13 @@
|
|
|
2560
2560
|
protoOf(ServerConfig).ve = function () {
|
|
2561
2561
|
return this.canStartNewGame;
|
|
2562
2562
|
};
|
|
2563
|
-
protoOf(ServerConfig).
|
|
2563
|
+
protoOf(ServerConfig).g9x = function (fromRound, canStartNewGame) {
|
|
2564
2564
|
return new ServerConfig(fromRound, canStartNewGame);
|
|
2565
2565
|
};
|
|
2566
2566
|
protoOf(ServerConfig).copy = function (fromRound, canStartNewGame, $super) {
|
|
2567
2567
|
fromRound = fromRound === VOID ? this.fromRound : fromRound;
|
|
2568
2568
|
canStartNewGame = canStartNewGame === VOID ? this.canStartNewGame : canStartNewGame;
|
|
2569
|
-
return this.
|
|
2569
|
+
return this.g9x(fromRound, canStartNewGame);
|
|
2570
2570
|
};
|
|
2571
2571
|
protoOf(ServerConfig).toString = function () {
|
|
2572
2572
|
return 'ServerConfig(fromRound=' + this.fromRound + ', canStartNewGame=' + this.canStartNewGame + ')';
|
|
@@ -2599,12 +2599,12 @@
|
|
|
2599
2599
|
protoOf(TableStateUpdate).ue = function () {
|
|
2600
2600
|
return this.table;
|
|
2601
2601
|
};
|
|
2602
|
-
protoOf(TableStateUpdate).
|
|
2602
|
+
protoOf(TableStateUpdate).h9x = function (table) {
|
|
2603
2603
|
return new TableStateUpdate(table);
|
|
2604
2604
|
};
|
|
2605
2605
|
protoOf(TableStateUpdate).copy = function (table, $super) {
|
|
2606
2606
|
table = table === VOID ? this.table : table;
|
|
2607
|
-
return this.
|
|
2607
|
+
return this.h9x(table);
|
|
2608
2608
|
};
|
|
2609
2609
|
protoOf(TableStateUpdate).toString = function () {
|
|
2610
2610
|
return 'TableStateUpdate(table=' + this.table.toString() + ')';
|
|
@@ -2625,18 +2625,18 @@
|
|
|
2625
2625
|
function ActionsStateUpdate(actions) {
|
|
2626
2626
|
this.actions = actions;
|
|
2627
2627
|
}
|
|
2628
|
-
protoOf(ActionsStateUpdate).
|
|
2628
|
+
protoOf(ActionsStateUpdate).h8f = function () {
|
|
2629
2629
|
return this.actions;
|
|
2630
2630
|
};
|
|
2631
2631
|
protoOf(ActionsStateUpdate).ue = function () {
|
|
2632
2632
|
return this.actions;
|
|
2633
2633
|
};
|
|
2634
|
-
protoOf(ActionsStateUpdate).
|
|
2634
|
+
protoOf(ActionsStateUpdate).i9x = function (actions) {
|
|
2635
2635
|
return new ActionsStateUpdate(actions);
|
|
2636
2636
|
};
|
|
2637
2637
|
protoOf(ActionsStateUpdate).copy = function (actions, $super) {
|
|
2638
2638
|
actions = actions === VOID ? this.actions : actions;
|
|
2639
|
-
return this.
|
|
2639
|
+
return this.i9x(actions);
|
|
2640
2640
|
};
|
|
2641
2641
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
2642
2642
|
return 'ActionsStateUpdate(actions=' + toString(this.actions) + ')';
|
|
@@ -2882,18 +2882,18 @@
|
|
|
2882
2882
|
function ToClientEventsObserver() {
|
|
2883
2883
|
}
|
|
2884
2884
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2885
|
-
this.
|
|
2886
|
-
this.
|
|
2885
|
+
this.s9x_1 = this$0;
|
|
2886
|
+
this.t9x_1 = $actions;
|
|
2887
2887
|
CoroutineImpl.call(this, resultContinuation);
|
|
2888
2888
|
}
|
|
2889
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2890
|
-
var tmp = this.
|
|
2889
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).a9y = function ($this$flow, $completion) {
|
|
2890
|
+
var tmp = this.b9y($this$flow, $completion);
|
|
2891
2891
|
tmp.l9_1 = Unit_instance;
|
|
2892
2892
|
tmp.m9_1 = null;
|
|
2893
2893
|
return tmp.r9();
|
|
2894
2894
|
};
|
|
2895
2895
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).ba = function (p1, $completion) {
|
|
2896
|
-
return this.
|
|
2896
|
+
return this.a9y((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2897
2897
|
};
|
|
2898
2898
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).r9 = function () {
|
|
2899
2899
|
var suspendResult = this.l9_1;
|
|
@@ -2904,23 +2904,23 @@
|
|
|
2904
2904
|
case 0:
|
|
2905
2905
|
this.k9_1 = 4;
|
|
2906
2906
|
var tmp_0 = this;
|
|
2907
|
-
tmp_0.
|
|
2907
|
+
tmp_0.v9x_1 = this.s9x_1.g9y_1;
|
|
2908
2908
|
var tmp_1 = this;
|
|
2909
|
-
tmp_1.
|
|
2910
|
-
this.
|
|
2909
|
+
tmp_1.w9x_1 = transformToEmits(this.s9x_1, this.t9x_1);
|
|
2910
|
+
this.x9x_1 = this.w9x_1.j();
|
|
2911
2911
|
this.j9_1 = 1;
|
|
2912
2912
|
continue $sm;
|
|
2913
2913
|
case 1:
|
|
2914
|
-
if (!this.
|
|
2914
|
+
if (!this.x9x_1.k()) {
|
|
2915
2915
|
this.j9_1 = 3;
|
|
2916
2916
|
continue $sm;
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
|
-
this.
|
|
2919
|
+
this.y9x_1 = this.x9x_1.l();
|
|
2920
2920
|
var tmp_2 = this;
|
|
2921
|
-
tmp_2.
|
|
2921
|
+
tmp_2.z9x_1 = this.y9x_1;
|
|
2922
2922
|
this.j9_1 = 2;
|
|
2923
|
-
suspendResult = this.
|
|
2923
|
+
suspendResult = this.u9x_1.r18(this.z9x_1, this);
|
|
2924
2924
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2925
2925
|
return suspendResult;
|
|
2926
2926
|
}
|
|
@@ -2931,10 +2931,10 @@
|
|
|
2931
2931
|
continue $sm;
|
|
2932
2932
|
case 3:
|
|
2933
2933
|
l$ret$1: do {
|
|
2934
|
-
var this_0 = this.
|
|
2934
|
+
var this_0 = this.s9x_1.f9y_1;
|
|
2935
2935
|
while (true) {
|
|
2936
2936
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2937
|
-
var upd = cur - this.
|
|
2937
|
+
var upd = cur - this.t9x_1.m() | 0;
|
|
2938
2938
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2939
2939
|
break l$ret$1;
|
|
2940
2940
|
}
|
|
@@ -2956,15 +2956,15 @@
|
|
|
2956
2956
|
}
|
|
2957
2957
|
while (true);
|
|
2958
2958
|
};
|
|
2959
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2960
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2961
|
-
i.
|
|
2959
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).b9y = function ($this$flow, completion) {
|
|
2960
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.s9x_1, this.t9x_1, completion);
|
|
2961
|
+
i.u9x_1 = $this$flow;
|
|
2962
2962
|
return i;
|
|
2963
2963
|
};
|
|
2964
2964
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2965
2965
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2966
2966
|
var l = function ($this$flow, $completion) {
|
|
2967
|
-
return i.
|
|
2967
|
+
return i.a9y($this$flow, $completion);
|
|
2968
2968
|
};
|
|
2969
2969
|
l.$arity = 1;
|
|
2970
2970
|
return l;
|
|
@@ -3037,29 +3037,29 @@
|
|
|
3037
3037
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
3038
3038
|
}
|
|
3039
3039
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3040
|
-
var tmp = $this.
|
|
3040
|
+
var tmp = $this.e9y_1.k6i();
|
|
3041
3041
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3042
|
-
var this_0 = _this__u8e3s4.
|
|
3042
|
+
var this_0 = _this__u8e3s4.j9y_1;
|
|
3043
3043
|
var tmp_0 = copyToArray(this_0);
|
|
3044
3044
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3045
|
-
var this_1 = _this__u8e3s4.
|
|
3045
|
+
var this_1 = _this__u8e3s4.k9y_1;
|
|
3046
3046
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3047
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3047
|
+
return new ActionDeliveryPayload(_this__u8e3s4.i9y_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.l9y_1);
|
|
3048
3048
|
}
|
|
3049
3049
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3052
|
-
this.
|
|
3053
|
-
this.
|
|
3050
|
+
this.i9y_1 = tableId;
|
|
3051
|
+
this.j9y_1 = includePlayers;
|
|
3052
|
+
this.k9y_1 = excludePlayers;
|
|
3053
|
+
this.l9y_1 = deliveryType;
|
|
3054
3054
|
}
|
|
3055
3055
|
protoOf(GroupKey).toString = function () {
|
|
3056
|
-
return 'GroupKey(tableId=' + this.
|
|
3056
|
+
return 'GroupKey(tableId=' + this.i9y_1 + ', includePlayers=' + toString(this.j9y_1) + ', excludePlayers=' + toString(this.k9y_1) + ', deliveryType=' + this.l9y_1.toString() + ')';
|
|
3057
3057
|
};
|
|
3058
3058
|
protoOf(GroupKey).hashCode = function () {
|
|
3059
|
-
var result = getStringHashCode(this.
|
|
3060
|
-
result = imul(result, 31) + hashCode(this.
|
|
3061
|
-
result = imul(result, 31) + hashCode(this.
|
|
3062
|
-
result = imul(result, 31) + this.
|
|
3059
|
+
var result = getStringHashCode(this.i9y_1);
|
|
3060
|
+
result = imul(result, 31) + hashCode(this.j9y_1) | 0;
|
|
3061
|
+
result = imul(result, 31) + hashCode(this.k9y_1) | 0;
|
|
3062
|
+
result = imul(result, 31) + this.l9y_1.hashCode() | 0;
|
|
3063
3063
|
return result;
|
|
3064
3064
|
};
|
|
3065
3065
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3068,35 +3068,35 @@
|
|
|
3068
3068
|
if (!(other instanceof GroupKey))
|
|
3069
3069
|
return false;
|
|
3070
3070
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3071
|
-
if (!(this.
|
|
3071
|
+
if (!(this.i9y_1 === tmp0_other_with_cast.i9y_1))
|
|
3072
3072
|
return false;
|
|
3073
|
-
if (!equals(this.
|
|
3073
|
+
if (!equals(this.j9y_1, tmp0_other_with_cast.j9y_1))
|
|
3074
3074
|
return false;
|
|
3075
|
-
if (!equals(this.
|
|
3075
|
+
if (!equals(this.k9y_1, tmp0_other_with_cast.k9y_1))
|
|
3076
3076
|
return false;
|
|
3077
|
-
if (!this.
|
|
3077
|
+
if (!this.l9y_1.equals(tmp0_other_with_cast.l9y_1))
|
|
3078
3078
|
return false;
|
|
3079
3079
|
return true;
|
|
3080
3080
|
};
|
|
3081
3081
|
function Companion_1() {
|
|
3082
|
-
this.
|
|
3082
|
+
this.m9y_1 = 6;
|
|
3083
3083
|
}
|
|
3084
3084
|
var Companion_instance_9;
|
|
3085
3085
|
function Companion_getInstance_2() {
|
|
3086
3086
|
return Companion_instance_9;
|
|
3087
3087
|
}
|
|
3088
3088
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3089
|
-
this.
|
|
3089
|
+
this.v9y_1 = this$0;
|
|
3090
3090
|
CoroutineImpl.call(this, resultContinuation);
|
|
3091
3091
|
}
|
|
3092
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3093
|
-
var tmp = this.
|
|
3092
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).x9y = function (actions, $completion) {
|
|
3093
|
+
var tmp = this.y9y(actions, $completion);
|
|
3094
3094
|
tmp.l9_1 = Unit_instance;
|
|
3095
3095
|
tmp.m9_1 = null;
|
|
3096
3096
|
return tmp.r9();
|
|
3097
3097
|
};
|
|
3098
3098
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ba = function (p1, $completion) {
|
|
3099
|
-
return this.
|
|
3099
|
+
return this.x9y((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3100
3100
|
};
|
|
3101
3101
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).r9 = function () {
|
|
3102
3102
|
var suspendResult = this.l9_1;
|
|
@@ -3105,7 +3105,7 @@
|
|
|
3105
3105
|
var tmp = this.j9_1;
|
|
3106
3106
|
if (tmp === 0) {
|
|
3107
3107
|
this.k9_1 = 1;
|
|
3108
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3108
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.v9y_1, this.w9y_1, null));
|
|
3109
3109
|
} else if (tmp === 1) {
|
|
3110
3110
|
throw this.m9_1;
|
|
3111
3111
|
}
|
|
@@ -3115,23 +3115,23 @@
|
|
|
3115
3115
|
}
|
|
3116
3116
|
while (true);
|
|
3117
3117
|
};
|
|
3118
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3119
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3120
|
-
i.
|
|
3118
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).y9y = function (actions, completion) {
|
|
3119
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.v9y_1, completion);
|
|
3120
|
+
i.w9y_1 = actions;
|
|
3121
3121
|
return i;
|
|
3122
3122
|
};
|
|
3123
3123
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3124
3124
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3125
3125
|
var l = function (actions, $completion) {
|
|
3126
|
-
return i.
|
|
3126
|
+
return i.x9y(actions, $completion);
|
|
3127
3127
|
};
|
|
3128
3128
|
l.$arity = 1;
|
|
3129
3129
|
return l;
|
|
3130
3130
|
}
|
|
3131
3131
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3132
3132
|
CoroutineImpl.call(this, resultContinuation);
|
|
3133
|
-
this.
|
|
3134
|
-
this.
|
|
3133
|
+
this.h9z_1 = _this__u8e3s4;
|
|
3134
|
+
this.i9z_1 = fromEvent;
|
|
3135
3135
|
}
|
|
3136
3136
|
protoOf($sentEventCOROUTINE$3).r9 = function () {
|
|
3137
3137
|
var suspendResult = this.l9_1;
|
|
@@ -3142,9 +3142,9 @@
|
|
|
3142
3142
|
case 0:
|
|
3143
3143
|
this.k9_1 = 2;
|
|
3144
3144
|
var tmp_0 = this;
|
|
3145
|
-
tmp_0.
|
|
3145
|
+
tmp_0.j9z_1 = this.h9z_1.g9y_1;
|
|
3146
3146
|
l$ret$1: do {
|
|
3147
|
-
var this_0 = this.
|
|
3147
|
+
var this_0 = this.h9z_1.f9y_1;
|
|
3148
3148
|
while (true) {
|
|
3149
3149
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3150
3150
|
var upd = cur + 1 | 0;
|
|
@@ -3155,7 +3155,7 @@
|
|
|
3155
3155
|
}
|
|
3156
3156
|
while (false);
|
|
3157
3157
|
this.j9_1 = 1;
|
|
3158
|
-
suspendResult = this.
|
|
3158
|
+
suspendResult = this.h9z_1.h9y_1.r18(this.i9z_1, this);
|
|
3159
3159
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3160
3160
|
return suspendResult;
|
|
3161
3161
|
}
|
|
@@ -3179,7 +3179,7 @@
|
|
|
3179
3179
|
};
|
|
3180
3180
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3181
3181
|
CoroutineImpl.call(this, resultContinuation);
|
|
3182
|
-
this.
|
|
3182
|
+
this.s9z_1 = _this__u8e3s4;
|
|
3183
3183
|
}
|
|
3184
3184
|
protoOf($waitForCOROUTINE$4).r9 = function () {
|
|
3185
3185
|
var suspendResult = this.l9_1;
|
|
@@ -3190,12 +3190,12 @@
|
|
|
3190
3190
|
case 0:
|
|
3191
3191
|
this.k9_1 = 5;
|
|
3192
3192
|
var tmp_0 = this;
|
|
3193
|
-
tmp_0.
|
|
3194
|
-
this.
|
|
3193
|
+
tmp_0.t9z_1 = this.s9z_1.g9y_1;
|
|
3194
|
+
this.u9z_1 = 0;
|
|
3195
3195
|
this.j9_1 = 1;
|
|
3196
3196
|
continue $sm;
|
|
3197
3197
|
case 1:
|
|
3198
|
-
if (!!(this.
|
|
3198
|
+
if (!!(this.s9z_1.f9y_1.kotlinx$atomicfu$value === 0)) {
|
|
3199
3199
|
this.j9_1 = 4;
|
|
3200
3200
|
continue $sm;
|
|
3201
3201
|
}
|
|
@@ -3208,9 +3208,9 @@
|
|
|
3208
3208
|
|
|
3209
3209
|
continue $sm;
|
|
3210
3210
|
case 2:
|
|
3211
|
-
this.
|
|
3212
|
-
if (this.
|
|
3213
|
-
this.
|
|
3211
|
+
this.u9z_1 = this.u9z_1 + 1 | 0;
|
|
3212
|
+
if (this.u9z_1 > 6) {
|
|
3213
|
+
this.s9z_1.d9y_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.s9z_1.f9y_1.kotlinx$atomicfu$value);
|
|
3214
3214
|
this.j9_1 = 4;
|
|
3215
3215
|
continue $sm;
|
|
3216
3216
|
} else {
|
|
@@ -3238,42 +3238,42 @@
|
|
|
3238
3238
|
while (true);
|
|
3239
3239
|
};
|
|
3240
3240
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3241
|
-
this.
|
|
3242
|
-
this.
|
|
3243
|
-
this.
|
|
3244
|
-
this.
|
|
3241
|
+
this.c9y_1 = serverReduxConfig;
|
|
3242
|
+
this.d9y_1 = logger;
|
|
3243
|
+
this.e9y_1 = idsProvider;
|
|
3244
|
+
this.f9y_1 = atomic$ref$1(0);
|
|
3245
3245
|
var tmp = this;
|
|
3246
3246
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3247
|
-
tmp.
|
|
3248
|
-
this.
|
|
3247
|
+
tmp.g9y_1 = get_atomicfu$reentrantLock();
|
|
3248
|
+
this.h9y_1 = MutableSharedFlow();
|
|
3249
3249
|
}
|
|
3250
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3250
|
+
protoOf(ToClientEventsObserverImpl).j9x = function (fromEvent, $completion) {
|
|
3251
3251
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3252
3252
|
tmp.l9_1 = Unit_instance;
|
|
3253
3253
|
tmp.m9_1 = null;
|
|
3254
3254
|
return tmp.r9();
|
|
3255
3255
|
};
|
|
3256
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3256
|
+
protoOf(ToClientEventsObserverImpl).s9a = function ($completion) {
|
|
3257
3257
|
var tmp = new $waitForCOROUTINE$4(this, $completion);
|
|
3258
3258
|
tmp.l9_1 = Unit_instance;
|
|
3259
3259
|
tmp.m9_1 = null;
|
|
3260
3260
|
return tmp.r9();
|
|
3261
3261
|
};
|
|
3262
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3263
|
-
if (!this.
|
|
3264
|
-
return this.
|
|
3262
|
+
protoOf(ToClientEventsObserverImpl).v9o = function () {
|
|
3263
|
+
if (!this.c9y_1.enabledCombinedEvents) {
|
|
3264
|
+
return this.h9y_1;
|
|
3265
3265
|
}
|
|
3266
|
-
var tmp = windowedByInterval(this.
|
|
3266
|
+
var tmp = windowedByInterval(this.h9y_1, toLong(this.c9y_1.combinedEventsPeriod));
|
|
3267
3267
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3268
3268
|
};
|
|
3269
3269
|
function UpdateServerConfigAction(serverConfig) {
|
|
3270
|
-
this.
|
|
3270
|
+
this.v9z_1 = serverConfig;
|
|
3271
3271
|
}
|
|
3272
3272
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3273
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3273
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.v9z_1.toString() + ')';
|
|
3274
3274
|
};
|
|
3275
3275
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3276
|
-
return this.
|
|
3276
|
+
return this.v9z_1.hashCode();
|
|
3277
3277
|
};
|
|
3278
3278
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3279
3279
|
if (this === other)
|
|
@@ -3281,20 +3281,20 @@
|
|
|
3281
3281
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3282
3282
|
return false;
|
|
3283
3283
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3284
|
-
if (!this.
|
|
3284
|
+
if (!this.v9z_1.equals(tmp0_other_with_cast.v9z_1))
|
|
3285
3285
|
return false;
|
|
3286
3286
|
return true;
|
|
3287
3287
|
};
|
|
3288
3288
|
function SpectatorsAction() {
|
|
3289
3289
|
}
|
|
3290
3290
|
function AddSpectatorsAction(spectators) {
|
|
3291
|
-
this.
|
|
3291
|
+
this.w9z_1 = spectators;
|
|
3292
3292
|
}
|
|
3293
3293
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3294
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
3294
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.w9z_1) + ')';
|
|
3295
3295
|
};
|
|
3296
3296
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3297
|
-
return hashCode(this.
|
|
3297
|
+
return hashCode(this.w9z_1);
|
|
3298
3298
|
};
|
|
3299
3299
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3300
3300
|
if (this === other)
|
|
@@ -3302,18 +3302,18 @@
|
|
|
3302
3302
|
if (!(other instanceof AddSpectatorsAction))
|
|
3303
3303
|
return false;
|
|
3304
3304
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3305
|
-
if (!equals(this.
|
|
3305
|
+
if (!equals(this.w9z_1, tmp0_other_with_cast.w9z_1))
|
|
3306
3306
|
return false;
|
|
3307
3307
|
return true;
|
|
3308
3308
|
};
|
|
3309
3309
|
function RemoveSpectatorsAction(spectators) {
|
|
3310
|
-
this.
|
|
3310
|
+
this.x9z_1 = spectators;
|
|
3311
3311
|
}
|
|
3312
3312
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3313
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
3313
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.x9z_1) + ')';
|
|
3314
3314
|
};
|
|
3315
3315
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3316
|
-
return hashCode(this.
|
|
3316
|
+
return hashCode(this.x9z_1);
|
|
3317
3317
|
};
|
|
3318
3318
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3319
3319
|
if (this === other)
|
|
@@ -3321,91 +3321,91 @@
|
|
|
3321
3321
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3322
3322
|
return false;
|
|
3323
3323
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3324
|
-
if (!equals(this.
|
|
3324
|
+
if (!equals(this.x9z_1, tmp0_other_with_cast.x9z_1))
|
|
3325
3325
|
return false;
|
|
3326
3326
|
return true;
|
|
3327
3327
|
};
|
|
3328
3328
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3329
3329
|
// Inline function 'kotlin.getValue' call
|
|
3330
|
-
var this_0 = $this.
|
|
3330
|
+
var this_0 = $this.da0_1;
|
|
3331
3331
|
asyncProvider$factory_0();
|
|
3332
3332
|
return this_0.u();
|
|
3333
3333
|
}
|
|
3334
3334
|
function _get_logger__rkp4sl_0($this) {
|
|
3335
3335
|
// Inline function 'kotlin.getValue' call
|
|
3336
|
-
var this_0 = $this.
|
|
3336
|
+
var this_0 = $this.ea0_1;
|
|
3337
3337
|
logger$factory_2();
|
|
3338
3338
|
return this_0.u();
|
|
3339
3339
|
}
|
|
3340
3340
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3341
3341
|
// Inline function 'kotlin.getValue' call
|
|
3342
|
-
var this_0 = $this.
|
|
3342
|
+
var this_0 = $this.fa0_1;
|
|
3343
3343
|
playerConnectionInteractor$factory_2();
|
|
3344
3344
|
return this_0.u();
|
|
3345
3345
|
}
|
|
3346
3346
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3347
3347
|
// Inline function 'kotlin.getValue' call
|
|
3348
|
-
var this_0 = $this.
|
|
3348
|
+
var this_0 = $this.ga0_1;
|
|
3349
3349
|
lastCardInteractor$factory_0();
|
|
3350
3350
|
return this_0.u();
|
|
3351
3351
|
}
|
|
3352
3352
|
function _get_serverConfig__rk2g06($this) {
|
|
3353
3353
|
// Inline function 'kotlin.getValue' call
|
|
3354
|
-
var this_0 = $this.
|
|
3354
|
+
var this_0 = $this.ha0_1;
|
|
3355
3355
|
serverConfig$factory_0();
|
|
3356
3356
|
return this_0.u();
|
|
3357
3357
|
}
|
|
3358
3358
|
function _get_logicConfig__52ww9d($this) {
|
|
3359
3359
|
// Inline function 'kotlin.getValue' call
|
|
3360
|
-
var this_0 = $this.
|
|
3360
|
+
var this_0 = $this.ia0_1;
|
|
3361
3361
|
logicConfig$factory_0();
|
|
3362
3362
|
return this_0.u();
|
|
3363
3363
|
}
|
|
3364
3364
|
function _get_idsProvider__fnfajc_0($this) {
|
|
3365
3365
|
// Inline function 'kotlin.getValue' call
|
|
3366
|
-
var this_0 = $this.
|
|
3366
|
+
var this_0 = $this.ja0_1;
|
|
3367
3367
|
idsProvider$factory_2();
|
|
3368
3368
|
return this_0.u();
|
|
3369
3369
|
}
|
|
3370
3370
|
function _get_botConfig__cpaxzc($this) {
|
|
3371
3371
|
// Inline function 'kotlin.getValue' call
|
|
3372
|
-
var this_0 = $this.
|
|
3372
|
+
var this_0 = $this.ka0_1;
|
|
3373
3373
|
botConfig$factory_0();
|
|
3374
3374
|
return this_0.u();
|
|
3375
3375
|
}
|
|
3376
3376
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3377
3377
|
// Inline function 'kotlin.getValue' call
|
|
3378
|
-
var this_0 = $this.
|
|
3378
|
+
var this_0 = $this.la0_1;
|
|
3379
3379
|
scenePositionProvider$factory_0();
|
|
3380
3380
|
return this_0.u();
|
|
3381
3381
|
}
|
|
3382
3382
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3383
3383
|
// Inline function 'kotlin.getValue' call
|
|
3384
|
-
var this_0 = $this.
|
|
3384
|
+
var this_0 = $this.ma0_1;
|
|
3385
3385
|
toClientEventsObserver$factory_2();
|
|
3386
3386
|
return this_0.u();
|
|
3387
3387
|
}
|
|
3388
3388
|
function _get_fromClientEventsObserver__a7vzd3_0($this) {
|
|
3389
3389
|
// Inline function 'kotlin.getValue' call
|
|
3390
|
-
var this_0 = $this.
|
|
3390
|
+
var this_0 = $this.na0_1;
|
|
3391
3391
|
fromClientEventsObserver$factory_2();
|
|
3392
3392
|
return this_0.u();
|
|
3393
3393
|
}
|
|
3394
3394
|
function _get_dealerConfig__183ci8($this) {
|
|
3395
3395
|
// Inline function 'kotlin.getValue' call
|
|
3396
|
-
var this_0 = $this.
|
|
3396
|
+
var this_0 = $this.oa0_1;
|
|
3397
3397
|
dealerConfig$factory_0();
|
|
3398
3398
|
return this_0.u();
|
|
3399
3399
|
}
|
|
3400
3400
|
function _get_poolProvider__tqti6a($this) {
|
|
3401
3401
|
// Inline function 'kotlin.getValue' call
|
|
3402
|
-
var this_0 = $this.
|
|
3402
|
+
var this_0 = $this.pa0_1;
|
|
3403
3403
|
poolProvider$factory_0();
|
|
3404
3404
|
return this_0.u();
|
|
3405
3405
|
}
|
|
3406
3406
|
function _get_cardsDealerProvider__bekjpg($this) {
|
|
3407
3407
|
// Inline function 'kotlin.getValue' call
|
|
3408
|
-
var this_0 = $this.
|
|
3408
|
+
var this_0 = $this.qa0_1;
|
|
3409
3409
|
cardsDealerProvider$factory_0();
|
|
3410
3410
|
return this_0.u();
|
|
3411
3411
|
}
|
|
@@ -3418,101 +3418,101 @@
|
|
|
3418
3418
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3419
3419
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3420
3420
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3421
|
-
this.
|
|
3422
|
-
this.
|
|
3423
|
-
this.
|
|
3424
|
-
this.
|
|
3425
|
-
this.
|
|
3421
|
+
this.y9z_1 = validationStoreContract;
|
|
3422
|
+
this.z9z_1 = timersStoreContract;
|
|
3423
|
+
this.aa0_1 = botGameStoreContract;
|
|
3424
|
+
this.ba0_1 = gameMechanicStoreContract;
|
|
3425
|
+
this.ca0_1 = fileLoggerStoreContract;
|
|
3426
3426
|
var tmp = this;
|
|
3427
3427
|
// Inline function 'org.kodein.di.instance' call
|
|
3428
3428
|
// Inline function 'org.kodein.type.generic' call
|
|
3429
3429
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3430
3430
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3431
|
-
tmp.
|
|
3431
|
+
tmp.da0_1 = Instance(di, tmp$ret$0, null).d64(this, asyncProvider$factory());
|
|
3432
3432
|
var tmp_1 = this;
|
|
3433
3433
|
// Inline function 'org.kodein.di.instance' call
|
|
3434
3434
|
// Inline function 'org.kodein.type.generic' call
|
|
3435
3435
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3436
3436
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3437
|
-
tmp_1.
|
|
3437
|
+
tmp_1.ea0_1 = Instance(di, tmp$ret$2, null).d64(this, logger$factory_1());
|
|
3438
3438
|
var tmp_3 = this;
|
|
3439
3439
|
// Inline function 'org.kodein.di.instance' call
|
|
3440
3440
|
// Inline function 'org.kodein.type.generic' call
|
|
3441
3441
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3442
3442
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3443
|
-
tmp_3.
|
|
3443
|
+
tmp_3.fa0_1 = Instance(di, tmp$ret$4, null).d64(this, playerConnectionInteractor$factory_1());
|
|
3444
3444
|
var tmp_5 = this;
|
|
3445
3445
|
// Inline function 'org.kodein.di.instance' call
|
|
3446
3446
|
// Inline function 'org.kodein.type.generic' call
|
|
3447
3447
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3448
3448
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3449
|
-
tmp_5.
|
|
3449
|
+
tmp_5.ga0_1 = Instance(di, tmp$ret$6, null).d64(this, lastCardInteractor$factory());
|
|
3450
3450
|
var tmp_7 = this;
|
|
3451
3451
|
// Inline function 'org.kodein.di.instance' call
|
|
3452
3452
|
// Inline function 'org.kodein.type.generic' call
|
|
3453
3453
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3454
3454
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3455
|
-
tmp_7.
|
|
3455
|
+
tmp_7.ha0_1 = Instance(di, tmp$ret$8, null).d64(this, serverConfig$factory());
|
|
3456
3456
|
var tmp_9 = this;
|
|
3457
3457
|
// Inline function 'org.kodein.di.instance' call
|
|
3458
3458
|
// Inline function 'org.kodein.type.generic' call
|
|
3459
3459
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3460
3460
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3461
|
-
tmp_9.
|
|
3461
|
+
tmp_9.ia0_1 = Instance(di, tmp$ret$10, null).d64(this, logicConfig$factory());
|
|
3462
3462
|
var tmp_11 = this;
|
|
3463
3463
|
// Inline function 'org.kodein.di.instance' call
|
|
3464
3464
|
// Inline function 'org.kodein.type.generic' call
|
|
3465
3465
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3466
3466
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3467
|
-
tmp_11.
|
|
3467
|
+
tmp_11.ja0_1 = Instance(di, tmp$ret$12, null).d64(this, idsProvider$factory_1());
|
|
3468
3468
|
var tmp_13 = this;
|
|
3469
3469
|
// Inline function 'org.kodein.di.instance' call
|
|
3470
3470
|
// Inline function 'org.kodein.type.generic' call
|
|
3471
3471
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3472
3472
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3473
|
-
tmp_13.
|
|
3473
|
+
tmp_13.ka0_1 = Instance(di, tmp$ret$14, null).d64(this, botConfig$factory());
|
|
3474
3474
|
var tmp_15 = this;
|
|
3475
3475
|
// Inline function 'org.kodein.di.instance' call
|
|
3476
3476
|
// Inline function 'org.kodein.type.generic' call
|
|
3477
3477
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3478
3478
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3479
|
-
tmp_15.
|
|
3479
|
+
tmp_15.la0_1 = Instance(di, tmp$ret$16, null).d64(this, scenePositionProvider$factory());
|
|
3480
3480
|
var tmp_17 = this;
|
|
3481
3481
|
// Inline function 'org.kodein.di.instance' call
|
|
3482
3482
|
// Inline function 'org.kodein.type.generic' call
|
|
3483
3483
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3484
3484
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3485
|
-
tmp_17.
|
|
3485
|
+
tmp_17.ma0_1 = Instance(di, tmp$ret$18, null).d64(this, toClientEventsObserver$factory_1());
|
|
3486
3486
|
var tmp_19 = this;
|
|
3487
3487
|
// Inline function 'org.kodein.di.instance' call
|
|
3488
3488
|
// Inline function 'org.kodein.type.generic' call
|
|
3489
3489
|
var tmp_20 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
3490
3490
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3491
|
-
tmp_19.
|
|
3491
|
+
tmp_19.na0_1 = Instance(di, tmp$ret$20, null).d64(this, fromClientEventsObserver$factory_1());
|
|
3492
3492
|
var tmp_21 = this;
|
|
3493
3493
|
// Inline function 'org.kodein.di.instance' call
|
|
3494
3494
|
// Inline function 'org.kodein.type.generic' call
|
|
3495
3495
|
var tmp_22 = typeToken(createKType(getKClass(DealerConfig), arrayOf([]), false));
|
|
3496
3496
|
var tmp$ret$22 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
3497
|
-
tmp_21.
|
|
3497
|
+
tmp_21.oa0_1 = Instance(di, tmp$ret$22, null).d64(this, dealerConfig$factory());
|
|
3498
3498
|
var tmp_23 = this;
|
|
3499
3499
|
// Inline function 'org.kodein.di.instance' call
|
|
3500
3500
|
// Inline function 'org.kodein.type.generic' call
|
|
3501
3501
|
var tmp_24 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3502
3502
|
var tmp$ret$24 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
3503
|
-
tmp_23.
|
|
3503
|
+
tmp_23.pa0_1 = Instance(di, tmp$ret$24, null).d64(this, poolProvider$factory());
|
|
3504
3504
|
var tmp_25 = this;
|
|
3505
3505
|
// Inline function 'org.kodein.di.instance' call
|
|
3506
3506
|
// Inline function 'org.kodein.type.generic' call
|
|
3507
3507
|
var tmp_26 = typeToken(createKType(getKClass(CardsDealerProvider), arrayOf([]), false));
|
|
3508
3508
|
var tmp$ret$26 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE();
|
|
3509
|
-
tmp_25.
|
|
3509
|
+
tmp_25.qa0_1 = Instance(di, tmp$ret$26, null).d64(this, cardsDealerProvider$factory());
|
|
3510
3510
|
}
|
|
3511
|
-
protoOf(ServerGameStoreContract).
|
|
3512
|
-
return plus(plus(plus(plus(plus(this.
|
|
3511
|
+
protoOf(ServerGameStoreContract).c92 = function () {
|
|
3512
|
+
return plus(plus(plus(plus(plus(this.y9z_1.c92(), this.ba0_1.c92()), this.z9z_1.c92()), this.aa0_1.c92()), this.ca0_1.c92()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3513
3513
|
};
|
|
3514
|
-
protoOf(ServerGameStoreContract).
|
|
3515
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
3514
|
+
protoOf(ServerGameStoreContract).d92 = function () {
|
|
3515
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.y9z_1.d92(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.ba0_1.d92()), this.z9z_1.d92()), this.aa0_1.d92()), this.ca0_1.d92()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), 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))).i94(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3516
3516
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3517
3517
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3518
3518
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3704,7 +3704,7 @@
|
|
|
3704
3704
|
return this.y6l(store, next, action);
|
|
3705
3705
|
};
|
|
3706
3706
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3707
|
-
this.
|
|
3707
|
+
this.ta0_1 = this$0;
|
|
3708
3708
|
}
|
|
3709
3709
|
protoOf(_no_name_provided__qut3iv_3).h6k = function (action) {
|
|
3710
3710
|
return action instanceof MechanicAction;
|
|
@@ -3718,11 +3718,11 @@
|
|
|
3718
3718
|
var tmp;
|
|
3719
3719
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3720
3720
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3721
|
-
var this_0 = this.
|
|
3722
|
-
var tableId = action_0.
|
|
3723
|
-
var gameCreatorPlayerId = action_0.
|
|
3721
|
+
var this_0 = this.ta0_1;
|
|
3722
|
+
var tableId = action_0.p8y_1;
|
|
3723
|
+
var gameCreatorPlayerId = action_0.r8y_1;
|
|
3724
3724
|
// Inline function 'kotlin.collections.map' call
|
|
3725
|
-
var this_1 = action_0.
|
|
3725
|
+
var this_1 = action_0.s8y_1;
|
|
3726
3726
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3727
3727
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3728
3728
|
var tmp0_iterator = this_1.j();
|
|
@@ -3763,7 +3763,7 @@
|
|
|
3763
3763
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3764
3764
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3765
3765
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3766
|
-
var tmp0_aid = this_0.
|
|
3766
|
+
var tmp0_aid = this_0.sa0_1.k6i();
|
|
3767
3767
|
// Inline function 'kotlin.collections.map' call
|
|
3768
3768
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3769
3769
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3788,17 +3788,17 @@
|
|
|
3788
3788
|
} else {
|
|
3789
3789
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3790
3790
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3791
|
-
var this_2 = this.
|
|
3791
|
+
var this_2 = this.ta0_1;
|
|
3792
3792
|
var table = state.s6r();
|
|
3793
3793
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3794
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3794
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.sa0_1.k6i(), table.id, null);
|
|
3795
3795
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3796
3796
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3797
3797
|
} else {
|
|
3798
3798
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3799
3799
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3800
|
-
var this_3 = this.
|
|
3801
|
-
var tableId_0 = action_0.
|
|
3800
|
+
var this_3 = this.ta0_1;
|
|
3801
|
+
var tableId_0 = action_0.v8y_1.id;
|
|
3802
3802
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3803
3803
|
// Inline function 'kotlin.collections.map' call
|
|
3804
3804
|
var this_4 = action_0.users;
|
|
@@ -3842,7 +3842,7 @@
|
|
|
3842
3842
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3843
3843
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3844
3844
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3845
|
-
var tmp0_aid_0 = this_3.
|
|
3845
|
+
var tmp0_aid_0 = this_3.sa0_1.k6i();
|
|
3846
3846
|
// Inline function 'kotlin.collections.map' call
|
|
3847
3847
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3848
3848
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3867,43 +3867,43 @@
|
|
|
3867
3867
|
} else {
|
|
3868
3868
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3869
3869
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3870
|
-
var this_5 = this.
|
|
3870
|
+
var this_5 = this.ta0_1;
|
|
3871
3871
|
var table_0 = state.s6r();
|
|
3872
3872
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3873
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3873
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.sa0_1.k6i(), table_0.id, null);
|
|
3874
3874
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3875
3875
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3876
3876
|
} else {
|
|
3877
3877
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3878
3878
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3879
|
-
var this_6 = this.
|
|
3879
|
+
var this_6 = this.ta0_1;
|
|
3880
3880
|
var table_1 = state.s6r();
|
|
3881
3881
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3882
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3882
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.sa0_1.k6i(), table_1.id, null);
|
|
3883
3883
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3884
3884
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3885
3885
|
} else {
|
|
3886
3886
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3887
3887
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3888
|
-
var this_7 = this.
|
|
3888
|
+
var this_7 = this.ta0_1;
|
|
3889
3889
|
var table_2 = state.s6r();
|
|
3890
3890
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3891
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3891
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.sa0_1.k6i(), table_2.id, null);
|
|
3892
3892
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3893
3893
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3894
3894
|
} else {
|
|
3895
3895
|
if (action_0 instanceof ErrorAction) {
|
|
3896
3896
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3897
|
-
var this_8 = this.
|
|
3897
|
+
var this_8 = this.ta0_1;
|
|
3898
3898
|
var table_3 = state.s6r();
|
|
3899
3899
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3900
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3900
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.sa0_1.k6i(), table_3.id, null);
|
|
3901
3901
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3902
3902
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3903
3903
|
} else {
|
|
3904
3904
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3905
3905
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3906
|
-
var this_9 = this.
|
|
3906
|
+
var this_9 = this.ta0_1;
|
|
3907
3907
|
var table_4 = state.s6r();
|
|
3908
3908
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3909
3909
|
var tableId_1 = table_4.id;
|
|
@@ -3940,7 +3940,7 @@
|
|
|
3940
3940
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3941
3941
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3942
3942
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3943
|
-
var tmp0_aid_1 = this_9.
|
|
3943
|
+
var tmp0_aid_1 = this_9.sa0_1.k6i();
|
|
3944
3944
|
// Inline function 'kotlin.collections.map' call
|
|
3945
3945
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3946
3946
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3965,7 +3965,7 @@
|
|
|
3965
3965
|
} else {
|
|
3966
3966
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3967
3967
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3968
|
-
var this_10 = this.
|
|
3968
|
+
var this_10 = this.ta0_1;
|
|
3969
3969
|
var table_5 = state.s6r();
|
|
3970
3970
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3971
3971
|
var tableId_2 = table_5.id;
|
|
@@ -4002,7 +4002,7 @@
|
|
|
4002
4002
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4003
4003
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
4004
4004
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4005
|
-
var tmp0_aid_2 = this_10.
|
|
4005
|
+
var tmp0_aid_2 = this_10.sa0_1.k6i();
|
|
4006
4006
|
// Inline function 'kotlin.collections.map' call
|
|
4007
4007
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4008
4008
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -4027,7 +4027,7 @@
|
|
|
4027
4027
|
} else {
|
|
4028
4028
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
4029
4029
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
4030
|
-
var this_11 = this.
|
|
4030
|
+
var this_11 = this.ta0_1;
|
|
4031
4031
|
var table_6 = state.s6r();
|
|
4032
4032
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
4033
4033
|
var tableId_3 = table_6.id;
|
|
@@ -4064,7 +4064,7 @@
|
|
|
4064
4064
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4065
4065
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
4066
4066
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4067
|
-
var tmp0_aid_3 = this_11.
|
|
4067
|
+
var tmp0_aid_3 = this_11.sa0_1.k6i();
|
|
4068
4068
|
// Inline function 'kotlin.collections.map' call
|
|
4069
4069
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4070
4070
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
}
|
|
4078
4078
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
4079
4079
|
var tmp_0;
|
|
4080
|
-
if (this.ra0_1.
|
|
4080
|
+
if (this.ta0_1.ra0_1.supportBackwardActions && getPlayer(state.s6r().players, sendToPlayer_8.q7e_1).q6x_1.u6x_1) {
|
|
4081
4081
|
tmp_0 = null;
|
|
4082
4082
|
} else {
|
|
4083
4083
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -4095,79 +4095,79 @@
|
|
|
4095
4095
|
} else {
|
|
4096
4096
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
4097
4097
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4098
|
-
var this_12 = this.
|
|
4098
|
+
var this_12 = this.ta0_1;
|
|
4099
4099
|
var table_7 = state.s6r();
|
|
4100
|
-
var exceptPlayerId = this.ra0_1.
|
|
4100
|
+
var exceptPlayerId = this.ta0_1.ra0_1.supportBackwardActions ? action_0.p8z_1 : null;
|
|
4101
4101
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4102
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
4102
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.sa0_1.k6i(), table_7.id, exceptPlayerId);
|
|
4103
4103
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
4104
4104
|
tmp = listOfNotNull(tmp$ret$94);
|
|
4105
4105
|
} else {
|
|
4106
4106
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
4107
4107
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4108
|
-
var this_13 = this.
|
|
4108
|
+
var this_13 = this.ta0_1;
|
|
4109
4109
|
var table_8 = state.s6r();
|
|
4110
|
-
var exceptPlayerId_0 = this.ra0_1.
|
|
4110
|
+
var exceptPlayerId_0 = this.ta0_1.ra0_1.supportBackwardActions ? action_0.l8u_1 : null;
|
|
4111
4111
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4112
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4112
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.sa0_1.k6i(), table_8.id, exceptPlayerId_0);
|
|
4113
4113
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
4114
4114
|
tmp = listOfNotNull(tmp$ret$96);
|
|
4115
4115
|
} else {
|
|
4116
4116
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
4117
4117
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4118
|
-
var this_14 = this.
|
|
4118
|
+
var this_14 = this.ta0_1;
|
|
4119
4119
|
var table_9 = state.s6r();
|
|
4120
4120
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4121
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4121
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.sa0_1.k6i(), table_9.id, null);
|
|
4122
4122
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4123
4123
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4124
4124
|
} else {
|
|
4125
4125
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4126
4126
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4127
|
-
var this_15 = this.
|
|
4127
|
+
var this_15 = this.ta0_1;
|
|
4128
4128
|
var table_10 = state.s6r();
|
|
4129
|
-
var exceptPlayerId_1 = this.ra0_1.
|
|
4129
|
+
var exceptPlayerId_1 = this.ta0_1.ra0_1.supportBackwardActions ? action_0.v8z_1 : null;
|
|
4130
4130
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4131
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4131
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.sa0_1.k6i(), table_10.id, exceptPlayerId_1);
|
|
4132
4132
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4133
4133
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4134
4134
|
} else {
|
|
4135
4135
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4136
4136
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4137
|
-
var this_16 = this.
|
|
4137
|
+
var this_16 = this.ta0_1;
|
|
4138
4138
|
var table_11 = state.s6r();
|
|
4139
|
-
var exceptPlayerId_2 = this.ra0_1.
|
|
4139
|
+
var exceptPlayerId_2 = this.ta0_1.ra0_1.supportBackwardActions ? action_0.q8u_1 : null;
|
|
4140
4140
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4141
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4141
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.sa0_1.k6i(), table_11.id, exceptPlayerId_2);
|
|
4142
4142
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4143
4143
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4144
4144
|
} else {
|
|
4145
4145
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4146
4146
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4147
|
-
var this_17 = this.
|
|
4147
|
+
var this_17 = this.ta0_1;
|
|
4148
4148
|
var table_12 = state.s6r();
|
|
4149
4149
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4150
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4150
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.sa0_1.k6i(), table_12.id, null);
|
|
4151
4151
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4152
4152
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4153
4153
|
} else {
|
|
4154
4154
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4155
4155
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4156
|
-
var this_18 = this.
|
|
4156
|
+
var this_18 = this.ta0_1;
|
|
4157
4157
|
var table_13 = state.s6r();
|
|
4158
4158
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4159
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4159
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.sa0_1.k6i(), table_13.id, null);
|
|
4160
4160
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4161
4161
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4162
4162
|
} else {
|
|
4163
4163
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4164
|
-
var message = action_0.
|
|
4164
|
+
var message = action_0.z8z_1;
|
|
4165
4165
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4166
|
-
var this_19 = this.
|
|
4166
|
+
var this_19 = this.ta0_1;
|
|
4167
4167
|
var table_14 = state.s6r();
|
|
4168
4168
|
var tmp_1;
|
|
4169
4169
|
var tmp_2;
|
|
4170
|
-
if (this.ra0_1.
|
|
4170
|
+
if (this.ta0_1.ra0_1.supportBackwardActions) {
|
|
4171
4171
|
tmp_2 = isInterface(message, UserMessage);
|
|
4172
4172
|
} else {
|
|
4173
4173
|
tmp_2 = false;
|
|
@@ -4179,17 +4179,17 @@
|
|
|
4179
4179
|
}
|
|
4180
4180
|
var exceptPlayerId_3 = tmp_1;
|
|
4181
4181
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4182
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4182
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.sa0_1.k6i(), table_14.id, exceptPlayerId_3);
|
|
4183
4183
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4184
4184
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4185
4185
|
} else {
|
|
4186
4186
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4187
4187
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4188
|
-
var this_20 = this.
|
|
4188
|
+
var this_20 = this.ta0_1;
|
|
4189
4189
|
var table_15 = state.s6r();
|
|
4190
4190
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4191
4191
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4192
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4192
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.sa0_1.k6i(), table_15.id, exceptPlayerId_4);
|
|
4193
4193
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4194
4194
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4195
4195
|
} else {
|
|
@@ -4227,10 +4227,10 @@
|
|
|
4227
4227
|
return this.y6l(store, next, action);
|
|
4228
4228
|
};
|
|
4229
4229
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4230
|
-
this.
|
|
4231
|
-
this.
|
|
4230
|
+
this.ra0_1 = logicConfig;
|
|
4231
|
+
this.sa0_1 = idsProvider;
|
|
4232
4232
|
}
|
|
4233
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
4233
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).i94 = function () {
|
|
4234
4234
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
4235
4235
|
return new _no_name_provided__qut3iv_3(this);
|
|
4236
4236
|
};
|
|
@@ -4239,8 +4239,8 @@
|
|
|
4239
4239
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4240
4240
|
}
|
|
4241
4241
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4242
|
-
this.
|
|
4243
|
-
this.
|
|
4242
|
+
this.ca1_1 = $provider;
|
|
4243
|
+
this.da1_1 = $action;
|
|
4244
4244
|
CoroutineImpl.call(this, resultContinuation);
|
|
4245
4245
|
}
|
|
4246
4246
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -4261,7 +4261,7 @@
|
|
|
4261
4261
|
case 0:
|
|
4262
4262
|
this.k9_1 = 2;
|
|
4263
4263
|
this.j9_1 = 1;
|
|
4264
|
-
suspendResult = this.
|
|
4264
|
+
suspendResult = this.ca1_1.j9x(this.da1_1, this);
|
|
4265
4265
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4266
4266
|
return suspendResult;
|
|
4267
4267
|
}
|
|
@@ -4284,8 +4284,8 @@
|
|
|
4284
4284
|
while (true);
|
|
4285
4285
|
};
|
|
4286
4286
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).n1e = function ($this$launchDefault, completion) {
|
|
4287
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4288
|
-
i.
|
|
4287
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.ca1_1, this.da1_1, completion);
|
|
4288
|
+
i.ea1_1 = $this$launchDefault;
|
|
4289
4289
|
return i;
|
|
4290
4290
|
};
|
|
4291
4291
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4297,8 +4297,8 @@
|
|
|
4297
4297
|
return l;
|
|
4298
4298
|
}
|
|
4299
4299
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4300
|
-
this.
|
|
4301
|
-
this.
|
|
4300
|
+
this.fa1_1 = $asyncProvider;
|
|
4301
|
+
this.ga1_1 = $provider;
|
|
4302
4302
|
}
|
|
4303
4303
|
protoOf(_no_name_provided__qut3iv_4).h6k = function (action) {
|
|
4304
4304
|
return action instanceof ToClientAction;
|
|
@@ -4306,7 +4306,7 @@
|
|
|
4306
4306
|
protoOf(_no_name_provided__qut3iv_4).y6l = function (store, next, action) {
|
|
4307
4307
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4308
4308
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4309
|
-
this.
|
|
4309
|
+
this.fa1_1.h6h(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.ga1_1, action_0, null));
|
|
4310
4310
|
next(action_0);
|
|
4311
4311
|
};
|
|
4312
4312
|
protoOf(_no_name_provided__qut3iv_4).g6k = function (store, next, action) {
|
|
@@ -4321,13 +4321,13 @@
|
|
|
4321
4321
|
protoOf(_no_name_provided__qut3iv_5).h6k = function (action) {
|
|
4322
4322
|
return action instanceof UpdateServerConfigAction;
|
|
4323
4323
|
};
|
|
4324
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4324
|
+
protoOf(_no_name_provided__qut3iv_5).k9c = function (state, action) {
|
|
4325
4325
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4326
4326
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4327
|
-
return state.
|
|
4327
|
+
return state.q8x(VOID, get_serverStatePayload_0(state).copy(action_0.v9z_1));
|
|
4328
4328
|
};
|
|
4329
4329
|
protoOf(_no_name_provided__qut3iv_5).z6l = function (state, action) {
|
|
4330
|
-
return this.
|
|
4330
|
+
return this.k9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4331
4331
|
};
|
|
4332
4332
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
4333
4333
|
return function (it) {
|
|
@@ -4340,7 +4340,7 @@
|
|
|
4340
4340
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
4341
4341
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4342
4342
|
Companion_getInstance();
|
|
4343
|
-
var this_0 = $action.
|
|
4343
|
+
var this_0 = $action.o8y_1.timeoutTimeMillis;
|
|
4344
4344
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4345
4345
|
tmp_0 = tmp_1.m6c(tmp_2, tmp$ret$0);
|
|
4346
4346
|
}
|
|
@@ -4349,57 +4349,57 @@
|
|
|
4349
4349
|
}
|
|
4350
4350
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4351
4351
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4352
|
-
this.
|
|
4352
|
+
this.ja1_1 = logger;
|
|
4353
4353
|
}
|
|
4354
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4354
|
+
protoOf(ServerMechanicLifecycleReducer).w9d = function (state, action) {
|
|
4355
4355
|
var serverState = get_serverStatePayloadOrNull(state.c6r_1);
|
|
4356
4356
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4357
|
-
var tmp0_$this = this.
|
|
4358
|
-
var tmp1_tableId = action.
|
|
4359
|
-
var tmp2_gameId = action.
|
|
4360
|
-
var tmp3_version = action.
|
|
4361
|
-
var tmp4_config = action.
|
|
4362
|
-
var tmp5_users = action.
|
|
4357
|
+
var tmp0_$this = this.x9d_1;
|
|
4358
|
+
var tmp1_tableId = action.p8y_1;
|
|
4359
|
+
var tmp2_gameId = action.p8y_1;
|
|
4360
|
+
var tmp3_version = action.q8y_1;
|
|
4361
|
+
var tmp4_config = action.o8y_1;
|
|
4362
|
+
var tmp5_users = action.s8y_1;
|
|
4363
4363
|
var tmp6_spectators = action.spectators;
|
|
4364
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
4365
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
4364
|
+
var tmp7_gameCreatorPlayerId = action.r8y_1;
|
|
4365
|
+
var tmp9_tableOrNull = tmp0_$this.d9f(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
4366
4366
|
var tmp;
|
|
4367
4367
|
if (serverState == null) {
|
|
4368
|
-
this.
|
|
4368
|
+
this.ja1_1.w(VOID, 'ServerPayload is not onStart');
|
|
4369
4369
|
tmp = Companion_instance_10.initial();
|
|
4370
4370
|
} else {
|
|
4371
4371
|
tmp = serverState;
|
|
4372
4372
|
}
|
|
4373
4373
|
var tmp10_payload = tmp;
|
|
4374
|
-
return state.
|
|
4374
|
+
return state.q8x(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4375
4375
|
};
|
|
4376
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4376
|
+
protoOf(ServerMechanicLifecycleReducer).u9d = function (state, action) {
|
|
4377
4377
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4378
|
-
var tmp2_tableOrNull = action.
|
|
4378
|
+
var tmp2_tableOrNull = action.v8y_1;
|
|
4379
4379
|
var tmp = Companion_instance_10;
|
|
4380
4380
|
var tmp_0 = get_serverStatePayload_0(state).config;
|
|
4381
|
-
var tmp_1 = action.
|
|
4381
|
+
var tmp_1 = action.w8y_1;
|
|
4382
4382
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
4383
4383
|
var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d6a_1));
|
|
4384
|
-
return state.
|
|
4384
|
+
return state.q8x(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
4385
4385
|
};
|
|
4386
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4387
|
-
this.
|
|
4386
|
+
protoOf(ServerMechanicLifecycleReducer).v9d = function (state, action) {
|
|
4387
|
+
this.y9d_1.j5r(action.previousGameId);
|
|
4388
4388
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4389
|
-
var tmp1_tableOrNull = this.
|
|
4390
|
-
return state.
|
|
4389
|
+
var tmp1_tableOrNull = this.x9d_1.e9f(state.s6r(), action.gameId);
|
|
4390
|
+
return state.q8x(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
4391
4391
|
};
|
|
4392
4392
|
function spectatorsReducer(logger) {
|
|
4393
4393
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
4394
4394
|
return new _no_name_provided__qut3iv_6(logger);
|
|
4395
4395
|
}
|
|
4396
4396
|
function _no_name_provided__qut3iv_6($logger) {
|
|
4397
|
-
this.
|
|
4397
|
+
this.ka1_1 = $logger;
|
|
4398
4398
|
}
|
|
4399
4399
|
protoOf(_no_name_provided__qut3iv_6).h6k = function (action) {
|
|
4400
4400
|
return isInterface(action, SpectatorsAction);
|
|
4401
4401
|
};
|
|
4402
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4402
|
+
protoOf(_no_name_provided__qut3iv_6).k9c = function (state, action) {
|
|
4403
4403
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
4404
4404
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
4405
4405
|
var table = state.s6r();
|
|
@@ -4407,7 +4407,7 @@
|
|
|
4407
4407
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4408
4408
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4409
4409
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4410
|
-
var this_0 = action_0.
|
|
4410
|
+
var this_0 = action_0.w9z_1;
|
|
4411
4411
|
var destination = ArrayList_init_$Create$_0();
|
|
4412
4412
|
// Inline function 'kotlin.collections.forEach' call
|
|
4413
4413
|
var tmp0_iterator = this_0.j();
|
|
@@ -4429,10 +4429,10 @@
|
|
|
4429
4429
|
var tmp_0;
|
|
4430
4430
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4431
4431
|
if (!sameSpectators.p()) {
|
|
4432
|
-
this.
|
|
4432
|
+
this.ka1_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4433
4433
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4434
4434
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4435
|
-
var this_1 = action_0.
|
|
4435
|
+
var this_1 = action_0.w9z_1;
|
|
4436
4436
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4437
4437
|
var tmp0_iterator_0 = this_1.j();
|
|
4438
4438
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4468,7 +4468,7 @@
|
|
|
4468
4468
|
}
|
|
4469
4469
|
tmp_0 = destination_0;
|
|
4470
4470
|
} else {
|
|
4471
|
-
tmp_0 = action_0.
|
|
4471
|
+
tmp_0 = action_0.w9z_1;
|
|
4472
4472
|
}
|
|
4473
4473
|
var this_2 = tmp_0;
|
|
4474
4474
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4481,12 +4481,12 @@
|
|
|
4481
4481
|
destination_1.e(tmp$ret$10);
|
|
4482
4482
|
}
|
|
4483
4483
|
var spectatorsToAdd = toSet(destination_1);
|
|
4484
|
-
tmp = state.
|
|
4484
|
+
tmp = state.q8x(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
4485
4485
|
} else {
|
|
4486
4486
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4487
4487
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4488
4488
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4489
|
-
var this_3 = action_0.
|
|
4489
|
+
var this_3 = action_0.x9z_1;
|
|
4490
4490
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4491
4491
|
// Inline function 'kotlin.collections.forEach' call
|
|
4492
4492
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4507,10 +4507,10 @@
|
|
|
4507
4507
|
var tmp_2;
|
|
4508
4508
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4509
4509
|
if (!sameSpectators_0.p()) {
|
|
4510
|
-
this.
|
|
4510
|
+
this.ka1_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4511
4511
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4512
4512
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4513
|
-
var this_4 = action_0.
|
|
4513
|
+
var this_4 = action_0.x9z_1;
|
|
4514
4514
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4515
4515
|
var tmp0_iterator_4 = this_4.j();
|
|
4516
4516
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4546,7 +4546,7 @@
|
|
|
4546
4546
|
}
|
|
4547
4547
|
tmp_2 = destination_3;
|
|
4548
4548
|
} else {
|
|
4549
|
-
tmp_2 = action_0.
|
|
4549
|
+
tmp_2 = action_0.x9z_1;
|
|
4550
4550
|
}
|
|
4551
4551
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4552
4552
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4585,7 +4585,7 @@
|
|
|
4585
4585
|
destination_4.e(element_5);
|
|
4586
4586
|
}
|
|
4587
4587
|
}
|
|
4588
|
-
tmp = state.
|
|
4588
|
+
tmp = state.q8x(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
4589
4589
|
} else {
|
|
4590
4590
|
noWhenBranchMatchedException();
|
|
4591
4591
|
}
|
|
@@ -4593,16 +4593,16 @@
|
|
|
4593
4593
|
return tmp;
|
|
4594
4594
|
};
|
|
4595
4595
|
protoOf(_no_name_provided__qut3iv_6).z6l = function (state, action) {
|
|
4596
|
-
return this.
|
|
4596
|
+
return this.k9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4597
4597
|
};
|
|
4598
4598
|
function Companion_2() {
|
|
4599
4599
|
}
|
|
4600
|
-
protoOf(Companion_2).
|
|
4600
|
+
protoOf(Companion_2).la1 = function (config) {
|
|
4601
4601
|
return new ServerStatePayload(config);
|
|
4602
4602
|
};
|
|
4603
4603
|
protoOf(Companion_2).initial = function (config, $super) {
|
|
4604
4604
|
config = config === VOID ? Companion_instance_8.initial(null) : config;
|
|
4605
|
-
return this.
|
|
4605
|
+
return this.la1(config);
|
|
4606
4606
|
};
|
|
4607
4607
|
var Companion_instance_10;
|
|
4608
4608
|
function Companion_getInstance_3() {
|
|
@@ -4617,12 +4617,12 @@
|
|
|
4617
4617
|
protoOf(ServerStatePayload).ue = function () {
|
|
4618
4618
|
return this.config;
|
|
4619
4619
|
};
|
|
4620
|
-
protoOf(ServerStatePayload).
|
|
4620
|
+
protoOf(ServerStatePayload).ma1 = function (config) {
|
|
4621
4621
|
return new ServerStatePayload(config);
|
|
4622
4622
|
};
|
|
4623
4623
|
protoOf(ServerStatePayload).copy = function (config, $super) {
|
|
4624
4624
|
config = config === VOID ? this.config : config;
|
|
4625
|
-
return this.
|
|
4625
|
+
return this.ma1(config);
|
|
4626
4626
|
};
|
|
4627
4627
|
protoOf(ServerStatePayload).toString = function () {
|
|
4628
4628
|
return 'ServerStatePayload(config=' + this.config.toString() + ')';
|
|
@@ -4674,13 +4674,13 @@
|
|
|
4674
4674
|
}
|
|
4675
4675
|
function _get_logger__rkp4sl_1($this) {
|
|
4676
4676
|
// Inline function 'kotlin.getValue' call
|
|
4677
|
-
var this_0 = $this.
|
|
4677
|
+
var this_0 = $this.wa1_1;
|
|
4678
4678
|
logger$factory_3();
|
|
4679
4679
|
return this_0.u();
|
|
4680
4680
|
}
|
|
4681
4681
|
function _get_di__ndbzja($this) {
|
|
4682
4682
|
// Inline function 'kotlin.getValue' call
|
|
4683
|
-
var this_0 = $this.
|
|
4683
|
+
var this_0 = $this.xa1_1;
|
|
4684
4684
|
di$factory();
|
|
4685
4685
|
return this_0.u();
|
|
4686
4686
|
}
|
|
@@ -4691,13 +4691,13 @@
|
|
|
4691
4691
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
4692
4692
|
return function () {
|
|
4693
4693
|
var tmp;
|
|
4694
|
-
if (this$0.
|
|
4694
|
+
if (this$0.ua1_1 == null) {
|
|
4695
4695
|
tmp = null;
|
|
4696
4696
|
} else {
|
|
4697
4697
|
// Inline function 'kotlin.let' call
|
|
4698
4698
|
// Inline function 'kotlin.contracts.contract' call
|
|
4699
4699
|
// Inline function 'GameServerEngineControllerImpl.logger$delegate.<anonymous>.<anonymous>' call
|
|
4700
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4700
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.ua1_1)]));
|
|
4701
4701
|
}
|
|
4702
4702
|
var tmp1_elvis_lhs = tmp;
|
|
4703
4703
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4725,7 +4725,7 @@
|
|
|
4725
4725
|
tmp_0.g62(tmp$ret$3);
|
|
4726
4726
|
$this$DI.k5y(jsonModule());
|
|
4727
4727
|
$this$DI.k5y(serverHelpersModule());
|
|
4728
|
-
$this$DI.k5y(randomOrgModule(this$0.
|
|
4728
|
+
$this$DI.k5y(randomOrgModule(this$0.va1_1));
|
|
4729
4729
|
return Unit_instance;
|
|
4730
4730
|
};
|
|
4731
4731
|
}
|
|
@@ -4736,16 +4736,16 @@
|
|
|
4736
4736
|
};
|
|
4737
4737
|
}
|
|
4738
4738
|
function _no_name_provided__qut3iv_7($item) {
|
|
4739
|
-
this.
|
|
4739
|
+
this.ea2_1 = $item;
|
|
4740
4740
|
}
|
|
4741
4741
|
protoOf(_no_name_provided__qut3iv_7).h6k = function (action) {
|
|
4742
4742
|
return isInterface(action, Action);
|
|
4743
4743
|
};
|
|
4744
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4745
|
-
return this.
|
|
4744
|
+
protoOf(_no_name_provided__qut3iv_7).k9c = function (state, action) {
|
|
4745
|
+
return this.ea2_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4746
4746
|
};
|
|
4747
4747
|
protoOf(_no_name_provided__qut3iv_7).z6l = function (state, action) {
|
|
4748
|
-
return this.
|
|
4748
|
+
return this.k9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4749
4749
|
};
|
|
4750
4750
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4751
4751
|
return function ($this$singleton) {
|
|
@@ -4802,7 +4802,7 @@
|
|
|
4802
4802
|
}
|
|
4803
4803
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4804
4804
|
return function (it) {
|
|
4805
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4805
|
+
var tmp0_elvis_lhs = Companion_instance_4.g9h(it);
|
|
4806
4806
|
var tmp;
|
|
4807
4807
|
if (tmp0_elvis_lhs == null) {
|
|
4808
4808
|
var tmp1_safe_receiver = $gameServer.v6b().b6r_1;
|
|
@@ -4815,7 +4815,7 @@
|
|
|
4815
4815
|
}
|
|
4816
4816
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4817
4817
|
return function (it) {
|
|
4818
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4818
|
+
var tmp0_elvis_lhs = Companion_instance_5.r9f(it);
|
|
4819
4819
|
var tmp;
|
|
4820
4820
|
if (tmp0_elvis_lhs == null) {
|
|
4821
4821
|
var tmp1_safe_receiver = $gameServer.v6b().b6r_1;
|
|
@@ -4837,7 +4837,7 @@
|
|
|
4837
4837
|
// Inline function 'kotlin.contracts.contract' call
|
|
4838
4838
|
$this$DI.k5y(tmp0_safe_receiver);
|
|
4839
4839
|
}
|
|
4840
|
-
$this$DI.k5y(dealerModule(this$0.randomPoolProvider, this$0.
|
|
4840
|
+
$this$DI.k5y(dealerModule(this$0.randomPoolProvider, this$0.va1_1));
|
|
4841
4841
|
$this$DI.k5y(coreModule($coreConfig));
|
|
4842
4842
|
$this$DI.k5y(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4843
4843
|
return Unit_instance;
|
|
@@ -4846,89 +4846,89 @@
|
|
|
4846
4846
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4847
4847
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4848
4848
|
production = production === VOID ? true : production;
|
|
4849
|
-
this.
|
|
4850
|
-
this.
|
|
4849
|
+
this.ua1_1 = loggerCallback;
|
|
4850
|
+
this.va1_1 = randomOrgConfig;
|
|
4851
4851
|
AppEnvironment_getInstance().k6q(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4852
4852
|
var tmp = this;
|
|
4853
|
-
tmp.
|
|
4853
|
+
tmp.wa1_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
4854
4854
|
var tmp_0 = this;
|
|
4855
|
-
tmp_0.
|
|
4855
|
+
tmp_0.xa1_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4856
4856
|
var tmp_1 = this;
|
|
4857
4857
|
// Inline function 'org.kodein.di.instance' call
|
|
4858
4858
|
var this_0 = _get_di__ndbzja(this);
|
|
4859
4859
|
// Inline function 'org.kodein.type.generic' call
|
|
4860
4860
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4861
4861
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4862
|
-
tmp_1.
|
|
4862
|
+
tmp_1.ya1_1 = Instance(this_0, tmp$ret$0, null).d64(this, parser$factory());
|
|
4863
4863
|
var tmp_3 = this;
|
|
4864
4864
|
// Inline function 'org.kodein.di.instance' call
|
|
4865
4865
|
var this_1 = _get_di__ndbzja(this);
|
|
4866
4866
|
// Inline function 'org.kodein.type.generic' call
|
|
4867
4867
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4868
4868
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4869
|
-
tmp_3.
|
|
4869
|
+
tmp_3.za1_1 = Instance(this_1, tmp$ret$2, null).d64(this, helper$factory());
|
|
4870
4870
|
var tmp_5 = this;
|
|
4871
4871
|
// Inline function 'org.kodein.di.instance' call
|
|
4872
4872
|
var this_2 = _get_di__ndbzja(this);
|
|
4873
4873
|
// Inline function 'org.kodein.type.generic' call
|
|
4874
4874
|
var tmp_6 = typeToken(createKType(getKClass(GameServerHelper), arrayOf([]), false));
|
|
4875
4875
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4876
|
-
tmp_5.
|
|
4876
|
+
tmp_5.aa2_1 = Instance(this_2, tmp$ret$4, null).d64(this, serverHelper$factory());
|
|
4877
4877
|
var tmp_7 = this;
|
|
4878
4878
|
// Inline function 'org.kodein.di.instance' call
|
|
4879
4879
|
var this_3 = _get_di__ndbzja(this);
|
|
4880
4880
|
// Inline function 'org.kodein.type.generic' call
|
|
4881
4881
|
var tmp_8 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4882
4882
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4883
|
-
tmp_7.
|
|
4883
|
+
tmp_7.ba2_1 = Instance(this_3, tmp$ret$6, null).d64(this, resources$factory());
|
|
4884
4884
|
var tmp_9 = this;
|
|
4885
4885
|
// Inline function 'org.kodein.di.instance' call
|
|
4886
4886
|
var this_4 = _get_di__ndbzja(this);
|
|
4887
4887
|
// Inline function 'org.kodein.type.generic' call
|
|
4888
4888
|
var tmp_10 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4889
4889
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4890
|
-
tmp_9.
|
|
4890
|
+
tmp_9.ca2_1 = Instance(this_4, tmp$ret$8, null).d64(this, test$factory());
|
|
4891
4891
|
var tmp_11 = this;
|
|
4892
4892
|
// Inline function 'org.kodein.di.instance' call
|
|
4893
4893
|
var this_5 = _get_di__ndbzja(this);
|
|
4894
4894
|
// Inline function 'org.kodein.type.generic' call
|
|
4895
4895
|
var tmp_12 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4896
4896
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
4897
|
-
tmp_11.
|
|
4897
|
+
tmp_11.da2_1 = Instance(this_5, tmp$ret$10, null).d64(this, randomPoolProvider$factory());
|
|
4898
4898
|
}
|
|
4899
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4899
|
+
protoOf(GameServerEngineControllerImpl).na1 = function () {
|
|
4900
4900
|
// Inline function 'kotlin.getValue' call
|
|
4901
|
-
var this_0 = this.
|
|
4901
|
+
var this_0 = this.ya1_1;
|
|
4902
4902
|
parser$factory_0();
|
|
4903
4903
|
return this_0.u();
|
|
4904
4904
|
};
|
|
4905
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4905
|
+
protoOf(GameServerEngineControllerImpl).pa1 = function () {
|
|
4906
4906
|
// Inline function 'kotlin.getValue' call
|
|
4907
|
-
var this_0 = this.
|
|
4907
|
+
var this_0 = this.za1_1;
|
|
4908
4908
|
helper$factory_0();
|
|
4909
4909
|
return this_0.u();
|
|
4910
4910
|
};
|
|
4911
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4911
|
+
protoOf(GameServerEngineControllerImpl).qa1 = function () {
|
|
4912
4912
|
// Inline function 'kotlin.getValue' call
|
|
4913
|
-
var this_0 = this.
|
|
4913
|
+
var this_0 = this.aa2_1;
|
|
4914
4914
|
serverHelper$factory_0();
|
|
4915
4915
|
return this_0.u();
|
|
4916
4916
|
};
|
|
4917
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4917
|
+
protoOf(GameServerEngineControllerImpl).ra1 = function () {
|
|
4918
4918
|
// Inline function 'kotlin.getValue' call
|
|
4919
|
-
var this_0 = this.
|
|
4919
|
+
var this_0 = this.ba2_1;
|
|
4920
4920
|
resources$factory_0();
|
|
4921
4921
|
return this_0.u();
|
|
4922
4922
|
};
|
|
4923
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4923
|
+
protoOf(GameServerEngineControllerImpl).oa1 = function () {
|
|
4924
4924
|
// Inline function 'kotlin.getValue' call
|
|
4925
|
-
var this_0 = this.
|
|
4925
|
+
var this_0 = this.ca2_1;
|
|
4926
4926
|
test$factory_0();
|
|
4927
4927
|
return this_0.u();
|
|
4928
4928
|
};
|
|
4929
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4929
|
+
protoOf(GameServerEngineControllerImpl).sa1 = function () {
|
|
4930
4930
|
// Inline function 'kotlin.getValue' call
|
|
4931
|
-
var this_0 = this.
|
|
4931
|
+
var this_0 = this.da2_1;
|
|
4932
4932
|
randomPoolProvider$factory_0();
|
|
4933
4933
|
return this_0.u();
|
|
4934
4934
|
};
|
|
@@ -4938,7 +4938,7 @@
|
|
|
4938
4938
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4939
4939
|
return this.createGameEngineWithLogic();
|
|
4940
4940
|
};
|
|
4941
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4941
|
+
protoOf(GameServerEngineControllerImpl).ta1 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4942
4942
|
var combinedLogger = Companion_instance_6.fn();
|
|
4943
4943
|
var tmp;
|
|
4944
4944
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4948,8 +4948,8 @@
|
|
|
4948
4948
|
}
|
|
4949
4949
|
var fileLoggerOutput = tmp;
|
|
4950
4950
|
var tmp_0;
|
|
4951
|
-
if (!(this.
|
|
4952
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4951
|
+
if (!(this.ua1_1 == null)) {
|
|
4952
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.ua1_1));
|
|
4953
4953
|
} else {
|
|
4954
4954
|
tmp_0 = null;
|
|
4955
4955
|
}
|
|
@@ -4992,12 +4992,12 @@
|
|
|
4992
4992
|
var gameServer = tmp_1.u5z(tmp$ret$7, null);
|
|
4993
4993
|
if (!(fileLoggerOutput == null)) {
|
|
4994
4994
|
var tmp_3 = fileLoggerOutput;
|
|
4995
|
-
tmp_3.
|
|
4995
|
+
tmp_3.v9g_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4996
4996
|
combinedLogger.hn(fileLoggerOutput);
|
|
4997
4997
|
}
|
|
4998
4998
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4999
4999
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
5000
|
-
tmp_4.
|
|
5000
|
+
tmp_4.t9f_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
5001
5001
|
combinedLogger.hn(callbackWrapperLoggerOutput);
|
|
5002
5002
|
}
|
|
5003
5003
|
return gameServer;
|
|
@@ -5083,13 +5083,13 @@
|
|
|
5083
5083
|
}
|
|
5084
5084
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
5085
5085
|
// Inline function 'kotlin.getValue' call
|
|
5086
|
-
var this_0 = $this.
|
|
5086
|
+
var this_0 = $this.ha2_1;
|
|
5087
5087
|
playerAnswerInteractor$factory_0();
|
|
5088
5088
|
return this_0.u();
|
|
5089
5089
|
}
|
|
5090
5090
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5091
5091
|
return function ($this$singleton) {
|
|
5092
|
-
return this$0.
|
|
5092
|
+
return this$0.fa2_1;
|
|
5093
5093
|
};
|
|
5094
5094
|
}
|
|
5095
5095
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5118,20 +5118,20 @@
|
|
|
5118
5118
|
return emptyMap();
|
|
5119
5119
|
}
|
|
5120
5120
|
function TestHelperImpl(logger) {
|
|
5121
|
-
this.
|
|
5121
|
+
this.fa2_1 = logger;
|
|
5122
5122
|
var tmp = this;
|
|
5123
5123
|
var tmp_0 = Companion_instance_3;
|
|
5124
|
-
tmp.
|
|
5124
|
+
tmp.ga2_1 = tmp_0.r5y(VOID, TestHelperImpl$di$lambda(this));
|
|
5125
5125
|
var tmp_1 = this;
|
|
5126
5126
|
// Inline function 'org.kodein.di.instance' call
|
|
5127
|
-
var this_0 = this.
|
|
5127
|
+
var this_0 = this.ga2_1;
|
|
5128
5128
|
// Inline function 'org.kodein.type.generic' call
|
|
5129
5129
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5130
5130
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5131
|
-
tmp_1.
|
|
5131
|
+
tmp_1.ha2_1 = Instance(this_0, tmp$ret$0, null).d64(this, playerAnswerInteractor$factory());
|
|
5132
5132
|
}
|
|
5133
5133
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5134
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
5134
|
+
return _get_playerAnswerInteractor__msggz1(this).o8n(playerId, table, botConfig);
|
|
5135
5135
|
};
|
|
5136
5136
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
5137
5137
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -5139,7 +5139,7 @@
|
|
|
5139
5139
|
var tmp$ret$0;
|
|
5140
5140
|
$l$block_0: {
|
|
5141
5141
|
// Inline function 'kotlin.collections.any' call
|
|
5142
|
-
var this_0 = mechanicAction.
|
|
5142
|
+
var this_0 = mechanicAction.i91();
|
|
5143
5143
|
var tmp;
|
|
5144
5144
|
if (isInterface(this_0, Collection)) {
|
|
5145
5145
|
tmp = this_0.p();
|
|
@@ -5172,7 +5172,7 @@
|
|
|
5172
5172
|
var tmp$ret$0;
|
|
5173
5173
|
$l$block_0: {
|
|
5174
5174
|
// Inline function 'kotlin.collections.any' call
|
|
5175
|
-
var this_0 = action.
|
|
5175
|
+
var this_0 = action.i91();
|
|
5176
5176
|
var tmp;
|
|
5177
5177
|
if (isInterface(this_0, Collection)) {
|
|
5178
5178
|
tmp = this_0.p();
|
|
@@ -5293,22 +5293,22 @@
|
|
|
5293
5293
|
});
|
|
5294
5294
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5295
5295
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5296
|
-
return this.
|
|
5296
|
+
return this.na1();
|
|
5297
5297
|
});
|
|
5298
5298
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5299
|
-
return this.
|
|
5299
|
+
return this.pa1();
|
|
5300
5300
|
});
|
|
5301
5301
|
defineProp(protoOf(GameServerEngineControllerImpl), 'serverHelper', function () {
|
|
5302
|
-
return this.
|
|
5302
|
+
return this.qa1();
|
|
5303
5303
|
});
|
|
5304
5304
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5305
|
-
return this.
|
|
5305
|
+
return this.ra1();
|
|
5306
5306
|
});
|
|
5307
5307
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5308
|
-
return this.
|
|
5308
|
+
return this.oa1();
|
|
5309
5309
|
});
|
|
5310
5310
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5311
|
-
return this.
|
|
5311
|
+
return this.sa1();
|
|
5312
5312
|
});
|
|
5313
5313
|
//endregion
|
|
5314
5314
|
//region block: init
|