raspberry_games_server_game_logic 1.8.301 → 1.8.302
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/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +504 -504
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +1041 -1041
- package/Logic_Debertz-engine.js +10901 -10901
- package/Logic_Debertz-game_server.js +877 -867
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +304 -304
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +166 -165
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +70 -67
- package/raspberry-cardgame-lib-random.js.map +1 -1
|
@@ -76,6 +76,10 @@
|
|
|
76
76
|
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m3;
|
|
77
77
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
|
|
78
78
|
var toList = kotlin_kotlin.$_$.u9;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.zc;
|
|
80
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
81
|
+
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t3;
|
|
82
|
+
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
|
|
79
83
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
80
84
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
81
85
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
|
|
@@ -88,19 +92,16 @@
|
|
|
88
92
|
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
|
|
89
93
|
var RestartRoundReason = kotlin_io_raspberryapps_game_engine_core.$_$.l1;
|
|
90
94
|
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
|
|
91
|
-
var
|
|
95
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.c4;
|
|
92
96
|
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
|
|
93
97
|
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r3;
|
|
94
|
-
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
|
|
95
98
|
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
|
|
96
99
|
var GameToRoomTransition = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
|
|
97
100
|
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b2;
|
|
98
101
|
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
|
|
99
102
|
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.c3;
|
|
100
|
-
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
101
103
|
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v3;
|
|
102
104
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.i1;
|
|
103
|
-
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t3;
|
|
104
105
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.qh;
|
|
105
106
|
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
106
107
|
var emptyList = kotlin_kotlin.$_$.n7;
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.n1;
|
|
119
120
|
var plus = kotlin_kotlin.$_$.z8;
|
|
120
121
|
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
|
|
121
|
-
var
|
|
122
|
+
var toString_0 = kotlin_kotlin.$_$.wh;
|
|
122
123
|
var KProperty1 = kotlin_kotlin.$_$.qd;
|
|
123
124
|
var getPropertyCallableRef = kotlin_kotlin.$_$.rb;
|
|
124
125
|
var to = kotlin_kotlin.$_$.xh;
|
|
@@ -126,7 +127,6 @@
|
|
|
126
127
|
var Enum = kotlin_kotlin.$_$.ig;
|
|
127
128
|
var getBooleanHashCode = kotlin_kotlin.$_$.pb;
|
|
128
129
|
var initMetadataForInterface = kotlin_kotlin.$_$.xb;
|
|
129
|
-
var toString_0 = kotlin_kotlin.$_$.zc;
|
|
130
130
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
131
131
|
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.o3;
|
|
132
132
|
var RandomPoolProvider = kotlin_io_raspberryapps_cardgame_random.$_$.i;
|
|
@@ -321,15 +321,15 @@
|
|
|
321
321
|
tmp = spectators;
|
|
322
322
|
}
|
|
323
323
|
spectators = tmp;
|
|
324
|
-
return this.
|
|
324
|
+
return this.x9v(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
325
325
|
}
|
|
326
326
|
function roomOnDelete(newRid, $super) {
|
|
327
327
|
newRid = newRid === VOID ? null : newRid;
|
|
328
|
-
return this.
|
|
328
|
+
return this.y9v(newRid);
|
|
329
329
|
}
|
|
330
330
|
function shutdown(reason, roomId, $super) {
|
|
331
331
|
roomId = roomId === VOID ? null : roomId;
|
|
332
|
-
return this.
|
|
332
|
+
return this.z9v(reason, roomId);
|
|
333
333
|
}
|
|
334
334
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
335
335
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
384
384
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
385
385
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
386
|
-
return this.
|
|
386
|
+
return this.ka0(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
387
387
|
}
|
|
388
388
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
389
389
|
initMetadataForClass(_no_name_provided__qut3iv_7, VOID, VOID, VOID, [Reducer]);
|
|
@@ -392,17 +392,17 @@
|
|
|
392
392
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
393
393
|
//endregion
|
|
394
394
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
395
|
-
this.
|
|
395
|
+
this.l9h_1 = $subscriber;
|
|
396
396
|
CoroutineImpl.call(this, resultContinuation);
|
|
397
397
|
}
|
|
398
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
399
|
-
var tmp = this.
|
|
398
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).n9h = function (it, $completion) {
|
|
399
|
+
var tmp = this.o9h(it, $completion);
|
|
400
400
|
tmp.h9_1 = Unit_instance;
|
|
401
401
|
tmp.i9_1 = null;
|
|
402
402
|
return tmp.n9();
|
|
403
403
|
};
|
|
404
404
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).x9 = function (p1, $completion) {
|
|
405
|
-
return this.
|
|
405
|
+
return this.n9h(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
406
406
|
};
|
|
407
407
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).n9 = function () {
|
|
408
408
|
var suspendResult = this.h9_1;
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
var tmp = this.f9_1;
|
|
412
412
|
if (tmp === 0) {
|
|
413
413
|
this.g9_1 = 1;
|
|
414
|
-
this.
|
|
414
|
+
this.l9h_1(this.m9h_1);
|
|
415
415
|
return Unit_instance;
|
|
416
416
|
} else if (tmp === 1) {
|
|
417
417
|
throw this.i9_1;
|
|
@@ -422,21 +422,21 @@
|
|
|
422
422
|
}
|
|
423
423
|
while (true);
|
|
424
424
|
};
|
|
425
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
426
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
427
|
-
i.
|
|
425
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).o9h = function (it, completion) {
|
|
426
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.l9h_1, completion);
|
|
427
|
+
i.m9h_1 = it;
|
|
428
428
|
return i;
|
|
429
429
|
};
|
|
430
430
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
431
431
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
432
432
|
var l = function (it, $completion) {
|
|
433
|
-
return i.
|
|
433
|
+
return i.n9h(it, $completion);
|
|
434
434
|
};
|
|
435
435
|
l.$arity = 1;
|
|
436
436
|
return l;
|
|
437
437
|
}
|
|
438
438
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
439
|
-
this.
|
|
439
|
+
this.x9h_1 = $$this$unsafeFlow;
|
|
440
440
|
CoroutineImpl.call(this, resultContinuation);
|
|
441
441
|
}
|
|
442
442
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda).j1i = function (value, $completion) {
|
|
@@ -457,12 +457,12 @@
|
|
|
457
457
|
case 0:
|
|
458
458
|
this.g9_1 = 2;
|
|
459
459
|
var tmp_0 = this;
|
|
460
|
-
tmp_0.
|
|
460
|
+
tmp_0.z9h_1 = this.x9h_1;
|
|
461
461
|
var tmp_1 = this;
|
|
462
|
-
tmp_1.
|
|
462
|
+
tmp_1.a9i_1 = this.y9h_1;
|
|
463
463
|
this.f9_1 = 1;
|
|
464
|
-
var it = this.
|
|
465
|
-
suspendResult = this.
|
|
464
|
+
var it = this.a9i_1;
|
|
465
|
+
suspendResult = this.z9h_1.q18(new ActionsStateUpdate(it), this);
|
|
466
466
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
467
467
|
return suspendResult;
|
|
468
468
|
}
|
|
@@ -485,8 +485,8 @@
|
|
|
485
485
|
while (true);
|
|
486
486
|
};
|
|
487
487
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda).k1i = function (value, completion) {
|
|
488
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda(this.
|
|
489
|
-
i.
|
|
488
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda(this.x9h_1, completion);
|
|
489
|
+
i.y9h_1 = value;
|
|
490
490
|
return i;
|
|
491
491
|
};
|
|
492
492
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -499,8 +499,8 @@
|
|
|
499
499
|
}
|
|
500
500
|
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
501
501
|
CoroutineImpl.call(this, resultContinuation);
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
502
|
+
this.j9i_1 = _this__u8e3s4;
|
|
503
|
+
this.k9i_1 = collector;
|
|
504
504
|
}
|
|
505
505
|
protoOf($collectCOROUTINE$0).n9 = function () {
|
|
506
506
|
var suspendResult = this.h9_1;
|
|
@@ -511,10 +511,10 @@
|
|
|
511
511
|
case 0:
|
|
512
512
|
this.g9_1 = 2;
|
|
513
513
|
var tmp_0 = this;
|
|
514
|
-
tmp_0.
|
|
514
|
+
tmp_0.l9i_1 = this.k9i_1;
|
|
515
515
|
this.f9_1 = 1;
|
|
516
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0(this.
|
|
517
|
-
suspendResult = this.
|
|
516
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0(this.l9i_1, null);
|
|
517
|
+
suspendResult = this.j9i_1.m9i_1.n17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
518
518
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
519
519
|
return suspendResult;
|
|
520
520
|
}
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
while (true);
|
|
538
538
|
};
|
|
539
539
|
function _no_name_provided__qut3iv($this) {
|
|
540
|
-
this.
|
|
540
|
+
this.m9i_1 = $this;
|
|
541
541
|
}
|
|
542
542
|
protoOf(_no_name_provided__qut3iv).r18 = function (collector, $completion) {
|
|
543
543
|
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
@@ -549,18 +549,18 @@
|
|
|
549
549
|
return this.r18(collector, $completion);
|
|
550
550
|
};
|
|
551
551
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda($table, this$0, resultContinuation) {
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
552
|
+
this.v9i_1 = $table;
|
|
553
|
+
this.w9i_1 = this$0;
|
|
554
554
|
CoroutineImpl.call(this, resultContinuation);
|
|
555
555
|
}
|
|
556
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).
|
|
557
|
-
var tmp = this.
|
|
556
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).y9i = function ($this$flow, $completion) {
|
|
557
|
+
var tmp = this.z9i($this$flow, $completion);
|
|
558
558
|
tmp.h9_1 = Unit_instance;
|
|
559
559
|
tmp.i9_1 = null;
|
|
560
560
|
return tmp.n9();
|
|
561
561
|
};
|
|
562
562
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).x9 = function (p1, $completion) {
|
|
563
|
-
return this.
|
|
563
|
+
return this.y9i((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
564
564
|
};
|
|
565
565
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).n9 = function () {
|
|
566
566
|
var suspendResult = this.h9_1;
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
case 0:
|
|
572
572
|
this.g9_1 = 3;
|
|
573
573
|
this.f9_1 = 1;
|
|
574
|
-
suspendResult = this.
|
|
574
|
+
suspendResult = this.x9i_1.q18(new TableStateUpdate(this.v9i_1), this);
|
|
575
575
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
576
576
|
return suspendResult;
|
|
577
577
|
}
|
|
@@ -579,8 +579,8 @@
|
|
|
579
579
|
continue $sm;
|
|
580
580
|
case 1:
|
|
581
581
|
this.f9_1 = 2;
|
|
582
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.
|
|
583
|
-
suspendResult = emitAll(this.
|
|
582
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.w9i_1).x8m(), new Long(150, 0));
|
|
583
|
+
suspendResult = emitAll(this.x9i_1, new _no_name_provided__qut3iv(this_0), this);
|
|
584
584
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
585
585
|
return suspendResult;
|
|
586
586
|
}
|
|
@@ -602,32 +602,32 @@
|
|
|
602
602
|
}
|
|
603
603
|
while (true);
|
|
604
604
|
};
|
|
605
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).
|
|
606
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda(this.
|
|
607
|
-
i.
|
|
605
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).z9i = function ($this$flow, completion) {
|
|
606
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda(this.v9i_1, this.w9i_1, completion);
|
|
607
|
+
i.x9i_1 = $this$flow;
|
|
608
608
|
return i;
|
|
609
609
|
};
|
|
610
610
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
611
611
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda($table, this$0, resultContinuation);
|
|
612
612
|
var l = function ($this$flow, $completion) {
|
|
613
|
-
return i.
|
|
613
|
+
return i.y9i($this$flow, $completion);
|
|
614
614
|
};
|
|
615
615
|
l.$arity = 1;
|
|
616
616
|
return l;
|
|
617
617
|
}
|
|
618
618
|
function GameServer$subscribeServerStateUpdate$slambda$slambda(this$0, resultContinuation) {
|
|
619
|
-
this.
|
|
619
|
+
this.i9j_1 = this$0;
|
|
620
620
|
CoroutineImpl.call(this, resultContinuation);
|
|
621
621
|
}
|
|
622
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
623
|
-
var tmp = this.
|
|
622
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).l9j = function ($this$transformLatest, it, $completion) {
|
|
623
|
+
var tmp = this.m9j($this$transformLatest, it, $completion);
|
|
624
624
|
tmp.h9_1 = Unit_instance;
|
|
625
625
|
tmp.i9_1 = null;
|
|
626
626
|
return tmp.n9();
|
|
627
627
|
};
|
|
628
628
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).y9 = function (p1, p2, $completion) {
|
|
629
629
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
630
|
-
return this.
|
|
630
|
+
return this.l9j(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
631
631
|
};
|
|
632
632
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).n9 = function () {
|
|
633
633
|
var suspendResult = this.h9_1;
|
|
@@ -638,8 +638,8 @@
|
|
|
638
638
|
case 0:
|
|
639
639
|
this.g9_1 = 2;
|
|
640
640
|
this.f9_1 = 1;
|
|
641
|
-
var table = this.
|
|
642
|
-
suspendResult = emitAll(this.
|
|
641
|
+
var table = this.k9j_1;
|
|
642
|
+
suspendResult = emitAll(this.j9j_1, flow(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda_0(table, this.i9j_1, null)), this);
|
|
643
643
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
644
644
|
return suspendResult;
|
|
645
645
|
}
|
|
@@ -661,32 +661,32 @@
|
|
|
661
661
|
}
|
|
662
662
|
while (true);
|
|
663
663
|
};
|
|
664
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
665
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.
|
|
666
|
-
i.
|
|
667
|
-
i.
|
|
664
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).m9j = function ($this$transformLatest, it, completion) {
|
|
665
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.i9j_1, completion);
|
|
666
|
+
i.j9j_1 = $this$transformLatest;
|
|
667
|
+
i.k9j_1 = it;
|
|
668
668
|
return i;
|
|
669
669
|
};
|
|
670
670
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_0(this$0, resultContinuation) {
|
|
671
671
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this$0, resultContinuation);
|
|
672
672
|
var l = function ($this$transformLatest, it, $completion) {
|
|
673
|
-
return i.
|
|
673
|
+
return i.l9j($this$transformLatest, it, $completion);
|
|
674
674
|
};
|
|
675
675
|
l.$arity = 2;
|
|
676
676
|
return l;
|
|
677
677
|
}
|
|
678
678
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_1($subscriber, resultContinuation) {
|
|
679
|
-
this.
|
|
679
|
+
this.v9j_1 = $subscriber;
|
|
680
680
|
CoroutineImpl.call(this, resultContinuation);
|
|
681
681
|
}
|
|
682
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).
|
|
683
|
-
var tmp = this.
|
|
682
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).x9j = function (it, $completion) {
|
|
683
|
+
var tmp = this.y9j(it, $completion);
|
|
684
684
|
tmp.h9_1 = Unit_instance;
|
|
685
685
|
tmp.i9_1 = null;
|
|
686
686
|
return tmp.n9();
|
|
687
687
|
};
|
|
688
688
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).x9 = function (p1, $completion) {
|
|
689
|
-
return this.
|
|
689
|
+
return this.x9j((!(p1 == null) ? isInterface(p1, ServerStateUpdate) : false) ? p1 : THROW_CCE(), $completion);
|
|
690
690
|
};
|
|
691
691
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).n9 = function () {
|
|
692
692
|
var suspendResult = this.h9_1;
|
|
@@ -695,7 +695,7 @@
|
|
|
695
695
|
var tmp = this.f9_1;
|
|
696
696
|
if (tmp === 0) {
|
|
697
697
|
this.g9_1 = 1;
|
|
698
|
-
this.
|
|
698
|
+
this.v9j_1(this.w9j_1);
|
|
699
699
|
return Unit_instance;
|
|
700
700
|
} else if (tmp === 1) {
|
|
701
701
|
throw this.i9_1;
|
|
@@ -706,21 +706,21 @@
|
|
|
706
706
|
}
|
|
707
707
|
while (true);
|
|
708
708
|
};
|
|
709
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).
|
|
710
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1(this.
|
|
711
|
-
i.
|
|
709
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).y9j = function (it, completion) {
|
|
710
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1(this.v9j_1, completion);
|
|
711
|
+
i.w9j_1 = it;
|
|
712
712
|
return i;
|
|
713
713
|
};
|
|
714
714
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_2($subscriber, resultContinuation) {
|
|
715
715
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1($subscriber, resultContinuation);
|
|
716
716
|
var l = function (it, $completion) {
|
|
717
|
-
return i.
|
|
717
|
+
return i.x9j(it, $completion);
|
|
718
718
|
};
|
|
719
719
|
l.$arity = 1;
|
|
720
720
|
return l;
|
|
721
721
|
}
|
|
722
722
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
723
|
-
this.
|
|
723
|
+
this.h9k_1 = $$this$unsafeFlow;
|
|
724
724
|
CoroutineImpl.call(this, resultContinuation);
|
|
725
725
|
}
|
|
726
726
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).j1i = function (value, $completion) {
|
|
@@ -741,12 +741,12 @@
|
|
|
741
741
|
case 0:
|
|
742
742
|
this.g9_1 = 2;
|
|
743
743
|
var tmp_0 = this;
|
|
744
|
-
tmp_0.
|
|
744
|
+
tmp_0.j9k_1 = this.h9k_1;
|
|
745
745
|
var tmp_1 = this;
|
|
746
|
-
tmp_1.
|
|
746
|
+
tmp_1.k9k_1 = this.i9k_1;
|
|
747
747
|
this.f9_1 = 1;
|
|
748
|
-
var state = this.
|
|
749
|
-
suspendResult = this.
|
|
748
|
+
var state = this.k9k_1;
|
|
749
|
+
suspendResult = this.j9k_1.q18(state.w6r().gameInfo.roundNumberTotal, this);
|
|
750
750
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
751
751
|
return suspendResult;
|
|
752
752
|
}
|
|
@@ -769,8 +769,8 @@
|
|
|
769
769
|
while (true);
|
|
770
770
|
};
|
|
771
771
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).k1i = function (value, completion) {
|
|
772
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
773
|
-
i.
|
|
772
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.h9k_1, completion);
|
|
773
|
+
i.i9k_1 = value;
|
|
774
774
|
return i;
|
|
775
775
|
};
|
|
776
776
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -783,8 +783,8 @@
|
|
|
783
783
|
}
|
|
784
784
|
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
785
785
|
CoroutineImpl.call(this, resultContinuation);
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
786
|
+
this.t9k_1 = _this__u8e3s4;
|
|
787
|
+
this.u9k_1 = collector;
|
|
788
788
|
}
|
|
789
789
|
protoOf($collectCOROUTINE$1).n9 = function () {
|
|
790
790
|
var suspendResult = this.h9_1;
|
|
@@ -795,10 +795,10 @@
|
|
|
795
795
|
case 0:
|
|
796
796
|
this.g9_1 = 2;
|
|
797
797
|
var tmp_0 = this;
|
|
798
|
-
tmp_0.
|
|
798
|
+
tmp_0.v9k_1 = this.u9k_1;
|
|
799
799
|
this.f9_1 = 1;
|
|
800
|
-
var tmp_1 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0(this.
|
|
801
|
-
suspendResult = this.
|
|
800
|
+
var tmp_1 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0(this.v9k_1, null);
|
|
801
|
+
suspendResult = this.t9k_1.w9k_1.n17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
802
802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
803
803
|
return suspendResult;
|
|
804
804
|
}
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
while (true);
|
|
822
822
|
};
|
|
823
823
|
function GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
824
|
-
this.
|
|
824
|
+
this.f9l_1 = $$this$unsafeFlow;
|
|
825
825
|
CoroutineImpl.call(this, resultContinuation);
|
|
826
826
|
}
|
|
827
827
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda).j1i = function (value, $completion) {
|
|
@@ -845,33 +845,33 @@
|
|
|
845
845
|
continue $sm;
|
|
846
846
|
case 1:
|
|
847
847
|
var tmp_0 = this;
|
|
848
|
-
tmp_0.
|
|
848
|
+
tmp_0.i9l_1 = this.f9l_1;
|
|
849
849
|
var tmp_1 = this;
|
|
850
|
-
tmp_1.
|
|
850
|
+
tmp_1.j9l_1 = this.g9l_1;
|
|
851
851
|
var tmp_2 = this;
|
|
852
|
-
tmp_2.
|
|
853
|
-
if (this.
|
|
854
|
-
this.
|
|
852
|
+
tmp_2.k9l_1 = this.j9l_1.u6q_1;
|
|
853
|
+
if (this.k9l_1 == null) {
|
|
854
|
+
this.h9l_1 = Unit_instance;
|
|
855
855
|
this.f9_1 = 4;
|
|
856
856
|
var tmp_3 = this;
|
|
857
857
|
continue $sm;
|
|
858
858
|
} else {
|
|
859
|
-
this.
|
|
859
|
+
this.l9l_1 = this.k9l_1;
|
|
860
860
|
this.f9_1 = 2;
|
|
861
861
|
continue $sm;
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
case 2:
|
|
865
|
-
this.
|
|
865
|
+
this.m9l_1 = this.l9l_1;
|
|
866
866
|
this.f9_1 = 3;
|
|
867
|
-
suspendResult = this.
|
|
867
|
+
suspendResult = this.i9l_1.q18(this.m9l_1, this);
|
|
868
868
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
869
869
|
return suspendResult;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
continue $sm;
|
|
873
873
|
case 3:
|
|
874
|
-
this.
|
|
874
|
+
this.h9l_1 = suspendResult;
|
|
875
875
|
if (false) {
|
|
876
876
|
this.f9_1 = 1;
|
|
877
877
|
continue $sm;
|
|
@@ -896,8 +896,8 @@
|
|
|
896
896
|
while (true);
|
|
897
897
|
};
|
|
898
898
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda).k1i = function (value, completion) {
|
|
899
|
-
var i = new GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.
|
|
900
|
-
i.
|
|
899
|
+
var i = new GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.f9l_1, completion);
|
|
900
|
+
i.g9l_1 = value;
|
|
901
901
|
return i;
|
|
902
902
|
};
|
|
903
903
|
function GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -910,8 +910,8 @@
|
|
|
910
910
|
}
|
|
911
911
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
912
912
|
CoroutineImpl.call(this, resultContinuation);
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
913
|
+
this.v9l_1 = _this__u8e3s4;
|
|
914
|
+
this.w9l_1 = collector;
|
|
915
915
|
}
|
|
916
916
|
protoOf($collectCOROUTINE$2).n9 = function () {
|
|
917
917
|
var suspendResult = this.h9_1;
|
|
@@ -922,10 +922,10 @@
|
|
|
922
922
|
case 0:
|
|
923
923
|
this.g9_1 = 2;
|
|
924
924
|
var tmp_0 = this;
|
|
925
|
-
tmp_0.
|
|
925
|
+
tmp_0.x9l_1 = this.w9l_1;
|
|
926
926
|
this.f9_1 = 1;
|
|
927
|
-
var tmp_1 = GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.
|
|
928
|
-
suspendResult = this.
|
|
927
|
+
var tmp_1 = GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.x9l_1, null);
|
|
928
|
+
suspendResult = this.v9l_1.y9l_1.n17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
929
929
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
930
930
|
return suspendResult;
|
|
931
931
|
}
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
while (true);
|
|
949
949
|
};
|
|
950
950
|
function _no_name_provided__qut3iv_0($this) {
|
|
951
|
-
this.
|
|
951
|
+
this.y9l_1 = $this;
|
|
952
952
|
}
|
|
953
953
|
protoOf(_no_name_provided__qut3iv_0).r18 = function (collector, $completion) {
|
|
954
954
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
@@ -960,17 +960,17 @@
|
|
|
960
960
|
return this.r18(collector, $completion);
|
|
961
961
|
};
|
|
962
962
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
963
|
-
this.
|
|
963
|
+
this.h9m_1 = $subscriber;
|
|
964
964
|
CoroutineImpl.call(this, resultContinuation);
|
|
965
965
|
}
|
|
966
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
967
|
-
var tmp = this.
|
|
966
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).j9m = function (it, $completion) {
|
|
967
|
+
var tmp = this.k9m(it, $completion);
|
|
968
968
|
tmp.h9_1 = Unit_instance;
|
|
969
969
|
tmp.i9_1 = null;
|
|
970
970
|
return tmp.n9();
|
|
971
971
|
};
|
|
972
972
|
protoOf(GameServer$subscribeWith$slambda$slambda).x9 = function (p1, $completion) {
|
|
973
|
-
return this.
|
|
973
|
+
return this.j9m(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
974
974
|
};
|
|
975
975
|
protoOf(GameServer$subscribeWith$slambda$slambda).n9 = function () {
|
|
976
976
|
var suspendResult = this.h9_1;
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
var tmp = this.f9_1;
|
|
980
980
|
if (tmp === 0) {
|
|
981
981
|
this.g9_1 = 1;
|
|
982
|
-
this.
|
|
982
|
+
this.h9m_1(this.i9m_1);
|
|
983
983
|
return Unit_instance;
|
|
984
984
|
} else if (tmp === 1) {
|
|
985
985
|
throw this.i9_1;
|
|
@@ -990,64 +990,64 @@
|
|
|
990
990
|
}
|
|
991
991
|
while (true);
|
|
992
992
|
};
|
|
993
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
994
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
995
|
-
i.
|
|
993
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).k9m = function (it, completion) {
|
|
994
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.h9m_1, completion);
|
|
995
|
+
i.i9m_1 = it;
|
|
996
996
|
return i;
|
|
997
997
|
};
|
|
998
998
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
999
999
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
1000
1000
|
var l = function (it, $completion) {
|
|
1001
|
-
return i.
|
|
1001
|
+
return i.j9m(it, $completion);
|
|
1002
1002
|
};
|
|
1003
1003
|
l.$arity = 1;
|
|
1004
1004
|
return l;
|
|
1005
1005
|
}
|
|
1006
1006
|
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($playerId) {
|
|
1007
|
-
this.
|
|
1007
|
+
this.l9m_1 = $playerId;
|
|
1008
1008
|
}
|
|
1009
|
-
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).
|
|
1010
|
-
return this.
|
|
1009
|
+
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).p6a = function () {
|
|
1010
|
+
return this.l9m_1;
|
|
1011
1011
|
};
|
|
1012
1012
|
function _get_logger__rkp4sl($this) {
|
|
1013
1013
|
// Inline function 'kotlin.getValue' call
|
|
1014
|
-
var this_0 = $this.
|
|
1014
|
+
var this_0 = $this.o9m_1;
|
|
1015
1015
|
logger$factory_0();
|
|
1016
1016
|
return this_0.u();
|
|
1017
1017
|
}
|
|
1018
1018
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
1019
1019
|
// Inline function 'kotlin.getValue' call
|
|
1020
|
-
var this_0 = $this.
|
|
1020
|
+
var this_0 = $this.p9m_1;
|
|
1021
1021
|
toClientEventsObserver$factory_0();
|
|
1022
1022
|
return this_0.u();
|
|
1023
1023
|
}
|
|
1024
1024
|
function _get_fromClientEventsObserver__a7vzd3($this) {
|
|
1025
1025
|
// Inline function 'kotlin.getValue' call
|
|
1026
|
-
var this_0 = $this.
|
|
1026
|
+
var this_0 = $this.q9m_1;
|
|
1027
1027
|
fromClientEventsObserver$factory_0();
|
|
1028
1028
|
return this_0.u();
|
|
1029
1029
|
}
|
|
1030
1030
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
1031
1031
|
// Inline function 'kotlin.getValue' call
|
|
1032
|
-
var this_0 = $this.
|
|
1032
|
+
var this_0 = $this.r9m_1;
|
|
1033
1033
|
playerConnectionInteractor$factory_0();
|
|
1034
1034
|
return this_0.u();
|
|
1035
1035
|
}
|
|
1036
1036
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
1037
1037
|
// Inline function 'kotlin.getValue' call
|
|
1038
|
-
var this_0 = $this.
|
|
1038
|
+
var this_0 = $this.s9m_1;
|
|
1039
1039
|
teamsLogicProvider$factory_0();
|
|
1040
1040
|
return this_0.u();
|
|
1041
1041
|
}
|
|
1042
1042
|
function _get_random__h29cgo($this) {
|
|
1043
1043
|
// Inline function 'kotlin.getValue' call
|
|
1044
|
-
var this_0 = $this.
|
|
1044
|
+
var this_0 = $this.t9m_1;
|
|
1045
1045
|
random$factory();
|
|
1046
1046
|
return this_0.u();
|
|
1047
1047
|
}
|
|
1048
1048
|
function _get_idsProvider__fnfajc($this) {
|
|
1049
1049
|
// Inline function 'kotlin.getValue' call
|
|
1050
|
-
var this_0 = $this.
|
|
1050
|
+
var this_0 = $this.u9m_1;
|
|
1051
1051
|
idsProvider$factory_0();
|
|
1052
1052
|
return this_0.u();
|
|
1053
1053
|
}
|
|
@@ -1061,20 +1061,20 @@
|
|
|
1061
1061
|
return transformLatest(this_0, GameServer$observeTableWhenRoundChanges$slambda_0(observeState, null));
|
|
1062
1062
|
}
|
|
1063
1063
|
function Companion() {
|
|
1064
|
-
this.
|
|
1064
|
+
this.w9m_1 = 'GameEngine_API';
|
|
1065
1065
|
}
|
|
1066
1066
|
var Companion_instance_7;
|
|
1067
1067
|
function Companion_getInstance_0() {
|
|
1068
1068
|
return Companion_instance_7;
|
|
1069
1069
|
}
|
|
1070
1070
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1071
|
-
this.
|
|
1071
|
+
this.x9m_1 = function_0;
|
|
1072
1072
|
}
|
|
1073
1073
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q18 = function (value, $completion) {
|
|
1074
|
-
return this.
|
|
1074
|
+
return this.x9m_1(value, $completion);
|
|
1075
1075
|
};
|
|
1076
1076
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p3 = function () {
|
|
1077
|
-
return this.
|
|
1077
|
+
return this.x9m_1;
|
|
1078
1078
|
};
|
|
1079
1079
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1080
1080
|
var tmp;
|
|
@@ -1095,13 +1095,13 @@
|
|
|
1095
1095
|
return hashCode(this.p3());
|
|
1096
1096
|
};
|
|
1097
1097
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
1098
|
-
this.
|
|
1098
|
+
this.y9m_1 = function_0;
|
|
1099
1099
|
}
|
|
1100
1100
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).q18 = function (value, $completion) {
|
|
1101
|
-
return this.
|
|
1101
|
+
return this.y9m_1(value, $completion);
|
|
1102
1102
|
};
|
|
1103
1103
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p3 = function () {
|
|
1104
|
-
return this.
|
|
1104
|
+
return this.y9m_1;
|
|
1105
1105
|
};
|
|
1106
1106
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
1107
1107
|
var tmp;
|
|
@@ -1122,13 +1122,13 @@
|
|
|
1122
1122
|
return hashCode(this.p3());
|
|
1123
1123
|
};
|
|
1124
1124
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
1125
|
-
this.
|
|
1125
|
+
this.z9m_1 = function_0;
|
|
1126
1126
|
}
|
|
1127
1127
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).q18 = function (value, $completion) {
|
|
1128
|
-
return this.
|
|
1128
|
+
return this.z9m_1(value, $completion);
|
|
1129
1129
|
};
|
|
1130
1130
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).p3 = function () {
|
|
1131
|
-
return this.
|
|
1131
|
+
return this.z9m_1;
|
|
1132
1132
|
};
|
|
1133
1133
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
1134
1134
|
var tmp;
|
|
@@ -1149,13 +1149,13 @@
|
|
|
1149
1149
|
return hashCode(this.p3());
|
|
1150
1150
|
};
|
|
1151
1151
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
1152
|
-
this.
|
|
1152
|
+
this.a9n_1 = function_0;
|
|
1153
1153
|
}
|
|
1154
1154
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).q18 = function (value, $completion) {
|
|
1155
|
-
return this.
|
|
1155
|
+
return this.a9n_1(value, $completion);
|
|
1156
1156
|
};
|
|
1157
1157
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).p3 = function () {
|
|
1158
|
-
return this.
|
|
1158
|
+
return this.a9n_1;
|
|
1159
1159
|
};
|
|
1160
1160
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
1161
1161
|
var tmp;
|
|
@@ -1181,8 +1181,8 @@
|
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
1183
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1184
|
+
this.j9n_1 = this$0;
|
|
1185
|
+
this.k9n_1 = $subscriber;
|
|
1186
1186
|
CoroutineImpl.call(this, resultContinuation);
|
|
1187
1187
|
}
|
|
1188
1188
|
protoOf(GameServer$subscribeToClientAction$slambda).l1e = function ($this$launchDefault, $completion) {
|
|
@@ -1203,8 +1203,8 @@
|
|
|
1203
1203
|
case 0:
|
|
1204
1204
|
this.g9_1 = 2;
|
|
1205
1205
|
this.f9_1 = 1;
|
|
1206
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
1207
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
1206
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.j9n_1).m9n();
|
|
1207
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.k9n_1, null);
|
|
1208
1208
|
suspendResult = tmp_0.n17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
1209
1209
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1210
1210
|
return suspendResult;
|
|
@@ -1228,8 +1228,8 @@
|
|
|
1228
1228
|
while (true);
|
|
1229
1229
|
};
|
|
1230
1230
|
protoOf(GameServer$subscribeToClientAction$slambda).m1e = function ($this$launchDefault, completion) {
|
|
1231
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
1232
|
-
i.
|
|
1231
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.j9n_1, this.k9n_1, completion);
|
|
1232
|
+
i.l9n_1 = $this$launchDefault;
|
|
1233
1233
|
return i;
|
|
1234
1234
|
};
|
|
1235
1235
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1241,8 +1241,8 @@
|
|
|
1241
1241
|
return l;
|
|
1242
1242
|
}
|
|
1243
1243
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1244
|
+
this.v9n_1 = this$0;
|
|
1245
|
+
this.w9n_1 = $subscriber;
|
|
1246
1246
|
CoroutineImpl.call(this, resultContinuation);
|
|
1247
1247
|
}
|
|
1248
1248
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).l1e = function ($this$launchDefault, $completion) {
|
|
@@ -1263,9 +1263,9 @@
|
|
|
1263
1263
|
case 0:
|
|
1264
1264
|
this.g9_1 = 2;
|
|
1265
1265
|
this.f9_1 = 1;
|
|
1266
|
-
var this_0 = observeTableWhenRoundChanges(this.
|
|
1267
|
-
var tmp_0 = transformLatest(this_0, GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
1268
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_2(this.
|
|
1266
|
+
var this_0 = observeTableWhenRoundChanges(this.v9n_1, this.v9n_1.t6q());
|
|
1267
|
+
var tmp_0 = transformLatest(this_0, GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.v9n_1, null));
|
|
1268
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_2(this.w9n_1, null);
|
|
1269
1269
|
suspendResult = tmp_0.n17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
1270
1270
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1271
1271
|
return suspendResult;
|
|
@@ -1289,8 +1289,8 @@
|
|
|
1289
1289
|
while (true);
|
|
1290
1290
|
};
|
|
1291
1291
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).m1e = function ($this$launchDefault, completion) {
|
|
1292
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
1293
|
-
i.
|
|
1292
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.v9n_1, this.w9n_1, completion);
|
|
1293
|
+
i.x9n_1 = $this$launchDefault;
|
|
1294
1294
|
return i;
|
|
1295
1295
|
};
|
|
1296
1296
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1302,7 +1302,7 @@
|
|
|
1302
1302
|
return l;
|
|
1303
1303
|
}
|
|
1304
1304
|
function _no_name_provided__qut3iv_1($this) {
|
|
1305
|
-
this.
|
|
1305
|
+
this.w9k_1 = $this;
|
|
1306
1306
|
}
|
|
1307
1307
|
protoOf(_no_name_provided__qut3iv_1).r18 = function (collector, $completion) {
|
|
1308
1308
|
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
@@ -1314,18 +1314,18 @@
|
|
|
1314
1314
|
return this.r18(collector, $completion);
|
|
1315
1315
|
};
|
|
1316
1316
|
function GameServer$observeTableWhenRoundChanges$slambda($observeState, resultContinuation) {
|
|
1317
|
-
this.
|
|
1317
|
+
this.g9o_1 = $observeState;
|
|
1318
1318
|
CoroutineImpl.call(this, resultContinuation);
|
|
1319
1319
|
}
|
|
1320
|
-
protoOf(GameServer$observeTableWhenRoundChanges$slambda).
|
|
1321
|
-
var tmp = this.
|
|
1320
|
+
protoOf(GameServer$observeTableWhenRoundChanges$slambda).l9j = function ($this$transformLatest, it, $completion) {
|
|
1321
|
+
var tmp = this.m9j($this$transformLatest, it, $completion);
|
|
1322
1322
|
tmp.h9_1 = Unit_instance;
|
|
1323
1323
|
tmp.i9_1 = null;
|
|
1324
1324
|
return tmp.n9();
|
|
1325
1325
|
};
|
|
1326
1326
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda).y9 = function (p1, p2, $completion) {
|
|
1327
1327
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
1328
|
-
return this.
|
|
1328
|
+
return this.l9j(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
1329
1329
|
};
|
|
1330
1330
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda).n9 = function () {
|
|
1331
1331
|
var suspendResult = this.h9_1;
|
|
@@ -1336,9 +1336,9 @@
|
|
|
1336
1336
|
case 0:
|
|
1337
1337
|
this.g9_1 = 2;
|
|
1338
1338
|
this.f9_1 = 1;
|
|
1339
|
-
this.
|
|
1340
|
-
var this_0 = this.
|
|
1341
|
-
suspendResult = emitAll(this.
|
|
1339
|
+
this.i9o_1;
|
|
1340
|
+
var this_0 = this.g9o_1;
|
|
1341
|
+
suspendResult = emitAll(this.h9o_1, new _no_name_provided__qut3iv_0(this_0), this);
|
|
1342
1342
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1343
1343
|
return suspendResult;
|
|
1344
1344
|
}
|
|
@@ -1360,23 +1360,23 @@
|
|
|
1360
1360
|
}
|
|
1361
1361
|
while (true);
|
|
1362
1362
|
};
|
|
1363
|
-
protoOf(GameServer$observeTableWhenRoundChanges$slambda).
|
|
1364
|
-
var i = new GameServer$observeTableWhenRoundChanges$slambda(this.
|
|
1365
|
-
i.
|
|
1366
|
-
i.
|
|
1363
|
+
protoOf(GameServer$observeTableWhenRoundChanges$slambda).m9j = function ($this$transformLatest, it, completion) {
|
|
1364
|
+
var i = new GameServer$observeTableWhenRoundChanges$slambda(this.g9o_1, completion);
|
|
1365
|
+
i.h9o_1 = $this$transformLatest;
|
|
1366
|
+
i.i9o_1 = it;
|
|
1367
1367
|
return i;
|
|
1368
1368
|
};
|
|
1369
1369
|
function GameServer$observeTableWhenRoundChanges$slambda_0($observeState, resultContinuation) {
|
|
1370
1370
|
var i = new GameServer$observeTableWhenRoundChanges$slambda($observeState, resultContinuation);
|
|
1371
1371
|
var l = function ($this$transformLatest, it, $completion) {
|
|
1372
|
-
return i.
|
|
1372
|
+
return i.l9j($this$transformLatest, it, $completion);
|
|
1373
1373
|
};
|
|
1374
1374
|
l.$arity = 2;
|
|
1375
1375
|
return l;
|
|
1376
1376
|
}
|
|
1377
1377
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1378
|
+
this.r9o_1 = this$0;
|
|
1379
|
+
this.s9o_1 = $subscriber;
|
|
1380
1380
|
CoroutineImpl.call(this, resultContinuation);
|
|
1381
1381
|
}
|
|
1382
1382
|
protoOf(GameServer$subscribeWith$slambda).l1e = function ($this$launchDefault, $completion) {
|
|
@@ -1397,8 +1397,8 @@
|
|
|
1397
1397
|
case 0:
|
|
1398
1398
|
this.g9_1 = 2;
|
|
1399
1399
|
this.f9_1 = 1;
|
|
1400
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
1401
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
1400
|
+
var tmp_0 = distinctUntilChanged(this.r9o_1.t6q());
|
|
1401
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.s9o_1, null);
|
|
1402
1402
|
suspendResult = tmp_0.n17(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this);
|
|
1403
1403
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1404
1404
|
return suspendResult;
|
|
@@ -1422,8 +1422,8 @@
|
|
|
1422
1422
|
while (true);
|
|
1423
1423
|
};
|
|
1424
1424
|
protoOf(GameServer$subscribeWith$slambda).m1e = function ($this$launchDefault, completion) {
|
|
1425
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
1426
|
-
i.
|
|
1425
|
+
var i = new GameServer$subscribeWith$slambda(this.r9o_1, this.s9o_1, completion);
|
|
1426
|
+
i.t9o_1 = $this$launchDefault;
|
|
1427
1427
|
return i;
|
|
1428
1428
|
};
|
|
1429
1429
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1435,18 +1435,18 @@
|
|
|
1435
1435
|
return l;
|
|
1436
1436
|
}
|
|
1437
1437
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
1438
|
-
this.
|
|
1438
|
+
this.c9p_1 = $action;
|
|
1439
1439
|
CoroutineImpl.call(this, resultContinuation);
|
|
1440
1440
|
}
|
|
1441
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1442
|
-
var tmp = this.
|
|
1441
|
+
protoOf(GameServer$fromClientEvent$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1442
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1443
1443
|
tmp.h9_1 = Unit_instance;
|
|
1444
1444
|
tmp.i9_1 = null;
|
|
1445
1445
|
return tmp.n9();
|
|
1446
1446
|
};
|
|
1447
1447
|
protoOf(GameServer$fromClientEvent$slambda).y9 = function (p1, p2, $completion) {
|
|
1448
1448
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1449
|
-
return this.
|
|
1449
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1450
1450
|
};
|
|
1451
1451
|
protoOf(GameServer$fromClientEvent$slambda).n9 = function () {
|
|
1452
1452
|
var suspendResult = this.h9_1;
|
|
@@ -1455,11 +1455,11 @@
|
|
|
1455
1455
|
var tmp = this.f9_1;
|
|
1456
1456
|
if (tmp === 0) {
|
|
1457
1457
|
this.g9_1 = 1;
|
|
1458
|
-
if (this.
|
|
1459
|
-
if (!get_isCreated(this.
|
|
1458
|
+
if (this.c9p_1 instanceof PlayerReadyFromClientAction)
|
|
1459
|
+
if (!get_isCreated(this.e9p_1.state)) {
|
|
1460
1460
|
return Unit_instance;
|
|
1461
1461
|
}
|
|
1462
|
-
this.
|
|
1462
|
+
this.e9p_1.dispatch(this.c9p_1);
|
|
1463
1463
|
return Unit_instance;
|
|
1464
1464
|
} else if (tmp === 1) {
|
|
1465
1465
|
throw this.i9_1;
|
|
@@ -1470,33 +1470,33 @@
|
|
|
1470
1470
|
}
|
|
1471
1471
|
while (true);
|
|
1472
1472
|
};
|
|
1473
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1474
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
1475
|
-
i.
|
|
1476
|
-
i.
|
|
1473
|
+
protoOf(GameServer$fromClientEvent$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1474
|
+
var i = new GameServer$fromClientEvent$slambda(this.c9p_1, completion);
|
|
1475
|
+
i.d9p_1 = $this$dispatchAsync;
|
|
1476
|
+
i.e9p_1 = store;
|
|
1477
1477
|
return i;
|
|
1478
1478
|
};
|
|
1479
1479
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
1480
1480
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
1481
1481
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1482
|
-
return i.
|
|
1482
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1483
1483
|
};
|
|
1484
1484
|
l.$arity = 2;
|
|
1485
1485
|
return l;
|
|
1486
1486
|
}
|
|
1487
1487
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
1488
|
-
this.
|
|
1488
|
+
this.p9p_1 = $playerId;
|
|
1489
1489
|
CoroutineImpl.call(this, resultContinuation);
|
|
1490
1490
|
}
|
|
1491
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
1492
|
-
var tmp = this.
|
|
1491
|
+
protoOf(GameServer$playerLostConnection$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1492
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1493
1493
|
tmp.h9_1 = Unit_instance;
|
|
1494
1494
|
tmp.i9_1 = null;
|
|
1495
1495
|
return tmp.n9();
|
|
1496
1496
|
};
|
|
1497
1497
|
protoOf(GameServer$playerLostConnection$slambda).y9 = function (p1, p2, $completion) {
|
|
1498
1498
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1499
|
-
return this.
|
|
1499
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1500
1500
|
};
|
|
1501
1501
|
protoOf(GameServer$playerLostConnection$slambda).n9 = function () {
|
|
1502
1502
|
var suspendResult = this.h9_1;
|
|
@@ -1505,12 +1505,12 @@
|
|
|
1505
1505
|
var tmp = this.f9_1;
|
|
1506
1506
|
if (tmp === 0) {
|
|
1507
1507
|
this.g9_1 = 1;
|
|
1508
|
-
if (!get_isCreated(this.
|
|
1508
|
+
if (!get_isCreated(this.r9p_1.state)) {
|
|
1509
1509
|
return Unit_instance;
|
|
1510
1510
|
}
|
|
1511
|
-
var tmp_0 = this.
|
|
1511
|
+
var tmp_0 = this.r9p_1.dispatch;
|
|
1512
1512
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
1513
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1513
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.p9p_1));
|
|
1514
1514
|
return Unit_instance;
|
|
1515
1515
|
} else if (tmp === 1) {
|
|
1516
1516
|
throw this.i9_1;
|
|
@@ -1521,33 +1521,34 @@
|
|
|
1521
1521
|
}
|
|
1522
1522
|
while (true);
|
|
1523
1523
|
};
|
|
1524
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
1525
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
1526
|
-
i.
|
|
1527
|
-
i.
|
|
1524
|
+
protoOf(GameServer$playerLostConnection$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1525
|
+
var i = new GameServer$playerLostConnection$slambda(this.p9p_1, completion);
|
|
1526
|
+
i.q9p_1 = $this$dispatchAsync;
|
|
1527
|
+
i.r9p_1 = store;
|
|
1528
1528
|
return i;
|
|
1529
1529
|
};
|
|
1530
1530
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
1531
1531
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
1532
1532
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1533
|
-
return i.
|
|
1533
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1534
1534
|
};
|
|
1535
1535
|
l.$arity = 2;
|
|
1536
1536
|
return l;
|
|
1537
1537
|
}
|
|
1538
|
-
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
1539
|
-
this.
|
|
1538
|
+
function GameServer$playerLive$slambda(this$0, $playerId, resultContinuation) {
|
|
1539
|
+
this.a9q_1 = this$0;
|
|
1540
|
+
this.b9q_1 = $playerId;
|
|
1540
1541
|
CoroutineImpl.call(this, resultContinuation);
|
|
1541
1542
|
}
|
|
1542
|
-
protoOf(GameServer$playerLive$slambda).
|
|
1543
|
-
var tmp = this.
|
|
1543
|
+
protoOf(GameServer$playerLive$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1544
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1544
1545
|
tmp.h9_1 = Unit_instance;
|
|
1545
1546
|
tmp.i9_1 = null;
|
|
1546
1547
|
return tmp.n9();
|
|
1547
1548
|
};
|
|
1548
1549
|
protoOf(GameServer$playerLive$slambda).y9 = function (p1, p2, $completion) {
|
|
1549
1550
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1550
|
-
return this.
|
|
1551
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1551
1552
|
};
|
|
1552
1553
|
protoOf(GameServer$playerLive$slambda).n9 = function () {
|
|
1553
1554
|
var suspendResult = this.h9_1;
|
|
@@ -1556,9 +1557,13 @@
|
|
|
1556
1557
|
var tmp = this.f9_1;
|
|
1557
1558
|
if (tmp === 0) {
|
|
1558
1559
|
this.g9_1 = 1;
|
|
1559
|
-
|
|
1560
|
+
if (!get_isCreated(this.d9q_1.state) || !this.a9q_1.o6b().x6r()) {
|
|
1561
|
+
_get_logger__rkp4sl(this.a9q_1).w('GameEngine_API', 'playerLive: ' + this.b9q_1 + ' called before the game start');
|
|
1562
|
+
return Unit_instance;
|
|
1563
|
+
}
|
|
1564
|
+
var tmp_0 = this.d9q_1.dispatch;
|
|
1560
1565
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1561
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1566
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.b9q_1));
|
|
1562
1567
|
return Unit_instance;
|
|
1563
1568
|
} else if (tmp === 1) {
|
|
1564
1569
|
throw this.i9_1;
|
|
@@ -1569,34 +1574,34 @@
|
|
|
1569
1574
|
}
|
|
1570
1575
|
while (true);
|
|
1571
1576
|
};
|
|
1572
|
-
protoOf(GameServer$playerLive$slambda).
|
|
1573
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
1574
|
-
i.
|
|
1575
|
-
i.
|
|
1577
|
+
protoOf(GameServer$playerLive$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1578
|
+
var i = new GameServer$playerLive$slambda(this.a9q_1, this.b9q_1, completion);
|
|
1579
|
+
i.c9q_1 = $this$dispatchAsync;
|
|
1580
|
+
i.d9q_1 = store;
|
|
1576
1581
|
return i;
|
|
1577
1582
|
};
|
|
1578
|
-
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
1579
|
-
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
1583
|
+
function GameServer$playerLive$slambda_0(this$0, $playerId, resultContinuation) {
|
|
1584
|
+
var i = new GameServer$playerLive$slambda(this$0, $playerId, resultContinuation);
|
|
1580
1585
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1581
|
-
return i.
|
|
1586
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1582
1587
|
};
|
|
1583
1588
|
l.$arity = 2;
|
|
1584
1589
|
return l;
|
|
1585
1590
|
}
|
|
1586
1591
|
function GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation) {
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1592
|
+
this.m9q_1 = this$0;
|
|
1593
|
+
this.n9q_1 = $playerId;
|
|
1589
1594
|
CoroutineImpl.call(this, resultContinuation);
|
|
1590
1595
|
}
|
|
1591
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1592
|
-
var tmp = this.
|
|
1596
|
+
protoOf(GameServer$playerLeft$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1597
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1593
1598
|
tmp.h9_1 = Unit_instance;
|
|
1594
1599
|
tmp.i9_1 = null;
|
|
1595
1600
|
return tmp.n9();
|
|
1596
1601
|
};
|
|
1597
1602
|
protoOf(GameServer$playerLeft$slambda).y9 = function (p1, p2, $completion) {
|
|
1598
1603
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1599
|
-
return this.
|
|
1604
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1600
1605
|
};
|
|
1601
1606
|
protoOf(GameServer$playerLeft$slambda).n9 = function () {
|
|
1602
1607
|
var suspendResult = this.h9_1;
|
|
@@ -1605,13 +1610,13 @@
|
|
|
1605
1610
|
var tmp = this.f9_1;
|
|
1606
1611
|
if (tmp === 0) {
|
|
1607
1612
|
this.g9_1 = 1;
|
|
1608
|
-
if (!get_isCreated(this.
|
|
1609
|
-
_get_logger__rkp4sl(this.
|
|
1613
|
+
if (!get_isCreated(this.p9q_1.state) || !this.m9q_1.o6b().x6r()) {
|
|
1614
|
+
_get_logger__rkp4sl(this.m9q_1).w('GameEngine_API', 'playerLeft: ' + this.n9q_1 + ' called before the game start');
|
|
1610
1615
|
return Unit_instance;
|
|
1611
1616
|
}
|
|
1612
|
-
var tmp_0 = this.
|
|
1617
|
+
var tmp_0 = this.p9q_1.dispatch;
|
|
1613
1618
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
1614
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1619
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.n9q_1));
|
|
1615
1620
|
return Unit_instance;
|
|
1616
1621
|
} else if (tmp === 1) {
|
|
1617
1622
|
throw this.i9_1;
|
|
@@ -1622,39 +1627,39 @@
|
|
|
1622
1627
|
}
|
|
1623
1628
|
while (true);
|
|
1624
1629
|
};
|
|
1625
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1626
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
1627
|
-
i.
|
|
1628
|
-
i.
|
|
1630
|
+
protoOf(GameServer$playerLeft$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1631
|
+
var i = new GameServer$playerLeft$slambda(this.m9q_1, this.n9q_1, completion);
|
|
1632
|
+
i.o9q_1 = $this$dispatchAsync;
|
|
1633
|
+
i.p9q_1 = store;
|
|
1629
1634
|
return i;
|
|
1630
1635
|
};
|
|
1631
1636
|
function GameServer$playerLeft$slambda_0(this$0, $playerId, resultContinuation) {
|
|
1632
1637
|
var i = new GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation);
|
|
1633
1638
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1634
|
-
return i.
|
|
1639
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1635
1640
|
};
|
|
1636
1641
|
l.$arity = 2;
|
|
1637
1642
|
return l;
|
|
1638
1643
|
}
|
|
1639
|
-
function GameServer$roomOnCreate$slambda($usersArray, $config, $
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.y9q_1 = this$0;
|
|
1644
|
-
this.z9q_1 = $gameCreatorId;
|
|
1645
|
-
this.a9r_1 = $spectators;
|
|
1644
|
+
function GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
1645
|
+
this.y9q_1 = $usersArray;
|
|
1646
|
+
this.z9q_1 = $config;
|
|
1647
|
+
this.a9r_1 = this$0;
|
|
1646
1648
|
this.b9r_1 = $roomId;
|
|
1649
|
+
this.c9r_1 = $transition;
|
|
1650
|
+
this.d9r_1 = $gameCreatorId;
|
|
1651
|
+
this.e9r_1 = $spectators;
|
|
1647
1652
|
CoroutineImpl.call(this, resultContinuation);
|
|
1648
1653
|
}
|
|
1649
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1650
|
-
var tmp = this.
|
|
1654
|
+
protoOf(GameServer$roomOnCreate$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1655
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1651
1656
|
tmp.h9_1 = Unit_instance;
|
|
1652
1657
|
tmp.i9_1 = null;
|
|
1653
1658
|
return tmp.n9();
|
|
1654
1659
|
};
|
|
1655
1660
|
protoOf(GameServer$roomOnCreate$slambda).y9 = function (p1, p2, $completion) {
|
|
1656
1661
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1657
|
-
return this.
|
|
1662
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1658
1663
|
};
|
|
1659
1664
|
protoOf(GameServer$roomOnCreate$slambda).n9 = function () {
|
|
1660
1665
|
var suspendResult = this.h9_1;
|
|
@@ -1663,28 +1668,33 @@
|
|
|
1663
1668
|
var tmp = this.f9_1;
|
|
1664
1669
|
if (tmp === 0) {
|
|
1665
1670
|
this.g9_1 = 1;
|
|
1666
|
-
var users = toList(this.
|
|
1671
|
+
var users = toList(this.y9q_1);
|
|
1672
|
+
if (!(this.z9q_1.playersMode.count === users.m())) {
|
|
1673
|
+
_get_logger__rkp4sl(this.a9r_1).w('GameEngine_API', 'roomOnCreate: wrong player count for game ' + this.b9r_1 + ', config = ' + this.z9q_1.toString() + ', users = ' + toString(users));
|
|
1674
|
+
this.g9r_1.dispatch(Companion_instance.withAnalytics(new GameErrorReason(Reason_SERVER_ERROR_getInstance()), this.a9r_1.table.isGameFinished, this.a9r_1.table));
|
|
1675
|
+
return Unit_instance;
|
|
1676
|
+
}
|
|
1667
1677
|
var tmp_0;
|
|
1668
|
-
if (this.
|
|
1669
|
-
tmp_0 = _get_random__h29cgo(this.
|
|
1678
|
+
if (this.z9q_1.mode.shufflePlayers && this.c9r_1 == null) {
|
|
1679
|
+
tmp_0 = _get_random__h29cgo(this.a9r_1).m5w(toMutableList(users));
|
|
1670
1680
|
} else {
|
|
1671
|
-
var tmp0_safe_receiver = this.
|
|
1681
|
+
var tmp0_safe_receiver = this.c9r_1;
|
|
1672
1682
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
1673
1683
|
var tmp_1;
|
|
1674
|
-
if (!(previousPlayers == null) && this.
|
|
1675
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
1684
|
+
if (!(previousPlayers == null) && this.z9q_1.playersMode.isTeamGame) {
|
|
1685
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.a9r_1);
|
|
1676
1686
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
1677
1687
|
var tmp0_iterator = previousPlayers.j();
|
|
1678
1688
|
while (tmp0_iterator.k()) {
|
|
1679
1689
|
var item = tmp0_iterator.l();
|
|
1680
1690
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
1681
1691
|
}
|
|
1682
|
-
var previousTeams = tmp_2.
|
|
1692
|
+
var previousTeams = tmp_2.o8m(destination);
|
|
1683
1693
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1684
1694
|
var tmp0_iterator_0 = users.j();
|
|
1685
1695
|
while (tmp0_iterator_0.k()) {
|
|
1686
1696
|
var element = tmp0_iterator_0.l();
|
|
1687
|
-
if (!previousPlayers.s1(element.
|
|
1697
|
+
if (!previousPlayers.s1(element.e6b_1)) {
|
|
1688
1698
|
destination_0.e(element);
|
|
1689
1699
|
}
|
|
1690
1700
|
}
|
|
@@ -1703,19 +1713,19 @@
|
|
|
1703
1713
|
destination_1.e(destination_2);
|
|
1704
1714
|
}
|
|
1705
1715
|
var updatedTeams = destination_1;
|
|
1706
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
1716
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.a9r_1).s8m(updatedTeams);
|
|
1707
1717
|
} else {
|
|
1708
1718
|
tmp_1 = users;
|
|
1709
1719
|
}
|
|
1710
1720
|
tmp_0 = tmp_1;
|
|
1711
1721
|
}
|
|
1712
1722
|
var updatedUsers = tmp_0;
|
|
1713
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
1714
|
-
var tmp_3 = this.
|
|
1723
|
+
var gameCreatorUser = getPlayer(users, this.d9r_1);
|
|
1724
|
+
var tmp_3 = this.g9r_1.dispatch;
|
|
1715
1725
|
var tmp1_version = GameEngineConfig_instance.version;
|
|
1716
1726
|
var tmp2_users = sortWithItem(updatedUsers, gameCreatorUser);
|
|
1717
|
-
var tmp3_spectators = toList(this.
|
|
1718
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
1727
|
+
var tmp3_spectators = toList(this.e9r_1);
|
|
1728
|
+
tmp_3(new StartGameMechanicAction(this.z9q_1, this.b9r_1, tmp1_version, this.d9r_1, tmp2_users, VOID, tmp3_spectators));
|
|
1719
1729
|
return Unit_instance;
|
|
1720
1730
|
} else if (tmp === 1) {
|
|
1721
1731
|
throw this.i9_1;
|
|
@@ -1726,33 +1736,33 @@
|
|
|
1726
1736
|
}
|
|
1727
1737
|
while (true);
|
|
1728
1738
|
};
|
|
1729
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1730
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
1731
|
-
i.
|
|
1732
|
-
i.
|
|
1739
|
+
protoOf(GameServer$roomOnCreate$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1740
|
+
var i = new GameServer$roomOnCreate$slambda(this.y9q_1, this.z9q_1, this.a9r_1, this.b9r_1, this.c9r_1, this.d9r_1, this.e9r_1, completion);
|
|
1741
|
+
i.f9r_1 = $this$dispatchAsync;
|
|
1742
|
+
i.g9r_1 = store;
|
|
1733
1743
|
return i;
|
|
1734
1744
|
};
|
|
1735
|
-
function GameServer$roomOnCreate$slambda_0($usersArray, $config, $
|
|
1736
|
-
var i = new GameServer$roomOnCreate$slambda($usersArray, $config, $
|
|
1745
|
+
function GameServer$roomOnCreate$slambda_0($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
1746
|
+
var i = new GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation);
|
|
1737
1747
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1738
|
-
return i.
|
|
1748
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1739
1749
|
};
|
|
1740
1750
|
l.$arity = 2;
|
|
1741
1751
|
return l;
|
|
1742
1752
|
}
|
|
1743
1753
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
1744
|
-
this.
|
|
1754
|
+
this.p9r_1 = $state;
|
|
1745
1755
|
CoroutineImpl.call(this, resultContinuation);
|
|
1746
1756
|
}
|
|
1747
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1748
|
-
var tmp = this.
|
|
1757
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1758
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1749
1759
|
tmp.h9_1 = Unit_instance;
|
|
1750
1760
|
tmp.i9_1 = null;
|
|
1751
1761
|
return tmp.n9();
|
|
1752
1762
|
};
|
|
1753
1763
|
protoOf(GameServer$roomOnContinueFromState$slambda).y9 = function (p1, p2, $completion) {
|
|
1754
1764
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1755
|
-
return this.
|
|
1765
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1756
1766
|
};
|
|
1757
1767
|
protoOf(GameServer$roomOnContinueFromState$slambda).n9 = function () {
|
|
1758
1768
|
var suspendResult = this.h9_1;
|
|
@@ -1761,9 +1771,9 @@
|
|
|
1761
1771
|
var tmp = this.f9_1;
|
|
1762
1772
|
if (tmp === 0) {
|
|
1763
1773
|
this.g9_1 = 1;
|
|
1764
|
-
var tmp_0 = this.
|
|
1774
|
+
var tmp_0 = this.r9r_1.dispatch;
|
|
1765
1775
|
var tmp0_reason = new RestartRoundReason(null);
|
|
1766
|
-
var tmp1_table = this.
|
|
1776
|
+
var tmp1_table = this.p9r_1.table;
|
|
1767
1777
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1768
1778
|
return Unit_instance;
|
|
1769
1779
|
} else if (tmp === 1) {
|
|
@@ -1775,33 +1785,33 @@
|
|
|
1775
1785
|
}
|
|
1776
1786
|
while (true);
|
|
1777
1787
|
};
|
|
1778
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1779
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
1780
|
-
i.
|
|
1781
|
-
i.
|
|
1788
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1789
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.p9r_1, completion);
|
|
1790
|
+
i.q9r_1 = $this$dispatchAsync;
|
|
1791
|
+
i.r9r_1 = store;
|
|
1782
1792
|
return i;
|
|
1783
1793
|
};
|
|
1784
1794
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
1785
1795
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
1786
1796
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1787
|
-
return i.
|
|
1797
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1788
1798
|
};
|
|
1789
1799
|
l.$arity = 2;
|
|
1790
1800
|
return l;
|
|
1791
1801
|
}
|
|
1792
1802
|
function GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation) {
|
|
1793
|
-
this.
|
|
1803
|
+
this.a9s_1 = $state;
|
|
1794
1804
|
CoroutineImpl.call(this, resultContinuation);
|
|
1795
1805
|
}
|
|
1796
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1797
|
-
var tmp = this.
|
|
1806
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1807
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1798
1808
|
tmp.h9_1 = Unit_instance;
|
|
1799
1809
|
tmp.i9_1 = null;
|
|
1800
1810
|
return tmp.n9();
|
|
1801
1811
|
};
|
|
1802
1812
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).y9 = function (p1, p2, $completion) {
|
|
1803
1813
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1804
|
-
return this.
|
|
1814
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1805
1815
|
};
|
|
1806
1816
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).n9 = function () {
|
|
1807
1817
|
var suspendResult = this.h9_1;
|
|
@@ -1810,10 +1820,10 @@
|
|
|
1810
1820
|
var tmp = this.f9_1;
|
|
1811
1821
|
if (tmp === 0) {
|
|
1812
1822
|
this.g9_1 = 1;
|
|
1813
|
-
var tmp0_iterator = this.
|
|
1823
|
+
var tmp0_iterator = this.a9s_1.actions.j();
|
|
1814
1824
|
while (tmp0_iterator.k()) {
|
|
1815
1825
|
var element = tmp0_iterator.l();
|
|
1816
|
-
this.
|
|
1826
|
+
this.c9s_1.dispatch(element);
|
|
1817
1827
|
}
|
|
1818
1828
|
return Unit_instance;
|
|
1819
1829
|
} else if (tmp === 1) {
|
|
@@ -1825,35 +1835,35 @@
|
|
|
1825
1835
|
}
|
|
1826
1836
|
while (true);
|
|
1827
1837
|
};
|
|
1828
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1829
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
1830
|
-
i.
|
|
1831
|
-
i.
|
|
1838
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1839
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.a9s_1, completion);
|
|
1840
|
+
i.b9s_1 = $this$dispatchAsync;
|
|
1841
|
+
i.c9s_1 = store;
|
|
1832
1842
|
return i;
|
|
1833
1843
|
};
|
|
1834
1844
|
function GameServer$roomOnContinueFromState$slambda_2($state, resultContinuation) {
|
|
1835
1845
|
var i = new GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation);
|
|
1836
1846
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1837
|
-
return i.
|
|
1847
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1838
1848
|
};
|
|
1839
1849
|
l.$arity = 2;
|
|
1840
1850
|
return l;
|
|
1841
1851
|
}
|
|
1842
1852
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
1843
|
-
this.
|
|
1844
|
-
this.
|
|
1845
|
-
this.
|
|
1853
|
+
this.l9s_1 = $tableLite;
|
|
1854
|
+
this.m9s_1 = $roomId;
|
|
1855
|
+
this.n9s_1 = this$0;
|
|
1846
1856
|
CoroutineImpl.call(this, resultContinuation);
|
|
1847
1857
|
}
|
|
1848
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1849
|
-
var tmp = this.
|
|
1858
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1859
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1850
1860
|
tmp.h9_1 = Unit_instance;
|
|
1851
1861
|
tmp.i9_1 = null;
|
|
1852
1862
|
return tmp.n9();
|
|
1853
1863
|
};
|
|
1854
1864
|
protoOf(GameServer$roomOnContinueFromRound$slambda).y9 = function (p1, p2, $completion) {
|
|
1855
1865
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1856
|
-
return this.
|
|
1866
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1857
1867
|
};
|
|
1858
1868
|
protoOf(GameServer$roomOnContinueFromRound$slambda).n9 = function () {
|
|
1859
1869
|
var suspendResult = this.h9_1;
|
|
@@ -1862,9 +1872,9 @@
|
|
|
1862
1872
|
var tmp = this.f9_1;
|
|
1863
1873
|
if (tmp === 0) {
|
|
1864
1874
|
this.g9_1 = 1;
|
|
1865
|
-
var tmp_0 = this.
|
|
1866
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
1867
|
-
var tmp1_table =
|
|
1875
|
+
var tmp_0 = this.p9s_1.dispatch;
|
|
1876
|
+
var tmp0_reason = new RestartRoundReason(this.l9s_1.gameInfo.round.roundNumber);
|
|
1877
|
+
var tmp1_table = Companion_instance_0.restartRound(this.m9s_1, _get_idsProvider__fnfajc(this.n9s_1).c6i(), GameEngineConfig_instance.version, this.l9s_1);
|
|
1868
1878
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1869
1879
|
return Unit_instance;
|
|
1870
1880
|
} else if (tmp === 1) {
|
|
@@ -1876,16 +1886,16 @@
|
|
|
1876
1886
|
}
|
|
1877
1887
|
while (true);
|
|
1878
1888
|
};
|
|
1879
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1880
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
1881
|
-
i.
|
|
1882
|
-
i.
|
|
1889
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1890
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.l9s_1, this.m9s_1, this.n9s_1, completion);
|
|
1891
|
+
i.o9s_1 = $this$dispatchAsync;
|
|
1892
|
+
i.p9s_1 = store;
|
|
1883
1893
|
return i;
|
|
1884
1894
|
};
|
|
1885
1895
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
1886
1896
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
1887
1897
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1888
|
-
return i.
|
|
1898
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1889
1899
|
};
|
|
1890
1900
|
l.$arity = 2;
|
|
1891
1901
|
return l;
|
|
@@ -1893,15 +1903,15 @@
|
|
|
1893
1903
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1894
1904
|
CoroutineImpl.call(this, resultContinuation);
|
|
1895
1905
|
}
|
|
1896
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1897
|
-
var tmp = this.
|
|
1906
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1907
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1898
1908
|
tmp.h9_1 = Unit_instance;
|
|
1899
1909
|
tmp.i9_1 = null;
|
|
1900
1910
|
return tmp.n9();
|
|
1901
1911
|
};
|
|
1902
1912
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).y9 = function (p1, p2, $completion) {
|
|
1903
1913
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1904
|
-
return this.
|
|
1914
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1905
1915
|
};
|
|
1906
1916
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).n9 = function () {
|
|
1907
1917
|
var suspendResult = this.h9_1;
|
|
@@ -1910,7 +1920,7 @@
|
|
|
1910
1920
|
var tmp = this.f9_1;
|
|
1911
1921
|
if (tmp === 0) {
|
|
1912
1922
|
this.g9_1 = 1;
|
|
1913
|
-
this.
|
|
1923
|
+
this.z9s_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1914
1924
|
return Unit_instance;
|
|
1915
1925
|
} else if (tmp === 1) {
|
|
1916
1926
|
throw this.i9_1;
|
|
@@ -1921,33 +1931,33 @@
|
|
|
1921
1931
|
}
|
|
1922
1932
|
while (true);
|
|
1923
1933
|
};
|
|
1924
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1934
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1925
1935
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1926
|
-
i.
|
|
1927
|
-
i.
|
|
1936
|
+
i.y9s_1 = $this$dispatchAsync;
|
|
1937
|
+
i.z9s_1 = store;
|
|
1928
1938
|
return i;
|
|
1929
1939
|
};
|
|
1930
1940
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1931
1941
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1932
1942
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1933
|
-
return i.
|
|
1943
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1934
1944
|
};
|
|
1935
1945
|
l.$arity = 2;
|
|
1936
1946
|
return l;
|
|
1937
1947
|
}
|
|
1938
1948
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1939
|
-
this.
|
|
1949
|
+
this.i9t_1 = $spectators;
|
|
1940
1950
|
CoroutineImpl.call(this, resultContinuation);
|
|
1941
1951
|
}
|
|
1942
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1943
|
-
var tmp = this.
|
|
1952
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1953
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1944
1954
|
tmp.h9_1 = Unit_instance;
|
|
1945
1955
|
tmp.i9_1 = null;
|
|
1946
1956
|
return tmp.n9();
|
|
1947
1957
|
};
|
|
1948
1958
|
protoOf(GameServer$addSpectatorsToRoom$slambda).y9 = function (p1, p2, $completion) {
|
|
1949
1959
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1950
|
-
return this.
|
|
1960
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1951
1961
|
};
|
|
1952
1962
|
protoOf(GameServer$addSpectatorsToRoom$slambda).n9 = function () {
|
|
1953
1963
|
var suspendResult = this.h9_1;
|
|
@@ -1956,7 +1966,7 @@
|
|
|
1956
1966
|
var tmp = this.f9_1;
|
|
1957
1967
|
if (tmp === 0) {
|
|
1958
1968
|
this.g9_1 = 1;
|
|
1959
|
-
this.
|
|
1969
|
+
this.k9t_1.dispatch(new AddSpectatorsAction(toList(this.i9t_1)));
|
|
1960
1970
|
return Unit_instance;
|
|
1961
1971
|
} else if (tmp === 1) {
|
|
1962
1972
|
throw this.i9_1;
|
|
@@ -1967,33 +1977,33 @@
|
|
|
1967
1977
|
}
|
|
1968
1978
|
while (true);
|
|
1969
1979
|
};
|
|
1970
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1971
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1972
|
-
i.
|
|
1973
|
-
i.
|
|
1980
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1981
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.i9t_1, completion);
|
|
1982
|
+
i.j9t_1 = $this$dispatchAsync;
|
|
1983
|
+
i.k9t_1 = store;
|
|
1974
1984
|
return i;
|
|
1975
1985
|
};
|
|
1976
1986
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1977
1987
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1978
1988
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1979
|
-
return i.
|
|
1989
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1980
1990
|
};
|
|
1981
1991
|
l.$arity = 2;
|
|
1982
1992
|
return l;
|
|
1983
1993
|
}
|
|
1984
1994
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1985
|
-
this.
|
|
1995
|
+
this.t9t_1 = $spectators;
|
|
1986
1996
|
CoroutineImpl.call(this, resultContinuation);
|
|
1987
1997
|
}
|
|
1988
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1989
|
-
var tmp = this.
|
|
1998
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1999
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1990
2000
|
tmp.h9_1 = Unit_instance;
|
|
1991
2001
|
tmp.i9_1 = null;
|
|
1992
2002
|
return tmp.n9();
|
|
1993
2003
|
};
|
|
1994
2004
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).y9 = function (p1, p2, $completion) {
|
|
1995
2005
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1996
|
-
return this.
|
|
2006
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1997
2007
|
};
|
|
1998
2008
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).n9 = function () {
|
|
1999
2009
|
var suspendResult = this.h9_1;
|
|
@@ -2002,7 +2012,7 @@
|
|
|
2002
2012
|
var tmp = this.f9_1;
|
|
2003
2013
|
if (tmp === 0) {
|
|
2004
2014
|
this.g9_1 = 1;
|
|
2005
|
-
this.
|
|
2015
|
+
this.v9t_1.dispatch(new RemoveSpectatorsAction(toList(this.t9t_1)));
|
|
2006
2016
|
return Unit_instance;
|
|
2007
2017
|
} else if (tmp === 1) {
|
|
2008
2018
|
throw this.i9_1;
|
|
@@ -2013,34 +2023,34 @@
|
|
|
2013
2023
|
}
|
|
2014
2024
|
while (true);
|
|
2015
2025
|
};
|
|
2016
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2017
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2018
|
-
i.
|
|
2019
|
-
i.
|
|
2026
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
2027
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.t9t_1, completion);
|
|
2028
|
+
i.u9t_1 = $this$dispatchAsync;
|
|
2029
|
+
i.v9t_1 = store;
|
|
2020
2030
|
return i;
|
|
2021
2031
|
};
|
|
2022
2032
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2023
2033
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2024
2034
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2025
|
-
return i.
|
|
2035
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2026
2036
|
};
|
|
2027
2037
|
l.$arity = 2;
|
|
2028
2038
|
return l;
|
|
2029
2039
|
}
|
|
2030
2040
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2031
|
-
this.
|
|
2032
|
-
this.
|
|
2041
|
+
this.e9u_1 = $playerId;
|
|
2042
|
+
this.f9u_1 = this$0;
|
|
2033
2043
|
CoroutineImpl.call(this, resultContinuation);
|
|
2034
2044
|
}
|
|
2035
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2036
|
-
var tmp = this.
|
|
2045
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2046
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2037
2047
|
tmp.h9_1 = Unit_instance;
|
|
2038
2048
|
tmp.i9_1 = null;
|
|
2039
2049
|
return tmp.n9();
|
|
2040
2050
|
};
|
|
2041
2051
|
protoOf(GameServer$roomRefreshPlayerState$slambda).y9 = function (p1, p2, $completion) {
|
|
2042
2052
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2043
|
-
return this.
|
|
2053
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2044
2054
|
};
|
|
2045
2055
|
protoOf(GameServer$roomRefreshPlayerState$slambda).n9 = function () {
|
|
2046
2056
|
var suspendResult = this.h9_1;
|
|
@@ -2049,14 +2059,14 @@
|
|
|
2049
2059
|
var tmp = this.f9_1;
|
|
2050
2060
|
if (tmp === 0) {
|
|
2051
2061
|
this.g9_1 = 1;
|
|
2052
|
-
var table = this.
|
|
2053
|
-
var player = getPlayer(table.players, this.
|
|
2054
|
-
if (player.
|
|
2055
|
-
this.
|
|
2062
|
+
var table = this.h9u_1.state.w6r();
|
|
2063
|
+
var player = getPlayer(table.players, this.e9u_1);
|
|
2064
|
+
if (player.r6x_1.r6d().i6c_1.isLive) {
|
|
2065
|
+
this.h9u_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.f9u_1).m8t(player, table));
|
|
2056
2066
|
} else {
|
|
2057
|
-
var tmp_0 = this.
|
|
2067
|
+
var tmp_0 = this.h9u_1.dispatch;
|
|
2058
2068
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2059
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2069
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.e9u_1));
|
|
2060
2070
|
}
|
|
2061
2071
|
return Unit_instance;
|
|
2062
2072
|
} else if (tmp === 1) {
|
|
@@ -2068,34 +2078,34 @@
|
|
|
2068
2078
|
}
|
|
2069
2079
|
while (true);
|
|
2070
2080
|
};
|
|
2071
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2072
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
2073
|
-
i.
|
|
2074
|
-
i.
|
|
2081
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
2082
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.e9u_1, this.f9u_1, completion);
|
|
2083
|
+
i.g9u_1 = $this$dispatchAsync;
|
|
2084
|
+
i.h9u_1 = store;
|
|
2075
2085
|
return i;
|
|
2076
2086
|
};
|
|
2077
2087
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
2078
2088
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
2079
2089
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2080
|
-
return i.
|
|
2090
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2081
2091
|
};
|
|
2082
2092
|
l.$arity = 2;
|
|
2083
2093
|
return l;
|
|
2084
2094
|
}
|
|
2085
2095
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
2086
|
-
this.
|
|
2087
|
-
this.
|
|
2096
|
+
this.q9u_1 = this$0;
|
|
2097
|
+
this.r9u_1 = $newRid;
|
|
2088
2098
|
CoroutineImpl.call(this, resultContinuation);
|
|
2089
2099
|
}
|
|
2090
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2091
|
-
var tmp = this.
|
|
2100
|
+
protoOf(GameServer$roomOnDelete$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2101
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2092
2102
|
tmp.h9_1 = Unit_instance;
|
|
2093
2103
|
tmp.i9_1 = null;
|
|
2094
2104
|
return tmp.n9();
|
|
2095
2105
|
};
|
|
2096
2106
|
protoOf(GameServer$roomOnDelete$slambda).y9 = function (p1, p2, $completion) {
|
|
2097
2107
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2098
|
-
return this.
|
|
2108
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2099
2109
|
};
|
|
2100
2110
|
protoOf(GameServer$roomOnDelete$slambda).n9 = function () {
|
|
2101
2111
|
var suspendResult = this.h9_1;
|
|
@@ -2104,27 +2114,27 @@
|
|
|
2104
2114
|
var tmp = this.f9_1;
|
|
2105
2115
|
if (tmp === 0) {
|
|
2106
2116
|
this.g9_1 = 1;
|
|
2107
|
-
var it = this.
|
|
2117
|
+
var it = this.q9u_1.o6b().x6q_1;
|
|
2108
2118
|
var tmp_0;
|
|
2109
2119
|
if (it == null) {
|
|
2110
|
-
_get_logger__rkp4sl(this.
|
|
2120
|
+
_get_logger__rkp4sl(this.q9u_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
2111
2121
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
2112
2122
|
} else {
|
|
2113
2123
|
tmp_0 = it;
|
|
2114
2124
|
}
|
|
2115
2125
|
var terminationState = tmp_0;
|
|
2116
|
-
var gameTransition = terminationState.
|
|
2126
|
+
var gameTransition = terminationState.q8x_1;
|
|
2117
2127
|
var tmp_1;
|
|
2118
2128
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2119
|
-
var tmp0_elvis_lhs = this.
|
|
2129
|
+
var tmp0_elvis_lhs = this.r9u_1;
|
|
2120
2130
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
2121
2131
|
} else {
|
|
2122
2132
|
tmp_1 = gameTransition;
|
|
2123
2133
|
}
|
|
2124
2134
|
var transition = tmp_1;
|
|
2125
|
-
var tmp_2 = this.
|
|
2126
|
-
var tmp0_reason = terminationState.
|
|
2127
|
-
var tmp1_isGameFinished = this.
|
|
2135
|
+
var tmp_2 = this.t9u_1.dispatch;
|
|
2136
|
+
var tmp0_reason = terminationState.p8x_1;
|
|
2137
|
+
var tmp1_isGameFinished = this.q9u_1.o6b().w6r().isGameFinished;
|
|
2128
2138
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2129
2139
|
return Unit_instance;
|
|
2130
2140
|
} else if (tmp === 1) {
|
|
@@ -2136,33 +2146,33 @@
|
|
|
2136
2146
|
}
|
|
2137
2147
|
while (true);
|
|
2138
2148
|
};
|
|
2139
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2140
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
2141
|
-
i.
|
|
2142
|
-
i.
|
|
2149
|
+
protoOf(GameServer$roomOnDelete$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
2150
|
+
var i = new GameServer$roomOnDelete$slambda(this.q9u_1, this.r9u_1, completion);
|
|
2151
|
+
i.s9u_1 = $this$dispatchAsync;
|
|
2152
|
+
i.t9u_1 = store;
|
|
2143
2153
|
return i;
|
|
2144
2154
|
};
|
|
2145
2155
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
2146
2156
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
2147
2157
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2148
|
-
return i.
|
|
2158
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2149
2159
|
};
|
|
2150
2160
|
l.$arity = 2;
|
|
2151
2161
|
return l;
|
|
2152
2162
|
}
|
|
2153
2163
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
2154
|
-
this.
|
|
2164
|
+
this.c9v_1 = $enabled;
|
|
2155
2165
|
CoroutineImpl.call(this, resultContinuation);
|
|
2156
2166
|
}
|
|
2157
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2158
|
-
var tmp = this.
|
|
2167
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2168
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2159
2169
|
tmp.h9_1 = Unit_instance;
|
|
2160
2170
|
tmp.i9_1 = null;
|
|
2161
2171
|
return tmp.n9();
|
|
2162
2172
|
};
|
|
2163
2173
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).y9 = function (p1, p2, $completion) {
|
|
2164
2174
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2165
|
-
return this.
|
|
2175
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2166
2176
|
};
|
|
2167
2177
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).n9 = function () {
|
|
2168
2178
|
var suspendResult = this.h9_1;
|
|
@@ -2171,7 +2181,7 @@
|
|
|
2171
2181
|
var tmp = this.f9_1;
|
|
2172
2182
|
if (tmp === 0) {
|
|
2173
2183
|
this.g9_1 = 1;
|
|
2174
|
-
this.
|
|
2184
|
+
this.e9v_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.e9v_1.state).f9v_1.i9v(VOID, this.c9v_1)));
|
|
2175
2185
|
return Unit_instance;
|
|
2176
2186
|
} else if (tmp === 1) {
|
|
2177
2187
|
throw this.i9_1;
|
|
@@ -2182,35 +2192,35 @@
|
|
|
2182
2192
|
}
|
|
2183
2193
|
while (true);
|
|
2184
2194
|
};
|
|
2185
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2186
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
2187
|
-
i.
|
|
2188
|
-
i.
|
|
2195
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
2196
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.c9v_1, completion);
|
|
2197
|
+
i.d9v_1 = $this$dispatchAsync;
|
|
2198
|
+
i.e9v_1 = store;
|
|
2189
2199
|
return i;
|
|
2190
2200
|
};
|
|
2191
2201
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
2192
2202
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
2193
2203
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2194
|
-
return i.
|
|
2204
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2195
2205
|
};
|
|
2196
2206
|
l.$arity = 2;
|
|
2197
2207
|
return l;
|
|
2198
2208
|
}
|
|
2199
2209
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
2200
|
-
this.
|
|
2201
|
-
this.
|
|
2202
|
-
this.
|
|
2210
|
+
this.r9v_1 = $reason;
|
|
2211
|
+
this.s9v_1 = this$0;
|
|
2212
|
+
this.t9v_1 = $roomId;
|
|
2203
2213
|
CoroutineImpl.call(this, resultContinuation);
|
|
2204
2214
|
}
|
|
2205
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2206
|
-
var tmp = this.
|
|
2215
|
+
protoOf(GameServer$shutdown$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2216
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2207
2217
|
tmp.h9_1 = Unit_instance;
|
|
2208
2218
|
tmp.i9_1 = null;
|
|
2209
2219
|
return tmp.n9();
|
|
2210
2220
|
};
|
|
2211
2221
|
protoOf(GameServer$shutdown$slambda).y9 = function (p1, p2, $completion) {
|
|
2212
2222
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2213
|
-
return this.
|
|
2223
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2214
2224
|
};
|
|
2215
2225
|
protoOf(GameServer$shutdown$slambda).n9 = function () {
|
|
2216
2226
|
var suspendResult = this.h9_1;
|
|
@@ -2219,12 +2229,12 @@
|
|
|
2219
2229
|
var tmp = this.f9_1;
|
|
2220
2230
|
if (tmp === 0) {
|
|
2221
2231
|
this.g9_1 = 1;
|
|
2222
|
-
var state = this.
|
|
2223
|
-
if (state.
|
|
2224
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
2232
|
+
var state = this.v9v_1.store.state;
|
|
2233
|
+
if (state.x6r()) {
|
|
2234
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.r9v_1, get_serverShutdownReasonMapping());
|
|
2225
2235
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
2226
|
-
var tmp_0 = this.
|
|
2227
|
-
var tmp_1 =
|
|
2236
|
+
var tmp_0 = this.v9v_1.dispatch;
|
|
2237
|
+
var tmp_1 = Companion_instance;
|
|
2228
2238
|
var tmp_2;
|
|
2229
2239
|
switch (shutdownReason.o2_1) {
|
|
2230
2240
|
case 0:
|
|
@@ -2237,10 +2247,10 @@
|
|
|
2237
2247
|
noWhenBranchMatchedException();
|
|
2238
2248
|
break;
|
|
2239
2249
|
}
|
|
2240
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
2250
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.s9v_1.table.isGameFinished, this.s9v_1.table));
|
|
2241
2251
|
} else {
|
|
2242
|
-
_get_logger__rkp4sl(this.
|
|
2243
|
-
this.
|
|
2252
|
+
_get_logger__rkp4sl(this.s9v_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.t9v_1);
|
|
2253
|
+
this.v9v_1.dispatch(new ClearAction());
|
|
2244
2254
|
}
|
|
2245
2255
|
return Unit_instance;
|
|
2246
2256
|
} else if (tmp === 1) {
|
|
@@ -2252,22 +2262,22 @@
|
|
|
2252
2262
|
}
|
|
2253
2263
|
while (true);
|
|
2254
2264
|
};
|
|
2255
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2256
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
2257
|
-
i.
|
|
2258
|
-
i.
|
|
2265
|
+
protoOf(GameServer$shutdown$slambda).g9p = function ($this$dispatchAsync, store, completion) {
|
|
2266
|
+
var i = new GameServer$shutdown$slambda(this.r9v_1, this.s9v_1, this.t9v_1, completion);
|
|
2267
|
+
i.u9v_1 = $this$dispatchAsync;
|
|
2268
|
+
i.v9v_1 = store;
|
|
2259
2269
|
return i;
|
|
2260
2270
|
};
|
|
2261
2271
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
2262
2272
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
2263
2273
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2264
|
-
return i.
|
|
2274
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2265
2275
|
};
|
|
2266
2276
|
l.$arity = 2;
|
|
2267
2277
|
return l;
|
|
2268
2278
|
}
|
|
2269
2279
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
2270
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_10.
|
|
2280
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_10.w9v()) : preloadedState;
|
|
2271
2281
|
var tmp;
|
|
2272
2282
|
if (externalReducers === VOID) {
|
|
2273
2283
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -2290,122 +2300,122 @@
|
|
|
2290
2300
|
// Inline function 'org.kodein.type.generic' call
|
|
2291
2301
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2292
2302
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2293
|
-
tmp_1.
|
|
2303
|
+
tmp_1.o9m_1 = Instance(di, tmp$ret$2, null).y63(this, logger$factory());
|
|
2294
2304
|
var tmp_3 = this;
|
|
2295
2305
|
// Inline function 'org.kodein.di.instance' call
|
|
2296
2306
|
// Inline function 'org.kodein.type.generic' call
|
|
2297
2307
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2298
2308
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2299
|
-
tmp_3.
|
|
2309
|
+
tmp_3.p9m_1 = Instance(di, tmp$ret$4, null).y63(this, toClientEventsObserver$factory());
|
|
2300
2310
|
var tmp_5 = this;
|
|
2301
2311
|
// Inline function 'org.kodein.di.instance' call
|
|
2302
2312
|
// Inline function 'org.kodein.type.generic' call
|
|
2303
2313
|
var tmp_6 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
2304
2314
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2305
|
-
tmp_5.
|
|
2315
|
+
tmp_5.q9m_1 = Instance(di, tmp$ret$6, null).y63(this, fromClientEventsObserver$factory());
|
|
2306
2316
|
var tmp_7 = this;
|
|
2307
2317
|
// Inline function 'org.kodein.di.instance' call
|
|
2308
2318
|
// Inline function 'org.kodein.type.generic' call
|
|
2309
2319
|
var tmp_8 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2310
2320
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2311
|
-
tmp_7.
|
|
2321
|
+
tmp_7.r9m_1 = Instance(di, tmp$ret$8, null).y63(this, playerConnectionInteractor$factory());
|
|
2312
2322
|
var tmp_9 = this;
|
|
2313
2323
|
// Inline function 'org.kodein.di.instance' call
|
|
2314
2324
|
// Inline function 'org.kodein.type.generic' call
|
|
2315
2325
|
var tmp_10 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
2316
2326
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2317
|
-
tmp_9.
|
|
2327
|
+
tmp_9.s9m_1 = Instance(di, tmp$ret$10, null).y63(this, teamsLogicProvider$factory());
|
|
2318
2328
|
var tmp_11 = this;
|
|
2319
|
-
tmp_11.
|
|
2329
|
+
tmp_11.t9m_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
2320
2330
|
var tmp_12 = this;
|
|
2321
2331
|
// Inline function 'org.kodein.di.instance' call
|
|
2322
2332
|
// Inline function 'org.kodein.type.generic' call
|
|
2323
2333
|
var tmp_13 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2324
2334
|
var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
2325
|
-
tmp_12.
|
|
2335
|
+
tmp_12.u9m_1 = Instance(di, tmp$ret$12, null).y63(this, idsProvider$factory());
|
|
2326
2336
|
var tmp_14 = this;
|
|
2327
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
2328
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
2329
|
-
tmp_14.
|
|
2337
|
+
var tmp0_externalMiddlewares = plus(storeContract.b92(), externalMiddlewares);
|
|
2338
|
+
var tmp1_externalReducers = plus(storeContract.a92(), externalReducers);
|
|
2339
|
+
tmp_14.v9m_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
2330
2340
|
}
|
|
2331
|
-
protoOf(GameServer).
|
|
2332
|
-
return this.
|
|
2341
|
+
protoOf(GameServer).j6q = function () {
|
|
2342
|
+
return this.v9m_1;
|
|
2333
2343
|
};
|
|
2334
2344
|
protoOf(GameServer).f5l = function () {
|
|
2335
|
-
return this.
|
|
2345
|
+
return this.o6b().w6r().id;
|
|
2336
2346
|
};
|
|
2337
|
-
protoOf(GameServer).
|
|
2338
|
-
return this.
|
|
2347
|
+
protoOf(GameServer).w6r = function () {
|
|
2348
|
+
return this.o6b().w6r();
|
|
2339
2349
|
};
|
|
2340
|
-
protoOf(GameServer).
|
|
2341
|
-
return this.
|
|
2350
|
+
protoOf(GameServer).x6r = function () {
|
|
2351
|
+
return this.o6b().x6r();
|
|
2342
2352
|
};
|
|
2343
|
-
protoOf(GameServer).
|
|
2344
|
-
return this.
|
|
2353
|
+
protoOf(GameServer).y6r = function () {
|
|
2354
|
+
return this.o6b().w6q_1;
|
|
2345
2355
|
};
|
|
2346
2356
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
2347
|
-
var tmp = this.
|
|
2348
|
-
tmp.
|
|
2357
|
+
var tmp = this.h6q();
|
|
2358
|
+
tmp.z6g(VOID, GameServer$subscribeToClientAction$slambda_0(this, subscriber, null));
|
|
2349
2359
|
};
|
|
2350
2360
|
protoOf(GameServer).subscribeServerStateUpdate = function (subscriber) {
|
|
2351
|
-
var tmp = this.
|
|
2352
|
-
tmp.
|
|
2361
|
+
var tmp = this.h6q();
|
|
2362
|
+
tmp.z6g(VOID, GameServer$subscribeServerStateUpdate$slambda_0(this, subscriber, null));
|
|
2353
2363
|
};
|
|
2354
2364
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
2355
|
-
var tmp = this.
|
|
2356
|
-
tmp.
|
|
2365
|
+
var tmp = this.h6q();
|
|
2366
|
+
tmp.z6g(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
2357
2367
|
};
|
|
2358
2368
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
2359
2369
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
2360
|
-
this.
|
|
2370
|
+
this.v9m_1.v6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
2361
2371
|
};
|
|
2362
2372
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
2363
2373
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
2364
|
-
this.
|
|
2374
|
+
this.v9m_1.v6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
2365
2375
|
};
|
|
2366
2376
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
2367
2377
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
2368
|
-
this.
|
|
2378
|
+
this.v9m_1.v6r(GameServer$playerLive$slambda_0(this, playerId, null));
|
|
2369
2379
|
};
|
|
2370
2380
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
2371
2381
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
2372
|
-
this.
|
|
2382
|
+
this.v9m_1.v6r(GameServer$playerLeft$slambda_0(this, playerId, null));
|
|
2373
2383
|
};
|
|
2374
|
-
protoOf(GameServer).
|
|
2375
|
-
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' +
|
|
2376
|
-
this.
|
|
2384
|
+
protoOf(GameServer).x9v = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
2385
|
+
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
2386
|
+
this.v9m_1.v6r(GameServer$roomOnCreate$slambda_0(usersArray, config, this, roomId, transition, gameCreatorId, spectators, null));
|
|
2377
2387
|
};
|
|
2378
2388
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
2379
2389
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
2380
|
-
this.
|
|
2381
|
-
this.
|
|
2390
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
2391
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
2382
2392
|
};
|
|
2383
2393
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
2384
2394
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
2385
|
-
this.
|
|
2386
|
-
this.
|
|
2395
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
2396
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
2387
2397
|
};
|
|
2388
2398
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
2389
|
-
this.
|
|
2399
|
+
this.v9m_1.v6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
2390
2400
|
};
|
|
2391
2401
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
2392
|
-
this.
|
|
2402
|
+
this.v9m_1.v6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
2393
2403
|
};
|
|
2394
2404
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
2395
2405
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
2396
|
-
this.
|
|
2406
|
+
this.v9m_1.v6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
2397
2407
|
};
|
|
2398
|
-
protoOf(GameServer).
|
|
2408
|
+
protoOf(GameServer).y9v = function (newRid) {
|
|
2399
2409
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
2400
|
-
this.
|
|
2410
|
+
this.v9m_1.v6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
2401
2411
|
};
|
|
2402
2412
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
2403
2413
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
2404
|
-
this.
|
|
2414
|
+
this.v9m_1.v6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
2405
2415
|
};
|
|
2406
|
-
protoOf(GameServer).
|
|
2416
|
+
protoOf(GameServer).z9v = function (reason, roomId) {
|
|
2407
2417
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
2408
|
-
this.
|
|
2418
|
+
this.v9m_1.v6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
2409
2419
|
};
|
|
2410
2420
|
protoOf(GameServer).clear = function () {
|
|
2411
2421
|
return this.a2();
|
|
@@ -2510,7 +2520,7 @@
|
|
|
2510
2520
|
}
|
|
2511
2521
|
function Companion_0() {
|
|
2512
2522
|
}
|
|
2513
|
-
protoOf(Companion_0).
|
|
2523
|
+
protoOf(Companion_0).a9w = function (fromRound) {
|
|
2514
2524
|
return new ServerConfig(fromRound, true);
|
|
2515
2525
|
};
|
|
2516
2526
|
var Companion_instance_8;
|
|
@@ -2518,23 +2528,23 @@
|
|
|
2518
2528
|
return Companion_instance_8;
|
|
2519
2529
|
}
|
|
2520
2530
|
function ServerConfig(fromRound, canStartNewGame) {
|
|
2521
|
-
this.
|
|
2522
|
-
this.
|
|
2531
|
+
this.g9v_1 = fromRound;
|
|
2532
|
+
this.h9v_1 = canStartNewGame;
|
|
2523
2533
|
}
|
|
2524
|
-
protoOf(ServerConfig).
|
|
2534
|
+
protoOf(ServerConfig).b9w = function (fromRound, canStartNewGame) {
|
|
2525
2535
|
return new ServerConfig(fromRound, canStartNewGame);
|
|
2526
2536
|
};
|
|
2527
|
-
protoOf(ServerConfig).
|
|
2528
|
-
fromRound = fromRound === VOID ? this.
|
|
2529
|
-
canStartNewGame = canStartNewGame === VOID ? this.
|
|
2530
|
-
return $super === VOID ? this.
|
|
2537
|
+
protoOf(ServerConfig).i9v = function (fromRound, canStartNewGame, $super) {
|
|
2538
|
+
fromRound = fromRound === VOID ? this.g9v_1 : fromRound;
|
|
2539
|
+
canStartNewGame = canStartNewGame === VOID ? this.h9v_1 : canStartNewGame;
|
|
2540
|
+
return $super === VOID ? this.b9w(fromRound, canStartNewGame) : $super.b9w.call(this, fromRound, canStartNewGame);
|
|
2531
2541
|
};
|
|
2532
2542
|
protoOf(ServerConfig).toString = function () {
|
|
2533
|
-
return 'ServerConfig(fromRound=' + this.
|
|
2543
|
+
return 'ServerConfig(fromRound=' + this.g9v_1 + ', canStartNewGame=' + this.h9v_1 + ')';
|
|
2534
2544
|
};
|
|
2535
2545
|
protoOf(ServerConfig).hashCode = function () {
|
|
2536
|
-
var result = this.
|
|
2537
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2546
|
+
var result = this.g9v_1 == null ? 0 : this.g9v_1;
|
|
2547
|
+
result = imul(result, 31) + getBooleanHashCode(this.h9v_1) | 0;
|
|
2538
2548
|
return result;
|
|
2539
2549
|
};
|
|
2540
2550
|
protoOf(ServerConfig).equals = function (other) {
|
|
@@ -2543,9 +2553,9 @@
|
|
|
2543
2553
|
if (!(other instanceof ServerConfig))
|
|
2544
2554
|
return false;
|
|
2545
2555
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
2546
|
-
if (!(this.
|
|
2556
|
+
if (!(this.g9v_1 == tmp0_other_with_cast.g9v_1))
|
|
2547
2557
|
return false;
|
|
2548
|
-
if (!(this.
|
|
2558
|
+
if (!(this.h9v_1 === tmp0_other_with_cast.h9v_1))
|
|
2549
2559
|
return false;
|
|
2550
2560
|
return true;
|
|
2551
2561
|
};
|
|
@@ -2554,18 +2564,18 @@
|
|
|
2554
2564
|
function TableStateUpdate(table) {
|
|
2555
2565
|
this.table = table;
|
|
2556
2566
|
}
|
|
2557
|
-
protoOf(TableStateUpdate).
|
|
2567
|
+
protoOf(TableStateUpdate).w6r = function () {
|
|
2558
2568
|
return this.table;
|
|
2559
2569
|
};
|
|
2560
2570
|
protoOf(TableStateUpdate).qe = function () {
|
|
2561
2571
|
return this.table;
|
|
2562
2572
|
};
|
|
2563
|
-
protoOf(TableStateUpdate).
|
|
2573
|
+
protoOf(TableStateUpdate).c9w = function (table) {
|
|
2564
2574
|
return new TableStateUpdate(table);
|
|
2565
2575
|
};
|
|
2566
2576
|
protoOf(TableStateUpdate).copy = function (table, $super) {
|
|
2567
2577
|
table = table === VOID ? this.table : table;
|
|
2568
|
-
return this.
|
|
2578
|
+
return this.c9w(table);
|
|
2569
2579
|
};
|
|
2570
2580
|
protoOf(TableStateUpdate).toString = function () {
|
|
2571
2581
|
return 'TableStateUpdate(table=' + this.table.toString() + ')';
|
|
@@ -2586,21 +2596,21 @@
|
|
|
2586
2596
|
function ActionsStateUpdate(actions) {
|
|
2587
2597
|
this.actions = actions;
|
|
2588
2598
|
}
|
|
2589
|
-
protoOf(ActionsStateUpdate).
|
|
2599
|
+
protoOf(ActionsStateUpdate).h8f = function () {
|
|
2590
2600
|
return this.actions;
|
|
2591
2601
|
};
|
|
2592
2602
|
protoOf(ActionsStateUpdate).qe = function () {
|
|
2593
2603
|
return this.actions;
|
|
2594
2604
|
};
|
|
2595
|
-
protoOf(ActionsStateUpdate).
|
|
2605
|
+
protoOf(ActionsStateUpdate).d9w = function (actions) {
|
|
2596
2606
|
return new ActionsStateUpdate(actions);
|
|
2597
2607
|
};
|
|
2598
2608
|
protoOf(ActionsStateUpdate).copy = function (actions, $super) {
|
|
2599
2609
|
actions = actions === VOID ? this.actions : actions;
|
|
2600
|
-
return this.
|
|
2610
|
+
return this.d9w(actions);
|
|
2601
2611
|
};
|
|
2602
2612
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
2603
|
-
return 'ActionsStateUpdate(actions=' +
|
|
2613
|
+
return 'ActionsStateUpdate(actions=' + toString(this.actions) + ')';
|
|
2604
2614
|
};
|
|
2605
2615
|
protoOf(ActionsStateUpdate).hashCode = function () {
|
|
2606
2616
|
return hashCode(this.actions);
|
|
@@ -2625,124 +2635,124 @@
|
|
|
2625
2635
|
}
|
|
2626
2636
|
function getServerEngineGameDI$lambda$lambda($this$provider) {
|
|
2627
2637
|
// Inline function 'org.kodein.di.instance' call
|
|
2628
|
-
var tmp = $this$provider.
|
|
2638
|
+
var tmp = $this$provider.q5z();
|
|
2629
2639
|
// Inline function 'org.kodein.type.generic' call
|
|
2630
2640
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2631
2641
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2632
|
-
var tmp_1 = tmp.
|
|
2642
|
+
var tmp_1 = tmp.p5z(tmp$ret$0, null);
|
|
2633
2643
|
// Inline function 'org.kodein.di.instance' call
|
|
2634
|
-
var tmp_2 = $this$provider.
|
|
2644
|
+
var tmp_2 = $this$provider.q5z();
|
|
2635
2645
|
// Inline function 'org.kodein.type.generic' call
|
|
2636
2646
|
var tmp_3 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
2637
2647
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
2638
|
-
var tmp_4 = tmp_2.
|
|
2648
|
+
var tmp_4 = tmp_2.p5z(tmp$ret$2, null);
|
|
2639
2649
|
// Inline function 'org.kodein.di.instance' call
|
|
2640
|
-
var tmp_5 = $this$provider.
|
|
2650
|
+
var tmp_5 = $this$provider.q5z();
|
|
2641
2651
|
// Inline function 'org.kodein.type.generic' call
|
|
2642
2652
|
var tmp_6 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
2643
2653
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2644
|
-
var tmp$ret$5 = tmp_5.
|
|
2654
|
+
var tmp$ret$5 = tmp_5.p5z(tmp$ret$4, null);
|
|
2645
2655
|
return new ServerMechanicLifecycleReducer(tmp_1, tmp_4, tmp$ret$5);
|
|
2646
2656
|
}
|
|
2647
2657
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
2648
2658
|
// Inline function 'org.kodein.di.instance' call
|
|
2649
|
-
var tmp = $this$provider.
|
|
2659
|
+
var tmp = $this$provider.q5z();
|
|
2650
2660
|
// Inline function 'org.kodein.type.generic' call
|
|
2651
2661
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2652
2662
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2653
|
-
var tmp0_serverConfig = tmp.
|
|
2663
|
+
var tmp0_serverConfig = tmp.p5z(tmp$ret$0, null);
|
|
2654
2664
|
// Inline function 'org.kodein.di.instance' call
|
|
2655
|
-
var tmp_1 = $this$provider.
|
|
2665
|
+
var tmp_1 = $this$provider.q5z();
|
|
2656
2666
|
// Inline function 'org.kodein.type.generic' call
|
|
2657
2667
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2658
2668
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2659
|
-
var tmp1_logger = tmp_1.
|
|
2669
|
+
var tmp1_logger = tmp_1.p5z(tmp$ret$2, null);
|
|
2660
2670
|
// Inline function 'org.kodein.di.instance' call
|
|
2661
|
-
var tmp_3 = $this$provider.
|
|
2671
|
+
var tmp_3 = $this$provider.q5z();
|
|
2662
2672
|
// Inline function 'org.kodein.type.generic' call
|
|
2663
2673
|
var tmp_4 = typeToken(createKType(getKClass(PlayerTurnMechanicReducer), arrayOf([]), false));
|
|
2664
2674
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2665
|
-
var tmp2_playerTurnMechanicReducer = tmp_3.
|
|
2675
|
+
var tmp2_playerTurnMechanicReducer = tmp_3.p5z(tmp$ret$4, null);
|
|
2666
2676
|
// Inline function 'org.kodein.di.instance' call
|
|
2667
|
-
var tmp_5 = $this$provider.
|
|
2677
|
+
var tmp_5 = $this$provider.q5z();
|
|
2668
2678
|
// Inline function 'org.kodein.type.generic' call
|
|
2669
2679
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2670
2680
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2671
|
-
var tmp3_idsProvider = tmp_5.
|
|
2681
|
+
var tmp3_idsProvider = tmp_5.p5z(tmp$ret$6, null);
|
|
2672
2682
|
// Inline function 'org.kodein.di.instance' call
|
|
2673
|
-
var tmp_7 = $this$provider.
|
|
2683
|
+
var tmp_7 = $this$provider.q5z();
|
|
2674
2684
|
// Inline function 'org.kodein.type.generic' call
|
|
2675
2685
|
var tmp_8 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2676
2686
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2677
|
-
var tmp4_engineLogicConfig = tmp_7.
|
|
2687
|
+
var tmp4_engineLogicConfig = tmp_7.p5z(tmp$ret$8, null);
|
|
2678
2688
|
return new PlayerConnectionInteractor(tmp0_serverConfig, tmp4_engineLogicConfig, tmp1_logger, tmp2_playerTurnMechanicReducer, tmp3_idsProvider);
|
|
2679
2689
|
}
|
|
2680
2690
|
function getServerEngineGameDI$lambda$lambda_1($this$singleton) {
|
|
2681
2691
|
// Inline function 'org.kodein.di.instance' call
|
|
2682
|
-
var tmp = $this$singleton.
|
|
2692
|
+
var tmp = $this$singleton.q5z();
|
|
2683
2693
|
// Inline function 'org.kodein.type.generic' call
|
|
2684
2694
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2685
2695
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2686
|
-
var tmp_1 = tmp.
|
|
2696
|
+
var tmp_1 = tmp.p5z(tmp$ret$0, null);
|
|
2687
2697
|
// Inline function 'org.kodein.di.instance' call
|
|
2688
|
-
var tmp_2 = $this$singleton.
|
|
2698
|
+
var tmp_2 = $this$singleton.q5z();
|
|
2689
2699
|
// Inline function 'org.kodein.type.generic' call
|
|
2690
2700
|
var tmp_3 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2691
2701
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
2692
|
-
var tmp_4 = tmp_2.
|
|
2702
|
+
var tmp_4 = tmp_2.p5z(tmp$ret$2, null);
|
|
2693
2703
|
// Inline function 'org.kodein.di.instance' call
|
|
2694
|
-
var tmp_5 = $this$singleton.
|
|
2704
|
+
var tmp_5 = $this$singleton.q5z();
|
|
2695
2705
|
// Inline function 'org.kodein.type.generic' call
|
|
2696
2706
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2697
2707
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2698
|
-
var tmp$ret$5 = tmp_5.
|
|
2708
|
+
var tmp$ret$5 = tmp_5.p5z(tmp$ret$4, null);
|
|
2699
2709
|
return new ToClientEventsObserverImpl(tmp_1, tmp_4, tmp$ret$5);
|
|
2700
2710
|
}
|
|
2701
2711
|
function getServerEngineGameDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig) {
|
|
2702
2712
|
return function ($this$Module) {
|
|
2703
|
-
$this$Module.
|
|
2704
|
-
$this$Module.
|
|
2713
|
+
$this$Module.f5y(jsonModule(emptyList()));
|
|
2714
|
+
$this$Module.f5y(getEngineGameModule($engineBotConfig, $engineLogicConfig, $dealerConfig));
|
|
2705
2715
|
// Inline function 'org.kodein.di.bind' call
|
|
2706
2716
|
// Inline function 'org.kodein.type.generic' call
|
|
2707
2717
|
var tmp = typeToken(createKType(getKClass(MechanicLifecycleReducer), arrayOf([]), false));
|
|
2708
2718
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
2709
|
-
var tmp_0 = $this$Module.
|
|
2719
|
+
var tmp_0 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
2710
2720
|
// Inline function 'org.kodein.di.provider' call
|
|
2711
2721
|
var creator = getServerEngineGameDI$lambda$lambda;
|
|
2712
|
-
var tmp_1 = $this$Module.
|
|
2722
|
+
var tmp_1 = $this$Module.g5y();
|
|
2713
2723
|
// Inline function 'org.kodein.type.generic' call
|
|
2714
2724
|
var tmp_2 = typeToken(createKType(getKClass(ServerMechanicLifecycleReducer), arrayOf([]), false));
|
|
2715
2725
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2716
2726
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
2717
|
-
tmp_0.
|
|
2727
|
+
tmp_0.b62(tmp$ret$3);
|
|
2718
2728
|
// Inline function 'org.kodein.di.bind' call
|
|
2719
2729
|
// Inline function 'org.kodein.type.generic' call
|
|
2720
2730
|
var tmp_3 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2721
2731
|
var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
2722
|
-
var tmp_4 = $this$Module.
|
|
2732
|
+
var tmp_4 = $this$Module.d5y(tmp$ret$4, null, null);
|
|
2723
2733
|
// Inline function 'org.kodein.di.provider' call
|
|
2724
2734
|
var creator_0 = getServerEngineGameDI$lambda$lambda_0;
|
|
2725
|
-
var tmp_5 = $this$Module.
|
|
2735
|
+
var tmp_5 = $this$Module.g5y();
|
|
2726
2736
|
// Inline function 'org.kodein.type.generic' call
|
|
2727
2737
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2728
2738
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2729
2739
|
var tmp$ret$7 = new Provider(tmp_5, tmp$ret$6, creator_0);
|
|
2730
|
-
tmp_4.
|
|
2740
|
+
tmp_4.b62(tmp$ret$7);
|
|
2731
2741
|
// Inline function 'org.kodein.di.bind' call
|
|
2732
2742
|
// Inline function 'org.kodein.type.generic' call
|
|
2733
2743
|
var tmp_7 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2734
2744
|
var tmp$ret$8 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
2735
|
-
var tmp_8 = $this$Module.
|
|
2745
|
+
var tmp_8 = $this$Module.d5y(tmp$ret$8, null, null);
|
|
2736
2746
|
// Inline function 'org.kodein.di.singleton' call
|
|
2737
2747
|
var creator_1 = getServerEngineGameDI$lambda$lambda_1;
|
|
2738
|
-
var tmp_9 = $this$Module.
|
|
2739
|
-
var tmp_10 = $this$Module.
|
|
2740
|
-
var tmp_11 = $this$Module.
|
|
2748
|
+
var tmp_9 = $this$Module.i5y();
|
|
2749
|
+
var tmp_10 = $this$Module.g5y();
|
|
2750
|
+
var tmp_11 = $this$Module.h5y();
|
|
2741
2751
|
// Inline function 'org.kodein.type.generic' call
|
|
2742
2752
|
var tmp_12 = typeToken(createKType(getKClass(ToClientEventsObserverImpl), arrayOf([]), false));
|
|
2743
2753
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2744
2754
|
var tmp$ret$11 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$10, null, true, creator_1);
|
|
2745
|
-
tmp_8.
|
|
2755
|
+
tmp_8.b62(tmp$ret$11);
|
|
2746
2756
|
return Unit_instance;
|
|
2747
2757
|
};
|
|
2748
2758
|
}
|
|
@@ -2752,27 +2762,27 @@
|
|
|
2752
2762
|
};
|
|
2753
2763
|
}
|
|
2754
2764
|
function createGameServerDI$lambda$lambda_0($this$singleton) {
|
|
2755
|
-
return new ServerGameStoreContract($this$singleton.
|
|
2765
|
+
return new ServerGameStoreContract($this$singleton.n5y());
|
|
2756
2766
|
}
|
|
2757
2767
|
function createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares) {
|
|
2758
2768
|
return function ($this$singleton) {
|
|
2759
|
-
var tmp = $this$singleton.
|
|
2769
|
+
var tmp = $this$singleton.n5y();
|
|
2760
2770
|
// Inline function 'org.kodein.di.instance' call
|
|
2761
|
-
var tmp_0 = $this$singleton.
|
|
2771
|
+
var tmp_0 = $this$singleton.q5z();
|
|
2762
2772
|
// Inline function 'org.kodein.type.generic' call
|
|
2763
2773
|
var tmp_1 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
2764
2774
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
2765
|
-
var tmp$ret$1 = tmp_0.
|
|
2775
|
+
var tmp$ret$1 = tmp_0.p5z(tmp$ret$0, null);
|
|
2766
2776
|
return new GameServer(tmp, 'Game server', tmp$ret$1, VOID, $externalReducers, $externalMiddlewares);
|
|
2767
2777
|
};
|
|
2768
2778
|
}
|
|
2769
2779
|
function createGameServerDI$lambda$lambda_2($this$provider) {
|
|
2770
2780
|
// Inline function 'org.kodein.di.instance' call
|
|
2771
|
-
var tmp = $this$provider.
|
|
2781
|
+
var tmp = $this$provider.q5z();
|
|
2772
2782
|
// Inline function 'org.kodein.type.generic' call
|
|
2773
2783
|
var tmp_0 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2774
2784
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2775
|
-
return tmp.
|
|
2785
|
+
return tmp.p5z(tmp$ret$0, null);
|
|
2776
2786
|
}
|
|
2777
2787
|
function createGameServerDI$lambda($botConfig, $logicConfig, $dealerConfig, $serverConfig, $externalReducers, $externalMiddlewares) {
|
|
2778
2788
|
return function ($this$Module) {
|
|
@@ -2780,61 +2790,61 @@
|
|
|
2780
2790
|
// Inline function 'org.kodein.type.generic' call
|
|
2781
2791
|
var tmp = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2782
2792
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
2783
|
-
var tmp_0 = $this$Module.
|
|
2793
|
+
var tmp_0 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
2784
2794
|
// Inline function 'org.kodein.di.singleton' call
|
|
2785
2795
|
var creator = createGameServerDI$lambda$lambda($serverConfig);
|
|
2786
|
-
var tmp_1 = $this$Module.
|
|
2787
|
-
var tmp_2 = $this$Module.
|
|
2788
|
-
var tmp_3 = $this$Module.
|
|
2796
|
+
var tmp_1 = $this$Module.i5y();
|
|
2797
|
+
var tmp_2 = $this$Module.g5y();
|
|
2798
|
+
var tmp_3 = $this$Module.h5y();
|
|
2789
2799
|
// Inline function 'org.kodein.type.generic' call
|
|
2790
2800
|
var tmp_4 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2791
2801
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2792
2802
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
2793
|
-
tmp_0.
|
|
2794
|
-
$this$Module.
|
|
2803
|
+
tmp_0.b62(tmp$ret$3);
|
|
2804
|
+
$this$Module.f5y(getServerEngineGameDI($botConfig, $logicConfig, $dealerConfig));
|
|
2795
2805
|
// Inline function 'org.kodein.di.bind' call
|
|
2796
2806
|
// Inline function 'org.kodein.type.generic' call
|
|
2797
2807
|
var tmp_5 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
2798
2808
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
2799
|
-
var tmp_6 = $this$Module.
|
|
2809
|
+
var tmp_6 = $this$Module.d5y(tmp$ret$4, null, null);
|
|
2800
2810
|
// Inline function 'org.kodein.di.singleton' call
|
|
2801
2811
|
var creator_0 = createGameServerDI$lambda$lambda_0;
|
|
2802
|
-
var tmp_7 = $this$Module.
|
|
2803
|
-
var tmp_8 = $this$Module.
|
|
2804
|
-
var tmp_9 = $this$Module.
|
|
2812
|
+
var tmp_7 = $this$Module.i5y();
|
|
2813
|
+
var tmp_8 = $this$Module.g5y();
|
|
2814
|
+
var tmp_9 = $this$Module.h5y();
|
|
2805
2815
|
// Inline function 'org.kodein.type.generic' call
|
|
2806
2816
|
var tmp_10 = typeToken(createKType(getKClass(ServerGameStoreContract), arrayOf([]), false));
|
|
2807
2817
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2808
2818
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
2809
|
-
tmp_6.
|
|
2819
|
+
tmp_6.b62(tmp$ret$7);
|
|
2810
2820
|
// Inline function 'org.kodein.di.bind' call
|
|
2811
2821
|
// Inline function 'org.kodein.type.generic' call
|
|
2812
2822
|
var tmp_11 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2813
2823
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
2814
|
-
var tmp_12 = $this$Module.
|
|
2824
|
+
var tmp_12 = $this$Module.d5y(tmp$ret$8, null, null);
|
|
2815
2825
|
// Inline function 'org.kodein.di.singleton' call
|
|
2816
2826
|
var creator_1 = createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares);
|
|
2817
|
-
var tmp_13 = $this$Module.
|
|
2818
|
-
var tmp_14 = $this$Module.
|
|
2819
|
-
var tmp_15 = $this$Module.
|
|
2827
|
+
var tmp_13 = $this$Module.i5y();
|
|
2828
|
+
var tmp_14 = $this$Module.g5y();
|
|
2829
|
+
var tmp_15 = $this$Module.h5y();
|
|
2820
2830
|
// Inline function 'org.kodein.type.generic' call
|
|
2821
2831
|
var tmp_16 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2822
2832
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2823
2833
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
2824
|
-
tmp_12.
|
|
2834
|
+
tmp_12.b62(tmp$ret$11);
|
|
2825
2835
|
// Inline function 'org.kodein.di.bind' call
|
|
2826
2836
|
// Inline function 'org.kodein.type.generic' call
|
|
2827
2837
|
var tmp_17 = typeToken(createKType(getKClass(StateProvider), arrayOf([]), false));
|
|
2828
2838
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
2829
|
-
var tmp_18 = $this$Module.
|
|
2839
|
+
var tmp_18 = $this$Module.d5y(tmp$ret$12, null, null);
|
|
2830
2840
|
// Inline function 'org.kodein.di.provider' call
|
|
2831
2841
|
var creator_2 = createGameServerDI$lambda$lambda_2;
|
|
2832
|
-
var tmp_19 = $this$Module.
|
|
2842
|
+
var tmp_19 = $this$Module.g5y();
|
|
2833
2843
|
// Inline function 'org.kodein.type.generic' call
|
|
2834
2844
|
var tmp_20 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2835
2845
|
var tmp$ret$14 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
2836
2846
|
var tmp$ret$15 = new Provider(tmp_19, tmp$ret$14, creator_2);
|
|
2837
|
-
tmp_18.
|
|
2847
|
+
tmp_18.b62(tmp$ret$15);
|
|
2838
2848
|
return Unit_instance;
|
|
2839
2849
|
};
|
|
2840
2850
|
}
|
|
@@ -2843,18 +2853,18 @@
|
|
|
2843
2853
|
function ToClientEventsObserver() {
|
|
2844
2854
|
}
|
|
2845
2855
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2846
|
-
this.
|
|
2847
|
-
this.
|
|
2856
|
+
this.n9w_1 = this$0;
|
|
2857
|
+
this.o9w_1 = $actions;
|
|
2848
2858
|
CoroutineImpl.call(this, resultContinuation);
|
|
2849
2859
|
}
|
|
2850
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2851
|
-
var tmp = this.
|
|
2860
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).v9w = function ($this$flow, $completion) {
|
|
2861
|
+
var tmp = this.w9w($this$flow, $completion);
|
|
2852
2862
|
tmp.h9_1 = Unit_instance;
|
|
2853
2863
|
tmp.i9_1 = null;
|
|
2854
2864
|
return tmp.n9();
|
|
2855
2865
|
};
|
|
2856
2866
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).x9 = function (p1, $completion) {
|
|
2857
|
-
return this.
|
|
2867
|
+
return this.v9w((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2858
2868
|
};
|
|
2859
2869
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).n9 = function () {
|
|
2860
2870
|
var suspendResult = this.h9_1;
|
|
@@ -2865,23 +2875,23 @@
|
|
|
2865
2875
|
case 0:
|
|
2866
2876
|
this.g9_1 = 4;
|
|
2867
2877
|
var tmp_0 = this;
|
|
2868
|
-
tmp_0.
|
|
2878
|
+
tmp_0.q9w_1 = this.n9w_1.b9x_1;
|
|
2869
2879
|
var tmp_1 = this;
|
|
2870
|
-
tmp_1.
|
|
2871
|
-
this.
|
|
2880
|
+
tmp_1.r9w_1 = transformToEmits(this.n9w_1, this.o9w_1);
|
|
2881
|
+
this.s9w_1 = this.r9w_1.j();
|
|
2872
2882
|
this.f9_1 = 1;
|
|
2873
2883
|
continue $sm;
|
|
2874
2884
|
case 1:
|
|
2875
|
-
if (!this.
|
|
2885
|
+
if (!this.s9w_1.k()) {
|
|
2876
2886
|
this.f9_1 = 3;
|
|
2877
2887
|
continue $sm;
|
|
2878
2888
|
}
|
|
2879
2889
|
|
|
2880
|
-
this.
|
|
2890
|
+
this.t9w_1 = this.s9w_1.l();
|
|
2881
2891
|
var tmp_2 = this;
|
|
2882
|
-
tmp_2.
|
|
2892
|
+
tmp_2.u9w_1 = this.t9w_1;
|
|
2883
2893
|
this.f9_1 = 2;
|
|
2884
|
-
suspendResult = this.
|
|
2894
|
+
suspendResult = this.p9w_1.q18(this.u9w_1, this);
|
|
2885
2895
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2886
2896
|
return suspendResult;
|
|
2887
2897
|
}
|
|
@@ -2892,10 +2902,10 @@
|
|
|
2892
2902
|
continue $sm;
|
|
2893
2903
|
case 3:
|
|
2894
2904
|
l$ret$1: do {
|
|
2895
|
-
var this_0 = this.
|
|
2905
|
+
var this_0 = this.n9w_1.a9x_1;
|
|
2896
2906
|
while (true) {
|
|
2897
2907
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2898
|
-
var upd = cur - this.
|
|
2908
|
+
var upd = cur - this.o9w_1.m() | 0;
|
|
2899
2909
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2900
2910
|
break l$ret$1;
|
|
2901
2911
|
}
|
|
@@ -2917,15 +2927,15 @@
|
|
|
2917
2927
|
}
|
|
2918
2928
|
while (true);
|
|
2919
2929
|
};
|
|
2920
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2921
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2922
|
-
i.
|
|
2930
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).w9w = function ($this$flow, completion) {
|
|
2931
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.n9w_1, this.o9w_1, completion);
|
|
2932
|
+
i.p9w_1 = $this$flow;
|
|
2923
2933
|
return i;
|
|
2924
2934
|
};
|
|
2925
2935
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2926
2936
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2927
2937
|
var l = function ($this$flow, $completion) {
|
|
2928
|
-
return i.
|
|
2938
|
+
return i.v9w($this$flow, $completion);
|
|
2929
2939
|
};
|
|
2930
2940
|
l.$arity = 1;
|
|
2931
2941
|
return l;
|
|
@@ -2998,29 +3008,29 @@
|
|
|
2998
3008
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
2999
3009
|
}
|
|
3000
3010
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3001
|
-
var tmp = $this.
|
|
3011
|
+
var tmp = $this.z9w_1.c6i();
|
|
3002
3012
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3003
|
-
var this_0 = _this__u8e3s4.
|
|
3013
|
+
var this_0 = _this__u8e3s4.e9x_1;
|
|
3004
3014
|
var tmp_0 = copyToArray(this_0);
|
|
3005
3015
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3006
|
-
var this_1 = _this__u8e3s4.
|
|
3016
|
+
var this_1 = _this__u8e3s4.f9x_1;
|
|
3007
3017
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3008
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3018
|
+
return new ActionDeliveryPayload(_this__u8e3s4.d9x_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.g9x_1);
|
|
3009
3019
|
}
|
|
3010
3020
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3011
|
-
this.
|
|
3012
|
-
this.
|
|
3013
|
-
this.
|
|
3014
|
-
this.
|
|
3021
|
+
this.d9x_1 = tableId;
|
|
3022
|
+
this.e9x_1 = includePlayers;
|
|
3023
|
+
this.f9x_1 = excludePlayers;
|
|
3024
|
+
this.g9x_1 = deliveryType;
|
|
3015
3025
|
}
|
|
3016
3026
|
protoOf(GroupKey).toString = function () {
|
|
3017
|
-
return 'GroupKey(tableId=' + this.
|
|
3027
|
+
return 'GroupKey(tableId=' + this.d9x_1 + ', includePlayers=' + toString(this.e9x_1) + ', excludePlayers=' + toString(this.f9x_1) + ', deliveryType=' + this.g9x_1.toString() + ')';
|
|
3018
3028
|
};
|
|
3019
3029
|
protoOf(GroupKey).hashCode = function () {
|
|
3020
|
-
var result = getStringHashCode(this.
|
|
3021
|
-
result = imul(result, 31) + hashCode(this.
|
|
3022
|
-
result = imul(result, 31) + hashCode(this.
|
|
3023
|
-
result = imul(result, 31) + this.
|
|
3030
|
+
var result = getStringHashCode(this.d9x_1);
|
|
3031
|
+
result = imul(result, 31) + hashCode(this.e9x_1) | 0;
|
|
3032
|
+
result = imul(result, 31) + hashCode(this.f9x_1) | 0;
|
|
3033
|
+
result = imul(result, 31) + this.g9x_1.hashCode() | 0;
|
|
3024
3034
|
return result;
|
|
3025
3035
|
};
|
|
3026
3036
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3029,35 +3039,35 @@
|
|
|
3029
3039
|
if (!(other instanceof GroupKey))
|
|
3030
3040
|
return false;
|
|
3031
3041
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3032
|
-
if (!(this.
|
|
3042
|
+
if (!(this.d9x_1 === tmp0_other_with_cast.d9x_1))
|
|
3033
3043
|
return false;
|
|
3034
|
-
if (!equals(this.
|
|
3044
|
+
if (!equals(this.e9x_1, tmp0_other_with_cast.e9x_1))
|
|
3035
3045
|
return false;
|
|
3036
|
-
if (!equals(this.
|
|
3046
|
+
if (!equals(this.f9x_1, tmp0_other_with_cast.f9x_1))
|
|
3037
3047
|
return false;
|
|
3038
|
-
if (!this.
|
|
3048
|
+
if (!this.g9x_1.equals(tmp0_other_with_cast.g9x_1))
|
|
3039
3049
|
return false;
|
|
3040
3050
|
return true;
|
|
3041
3051
|
};
|
|
3042
3052
|
function Companion_1() {
|
|
3043
|
-
this.
|
|
3053
|
+
this.h9x_1 = 6;
|
|
3044
3054
|
}
|
|
3045
3055
|
var Companion_instance_9;
|
|
3046
3056
|
function Companion_getInstance_2() {
|
|
3047
3057
|
return Companion_instance_9;
|
|
3048
3058
|
}
|
|
3049
3059
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3050
|
-
this.
|
|
3060
|
+
this.q9x_1 = this$0;
|
|
3051
3061
|
CoroutineImpl.call(this, resultContinuation);
|
|
3052
3062
|
}
|
|
3053
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3054
|
-
var tmp = this.
|
|
3063
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).s9x = function (actions, $completion) {
|
|
3064
|
+
var tmp = this.t9x(actions, $completion);
|
|
3055
3065
|
tmp.h9_1 = Unit_instance;
|
|
3056
3066
|
tmp.i9_1 = null;
|
|
3057
3067
|
return tmp.n9();
|
|
3058
3068
|
};
|
|
3059
3069
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).x9 = function (p1, $completion) {
|
|
3060
|
-
return this.
|
|
3070
|
+
return this.s9x((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3061
3071
|
};
|
|
3062
3072
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).n9 = function () {
|
|
3063
3073
|
var suspendResult = this.h9_1;
|
|
@@ -3066,7 +3076,7 @@
|
|
|
3066
3076
|
var tmp = this.f9_1;
|
|
3067
3077
|
if (tmp === 0) {
|
|
3068
3078
|
this.g9_1 = 1;
|
|
3069
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3079
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.q9x_1, this.r9x_1, null));
|
|
3070
3080
|
} else if (tmp === 1) {
|
|
3071
3081
|
throw this.i9_1;
|
|
3072
3082
|
}
|
|
@@ -3076,23 +3086,23 @@
|
|
|
3076
3086
|
}
|
|
3077
3087
|
while (true);
|
|
3078
3088
|
};
|
|
3079
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3080
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3081
|
-
i.
|
|
3089
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).t9x = function (actions, completion) {
|
|
3090
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.q9x_1, completion);
|
|
3091
|
+
i.r9x_1 = actions;
|
|
3082
3092
|
return i;
|
|
3083
3093
|
};
|
|
3084
3094
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3085
3095
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3086
3096
|
var l = function (actions, $completion) {
|
|
3087
|
-
return i.
|
|
3097
|
+
return i.s9x(actions, $completion);
|
|
3088
3098
|
};
|
|
3089
3099
|
l.$arity = 1;
|
|
3090
3100
|
return l;
|
|
3091
3101
|
}
|
|
3092
3102
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3093
3103
|
CoroutineImpl.call(this, resultContinuation);
|
|
3094
|
-
this.
|
|
3095
|
-
this.
|
|
3104
|
+
this.c9y_1 = _this__u8e3s4;
|
|
3105
|
+
this.d9y_1 = fromEvent;
|
|
3096
3106
|
}
|
|
3097
3107
|
protoOf($sentEventCOROUTINE$3).n9 = function () {
|
|
3098
3108
|
var suspendResult = this.h9_1;
|
|
@@ -3103,9 +3113,9 @@
|
|
|
3103
3113
|
case 0:
|
|
3104
3114
|
this.g9_1 = 2;
|
|
3105
3115
|
var tmp_0 = this;
|
|
3106
|
-
tmp_0.
|
|
3116
|
+
tmp_0.e9y_1 = this.c9y_1.b9x_1;
|
|
3107
3117
|
l$ret$1: do {
|
|
3108
|
-
var this_0 = this.
|
|
3118
|
+
var this_0 = this.c9y_1.a9x_1;
|
|
3109
3119
|
while (true) {
|
|
3110
3120
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3111
3121
|
var upd = cur + 1 | 0;
|
|
@@ -3116,7 +3126,7 @@
|
|
|
3116
3126
|
}
|
|
3117
3127
|
while (false);
|
|
3118
3128
|
this.f9_1 = 1;
|
|
3119
|
-
suspendResult = this.
|
|
3129
|
+
suspendResult = this.c9y_1.c9x_1.q18(this.d9y_1, this);
|
|
3120
3130
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3121
3131
|
return suspendResult;
|
|
3122
3132
|
}
|
|
@@ -3140,7 +3150,7 @@
|
|
|
3140
3150
|
};
|
|
3141
3151
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3142
3152
|
CoroutineImpl.call(this, resultContinuation);
|
|
3143
|
-
this.
|
|
3153
|
+
this.n9y_1 = _this__u8e3s4;
|
|
3144
3154
|
}
|
|
3145
3155
|
protoOf($waitForCOROUTINE$4).n9 = function () {
|
|
3146
3156
|
var suspendResult = this.h9_1;
|
|
@@ -3151,12 +3161,12 @@
|
|
|
3151
3161
|
case 0:
|
|
3152
3162
|
this.g9_1 = 5;
|
|
3153
3163
|
var tmp_0 = this;
|
|
3154
|
-
tmp_0.
|
|
3155
|
-
this.
|
|
3164
|
+
tmp_0.o9y_1 = this.n9y_1.b9x_1;
|
|
3165
|
+
this.p9y_1 = 0;
|
|
3156
3166
|
this.f9_1 = 1;
|
|
3157
3167
|
continue $sm;
|
|
3158
3168
|
case 1:
|
|
3159
|
-
if (!!(this.
|
|
3169
|
+
if (!!(this.n9y_1.a9x_1.kotlinx$atomicfu$value === 0)) {
|
|
3160
3170
|
this.f9_1 = 4;
|
|
3161
3171
|
continue $sm;
|
|
3162
3172
|
}
|
|
@@ -3169,9 +3179,9 @@
|
|
|
3169
3179
|
|
|
3170
3180
|
continue $sm;
|
|
3171
3181
|
case 2:
|
|
3172
|
-
this.
|
|
3173
|
-
if (this.
|
|
3174
|
-
this.
|
|
3182
|
+
this.p9y_1 = this.p9y_1 + 1 | 0;
|
|
3183
|
+
if (this.p9y_1 > 6) {
|
|
3184
|
+
this.n9y_1.y9w_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.n9y_1.a9x_1.kotlinx$atomicfu$value);
|
|
3175
3185
|
this.f9_1 = 4;
|
|
3176
3186
|
continue $sm;
|
|
3177
3187
|
} else {
|
|
@@ -3199,42 +3209,42 @@
|
|
|
3199
3209
|
while (true);
|
|
3200
3210
|
};
|
|
3201
3211
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3202
|
-
this.
|
|
3203
|
-
this.
|
|
3204
|
-
this.
|
|
3205
|
-
this.
|
|
3212
|
+
this.x9w_1 = serverReduxConfig;
|
|
3213
|
+
this.y9w_1 = logger;
|
|
3214
|
+
this.z9w_1 = idsProvider;
|
|
3215
|
+
this.a9x_1 = atomic$ref$1(0);
|
|
3206
3216
|
var tmp = this;
|
|
3207
3217
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3208
|
-
tmp.
|
|
3209
|
-
this.
|
|
3218
|
+
tmp.b9x_1 = get_atomicfu$reentrantLock();
|
|
3219
|
+
this.c9x_1 = MutableSharedFlow();
|
|
3210
3220
|
}
|
|
3211
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3221
|
+
protoOf(ToClientEventsObserverImpl).e9w = function (fromEvent, $completion) {
|
|
3212
3222
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3213
3223
|
tmp.h9_1 = Unit_instance;
|
|
3214
3224
|
tmp.i9_1 = null;
|
|
3215
3225
|
return tmp.n9();
|
|
3216
3226
|
};
|
|
3217
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3227
|
+
protoOf(ToClientEventsObserverImpl).k99 = function ($completion) {
|
|
3218
3228
|
var tmp = new $waitForCOROUTINE$4(this, $completion);
|
|
3219
3229
|
tmp.h9_1 = Unit_instance;
|
|
3220
3230
|
tmp.i9_1 = null;
|
|
3221
3231
|
return tmp.n9();
|
|
3222
3232
|
};
|
|
3223
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3224
|
-
if (!this.
|
|
3225
|
-
return this.
|
|
3233
|
+
protoOf(ToClientEventsObserverImpl).m9n = function () {
|
|
3234
|
+
if (!this.x9w_1.enabledCombinedEvents) {
|
|
3235
|
+
return this.c9x_1;
|
|
3226
3236
|
}
|
|
3227
|
-
var tmp = windowedByInterval(this.
|
|
3237
|
+
var tmp = windowedByInterval(this.c9x_1, toLong(this.x9w_1.combinedEventsPeriod));
|
|
3228
3238
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3229
3239
|
};
|
|
3230
3240
|
function UpdateServerConfigAction(serverConfig) {
|
|
3231
|
-
this.
|
|
3241
|
+
this.q9y_1 = serverConfig;
|
|
3232
3242
|
}
|
|
3233
3243
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3234
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3244
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.q9y_1.toString() + ')';
|
|
3235
3245
|
};
|
|
3236
3246
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3237
|
-
return this.
|
|
3247
|
+
return this.q9y_1.hashCode();
|
|
3238
3248
|
};
|
|
3239
3249
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3240
3250
|
if (this === other)
|
|
@@ -3242,20 +3252,20 @@
|
|
|
3242
3252
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3243
3253
|
return false;
|
|
3244
3254
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3245
|
-
if (!this.
|
|
3255
|
+
if (!this.q9y_1.equals(tmp0_other_with_cast.q9y_1))
|
|
3246
3256
|
return false;
|
|
3247
3257
|
return true;
|
|
3248
3258
|
};
|
|
3249
3259
|
function SpectatorsAction() {
|
|
3250
3260
|
}
|
|
3251
3261
|
function AddSpectatorsAction(spectators) {
|
|
3252
|
-
this.
|
|
3262
|
+
this.r9y_1 = spectators;
|
|
3253
3263
|
}
|
|
3254
3264
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3255
|
-
return 'AddSpectatorsAction(spectators=' +
|
|
3265
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.r9y_1) + ')';
|
|
3256
3266
|
};
|
|
3257
3267
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3258
|
-
return hashCode(this.
|
|
3268
|
+
return hashCode(this.r9y_1);
|
|
3259
3269
|
};
|
|
3260
3270
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3261
3271
|
if (this === other)
|
|
@@ -3263,18 +3273,18 @@
|
|
|
3263
3273
|
if (!(other instanceof AddSpectatorsAction))
|
|
3264
3274
|
return false;
|
|
3265
3275
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3266
|
-
if (!equals(this.
|
|
3276
|
+
if (!equals(this.r9y_1, tmp0_other_with_cast.r9y_1))
|
|
3267
3277
|
return false;
|
|
3268
3278
|
return true;
|
|
3269
3279
|
};
|
|
3270
3280
|
function RemoveSpectatorsAction(spectators) {
|
|
3271
|
-
this.
|
|
3281
|
+
this.s9y_1 = spectators;
|
|
3272
3282
|
}
|
|
3273
3283
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3274
|
-
return 'RemoveSpectatorsAction(spectators=' +
|
|
3284
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.s9y_1) + ')';
|
|
3275
3285
|
};
|
|
3276
3286
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3277
|
-
return hashCode(this.
|
|
3287
|
+
return hashCode(this.s9y_1);
|
|
3278
3288
|
};
|
|
3279
3289
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3280
3290
|
if (this === other)
|
|
@@ -3282,78 +3292,78 @@
|
|
|
3282
3292
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3283
3293
|
return false;
|
|
3284
3294
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3285
|
-
if (!equals(this.
|
|
3295
|
+
if (!equals(this.s9y_1, tmp0_other_with_cast.s9y_1))
|
|
3286
3296
|
return false;
|
|
3287
3297
|
return true;
|
|
3288
3298
|
};
|
|
3289
3299
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3290
3300
|
// Inline function 'kotlin.getValue' call
|
|
3291
|
-
var this_0 = $this.
|
|
3301
|
+
var this_0 = $this.y9y_1;
|
|
3292
3302
|
asyncProvider$factory_0();
|
|
3293
3303
|
return this_0.u();
|
|
3294
3304
|
}
|
|
3295
3305
|
function _get_logger__rkp4sl_0($this) {
|
|
3296
3306
|
// Inline function 'kotlin.getValue' call
|
|
3297
|
-
var this_0 = $this.
|
|
3307
|
+
var this_0 = $this.z9y_1;
|
|
3298
3308
|
logger$factory_2();
|
|
3299
3309
|
return this_0.u();
|
|
3300
3310
|
}
|
|
3301
3311
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3302
3312
|
// Inline function 'kotlin.getValue' call
|
|
3303
|
-
var this_0 = $this.
|
|
3313
|
+
var this_0 = $this.a9z_1;
|
|
3304
3314
|
playerConnectionInteractor$factory_2();
|
|
3305
3315
|
return this_0.u();
|
|
3306
3316
|
}
|
|
3307
3317
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3308
3318
|
// Inline function 'kotlin.getValue' call
|
|
3309
|
-
var this_0 = $this.
|
|
3319
|
+
var this_0 = $this.b9z_1;
|
|
3310
3320
|
lastCardInteractor$factory_0();
|
|
3311
3321
|
return this_0.u();
|
|
3312
3322
|
}
|
|
3313
3323
|
function _get_serverConfig__rk2g06($this) {
|
|
3314
3324
|
// Inline function 'kotlin.getValue' call
|
|
3315
|
-
var this_0 = $this.
|
|
3325
|
+
var this_0 = $this.c9z_1;
|
|
3316
3326
|
serverConfig$factory_0();
|
|
3317
3327
|
return this_0.u();
|
|
3318
3328
|
}
|
|
3319
3329
|
function _get_logicConfig__52ww9d($this) {
|
|
3320
3330
|
// Inline function 'kotlin.getValue' call
|
|
3321
|
-
var this_0 = $this.
|
|
3331
|
+
var this_0 = $this.d9z_1;
|
|
3322
3332
|
logicConfig$factory_0();
|
|
3323
3333
|
return this_0.u();
|
|
3324
3334
|
}
|
|
3325
3335
|
function _get_idsProvider__fnfajc_0($this) {
|
|
3326
3336
|
// Inline function 'kotlin.getValue' call
|
|
3327
|
-
var this_0 = $this.
|
|
3337
|
+
var this_0 = $this.e9z_1;
|
|
3328
3338
|
idsProvider$factory_2();
|
|
3329
3339
|
return this_0.u();
|
|
3330
3340
|
}
|
|
3331
3341
|
function _get_botConfig__cpaxzc($this) {
|
|
3332
3342
|
// Inline function 'kotlin.getValue' call
|
|
3333
|
-
var this_0 = $this.
|
|
3343
|
+
var this_0 = $this.f9z_1;
|
|
3334
3344
|
botConfig$factory_0();
|
|
3335
3345
|
return this_0.u();
|
|
3336
3346
|
}
|
|
3337
3347
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3338
3348
|
// Inline function 'kotlin.getValue' call
|
|
3339
|
-
var this_0 = $this.
|
|
3349
|
+
var this_0 = $this.g9z_1;
|
|
3340
3350
|
scenePositionProvider$factory_0();
|
|
3341
3351
|
return this_0.u();
|
|
3342
3352
|
}
|
|
3343
3353
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3344
3354
|
// Inline function 'kotlin.getValue' call
|
|
3345
|
-
var this_0 = $this.
|
|
3355
|
+
var this_0 = $this.h9z_1;
|
|
3346
3356
|
toClientEventsObserver$factory_2();
|
|
3347
3357
|
return this_0.u();
|
|
3348
3358
|
}
|
|
3349
3359
|
function _get_fromClientEventsObserver__a7vzd3_0($this) {
|
|
3350
3360
|
// Inline function 'kotlin.getValue' call
|
|
3351
|
-
var this_0 = $this.
|
|
3361
|
+
var this_0 = $this.i9z_1;
|
|
3352
3362
|
fromClientEventsObserver$factory_2();
|
|
3353
3363
|
return this_0.u();
|
|
3354
3364
|
}
|
|
3355
3365
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
3356
|
-
return !player.
|
|
3366
|
+
return !player.x6c();
|
|
3357
3367
|
}
|
|
3358
3368
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
3359
3369
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -3361,83 +3371,83 @@
|
|
|
3361
3371
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3362
3372
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3363
3373
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3364
|
-
this.
|
|
3365
|
-
this.
|
|
3366
|
-
this.
|
|
3367
|
-
this.
|
|
3368
|
-
this.
|
|
3374
|
+
this.t9y_1 = validationStoreContract;
|
|
3375
|
+
this.u9y_1 = timersStoreContract;
|
|
3376
|
+
this.v9y_1 = botGameStoreContract;
|
|
3377
|
+
this.w9y_1 = gameMechanicStoreContract;
|
|
3378
|
+
this.x9y_1 = fileLoggerStoreContract;
|
|
3369
3379
|
var tmp = this;
|
|
3370
3380
|
// Inline function 'org.kodein.di.instance' call
|
|
3371
3381
|
// Inline function 'org.kodein.type.generic' call
|
|
3372
3382
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3373
3383
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3374
|
-
tmp.
|
|
3384
|
+
tmp.y9y_1 = Instance(di, tmp$ret$0, null).y63(this, asyncProvider$factory());
|
|
3375
3385
|
var tmp_1 = this;
|
|
3376
3386
|
// Inline function 'org.kodein.di.instance' call
|
|
3377
3387
|
// Inline function 'org.kodein.type.generic' call
|
|
3378
3388
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3379
3389
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3380
|
-
tmp_1.
|
|
3390
|
+
tmp_1.z9y_1 = Instance(di, tmp$ret$2, null).y63(this, logger$factory_1());
|
|
3381
3391
|
var tmp_3 = this;
|
|
3382
3392
|
// Inline function 'org.kodein.di.instance' call
|
|
3383
3393
|
// Inline function 'org.kodein.type.generic' call
|
|
3384
3394
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3385
3395
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3386
|
-
tmp_3.
|
|
3396
|
+
tmp_3.a9z_1 = Instance(di, tmp$ret$4, null).y63(this, playerConnectionInteractor$factory_1());
|
|
3387
3397
|
var tmp_5 = this;
|
|
3388
3398
|
// Inline function 'org.kodein.di.instance' call
|
|
3389
3399
|
// Inline function 'org.kodein.type.generic' call
|
|
3390
3400
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3391
3401
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3392
|
-
tmp_5.
|
|
3402
|
+
tmp_5.b9z_1 = Instance(di, tmp$ret$6, null).y63(this, lastCardInteractor$factory());
|
|
3393
3403
|
var tmp_7 = this;
|
|
3394
3404
|
// Inline function 'org.kodein.di.instance' call
|
|
3395
3405
|
// Inline function 'org.kodein.type.generic' call
|
|
3396
3406
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3397
3407
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3398
|
-
tmp_7.
|
|
3408
|
+
tmp_7.c9z_1 = Instance(di, tmp$ret$8, null).y63(this, serverConfig$factory());
|
|
3399
3409
|
var tmp_9 = this;
|
|
3400
3410
|
// Inline function 'org.kodein.di.instance' call
|
|
3401
3411
|
// Inline function 'org.kodein.type.generic' call
|
|
3402
3412
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3403
3413
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3404
|
-
tmp_9.
|
|
3414
|
+
tmp_9.d9z_1 = Instance(di, tmp$ret$10, null).y63(this, logicConfig$factory());
|
|
3405
3415
|
var tmp_11 = this;
|
|
3406
3416
|
// Inline function 'org.kodein.di.instance' call
|
|
3407
3417
|
// Inline function 'org.kodein.type.generic' call
|
|
3408
3418
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3409
3419
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3410
|
-
tmp_11.
|
|
3420
|
+
tmp_11.e9z_1 = Instance(di, tmp$ret$12, null).y63(this, idsProvider$factory_1());
|
|
3411
3421
|
var tmp_13 = this;
|
|
3412
3422
|
// Inline function 'org.kodein.di.instance' call
|
|
3413
3423
|
// Inline function 'org.kodein.type.generic' call
|
|
3414
3424
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3415
3425
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3416
|
-
tmp_13.
|
|
3426
|
+
tmp_13.f9z_1 = Instance(di, tmp$ret$14, null).y63(this, botConfig$factory());
|
|
3417
3427
|
var tmp_15 = this;
|
|
3418
3428
|
// Inline function 'org.kodein.di.instance' call
|
|
3419
3429
|
// Inline function 'org.kodein.type.generic' call
|
|
3420
3430
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3421
3431
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3422
|
-
tmp_15.
|
|
3432
|
+
tmp_15.g9z_1 = Instance(di, tmp$ret$16, null).y63(this, scenePositionProvider$factory());
|
|
3423
3433
|
var tmp_17 = this;
|
|
3424
3434
|
// Inline function 'org.kodein.di.instance' call
|
|
3425
3435
|
// Inline function 'org.kodein.type.generic' call
|
|
3426
3436
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3427
3437
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3428
|
-
tmp_17.
|
|
3438
|
+
tmp_17.h9z_1 = Instance(di, tmp$ret$18, null).y63(this, toClientEventsObserver$factory_1());
|
|
3429
3439
|
var tmp_19 = this;
|
|
3430
3440
|
// Inline function 'org.kodein.di.instance' call
|
|
3431
3441
|
// Inline function 'org.kodein.type.generic' call
|
|
3432
3442
|
var tmp_20 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
3433
3443
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3434
|
-
tmp_19.
|
|
3444
|
+
tmp_19.i9z_1 = Instance(di, tmp$ret$20, null).y63(this, fromClientEventsObserver$factory_1());
|
|
3435
3445
|
}
|
|
3436
|
-
protoOf(ServerGameStoreContract).
|
|
3437
|
-
return plus(plus(plus(plus(plus(this.
|
|
3446
|
+
protoOf(ServerGameStoreContract).a92 = function () {
|
|
3447
|
+
return plus(plus(plus(plus(plus(this.t9y_1.a92(), this.u9y_1.a92()), this.v9y_1.a92()), this.w9y_1.a92()), this.x9y_1.a92()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3438
3448
|
};
|
|
3439
|
-
protoOf(ServerGameStoreContract).
|
|
3440
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
3449
|
+
protoOf(ServerGameStoreContract).b92 = function () {
|
|
3450
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.t9y_1.b92(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.u9y_1.b92()), this.v9y_1.b92()), this.w9y_1.b92()), this.x9y_1.b92()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([sendFromClientEventsMiddleware(_get_asyncProvider__jbpyhw(this), _get_fromClientEventsObserver__a7vzd3_0(this)), sendToClientActionMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc_0(this))).u93(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3441
3451
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3442
3452
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3443
3453
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3569,28 +3579,28 @@
|
|
|
3569
3579
|
}
|
|
3570
3580
|
function _no_name_provided__qut3iv_2() {
|
|
3571
3581
|
}
|
|
3572
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3582
|
+
protoOf(_no_name_provided__qut3iv_2).z6j = function (action) {
|
|
3573
3583
|
return action instanceof RoundEndedAction;
|
|
3574
3584
|
};
|
|
3575
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3585
|
+
protoOf(_no_name_provided__qut3iv_2).q6l = function (store, next, action) {
|
|
3576
3586
|
// Inline function 'games.jass.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
3577
3587
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
3578
3588
|
next(action_0);
|
|
3579
3589
|
var state = store.state;
|
|
3580
|
-
if (!get_serverStatePayload_0(state).
|
|
3581
|
-
store.dispatch(
|
|
3590
|
+
if (!get_serverStatePayload_0(state).f9v_1.h9v_1 && action_0.isGameFinished) {
|
|
3591
|
+
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.u6q_1));
|
|
3582
3592
|
}
|
|
3583
3593
|
};
|
|
3584
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3585
|
-
return this.
|
|
3594
|
+
protoOf(_no_name_provided__qut3iv_2).y6j = function (store, next, action) {
|
|
3595
|
+
return this.q6l(store, next, action);
|
|
3586
3596
|
};
|
|
3587
3597
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3588
|
-
this.
|
|
3598
|
+
this.l9z_1 = this$0;
|
|
3589
3599
|
}
|
|
3590
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3600
|
+
protoOf(_no_name_provided__qut3iv_3).z6j = function (action) {
|
|
3591
3601
|
return action instanceof MechanicAction;
|
|
3592
3602
|
};
|
|
3593
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3603
|
+
protoOf(_no_name_provided__qut3iv_3).q6l = function (store, next, action) {
|
|
3594
3604
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>' call
|
|
3595
3605
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
3596
3606
|
var state = store.state;
|
|
@@ -3599,18 +3609,18 @@
|
|
|
3599
3609
|
var tmp;
|
|
3600
3610
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3601
3611
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3602
|
-
var this_0 = this.
|
|
3603
|
-
var tableId = action_0.
|
|
3604
|
-
var gameCreatorPlayerId = action_0.
|
|
3612
|
+
var this_0 = this.l9z_1;
|
|
3613
|
+
var tableId = action_0.n8y_1;
|
|
3614
|
+
var gameCreatorPlayerId = action_0.p8y_1;
|
|
3605
3615
|
// Inline function 'kotlin.collections.map' call
|
|
3606
|
-
var this_1 = action_0.
|
|
3616
|
+
var this_1 = action_0.q8y_1;
|
|
3607
3617
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3608
3618
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3609
3619
|
var tmp0_iterator = this_1.j();
|
|
3610
3620
|
while (tmp0_iterator.k()) {
|
|
3611
3621
|
var item = tmp0_iterator.l();
|
|
3612
3622
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3613
|
-
var tmp$ret$0 = to(item.
|
|
3623
|
+
var tmp$ret$0 = to(item.e6b_1, PlayerConnectionState_LIVE_getInstance());
|
|
3614
3624
|
destination.e(tmp$ret$0);
|
|
3615
3625
|
}
|
|
3616
3626
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3644,7 +3654,7 @@
|
|
|
3644
3654
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3645
3655
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3646
3656
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3647
|
-
var tmp0_aid = this_0.
|
|
3657
|
+
var tmp0_aid = this_0.k9z_1.c6i();
|
|
3648
3658
|
// Inline function 'kotlin.collections.map' call
|
|
3649
3659
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3650
3660
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3669,17 +3679,17 @@
|
|
|
3669
3679
|
} else {
|
|
3670
3680
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3671
3681
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3672
|
-
var this_2 = this.
|
|
3673
|
-
var table = state.
|
|
3682
|
+
var this_2 = this.l9z_1;
|
|
3683
|
+
var table = state.w6r();
|
|
3674
3684
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3675
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3685
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.k9z_1.c6i(), table.id, null);
|
|
3676
3686
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3677
3687
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3678
3688
|
} else {
|
|
3679
3689
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3680
3690
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3681
|
-
var this_3 = this.
|
|
3682
|
-
var tableId_0 = action_0.
|
|
3691
|
+
var this_3 = this.l9z_1;
|
|
3692
|
+
var tableId_0 = action_0.t8y_1.id;
|
|
3683
3693
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3684
3694
|
// Inline function 'kotlin.collections.map' call
|
|
3685
3695
|
var this_4 = action_0.users;
|
|
@@ -3689,7 +3699,7 @@
|
|
|
3689
3699
|
while (tmp0_iterator_4.k()) {
|
|
3690
3700
|
var item_2 = tmp0_iterator_4.l();
|
|
3691
3701
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3692
|
-
var tmp$ret$20 = to(item_2.
|
|
3702
|
+
var tmp$ret$20 = to(item_2.e6b_1, PlayerConnectionState_LIVE_getInstance());
|
|
3693
3703
|
destination_4.e(tmp$ret$20);
|
|
3694
3704
|
}
|
|
3695
3705
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3723,7 +3733,7 @@
|
|
|
3723
3733
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3724
3734
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3725
3735
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3726
|
-
var tmp0_aid_0 = this_3.
|
|
3736
|
+
var tmp0_aid_0 = this_3.k9z_1.c6i();
|
|
3727
3737
|
// Inline function 'kotlin.collections.map' call
|
|
3728
3738
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3729
3739
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3748,44 +3758,44 @@
|
|
|
3748
3758
|
} else {
|
|
3749
3759
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3750
3760
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3751
|
-
var this_5 = this.
|
|
3752
|
-
var table_0 = state.
|
|
3761
|
+
var this_5 = this.l9z_1;
|
|
3762
|
+
var table_0 = state.w6r();
|
|
3753
3763
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3754
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3764
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.k9z_1.c6i(), table_0.id, null);
|
|
3755
3765
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3756
3766
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3757
3767
|
} else {
|
|
3758
3768
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3759
3769
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3760
|
-
var this_6 = this.
|
|
3761
|
-
var table_1 = state.
|
|
3770
|
+
var this_6 = this.l9z_1;
|
|
3771
|
+
var table_1 = state.w6r();
|
|
3762
3772
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3763
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3773
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.k9z_1.c6i(), table_1.id, null);
|
|
3764
3774
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3765
3775
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3766
3776
|
} else {
|
|
3767
3777
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3768
3778
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3769
|
-
var this_7 = this.
|
|
3770
|
-
var table_2 = state.
|
|
3779
|
+
var this_7 = this.l9z_1;
|
|
3780
|
+
var table_2 = state.w6r();
|
|
3771
3781
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3772
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3782
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.k9z_1.c6i(), table_2.id, null);
|
|
3773
3783
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3774
3784
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3775
3785
|
} else {
|
|
3776
3786
|
if (action_0 instanceof ErrorAction) {
|
|
3777
3787
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3778
|
-
var this_8 = this.
|
|
3779
|
-
var table_3 = state.
|
|
3788
|
+
var this_8 = this.l9z_1;
|
|
3789
|
+
var table_3 = state.w6r();
|
|
3780
3790
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3781
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3791
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.k9z_1.c6i(), table_3.id, null);
|
|
3782
3792
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3783
3793
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3784
3794
|
} else {
|
|
3785
3795
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3786
3796
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3787
|
-
var this_9 = this.
|
|
3788
|
-
var table_4 = state.
|
|
3797
|
+
var this_9 = this.l9z_1;
|
|
3798
|
+
var table_4 = state.w6r();
|
|
3789
3799
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3790
3800
|
var tableId_1 = table_4.id;
|
|
3791
3801
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -3821,7 +3831,7 @@
|
|
|
3821
3831
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3822
3832
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3823
3833
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3824
|
-
var tmp0_aid_1 = this_9.
|
|
3834
|
+
var tmp0_aid_1 = this_9.k9z_1.c6i();
|
|
3825
3835
|
// Inline function 'kotlin.collections.map' call
|
|
3826
3836
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3827
3837
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3846,8 +3856,8 @@
|
|
|
3846
3856
|
} else {
|
|
3847
3857
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3848
3858
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3849
|
-
var this_10 = this.
|
|
3850
|
-
var table_5 = state.
|
|
3859
|
+
var this_10 = this.l9z_1;
|
|
3860
|
+
var table_5 = state.w6r();
|
|
3851
3861
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3852
3862
|
var tableId_2 = table_5.id;
|
|
3853
3863
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -3883,7 +3893,7 @@
|
|
|
3883
3893
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3884
3894
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3885
3895
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3886
|
-
var tmp0_aid_2 = this_10.
|
|
3896
|
+
var tmp0_aid_2 = this_10.k9z_1.c6i();
|
|
3887
3897
|
// Inline function 'kotlin.collections.map' call
|
|
3888
3898
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3889
3899
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -3908,8 +3918,8 @@
|
|
|
3908
3918
|
} else {
|
|
3909
3919
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
3910
3920
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3911
|
-
var this_11 = this.
|
|
3912
|
-
var table_6 = state.
|
|
3921
|
+
var this_11 = this.l9z_1;
|
|
3922
|
+
var table_6 = state.w6r();
|
|
3913
3923
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3914
3924
|
var tableId_3 = table_6.id;
|
|
3915
3925
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -3945,7 +3955,7 @@
|
|
|
3945
3955
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3946
3956
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3947
3957
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3948
|
-
var tmp0_aid_3 = this_11.
|
|
3958
|
+
var tmp0_aid_3 = this_11.k9z_1.c6i();
|
|
3949
3959
|
// Inline function 'kotlin.collections.map' call
|
|
3950
3960
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3951
3961
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -3958,7 +3968,7 @@
|
|
|
3958
3968
|
}
|
|
3959
3969
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
3960
3970
|
var tmp_0;
|
|
3961
|
-
if (this.
|
|
3971
|
+
if (this.l9z_1.j9z_1.supportBackwardActions && getPlayer(state.w6r().players, sendToPlayer_8.r7e_1).t6x_1.x6x_1) {
|
|
3962
3972
|
tmp_0 = null;
|
|
3963
3973
|
} else {
|
|
3964
3974
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -3976,79 +3986,79 @@
|
|
|
3976
3986
|
} else {
|
|
3977
3987
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
3978
3988
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3979
|
-
var this_12 = this.
|
|
3980
|
-
var table_7 = state.
|
|
3981
|
-
var exceptPlayerId = this.
|
|
3989
|
+
var this_12 = this.l9z_1;
|
|
3990
|
+
var table_7 = state.w6r();
|
|
3991
|
+
var exceptPlayerId = this.l9z_1.j9z_1.supportBackwardActions ? action_0.n8z_1 : null;
|
|
3982
3992
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3983
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
3993
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.k9z_1.c6i(), table_7.id, exceptPlayerId);
|
|
3984
3994
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
3985
3995
|
tmp = listOfNotNull(tmp$ret$94);
|
|
3986
3996
|
} else {
|
|
3987
3997
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
3988
3998
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3989
|
-
var this_13 = this.
|
|
3990
|
-
var table_8 = state.
|
|
3991
|
-
var exceptPlayerId_0 = this.
|
|
3999
|
+
var this_13 = this.l9z_1;
|
|
4000
|
+
var table_8 = state.w6r();
|
|
4001
|
+
var exceptPlayerId_0 = this.l9z_1.j9z_1.supportBackwardActions ? action_0.j8u_1 : null;
|
|
3992
4002
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3993
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4003
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.k9z_1.c6i(), table_8.id, exceptPlayerId_0);
|
|
3994
4004
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
3995
4005
|
tmp = listOfNotNull(tmp$ret$96);
|
|
3996
4006
|
} else {
|
|
3997
4007
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
3998
4008
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3999
|
-
var this_14 = this.
|
|
4000
|
-
var table_9 = state.
|
|
4009
|
+
var this_14 = this.l9z_1;
|
|
4010
|
+
var table_9 = state.w6r();
|
|
4001
4011
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4002
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4012
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.k9z_1.c6i(), table_9.id, null);
|
|
4003
4013
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4004
4014
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4005
4015
|
} else {
|
|
4006
4016
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4007
4017
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4008
|
-
var this_15 = this.
|
|
4009
|
-
var table_10 = state.
|
|
4010
|
-
var exceptPlayerId_1 = this.
|
|
4018
|
+
var this_15 = this.l9z_1;
|
|
4019
|
+
var table_10 = state.w6r();
|
|
4020
|
+
var exceptPlayerId_1 = this.l9z_1.j9z_1.supportBackwardActions ? action_0.t8z_1 : null;
|
|
4011
4021
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4012
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4022
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.k9z_1.c6i(), table_10.id, exceptPlayerId_1);
|
|
4013
4023
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4014
4024
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4015
4025
|
} else {
|
|
4016
4026
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4017
4027
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4018
|
-
var this_16 = this.
|
|
4019
|
-
var table_11 = state.
|
|
4020
|
-
var exceptPlayerId_2 = this.
|
|
4028
|
+
var this_16 = this.l9z_1;
|
|
4029
|
+
var table_11 = state.w6r();
|
|
4030
|
+
var exceptPlayerId_2 = this.l9z_1.j9z_1.supportBackwardActions ? action_0.o8u_1 : null;
|
|
4021
4031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4022
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4032
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.k9z_1.c6i(), table_11.id, exceptPlayerId_2);
|
|
4023
4033
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4024
4034
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4025
4035
|
} else {
|
|
4026
4036
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4027
4037
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4028
|
-
var this_17 = this.
|
|
4029
|
-
var table_12 = state.
|
|
4038
|
+
var this_17 = this.l9z_1;
|
|
4039
|
+
var table_12 = state.w6r();
|
|
4030
4040
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4031
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4041
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.k9z_1.c6i(), table_12.id, null);
|
|
4032
4042
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4033
4043
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4034
4044
|
} else {
|
|
4035
4045
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4036
4046
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4037
|
-
var this_18 = this.
|
|
4038
|
-
var table_13 = state.
|
|
4047
|
+
var this_18 = this.l9z_1;
|
|
4048
|
+
var table_13 = state.w6r();
|
|
4039
4049
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4040
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4050
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.k9z_1.c6i(), table_13.id, null);
|
|
4041
4051
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4042
4052
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4043
4053
|
} else {
|
|
4044
4054
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4045
|
-
var message = action_0.
|
|
4055
|
+
var message = action_0.x8z_1;
|
|
4046
4056
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4047
|
-
var this_19 = this.
|
|
4048
|
-
var table_14 = state.
|
|
4057
|
+
var this_19 = this.l9z_1;
|
|
4058
|
+
var table_14 = state.w6r();
|
|
4049
4059
|
var tmp_1;
|
|
4050
4060
|
var tmp_2;
|
|
4051
|
-
if (this.
|
|
4061
|
+
if (this.l9z_1.j9z_1.supportBackwardActions) {
|
|
4052
4062
|
tmp_2 = isInterface(message, UserMessage);
|
|
4053
4063
|
} else {
|
|
4054
4064
|
tmp_2 = false;
|
|
@@ -4060,17 +4070,17 @@
|
|
|
4060
4070
|
}
|
|
4061
4071
|
var exceptPlayerId_3 = tmp_1;
|
|
4062
4072
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4063
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4073
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.k9z_1.c6i(), table_14.id, exceptPlayerId_3);
|
|
4064
4074
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4065
4075
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4066
4076
|
} else {
|
|
4067
4077
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4068
4078
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4069
|
-
var this_20 = this.
|
|
4070
|
-
var table_15 = state.
|
|
4079
|
+
var this_20 = this.l9z_1;
|
|
4080
|
+
var table_15 = state.w6r();
|
|
4071
4081
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4072
4082
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4073
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4083
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.k9z_1.c6i(), table_15.id, exceptPlayerId_4);
|
|
4074
4084
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4075
4085
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4076
4086
|
} else {
|
|
@@ -4104,14 +4114,14 @@
|
|
|
4104
4114
|
}
|
|
4105
4115
|
next(action_0);
|
|
4106
4116
|
};
|
|
4107
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
4108
|
-
return this.
|
|
4117
|
+
protoOf(_no_name_provided__qut3iv_3).y6j = function (store, next, action) {
|
|
4118
|
+
return this.q6l(store, next, action);
|
|
4109
4119
|
};
|
|
4110
4120
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4111
|
-
this.
|
|
4112
|
-
this.
|
|
4121
|
+
this.j9z_1 = logicConfig;
|
|
4122
|
+
this.k9z_1 = idsProvider;
|
|
4113
4123
|
}
|
|
4114
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
4124
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).u93 = function () {
|
|
4115
4125
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
4116
4126
|
return new _no_name_provided__qut3iv_3(this);
|
|
4117
4127
|
};
|
|
@@ -4120,8 +4130,8 @@
|
|
|
4120
4130
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4121
4131
|
}
|
|
4122
4132
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4123
|
-
this.
|
|
4124
|
-
this.
|
|
4133
|
+
this.u9z_1 = $provider;
|
|
4134
|
+
this.v9z_1 = $action;
|
|
4125
4135
|
CoroutineImpl.call(this, resultContinuation);
|
|
4126
4136
|
}
|
|
4127
4137
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, $completion) {
|
|
@@ -4142,7 +4152,7 @@
|
|
|
4142
4152
|
case 0:
|
|
4143
4153
|
this.g9_1 = 2;
|
|
4144
4154
|
this.f9_1 = 1;
|
|
4145
|
-
suspendResult = this.
|
|
4155
|
+
suspendResult = this.u9z_1.e9w(this.v9z_1, this);
|
|
4146
4156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4147
4157
|
return suspendResult;
|
|
4148
4158
|
}
|
|
@@ -4165,8 +4175,8 @@
|
|
|
4165
4175
|
while (true);
|
|
4166
4176
|
};
|
|
4167
4177
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).m1e = function ($this$launchDefault, completion) {
|
|
4168
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4169
|
-
i.
|
|
4178
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.u9z_1, this.v9z_1, completion);
|
|
4179
|
+
i.w9z_1 = $this$launchDefault;
|
|
4170
4180
|
return i;
|
|
4171
4181
|
};
|
|
4172
4182
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4178,20 +4188,20 @@
|
|
|
4178
4188
|
return l;
|
|
4179
4189
|
}
|
|
4180
4190
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4181
|
-
this.
|
|
4182
|
-
this.
|
|
4191
|
+
this.x9z_1 = $asyncProvider;
|
|
4192
|
+
this.y9z_1 = $provider;
|
|
4183
4193
|
}
|
|
4184
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4194
|
+
protoOf(_no_name_provided__qut3iv_4).z6j = function (action) {
|
|
4185
4195
|
return action instanceof ToClientAction;
|
|
4186
4196
|
};
|
|
4187
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4197
|
+
protoOf(_no_name_provided__qut3iv_4).q6l = function (store, next, action) {
|
|
4188
4198
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4189
4199
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4190
|
-
this.
|
|
4200
|
+
this.x9z_1.z6g(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.y9z_1, action_0, null));
|
|
4191
4201
|
next(action_0);
|
|
4192
4202
|
};
|
|
4193
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4194
|
-
return this.
|
|
4203
|
+
protoOf(_no_name_provided__qut3iv_4).y6j = function (store, next, action) {
|
|
4204
|
+
return this.q6l(store, next, action);
|
|
4195
4205
|
};
|
|
4196
4206
|
function serverConfigReducer() {
|
|
4197
4207
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -4199,96 +4209,96 @@
|
|
|
4199
4209
|
}
|
|
4200
4210
|
function _no_name_provided__qut3iv_5() {
|
|
4201
4211
|
}
|
|
4202
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4212
|
+
protoOf(_no_name_provided__qut3iv_5).z6j = function (action) {
|
|
4203
4213
|
return action instanceof UpdateServerConfigAction;
|
|
4204
4214
|
};
|
|
4205
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4215
|
+
protoOf(_no_name_provided__qut3iv_5).c9b = function (state, action) {
|
|
4206
4216
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4207
4217
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4208
|
-
return state.
|
|
4218
|
+
return state.o8x(VOID, get_serverStatePayload_0(state).z9z(action_0.q9y_1));
|
|
4209
4219
|
};
|
|
4210
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4211
|
-
return this.
|
|
4220
|
+
protoOf(_no_name_provided__qut3iv_5).r6l = function (state, action) {
|
|
4221
|
+
return this.c9b((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4212
4222
|
};
|
|
4213
4223
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
4214
4224
|
return function (it) {
|
|
4215
4225
|
var tmp = Companion_instance_1;
|
|
4216
4226
|
var tmp_0;
|
|
4217
4227
|
if (it.isBot) {
|
|
4218
|
-
tmp_0 = Companion_instance_2.
|
|
4228
|
+
tmp_0 = Companion_instance_2.g6c(PlayerConnectionState_LEFT_getInstance());
|
|
4219
4229
|
} else {
|
|
4220
4230
|
var tmp_1 = Companion_instance_2;
|
|
4221
4231
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
4222
4232
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4223
4233
|
Companion_getInstance();
|
|
4224
|
-
var this_0 = $action.
|
|
4234
|
+
var this_0 = $action.m8y_1.timeoutTimeMillis;
|
|
4225
4235
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4226
|
-
tmp_0 = tmp_1.
|
|
4236
|
+
tmp_0 = tmp_1.f6c(tmp_2, tmp$ret$0);
|
|
4227
4237
|
}
|
|
4228
|
-
return tmp.
|
|
4238
|
+
return tmp.n6d(tmp_0);
|
|
4229
4239
|
};
|
|
4230
4240
|
}
|
|
4231
4241
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4232
4242
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4233
|
-
this.
|
|
4243
|
+
this.ca0_1 = logger;
|
|
4234
4244
|
}
|
|
4235
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4236
|
-
var serverState = get_serverStatePayloadOrNull(state.
|
|
4245
|
+
protoOf(ServerMechanicLifecycleReducer).o9c = function (state, action) {
|
|
4246
|
+
var serverState = get_serverStatePayloadOrNull(state.v6q_1);
|
|
4237
4247
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4238
|
-
var tmp0_$this = this.
|
|
4239
|
-
var tmp1_tableId = action.
|
|
4240
|
-
var tmp2_gameId = action.
|
|
4241
|
-
var tmp3_version = action.
|
|
4242
|
-
var tmp4_config = action.
|
|
4243
|
-
var tmp5_users = action.
|
|
4248
|
+
var tmp0_$this = this.p9c_1;
|
|
4249
|
+
var tmp1_tableId = action.n8y_1;
|
|
4250
|
+
var tmp2_gameId = action.n8y_1;
|
|
4251
|
+
var tmp3_version = action.o8y_1;
|
|
4252
|
+
var tmp4_config = action.m8y_1;
|
|
4253
|
+
var tmp5_users = action.q8y_1;
|
|
4244
4254
|
var tmp6_spectators = action.spectators;
|
|
4245
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
4246
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
4255
|
+
var tmp7_gameCreatorPlayerId = action.p8y_1;
|
|
4256
|
+
var tmp9_tableOrNull = tmp0_$this.u9d(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
4247
4257
|
var tmp;
|
|
4248
4258
|
if (serverState == null) {
|
|
4249
|
-
this.
|
|
4250
|
-
tmp = Companion_instance_10.
|
|
4259
|
+
this.ca0_1.w(VOID, 'ServerPayload is not onStart');
|
|
4260
|
+
tmp = Companion_instance_10.w9v();
|
|
4251
4261
|
} else {
|
|
4252
4262
|
tmp = serverState;
|
|
4253
4263
|
}
|
|
4254
4264
|
var tmp10_payload = tmp;
|
|
4255
|
-
return state.
|
|
4265
|
+
return state.o8x(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4256
4266
|
};
|
|
4257
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4267
|
+
protoOf(ServerMechanicLifecycleReducer).m9c = function (state, action) {
|
|
4258
4268
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4259
|
-
var tmp2_tableOrNull = action.
|
|
4269
|
+
var tmp2_tableOrNull = action.t8y_1;
|
|
4260
4270
|
var tmp = Companion_instance_10;
|
|
4261
|
-
var tmp_0 = get_serverStatePayload_0(state).
|
|
4262
|
-
var tmp_1 = action.
|
|
4271
|
+
var tmp_0 = get_serverStatePayload_0(state).f9v_1;
|
|
4272
|
+
var tmp_1 = action.u8y_1;
|
|
4263
4273
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
4264
|
-
var tmp3_payload = tmp.
|
|
4265
|
-
return state.
|
|
4274
|
+
var tmp3_payload = tmp.da0(tmp_0.i9v(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w69_1));
|
|
4275
|
+
return state.o8x(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
4266
4276
|
};
|
|
4267
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4268
|
-
this.
|
|
4277
|
+
protoOf(ServerMechanicLifecycleReducer).n9c = function (state, action) {
|
|
4278
|
+
this.q9c_1.i5r(action.previousGameId);
|
|
4269
4279
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4270
|
-
var tmp1_tableOrNull = this.
|
|
4271
|
-
return state.
|
|
4280
|
+
var tmp1_tableOrNull = this.p9c_1.v9d(state.w6r(), action.gameId);
|
|
4281
|
+
return state.o8x(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
4272
4282
|
};
|
|
4273
4283
|
function spectatorsReducer(logger) {
|
|
4274
4284
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
4275
4285
|
return new _no_name_provided__qut3iv_6(logger);
|
|
4276
4286
|
}
|
|
4277
4287
|
function _no_name_provided__qut3iv_6($logger) {
|
|
4278
|
-
this.
|
|
4288
|
+
this.ea0_1 = $logger;
|
|
4279
4289
|
}
|
|
4280
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4290
|
+
protoOf(_no_name_provided__qut3iv_6).z6j = function (action) {
|
|
4281
4291
|
return isInterface(action, SpectatorsAction);
|
|
4282
4292
|
};
|
|
4283
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4293
|
+
protoOf(_no_name_provided__qut3iv_6).c9b = function (state, action) {
|
|
4284
4294
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
4285
4295
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
4286
|
-
var table = state.
|
|
4296
|
+
var table = state.w6r();
|
|
4287
4297
|
var tmp;
|
|
4288
4298
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4289
4299
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4290
4300
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4291
|
-
var this_0 = action_0.
|
|
4301
|
+
var this_0 = action_0.r9y_1;
|
|
4292
4302
|
var destination = ArrayList_init_$Create$_0();
|
|
4293
4303
|
// Inline function 'kotlin.collections.forEach' call
|
|
4294
4304
|
var tmp0_iterator = this_0.j();
|
|
@@ -4296,7 +4306,7 @@
|
|
|
4296
4306
|
var element = tmp0_iterator.l();
|
|
4297
4307
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4298
4308
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
4299
|
-
var tmp0_safe_receiver = singleOrNull(filterByPlayerId(table.spectators, element.
|
|
4309
|
+
var tmp0_safe_receiver = singleOrNull(filterByPlayerId(table.spectators, element.e6b_1));
|
|
4300
4310
|
if (tmp0_safe_receiver == null)
|
|
4301
4311
|
null;
|
|
4302
4312
|
else {
|
|
@@ -4310,10 +4320,10 @@
|
|
|
4310
4320
|
var tmp_0;
|
|
4311
4321
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4312
4322
|
if (!sameSpectators.p()) {
|
|
4313
|
-
this.
|
|
4323
|
+
this.ea0_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4314
4324
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4315
4325
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4316
|
-
var this_1 = action_0.
|
|
4326
|
+
var this_1 = action_0.r9y_1;
|
|
4317
4327
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4318
4328
|
var tmp0_iterator_0 = this_1.j();
|
|
4319
4329
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4336,7 +4346,7 @@
|
|
|
4336
4346
|
while (tmp0_iterator_1.k()) {
|
|
4337
4347
|
var element_1 = tmp0_iterator_1.l();
|
|
4338
4348
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4339
|
-
if (element_0.
|
|
4349
|
+
if (element_0.e6b_1 === element_1.playerId) {
|
|
4340
4350
|
tmp$ret$5 = true;
|
|
4341
4351
|
break $l$block_0;
|
|
4342
4352
|
}
|
|
@@ -4349,7 +4359,7 @@
|
|
|
4349
4359
|
}
|
|
4350
4360
|
tmp_0 = destination_0;
|
|
4351
4361
|
} else {
|
|
4352
|
-
tmp_0 = action_0.
|
|
4362
|
+
tmp_0 = action_0.r9y_1;
|
|
4353
4363
|
}
|
|
4354
4364
|
var this_2 = tmp_0;
|
|
4355
4365
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4362,12 +4372,12 @@
|
|
|
4362
4372
|
destination_1.e(tmp$ret$10);
|
|
4363
4373
|
}
|
|
4364
4374
|
var spectatorsToAdd = toSet(destination_1);
|
|
4365
|
-
tmp = state.
|
|
4375
|
+
tmp = state.o8x(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
4366
4376
|
} else {
|
|
4367
4377
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4368
4378
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4369
4379
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4370
|
-
var this_3 = action_0.
|
|
4380
|
+
var this_3 = action_0.s9y_1;
|
|
4371
4381
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4372
4382
|
// Inline function 'kotlin.collections.forEach' call
|
|
4373
4383
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4375,7 +4385,7 @@
|
|
|
4375
4385
|
var element_2 = tmp0_iterator_3.l();
|
|
4376
4386
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4377
4387
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
4378
|
-
var tmp0_safe_receiver_0 = singleOrNull(filterByPlayerId(table.spectators, element_2.
|
|
4388
|
+
var tmp0_safe_receiver_0 = singleOrNull(filterByPlayerId(table.spectators, element_2.e6b_1));
|
|
4379
4389
|
if (tmp0_safe_receiver_0 == null)
|
|
4380
4390
|
null;
|
|
4381
4391
|
else {
|
|
@@ -4388,10 +4398,10 @@
|
|
|
4388
4398
|
var tmp_2;
|
|
4389
4399
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4390
4400
|
if (!sameSpectators_0.p()) {
|
|
4391
|
-
this.
|
|
4401
|
+
this.ea0_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4392
4402
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4393
4403
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4394
|
-
var this_4 = action_0.
|
|
4404
|
+
var this_4 = action_0.s9y_1;
|
|
4395
4405
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4396
4406
|
var tmp0_iterator_4 = this_4.j();
|
|
4397
4407
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4414,7 +4424,7 @@
|
|
|
4414
4424
|
while (tmp0_iterator_5.k()) {
|
|
4415
4425
|
var element_4 = tmp0_iterator_5.l();
|
|
4416
4426
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4417
|
-
if (element_3.
|
|
4427
|
+
if (element_3.e6b_1 === element_4.playerId) {
|
|
4418
4428
|
tmp$ret$18 = true;
|
|
4419
4429
|
break $l$block_2;
|
|
4420
4430
|
}
|
|
@@ -4427,7 +4437,7 @@
|
|
|
4427
4437
|
}
|
|
4428
4438
|
tmp_2 = destination_3;
|
|
4429
4439
|
} else {
|
|
4430
|
-
tmp_2 = action_0.
|
|
4440
|
+
tmp_2 = action_0.s9y_1;
|
|
4431
4441
|
}
|
|
4432
4442
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4433
4443
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4455,7 +4465,7 @@
|
|
|
4455
4465
|
while (tmp0_iterator_7.k()) {
|
|
4456
4466
|
var element_6 = tmp0_iterator_7.l();
|
|
4457
4467
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4458
|
-
if (element_5.playerId === element_6.
|
|
4468
|
+
if (element_5.playerId === element_6.e6b_1) {
|
|
4459
4469
|
tmp$ret$23 = true;
|
|
4460
4470
|
break $l$block_4;
|
|
4461
4471
|
}
|
|
@@ -4466,40 +4476,40 @@
|
|
|
4466
4476
|
destination_4.e(element_5);
|
|
4467
4477
|
}
|
|
4468
4478
|
}
|
|
4469
|
-
tmp = state.
|
|
4479
|
+
tmp = state.o8x(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
4470
4480
|
} else {
|
|
4471
4481
|
noWhenBranchMatchedException();
|
|
4472
4482
|
}
|
|
4473
4483
|
}
|
|
4474
4484
|
return tmp;
|
|
4475
4485
|
};
|
|
4476
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4477
|
-
return this.
|
|
4486
|
+
protoOf(_no_name_provided__qut3iv_6).r6l = function (state, action) {
|
|
4487
|
+
return this.c9b((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4478
4488
|
};
|
|
4479
4489
|
function Companion_2() {
|
|
4480
4490
|
}
|
|
4481
|
-
protoOf(Companion_2).
|
|
4491
|
+
protoOf(Companion_2).da0 = function (config) {
|
|
4482
4492
|
return new ServerStatePayload(config);
|
|
4483
4493
|
};
|
|
4484
|
-
protoOf(Companion_2).
|
|
4485
|
-
config = config === VOID ? Companion_instance_8.
|
|
4486
|
-
return $super === VOID ? this.
|
|
4494
|
+
protoOf(Companion_2).w9v = function (config, $super) {
|
|
4495
|
+
config = config === VOID ? Companion_instance_8.a9w(null) : config;
|
|
4496
|
+
return $super === VOID ? this.da0(config) : $super.da0.call(this, config);
|
|
4487
4497
|
};
|
|
4488
4498
|
var Companion_instance_10;
|
|
4489
4499
|
function Companion_getInstance_3() {
|
|
4490
4500
|
return Companion_instance_10;
|
|
4491
4501
|
}
|
|
4492
4502
|
function ServerStatePayload(config) {
|
|
4493
|
-
this.
|
|
4503
|
+
this.f9v_1 = config;
|
|
4494
4504
|
}
|
|
4495
|
-
protoOf(ServerStatePayload).
|
|
4505
|
+
protoOf(ServerStatePayload).z9z = function (config) {
|
|
4496
4506
|
return new ServerStatePayload(config);
|
|
4497
4507
|
};
|
|
4498
4508
|
protoOf(ServerStatePayload).toString = function () {
|
|
4499
|
-
return 'ServerStatePayload(config=' + this.
|
|
4509
|
+
return 'ServerStatePayload(config=' + this.f9v_1.toString() + ')';
|
|
4500
4510
|
};
|
|
4501
4511
|
protoOf(ServerStatePayload).hashCode = function () {
|
|
4502
|
-
return this.
|
|
4512
|
+
return this.f9v_1.hashCode();
|
|
4503
4513
|
};
|
|
4504
4514
|
protoOf(ServerStatePayload).equals = function (other) {
|
|
4505
4515
|
if (this === other)
|
|
@@ -4507,7 +4517,7 @@
|
|
|
4507
4517
|
if (!(other instanceof ServerStatePayload))
|
|
4508
4518
|
return false;
|
|
4509
4519
|
var tmp0_other_with_cast = other instanceof ServerStatePayload ? other : THROW_CCE();
|
|
4510
|
-
if (!this.
|
|
4520
|
+
if (!this.f9v_1.equals(tmp0_other_with_cast.f9v_1))
|
|
4511
4521
|
return false;
|
|
4512
4522
|
return true;
|
|
4513
4523
|
};
|
|
@@ -4519,7 +4529,7 @@
|
|
|
4519
4529
|
}
|
|
4520
4530
|
function get_serverStatePayload_0(_this__u8e3s4) {
|
|
4521
4531
|
// Inline function 'kotlin.requireNotNull' call
|
|
4522
|
-
var value = _this__u8e3s4.
|
|
4532
|
+
var value = _this__u8e3s4.v6q_1;
|
|
4523
4533
|
// Inline function 'kotlin.contracts.contract' call
|
|
4524
4534
|
var tmp$ret$1;
|
|
4525
4535
|
$l$block: {
|
|
@@ -4528,7 +4538,7 @@
|
|
|
4528
4538
|
if (value == null) {
|
|
4529
4539
|
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
4530
4540
|
var message = 'Required value was null.';
|
|
4531
|
-
throw IllegalArgumentException_init_$Create$(
|
|
4541
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4532
4542
|
} else {
|
|
4533
4543
|
tmp$ret$1 = value;
|
|
4534
4544
|
break $l$block;
|
|
@@ -4545,30 +4555,30 @@
|
|
|
4545
4555
|
}
|
|
4546
4556
|
function _get_logger__rkp4sl_1($this) {
|
|
4547
4557
|
// Inline function 'kotlin.getValue' call
|
|
4548
|
-
var this_0 = $this.
|
|
4558
|
+
var this_0 = $this.na0_1;
|
|
4549
4559
|
logger$factory_3();
|
|
4550
4560
|
return this_0.u();
|
|
4551
4561
|
}
|
|
4552
4562
|
function _get_di__ndbzja($this) {
|
|
4553
4563
|
// Inline function 'kotlin.getValue' call
|
|
4554
|
-
var this_0 = $this.
|
|
4564
|
+
var this_0 = $this.oa0_1;
|
|
4555
4565
|
di$factory();
|
|
4556
4566
|
return this_0.u();
|
|
4557
4567
|
}
|
|
4558
4568
|
function createDI($this, combinedLogger, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
4559
4569
|
var tmp = Companion_instance_3;
|
|
4560
|
-
return tmp.
|
|
4570
|
+
return tmp.m5y(VOID, GameServerEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, $this, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
4561
4571
|
}
|
|
4562
4572
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
4563
4573
|
return function () {
|
|
4564
4574
|
var tmp;
|
|
4565
|
-
if (this$0.
|
|
4575
|
+
if (this$0.la0_1 == null) {
|
|
4566
4576
|
tmp = null;
|
|
4567
4577
|
} else {
|
|
4568
4578
|
// Inline function 'kotlin.let' call
|
|
4569
4579
|
// Inline function 'kotlin.contracts.contract' call
|
|
4570
4580
|
// Inline function 'GameServerEngineControllerImpl.logger$delegate.<anonymous>.<anonymous>' call
|
|
4571
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4581
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.la0_1)]));
|
|
4572
4582
|
}
|
|
4573
4583
|
var tmp1_elvis_lhs = tmp;
|
|
4574
4584
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4585,38 +4595,38 @@
|
|
|
4585
4595
|
// Inline function 'org.kodein.type.generic' call
|
|
4586
4596
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4587
4597
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4588
|
-
var tmp_0 = $this$DI.
|
|
4598
|
+
var tmp_0 = $this$DI.d5y(tmp$ret$0, null, null);
|
|
4589
4599
|
// Inline function 'org.kodein.di.provider' call
|
|
4590
4600
|
var creator = GameServerEngineControllerImpl$di$delegate$lambda$lambda$lambda(this$0);
|
|
4591
|
-
var tmp_1 = $this$DI.
|
|
4601
|
+
var tmp_1 = $this$DI.g5y();
|
|
4592
4602
|
// Inline function 'org.kodein.type.generic' call
|
|
4593
4603
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4594
4604
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4595
4605
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
4596
|
-
tmp_0.
|
|
4597
|
-
$this$DI.
|
|
4598
|
-
$this$DI.
|
|
4599
|
-
$this$DI.
|
|
4606
|
+
tmp_0.b62(tmp$ret$3);
|
|
4607
|
+
$this$DI.f5y(jsonModule());
|
|
4608
|
+
$this$DI.f5y(serverHelpersModule());
|
|
4609
|
+
$this$DI.f5y(randomOrgModule(this$0.ma0_1));
|
|
4600
4610
|
return Unit_instance;
|
|
4601
4611
|
};
|
|
4602
4612
|
}
|
|
4603
4613
|
function GameServerEngineControllerImpl$di$delegate$lambda(this$0) {
|
|
4604
4614
|
return function () {
|
|
4605
4615
|
var tmp = Companion_instance_3;
|
|
4606
|
-
return tmp.
|
|
4616
|
+
return tmp.m5y(VOID, GameServerEngineControllerImpl$di$delegate$lambda$lambda(this$0));
|
|
4607
4617
|
};
|
|
4608
4618
|
}
|
|
4609
4619
|
function _no_name_provided__qut3iv_7($item) {
|
|
4610
|
-
this.
|
|
4620
|
+
this.ua0_1 = $item;
|
|
4611
4621
|
}
|
|
4612
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4622
|
+
protoOf(_no_name_provided__qut3iv_7).z6j = function (action) {
|
|
4613
4623
|
return isInterface(action, Action);
|
|
4614
4624
|
};
|
|
4615
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4616
|
-
return this.
|
|
4625
|
+
protoOf(_no_name_provided__qut3iv_7).c9b = function (state, action) {
|
|
4626
|
+
return this.ua0_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4617
4627
|
};
|
|
4618
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4619
|
-
return this.
|
|
4628
|
+
protoOf(_no_name_provided__qut3iv_7).r6l = function (state, action) {
|
|
4629
|
+
return this.c9b((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4620
4630
|
};
|
|
4621
4631
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4622
4632
|
return function ($this$singleton) {
|
|
@@ -4636,17 +4646,17 @@
|
|
|
4636
4646
|
// Inline function 'org.kodein.type.generic' call
|
|
4637
4647
|
var tmp_0 = typeToken(createKType(getKClass(FileLoggerOutput), arrayOf([]), false));
|
|
4638
4648
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4639
|
-
var tmp_1 = $this$Module.
|
|
4649
|
+
var tmp_1 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
4640
4650
|
// Inline function 'org.kodein.di.singleton' call
|
|
4641
4651
|
var creator = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput);
|
|
4642
|
-
var tmp_2 = $this$Module.
|
|
4643
|
-
var tmp_3 = $this$Module.
|
|
4644
|
-
var tmp_4 = $this$Module.
|
|
4652
|
+
var tmp_2 = $this$Module.i5y();
|
|
4653
|
+
var tmp_3 = $this$Module.g5y();
|
|
4654
|
+
var tmp_4 = $this$Module.h5y();
|
|
4645
4655
|
// Inline function 'org.kodein.type.generic' call
|
|
4646
4656
|
var tmp_5 = typeToken(createKType(getKClass(FileLoggerOutputImpl), arrayOf([]), false));
|
|
4647
4657
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4648
4658
|
var tmp$ret$3 = new Singleton(tmp_2, tmp_3, tmp_4, tmp$ret$2, null, true, creator);
|
|
4649
|
-
tmp_1.
|
|
4659
|
+
tmp_1.b62(tmp$ret$3);
|
|
4650
4660
|
tmp = Unit_instance;
|
|
4651
4661
|
}
|
|
4652
4662
|
var tmp_6;
|
|
@@ -4655,17 +4665,17 @@
|
|
|
4655
4665
|
// Inline function 'org.kodein.type.generic' call
|
|
4656
4666
|
var tmp_7 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4657
4667
|
var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
4658
|
-
var tmp_8 = $this$Module.
|
|
4668
|
+
var tmp_8 = $this$Module.d5y(tmp$ret$4, null, null);
|
|
4659
4669
|
// Inline function 'org.kodein.di.singleton' call
|
|
4660
4670
|
var creator_0 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda_0($callbackWrapperLoggerOutput);
|
|
4661
|
-
var tmp_9 = $this$Module.
|
|
4662
|
-
var tmp_10 = $this$Module.
|
|
4663
|
-
var tmp_11 = $this$Module.
|
|
4671
|
+
var tmp_9 = $this$Module.i5y();
|
|
4672
|
+
var tmp_10 = $this$Module.g5y();
|
|
4673
|
+
var tmp_11 = $this$Module.h5y();
|
|
4664
4674
|
// Inline function 'org.kodein.type.generic' call
|
|
4665
4675
|
var tmp_12 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4666
4676
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
4667
4677
|
var tmp$ret$7 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$6, null, true, creator_0);
|
|
4668
|
-
tmp_8.
|
|
4678
|
+
tmp_8.b62(tmp$ret$7);
|
|
4669
4679
|
tmp_6 = Unit_instance;
|
|
4670
4680
|
}
|
|
4671
4681
|
return Unit_instance;
|
|
@@ -4673,10 +4683,10 @@
|
|
|
4673
4683
|
}
|
|
4674
4684
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4675
4685
|
return function (it) {
|
|
4676
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4686
|
+
var tmp0_elvis_lhs = Companion_instance_4.x9f(it);
|
|
4677
4687
|
var tmp;
|
|
4678
4688
|
if (tmp0_elvis_lhs == null) {
|
|
4679
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4689
|
+
var tmp1_safe_receiver = $gameServer.o6b().u6q_1;
|
|
4680
4690
|
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
4681
4691
|
} else {
|
|
4682
4692
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4686,10 +4696,10 @@
|
|
|
4686
4696
|
}
|
|
4687
4697
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4688
4698
|
return function (it) {
|
|
4689
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4699
|
+
var tmp0_elvis_lhs = Companion_instance_5.i9e(it);
|
|
4690
4700
|
var tmp;
|
|
4691
4701
|
if (tmp0_elvis_lhs == null) {
|
|
4692
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4702
|
+
var tmp1_safe_receiver = $gameServer.o6b().u6q_1;
|
|
4693
4703
|
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
4694
4704
|
} else {
|
|
4695
4705
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4699,94 +4709,94 @@
|
|
|
4699
4709
|
}
|
|
4700
4710
|
function GameServerEngineControllerImpl$createDI$lambda($combinedLogger, $externalModule, this$0, $coreConfig, $serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares) {
|
|
4701
4711
|
return function ($this$DI) {
|
|
4702
|
-
$this$DI.
|
|
4712
|
+
$this$DI.f5y(combinedLoggerModule($combinedLogger));
|
|
4703
4713
|
var tmp0_safe_receiver = $externalModule;
|
|
4704
4714
|
if (tmp0_safe_receiver == null)
|
|
4705
4715
|
null;
|
|
4706
4716
|
else {
|
|
4707
4717
|
// Inline function 'kotlin.let' call
|
|
4708
4718
|
// Inline function 'kotlin.contracts.contract' call
|
|
4709
|
-
$this$DI.
|
|
4719
|
+
$this$DI.f5y(tmp0_safe_receiver);
|
|
4710
4720
|
}
|
|
4711
|
-
$this$DI.
|
|
4712
|
-
$this$DI.
|
|
4713
|
-
$this$DI.
|
|
4721
|
+
$this$DI.f5y(dealerModule(this$0.randomPoolProvider, this$0.ma0_1));
|
|
4722
|
+
$this$DI.f5y(coreModule($coreConfig));
|
|
4723
|
+
$this$DI.f5y(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4714
4724
|
return Unit_instance;
|
|
4715
4725
|
};
|
|
4716
4726
|
}
|
|
4717
4727
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4718
4728
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4719
4729
|
production = production === VOID ? true : production;
|
|
4720
|
-
this.
|
|
4721
|
-
this.
|
|
4722
|
-
AppEnvironment_getInstance().
|
|
4730
|
+
this.la0_1 = loggerCallback;
|
|
4731
|
+
this.ma0_1 = randomOrgConfig;
|
|
4732
|
+
AppEnvironment_getInstance().c6q(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4723
4733
|
var tmp = this;
|
|
4724
|
-
tmp.
|
|
4734
|
+
tmp.na0_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
4725
4735
|
var tmp_0 = this;
|
|
4726
|
-
tmp_0.
|
|
4736
|
+
tmp_0.oa0_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4727
4737
|
var tmp_1 = this;
|
|
4728
4738
|
// Inline function 'org.kodein.di.instance' call
|
|
4729
4739
|
var this_0 = _get_di__ndbzja(this);
|
|
4730
4740
|
// Inline function 'org.kodein.type.generic' call
|
|
4731
4741
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4732
4742
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4733
|
-
tmp_1.
|
|
4743
|
+
tmp_1.pa0_1 = Instance(this_0, tmp$ret$0, null).y63(this, parser$factory());
|
|
4734
4744
|
var tmp_3 = this;
|
|
4735
4745
|
// Inline function 'org.kodein.di.instance' call
|
|
4736
4746
|
var this_1 = _get_di__ndbzja(this);
|
|
4737
4747
|
// Inline function 'org.kodein.type.generic' call
|
|
4738
4748
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4739
4749
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4740
|
-
tmp_3.
|
|
4750
|
+
tmp_3.qa0_1 = Instance(this_1, tmp$ret$2, null).y63(this, helper$factory());
|
|
4741
4751
|
var tmp_5 = this;
|
|
4742
4752
|
// Inline function 'org.kodein.di.instance' call
|
|
4743
4753
|
var this_2 = _get_di__ndbzja(this);
|
|
4744
4754
|
// Inline function 'org.kodein.type.generic' call
|
|
4745
4755
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4746
4756
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4747
|
-
tmp_5.
|
|
4757
|
+
tmp_5.ra0_1 = Instance(this_2, tmp$ret$4, null).y63(this, resources$factory());
|
|
4748
4758
|
var tmp_7 = this;
|
|
4749
4759
|
// Inline function 'org.kodein.di.instance' call
|
|
4750
4760
|
var this_3 = _get_di__ndbzja(this);
|
|
4751
4761
|
// Inline function 'org.kodein.type.generic' call
|
|
4752
4762
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4753
4763
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4754
|
-
tmp_7.
|
|
4764
|
+
tmp_7.sa0_1 = Instance(this_3, tmp$ret$6, null).y63(this, test$factory());
|
|
4755
4765
|
var tmp_9 = this;
|
|
4756
4766
|
// Inline function 'org.kodein.di.instance' call
|
|
4757
4767
|
var this_4 = _get_di__ndbzja(this);
|
|
4758
4768
|
// Inline function 'org.kodein.type.generic' call
|
|
4759
4769
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4760
4770
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4761
|
-
tmp_9.
|
|
4771
|
+
tmp_9.ta0_1 = Instance(this_4, tmp$ret$8, null).y63(this, randomPoolProvider$factory());
|
|
4762
4772
|
}
|
|
4763
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4773
|
+
protoOf(GameServerEngineControllerImpl).fa0 = function () {
|
|
4764
4774
|
// Inline function 'kotlin.getValue' call
|
|
4765
|
-
var this_0 = this.
|
|
4775
|
+
var this_0 = this.pa0_1;
|
|
4766
4776
|
parser$factory_0();
|
|
4767
4777
|
return this_0.u();
|
|
4768
4778
|
};
|
|
4769
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4779
|
+
protoOf(GameServerEngineControllerImpl).ha0 = function () {
|
|
4770
4780
|
// Inline function 'kotlin.getValue' call
|
|
4771
|
-
var this_0 = this.
|
|
4781
|
+
var this_0 = this.qa0_1;
|
|
4772
4782
|
helper$factory_0();
|
|
4773
4783
|
return this_0.u();
|
|
4774
4784
|
};
|
|
4775
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4785
|
+
protoOf(GameServerEngineControllerImpl).ia0 = function () {
|
|
4776
4786
|
// Inline function 'kotlin.getValue' call
|
|
4777
|
-
var this_0 = this.
|
|
4787
|
+
var this_0 = this.ra0_1;
|
|
4778
4788
|
resources$factory_0();
|
|
4779
4789
|
return this_0.u();
|
|
4780
4790
|
};
|
|
4781
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4791
|
+
protoOf(GameServerEngineControllerImpl).ga0 = function () {
|
|
4782
4792
|
// Inline function 'kotlin.getValue' call
|
|
4783
|
-
var this_0 = this.
|
|
4793
|
+
var this_0 = this.sa0_1;
|
|
4784
4794
|
test$factory_0();
|
|
4785
4795
|
return this_0.u();
|
|
4786
4796
|
};
|
|
4787
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4797
|
+
protoOf(GameServerEngineControllerImpl).ja0 = function () {
|
|
4788
4798
|
// Inline function 'kotlin.getValue' call
|
|
4789
|
-
var this_0 = this.
|
|
4799
|
+
var this_0 = this.ta0_1;
|
|
4790
4800
|
randomPoolProvider$factory_0();
|
|
4791
4801
|
return this_0.u();
|
|
4792
4802
|
};
|
|
@@ -4796,7 +4806,7 @@
|
|
|
4796
4806
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4797
4807
|
return this.createGameEngineWithLogic();
|
|
4798
4808
|
};
|
|
4799
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4809
|
+
protoOf(GameServerEngineControllerImpl).ka0 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4800
4810
|
var combinedLogger = Companion_instance_6.rm();
|
|
4801
4811
|
var tmp;
|
|
4802
4812
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4806,8 +4816,8 @@
|
|
|
4806
4816
|
}
|
|
4807
4817
|
var fileLoggerOutput = tmp;
|
|
4808
4818
|
var tmp_0;
|
|
4809
|
-
if (!(this.
|
|
4810
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4819
|
+
if (!(this.la0_1 == null)) {
|
|
4820
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.la0_1));
|
|
4811
4821
|
} else {
|
|
4812
4822
|
tmp_0 = null;
|
|
4813
4823
|
}
|
|
@@ -4843,19 +4853,19 @@
|
|
|
4843
4853
|
var tmp3_externalModule = Module_init_$Create$('External Module', VOID, VOID, GameServerEngineControllerImpl$createGameEngineWithLogic$lambda(fileLoggerOutput, callbackWrapperLoggerOutput));
|
|
4844
4854
|
var di = createDI(this, combinedLogger, coreConfig, serverConfig, logicConfig, tmp0_botConfig, dealerConfig, tmp1_externalReducers, tmp2_externalMiddlewares, tmp3_externalModule);
|
|
4845
4855
|
// Inline function 'org.kodein.di.instance' call
|
|
4846
|
-
var tmp_1 = get_direct(di).
|
|
4856
|
+
var tmp_1 = get_direct(di).q5z();
|
|
4847
4857
|
// Inline function 'org.kodein.type.generic' call
|
|
4848
4858
|
var tmp_2 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
4849
4859
|
var tmp$ret$7 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4850
|
-
var gameServer = tmp_1.
|
|
4860
|
+
var gameServer = tmp_1.p5z(tmp$ret$7, null);
|
|
4851
4861
|
if (!(fileLoggerOutput == null)) {
|
|
4852
4862
|
var tmp_3 = fileLoggerOutput;
|
|
4853
|
-
tmp_3.
|
|
4863
|
+
tmp_3.m9f_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4854
4864
|
combinedLogger.tm(fileLoggerOutput);
|
|
4855
4865
|
}
|
|
4856
4866
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4857
4867
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4858
|
-
tmp_4.
|
|
4868
|
+
tmp_4.k9e_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4859
4869
|
combinedLogger.tm(callbackWrapperLoggerOutput);
|
|
4860
4870
|
}
|
|
4861
4871
|
return gameServer;
|
|
@@ -4924,13 +4934,13 @@
|
|
|
4924
4934
|
}
|
|
4925
4935
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4926
4936
|
// Inline function 'kotlin.getValue' call
|
|
4927
|
-
var this_0 = $this.
|
|
4937
|
+
var this_0 = $this.xa0_1;
|
|
4928
4938
|
playerAnswerInteractor$factory_0();
|
|
4929
4939
|
return this_0.u();
|
|
4930
4940
|
}
|
|
4931
4941
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4932
4942
|
return function ($this$singleton) {
|
|
4933
|
-
return this$0.
|
|
4943
|
+
return this$0.va0_1;
|
|
4934
4944
|
};
|
|
4935
4945
|
}
|
|
4936
4946
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4939,19 +4949,19 @@
|
|
|
4939
4949
|
// Inline function 'org.kodein.type.generic' call
|
|
4940
4950
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4941
4951
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4942
|
-
var tmp_0 = $this$DI.
|
|
4952
|
+
var tmp_0 = $this$DI.d5y(tmp$ret$0, null, null);
|
|
4943
4953
|
// Inline function 'org.kodein.di.singleton' call
|
|
4944
4954
|
var creator = TestHelperImpl$di$lambda$lambda(this$0);
|
|
4945
|
-
var tmp_1 = $this$DI.
|
|
4946
|
-
var tmp_2 = $this$DI.
|
|
4947
|
-
var tmp_3 = $this$DI.
|
|
4955
|
+
var tmp_1 = $this$DI.i5y();
|
|
4956
|
+
var tmp_2 = $this$DI.g5y();
|
|
4957
|
+
var tmp_3 = $this$DI.h5y();
|
|
4948
4958
|
// Inline function 'org.kodein.type.generic' call
|
|
4949
4959
|
var tmp_4 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4950
4960
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4951
4961
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
4952
|
-
tmp_0.
|
|
4953
|
-
$this$DI.
|
|
4954
|
-
$this$DI.
|
|
4962
|
+
tmp_0.b62(tmp$ret$3);
|
|
4963
|
+
$this$DI.f5y(jsonModule(emptyList()));
|
|
4964
|
+
$this$DI.f5y(get_botGameModule());
|
|
4955
4965
|
return Unit_instance;
|
|
4956
4966
|
};
|
|
4957
4967
|
}
|
|
@@ -4959,20 +4969,20 @@
|
|
|
4959
4969
|
return emptyMap();
|
|
4960
4970
|
}
|
|
4961
4971
|
function TestHelperImpl(logger) {
|
|
4962
|
-
this.
|
|
4972
|
+
this.va0_1 = logger;
|
|
4963
4973
|
var tmp = this;
|
|
4964
4974
|
var tmp_0 = Companion_instance_3;
|
|
4965
|
-
tmp.
|
|
4975
|
+
tmp.wa0_1 = tmp_0.m5y(VOID, TestHelperImpl$di$lambda(this));
|
|
4966
4976
|
var tmp_1 = this;
|
|
4967
4977
|
// Inline function 'org.kodein.di.instance' call
|
|
4968
|
-
var this_0 = this.
|
|
4978
|
+
var this_0 = this.wa0_1;
|
|
4969
4979
|
// Inline function 'org.kodein.type.generic' call
|
|
4970
4980
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4971
4981
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4972
|
-
tmp_1.
|
|
4982
|
+
tmp_1.xa0_1 = Instance(this_0, tmp$ret$0, null).y63(this, playerAnswerInteractor$factory());
|
|
4973
4983
|
}
|
|
4974
4984
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4975
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
4985
|
+
return _get_playerAnswerInteractor__msggz1(this).n8n(playerId, table, botConfig);
|
|
4976
4986
|
};
|
|
4977
4987
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4978
4988
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4980,7 +4990,7 @@
|
|
|
4980
4990
|
var tmp$ret$0;
|
|
4981
4991
|
$l$block_0: {
|
|
4982
4992
|
// Inline function 'kotlin.collections.any' call
|
|
4983
|
-
var this_0 = mechanicAction.
|
|
4993
|
+
var this_0 = mechanicAction.g91();
|
|
4984
4994
|
var tmp;
|
|
4985
4995
|
if (isInterface(this_0, Collection)) {
|
|
4986
4996
|
tmp = this_0.p();
|
|
@@ -5013,7 +5023,7 @@
|
|
|
5013
5023
|
var tmp$ret$0;
|
|
5014
5024
|
$l$block_0: {
|
|
5015
5025
|
// Inline function 'kotlin.collections.any' call
|
|
5016
|
-
var this_0 = action.
|
|
5026
|
+
var this_0 = action.g91();
|
|
5017
5027
|
var tmp;
|
|
5018
5028
|
if (isInterface(this_0, Collection)) {
|
|
5019
5029
|
tmp = this_0.p();
|
|
@@ -5055,37 +5065,37 @@
|
|
|
5055
5065
|
return Module_init_$Create$('Server helpers Module', VOID, VOID, serverHelpersModule$lambda);
|
|
5056
5066
|
}
|
|
5057
5067
|
function serverHelpersModule$lambda($this$Module) {
|
|
5058
|
-
$this$Module.
|
|
5059
|
-
$this$Module.
|
|
5068
|
+
$this$Module.f5y(get_ratingModule());
|
|
5069
|
+
$this$Module.f5y(engineHelpersModule());
|
|
5060
5070
|
// Inline function 'org.kodein.di.bind' call
|
|
5061
5071
|
// Inline function 'org.kodein.type.generic' call
|
|
5062
5072
|
var tmp = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
5063
5073
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
5064
|
-
var tmp_0 = $this$Module.
|
|
5074
|
+
var tmp_0 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
5065
5075
|
// Inline function 'org.kodein.di.singleton' call
|
|
5066
5076
|
var creator = serverHelpersModule$lambda$lambda;
|
|
5067
|
-
var tmp_1 = $this$Module.
|
|
5068
|
-
var tmp_2 = $this$Module.
|
|
5069
|
-
var tmp_3 = $this$Module.
|
|
5077
|
+
var tmp_1 = $this$Module.i5y();
|
|
5078
|
+
var tmp_2 = $this$Module.g5y();
|
|
5079
|
+
var tmp_3 = $this$Module.h5y();
|
|
5070
5080
|
// Inline function 'org.kodein.type.generic' call
|
|
5071
5081
|
var tmp_4 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
5072
5082
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
5073
5083
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
5074
|
-
tmp_0.
|
|
5084
|
+
tmp_0.b62(tmp$ret$3);
|
|
5075
5085
|
return Unit_instance;
|
|
5076
5086
|
}
|
|
5077
5087
|
function serverHelpersModule$lambda$lambda($this$singleton) {
|
|
5078
5088
|
// Inline function 'org.kodein.di.instance' call
|
|
5079
|
-
var tmp = $this$singleton.
|
|
5089
|
+
var tmp = $this$singleton.q5z();
|
|
5080
5090
|
// Inline function 'org.kodein.type.generic' call
|
|
5081
5091
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
5082
5092
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
5083
|
-
var tmp$ret$1 = tmp.
|
|
5093
|
+
var tmp$ret$1 = tmp.p5z(tmp$ret$0, null);
|
|
5084
5094
|
return new TestHelperImpl(tmp$ret$1);
|
|
5085
5095
|
}
|
|
5086
5096
|
//region block: post-declaration
|
|
5087
5097
|
defineProp(protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1), 'playerId', function () {
|
|
5088
|
-
return this.
|
|
5098
|
+
return this.p6a();
|
|
5089
5099
|
});
|
|
5090
5100
|
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
5091
5101
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
@@ -5094,41 +5104,41 @@
|
|
|
5094
5104
|
return this.f5l();
|
|
5095
5105
|
});
|
|
5096
5106
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
5097
|
-
return this.
|
|
5107
|
+
return this.w6r();
|
|
5098
5108
|
});
|
|
5099
5109
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
5100
|
-
return this.
|
|
5110
|
+
return this.x6r();
|
|
5101
5111
|
});
|
|
5102
5112
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
5103
|
-
return this.
|
|
5113
|
+
return this.y6r();
|
|
5104
5114
|
});
|
|
5105
|
-
protoOf(UpdateServerConfigAction).
|
|
5115
|
+
protoOf(UpdateServerConfigAction).q6j = get_actionTag;
|
|
5106
5116
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
5107
|
-
return this.
|
|
5117
|
+
return this.q6j();
|
|
5108
5118
|
});
|
|
5109
|
-
protoOf(AddSpectatorsAction).
|
|
5119
|
+
protoOf(AddSpectatorsAction).q6j = get_actionTag;
|
|
5110
5120
|
defineProp(protoOf(AddSpectatorsAction), 'actionTag', function () {
|
|
5111
|
-
return this.
|
|
5121
|
+
return this.q6j();
|
|
5112
5122
|
});
|
|
5113
|
-
protoOf(RemoveSpectatorsAction).
|
|
5123
|
+
protoOf(RemoveSpectatorsAction).q6j = get_actionTag;
|
|
5114
5124
|
defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
|
|
5115
|
-
return this.
|
|
5125
|
+
return this.q6j();
|
|
5116
5126
|
});
|
|
5117
5127
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5118
5128
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5119
|
-
return this.
|
|
5129
|
+
return this.fa0();
|
|
5120
5130
|
});
|
|
5121
5131
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5122
|
-
return this.
|
|
5132
|
+
return this.ha0();
|
|
5123
5133
|
});
|
|
5124
5134
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5125
|
-
return this.
|
|
5135
|
+
return this.ia0();
|
|
5126
5136
|
});
|
|
5127
5137
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5128
|
-
return this.
|
|
5138
|
+
return this.ga0();
|
|
5129
5139
|
});
|
|
5130
5140
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5131
|
-
return this.
|
|
5141
|
+
return this.ja0();
|
|
5132
5142
|
});
|
|
5133
5143
|
//endregion
|
|
5134
5144
|
//region block: init
|