client_plugin_logic_deb 1.8.210 → 1.8.211
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 +2 -2
- package/Logic_Debertz-client_plugin.d.ts +3 -2
- package/Logic_Debertz-client_plugin.js +1919 -1919
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +11563 -11389
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5243 -5243
- package/Logic_Debertz-game_server.js +481 -481
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
tmp = existingNicknames;
|
|
331
331
|
}
|
|
332
332
|
existingNicknames = tmp;
|
|
333
|
-
return this.
|
|
333
|
+
return this.jd2(playerId, existingNicknames);
|
|
334
334
|
}
|
|
335
335
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
336
336
|
initMetadataForCompanion(Companion_2);
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
359
359
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
360
360
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
361
|
-
return this.
|
|
361
|
+
return this.zd2(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
362
362
|
}
|
|
363
363
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
364
364
|
initMetadataForClass(_no_name_provided__qut3iv_3, VOID, VOID, VOID, [Reducer]);
|
|
@@ -367,17 +367,17 @@
|
|
|
367
367
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
368
368
|
//endregion
|
|
369
369
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
370
|
-
this.
|
|
370
|
+
this.ncs_1 = $subscriber;
|
|
371
371
|
CoroutineImpl.call(this, resultContinuation);
|
|
372
372
|
}
|
|
373
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
374
|
-
var tmp = this.
|
|
373
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).pcs = function (it, $completion) {
|
|
374
|
+
var tmp = this.qcs(it, $completion);
|
|
375
375
|
tmp.f9_1 = Unit_instance;
|
|
376
376
|
tmp.g9_1 = null;
|
|
377
377
|
return tmp.l9();
|
|
378
378
|
};
|
|
379
379
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).ga = function (p1, $completion) {
|
|
380
|
-
return this.
|
|
380
|
+
return this.pcs(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
381
381
|
};
|
|
382
382
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).l9 = function () {
|
|
383
383
|
var suspendResult = this.f9_1;
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
var tmp = this.d9_1;
|
|
387
387
|
if (tmp === 0) {
|
|
388
388
|
this.e9_1 = 1;
|
|
389
|
-
this.
|
|
389
|
+
this.ncs_1(this.ocs_1);
|
|
390
390
|
return Unit_instance;
|
|
391
391
|
} else if (tmp === 1) {
|
|
392
392
|
throw this.g9_1;
|
|
@@ -397,31 +397,31 @@
|
|
|
397
397
|
}
|
|
398
398
|
while (true);
|
|
399
399
|
};
|
|
400
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
401
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
402
|
-
i.
|
|
400
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).qcs = function (it, completion) {
|
|
401
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.ncs_1, completion);
|
|
402
|
+
i.ocs_1 = it;
|
|
403
403
|
return i;
|
|
404
404
|
};
|
|
405
405
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
406
406
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
407
407
|
var l = function (it, $completion) {
|
|
408
|
-
return i.
|
|
408
|
+
return i.pcs(it, $completion);
|
|
409
409
|
};
|
|
410
410
|
l.$arity = 1;
|
|
411
411
|
return l;
|
|
412
412
|
}
|
|
413
413
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
414
|
-
this.
|
|
414
|
+
this.zcs_1 = $subscriber;
|
|
415
415
|
CoroutineImpl.call(this, resultContinuation);
|
|
416
416
|
}
|
|
417
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
418
|
-
var tmp = this.
|
|
417
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).bct = function (it, $completion) {
|
|
418
|
+
var tmp = this.cct(it, $completion);
|
|
419
419
|
tmp.f9_1 = Unit_instance;
|
|
420
420
|
tmp.g9_1 = null;
|
|
421
421
|
return tmp.l9();
|
|
422
422
|
};
|
|
423
423
|
protoOf(GameServer$subscribeWith$slambda$slambda).ga = function (p1, $completion) {
|
|
424
|
-
return this.
|
|
424
|
+
return this.bct(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
425
425
|
};
|
|
426
426
|
protoOf(GameServer$subscribeWith$slambda$slambda).l9 = function () {
|
|
427
427
|
var suspendResult = this.f9_1;
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
var tmp = this.d9_1;
|
|
431
431
|
if (tmp === 0) {
|
|
432
432
|
this.e9_1 = 1;
|
|
433
|
-
this.
|
|
433
|
+
this.zcs_1(this.act_1);
|
|
434
434
|
return Unit_instance;
|
|
435
435
|
} else if (tmp === 1) {
|
|
436
436
|
throw this.g9_1;
|
|
@@ -441,59 +441,59 @@
|
|
|
441
441
|
}
|
|
442
442
|
while (true);
|
|
443
443
|
};
|
|
444
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
445
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
446
|
-
i.
|
|
444
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).cct = function (it, completion) {
|
|
445
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.zcs_1, completion);
|
|
446
|
+
i.act_1 = it;
|
|
447
447
|
return i;
|
|
448
448
|
};
|
|
449
449
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
450
450
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
451
451
|
var l = function (it, $completion) {
|
|
452
|
-
return i.
|
|
452
|
+
return i.bct(it, $completion);
|
|
453
453
|
};
|
|
454
454
|
l.$arity = 1;
|
|
455
455
|
return l;
|
|
456
456
|
}
|
|
457
457
|
function _get_logger__rkp4sl($this) {
|
|
458
458
|
// Inline function 'kotlin.getValue' call
|
|
459
|
-
var this_0 = $this.
|
|
459
|
+
var this_0 = $this.fct_1;
|
|
460
460
|
logger$factory_0();
|
|
461
461
|
return this_0.u();
|
|
462
462
|
}
|
|
463
463
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
464
464
|
// Inline function 'kotlin.getValue' call
|
|
465
|
-
var this_0 = $this.
|
|
465
|
+
var this_0 = $this.gct_1;
|
|
466
466
|
toClientEventsObserver$factory_0();
|
|
467
467
|
return this_0.u();
|
|
468
468
|
}
|
|
469
469
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
470
470
|
// Inline function 'kotlin.getValue' call
|
|
471
|
-
var this_0 = $this.
|
|
471
|
+
var this_0 = $this.hct_1;
|
|
472
472
|
playerConnectionInteractor$factory_0();
|
|
473
473
|
return this_0.u();
|
|
474
474
|
}
|
|
475
475
|
function Companion() {
|
|
476
|
-
this.
|
|
476
|
+
this.jct_1 = 'GameEngine_API';
|
|
477
477
|
}
|
|
478
478
|
var Companion_instance_7;
|
|
479
479
|
function Companion_getInstance_2() {
|
|
480
480
|
return Companion_instance_7;
|
|
481
481
|
}
|
|
482
482
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
483
|
-
this.
|
|
483
|
+
this.kct_1 = function_0;
|
|
484
484
|
}
|
|
485
485
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).e17 = function (value, $completion) {
|
|
486
|
-
return this.
|
|
486
|
+
return this.kct_1(value, $completion);
|
|
487
487
|
};
|
|
488
488
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
489
|
-
this.
|
|
489
|
+
this.lct_1 = function_0;
|
|
490
490
|
}
|
|
491
491
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).e17 = function (value, $completion) {
|
|
492
|
-
return this.
|
|
492
|
+
return this.lct_1(value, $completion);
|
|
493
493
|
};
|
|
494
494
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
495
|
+
this.uct_1 = this$0;
|
|
496
|
+
this.vct_1 = $subscriber;
|
|
497
497
|
CoroutineImpl.call(this, resultContinuation);
|
|
498
498
|
}
|
|
499
499
|
protoOf(GameServer$subscribeToClientAction$slambda).t1d = function ($this$launchDefault, $completion) {
|
|
@@ -514,8 +514,8 @@
|
|
|
514
514
|
case 0:
|
|
515
515
|
this.e9_1 = 2;
|
|
516
516
|
this.d9_1 = 1;
|
|
517
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
518
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
517
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.uct_1).aay();
|
|
518
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.vct_1, null);
|
|
519
519
|
suspendResult = tmp_0.a16(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
520
520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
521
521
|
return suspendResult;
|
|
@@ -539,8 +539,8 @@
|
|
|
539
539
|
while (true);
|
|
540
540
|
};
|
|
541
541
|
protoOf(GameServer$subscribeToClientAction$slambda).u1d = function ($this$launchDefault, completion) {
|
|
542
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
543
|
-
i.
|
|
542
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.uct_1, this.vct_1, completion);
|
|
543
|
+
i.wct_1 = $this$launchDefault;
|
|
544
544
|
return i;
|
|
545
545
|
};
|
|
546
546
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -552,8 +552,8 @@
|
|
|
552
552
|
return l;
|
|
553
553
|
}
|
|
554
554
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
555
|
+
this.fcu_1 = this$0;
|
|
556
|
+
this.gcu_1 = $subscriber;
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
558
|
}
|
|
559
559
|
protoOf(GameServer$subscribeWith$slambda).t1d = function ($this$launchDefault, $completion) {
|
|
@@ -574,8 +574,8 @@
|
|
|
574
574
|
case 0:
|
|
575
575
|
this.e9_1 = 2;
|
|
576
576
|
this.d9_1 = 1;
|
|
577
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
578
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
577
|
+
var tmp_0 = distinctUntilChanged(this.fcu_1.b6s());
|
|
578
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.gcu_1, null);
|
|
579
579
|
suspendResult = tmp_0.a16(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
580
580
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
581
581
|
return suspendResult;
|
|
@@ -599,8 +599,8 @@
|
|
|
599
599
|
while (true);
|
|
600
600
|
};
|
|
601
601
|
protoOf(GameServer$subscribeWith$slambda).u1d = function ($this$launchDefault, completion) {
|
|
602
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
603
|
-
i.
|
|
602
|
+
var i = new GameServer$subscribeWith$slambda(this.fcu_1, this.gcu_1, completion);
|
|
603
|
+
i.hcu_1 = $this$launchDefault;
|
|
604
604
|
return i;
|
|
605
605
|
};
|
|
606
606
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -612,18 +612,18 @@
|
|
|
612
612
|
return l;
|
|
613
613
|
}
|
|
614
614
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
615
|
-
this.
|
|
615
|
+
this.qcu_1 = $action;
|
|
616
616
|
CoroutineImpl.call(this, resultContinuation);
|
|
617
617
|
}
|
|
618
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
619
|
-
var tmp = this.
|
|
618
|
+
protoOf(GameServer$fromClientEvent$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
619
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
620
620
|
tmp.f9_1 = Unit_instance;
|
|
621
621
|
tmp.g9_1 = null;
|
|
622
622
|
return tmp.l9();
|
|
623
623
|
};
|
|
624
624
|
protoOf(GameServer$fromClientEvent$slambda).yi = function (p1, p2, $completion) {
|
|
625
625
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
626
|
-
return this.
|
|
626
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
627
627
|
};
|
|
628
628
|
protoOf(GameServer$fromClientEvent$slambda).l9 = function () {
|
|
629
629
|
var suspendResult = this.f9_1;
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
var tmp = this.d9_1;
|
|
633
633
|
if (tmp === 0) {
|
|
634
634
|
this.e9_1 = 1;
|
|
635
|
-
this.
|
|
635
|
+
this.scu_1.dispatch(this.qcu_1);
|
|
636
636
|
return Unit_instance;
|
|
637
637
|
} else if (tmp === 1) {
|
|
638
638
|
throw this.g9_1;
|
|
@@ -643,33 +643,33 @@
|
|
|
643
643
|
}
|
|
644
644
|
while (true);
|
|
645
645
|
};
|
|
646
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
647
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
648
|
-
i.
|
|
649
|
-
i.
|
|
646
|
+
protoOf(GameServer$fromClientEvent$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
647
|
+
var i = new GameServer$fromClientEvent$slambda(this.qcu_1, completion);
|
|
648
|
+
i.rcu_1 = $this$dispatchAsync;
|
|
649
|
+
i.scu_1 = store;
|
|
650
650
|
return i;
|
|
651
651
|
};
|
|
652
652
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
653
653
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
654
654
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
655
|
-
return i.
|
|
655
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
656
656
|
};
|
|
657
657
|
l.$arity = 2;
|
|
658
658
|
return l;
|
|
659
659
|
}
|
|
660
660
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
661
|
-
this.
|
|
661
|
+
this.bcv_1 = $playerId;
|
|
662
662
|
CoroutineImpl.call(this, resultContinuation);
|
|
663
663
|
}
|
|
664
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
665
|
-
var tmp = this.
|
|
664
|
+
protoOf(GameServer$playerLostConnection$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
665
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
666
666
|
tmp.f9_1 = Unit_instance;
|
|
667
667
|
tmp.g9_1 = null;
|
|
668
668
|
return tmp.l9();
|
|
669
669
|
};
|
|
670
670
|
protoOf(GameServer$playerLostConnection$slambda).yi = function (p1, p2, $completion) {
|
|
671
671
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
672
|
-
return this.
|
|
672
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
673
673
|
};
|
|
674
674
|
protoOf(GameServer$playerLostConnection$slambda).l9 = function () {
|
|
675
675
|
var suspendResult = this.f9_1;
|
|
@@ -678,9 +678,9 @@
|
|
|
678
678
|
var tmp = this.d9_1;
|
|
679
679
|
if (tmp === 0) {
|
|
680
680
|
this.e9_1 = 1;
|
|
681
|
-
var tmp_0 = this.
|
|
681
|
+
var tmp_0 = this.dcv_1.dispatch;
|
|
682
682
|
var tmp2_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
683
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp2_connectionState, this.
|
|
683
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp2_connectionState, this.bcv_1));
|
|
684
684
|
return Unit_instance;
|
|
685
685
|
} else if (tmp === 1) {
|
|
686
686
|
throw this.g9_1;
|
|
@@ -691,33 +691,33 @@
|
|
|
691
691
|
}
|
|
692
692
|
while (true);
|
|
693
693
|
};
|
|
694
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
695
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
696
|
-
i.
|
|
697
|
-
i.
|
|
694
|
+
protoOf(GameServer$playerLostConnection$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
695
|
+
var i = new GameServer$playerLostConnection$slambda(this.bcv_1, completion);
|
|
696
|
+
i.ccv_1 = $this$dispatchAsync;
|
|
697
|
+
i.dcv_1 = store;
|
|
698
698
|
return i;
|
|
699
699
|
};
|
|
700
700
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
701
701
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
702
702
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
703
|
-
return i.
|
|
703
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
704
704
|
};
|
|
705
705
|
l.$arity = 2;
|
|
706
706
|
return l;
|
|
707
707
|
}
|
|
708
708
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
709
|
-
this.
|
|
709
|
+
this.mcv_1 = $playerId;
|
|
710
710
|
CoroutineImpl.call(this, resultContinuation);
|
|
711
711
|
}
|
|
712
|
-
protoOf(GameServer$playerLive$slambda).
|
|
713
|
-
var tmp = this.
|
|
712
|
+
protoOf(GameServer$playerLive$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
713
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
714
714
|
tmp.f9_1 = Unit_instance;
|
|
715
715
|
tmp.g9_1 = null;
|
|
716
716
|
return tmp.l9();
|
|
717
717
|
};
|
|
718
718
|
protoOf(GameServer$playerLive$slambda).yi = function (p1, p2, $completion) {
|
|
719
719
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
720
|
-
return this.
|
|
720
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
721
721
|
};
|
|
722
722
|
protoOf(GameServer$playerLive$slambda).l9 = function () {
|
|
723
723
|
var suspendResult = this.f9_1;
|
|
@@ -726,9 +726,9 @@
|
|
|
726
726
|
var tmp = this.d9_1;
|
|
727
727
|
if (tmp === 0) {
|
|
728
728
|
this.e9_1 = 1;
|
|
729
|
-
var tmp_0 = this.
|
|
729
|
+
var tmp_0 = this.ocv_1.dispatch;
|
|
730
730
|
var tmp3_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
731
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp3_connectionState, this.
|
|
731
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp3_connectionState, this.mcv_1));
|
|
732
732
|
return Unit_instance;
|
|
733
733
|
} else if (tmp === 1) {
|
|
734
734
|
throw this.g9_1;
|
|
@@ -739,33 +739,33 @@
|
|
|
739
739
|
}
|
|
740
740
|
while (true);
|
|
741
741
|
};
|
|
742
|
-
protoOf(GameServer$playerLive$slambda).
|
|
743
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
744
|
-
i.
|
|
745
|
-
i.
|
|
742
|
+
protoOf(GameServer$playerLive$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
743
|
+
var i = new GameServer$playerLive$slambda(this.mcv_1, completion);
|
|
744
|
+
i.ncv_1 = $this$dispatchAsync;
|
|
745
|
+
i.ocv_1 = store;
|
|
746
746
|
return i;
|
|
747
747
|
};
|
|
748
748
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
749
749
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
750
750
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
751
|
-
return i.
|
|
751
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
752
752
|
};
|
|
753
753
|
l.$arity = 2;
|
|
754
754
|
return l;
|
|
755
755
|
}
|
|
756
756
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
757
|
-
this.
|
|
757
|
+
this.xcv_1 = $playerId;
|
|
758
758
|
CoroutineImpl.call(this, resultContinuation);
|
|
759
759
|
}
|
|
760
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
761
|
-
var tmp = this.
|
|
760
|
+
protoOf(GameServer$playerLeft$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
761
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
762
762
|
tmp.f9_1 = Unit_instance;
|
|
763
763
|
tmp.g9_1 = null;
|
|
764
764
|
return tmp.l9();
|
|
765
765
|
};
|
|
766
766
|
protoOf(GameServer$playerLeft$slambda).yi = function (p1, p2, $completion) {
|
|
767
767
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
768
|
-
return this.
|
|
768
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
769
769
|
};
|
|
770
770
|
protoOf(GameServer$playerLeft$slambda).l9 = function () {
|
|
771
771
|
var suspendResult = this.f9_1;
|
|
@@ -774,9 +774,9 @@
|
|
|
774
774
|
var tmp = this.d9_1;
|
|
775
775
|
if (tmp === 0) {
|
|
776
776
|
this.e9_1 = 1;
|
|
777
|
-
var tmp_0 = this.
|
|
777
|
+
var tmp_0 = this.zcv_1.dispatch;
|
|
778
778
|
var tmp4_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
779
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp4_connectionState, this.
|
|
779
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp4_connectionState, this.xcv_1));
|
|
780
780
|
return Unit_instance;
|
|
781
781
|
} else if (tmp === 1) {
|
|
782
782
|
throw this.g9_1;
|
|
@@ -787,36 +787,36 @@
|
|
|
787
787
|
}
|
|
788
788
|
while (true);
|
|
789
789
|
};
|
|
790
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
791
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
792
|
-
i.
|
|
793
|
-
i.
|
|
790
|
+
protoOf(GameServer$playerLeft$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
791
|
+
var i = new GameServer$playerLeft$slambda(this.xcv_1, completion);
|
|
792
|
+
i.ycv_1 = $this$dispatchAsync;
|
|
793
|
+
i.zcv_1 = store;
|
|
794
794
|
return i;
|
|
795
795
|
};
|
|
796
796
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
797
797
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
798
798
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
799
|
-
return i.
|
|
799
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
800
800
|
};
|
|
801
801
|
l.$arity = 2;
|
|
802
802
|
return l;
|
|
803
803
|
}
|
|
804
804
|
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, $config, $roomId, resultContinuation) {
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
805
|
+
this.icw_1 = $users;
|
|
806
|
+
this.jcw_1 = $gameCreatorId;
|
|
807
|
+
this.kcw_1 = $config;
|
|
808
|
+
this.lcw_1 = $roomId;
|
|
809
809
|
CoroutineImpl.call(this, resultContinuation);
|
|
810
810
|
}
|
|
811
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
812
|
-
var tmp = this.
|
|
811
|
+
protoOf(GameServer$roomOnCreate$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
812
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
813
813
|
tmp.f9_1 = Unit_instance;
|
|
814
814
|
tmp.g9_1 = null;
|
|
815
815
|
return tmp.l9();
|
|
816
816
|
};
|
|
817
817
|
protoOf(GameServer$roomOnCreate$slambda).yi = function (p1, p2, $completion) {
|
|
818
818
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
819
|
-
return this.
|
|
819
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
820
820
|
};
|
|
821
821
|
protoOf(GameServer$roomOnCreate$slambda).l9 = function () {
|
|
822
822
|
var suspendResult = this.f9_1;
|
|
@@ -825,12 +825,12 @@
|
|
|
825
825
|
var tmp = this.d9_1;
|
|
826
826
|
if (tmp === 0) {
|
|
827
827
|
this.e9_1 = 1;
|
|
828
|
-
var usersList = toList(this.
|
|
829
|
-
var gameCreatorUser = getPlayer(usersList, this.
|
|
830
|
-
var tmp_0 = this.
|
|
828
|
+
var usersList = toList(this.icw_1);
|
|
829
|
+
var gameCreatorUser = getPlayer(usersList, this.jcw_1);
|
|
830
|
+
var tmp_0 = this.ncw_1.dispatch;
|
|
831
831
|
var tmp5_version = GameEngineConfig_instance.version;
|
|
832
832
|
var tmp6_users = sortWithItem(usersList, gameCreatorUser);
|
|
833
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
833
|
+
tmp_0(new StartGameMechanicAction(this.kcw_1, this.lcw_1, tmp5_version, this.jcw_1, tmp6_users));
|
|
834
834
|
return Unit_instance;
|
|
835
835
|
} else if (tmp === 1) {
|
|
836
836
|
throw this.g9_1;
|
|
@@ -841,34 +841,34 @@
|
|
|
841
841
|
}
|
|
842
842
|
while (true);
|
|
843
843
|
};
|
|
844
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
845
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
846
|
-
i.
|
|
847
|
-
i.
|
|
844
|
+
protoOf(GameServer$roomOnCreate$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
845
|
+
var i = new GameServer$roomOnCreate$slambda(this.icw_1, this.jcw_1, this.kcw_1, this.lcw_1, completion);
|
|
846
|
+
i.mcw_1 = $this$dispatchAsync;
|
|
847
|
+
i.ncw_1 = store;
|
|
848
848
|
return i;
|
|
849
849
|
};
|
|
850
850
|
function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, $config, $roomId, resultContinuation) {
|
|
851
851
|
var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, $config, $roomId, resultContinuation);
|
|
852
852
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
853
|
-
return i.
|
|
853
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
854
854
|
};
|
|
855
855
|
l.$arity = 2;
|
|
856
856
|
return l;
|
|
857
857
|
}
|
|
858
858
|
function GameServer$roomRefreshPlayerState$slambda(this$0, $playerId, resultContinuation) {
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
859
|
+
this.wcw_1 = this$0;
|
|
860
|
+
this.xcw_1 = $playerId;
|
|
861
861
|
CoroutineImpl.call(this, resultContinuation);
|
|
862
862
|
}
|
|
863
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
864
|
-
var tmp = this.
|
|
863
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
864
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
865
865
|
tmp.f9_1 = Unit_instance;
|
|
866
866
|
tmp.g9_1 = null;
|
|
867
867
|
return tmp.l9();
|
|
868
868
|
};
|
|
869
869
|
protoOf(GameServer$roomRefreshPlayerState$slambda).yi = function (p1, p2, $completion) {
|
|
870
870
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
871
|
-
return this.
|
|
871
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
872
872
|
};
|
|
873
873
|
protoOf(GameServer$roomRefreshPlayerState$slambda).l9 = function () {
|
|
874
874
|
var suspendResult = this.f9_1;
|
|
@@ -877,8 +877,8 @@
|
|
|
877
877
|
var tmp = this.d9_1;
|
|
878
878
|
if (tmp === 0) {
|
|
879
879
|
this.e9_1 = 1;
|
|
880
|
-
var table = this.
|
|
881
|
-
this.
|
|
880
|
+
var table = this.zcw_1.state.t6s();
|
|
881
|
+
this.zcw_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.wcw_1).x8x(getPlayer(table.players, this.xcw_1), table));
|
|
882
882
|
return Unit_instance;
|
|
883
883
|
} else if (tmp === 1) {
|
|
884
884
|
throw this.g9_1;
|
|
@@ -889,33 +889,33 @@
|
|
|
889
889
|
}
|
|
890
890
|
while (true);
|
|
891
891
|
};
|
|
892
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
893
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
894
|
-
i.
|
|
895
|
-
i.
|
|
892
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
893
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.wcw_1, this.xcw_1, completion);
|
|
894
|
+
i.ycw_1 = $this$dispatchAsync;
|
|
895
|
+
i.zcw_1 = store;
|
|
896
896
|
return i;
|
|
897
897
|
};
|
|
898
898
|
function GameServer$roomRefreshPlayerState$slambda_0(this$0, $playerId, resultContinuation) {
|
|
899
899
|
var i = new GameServer$roomRefreshPlayerState$slambda(this$0, $playerId, resultContinuation);
|
|
900
900
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
901
|
-
return i.
|
|
901
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
902
902
|
};
|
|
903
903
|
l.$arity = 2;
|
|
904
904
|
return l;
|
|
905
905
|
}
|
|
906
906
|
function GameServer$roomOnDelete$slambda(this$0, resultContinuation) {
|
|
907
|
-
this.
|
|
907
|
+
this.icx_1 = this$0;
|
|
908
908
|
CoroutineImpl.call(this, resultContinuation);
|
|
909
909
|
}
|
|
910
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
911
|
-
var tmp = this.
|
|
910
|
+
protoOf(GameServer$roomOnDelete$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
911
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
912
912
|
tmp.f9_1 = Unit_instance;
|
|
913
913
|
tmp.g9_1 = null;
|
|
914
914
|
return tmp.l9();
|
|
915
915
|
};
|
|
916
916
|
protoOf(GameServer$roomOnDelete$slambda).yi = function (p1, p2, $completion) {
|
|
917
917
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
918
|
-
return this.
|
|
918
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
919
919
|
};
|
|
920
920
|
protoOf(GameServer$roomOnDelete$slambda).l9 = function () {
|
|
921
921
|
var suspendResult = this.f9_1;
|
|
@@ -924,16 +924,16 @@
|
|
|
924
924
|
var tmp = this.d9_1;
|
|
925
925
|
if (tmp === 0) {
|
|
926
926
|
this.e9_1 = 1;
|
|
927
|
-
var it = this.
|
|
927
|
+
var it = this.icx_1.s6b().f6s_1;
|
|
928
928
|
var tmp_0;
|
|
929
929
|
if (it == null) {
|
|
930
|
-
_get_logger__rkp4sl(this.
|
|
930
|
+
_get_logger__rkp4sl(this.icx_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
931
931
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
932
932
|
} else {
|
|
933
933
|
tmp_0 = it;
|
|
934
934
|
}
|
|
935
935
|
var terminationState = tmp_0;
|
|
936
|
-
this.
|
|
936
|
+
this.kcx_1.dispatch(new FinishGameMechanicAction(terminationState.p84_1, this.icx_1.s6b().t6s().isGameFinished));
|
|
937
937
|
return Unit_instance;
|
|
938
938
|
} else if (tmp === 1) {
|
|
939
939
|
throw this.g9_1;
|
|
@@ -944,33 +944,33 @@
|
|
|
944
944
|
}
|
|
945
945
|
while (true);
|
|
946
946
|
};
|
|
947
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
948
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
949
|
-
i.
|
|
950
|
-
i.
|
|
947
|
+
protoOf(GameServer$roomOnDelete$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
948
|
+
var i = new GameServer$roomOnDelete$slambda(this.icx_1, completion);
|
|
949
|
+
i.jcx_1 = $this$dispatchAsync;
|
|
950
|
+
i.kcx_1 = store;
|
|
951
951
|
return i;
|
|
952
952
|
};
|
|
953
953
|
function GameServer$roomOnDelete$slambda_0(this$0, resultContinuation) {
|
|
954
954
|
var i = new GameServer$roomOnDelete$slambda(this$0, resultContinuation);
|
|
955
955
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
956
|
-
return i.
|
|
956
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
957
957
|
};
|
|
958
958
|
l.$arity = 2;
|
|
959
959
|
return l;
|
|
960
960
|
}
|
|
961
961
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
962
|
-
this.
|
|
962
|
+
this.tcx_1 = $enabled;
|
|
963
963
|
CoroutineImpl.call(this, resultContinuation);
|
|
964
964
|
}
|
|
965
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
966
|
-
var tmp = this.
|
|
965
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
966
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
967
967
|
tmp.f9_1 = Unit_instance;
|
|
968
968
|
tmp.g9_1 = null;
|
|
969
969
|
return tmp.l9();
|
|
970
970
|
};
|
|
971
971
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).yi = function (p1, p2, $completion) {
|
|
972
972
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
973
|
-
return this.
|
|
973
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
974
974
|
};
|
|
975
975
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).l9 = function () {
|
|
976
976
|
var suspendResult = this.f9_1;
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
var tmp = this.d9_1;
|
|
980
980
|
if (tmp === 0) {
|
|
981
981
|
this.e9_1 = 1;
|
|
982
|
-
this.
|
|
982
|
+
this.vcx_1.dispatch(new UpdateServerConfigAction(get_serverState(this.vcx_1.state).wcx_1.ycx(this.tcx_1)));
|
|
983
983
|
return Unit_instance;
|
|
984
984
|
} else if (tmp === 1) {
|
|
985
985
|
throw this.g9_1;
|
|
@@ -990,34 +990,34 @@
|
|
|
990
990
|
}
|
|
991
991
|
while (true);
|
|
992
992
|
};
|
|
993
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
994
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
995
|
-
i.
|
|
996
|
-
i.
|
|
993
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
994
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.tcx_1, completion);
|
|
995
|
+
i.ucx_1 = $this$dispatchAsync;
|
|
996
|
+
i.vcx_1 = store;
|
|
997
997
|
return i;
|
|
998
998
|
};
|
|
999
999
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1000
1000
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1001
1001
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1002
|
-
return i.
|
|
1002
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
1003
1003
|
};
|
|
1004
1004
|
l.$arity = 2;
|
|
1005
1005
|
return l;
|
|
1006
1006
|
}
|
|
1007
1007
|
function GameServer$shutdown$slambda($reason, this$0, resultContinuation) {
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1008
|
+
this.hcy_1 = $reason;
|
|
1009
|
+
this.icy_1 = this$0;
|
|
1010
1010
|
CoroutineImpl.call(this, resultContinuation);
|
|
1011
1011
|
}
|
|
1012
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1013
|
-
var tmp = this.
|
|
1012
|
+
protoOf(GameServer$shutdown$slambda).mat = function ($this$dispatchAsync, store, $completion) {
|
|
1013
|
+
var tmp = this.nat($this$dispatchAsync, store, $completion);
|
|
1014
1014
|
tmp.f9_1 = Unit_instance;
|
|
1015
1015
|
tmp.g9_1 = null;
|
|
1016
1016
|
return tmp.l9();
|
|
1017
1017
|
};
|
|
1018
1018
|
protoOf(GameServer$shutdown$slambda).yi = function (p1, p2, $completion) {
|
|
1019
1019
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1020
|
-
return this.
|
|
1020
|
+
return this.mat(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1021
1021
|
};
|
|
1022
1022
|
protoOf(GameServer$shutdown$slambda).l9 = function () {
|
|
1023
1023
|
var suspendResult = this.f9_1;
|
|
@@ -1026,11 +1026,11 @@
|
|
|
1026
1026
|
var tmp = this.d9_1;
|
|
1027
1027
|
if (tmp === 0) {
|
|
1028
1028
|
this.e9_1 = 1;
|
|
1029
|
-
var state = this.
|
|
1030
|
-
if (state.
|
|
1031
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1029
|
+
var state = this.kcy_1.store.state;
|
|
1030
|
+
if (state.u6s()) {
|
|
1031
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.hcy_1, get_serverShutdownReasonMapping());
|
|
1032
1032
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1033
|
-
var tmp_0 = this.
|
|
1033
|
+
var tmp_0 = this.kcy_1.dispatch;
|
|
1034
1034
|
var tmp_1 = Companion_instance;
|
|
1035
1035
|
var tmp_2;
|
|
1036
1036
|
switch (shutdownReason.o2_1) {
|
|
@@ -1044,10 +1044,10 @@
|
|
|
1044
1044
|
noWhenBranchMatchedException();
|
|
1045
1045
|
break;
|
|
1046
1046
|
}
|
|
1047
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1047
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.icy_1.table.isGameFinished, this.icy_1.table));
|
|
1048
1048
|
} else {
|
|
1049
|
-
_get_logger__rkp4sl(this.
|
|
1050
|
-
this.
|
|
1049
|
+
_get_logger__rkp4sl(this.icy_1).w('GameEngine_API', "GameServer: can't shutdown engine without table");
|
|
1050
|
+
this.kcy_1.dispatch(ClearAction_instance);
|
|
1051
1051
|
}
|
|
1052
1052
|
return Unit_instance;
|
|
1053
1053
|
} else if (tmp === 1) {
|
|
@@ -1059,22 +1059,22 @@
|
|
|
1059
1059
|
}
|
|
1060
1060
|
while (true);
|
|
1061
1061
|
};
|
|
1062
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1063
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1064
|
-
i.
|
|
1065
|
-
i.
|
|
1062
|
+
protoOf(GameServer$shutdown$slambda).nat = function ($this$dispatchAsync, store, completion) {
|
|
1063
|
+
var i = new GameServer$shutdown$slambda(this.hcy_1, this.icy_1, completion);
|
|
1064
|
+
i.jcy_1 = $this$dispatchAsync;
|
|
1065
|
+
i.kcy_1 = store;
|
|
1066
1066
|
return i;
|
|
1067
1067
|
};
|
|
1068
1068
|
function GameServer$shutdown$slambda_0($reason, this$0, resultContinuation) {
|
|
1069
1069
|
var i = new GameServer$shutdown$slambda($reason, this$0, resultContinuation);
|
|
1070
1070
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1071
|
-
return i.
|
|
1071
|
+
return i.mat($this$dispatchAsync, store, $completion);
|
|
1072
1072
|
};
|
|
1073
1073
|
l.$arity = 2;
|
|
1074
1074
|
return l;
|
|
1075
1075
|
}
|
|
1076
1076
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1077
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1077
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.lcy()) : preloadedState;
|
|
1078
1078
|
var tmp;
|
|
1079
1079
|
if (externalReducers === VOID) {
|
|
1080
1080
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1097,38 +1097,38 @@
|
|
|
1097
1097
|
// Inline function 'org.kodein.type.generic' call
|
|
1098
1098
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1099
1099
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1100
|
-
tmp_1.
|
|
1100
|
+
tmp_1.fct_1 = Instance(di, tmp$ret$2, null).e65(this, logger$factory());
|
|
1101
1101
|
var tmp_3 = this;
|
|
1102
1102
|
// Inline function 'org.kodein.di.instance' call
|
|
1103
1103
|
// Inline function 'org.kodein.type.generic' call
|
|
1104
1104
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1105
1105
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1106
|
-
tmp_3.
|
|
1106
|
+
tmp_3.gct_1 = Instance(di, tmp$ret$4, null).e65(this, toClientEventsObserver$factory());
|
|
1107
1107
|
var tmp_5 = this;
|
|
1108
1108
|
// Inline function 'org.kodein.di.instance' call
|
|
1109
1109
|
// Inline function 'org.kodein.type.generic' call
|
|
1110
1110
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1111
1111
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1112
|
-
tmp_5.
|
|
1112
|
+
tmp_5.hct_1 = Instance(di, tmp$ret$6, null).e65(this, playerConnectionInteractor$factory());
|
|
1113
1113
|
var tmp_7 = this;
|
|
1114
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1115
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1116
|
-
tmp_7.
|
|
1114
|
+
var tmp0_externalMiddlewares = plus(storeContract.m93(), externalMiddlewares);
|
|
1115
|
+
var tmp1_externalReducers = plus(storeContract.l93(), externalReducers);
|
|
1116
|
+
tmp_7.ict_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1117
1117
|
}
|
|
1118
1118
|
protoOf(GameServer).j6r = function () {
|
|
1119
|
-
return this.
|
|
1119
|
+
return this.ict_1;
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(GameServer).p5m = function () {
|
|
1122
|
-
return this.s6b().
|
|
1123
|
-
};
|
|
1124
|
-
protoOf(GameServer).s6s = function () {
|
|
1125
|
-
return this.s6b().s6s();
|
|
1122
|
+
return this.s6b().t6s().id;
|
|
1126
1123
|
};
|
|
1127
1124
|
protoOf(GameServer).t6s = function () {
|
|
1128
1125
|
return this.s6b().t6s();
|
|
1129
1126
|
};
|
|
1130
1127
|
protoOf(GameServer).u6s = function () {
|
|
1131
|
-
return this.s6b().
|
|
1128
|
+
return this.s6b().u6s();
|
|
1129
|
+
};
|
|
1130
|
+
protoOf(GameServer).v6s = function () {
|
|
1131
|
+
return this.s6b().e6s_1;
|
|
1132
1132
|
};
|
|
1133
1133
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
1134
1134
|
var tmp = this.h6r();
|
|
@@ -1140,34 +1140,34 @@
|
|
|
1140
1140
|
};
|
|
1141
1141
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1142
1142
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1143
|
-
this.
|
|
1143
|
+
this.ict_1.s6s(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1144
1144
|
};
|
|
1145
1145
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1146
1146
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1147
|
-
this.
|
|
1147
|
+
this.ict_1.s6s(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1148
1148
|
};
|
|
1149
1149
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1150
1150
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1151
|
-
this.
|
|
1151
|
+
this.ict_1.s6s(GameServer$playerLive$slambda_0(playerId, null));
|
|
1152
1152
|
};
|
|
1153
1153
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1154
1154
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1155
|
-
this.
|
|
1155
|
+
this.ict_1.s6s(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1156
1156
|
};
|
|
1157
1157
|
protoOf(GameServer).roomOnCreate = function (roomId, gameCreatorId, config, users) {
|
|
1158
|
-
this.
|
|
1158
|
+
this.ict_1.s6s(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, config, roomId, null));
|
|
1159
1159
|
};
|
|
1160
1160
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1161
|
-
this.
|
|
1161
|
+
this.ict_1.s6s(GameServer$roomRefreshPlayerState$slambda_0(this, playerId, null));
|
|
1162
1162
|
};
|
|
1163
1163
|
protoOf(GameServer).roomOnDelete = function () {
|
|
1164
|
-
this.
|
|
1164
|
+
this.ict_1.s6s(GameServer$roomOnDelete$slambda_0(this, null));
|
|
1165
1165
|
};
|
|
1166
1166
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1167
|
-
this.
|
|
1167
|
+
this.ict_1.s6s(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1168
1168
|
};
|
|
1169
1169
|
protoOf(GameServer).shutdown = function (reason) {
|
|
1170
|
-
this.
|
|
1170
|
+
this.ict_1.s6s(GameServer$shutdown$slambda_0(reason, this, null));
|
|
1171
1171
|
};
|
|
1172
1172
|
protoOf(GameServer).clear = function () {
|
|
1173
1173
|
return this.a2();
|
|
@@ -1236,16 +1236,16 @@
|
|
|
1236
1236
|
return ServerShutdownReason_ERROR_instance;
|
|
1237
1237
|
}
|
|
1238
1238
|
function ServerConfig(canStartNewGame) {
|
|
1239
|
-
this.
|
|
1239
|
+
this.xcx_1 = canStartNewGame;
|
|
1240
1240
|
}
|
|
1241
|
-
protoOf(ServerConfig).
|
|
1241
|
+
protoOf(ServerConfig).ycx = function (canStartNewGame) {
|
|
1242
1242
|
return new ServerConfig(canStartNewGame);
|
|
1243
1243
|
};
|
|
1244
1244
|
protoOf(ServerConfig).toString = function () {
|
|
1245
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1245
|
+
return 'ServerConfig(canStartNewGame=' + this.xcx_1 + ')';
|
|
1246
1246
|
};
|
|
1247
1247
|
protoOf(ServerConfig).hashCode = function () {
|
|
1248
|
-
return getBooleanHashCode(this.
|
|
1248
|
+
return getBooleanHashCode(this.xcx_1);
|
|
1249
1249
|
};
|
|
1250
1250
|
protoOf(ServerConfig).equals = function (other) {
|
|
1251
1251
|
if (this === other)
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
if (!(other instanceof ServerConfig))
|
|
1254
1254
|
return false;
|
|
1255
1255
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1256
|
-
if (!(this.
|
|
1256
|
+
if (!(this.xcx_1 === tmp0_other_with_cast.xcx_1))
|
|
1257
1257
|
return false;
|
|
1258
1258
|
return true;
|
|
1259
1259
|
};
|
|
@@ -1485,18 +1485,18 @@
|
|
|
1485
1485
|
function ToClientEventsObserver() {
|
|
1486
1486
|
}
|
|
1487
1487
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1488
|
+
this.vcy_1 = this$0;
|
|
1489
|
+
this.wcy_1 = $actions;
|
|
1490
1490
|
CoroutineImpl.call(this, resultContinuation);
|
|
1491
1491
|
}
|
|
1492
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1493
|
-
var tmp = this.
|
|
1492
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).dcz = function ($this$flow, $completion) {
|
|
1493
|
+
var tmp = this.ecz($this$flow, $completion);
|
|
1494
1494
|
tmp.f9_1 = Unit_instance;
|
|
1495
1495
|
tmp.g9_1 = null;
|
|
1496
1496
|
return tmp.l9();
|
|
1497
1497
|
};
|
|
1498
1498
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).ga = function (p1, $completion) {
|
|
1499
|
-
return this.
|
|
1499
|
+
return this.dcz((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1500
1500
|
};
|
|
1501
1501
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).l9 = function () {
|
|
1502
1502
|
var suspendResult = this.f9_1;
|
|
@@ -1507,23 +1507,23 @@
|
|
|
1507
1507
|
case 0:
|
|
1508
1508
|
this.e9_1 = 4;
|
|
1509
1509
|
var tmp_0 = this;
|
|
1510
|
-
tmp_0.
|
|
1510
|
+
tmp_0.ycy_1 = this.vcy_1.jcz_1;
|
|
1511
1511
|
var tmp_1 = this;
|
|
1512
|
-
tmp_1.
|
|
1513
|
-
this.
|
|
1512
|
+
tmp_1.zcy_1 = transformToEmits(this.vcy_1, this.wcy_1);
|
|
1513
|
+
this.acz_1 = this.zcy_1.j();
|
|
1514
1514
|
this.d9_1 = 1;
|
|
1515
1515
|
continue $sm;
|
|
1516
1516
|
case 1:
|
|
1517
|
-
if (!this.
|
|
1517
|
+
if (!this.acz_1.k()) {
|
|
1518
1518
|
this.d9_1 = 3;
|
|
1519
1519
|
continue $sm;
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
|
-
this.
|
|
1522
|
+
this.bcz_1 = this.acz_1.l();
|
|
1523
1523
|
var tmp_2 = this;
|
|
1524
|
-
tmp_2.
|
|
1524
|
+
tmp_2.ccz_1 = this.bcz_1;
|
|
1525
1525
|
this.d9_1 = 2;
|
|
1526
|
-
suspendResult = this.
|
|
1526
|
+
suspendResult = this.xcy_1.e17(this.ccz_1, this);
|
|
1527
1527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1528
1528
|
return suspendResult;
|
|
1529
1529
|
}
|
|
@@ -1534,10 +1534,10 @@
|
|
|
1534
1534
|
continue $sm;
|
|
1535
1535
|
case 3:
|
|
1536
1536
|
l$ret$1: do {
|
|
1537
|
-
var this_0 = this.
|
|
1537
|
+
var this_0 = this.vcy_1.icz_1;
|
|
1538
1538
|
while (true) {
|
|
1539
1539
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1540
|
-
var upd = cur - this.
|
|
1540
|
+
var upd = cur - this.wcy_1.m() | 0;
|
|
1541
1541
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1542
1542
|
break l$ret$1;
|
|
1543
1543
|
}
|
|
@@ -1559,15 +1559,15 @@
|
|
|
1559
1559
|
}
|
|
1560
1560
|
while (true);
|
|
1561
1561
|
};
|
|
1562
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1563
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1564
|
-
i.
|
|
1562
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).ecz = function ($this$flow, completion) {
|
|
1563
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.vcy_1, this.wcy_1, completion);
|
|
1564
|
+
i.xcy_1 = $this$flow;
|
|
1565
1565
|
return i;
|
|
1566
1566
|
};
|
|
1567
1567
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1568
1568
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1569
1569
|
var l = function ($this$flow, $completion) {
|
|
1570
|
-
return i.
|
|
1570
|
+
return i.dcz($this$flow, $completion);
|
|
1571
1571
|
};
|
|
1572
1572
|
l.$arity = 1;
|
|
1573
1573
|
return l;
|
|
@@ -1640,29 +1640,29 @@
|
|
|
1640
1640
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1641
1641
|
}
|
|
1642
1642
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1643
|
-
var tmp = $this.
|
|
1643
|
+
var tmp = $this.hcz_1.t6i();
|
|
1644
1644
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1645
|
-
var this_0 = _this__u8e3s4.
|
|
1645
|
+
var this_0 = _this__u8e3s4.mcz_1;
|
|
1646
1646
|
var tmp_0 = copyToArray(this_0);
|
|
1647
1647
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1648
|
-
var this_1 = _this__u8e3s4.
|
|
1648
|
+
var this_1 = _this__u8e3s4.ncz_1;
|
|
1649
1649
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1650
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1650
|
+
return new ActionDeliveryPayload(_this__u8e3s4.lcz_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.ocz_1);
|
|
1651
1651
|
}
|
|
1652
1652
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1653
|
+
this.lcz_1 = tableId;
|
|
1654
|
+
this.mcz_1 = includePlayers;
|
|
1655
|
+
this.ncz_1 = excludePlayers;
|
|
1656
|
+
this.ocz_1 = deliveryType;
|
|
1657
1657
|
}
|
|
1658
1658
|
protoOf(GroupKey).toString = function () {
|
|
1659
|
-
return 'GroupKey(tableId=' + this.
|
|
1659
|
+
return 'GroupKey(tableId=' + this.lcz_1 + ', includePlayers=' + toString(this.mcz_1) + ', excludePlayers=' + toString(this.ncz_1) + ', deliveryType=' + this.ocz_1.toString() + ')';
|
|
1660
1660
|
};
|
|
1661
1661
|
protoOf(GroupKey).hashCode = function () {
|
|
1662
|
-
var result = getStringHashCode(this.
|
|
1663
|
-
result = imul(result, 31) + hashCode(this.
|
|
1664
|
-
result = imul(result, 31) + hashCode(this.
|
|
1665
|
-
result = imul(result, 31) + this.
|
|
1662
|
+
var result = getStringHashCode(this.lcz_1);
|
|
1663
|
+
result = imul(result, 31) + hashCode(this.mcz_1) | 0;
|
|
1664
|
+
result = imul(result, 31) + hashCode(this.ncz_1) | 0;
|
|
1665
|
+
result = imul(result, 31) + this.ocz_1.hashCode() | 0;
|
|
1666
1666
|
return result;
|
|
1667
1667
|
};
|
|
1668
1668
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1671,35 +1671,35 @@
|
|
|
1671
1671
|
if (!(other instanceof GroupKey))
|
|
1672
1672
|
return false;
|
|
1673
1673
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1674
|
-
if (!(this.
|
|
1674
|
+
if (!(this.lcz_1 === tmp0_other_with_cast.lcz_1))
|
|
1675
1675
|
return false;
|
|
1676
|
-
if (!equals(this.
|
|
1676
|
+
if (!equals(this.mcz_1, tmp0_other_with_cast.mcz_1))
|
|
1677
1677
|
return false;
|
|
1678
|
-
if (!equals(this.
|
|
1678
|
+
if (!equals(this.ncz_1, tmp0_other_with_cast.ncz_1))
|
|
1679
1679
|
return false;
|
|
1680
|
-
if (!this.
|
|
1680
|
+
if (!this.ocz_1.equals(tmp0_other_with_cast.ocz_1))
|
|
1681
1681
|
return false;
|
|
1682
1682
|
return true;
|
|
1683
1683
|
};
|
|
1684
1684
|
function Companion_0() {
|
|
1685
|
-
this.
|
|
1685
|
+
this.pcz_1 = 6;
|
|
1686
1686
|
}
|
|
1687
1687
|
var Companion_instance_8;
|
|
1688
1688
|
function Companion_getInstance_3() {
|
|
1689
1689
|
return Companion_instance_8;
|
|
1690
1690
|
}
|
|
1691
1691
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1692
|
-
this.
|
|
1692
|
+
this.ycz_1 = this$0;
|
|
1693
1693
|
CoroutineImpl.call(this, resultContinuation);
|
|
1694
1694
|
}
|
|
1695
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1696
|
-
var tmp = this.
|
|
1695
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).ad0 = function (actions, $completion) {
|
|
1696
|
+
var tmp = this.bd0(actions, $completion);
|
|
1697
1697
|
tmp.f9_1 = Unit_instance;
|
|
1698
1698
|
tmp.g9_1 = null;
|
|
1699
1699
|
return tmp.l9();
|
|
1700
1700
|
};
|
|
1701
1701
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).ga = function (p1, $completion) {
|
|
1702
|
-
return this.
|
|
1702
|
+
return this.ad0((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1703
1703
|
};
|
|
1704
1704
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).l9 = function () {
|
|
1705
1705
|
var suspendResult = this.f9_1;
|
|
@@ -1708,7 +1708,7 @@
|
|
|
1708
1708
|
var tmp = this.d9_1;
|
|
1709
1709
|
if (tmp === 0) {
|
|
1710
1710
|
this.e9_1 = 1;
|
|
1711
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1711
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.ycz_1, this.zcz_1, null));
|
|
1712
1712
|
} else if (tmp === 1) {
|
|
1713
1713
|
throw this.g9_1;
|
|
1714
1714
|
}
|
|
@@ -1718,23 +1718,23 @@
|
|
|
1718
1718
|
}
|
|
1719
1719
|
while (true);
|
|
1720
1720
|
};
|
|
1721
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1722
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1723
|
-
i.
|
|
1721
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).bd0 = function (actions, completion) {
|
|
1722
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.ycz_1, completion);
|
|
1723
|
+
i.zcz_1 = actions;
|
|
1724
1724
|
return i;
|
|
1725
1725
|
};
|
|
1726
1726
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1727
1727
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1728
1728
|
var l = function (actions, $completion) {
|
|
1729
|
-
return i.
|
|
1729
|
+
return i.ad0(actions, $completion);
|
|
1730
1730
|
};
|
|
1731
1731
|
l.$arity = 1;
|
|
1732
1732
|
return l;
|
|
1733
1733
|
}
|
|
1734
1734
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
1735
1735
|
CoroutineImpl.call(this, resultContinuation);
|
|
1736
|
-
this.
|
|
1737
|
-
this.
|
|
1736
|
+
this.kd0_1 = _this__u8e3s4;
|
|
1737
|
+
this.ld0_1 = fromEvent;
|
|
1738
1738
|
}
|
|
1739
1739
|
protoOf($sentEventCOROUTINE$0).l9 = function () {
|
|
1740
1740
|
var suspendResult = this.f9_1;
|
|
@@ -1745,9 +1745,9 @@
|
|
|
1745
1745
|
case 0:
|
|
1746
1746
|
this.e9_1 = 2;
|
|
1747
1747
|
var tmp_0 = this;
|
|
1748
|
-
tmp_0.
|
|
1748
|
+
tmp_0.md0_1 = this.kd0_1.jcz_1;
|
|
1749
1749
|
l$ret$1: do {
|
|
1750
|
-
var this_0 = this.
|
|
1750
|
+
var this_0 = this.kd0_1.icz_1;
|
|
1751
1751
|
while (true) {
|
|
1752
1752
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1753
1753
|
var upd = cur + 1 | 0;
|
|
@@ -1758,7 +1758,7 @@
|
|
|
1758
1758
|
}
|
|
1759
1759
|
while (false);
|
|
1760
1760
|
this.d9_1 = 1;
|
|
1761
|
-
suspendResult = this.
|
|
1761
|
+
suspendResult = this.kd0_1.kcz_1.e17(this.ld0_1, this);
|
|
1762
1762
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1763
1763
|
return suspendResult;
|
|
1764
1764
|
}
|
|
@@ -1782,7 +1782,7 @@
|
|
|
1782
1782
|
};
|
|
1783
1783
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
1784
1784
|
CoroutineImpl.call(this, resultContinuation);
|
|
1785
|
-
this.
|
|
1785
|
+
this.vd0_1 = _this__u8e3s4;
|
|
1786
1786
|
}
|
|
1787
1787
|
protoOf($waitForCOROUTINE$1).l9 = function () {
|
|
1788
1788
|
var suspendResult = this.f9_1;
|
|
@@ -1793,12 +1793,12 @@
|
|
|
1793
1793
|
case 0:
|
|
1794
1794
|
this.e9_1 = 5;
|
|
1795
1795
|
var tmp_0 = this;
|
|
1796
|
-
tmp_0.
|
|
1797
|
-
this.
|
|
1796
|
+
tmp_0.wd0_1 = this.vd0_1.jcz_1;
|
|
1797
|
+
this.xd0_1 = 0;
|
|
1798
1798
|
this.d9_1 = 1;
|
|
1799
1799
|
continue $sm;
|
|
1800
1800
|
case 1:
|
|
1801
|
-
if (!!(this.
|
|
1801
|
+
if (!!(this.vd0_1.icz_1.kotlinx$atomicfu$value === 0)) {
|
|
1802
1802
|
this.d9_1 = 4;
|
|
1803
1803
|
continue $sm;
|
|
1804
1804
|
}
|
|
@@ -1811,9 +1811,9 @@
|
|
|
1811
1811
|
|
|
1812
1812
|
continue $sm;
|
|
1813
1813
|
case 2:
|
|
1814
|
-
this.
|
|
1815
|
-
if (this.
|
|
1816
|
-
this.
|
|
1814
|
+
this.xd0_1 = this.xd0_1 + 1 | 0;
|
|
1815
|
+
if (this.xd0_1 > 6) {
|
|
1816
|
+
this.vd0_1.gcz_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.vd0_1.icz_1.kotlinx$atomicfu$value);
|
|
1817
1817
|
this.d9_1 = 4;
|
|
1818
1818
|
continue $sm;
|
|
1819
1819
|
} else {
|
|
@@ -1841,42 +1841,42 @@
|
|
|
1841
1841
|
while (true);
|
|
1842
1842
|
};
|
|
1843
1843
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
1844
|
-
this.
|
|
1845
|
-
this.
|
|
1846
|
-
this.
|
|
1847
|
-
this.
|
|
1844
|
+
this.fcz_1 = serverReduxConfig;
|
|
1845
|
+
this.gcz_1 = logger;
|
|
1846
|
+
this.hcz_1 = idsProvider;
|
|
1847
|
+
this.icz_1 = atomic$ref$1(0);
|
|
1848
1848
|
var tmp = this;
|
|
1849
1849
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
1850
|
-
tmp.
|
|
1851
|
-
this.
|
|
1850
|
+
tmp.jcz_1 = get_atomicfu$reentrantLock();
|
|
1851
|
+
this.kcz_1 = MutableSharedFlow();
|
|
1852
1852
|
}
|
|
1853
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1853
|
+
protoOf(ToClientEventsObserverImpl).mcy = function (fromEvent, $completion) {
|
|
1854
1854
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
1855
1855
|
tmp.f9_1 = Unit_instance;
|
|
1856
1856
|
tmp.g9_1 = null;
|
|
1857
1857
|
return tmp.l9();
|
|
1858
1858
|
};
|
|
1859
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1859
|
+
protoOf(ToClientEventsObserverImpl).e99 = function ($completion) {
|
|
1860
1860
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
1861
1861
|
tmp.f9_1 = Unit_instance;
|
|
1862
1862
|
tmp.g9_1 = null;
|
|
1863
1863
|
return tmp.l9();
|
|
1864
1864
|
};
|
|
1865
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1866
|
-
if (!this.
|
|
1867
|
-
return this.
|
|
1865
|
+
protoOf(ToClientEventsObserverImpl).aay = function () {
|
|
1866
|
+
if (!this.fcz_1.enabledCombinedEvents) {
|
|
1867
|
+
return this.kcz_1;
|
|
1868
1868
|
}
|
|
1869
|
-
var tmp = windowedByInterval(this.
|
|
1869
|
+
var tmp = windowedByInterval(this.kcz_1, toLong(this.fcz_1.combinedEventsPeriod));
|
|
1870
1870
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
1871
1871
|
};
|
|
1872
1872
|
function UpdateServerConfigAction(serverConfig) {
|
|
1873
|
-
this.
|
|
1873
|
+
this.yd0_1 = serverConfig;
|
|
1874
1874
|
}
|
|
1875
1875
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
1876
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
1876
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.yd0_1.toString() + ')';
|
|
1877
1877
|
};
|
|
1878
1878
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
1879
|
-
return this.
|
|
1879
|
+
return this.yd0_1.hashCode();
|
|
1880
1880
|
};
|
|
1881
1881
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
1882
1882
|
if (this === other)
|
|
@@ -1884,72 +1884,72 @@
|
|
|
1884
1884
|
if (!(other instanceof UpdateServerConfigAction))
|
|
1885
1885
|
return false;
|
|
1886
1886
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
1887
|
-
if (!this.
|
|
1887
|
+
if (!this.yd0_1.equals(tmp0_other_with_cast.yd0_1))
|
|
1888
1888
|
return false;
|
|
1889
1889
|
return true;
|
|
1890
1890
|
};
|
|
1891
1891
|
function _get_asyncProvider__jbpyhw($this) {
|
|
1892
1892
|
// Inline function 'kotlin.getValue' call
|
|
1893
|
-
var this_0 = $this.
|
|
1893
|
+
var this_0 = $this.ed1_1;
|
|
1894
1894
|
asyncProvider$factory_0();
|
|
1895
1895
|
return this_0.u();
|
|
1896
1896
|
}
|
|
1897
1897
|
function _get_logger__rkp4sl_0($this) {
|
|
1898
1898
|
// Inline function 'kotlin.getValue' call
|
|
1899
|
-
var this_0 = $this.
|
|
1899
|
+
var this_0 = $this.fd1_1;
|
|
1900
1900
|
logger$factory_2();
|
|
1901
1901
|
return this_0.u();
|
|
1902
1902
|
}
|
|
1903
1903
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
1904
1904
|
// Inline function 'kotlin.getValue' call
|
|
1905
|
-
var this_0 = $this.
|
|
1905
|
+
var this_0 = $this.gd1_1;
|
|
1906
1906
|
playerConnectionInteractor$factory_2();
|
|
1907
1907
|
return this_0.u();
|
|
1908
1908
|
}
|
|
1909
1909
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
1910
1910
|
// Inline function 'kotlin.getValue' call
|
|
1911
|
-
var this_0 = $this.
|
|
1911
|
+
var this_0 = $this.hd1_1;
|
|
1912
1912
|
lastCardInteractor$factory_0();
|
|
1913
1913
|
return this_0.u();
|
|
1914
1914
|
}
|
|
1915
1915
|
function _get_serverConfig__rk2g06($this) {
|
|
1916
1916
|
// Inline function 'kotlin.getValue' call
|
|
1917
|
-
var this_0 = $this.
|
|
1917
|
+
var this_0 = $this.id1_1;
|
|
1918
1918
|
serverConfig$factory_0();
|
|
1919
1919
|
return this_0.u();
|
|
1920
1920
|
}
|
|
1921
1921
|
function _get_logicConfig__52ww9d($this) {
|
|
1922
1922
|
// Inline function 'kotlin.getValue' call
|
|
1923
|
-
var this_0 = $this.
|
|
1923
|
+
var this_0 = $this.jd1_1;
|
|
1924
1924
|
logicConfig$factory_0();
|
|
1925
1925
|
return this_0.u();
|
|
1926
1926
|
}
|
|
1927
1927
|
function _get_idsProvider__fnfajc($this) {
|
|
1928
1928
|
// Inline function 'kotlin.getValue' call
|
|
1929
|
-
var this_0 = $this.
|
|
1929
|
+
var this_0 = $this.kd1_1;
|
|
1930
1930
|
idsProvider$factory_0();
|
|
1931
1931
|
return this_0.u();
|
|
1932
1932
|
}
|
|
1933
1933
|
function _get_botConfig__cpaxzc($this) {
|
|
1934
1934
|
// Inline function 'kotlin.getValue' call
|
|
1935
|
-
var this_0 = $this.
|
|
1935
|
+
var this_0 = $this.ld1_1;
|
|
1936
1936
|
botConfig$factory_0();
|
|
1937
1937
|
return this_0.u();
|
|
1938
1938
|
}
|
|
1939
1939
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
1940
1940
|
// Inline function 'kotlin.getValue' call
|
|
1941
|
-
var this_0 = $this.
|
|
1941
|
+
var this_0 = $this.md1_1;
|
|
1942
1942
|
scenePositionProvider$factory_0();
|
|
1943
1943
|
return this_0.u();
|
|
1944
1944
|
}
|
|
1945
1945
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
1946
1946
|
// Inline function 'kotlin.getValue' call
|
|
1947
|
-
var this_0 = $this.
|
|
1947
|
+
var this_0 = $this.nd1_1;
|
|
1948
1948
|
toClientEventsObserver$factory_2();
|
|
1949
1949
|
return this_0.u();
|
|
1950
1950
|
}
|
|
1951
1951
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
1952
|
-
return !player.
|
|
1952
|
+
return !player.a6z();
|
|
1953
1953
|
}
|
|
1954
1954
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
1955
1955
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -1957,77 +1957,77 @@
|
|
|
1957
1957
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
1958
1958
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
1959
1959
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
1960
|
-
this.
|
|
1961
|
-
this.
|
|
1962
|
-
this.
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1960
|
+
this.zd0_1 = validationStoreContract;
|
|
1961
|
+
this.ad1_1 = timersStoreContract;
|
|
1962
|
+
this.bd1_1 = botGameStoreContract;
|
|
1963
|
+
this.cd1_1 = gameMechanicStoreContract;
|
|
1964
|
+
this.dd1_1 = fileLoggerStoreContract;
|
|
1965
1965
|
var tmp = this;
|
|
1966
1966
|
// Inline function 'org.kodein.di.instance' call
|
|
1967
1967
|
// Inline function 'org.kodein.type.generic' call
|
|
1968
1968
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
1969
1969
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1970
|
-
tmp.
|
|
1970
|
+
tmp.ed1_1 = Instance(di, tmp$ret$0, null).e65(this, asyncProvider$factory());
|
|
1971
1971
|
var tmp_1 = this;
|
|
1972
1972
|
// Inline function 'org.kodein.di.instance' call
|
|
1973
1973
|
// Inline function 'org.kodein.type.generic' call
|
|
1974
1974
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1975
1975
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1976
|
-
tmp_1.
|
|
1976
|
+
tmp_1.fd1_1 = Instance(di, tmp$ret$2, null).e65(this, logger$factory_1());
|
|
1977
1977
|
var tmp_3 = this;
|
|
1978
1978
|
// Inline function 'org.kodein.di.instance' call
|
|
1979
1979
|
// Inline function 'org.kodein.type.generic' call
|
|
1980
1980
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1981
1981
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1982
|
-
tmp_3.
|
|
1982
|
+
tmp_3.gd1_1 = Instance(di, tmp$ret$4, null).e65(this, playerConnectionInteractor$factory_1());
|
|
1983
1983
|
var tmp_5 = this;
|
|
1984
1984
|
// Inline function 'org.kodein.di.instance' call
|
|
1985
1985
|
// Inline function 'org.kodein.type.generic' call
|
|
1986
1986
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
1987
1987
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1988
|
-
tmp_5.
|
|
1988
|
+
tmp_5.hd1_1 = Instance(di, tmp$ret$6, null).e65(this, lastCardInteractor$factory());
|
|
1989
1989
|
var tmp_7 = this;
|
|
1990
1990
|
// Inline function 'org.kodein.di.instance' call
|
|
1991
1991
|
// Inline function 'org.kodein.type.generic' call
|
|
1992
1992
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1993
1993
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1994
|
-
tmp_7.
|
|
1994
|
+
tmp_7.id1_1 = Instance(di, tmp$ret$8, null).e65(this, serverConfig$factory());
|
|
1995
1995
|
var tmp_9 = this;
|
|
1996
1996
|
// Inline function 'org.kodein.di.instance' call
|
|
1997
1997
|
// Inline function 'org.kodein.type.generic' call
|
|
1998
1998
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
1999
1999
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2000
|
-
tmp_9.
|
|
2000
|
+
tmp_9.jd1_1 = Instance(di, tmp$ret$10, null).e65(this, logicConfig$factory());
|
|
2001
2001
|
var tmp_11 = this;
|
|
2002
2002
|
// Inline function 'org.kodein.di.instance' call
|
|
2003
2003
|
// Inline function 'org.kodein.type.generic' call
|
|
2004
2004
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2005
2005
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2006
|
-
tmp_11.
|
|
2006
|
+
tmp_11.kd1_1 = Instance(di, tmp$ret$12, null).e65(this, idsProvider$factory());
|
|
2007
2007
|
var tmp_13 = this;
|
|
2008
2008
|
// Inline function 'org.kodein.di.instance' call
|
|
2009
2009
|
// Inline function 'org.kodein.type.generic' call
|
|
2010
2010
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2011
2011
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2012
|
-
tmp_13.
|
|
2012
|
+
tmp_13.ld1_1 = Instance(di, tmp$ret$14, null).e65(this, botConfig$factory());
|
|
2013
2013
|
var tmp_15 = this;
|
|
2014
2014
|
// Inline function 'org.kodein.di.instance' call
|
|
2015
2015
|
// Inline function 'org.kodein.type.generic' call
|
|
2016
2016
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2017
2017
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2018
|
-
tmp_15.
|
|
2018
|
+
tmp_15.md1_1 = Instance(di, tmp$ret$16, null).e65(this, scenePositionProvider$factory());
|
|
2019
2019
|
var tmp_17 = this;
|
|
2020
2020
|
// Inline function 'org.kodein.di.instance' call
|
|
2021
2021
|
// Inline function 'org.kodein.type.generic' call
|
|
2022
2022
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2023
2023
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2024
|
-
tmp_17.
|
|
2024
|
+
tmp_17.nd1_1 = Instance(di, tmp$ret$18, null).e65(this, toClientEventsObserver$factory_1());
|
|
2025
2025
|
}
|
|
2026
|
-
protoOf(ServerGameStoreContract).
|
|
2027
|
-
return plus(plus(plus(plus(plus(this.
|
|
2026
|
+
protoOf(ServerGameStoreContract).l93 = function () {
|
|
2027
|
+
return plus(plus(plus(plus(plus(this.zd0_1.l93(), this.ad1_1.l93()), this.bd1_1.l93()), this.cd1_1.l93()), this.dd1_1.l93()), listOf(serverConfigReducer()));
|
|
2028
2028
|
};
|
|
2029
|
-
protoOf(ServerGameStoreContract).
|
|
2030
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2029
|
+
protoOf(ServerGameStoreContract).m93 = function () {
|
|
2030
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.zd0_1.m93(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.ad1_1.m93()), this.bd1_1.m93()), this.cd1_1.m93()), this.dd1_1.m93()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).e95(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2031
2031
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2032
2032
|
var tmp_1 = playerTurnTimeoutWhenHostMiddleware(_get_serverConfig__rk2g06(this), _get_logger__rkp4sl_0(this));
|
|
2033
2033
|
var tmp_2 = clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this), listOf(_get_toClientEventsObserver__6rp51y_0(this)));
|
|
@@ -2154,8 +2154,8 @@
|
|
|
2154
2154
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2155
2155
|
next(action_0);
|
|
2156
2156
|
var state = store.state;
|
|
2157
|
-
if (!get_serverState(state).
|
|
2158
|
-
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.
|
|
2157
|
+
if (!get_serverState(state).wcx_1.xcx_1 && action_0.isGameFinished) {
|
|
2158
|
+
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.c6s_1));
|
|
2159
2159
|
}
|
|
2160
2160
|
};
|
|
2161
2161
|
protoOf(_no_name_provided__qut3iv).s6k = function (store, next, action) {
|
|
@@ -2163,11 +2163,11 @@
|
|
|
2163
2163
|
};
|
|
2164
2164
|
function ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda($$this$with) {
|
|
2165
2165
|
return function () {
|
|
2166
|
-
return $$this$with.
|
|
2166
|
+
return $$this$with.t6s().playersConnections;
|
|
2167
2167
|
};
|
|
2168
2168
|
}
|
|
2169
2169
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2170
|
-
this.
|
|
2170
|
+
this.qd1_1 = this$0;
|
|
2171
2171
|
}
|
|
2172
2172
|
protoOf(_no_name_provided__qut3iv_0).t6k = function (action) {
|
|
2173
2173
|
return action instanceof MechanicAction;
|
|
@@ -2182,11 +2182,11 @@
|
|
|
2182
2182
|
var tmp;
|
|
2183
2183
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2184
2184
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2185
|
-
var this_0 = this.
|
|
2186
|
-
var tableId = action_0.
|
|
2187
|
-
var gameCreatorPlayerId = action_0.
|
|
2185
|
+
var this_0 = this.qd1_1;
|
|
2186
|
+
var tableId = action_0.y7z_1;
|
|
2187
|
+
var gameCreatorPlayerId = action_0.a80_1;
|
|
2188
2188
|
// Inline function 'kotlin.collections.map' call
|
|
2189
|
-
var this_1 = action_0.
|
|
2189
|
+
var this_1 = action_0.b80_1;
|
|
2190
2190
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2191
2191
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2192
2192
|
var tmp0_iterator = this_1.j();
|
|
@@ -2227,7 +2227,7 @@
|
|
|
2227
2227
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2228
2228
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2229
2229
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2230
|
-
var tmp16_aid = this_0.
|
|
2230
|
+
var tmp16_aid = this_0.pd1_1.t6i();
|
|
2231
2231
|
// Inline function 'kotlin.collections.map' call
|
|
2232
2232
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2233
2233
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
@@ -2252,17 +2252,17 @@
|
|
|
2252
2252
|
} else {
|
|
2253
2253
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2254
2254
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2255
|
-
var this_2 = this.
|
|
2256
|
-
var table = state.
|
|
2255
|
+
var this_2 = this.qd1_1;
|
|
2256
|
+
var table = state.t6s();
|
|
2257
2257
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2258
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2258
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.pd1_1.t6i(), table.id, null);
|
|
2259
2259
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2260
2260
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2261
2261
|
} else {
|
|
2262
2262
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2263
2263
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2264
|
-
var this_3 = this.
|
|
2265
|
-
var tableId_0 = action_0.
|
|
2264
|
+
var this_3 = this.qd1_1;
|
|
2265
|
+
var tableId_0 = action_0.e80_1.id;
|
|
2266
2266
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2267
2267
|
var players = getPlayers();
|
|
2268
2268
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2296,7 +2296,7 @@
|
|
|
2296
2296
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2297
2297
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2298
2298
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2299
|
-
var tmp16_aid_0 = this_3.
|
|
2299
|
+
var tmp16_aid_0 = this_3.pd1_1.t6i();
|
|
2300
2300
|
// Inline function 'kotlin.collections.map' call
|
|
2301
2301
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2302
2302
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -2321,44 +2321,44 @@
|
|
|
2321
2321
|
} else {
|
|
2322
2322
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2323
2323
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2324
|
-
var this_4 = this.
|
|
2325
|
-
var table_0 = state.
|
|
2324
|
+
var this_4 = this.qd1_1;
|
|
2325
|
+
var table_0 = state.t6s();
|
|
2326
2326
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2327
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2327
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.pd1_1.t6i(), table_0.id, null);
|
|
2328
2328
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2329
2329
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2330
2330
|
} else {
|
|
2331
2331
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2332
2332
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2333
|
-
var this_5 = this.
|
|
2334
|
-
var table_1 = state.
|
|
2333
|
+
var this_5 = this.qd1_1;
|
|
2334
|
+
var table_1 = state.t6s();
|
|
2335
2335
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2336
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2336
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.pd1_1.t6i(), table_1.id, null);
|
|
2337
2337
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2338
2338
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2339
2339
|
} else {
|
|
2340
2340
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2341
2341
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2342
|
-
var this_6 = this.
|
|
2343
|
-
var table_2 = state.
|
|
2342
|
+
var this_6 = this.qd1_1;
|
|
2343
|
+
var table_2 = state.t6s();
|
|
2344
2344
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2345
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2345
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.pd1_1.t6i(), table_2.id, null);
|
|
2346
2346
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2347
2347
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2348
2348
|
} else {
|
|
2349
2349
|
if (action_0 instanceof ErrorAction) {
|
|
2350
2350
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2351
|
-
var this_7 = this.
|
|
2352
|
-
var table_3 = state.
|
|
2351
|
+
var this_7 = this.qd1_1;
|
|
2352
|
+
var table_3 = state.t6s();
|
|
2353
2353
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2354
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2354
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.pd1_1.t6i(), table_3.id, null);
|
|
2355
2355
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2356
2356
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2357
2357
|
} else {
|
|
2358
2358
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2359
2359
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2360
|
-
var this_8 = this.
|
|
2361
|
-
var table_4 = state.
|
|
2360
|
+
var this_8 = this.qd1_1;
|
|
2361
|
+
var table_4 = state.t6s();
|
|
2362
2362
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2363
2363
|
var tableId_1 = table_4.id;
|
|
2364
2364
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -2394,7 +2394,7 @@
|
|
|
2394
2394
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2395
2395
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2396
2396
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2397
|
-
var tmp16_aid_1 = this_8.
|
|
2397
|
+
var tmp16_aid_1 = this_8.pd1_1.t6i();
|
|
2398
2398
|
// Inline function 'kotlin.collections.map' call
|
|
2399
2399
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2400
2400
|
var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2419,8 +2419,8 @@
|
|
|
2419
2419
|
} else {
|
|
2420
2420
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2421
2421
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2422
|
-
var this_9 = this.
|
|
2423
|
-
var table_5 = state.
|
|
2422
|
+
var this_9 = this.qd1_1;
|
|
2423
|
+
var table_5 = state.t6s();
|
|
2424
2424
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2425
2425
|
var tableId_2 = table_5.id;
|
|
2426
2426
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -2456,7 +2456,7 @@
|
|
|
2456
2456
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2457
2457
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2458
2458
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2459
|
-
var tmp16_aid_2 = this_9.
|
|
2459
|
+
var tmp16_aid_2 = this_9.pd1_1.t6i();
|
|
2460
2460
|
// Inline function 'kotlin.collections.map' call
|
|
2461
2461
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2462
2462
|
var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2481,8 +2481,8 @@
|
|
|
2481
2481
|
} else {
|
|
2482
2482
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2483
2483
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2484
|
-
var this_10 = this.
|
|
2485
|
-
var table_6 = state.
|
|
2484
|
+
var this_10 = this.qd1_1;
|
|
2485
|
+
var table_6 = state.t6s();
|
|
2486
2486
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2487
2487
|
var tableId_3 = table_6.id;
|
|
2488
2488
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -2518,7 +2518,7 @@
|
|
|
2518
2518
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2519
2519
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2520
2520
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2521
|
-
var tmp16_aid_3 = this_10.
|
|
2521
|
+
var tmp16_aid_3 = this_10.pd1_1.t6i();
|
|
2522
2522
|
// Inline function 'kotlin.collections.map' call
|
|
2523
2523
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2524
2524
|
var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2531,7 +2531,7 @@
|
|
|
2531
2531
|
}
|
|
2532
2532
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp16_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2533
2533
|
var tmp_0;
|
|
2534
|
-
if (this.
|
|
2534
|
+
if (this.qd1_1.od1_1.supportBackwardActions && getPlayer(state.t6s().players, sendToPlayer_8.d7f_1).x6y_1.c6z_1) {
|
|
2535
2535
|
tmp_0 = null;
|
|
2536
2536
|
} else {
|
|
2537
2537
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2549,79 +2549,79 @@
|
|
|
2549
2549
|
} else {
|
|
2550
2550
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2551
2551
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2552
|
-
var this_11 = this.
|
|
2553
|
-
var table_7 = state.
|
|
2554
|
-
var exceptPlayerId = this.
|
|
2552
|
+
var this_11 = this.qd1_1;
|
|
2553
|
+
var table_7 = state.t6s();
|
|
2554
|
+
var exceptPlayerId = this.qd1_1.od1_1.supportBackwardActions ? action_0.b81_1 : null;
|
|
2555
2555
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2556
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2556
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.pd1_1.t6i(), table_7.id, exceptPlayerId);
|
|
2557
2557
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2558
2558
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2559
2559
|
} else {
|
|
2560
2560
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2561
2561
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2562
|
-
var this_12 = this.
|
|
2563
|
-
var table_8 = state.
|
|
2564
|
-
var exceptPlayerId_0 = this.
|
|
2562
|
+
var this_12 = this.qd1_1;
|
|
2563
|
+
var table_8 = state.t6s();
|
|
2564
|
+
var exceptPlayerId_0 = this.qd1_1.od1_1.supportBackwardActions ? action_0.f81_1 : null;
|
|
2565
2565
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2566
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2566
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.pd1_1.t6i(), table_8.id, exceptPlayerId_0);
|
|
2567
2567
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2568
2568
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2569
2569
|
} else {
|
|
2570
2570
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2571
2571
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2572
|
-
var this_13 = this.
|
|
2573
|
-
var table_9 = state.
|
|
2572
|
+
var this_13 = this.qd1_1;
|
|
2573
|
+
var table_9 = state.t6s();
|
|
2574
2574
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2575
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2575
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.pd1_1.t6i(), table_9.id, null);
|
|
2576
2576
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2577
2577
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2578
2578
|
} else {
|
|
2579
2579
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2580
2580
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2581
|
-
var this_14 = this.
|
|
2582
|
-
var table_10 = state.
|
|
2583
|
-
var exceptPlayerId_1 = this.
|
|
2581
|
+
var this_14 = this.qd1_1;
|
|
2582
|
+
var table_10 = state.t6s();
|
|
2583
|
+
var exceptPlayerId_1 = this.qd1_1.od1_1.supportBackwardActions ? action_0.m81_1 : null;
|
|
2584
2584
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2585
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2585
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.pd1_1.t6i(), table_10.id, exceptPlayerId_1);
|
|
2586
2586
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2587
2587
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2588
2588
|
} else {
|
|
2589
2589
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2590
2590
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2591
|
-
var this_15 = this.
|
|
2592
|
-
var table_11 = state.
|
|
2593
|
-
var exceptPlayerId_2 = this.
|
|
2591
|
+
var this_15 = this.qd1_1;
|
|
2592
|
+
var table_11 = state.t6s();
|
|
2593
|
+
var exceptPlayerId_2 = this.qd1_1.od1_1.supportBackwardActions ? action_0.q81_1 : null;
|
|
2594
2594
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2595
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2595
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.pd1_1.t6i(), table_11.id, exceptPlayerId_2);
|
|
2596
2596
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2597
2597
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2598
2598
|
} else {
|
|
2599
2599
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2600
2600
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2601
|
-
var this_16 = this.
|
|
2602
|
-
var table_12 = state.
|
|
2601
|
+
var this_16 = this.qd1_1;
|
|
2602
|
+
var table_12 = state.t6s();
|
|
2603
2603
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2604
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2604
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.pd1_1.t6i(), table_12.id, null);
|
|
2605
2605
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2606
2606
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2607
2607
|
} else {
|
|
2608
2608
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2609
2609
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2610
|
-
var this_17 = this.
|
|
2611
|
-
var table_13 = state.
|
|
2610
|
+
var this_17 = this.qd1_1;
|
|
2611
|
+
var table_13 = state.t6s();
|
|
2612
2612
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2613
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2613
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.pd1_1.t6i(), table_13.id, null);
|
|
2614
2614
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2615
2615
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2616
2616
|
} else {
|
|
2617
2617
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2618
|
-
var message = action_0.
|
|
2618
|
+
var message = action_0.y81_1;
|
|
2619
2619
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2620
|
-
var this_18 = this.
|
|
2621
|
-
var table_14 = state.
|
|
2620
|
+
var this_18 = this.qd1_1;
|
|
2621
|
+
var table_14 = state.t6s();
|
|
2622
2622
|
var tmp_1;
|
|
2623
2623
|
var tmp_2;
|
|
2624
|
-
if (this.
|
|
2624
|
+
if (this.qd1_1.od1_1.supportBackwardActions) {
|
|
2625
2625
|
tmp_2 = isInterface(message, UserMessage);
|
|
2626
2626
|
} else {
|
|
2627
2627
|
tmp_2 = false;
|
|
@@ -2633,17 +2633,17 @@
|
|
|
2633
2633
|
}
|
|
2634
2634
|
var exceptPlayerId_3 = tmp_1;
|
|
2635
2635
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2636
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2636
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.pd1_1.t6i(), table_14.id, exceptPlayerId_3);
|
|
2637
2637
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2638
2638
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2639
2639
|
} else {
|
|
2640
2640
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2641
2641
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2642
|
-
var this_19 = this.
|
|
2643
|
-
var table_15 = state.
|
|
2642
|
+
var this_19 = this.qd1_1;
|
|
2643
|
+
var table_15 = state.t6s();
|
|
2644
2644
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2645
2645
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2646
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
2646
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.pd1_1.t6i(), table_15.id, exceptPlayerId_4);
|
|
2647
2647
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2648
2648
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2649
2649
|
} else {
|
|
@@ -2681,10 +2681,10 @@
|
|
|
2681
2681
|
return this.k6l(store, next, action);
|
|
2682
2682
|
};
|
|
2683
2683
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2684
|
-
this.
|
|
2685
|
-
this.
|
|
2684
|
+
this.od1_1 = logicConfig;
|
|
2685
|
+
this.pd1_1 = idsProvider;
|
|
2686
2686
|
}
|
|
2687
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
2687
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).e95 = function () {
|
|
2688
2688
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2689
2689
|
return new _no_name_provided__qut3iv_0(this);
|
|
2690
2690
|
};
|
|
@@ -2693,8 +2693,8 @@
|
|
|
2693
2693
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2694
2694
|
}
|
|
2695
2695
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2696
|
+
this.zd1_1 = $provider;
|
|
2697
|
+
this.ad2_1 = $action;
|
|
2698
2698
|
CoroutineImpl.call(this, resultContinuation);
|
|
2699
2699
|
}
|
|
2700
2700
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).t1d = function ($this$launchDefault, $completion) {
|
|
@@ -2715,7 +2715,7 @@
|
|
|
2715
2715
|
case 0:
|
|
2716
2716
|
this.e9_1 = 2;
|
|
2717
2717
|
this.d9_1 = 1;
|
|
2718
|
-
suspendResult = this.
|
|
2718
|
+
suspendResult = this.zd1_1.mcy(this.ad2_1, this);
|
|
2719
2719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2720
2720
|
return suspendResult;
|
|
2721
2721
|
}
|
|
@@ -2738,8 +2738,8 @@
|
|
|
2738
2738
|
while (true);
|
|
2739
2739
|
};
|
|
2740
2740
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).u1d = function ($this$launchDefault, completion) {
|
|
2741
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
2742
|
-
i.
|
|
2741
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.zd1_1, this.ad2_1, completion);
|
|
2742
|
+
i.bd2_1 = $this$launchDefault;
|
|
2743
2743
|
return i;
|
|
2744
2744
|
};
|
|
2745
2745
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -2751,8 +2751,8 @@
|
|
|
2751
2751
|
return l;
|
|
2752
2752
|
}
|
|
2753
2753
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2754
|
+
this.cd2_1 = $asyncProvider;
|
|
2755
|
+
this.dd2_1 = $provider;
|
|
2756
2756
|
}
|
|
2757
2757
|
protoOf(_no_name_provided__qut3iv_1).t6k = function (action) {
|
|
2758
2758
|
return action instanceof ToClientAction;
|
|
@@ -2760,7 +2760,7 @@
|
|
|
2760
2760
|
protoOf(_no_name_provided__qut3iv_1).k6l = function (store, next, action) {
|
|
2761
2761
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
2762
2762
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
2763
|
-
this.
|
|
2763
|
+
this.cd2_1.s6h(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.dd2_1, action_0, null));
|
|
2764
2764
|
next(action_0);
|
|
2765
2765
|
};
|
|
2766
2766
|
protoOf(_no_name_provided__qut3iv_1).s6k = function (store, next, action) {
|
|
@@ -2775,13 +2775,13 @@
|
|
|
2775
2775
|
protoOf(_no_name_provided__qut3iv_2).t6k = function (action) {
|
|
2776
2776
|
return action instanceof UpdateServerConfigAction;
|
|
2777
2777
|
};
|
|
2778
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2778
|
+
protoOf(_no_name_provided__qut3iv_2).w9a = function (state, action) {
|
|
2779
2779
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
2780
2780
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
2781
|
-
return state.
|
|
2781
|
+
return state.v90(VOID, get_serverState(state).ed2(action_0.yd0_1));
|
|
2782
2782
|
};
|
|
2783
2783
|
protoOf(_no_name_provided__qut3iv_2).l6l = function (state, action) {
|
|
2784
|
-
return this.
|
|
2784
|
+
return this.w9a((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
2785
2785
|
};
|
|
2786
2786
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
2787
2787
|
return function (it) {
|
|
@@ -2794,7 +2794,7 @@
|
|
|
2794
2794
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
2795
2795
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2796
2796
|
Companion_getInstance();
|
|
2797
|
-
var this_0 = $action.
|
|
2797
|
+
var this_0 = $action.x7z_1.timeoutTimeMillis;
|
|
2798
2798
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
2799
2799
|
tmp_0 = tmp_1.j6c(tmp_2, tmp$ret$0);
|
|
2800
2800
|
}
|
|
@@ -2803,59 +2803,59 @@
|
|
|
2803
2803
|
}
|
|
2804
2804
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
2805
2805
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
2806
|
-
this.
|
|
2806
|
+
this.hd2_1 = logger;
|
|
2807
2807
|
}
|
|
2808
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
2809
|
-
var serverState = get_serverStateOrNull(state.
|
|
2808
|
+
protoOf(ServerMechanicLifecycleReducer).a9c = function (state, action) {
|
|
2809
|
+
var serverState = get_serverStateOrNull(state.d6s_1);
|
|
2810
2810
|
var tmp25_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
2811
|
-
var tmp18_$this = this.
|
|
2812
|
-
var tmp19_tableId = action.
|
|
2813
|
-
var tmp20_gameId = action.
|
|
2814
|
-
var tmp21_version = action.
|
|
2815
|
-
var tmp22_config = action.
|
|
2816
|
-
var tmp23_users = action.
|
|
2817
|
-
var tmp24_gameCreatorPlayerId = action.
|
|
2818
|
-
var tmp26_tableOrNull = tmp18_$this.
|
|
2811
|
+
var tmp18_$this = this.s9c_1;
|
|
2812
|
+
var tmp19_tableId = action.y7z_1;
|
|
2813
|
+
var tmp20_gameId = action.y7z_1;
|
|
2814
|
+
var tmp21_version = action.z7z_1;
|
|
2815
|
+
var tmp22_config = action.x7z_1;
|
|
2816
|
+
var tmp23_users = action.b80_1;
|
|
2817
|
+
var tmp24_gameCreatorPlayerId = action.a80_1;
|
|
2818
|
+
var tmp26_tableOrNull = tmp18_$this.y9d(tmp19_tableId, tmp20_gameId, tmp22_config, tmp21_version, tmp23_users, tmp24_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
2819
2819
|
var tmp;
|
|
2820
2820
|
if (serverState == null) {
|
|
2821
|
-
this.
|
|
2822
|
-
tmp = Companion_instance_9.
|
|
2821
|
+
this.hd2_1.w(VOID, 'ServerPayload is not onStart');
|
|
2822
|
+
tmp = Companion_instance_9.lcy();
|
|
2823
2823
|
} else {
|
|
2824
2824
|
tmp = serverState;
|
|
2825
2825
|
}
|
|
2826
2826
|
var tmp27_payload = tmp;
|
|
2827
|
-
return state.
|
|
2827
|
+
return state.v90(tmp26_tableOrNull, tmp27_payload, tmp25_gameLifecycleState);
|
|
2828
2828
|
};
|
|
2829
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
2830
|
-
this.
|
|
2829
|
+
protoOf(ServerMechanicLifecycleReducer).z9b = function (state, action) {
|
|
2830
|
+
this.t9c_1.r5s(action.previousGameId);
|
|
2831
2831
|
var tmp28_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
2832
|
-
var tmp29_tableOrNull = this.
|
|
2833
|
-
return state.
|
|
2832
|
+
var tmp29_tableOrNull = this.s9c_1.a9e(state.t6s(), action.gameId);
|
|
2833
|
+
return state.v90(tmp29_tableOrNull, VOID, tmp28_gameLifecycleState);
|
|
2834
2834
|
};
|
|
2835
2835
|
function Companion_1() {
|
|
2836
2836
|
}
|
|
2837
|
-
protoOf(Companion_1).
|
|
2837
|
+
protoOf(Companion_1).id2 = function (config) {
|
|
2838
2838
|
return new ServerState(config);
|
|
2839
2839
|
};
|
|
2840
|
-
protoOf(Companion_1).
|
|
2840
|
+
protoOf(Companion_1).lcy = function (config, $super) {
|
|
2841
2841
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
2842
|
-
return $super === VOID ? this.
|
|
2842
|
+
return $super === VOID ? this.id2(config) : $super.id2.call(this, config);
|
|
2843
2843
|
};
|
|
2844
2844
|
var Companion_instance_9;
|
|
2845
2845
|
function Companion_getInstance_4() {
|
|
2846
2846
|
return Companion_instance_9;
|
|
2847
2847
|
}
|
|
2848
2848
|
function ServerState(config) {
|
|
2849
|
-
this.
|
|
2849
|
+
this.wcx_1 = config;
|
|
2850
2850
|
}
|
|
2851
|
-
protoOf(ServerState).
|
|
2851
|
+
protoOf(ServerState).ed2 = function (config) {
|
|
2852
2852
|
return new ServerState(config);
|
|
2853
2853
|
};
|
|
2854
2854
|
protoOf(ServerState).toString = function () {
|
|
2855
|
-
return 'ServerState(config=' + this.
|
|
2855
|
+
return 'ServerState(config=' + this.wcx_1.toString() + ')';
|
|
2856
2856
|
};
|
|
2857
2857
|
protoOf(ServerState).hashCode = function () {
|
|
2858
|
-
return this.
|
|
2858
|
+
return this.wcx_1.hashCode();
|
|
2859
2859
|
};
|
|
2860
2860
|
protoOf(ServerState).equals = function (other) {
|
|
2861
2861
|
if (this === other)
|
|
@@ -2863,13 +2863,13 @@
|
|
|
2863
2863
|
if (!(other instanceof ServerState))
|
|
2864
2864
|
return false;
|
|
2865
2865
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
2866
|
-
if (!this.
|
|
2866
|
+
if (!this.wcx_1.equals(tmp0_other_with_cast.wcx_1))
|
|
2867
2867
|
return false;
|
|
2868
2868
|
return true;
|
|
2869
2869
|
};
|
|
2870
2870
|
function get_serverState(_this__u8e3s4) {
|
|
2871
2871
|
// Inline function 'kotlin.requireNotNull' call
|
|
2872
|
-
var value = _this__u8e3s4.
|
|
2872
|
+
var value = _this__u8e3s4.d6s_1;
|
|
2873
2873
|
// Inline function 'kotlin.contracts.contract' call
|
|
2874
2874
|
var tmp$ret$1;
|
|
2875
2875
|
$l$block: {
|
|
@@ -3175,7 +3175,7 @@
|
|
|
3175
3175
|
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
3176
3176
|
var state = store.state;
|
|
3177
3177
|
var tmp;
|
|
3178
|
-
if (!state.
|
|
3178
|
+
if (!state.u6s()) {
|
|
3179
3179
|
tmp = true;
|
|
3180
3180
|
} else {
|
|
3181
3181
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3184,7 +3184,7 @@
|
|
|
3184
3184
|
if (tmp) {
|
|
3185
3185
|
return playerIds;
|
|
3186
3186
|
}
|
|
3187
|
-
var players = state.
|
|
3187
|
+
var players = state.t6s().players;
|
|
3188
3188
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3189
3189
|
// Inline function 'kotlin.collections.map' call
|
|
3190
3190
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3206,7 +3206,7 @@
|
|
|
3206
3206
|
while (tmp0_iterator.k()) {
|
|
3207
3207
|
var element = tmp0_iterator.l();
|
|
3208
3208
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3209
|
-
if (element.
|
|
3209
|
+
if (element.v6y_1.v6d().m6c_1.isLive) {
|
|
3210
3210
|
destination_0.e(element);
|
|
3211
3211
|
}
|
|
3212
3212
|
}
|
|
@@ -3224,7 +3224,7 @@
|
|
|
3224
3224
|
protoOf(GameHelperImpl).filterLiveDuringGamePlayers = function (store, playerIds) {
|
|
3225
3225
|
var state = store.state;
|
|
3226
3226
|
var tmp;
|
|
3227
|
-
if (!state.
|
|
3227
|
+
if (!state.u6s()) {
|
|
3228
3228
|
tmp = true;
|
|
3229
3229
|
} else {
|
|
3230
3230
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3233,7 +3233,7 @@
|
|
|
3233
3233
|
if (tmp) {
|
|
3234
3234
|
return playerIds;
|
|
3235
3235
|
}
|
|
3236
|
-
var players = state.
|
|
3236
|
+
var players = state.t6s().players;
|
|
3237
3237
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3238
3238
|
// Inline function 'kotlin.collections.map' call
|
|
3239
3239
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3255,7 +3255,7 @@
|
|
|
3255
3255
|
while (tmp0_iterator.k()) {
|
|
3256
3256
|
var element = tmp0_iterator.l();
|
|
3257
3257
|
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3258
|
-
if (element.
|
|
3258
|
+
if (element.v6y_1.v6d().x6c(state.t6s().gameDuration)) {
|
|
3259
3259
|
destination_0.e(element);
|
|
3260
3260
|
}
|
|
3261
3261
|
}
|
|
@@ -3273,7 +3273,7 @@
|
|
|
3273
3273
|
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
3274
3274
|
var state = store.state;
|
|
3275
3275
|
var tmp;
|
|
3276
|
-
if (!state.
|
|
3276
|
+
if (!state.u6s()) {
|
|
3277
3277
|
tmp = true;
|
|
3278
3278
|
} else {
|
|
3279
3279
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3282,7 +3282,7 @@
|
|
|
3282
3282
|
if (tmp) {
|
|
3283
3283
|
return playerIds;
|
|
3284
3284
|
}
|
|
3285
|
-
var players = state.
|
|
3285
|
+
var players = state.t6s().players;
|
|
3286
3286
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3287
3287
|
// Inline function 'kotlin.collections.map' call
|
|
3288
3288
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3304,7 +3304,7 @@
|
|
|
3304
3304
|
while (tmp0_iterator.k()) {
|
|
3305
3305
|
var element = tmp0_iterator.l();
|
|
3306
3306
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3307
|
-
if (element.
|
|
3307
|
+
if (element.u6y_1.isBot) {
|
|
3308
3308
|
destination_0.e(element);
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
@@ -3322,7 +3322,7 @@
|
|
|
3322
3322
|
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
3323
3323
|
var state = store.state;
|
|
3324
3324
|
var tmp;
|
|
3325
|
-
if (!state.
|
|
3325
|
+
if (!state.u6s()) {
|
|
3326
3326
|
tmp = true;
|
|
3327
3327
|
} else {
|
|
3328
3328
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3331,7 +3331,7 @@
|
|
|
3331
3331
|
if (tmp) {
|
|
3332
3332
|
return playerIds;
|
|
3333
3333
|
}
|
|
3334
|
-
var players = state.
|
|
3334
|
+
var players = state.t6s().players;
|
|
3335
3335
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3336
3336
|
// Inline function 'kotlin.collections.map' call
|
|
3337
3337
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3353,7 +3353,7 @@
|
|
|
3353
3353
|
while (tmp0_iterator.k()) {
|
|
3354
3354
|
var element = tmp0_iterator.l();
|
|
3355
3355
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3356
|
-
if (!element.
|
|
3356
|
+
if (!element.u6y_1.isBot) {
|
|
3357
3357
|
destination_0.e(element);
|
|
3358
3358
|
}
|
|
3359
3359
|
}
|
|
@@ -3370,21 +3370,21 @@
|
|
|
3370
3370
|
};
|
|
3371
3371
|
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
3372
3372
|
var state = store.state;
|
|
3373
|
-
if (!state.
|
|
3373
|
+
if (!state.u6s()) {
|
|
3374
3374
|
return null;
|
|
3375
3375
|
}
|
|
3376
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.
|
|
3376
|
+
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.t6s().players, playerId).u6y_1);
|
|
3377
3377
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3378
3378
|
};
|
|
3379
3379
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
3380
3380
|
var state = store.state;
|
|
3381
|
-
if (!state.
|
|
3381
|
+
if (!state.u6s()) {
|
|
3382
3382
|
return null;
|
|
3383
3383
|
}
|
|
3384
3384
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3385
3385
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3386
3386
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3387
|
-
var this_0 = state.
|
|
3387
|
+
var this_0 = state.t6s().players;
|
|
3388
3388
|
var destination = ArrayList_init_$Create$();
|
|
3389
3389
|
// Inline function 'kotlin.collections.forEach' call
|
|
3390
3390
|
var tmp0_iterator = this_0.j();
|
|
@@ -3392,7 +3392,7 @@
|
|
|
3392
3392
|
var element = tmp0_iterator.l();
|
|
3393
3393
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3394
3394
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
3395
|
-
var tmp1_safe_receiver = getUserProfilePayloadOrNull(element.
|
|
3395
|
+
var tmp1_safe_receiver = getUserProfilePayloadOrNull(element.u6y_1);
|
|
3396
3396
|
var tmp0_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.socketId;
|
|
3397
3397
|
if (tmp0_safe_receiver == null)
|
|
3398
3398
|
null;
|
|
@@ -3788,40 +3788,40 @@
|
|
|
3788
3788
|
function getRandomAvatarData_0($this) {
|
|
3789
3789
|
var avatarSetNumber = Default_getInstance().lg(values().length);
|
|
3790
3790
|
var avatarSet = values()[avatarSetNumber];
|
|
3791
|
-
return new AvatarData(Default_getInstance().lg(avatarSet.
|
|
3791
|
+
return new AvatarData(Default_getInstance().lg(avatarSet.md2()), avatarSet);
|
|
3792
3792
|
}
|
|
3793
3793
|
function getAvatarUrlByIndex($this, data) {
|
|
3794
3794
|
return mapToPattern($this, data);
|
|
3795
3795
|
}
|
|
3796
3796
|
function getNicknameByIndex($this, data) {
|
|
3797
|
-
return data.
|
|
3797
|
+
return data.od2_1.pd2(data.nd2_1);
|
|
3798
3798
|
}
|
|
3799
3799
|
function mapToPattern($this, data) {
|
|
3800
|
-
return 'debertz://raspberry.games/' + data.
|
|
3800
|
+
return 'debertz://raspberry.games/' + data.od2_1.o2_1 + '/' + data.nd2_1;
|
|
3801
3801
|
}
|
|
3802
3802
|
function Companion_2() {
|
|
3803
3803
|
Companion_instance_10 = this;
|
|
3804
|
-
this.
|
|
3804
|
+
this.qd2_1 = 'debertz://raspberry.games';
|
|
3805
3805
|
var tmp = this;
|
|
3806
3806
|
// Inline function 'kotlin.arrayOf' call
|
|
3807
3807
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3808
3808
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3809
|
-
tmp.
|
|
3809
|
+
tmp.rd2_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
3810
3810
|
var tmp_0 = this;
|
|
3811
3811
|
// Inline function 'kotlin.arrayOf' call
|
|
3812
3812
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3813
3813
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3814
|
-
tmp_0.
|
|
3814
|
+
tmp_0.sd2_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
3815
3815
|
var tmp_1 = this;
|
|
3816
3816
|
// Inline function 'kotlin.arrayOf' call
|
|
3817
3817
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3818
3818
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3819
|
-
tmp_1.
|
|
3819
|
+
tmp_1.td2_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
3820
3820
|
var tmp_2 = this;
|
|
3821
3821
|
// Inline function 'kotlin.arrayOf' call
|
|
3822
3822
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3823
3823
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3824
|
-
tmp_2.
|
|
3824
|
+
tmp_2.ud2_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
3825
3825
|
}
|
|
3826
3826
|
var Companion_instance_10;
|
|
3827
3827
|
function Companion_getInstance_5() {
|
|
@@ -3832,14 +3832,14 @@
|
|
|
3832
3832
|
function AvatarSet(name, ordinal) {
|
|
3833
3833
|
Enum.call(this, name, ordinal);
|
|
3834
3834
|
}
|
|
3835
|
-
protoOf(AvatarSet).
|
|
3835
|
+
protoOf(AvatarSet).md2 = function () {
|
|
3836
3836
|
var tmp;
|
|
3837
3837
|
switch (this.o2_1) {
|
|
3838
3838
|
case 0:
|
|
3839
|
-
tmp = Companion_getInstance_5().
|
|
3839
|
+
tmp = Companion_getInstance_5().sd2_1.length;
|
|
3840
3840
|
break;
|
|
3841
3841
|
case 1:
|
|
3842
|
-
tmp = Companion_getInstance_5().
|
|
3842
|
+
tmp = Companion_getInstance_5().ud2_1.length;
|
|
3843
3843
|
break;
|
|
3844
3844
|
default:
|
|
3845
3845
|
noWhenBranchMatchedException();
|
|
@@ -3847,14 +3847,14 @@
|
|
|
3847
3847
|
}
|
|
3848
3848
|
return tmp;
|
|
3849
3849
|
};
|
|
3850
|
-
protoOf(AvatarSet).
|
|
3850
|
+
protoOf(AvatarSet).pd2 = function (index) {
|
|
3851
3851
|
var tmp;
|
|
3852
3852
|
switch (this.o2_1) {
|
|
3853
3853
|
case 0:
|
|
3854
|
-
tmp = Companion_getInstance_5().
|
|
3854
|
+
tmp = Companion_getInstance_5().sd2_1[index];
|
|
3855
3855
|
break;
|
|
3856
3856
|
case 1:
|
|
3857
|
-
tmp = Companion_getInstance_5().
|
|
3857
|
+
tmp = Companion_getInstance_5().ud2_1[index];
|
|
3858
3858
|
break;
|
|
3859
3859
|
default:
|
|
3860
3860
|
noWhenBranchMatchedException();
|
|
@@ -3863,8 +3863,8 @@
|
|
|
3863
3863
|
return tmp;
|
|
3864
3864
|
};
|
|
3865
3865
|
function AvatarData(index, avatarSet) {
|
|
3866
|
-
this.
|
|
3867
|
-
this.
|
|
3866
|
+
this.nd2_1 = index;
|
|
3867
|
+
this.od2_1 = avatarSet;
|
|
3868
3868
|
}
|
|
3869
3869
|
function AvatarSet_ORIGIN_getInstance() {
|
|
3870
3870
|
AvatarSet_initEntries();
|
|
@@ -3877,7 +3877,7 @@
|
|
|
3877
3877
|
function GameResourcesImpl() {
|
|
3878
3878
|
Companion_getInstance_5();
|
|
3879
3879
|
}
|
|
3880
|
-
protoOf(GameResourcesImpl).
|
|
3880
|
+
protoOf(GameResourcesImpl).jd2 = function (playerId, existingNicknames) {
|
|
3881
3881
|
var data = getRandomAvatarData(this, existingNicknames);
|
|
3882
3882
|
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
3883
3883
|
};
|
|
@@ -3915,13 +3915,13 @@
|
|
|
3915
3915
|
}
|
|
3916
3916
|
function _get_controllerLogger__nbd727($this) {
|
|
3917
3917
|
// Inline function 'kotlin.getValue' call
|
|
3918
|
-
var this_0 = $this.
|
|
3918
|
+
var this_0 = $this.cd3_1;
|
|
3919
3919
|
controllerLogger$factory();
|
|
3920
3920
|
return this_0.u();
|
|
3921
3921
|
}
|
|
3922
3922
|
function _get_di__ndbzja($this) {
|
|
3923
3923
|
// Inline function 'kotlin.getValue' call
|
|
3924
|
-
var this_0 = $this.
|
|
3924
|
+
var this_0 = $this.dd3_1;
|
|
3925
3925
|
di$factory();
|
|
3926
3926
|
return this_0.u();
|
|
3927
3927
|
}
|
|
@@ -3932,13 +3932,13 @@
|
|
|
3932
3932
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3933
3933
|
return function () {
|
|
3934
3934
|
var tmp;
|
|
3935
|
-
if (this$0.
|
|
3935
|
+
if (this$0.ad3_1 == null) {
|
|
3936
3936
|
tmp = null;
|
|
3937
3937
|
} else {
|
|
3938
3938
|
// Inline function 'kotlin.let' call
|
|
3939
3939
|
// Inline function 'kotlin.contracts.contract' call
|
|
3940
3940
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3941
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3941
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.ad3_1)]));
|
|
3942
3942
|
}
|
|
3943
3943
|
var tmp0_elvis_lhs = tmp;
|
|
3944
3944
|
return tmp0_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp0_elvis_lhs;
|
|
@@ -3966,7 +3966,7 @@
|
|
|
3966
3966
|
tmp_0.h63(tmp$ret$3);
|
|
3967
3967
|
$this$DI.l5z(jsonModule());
|
|
3968
3968
|
$this$DI.l5z(serverHelpersModule());
|
|
3969
|
-
$this$DI.l5z(randomOrgModule(this$0.
|
|
3969
|
+
$this$DI.l5z(randomOrgModule(this$0.bd3_1));
|
|
3970
3970
|
return Unit_instance;
|
|
3971
3971
|
};
|
|
3972
3972
|
}
|
|
@@ -3977,16 +3977,16 @@
|
|
|
3977
3977
|
};
|
|
3978
3978
|
}
|
|
3979
3979
|
function _no_name_provided__qut3iv_3($item) {
|
|
3980
|
-
this.
|
|
3980
|
+
this.jd3_1 = $item;
|
|
3981
3981
|
}
|
|
3982
3982
|
protoOf(_no_name_provided__qut3iv_3).t6k = function (action) {
|
|
3983
3983
|
return isInterface(action, Action);
|
|
3984
3984
|
};
|
|
3985
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3986
|
-
return this.
|
|
3985
|
+
protoOf(_no_name_provided__qut3iv_3).w9a = function (state, action) {
|
|
3986
|
+
return this.jd3_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3987
3987
|
};
|
|
3988
3988
|
protoOf(_no_name_provided__qut3iv_3).l6l = function (state, action) {
|
|
3989
|
-
return this.
|
|
3989
|
+
return this.w9a((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3990
3990
|
};
|
|
3991
3991
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3992
3992
|
return function ($this$singleton) {
|
|
@@ -4043,10 +4043,10 @@
|
|
|
4043
4043
|
}
|
|
4044
4044
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4045
4045
|
return function (it) {
|
|
4046
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4046
|
+
var tmp0_elvis_lhs = Companion_instance_4.c9g(it);
|
|
4047
4047
|
var tmp;
|
|
4048
4048
|
if (tmp0_elvis_lhs == null) {
|
|
4049
|
-
var tmp51_safe_receiver = $gameServer.s6b().
|
|
4049
|
+
var tmp51_safe_receiver = $gameServer.s6b().c6s_1;
|
|
4050
4050
|
tmp = tmp51_safe_receiver == null ? null : tmp51_safe_receiver.gameId;
|
|
4051
4051
|
} else {
|
|
4052
4052
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4056,10 +4056,10 @@
|
|
|
4056
4056
|
}
|
|
4057
4057
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4058
4058
|
return function (it) {
|
|
4059
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4059
|
+
var tmp0_elvis_lhs = Companion_instance_5.n9e(it);
|
|
4060
4060
|
var tmp;
|
|
4061
4061
|
if (tmp0_elvis_lhs == null) {
|
|
4062
|
-
var tmp52_safe_receiver = $gameServer.s6b().
|
|
4062
|
+
var tmp52_safe_receiver = $gameServer.s6b().c6s_1;
|
|
4063
4063
|
tmp = tmp52_safe_receiver == null ? null : toLoggerPayload(tmp52_safe_receiver);
|
|
4064
4064
|
} else {
|
|
4065
4065
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4078,7 +4078,7 @@
|
|
|
4078
4078
|
// Inline function 'kotlin.contracts.contract' call
|
|
4079
4079
|
$this$DI.l5z(tmp53_safe_receiver);
|
|
4080
4080
|
}
|
|
4081
|
-
$this$DI.l5z(dealerModule(this$0.randomPoolProvider, this$0.
|
|
4081
|
+
$this$DI.l5z(dealerModule(this$0.randomPoolProvider, this$0.bd3_1));
|
|
4082
4082
|
$this$DI.l5z(coreModule($coreConfig));
|
|
4083
4083
|
$this$DI.l5z(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4084
4084
|
return Unit_instance;
|
|
@@ -4087,76 +4087,76 @@
|
|
|
4087
4087
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4088
4088
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4089
4089
|
production = production === VOID ? true : production;
|
|
4090
|
-
this.
|
|
4091
|
-
this.
|
|
4090
|
+
this.ad3_1 = loggerCallback;
|
|
4091
|
+
this.bd3_1 = randomOrgConfig;
|
|
4092
4092
|
AppEnvironment_getInstance().c6r(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4093
4093
|
var tmp = this;
|
|
4094
|
-
tmp.
|
|
4094
|
+
tmp.cd3_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4095
4095
|
var tmp_0 = this;
|
|
4096
|
-
tmp_0.
|
|
4096
|
+
tmp_0.dd3_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4097
4097
|
var tmp_1 = this;
|
|
4098
4098
|
// Inline function 'org.kodein.di.instance' call
|
|
4099
4099
|
var this_0 = _get_di__ndbzja(this);
|
|
4100
4100
|
// Inline function 'org.kodein.type.generic' call
|
|
4101
4101
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4102
4102
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4103
|
-
tmp_1.
|
|
4103
|
+
tmp_1.ed3_1 = Instance(this_0, tmp$ret$0, null).e65(this, parser$factory());
|
|
4104
4104
|
var tmp_3 = this;
|
|
4105
4105
|
// Inline function 'org.kodein.di.instance' call
|
|
4106
4106
|
var this_1 = _get_di__ndbzja(this);
|
|
4107
4107
|
// Inline function 'org.kodein.type.generic' call
|
|
4108
4108
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4109
4109
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4110
|
-
tmp_3.
|
|
4110
|
+
tmp_3.fd3_1 = Instance(this_1, tmp$ret$2, null).e65(this, helper$factory());
|
|
4111
4111
|
var tmp_5 = this;
|
|
4112
4112
|
// Inline function 'org.kodein.di.instance' call
|
|
4113
4113
|
var this_2 = _get_di__ndbzja(this);
|
|
4114
4114
|
// Inline function 'org.kodein.type.generic' call
|
|
4115
4115
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4116
4116
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4117
|
-
tmp_5.
|
|
4117
|
+
tmp_5.gd3_1 = Instance(this_2, tmp$ret$4, null).e65(this, resources$factory());
|
|
4118
4118
|
var tmp_7 = this;
|
|
4119
4119
|
// Inline function 'org.kodein.di.instance' call
|
|
4120
4120
|
var this_3 = _get_di__ndbzja(this);
|
|
4121
4121
|
// Inline function 'org.kodein.type.generic' call
|
|
4122
4122
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4123
4123
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4124
|
-
tmp_7.
|
|
4124
|
+
tmp_7.hd3_1 = Instance(this_3, tmp$ret$6, null).e65(this, test$factory());
|
|
4125
4125
|
var tmp_9 = this;
|
|
4126
4126
|
// Inline function 'org.kodein.di.instance' call
|
|
4127
4127
|
var this_4 = _get_di__ndbzja(this);
|
|
4128
4128
|
// Inline function 'org.kodein.type.generic' call
|
|
4129
4129
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4130
4130
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4131
|
-
tmp_9.
|
|
4131
|
+
tmp_9.id3_1 = Instance(this_4, tmp$ret$8, null).e65(this, randomPoolProvider$factory());
|
|
4132
4132
|
}
|
|
4133
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4133
|
+
protoOf(GameServerEngineControllerImpl).ycr = function () {
|
|
4134
4134
|
// Inline function 'kotlin.getValue' call
|
|
4135
|
-
var this_0 = this.
|
|
4135
|
+
var this_0 = this.ed3_1;
|
|
4136
4136
|
parser$factory_0();
|
|
4137
4137
|
return this_0.u();
|
|
4138
4138
|
};
|
|
4139
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4139
|
+
protoOf(GameServerEngineControllerImpl).wd2 = function () {
|
|
4140
4140
|
// Inline function 'kotlin.getValue' call
|
|
4141
|
-
var this_0 = this.
|
|
4141
|
+
var this_0 = this.fd3_1;
|
|
4142
4142
|
helper$factory_0();
|
|
4143
4143
|
return this_0.u();
|
|
4144
4144
|
};
|
|
4145
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4145
|
+
protoOf(GameServerEngineControllerImpl).xd2 = function () {
|
|
4146
4146
|
// Inline function 'kotlin.getValue' call
|
|
4147
|
-
var this_0 = this.
|
|
4147
|
+
var this_0 = this.gd3_1;
|
|
4148
4148
|
resources$factory_0();
|
|
4149
4149
|
return this_0.u();
|
|
4150
4150
|
};
|
|
4151
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4151
|
+
protoOf(GameServerEngineControllerImpl).vd2 = function () {
|
|
4152
4152
|
// Inline function 'kotlin.getValue' call
|
|
4153
|
-
var this_0 = this.
|
|
4153
|
+
var this_0 = this.hd3_1;
|
|
4154
4154
|
test$factory_0();
|
|
4155
4155
|
return this_0.u();
|
|
4156
4156
|
};
|
|
4157
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4157
|
+
protoOf(GameServerEngineControllerImpl).yd2 = function () {
|
|
4158
4158
|
// Inline function 'kotlin.getValue' call
|
|
4159
|
-
var this_0 = this.
|
|
4159
|
+
var this_0 = this.id3_1;
|
|
4160
4160
|
randomPoolProvider$factory_0();
|
|
4161
4161
|
return this_0.u();
|
|
4162
4162
|
};
|
|
@@ -4166,7 +4166,7 @@
|
|
|
4166
4166
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4167
4167
|
return this.createGameEngineWithLogic();
|
|
4168
4168
|
};
|
|
4169
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4169
|
+
protoOf(GameServerEngineControllerImpl).zd2 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4170
4170
|
var combinedLogger = Companion_instance_6.hl();
|
|
4171
4171
|
var tmp;
|
|
4172
4172
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4176,8 +4176,8 @@
|
|
|
4176
4176
|
}
|
|
4177
4177
|
var fileLoggerOutput = tmp;
|
|
4178
4178
|
var tmp_0;
|
|
4179
|
-
if (!(this.
|
|
4180
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4179
|
+
if (!(this.ad3_1 == null)) {
|
|
4180
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.ad3_1));
|
|
4181
4181
|
} else {
|
|
4182
4182
|
tmp_0 = null;
|
|
4183
4183
|
}
|
|
@@ -4220,12 +4220,12 @@
|
|
|
4220
4220
|
var gameServer = tmp_1.v60(tmp$ret$7, null);
|
|
4221
4221
|
if (!(fileLoggerOutput == null)) {
|
|
4222
4222
|
var tmp_3 = fileLoggerOutput;
|
|
4223
|
-
tmp_3.
|
|
4223
|
+
tmp_3.r9f_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4224
4224
|
combinedLogger.jl(fileLoggerOutput);
|
|
4225
4225
|
}
|
|
4226
4226
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4227
4227
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4228
|
-
tmp_4.
|
|
4228
|
+
tmp_4.p9e_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4229
4229
|
combinedLogger.jl(callbackWrapperLoggerOutput);
|
|
4230
4230
|
}
|
|
4231
4231
|
return gameServer;
|
|
@@ -4335,13 +4335,13 @@
|
|
|
4335
4335
|
}
|
|
4336
4336
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4337
4337
|
// Inline function 'kotlin.getValue' call
|
|
4338
|
-
var this_0 = $this.
|
|
4338
|
+
var this_0 = $this.md3_1;
|
|
4339
4339
|
playerAnswerInteractor$factory_0();
|
|
4340
4340
|
return this_0.u();
|
|
4341
4341
|
}
|
|
4342
4342
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4343
4343
|
return function ($this$singleton) {
|
|
4344
|
-
return this$0.
|
|
4344
|
+
return this$0.kd3_1;
|
|
4345
4345
|
};
|
|
4346
4346
|
}
|
|
4347
4347
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4370,20 +4370,20 @@
|
|
|
4370
4370
|
return emptyMap();
|
|
4371
4371
|
}
|
|
4372
4372
|
function TestHelperImpl(logger) {
|
|
4373
|
-
this.
|
|
4373
|
+
this.kd3_1 = logger;
|
|
4374
4374
|
var tmp = this;
|
|
4375
4375
|
var tmp_0 = Companion_instance_3;
|
|
4376
|
-
tmp.
|
|
4376
|
+
tmp.ld3_1 = tmp_0.s5z(VOID, TestHelperImpl$di$lambda(this));
|
|
4377
4377
|
var tmp_1 = this;
|
|
4378
4378
|
// Inline function 'org.kodein.di.instance' call
|
|
4379
|
-
var this_0 = this.
|
|
4379
|
+
var this_0 = this.ld3_1;
|
|
4380
4380
|
// Inline function 'org.kodein.type.generic' call
|
|
4381
4381
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4382
4382
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4383
|
-
tmp_1.
|
|
4383
|
+
tmp_1.md3_1 = Instance(this_0, tmp$ret$0, null).e65(this, playerAnswerInteractor$factory());
|
|
4384
4384
|
}
|
|
4385
4385
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4386
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
4386
|
+
return _get_playerAnswerInteractor__msggz1(this).j8s(playerId, table, botConfig);
|
|
4387
4387
|
};
|
|
4388
4388
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4389
4389
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4391,7 +4391,7 @@
|
|
|
4391
4391
|
var tmp$ret$0;
|
|
4392
4392
|
$l$block_0: {
|
|
4393
4393
|
// Inline function 'kotlin.collections.any' call
|
|
4394
|
-
var this_0 = mechanicAction.
|
|
4394
|
+
var this_0 = mechanicAction.p92();
|
|
4395
4395
|
var tmp;
|
|
4396
4396
|
if (isInterface(this_0, Collection)) {
|
|
4397
4397
|
tmp = this_0.p();
|
|
@@ -4424,7 +4424,7 @@
|
|
|
4424
4424
|
var tmp$ret$0;
|
|
4425
4425
|
$l$block_0: {
|
|
4426
4426
|
// Inline function 'kotlin.collections.any' call
|
|
4427
|
-
var this_0 = action.
|
|
4427
|
+
var this_0 = action.p92();
|
|
4428
4428
|
var tmp;
|
|
4429
4429
|
if (isInterface(this_0, Collection)) {
|
|
4430
4430
|
tmp = this_0.p();
|
|
@@ -4563,13 +4563,13 @@
|
|
|
4563
4563
|
return this.p5m();
|
|
4564
4564
|
});
|
|
4565
4565
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
4566
|
-
return this.
|
|
4566
|
+
return this.t6s();
|
|
4567
4567
|
});
|
|
4568
4568
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
4569
|
-
return this.
|
|
4569
|
+
return this.u6s();
|
|
4570
4570
|
});
|
|
4571
4571
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
4572
|
-
return this.
|
|
4572
|
+
return this.v6s();
|
|
4573
4573
|
});
|
|
4574
4574
|
protoOf(UpdateServerConfigAction).g6k = get_actionTag;
|
|
4575
4575
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
@@ -4578,19 +4578,19 @@
|
|
|
4578
4578
|
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
4579
4579
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4580
4580
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4581
|
-
return this.
|
|
4581
|
+
return this.ycr();
|
|
4582
4582
|
});
|
|
4583
4583
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4584
|
-
return this.
|
|
4584
|
+
return this.wd2();
|
|
4585
4585
|
});
|
|
4586
4586
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4587
|
-
return this.
|
|
4587
|
+
return this.xd2();
|
|
4588
4588
|
});
|
|
4589
4589
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4590
|
-
return this.
|
|
4590
|
+
return this.vd2();
|
|
4591
4591
|
});
|
|
4592
4592
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
4593
|
-
return this.
|
|
4593
|
+
return this.yd2();
|
|
4594
4594
|
});
|
|
4595
4595
|
//endregion
|
|
4596
4596
|
//region block: init
|