raspberry_games_server_game_logic 1.8.300 → 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 +10912 -10899
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +880 -869
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +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,31 +76,32 @@
|
|
|
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
|
|
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;
|
|
80
83
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
81
84
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
82
85
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
|
|
83
86
|
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
84
87
|
var firstOrNull = kotlin_kotlin.$_$.r7;
|
|
85
88
|
var toMutableList = kotlin_kotlin.$_$.x9;
|
|
86
|
-
var
|
|
89
|
+
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
87
90
|
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.r4;
|
|
91
|
+
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.a3;
|
|
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, $
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.y9q_1 = $transition;
|
|
1644
|
-
this.z9q_1 = this$0;
|
|
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,29 +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.
|
|
1667
|
-
|
|
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
|
+
}
|
|
1668
1677
|
var tmp_0;
|
|
1669
|
-
if (this.
|
|
1670
|
-
tmp_0 =
|
|
1678
|
+
if (this.z9q_1.mode.shufflePlayers && this.c9r_1 == null) {
|
|
1679
|
+
tmp_0 = _get_random__h29cgo(this.a9r_1).m5w(toMutableList(users));
|
|
1671
1680
|
} else {
|
|
1672
|
-
var tmp0_safe_receiver = this.
|
|
1681
|
+
var tmp0_safe_receiver = this.c9r_1;
|
|
1673
1682
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
1674
1683
|
var tmp_1;
|
|
1675
|
-
if (!(previousPlayers == null) && this.
|
|
1676
|
-
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);
|
|
1677
1686
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
1678
1687
|
var tmp0_iterator = previousPlayers.j();
|
|
1679
1688
|
while (tmp0_iterator.k()) {
|
|
1680
1689
|
var item = tmp0_iterator.l();
|
|
1681
1690
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
1682
1691
|
}
|
|
1683
|
-
var previousTeams = tmp_2.
|
|
1692
|
+
var previousTeams = tmp_2.o8m(destination);
|
|
1684
1693
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1685
1694
|
var tmp0_iterator_0 = users.j();
|
|
1686
1695
|
while (tmp0_iterator_0.k()) {
|
|
1687
1696
|
var element = tmp0_iterator_0.l();
|
|
1688
|
-
if (!previousPlayers.s1(element.
|
|
1697
|
+
if (!previousPlayers.s1(element.e6b_1)) {
|
|
1689
1698
|
destination_0.e(element);
|
|
1690
1699
|
}
|
|
1691
1700
|
}
|
|
@@ -1704,17 +1713,19 @@
|
|
|
1704
1713
|
destination_1.e(destination_2);
|
|
1705
1714
|
}
|
|
1706
1715
|
var updatedTeams = destination_1;
|
|
1707
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
1716
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.a9r_1).s8m(updatedTeams);
|
|
1708
1717
|
} else {
|
|
1709
1718
|
tmp_1 = users;
|
|
1710
1719
|
}
|
|
1711
1720
|
tmp_0 = tmp_1;
|
|
1712
1721
|
}
|
|
1713
1722
|
var updatedUsers = tmp_0;
|
|
1714
|
-
var
|
|
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
|
-
var
|
|
1717
|
-
|
|
1726
|
+
var tmp2_users = sortWithItem(updatedUsers, gameCreatorUser);
|
|
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));
|
|
1718
1729
|
return Unit_instance;
|
|
1719
1730
|
} else if (tmp === 1) {
|
|
1720
1731
|
throw this.i9_1;
|
|
@@ -1725,33 +1736,33 @@
|
|
|
1725
1736
|
}
|
|
1726
1737
|
while (true);
|
|
1727
1738
|
};
|
|
1728
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1729
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
1730
|
-
i.
|
|
1731
|
-
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;
|
|
1732
1743
|
return i;
|
|
1733
1744
|
};
|
|
1734
|
-
function GameServer$roomOnCreate$slambda_0($usersArray, $
|
|
1735
|
-
var i = new GameServer$roomOnCreate$slambda($usersArray, $
|
|
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);
|
|
1736
1747
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1737
|
-
return i.
|
|
1748
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1738
1749
|
};
|
|
1739
1750
|
l.$arity = 2;
|
|
1740
1751
|
return l;
|
|
1741
1752
|
}
|
|
1742
1753
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
1743
|
-
this.
|
|
1754
|
+
this.p9r_1 = $state;
|
|
1744
1755
|
CoroutineImpl.call(this, resultContinuation);
|
|
1745
1756
|
}
|
|
1746
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1747
|
-
var tmp = this.
|
|
1757
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1758
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1748
1759
|
tmp.h9_1 = Unit_instance;
|
|
1749
1760
|
tmp.i9_1 = null;
|
|
1750
1761
|
return tmp.n9();
|
|
1751
1762
|
};
|
|
1752
1763
|
protoOf(GameServer$roomOnContinueFromState$slambda).y9 = function (p1, p2, $completion) {
|
|
1753
1764
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1754
|
-
return this.
|
|
1765
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1755
1766
|
};
|
|
1756
1767
|
protoOf(GameServer$roomOnContinueFromState$slambda).n9 = function () {
|
|
1757
1768
|
var suspendResult = this.h9_1;
|
|
@@ -1760,9 +1771,9 @@
|
|
|
1760
1771
|
var tmp = this.f9_1;
|
|
1761
1772
|
if (tmp === 0) {
|
|
1762
1773
|
this.g9_1 = 1;
|
|
1763
|
-
var tmp_0 = this.
|
|
1774
|
+
var tmp_0 = this.r9r_1.dispatch;
|
|
1764
1775
|
var tmp0_reason = new RestartRoundReason(null);
|
|
1765
|
-
var tmp1_table = this.
|
|
1776
|
+
var tmp1_table = this.p9r_1.table;
|
|
1766
1777
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1767
1778
|
return Unit_instance;
|
|
1768
1779
|
} else if (tmp === 1) {
|
|
@@ -1774,33 +1785,33 @@
|
|
|
1774
1785
|
}
|
|
1775
1786
|
while (true);
|
|
1776
1787
|
};
|
|
1777
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1778
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
1779
|
-
i.
|
|
1780
|
-
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;
|
|
1781
1792
|
return i;
|
|
1782
1793
|
};
|
|
1783
1794
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
1784
1795
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
1785
1796
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1786
|
-
return i.
|
|
1797
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1787
1798
|
};
|
|
1788
1799
|
l.$arity = 2;
|
|
1789
1800
|
return l;
|
|
1790
1801
|
}
|
|
1791
1802
|
function GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation) {
|
|
1792
|
-
this.
|
|
1803
|
+
this.a9s_1 = $state;
|
|
1793
1804
|
CoroutineImpl.call(this, resultContinuation);
|
|
1794
1805
|
}
|
|
1795
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1796
|
-
var tmp = this.
|
|
1806
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1807
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1797
1808
|
tmp.h9_1 = Unit_instance;
|
|
1798
1809
|
tmp.i9_1 = null;
|
|
1799
1810
|
return tmp.n9();
|
|
1800
1811
|
};
|
|
1801
1812
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).y9 = function (p1, p2, $completion) {
|
|
1802
1813
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1803
|
-
return this.
|
|
1814
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1804
1815
|
};
|
|
1805
1816
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).n9 = function () {
|
|
1806
1817
|
var suspendResult = this.h9_1;
|
|
@@ -1809,10 +1820,10 @@
|
|
|
1809
1820
|
var tmp = this.f9_1;
|
|
1810
1821
|
if (tmp === 0) {
|
|
1811
1822
|
this.g9_1 = 1;
|
|
1812
|
-
var tmp0_iterator = this.
|
|
1823
|
+
var tmp0_iterator = this.a9s_1.actions.j();
|
|
1813
1824
|
while (tmp0_iterator.k()) {
|
|
1814
1825
|
var element = tmp0_iterator.l();
|
|
1815
|
-
this.
|
|
1826
|
+
this.c9s_1.dispatch(element);
|
|
1816
1827
|
}
|
|
1817
1828
|
return Unit_instance;
|
|
1818
1829
|
} else if (tmp === 1) {
|
|
@@ -1824,35 +1835,35 @@
|
|
|
1824
1835
|
}
|
|
1825
1836
|
while (true);
|
|
1826
1837
|
};
|
|
1827
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1828
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
1829
|
-
i.
|
|
1830
|
-
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;
|
|
1831
1842
|
return i;
|
|
1832
1843
|
};
|
|
1833
1844
|
function GameServer$roomOnContinueFromState$slambda_2($state, resultContinuation) {
|
|
1834
1845
|
var i = new GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation);
|
|
1835
1846
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1836
|
-
return i.
|
|
1847
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1837
1848
|
};
|
|
1838
1849
|
l.$arity = 2;
|
|
1839
1850
|
return l;
|
|
1840
1851
|
}
|
|
1841
1852
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
1842
|
-
this.
|
|
1843
|
-
this.
|
|
1844
|
-
this.
|
|
1853
|
+
this.l9s_1 = $tableLite;
|
|
1854
|
+
this.m9s_1 = $roomId;
|
|
1855
|
+
this.n9s_1 = this$0;
|
|
1845
1856
|
CoroutineImpl.call(this, resultContinuation);
|
|
1846
1857
|
}
|
|
1847
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1848
|
-
var tmp = this.
|
|
1858
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1859
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1849
1860
|
tmp.h9_1 = Unit_instance;
|
|
1850
1861
|
tmp.i9_1 = null;
|
|
1851
1862
|
return tmp.n9();
|
|
1852
1863
|
};
|
|
1853
1864
|
protoOf(GameServer$roomOnContinueFromRound$slambda).y9 = function (p1, p2, $completion) {
|
|
1854
1865
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1855
|
-
return this.
|
|
1866
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1856
1867
|
};
|
|
1857
1868
|
protoOf(GameServer$roomOnContinueFromRound$slambda).n9 = function () {
|
|
1858
1869
|
var suspendResult = this.h9_1;
|
|
@@ -1861,9 +1872,9 @@
|
|
|
1861
1872
|
var tmp = this.f9_1;
|
|
1862
1873
|
if (tmp === 0) {
|
|
1863
1874
|
this.g9_1 = 1;
|
|
1864
|
-
var tmp_0 = this.
|
|
1865
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
1866
|
-
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);
|
|
1867
1878
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1868
1879
|
return Unit_instance;
|
|
1869
1880
|
} else if (tmp === 1) {
|
|
@@ -1875,16 +1886,16 @@
|
|
|
1875
1886
|
}
|
|
1876
1887
|
while (true);
|
|
1877
1888
|
};
|
|
1878
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1879
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
1880
|
-
i.
|
|
1881
|
-
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;
|
|
1882
1893
|
return i;
|
|
1883
1894
|
};
|
|
1884
1895
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
1885
1896
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
1886
1897
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1887
|
-
return i.
|
|
1898
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1888
1899
|
};
|
|
1889
1900
|
l.$arity = 2;
|
|
1890
1901
|
return l;
|
|
@@ -1892,15 +1903,15 @@
|
|
|
1892
1903
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1893
1904
|
CoroutineImpl.call(this, resultContinuation);
|
|
1894
1905
|
}
|
|
1895
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1896
|
-
var tmp = this.
|
|
1906
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1907
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1897
1908
|
tmp.h9_1 = Unit_instance;
|
|
1898
1909
|
tmp.i9_1 = null;
|
|
1899
1910
|
return tmp.n9();
|
|
1900
1911
|
};
|
|
1901
1912
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).y9 = function (p1, p2, $completion) {
|
|
1902
1913
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1903
|
-
return this.
|
|
1914
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1904
1915
|
};
|
|
1905
1916
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).n9 = function () {
|
|
1906
1917
|
var suspendResult = this.h9_1;
|
|
@@ -1909,7 +1920,7 @@
|
|
|
1909
1920
|
var tmp = this.f9_1;
|
|
1910
1921
|
if (tmp === 0) {
|
|
1911
1922
|
this.g9_1 = 1;
|
|
1912
|
-
this.
|
|
1923
|
+
this.z9s_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1913
1924
|
return Unit_instance;
|
|
1914
1925
|
} else if (tmp === 1) {
|
|
1915
1926
|
throw this.i9_1;
|
|
@@ -1920,33 +1931,33 @@
|
|
|
1920
1931
|
}
|
|
1921
1932
|
while (true);
|
|
1922
1933
|
};
|
|
1923
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1934
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).g9p = function ($this$dispatchAsync, store, completion) {
|
|
1924
1935
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1925
|
-
i.
|
|
1926
|
-
i.
|
|
1936
|
+
i.y9s_1 = $this$dispatchAsync;
|
|
1937
|
+
i.z9s_1 = store;
|
|
1927
1938
|
return i;
|
|
1928
1939
|
};
|
|
1929
1940
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1930
1941
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1931
1942
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1932
|
-
return i.
|
|
1943
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1933
1944
|
};
|
|
1934
1945
|
l.$arity = 2;
|
|
1935
1946
|
return l;
|
|
1936
1947
|
}
|
|
1937
1948
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1938
|
-
this.
|
|
1949
|
+
this.i9t_1 = $spectators;
|
|
1939
1950
|
CoroutineImpl.call(this, resultContinuation);
|
|
1940
1951
|
}
|
|
1941
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1942
|
-
var tmp = this.
|
|
1952
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1953
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1943
1954
|
tmp.h9_1 = Unit_instance;
|
|
1944
1955
|
tmp.i9_1 = null;
|
|
1945
1956
|
return tmp.n9();
|
|
1946
1957
|
};
|
|
1947
1958
|
protoOf(GameServer$addSpectatorsToRoom$slambda).y9 = function (p1, p2, $completion) {
|
|
1948
1959
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1949
|
-
return this.
|
|
1960
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1950
1961
|
};
|
|
1951
1962
|
protoOf(GameServer$addSpectatorsToRoom$slambda).n9 = function () {
|
|
1952
1963
|
var suspendResult = this.h9_1;
|
|
@@ -1955,7 +1966,7 @@
|
|
|
1955
1966
|
var tmp = this.f9_1;
|
|
1956
1967
|
if (tmp === 0) {
|
|
1957
1968
|
this.g9_1 = 1;
|
|
1958
|
-
this.
|
|
1969
|
+
this.k9t_1.dispatch(new AddSpectatorsAction(toList(this.i9t_1)));
|
|
1959
1970
|
return Unit_instance;
|
|
1960
1971
|
} else if (tmp === 1) {
|
|
1961
1972
|
throw this.i9_1;
|
|
@@ -1966,33 +1977,33 @@
|
|
|
1966
1977
|
}
|
|
1967
1978
|
while (true);
|
|
1968
1979
|
};
|
|
1969
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1970
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1971
|
-
i.
|
|
1972
|
-
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;
|
|
1973
1984
|
return i;
|
|
1974
1985
|
};
|
|
1975
1986
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1976
1987
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1977
1988
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1978
|
-
return i.
|
|
1989
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
1979
1990
|
};
|
|
1980
1991
|
l.$arity = 2;
|
|
1981
1992
|
return l;
|
|
1982
1993
|
}
|
|
1983
1994
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1984
|
-
this.
|
|
1995
|
+
this.t9t_1 = $spectators;
|
|
1985
1996
|
CoroutineImpl.call(this, resultContinuation);
|
|
1986
1997
|
}
|
|
1987
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1988
|
-
var tmp = this.
|
|
1998
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
1999
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
1989
2000
|
tmp.h9_1 = Unit_instance;
|
|
1990
2001
|
tmp.i9_1 = null;
|
|
1991
2002
|
return tmp.n9();
|
|
1992
2003
|
};
|
|
1993
2004
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).y9 = function (p1, p2, $completion) {
|
|
1994
2005
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1995
|
-
return this.
|
|
2006
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1996
2007
|
};
|
|
1997
2008
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).n9 = function () {
|
|
1998
2009
|
var suspendResult = this.h9_1;
|
|
@@ -2001,7 +2012,7 @@
|
|
|
2001
2012
|
var tmp = this.f9_1;
|
|
2002
2013
|
if (tmp === 0) {
|
|
2003
2014
|
this.g9_1 = 1;
|
|
2004
|
-
this.
|
|
2015
|
+
this.v9t_1.dispatch(new RemoveSpectatorsAction(toList(this.t9t_1)));
|
|
2005
2016
|
return Unit_instance;
|
|
2006
2017
|
} else if (tmp === 1) {
|
|
2007
2018
|
throw this.i9_1;
|
|
@@ -2012,34 +2023,34 @@
|
|
|
2012
2023
|
}
|
|
2013
2024
|
while (true);
|
|
2014
2025
|
};
|
|
2015
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2016
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2017
|
-
i.
|
|
2018
|
-
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;
|
|
2019
2030
|
return i;
|
|
2020
2031
|
};
|
|
2021
2032
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2022
2033
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2023
2034
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2024
|
-
return i.
|
|
2035
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2025
2036
|
};
|
|
2026
2037
|
l.$arity = 2;
|
|
2027
2038
|
return l;
|
|
2028
2039
|
}
|
|
2029
2040
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2030
|
-
this.
|
|
2031
|
-
this.
|
|
2041
|
+
this.e9u_1 = $playerId;
|
|
2042
|
+
this.f9u_1 = this$0;
|
|
2032
2043
|
CoroutineImpl.call(this, resultContinuation);
|
|
2033
2044
|
}
|
|
2034
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2035
|
-
var tmp = this.
|
|
2045
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2046
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2036
2047
|
tmp.h9_1 = Unit_instance;
|
|
2037
2048
|
tmp.i9_1 = null;
|
|
2038
2049
|
return tmp.n9();
|
|
2039
2050
|
};
|
|
2040
2051
|
protoOf(GameServer$roomRefreshPlayerState$slambda).y9 = function (p1, p2, $completion) {
|
|
2041
2052
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2042
|
-
return this.
|
|
2053
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2043
2054
|
};
|
|
2044
2055
|
protoOf(GameServer$roomRefreshPlayerState$slambda).n9 = function () {
|
|
2045
2056
|
var suspendResult = this.h9_1;
|
|
@@ -2048,14 +2059,14 @@
|
|
|
2048
2059
|
var tmp = this.f9_1;
|
|
2049
2060
|
if (tmp === 0) {
|
|
2050
2061
|
this.g9_1 = 1;
|
|
2051
|
-
var table = this.
|
|
2052
|
-
var player = getPlayer(table.players, this.
|
|
2053
|
-
if (player.
|
|
2054
|
-
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));
|
|
2055
2066
|
} else {
|
|
2056
|
-
var tmp_0 = this.
|
|
2067
|
+
var tmp_0 = this.h9u_1.dispatch;
|
|
2057
2068
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2058
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2069
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.e9u_1));
|
|
2059
2070
|
}
|
|
2060
2071
|
return Unit_instance;
|
|
2061
2072
|
} else if (tmp === 1) {
|
|
@@ -2067,34 +2078,34 @@
|
|
|
2067
2078
|
}
|
|
2068
2079
|
while (true);
|
|
2069
2080
|
};
|
|
2070
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2071
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
2072
|
-
i.
|
|
2073
|
-
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;
|
|
2074
2085
|
return i;
|
|
2075
2086
|
};
|
|
2076
2087
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
2077
2088
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
2078
2089
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2079
|
-
return i.
|
|
2090
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2080
2091
|
};
|
|
2081
2092
|
l.$arity = 2;
|
|
2082
2093
|
return l;
|
|
2083
2094
|
}
|
|
2084
2095
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
2085
|
-
this.
|
|
2086
|
-
this.
|
|
2096
|
+
this.q9u_1 = this$0;
|
|
2097
|
+
this.r9u_1 = $newRid;
|
|
2087
2098
|
CoroutineImpl.call(this, resultContinuation);
|
|
2088
2099
|
}
|
|
2089
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2090
|
-
var tmp = this.
|
|
2100
|
+
protoOf(GameServer$roomOnDelete$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2101
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2091
2102
|
tmp.h9_1 = Unit_instance;
|
|
2092
2103
|
tmp.i9_1 = null;
|
|
2093
2104
|
return tmp.n9();
|
|
2094
2105
|
};
|
|
2095
2106
|
protoOf(GameServer$roomOnDelete$slambda).y9 = function (p1, p2, $completion) {
|
|
2096
2107
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2097
|
-
return this.
|
|
2108
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2098
2109
|
};
|
|
2099
2110
|
protoOf(GameServer$roomOnDelete$slambda).n9 = function () {
|
|
2100
2111
|
var suspendResult = this.h9_1;
|
|
@@ -2103,27 +2114,27 @@
|
|
|
2103
2114
|
var tmp = this.f9_1;
|
|
2104
2115
|
if (tmp === 0) {
|
|
2105
2116
|
this.g9_1 = 1;
|
|
2106
|
-
var it = this.
|
|
2117
|
+
var it = this.q9u_1.o6b().x6q_1;
|
|
2107
2118
|
var tmp_0;
|
|
2108
2119
|
if (it == null) {
|
|
2109
|
-
_get_logger__rkp4sl(this.
|
|
2120
|
+
_get_logger__rkp4sl(this.q9u_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
2110
2121
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
2111
2122
|
} else {
|
|
2112
2123
|
tmp_0 = it;
|
|
2113
2124
|
}
|
|
2114
2125
|
var terminationState = tmp_0;
|
|
2115
|
-
var gameTransition = terminationState.
|
|
2126
|
+
var gameTransition = terminationState.q8x_1;
|
|
2116
2127
|
var tmp_1;
|
|
2117
2128
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2118
|
-
var tmp0_elvis_lhs = this.
|
|
2129
|
+
var tmp0_elvis_lhs = this.r9u_1;
|
|
2119
2130
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
2120
2131
|
} else {
|
|
2121
2132
|
tmp_1 = gameTransition;
|
|
2122
2133
|
}
|
|
2123
2134
|
var transition = tmp_1;
|
|
2124
|
-
var tmp_2 = this.
|
|
2125
|
-
var tmp0_reason = terminationState.
|
|
2126
|
-
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;
|
|
2127
2138
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2128
2139
|
return Unit_instance;
|
|
2129
2140
|
} else if (tmp === 1) {
|
|
@@ -2135,33 +2146,33 @@
|
|
|
2135
2146
|
}
|
|
2136
2147
|
while (true);
|
|
2137
2148
|
};
|
|
2138
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2139
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
2140
|
-
i.
|
|
2141
|
-
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;
|
|
2142
2153
|
return i;
|
|
2143
2154
|
};
|
|
2144
2155
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
2145
2156
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
2146
2157
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2147
|
-
return i.
|
|
2158
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2148
2159
|
};
|
|
2149
2160
|
l.$arity = 2;
|
|
2150
2161
|
return l;
|
|
2151
2162
|
}
|
|
2152
2163
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
2153
|
-
this.
|
|
2164
|
+
this.c9v_1 = $enabled;
|
|
2154
2165
|
CoroutineImpl.call(this, resultContinuation);
|
|
2155
2166
|
}
|
|
2156
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2157
|
-
var tmp = this.
|
|
2167
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2168
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2158
2169
|
tmp.h9_1 = Unit_instance;
|
|
2159
2170
|
tmp.i9_1 = null;
|
|
2160
2171
|
return tmp.n9();
|
|
2161
2172
|
};
|
|
2162
2173
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).y9 = function (p1, p2, $completion) {
|
|
2163
2174
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2164
|
-
return this.
|
|
2175
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2165
2176
|
};
|
|
2166
2177
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).n9 = function () {
|
|
2167
2178
|
var suspendResult = this.h9_1;
|
|
@@ -2170,7 +2181,7 @@
|
|
|
2170
2181
|
var tmp = this.f9_1;
|
|
2171
2182
|
if (tmp === 0) {
|
|
2172
2183
|
this.g9_1 = 1;
|
|
2173
|
-
this.
|
|
2184
|
+
this.e9v_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.e9v_1.state).f9v_1.i9v(VOID, this.c9v_1)));
|
|
2174
2185
|
return Unit_instance;
|
|
2175
2186
|
} else if (tmp === 1) {
|
|
2176
2187
|
throw this.i9_1;
|
|
@@ -2181,35 +2192,35 @@
|
|
|
2181
2192
|
}
|
|
2182
2193
|
while (true);
|
|
2183
2194
|
};
|
|
2184
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2185
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
2186
|
-
i.
|
|
2187
|
-
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;
|
|
2188
2199
|
return i;
|
|
2189
2200
|
};
|
|
2190
2201
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
2191
2202
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
2192
2203
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2193
|
-
return i.
|
|
2204
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2194
2205
|
};
|
|
2195
2206
|
l.$arity = 2;
|
|
2196
2207
|
return l;
|
|
2197
2208
|
}
|
|
2198
2209
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
2199
|
-
this.
|
|
2200
|
-
this.
|
|
2201
|
-
this.
|
|
2210
|
+
this.r9v_1 = $reason;
|
|
2211
|
+
this.s9v_1 = this$0;
|
|
2212
|
+
this.t9v_1 = $roomId;
|
|
2202
2213
|
CoroutineImpl.call(this, resultContinuation);
|
|
2203
2214
|
}
|
|
2204
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2205
|
-
var tmp = this.
|
|
2215
|
+
protoOf(GameServer$shutdown$slambda).f9p = function ($this$dispatchAsync, store, $completion) {
|
|
2216
|
+
var tmp = this.g9p($this$dispatchAsync, store, $completion);
|
|
2206
2217
|
tmp.h9_1 = Unit_instance;
|
|
2207
2218
|
tmp.i9_1 = null;
|
|
2208
2219
|
return tmp.n9();
|
|
2209
2220
|
};
|
|
2210
2221
|
protoOf(GameServer$shutdown$slambda).y9 = function (p1, p2, $completion) {
|
|
2211
2222
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2212
|
-
return this.
|
|
2223
|
+
return this.f9p(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2213
2224
|
};
|
|
2214
2225
|
protoOf(GameServer$shutdown$slambda).n9 = function () {
|
|
2215
2226
|
var suspendResult = this.h9_1;
|
|
@@ -2218,12 +2229,12 @@
|
|
|
2218
2229
|
var tmp = this.f9_1;
|
|
2219
2230
|
if (tmp === 0) {
|
|
2220
2231
|
this.g9_1 = 1;
|
|
2221
|
-
var state = this.
|
|
2222
|
-
if (state.
|
|
2223
|
-
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());
|
|
2224
2235
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
2225
|
-
var tmp_0 = this.
|
|
2226
|
-
var tmp_1 =
|
|
2236
|
+
var tmp_0 = this.v9v_1.dispatch;
|
|
2237
|
+
var tmp_1 = Companion_instance;
|
|
2227
2238
|
var tmp_2;
|
|
2228
2239
|
switch (shutdownReason.o2_1) {
|
|
2229
2240
|
case 0:
|
|
@@ -2236,10 +2247,10 @@
|
|
|
2236
2247
|
noWhenBranchMatchedException();
|
|
2237
2248
|
break;
|
|
2238
2249
|
}
|
|
2239
|
-
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));
|
|
2240
2251
|
} else {
|
|
2241
|
-
_get_logger__rkp4sl(this.
|
|
2242
|
-
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());
|
|
2243
2254
|
}
|
|
2244
2255
|
return Unit_instance;
|
|
2245
2256
|
} else if (tmp === 1) {
|
|
@@ -2251,22 +2262,22 @@
|
|
|
2251
2262
|
}
|
|
2252
2263
|
while (true);
|
|
2253
2264
|
};
|
|
2254
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2255
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
2256
|
-
i.
|
|
2257
|
-
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;
|
|
2258
2269
|
return i;
|
|
2259
2270
|
};
|
|
2260
2271
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
2261
2272
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
2262
2273
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2263
|
-
return i.
|
|
2274
|
+
return i.f9p($this$dispatchAsync, store, $completion);
|
|
2264
2275
|
};
|
|
2265
2276
|
l.$arity = 2;
|
|
2266
2277
|
return l;
|
|
2267
2278
|
}
|
|
2268
2279
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
2269
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_10.
|
|
2280
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_10.w9v()) : preloadedState;
|
|
2270
2281
|
var tmp;
|
|
2271
2282
|
if (externalReducers === VOID) {
|
|
2272
2283
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -2289,122 +2300,122 @@
|
|
|
2289
2300
|
// Inline function 'org.kodein.type.generic' call
|
|
2290
2301
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2291
2302
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2292
|
-
tmp_1.
|
|
2303
|
+
tmp_1.o9m_1 = Instance(di, tmp$ret$2, null).y63(this, logger$factory());
|
|
2293
2304
|
var tmp_3 = this;
|
|
2294
2305
|
// Inline function 'org.kodein.di.instance' call
|
|
2295
2306
|
// Inline function 'org.kodein.type.generic' call
|
|
2296
2307
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2297
2308
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2298
|
-
tmp_3.
|
|
2309
|
+
tmp_3.p9m_1 = Instance(di, tmp$ret$4, null).y63(this, toClientEventsObserver$factory());
|
|
2299
2310
|
var tmp_5 = this;
|
|
2300
2311
|
// Inline function 'org.kodein.di.instance' call
|
|
2301
2312
|
// Inline function 'org.kodein.type.generic' call
|
|
2302
2313
|
var tmp_6 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
2303
2314
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2304
|
-
tmp_5.
|
|
2315
|
+
tmp_5.q9m_1 = Instance(di, tmp$ret$6, null).y63(this, fromClientEventsObserver$factory());
|
|
2305
2316
|
var tmp_7 = this;
|
|
2306
2317
|
// Inline function 'org.kodein.di.instance' call
|
|
2307
2318
|
// Inline function 'org.kodein.type.generic' call
|
|
2308
2319
|
var tmp_8 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2309
2320
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2310
|
-
tmp_7.
|
|
2321
|
+
tmp_7.r9m_1 = Instance(di, tmp$ret$8, null).y63(this, playerConnectionInteractor$factory());
|
|
2311
2322
|
var tmp_9 = this;
|
|
2312
2323
|
// Inline function 'org.kodein.di.instance' call
|
|
2313
2324
|
// Inline function 'org.kodein.type.generic' call
|
|
2314
2325
|
var tmp_10 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
2315
2326
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2316
|
-
tmp_9.
|
|
2327
|
+
tmp_9.s9m_1 = Instance(di, tmp$ret$10, null).y63(this, teamsLogicProvider$factory());
|
|
2317
2328
|
var tmp_11 = this;
|
|
2318
|
-
tmp_11.
|
|
2329
|
+
tmp_11.t9m_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
2319
2330
|
var tmp_12 = this;
|
|
2320
2331
|
// Inline function 'org.kodein.di.instance' call
|
|
2321
2332
|
// Inline function 'org.kodein.type.generic' call
|
|
2322
2333
|
var tmp_13 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2323
2334
|
var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
2324
|
-
tmp_12.
|
|
2335
|
+
tmp_12.u9m_1 = Instance(di, tmp$ret$12, null).y63(this, idsProvider$factory());
|
|
2325
2336
|
var tmp_14 = this;
|
|
2326
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
2327
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
2328
|
-
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);
|
|
2329
2340
|
}
|
|
2330
|
-
protoOf(GameServer).
|
|
2331
|
-
return this.
|
|
2341
|
+
protoOf(GameServer).j6q = function () {
|
|
2342
|
+
return this.v9m_1;
|
|
2332
2343
|
};
|
|
2333
2344
|
protoOf(GameServer).f5l = function () {
|
|
2334
|
-
return this.
|
|
2345
|
+
return this.o6b().w6r().id;
|
|
2335
2346
|
};
|
|
2336
|
-
protoOf(GameServer).
|
|
2337
|
-
return this.
|
|
2347
|
+
protoOf(GameServer).w6r = function () {
|
|
2348
|
+
return this.o6b().w6r();
|
|
2338
2349
|
};
|
|
2339
|
-
protoOf(GameServer).
|
|
2340
|
-
return this.
|
|
2350
|
+
protoOf(GameServer).x6r = function () {
|
|
2351
|
+
return this.o6b().x6r();
|
|
2341
2352
|
};
|
|
2342
|
-
protoOf(GameServer).
|
|
2343
|
-
return this.
|
|
2353
|
+
protoOf(GameServer).y6r = function () {
|
|
2354
|
+
return this.o6b().w6q_1;
|
|
2344
2355
|
};
|
|
2345
2356
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
2346
|
-
var tmp = this.
|
|
2347
|
-
tmp.
|
|
2357
|
+
var tmp = this.h6q();
|
|
2358
|
+
tmp.z6g(VOID, GameServer$subscribeToClientAction$slambda_0(this, subscriber, null));
|
|
2348
2359
|
};
|
|
2349
2360
|
protoOf(GameServer).subscribeServerStateUpdate = function (subscriber) {
|
|
2350
|
-
var tmp = this.
|
|
2351
|
-
tmp.
|
|
2361
|
+
var tmp = this.h6q();
|
|
2362
|
+
tmp.z6g(VOID, GameServer$subscribeServerStateUpdate$slambda_0(this, subscriber, null));
|
|
2352
2363
|
};
|
|
2353
2364
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
2354
|
-
var tmp = this.
|
|
2355
|
-
tmp.
|
|
2365
|
+
var tmp = this.h6q();
|
|
2366
|
+
tmp.z6g(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
2356
2367
|
};
|
|
2357
2368
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
2358
2369
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
2359
|
-
this.
|
|
2370
|
+
this.v9m_1.v6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
2360
2371
|
};
|
|
2361
2372
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
2362
2373
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
2363
|
-
this.
|
|
2374
|
+
this.v9m_1.v6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
2364
2375
|
};
|
|
2365
2376
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
2366
2377
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
2367
|
-
this.
|
|
2378
|
+
this.v9m_1.v6r(GameServer$playerLive$slambda_0(this, playerId, null));
|
|
2368
2379
|
};
|
|
2369
2380
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
2370
2381
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
2371
|
-
this.
|
|
2382
|
+
this.v9m_1.v6r(GameServer$playerLeft$slambda_0(this, playerId, null));
|
|
2372
2383
|
};
|
|
2373
|
-
protoOf(GameServer).
|
|
2374
|
-
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' +
|
|
2375
|
-
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));
|
|
2376
2387
|
};
|
|
2377
2388
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
2378
2389
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
2379
|
-
this.
|
|
2380
|
-
this.
|
|
2390
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
2391
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
2381
2392
|
};
|
|
2382
2393
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
2383
2394
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
2384
|
-
this.
|
|
2385
|
-
this.
|
|
2395
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
2396
|
+
this.v9m_1.v6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
2386
2397
|
};
|
|
2387
2398
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
2388
|
-
this.
|
|
2399
|
+
this.v9m_1.v6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
2389
2400
|
};
|
|
2390
2401
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
2391
|
-
this.
|
|
2402
|
+
this.v9m_1.v6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
2392
2403
|
};
|
|
2393
2404
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
2394
2405
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
2395
|
-
this.
|
|
2406
|
+
this.v9m_1.v6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
2396
2407
|
};
|
|
2397
|
-
protoOf(GameServer).
|
|
2408
|
+
protoOf(GameServer).y9v = function (newRid) {
|
|
2398
2409
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
2399
|
-
this.
|
|
2410
|
+
this.v9m_1.v6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
2400
2411
|
};
|
|
2401
2412
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
2402
2413
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
2403
|
-
this.
|
|
2414
|
+
this.v9m_1.v6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
2404
2415
|
};
|
|
2405
|
-
protoOf(GameServer).
|
|
2416
|
+
protoOf(GameServer).z9v = function (reason, roomId) {
|
|
2406
2417
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
2407
|
-
this.
|
|
2418
|
+
this.v9m_1.v6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
2408
2419
|
};
|
|
2409
2420
|
protoOf(GameServer).clear = function () {
|
|
2410
2421
|
return this.a2();
|
|
@@ -2509,7 +2520,7 @@
|
|
|
2509
2520
|
}
|
|
2510
2521
|
function Companion_0() {
|
|
2511
2522
|
}
|
|
2512
|
-
protoOf(Companion_0).
|
|
2523
|
+
protoOf(Companion_0).a9w = function (fromRound) {
|
|
2513
2524
|
return new ServerConfig(fromRound, true);
|
|
2514
2525
|
};
|
|
2515
2526
|
var Companion_instance_8;
|
|
@@ -2517,23 +2528,23 @@
|
|
|
2517
2528
|
return Companion_instance_8;
|
|
2518
2529
|
}
|
|
2519
2530
|
function ServerConfig(fromRound, canStartNewGame) {
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2531
|
+
this.g9v_1 = fromRound;
|
|
2532
|
+
this.h9v_1 = canStartNewGame;
|
|
2522
2533
|
}
|
|
2523
|
-
protoOf(ServerConfig).
|
|
2534
|
+
protoOf(ServerConfig).b9w = function (fromRound, canStartNewGame) {
|
|
2524
2535
|
return new ServerConfig(fromRound, canStartNewGame);
|
|
2525
2536
|
};
|
|
2526
|
-
protoOf(ServerConfig).
|
|
2527
|
-
fromRound = fromRound === VOID ? this.
|
|
2528
|
-
canStartNewGame = canStartNewGame === VOID ? this.
|
|
2529
|
-
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);
|
|
2530
2541
|
};
|
|
2531
2542
|
protoOf(ServerConfig).toString = function () {
|
|
2532
|
-
return 'ServerConfig(fromRound=' + this.
|
|
2543
|
+
return 'ServerConfig(fromRound=' + this.g9v_1 + ', canStartNewGame=' + this.h9v_1 + ')';
|
|
2533
2544
|
};
|
|
2534
2545
|
protoOf(ServerConfig).hashCode = function () {
|
|
2535
|
-
var result = this.
|
|
2536
|
-
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;
|
|
2537
2548
|
return result;
|
|
2538
2549
|
};
|
|
2539
2550
|
protoOf(ServerConfig).equals = function (other) {
|
|
@@ -2542,9 +2553,9 @@
|
|
|
2542
2553
|
if (!(other instanceof ServerConfig))
|
|
2543
2554
|
return false;
|
|
2544
2555
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
2545
|
-
if (!(this.
|
|
2556
|
+
if (!(this.g9v_1 == tmp0_other_with_cast.g9v_1))
|
|
2546
2557
|
return false;
|
|
2547
|
-
if (!(this.
|
|
2558
|
+
if (!(this.h9v_1 === tmp0_other_with_cast.h9v_1))
|
|
2548
2559
|
return false;
|
|
2549
2560
|
return true;
|
|
2550
2561
|
};
|
|
@@ -2553,18 +2564,18 @@
|
|
|
2553
2564
|
function TableStateUpdate(table) {
|
|
2554
2565
|
this.table = table;
|
|
2555
2566
|
}
|
|
2556
|
-
protoOf(TableStateUpdate).
|
|
2567
|
+
protoOf(TableStateUpdate).w6r = function () {
|
|
2557
2568
|
return this.table;
|
|
2558
2569
|
};
|
|
2559
2570
|
protoOf(TableStateUpdate).qe = function () {
|
|
2560
2571
|
return this.table;
|
|
2561
2572
|
};
|
|
2562
|
-
protoOf(TableStateUpdate).
|
|
2573
|
+
protoOf(TableStateUpdate).c9w = function (table) {
|
|
2563
2574
|
return new TableStateUpdate(table);
|
|
2564
2575
|
};
|
|
2565
2576
|
protoOf(TableStateUpdate).copy = function (table, $super) {
|
|
2566
2577
|
table = table === VOID ? this.table : table;
|
|
2567
|
-
return this.
|
|
2578
|
+
return this.c9w(table);
|
|
2568
2579
|
};
|
|
2569
2580
|
protoOf(TableStateUpdate).toString = function () {
|
|
2570
2581
|
return 'TableStateUpdate(table=' + this.table.toString() + ')';
|
|
@@ -2585,21 +2596,21 @@
|
|
|
2585
2596
|
function ActionsStateUpdate(actions) {
|
|
2586
2597
|
this.actions = actions;
|
|
2587
2598
|
}
|
|
2588
|
-
protoOf(ActionsStateUpdate).
|
|
2599
|
+
protoOf(ActionsStateUpdate).h8f = function () {
|
|
2589
2600
|
return this.actions;
|
|
2590
2601
|
};
|
|
2591
2602
|
protoOf(ActionsStateUpdate).qe = function () {
|
|
2592
2603
|
return this.actions;
|
|
2593
2604
|
};
|
|
2594
|
-
protoOf(ActionsStateUpdate).
|
|
2605
|
+
protoOf(ActionsStateUpdate).d9w = function (actions) {
|
|
2595
2606
|
return new ActionsStateUpdate(actions);
|
|
2596
2607
|
};
|
|
2597
2608
|
protoOf(ActionsStateUpdate).copy = function (actions, $super) {
|
|
2598
2609
|
actions = actions === VOID ? this.actions : actions;
|
|
2599
|
-
return this.
|
|
2610
|
+
return this.d9w(actions);
|
|
2600
2611
|
};
|
|
2601
2612
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
2602
|
-
return 'ActionsStateUpdate(actions=' +
|
|
2613
|
+
return 'ActionsStateUpdate(actions=' + toString(this.actions) + ')';
|
|
2603
2614
|
};
|
|
2604
2615
|
protoOf(ActionsStateUpdate).hashCode = function () {
|
|
2605
2616
|
return hashCode(this.actions);
|
|
@@ -2624,124 +2635,124 @@
|
|
|
2624
2635
|
}
|
|
2625
2636
|
function getServerEngineGameDI$lambda$lambda($this$provider) {
|
|
2626
2637
|
// Inline function 'org.kodein.di.instance' call
|
|
2627
|
-
var tmp = $this$provider.
|
|
2638
|
+
var tmp = $this$provider.q5z();
|
|
2628
2639
|
// Inline function 'org.kodein.type.generic' call
|
|
2629
2640
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2630
2641
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2631
|
-
var tmp_1 = tmp.
|
|
2642
|
+
var tmp_1 = tmp.p5z(tmp$ret$0, null);
|
|
2632
2643
|
// Inline function 'org.kodein.di.instance' call
|
|
2633
|
-
var tmp_2 = $this$provider.
|
|
2644
|
+
var tmp_2 = $this$provider.q5z();
|
|
2634
2645
|
// Inline function 'org.kodein.type.generic' call
|
|
2635
2646
|
var tmp_3 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
2636
2647
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
2637
|
-
var tmp_4 = tmp_2.
|
|
2648
|
+
var tmp_4 = tmp_2.p5z(tmp$ret$2, null);
|
|
2638
2649
|
// Inline function 'org.kodein.di.instance' call
|
|
2639
|
-
var tmp_5 = $this$provider.
|
|
2650
|
+
var tmp_5 = $this$provider.q5z();
|
|
2640
2651
|
// Inline function 'org.kodein.type.generic' call
|
|
2641
2652
|
var tmp_6 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
2642
2653
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2643
|
-
var tmp$ret$5 = tmp_5.
|
|
2654
|
+
var tmp$ret$5 = tmp_5.p5z(tmp$ret$4, null);
|
|
2644
2655
|
return new ServerMechanicLifecycleReducer(tmp_1, tmp_4, tmp$ret$5);
|
|
2645
2656
|
}
|
|
2646
2657
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
2647
2658
|
// Inline function 'org.kodein.di.instance' call
|
|
2648
|
-
var tmp = $this$provider.
|
|
2659
|
+
var tmp = $this$provider.q5z();
|
|
2649
2660
|
// Inline function 'org.kodein.type.generic' call
|
|
2650
2661
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2651
2662
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2652
|
-
var tmp0_serverConfig = tmp.
|
|
2663
|
+
var tmp0_serverConfig = tmp.p5z(tmp$ret$0, null);
|
|
2653
2664
|
// Inline function 'org.kodein.di.instance' call
|
|
2654
|
-
var tmp_1 = $this$provider.
|
|
2665
|
+
var tmp_1 = $this$provider.q5z();
|
|
2655
2666
|
// Inline function 'org.kodein.type.generic' call
|
|
2656
2667
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2657
2668
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2658
|
-
var tmp1_logger = tmp_1.
|
|
2669
|
+
var tmp1_logger = tmp_1.p5z(tmp$ret$2, null);
|
|
2659
2670
|
// Inline function 'org.kodein.di.instance' call
|
|
2660
|
-
var tmp_3 = $this$provider.
|
|
2671
|
+
var tmp_3 = $this$provider.q5z();
|
|
2661
2672
|
// Inline function 'org.kodein.type.generic' call
|
|
2662
2673
|
var tmp_4 = typeToken(createKType(getKClass(PlayerTurnMechanicReducer), arrayOf([]), false));
|
|
2663
2674
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2664
|
-
var tmp2_playerTurnMechanicReducer = tmp_3.
|
|
2675
|
+
var tmp2_playerTurnMechanicReducer = tmp_3.p5z(tmp$ret$4, null);
|
|
2665
2676
|
// Inline function 'org.kodein.di.instance' call
|
|
2666
|
-
var tmp_5 = $this$provider.
|
|
2677
|
+
var tmp_5 = $this$provider.q5z();
|
|
2667
2678
|
// Inline function 'org.kodein.type.generic' call
|
|
2668
2679
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2669
2680
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2670
|
-
var tmp3_idsProvider = tmp_5.
|
|
2681
|
+
var tmp3_idsProvider = tmp_5.p5z(tmp$ret$6, null);
|
|
2671
2682
|
// Inline function 'org.kodein.di.instance' call
|
|
2672
|
-
var tmp_7 = $this$provider.
|
|
2683
|
+
var tmp_7 = $this$provider.q5z();
|
|
2673
2684
|
// Inline function 'org.kodein.type.generic' call
|
|
2674
2685
|
var tmp_8 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2675
2686
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2676
|
-
var tmp4_engineLogicConfig = tmp_7.
|
|
2687
|
+
var tmp4_engineLogicConfig = tmp_7.p5z(tmp$ret$8, null);
|
|
2677
2688
|
return new PlayerConnectionInteractor(tmp0_serverConfig, tmp4_engineLogicConfig, tmp1_logger, tmp2_playerTurnMechanicReducer, tmp3_idsProvider);
|
|
2678
2689
|
}
|
|
2679
2690
|
function getServerEngineGameDI$lambda$lambda_1($this$singleton) {
|
|
2680
2691
|
// Inline function 'org.kodein.di.instance' call
|
|
2681
|
-
var tmp = $this$singleton.
|
|
2692
|
+
var tmp = $this$singleton.q5z();
|
|
2682
2693
|
// Inline function 'org.kodein.type.generic' call
|
|
2683
2694
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2684
2695
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2685
|
-
var tmp_1 = tmp.
|
|
2696
|
+
var tmp_1 = tmp.p5z(tmp$ret$0, null);
|
|
2686
2697
|
// Inline function 'org.kodein.di.instance' call
|
|
2687
|
-
var tmp_2 = $this$singleton.
|
|
2698
|
+
var tmp_2 = $this$singleton.q5z();
|
|
2688
2699
|
// Inline function 'org.kodein.type.generic' call
|
|
2689
2700
|
var tmp_3 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2690
2701
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
2691
|
-
var tmp_4 = tmp_2.
|
|
2702
|
+
var tmp_4 = tmp_2.p5z(tmp$ret$2, null);
|
|
2692
2703
|
// Inline function 'org.kodein.di.instance' call
|
|
2693
|
-
var tmp_5 = $this$singleton.
|
|
2704
|
+
var tmp_5 = $this$singleton.q5z();
|
|
2694
2705
|
// Inline function 'org.kodein.type.generic' call
|
|
2695
2706
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2696
2707
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2697
|
-
var tmp$ret$5 = tmp_5.
|
|
2708
|
+
var tmp$ret$5 = tmp_5.p5z(tmp$ret$4, null);
|
|
2698
2709
|
return new ToClientEventsObserverImpl(tmp_1, tmp_4, tmp$ret$5);
|
|
2699
2710
|
}
|
|
2700
2711
|
function getServerEngineGameDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig) {
|
|
2701
2712
|
return function ($this$Module) {
|
|
2702
|
-
$this$Module.
|
|
2703
|
-
$this$Module.
|
|
2713
|
+
$this$Module.f5y(jsonModule(emptyList()));
|
|
2714
|
+
$this$Module.f5y(getEngineGameModule($engineBotConfig, $engineLogicConfig, $dealerConfig));
|
|
2704
2715
|
// Inline function 'org.kodein.di.bind' call
|
|
2705
2716
|
// Inline function 'org.kodein.type.generic' call
|
|
2706
2717
|
var tmp = typeToken(createKType(getKClass(MechanicLifecycleReducer), arrayOf([]), false));
|
|
2707
2718
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
2708
|
-
var tmp_0 = $this$Module.
|
|
2719
|
+
var tmp_0 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
2709
2720
|
// Inline function 'org.kodein.di.provider' call
|
|
2710
2721
|
var creator = getServerEngineGameDI$lambda$lambda;
|
|
2711
|
-
var tmp_1 = $this$Module.
|
|
2722
|
+
var tmp_1 = $this$Module.g5y();
|
|
2712
2723
|
// Inline function 'org.kodein.type.generic' call
|
|
2713
2724
|
var tmp_2 = typeToken(createKType(getKClass(ServerMechanicLifecycleReducer), arrayOf([]), false));
|
|
2714
2725
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2715
2726
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
2716
|
-
tmp_0.
|
|
2727
|
+
tmp_0.b62(tmp$ret$3);
|
|
2717
2728
|
// Inline function 'org.kodein.di.bind' call
|
|
2718
2729
|
// Inline function 'org.kodein.type.generic' call
|
|
2719
2730
|
var tmp_3 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2720
2731
|
var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
2721
|
-
var tmp_4 = $this$Module.
|
|
2732
|
+
var tmp_4 = $this$Module.d5y(tmp$ret$4, null, null);
|
|
2722
2733
|
// Inline function 'org.kodein.di.provider' call
|
|
2723
2734
|
var creator_0 = getServerEngineGameDI$lambda$lambda_0;
|
|
2724
|
-
var tmp_5 = $this$Module.
|
|
2735
|
+
var tmp_5 = $this$Module.g5y();
|
|
2725
2736
|
// Inline function 'org.kodein.type.generic' call
|
|
2726
2737
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2727
2738
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2728
2739
|
var tmp$ret$7 = new Provider(tmp_5, tmp$ret$6, creator_0);
|
|
2729
|
-
tmp_4.
|
|
2740
|
+
tmp_4.b62(tmp$ret$7);
|
|
2730
2741
|
// Inline function 'org.kodein.di.bind' call
|
|
2731
2742
|
// Inline function 'org.kodein.type.generic' call
|
|
2732
2743
|
var tmp_7 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2733
2744
|
var tmp$ret$8 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
2734
|
-
var tmp_8 = $this$Module.
|
|
2745
|
+
var tmp_8 = $this$Module.d5y(tmp$ret$8, null, null);
|
|
2735
2746
|
// Inline function 'org.kodein.di.singleton' call
|
|
2736
2747
|
var creator_1 = getServerEngineGameDI$lambda$lambda_1;
|
|
2737
|
-
var tmp_9 = $this$Module.
|
|
2738
|
-
var tmp_10 = $this$Module.
|
|
2739
|
-
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();
|
|
2740
2751
|
// Inline function 'org.kodein.type.generic' call
|
|
2741
2752
|
var tmp_12 = typeToken(createKType(getKClass(ToClientEventsObserverImpl), arrayOf([]), false));
|
|
2742
2753
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2743
2754
|
var tmp$ret$11 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$10, null, true, creator_1);
|
|
2744
|
-
tmp_8.
|
|
2755
|
+
tmp_8.b62(tmp$ret$11);
|
|
2745
2756
|
return Unit_instance;
|
|
2746
2757
|
};
|
|
2747
2758
|
}
|
|
@@ -2751,27 +2762,27 @@
|
|
|
2751
2762
|
};
|
|
2752
2763
|
}
|
|
2753
2764
|
function createGameServerDI$lambda$lambda_0($this$singleton) {
|
|
2754
|
-
return new ServerGameStoreContract($this$singleton.
|
|
2765
|
+
return new ServerGameStoreContract($this$singleton.n5y());
|
|
2755
2766
|
}
|
|
2756
2767
|
function createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares) {
|
|
2757
2768
|
return function ($this$singleton) {
|
|
2758
|
-
var tmp = $this$singleton.
|
|
2769
|
+
var tmp = $this$singleton.n5y();
|
|
2759
2770
|
// Inline function 'org.kodein.di.instance' call
|
|
2760
|
-
var tmp_0 = $this$singleton.
|
|
2771
|
+
var tmp_0 = $this$singleton.q5z();
|
|
2761
2772
|
// Inline function 'org.kodein.type.generic' call
|
|
2762
2773
|
var tmp_1 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
2763
2774
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
2764
|
-
var tmp$ret$1 = tmp_0.
|
|
2775
|
+
var tmp$ret$1 = tmp_0.p5z(tmp$ret$0, null);
|
|
2765
2776
|
return new GameServer(tmp, 'Game server', tmp$ret$1, VOID, $externalReducers, $externalMiddlewares);
|
|
2766
2777
|
};
|
|
2767
2778
|
}
|
|
2768
2779
|
function createGameServerDI$lambda$lambda_2($this$provider) {
|
|
2769
2780
|
// Inline function 'org.kodein.di.instance' call
|
|
2770
|
-
var tmp = $this$provider.
|
|
2781
|
+
var tmp = $this$provider.q5z();
|
|
2771
2782
|
// Inline function 'org.kodein.type.generic' call
|
|
2772
2783
|
var tmp_0 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2773
2784
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2774
|
-
return tmp.
|
|
2785
|
+
return tmp.p5z(tmp$ret$0, null);
|
|
2775
2786
|
}
|
|
2776
2787
|
function createGameServerDI$lambda($botConfig, $logicConfig, $dealerConfig, $serverConfig, $externalReducers, $externalMiddlewares) {
|
|
2777
2788
|
return function ($this$Module) {
|
|
@@ -2779,61 +2790,61 @@
|
|
|
2779
2790
|
// Inline function 'org.kodein.type.generic' call
|
|
2780
2791
|
var tmp = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2781
2792
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
2782
|
-
var tmp_0 = $this$Module.
|
|
2793
|
+
var tmp_0 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
2783
2794
|
// Inline function 'org.kodein.di.singleton' call
|
|
2784
2795
|
var creator = createGameServerDI$lambda$lambda($serverConfig);
|
|
2785
|
-
var tmp_1 = $this$Module.
|
|
2786
|
-
var tmp_2 = $this$Module.
|
|
2787
|
-
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();
|
|
2788
2799
|
// Inline function 'org.kodein.type.generic' call
|
|
2789
2800
|
var tmp_4 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2790
2801
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2791
2802
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
2792
|
-
tmp_0.
|
|
2793
|
-
$this$Module.
|
|
2803
|
+
tmp_0.b62(tmp$ret$3);
|
|
2804
|
+
$this$Module.f5y(getServerEngineGameDI($botConfig, $logicConfig, $dealerConfig));
|
|
2794
2805
|
// Inline function 'org.kodein.di.bind' call
|
|
2795
2806
|
// Inline function 'org.kodein.type.generic' call
|
|
2796
2807
|
var tmp_5 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
2797
2808
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
2798
|
-
var tmp_6 = $this$Module.
|
|
2809
|
+
var tmp_6 = $this$Module.d5y(tmp$ret$4, null, null);
|
|
2799
2810
|
// Inline function 'org.kodein.di.singleton' call
|
|
2800
2811
|
var creator_0 = createGameServerDI$lambda$lambda_0;
|
|
2801
|
-
var tmp_7 = $this$Module.
|
|
2802
|
-
var tmp_8 = $this$Module.
|
|
2803
|
-
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();
|
|
2804
2815
|
// Inline function 'org.kodein.type.generic' call
|
|
2805
2816
|
var tmp_10 = typeToken(createKType(getKClass(ServerGameStoreContract), arrayOf([]), false));
|
|
2806
2817
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2807
2818
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
2808
|
-
tmp_6.
|
|
2819
|
+
tmp_6.b62(tmp$ret$7);
|
|
2809
2820
|
// Inline function 'org.kodein.di.bind' call
|
|
2810
2821
|
// Inline function 'org.kodein.type.generic' call
|
|
2811
2822
|
var tmp_11 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2812
2823
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
2813
|
-
var tmp_12 = $this$Module.
|
|
2824
|
+
var tmp_12 = $this$Module.d5y(tmp$ret$8, null, null);
|
|
2814
2825
|
// Inline function 'org.kodein.di.singleton' call
|
|
2815
2826
|
var creator_1 = createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares);
|
|
2816
|
-
var tmp_13 = $this$Module.
|
|
2817
|
-
var tmp_14 = $this$Module.
|
|
2818
|
-
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();
|
|
2819
2830
|
// Inline function 'org.kodein.type.generic' call
|
|
2820
2831
|
var tmp_16 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2821
2832
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2822
2833
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
2823
|
-
tmp_12.
|
|
2834
|
+
tmp_12.b62(tmp$ret$11);
|
|
2824
2835
|
// Inline function 'org.kodein.di.bind' call
|
|
2825
2836
|
// Inline function 'org.kodein.type.generic' call
|
|
2826
2837
|
var tmp_17 = typeToken(createKType(getKClass(StateProvider), arrayOf([]), false));
|
|
2827
2838
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
2828
|
-
var tmp_18 = $this$Module.
|
|
2839
|
+
var tmp_18 = $this$Module.d5y(tmp$ret$12, null, null);
|
|
2829
2840
|
// Inline function 'org.kodein.di.provider' call
|
|
2830
2841
|
var creator_2 = createGameServerDI$lambda$lambda_2;
|
|
2831
|
-
var tmp_19 = $this$Module.
|
|
2842
|
+
var tmp_19 = $this$Module.g5y();
|
|
2832
2843
|
// Inline function 'org.kodein.type.generic' call
|
|
2833
2844
|
var tmp_20 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
2834
2845
|
var tmp$ret$14 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
2835
2846
|
var tmp$ret$15 = new Provider(tmp_19, tmp$ret$14, creator_2);
|
|
2836
|
-
tmp_18.
|
|
2847
|
+
tmp_18.b62(tmp$ret$15);
|
|
2837
2848
|
return Unit_instance;
|
|
2838
2849
|
};
|
|
2839
2850
|
}
|
|
@@ -2842,18 +2853,18 @@
|
|
|
2842
2853
|
function ToClientEventsObserver() {
|
|
2843
2854
|
}
|
|
2844
2855
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2845
|
-
this.
|
|
2846
|
-
this.
|
|
2856
|
+
this.n9w_1 = this$0;
|
|
2857
|
+
this.o9w_1 = $actions;
|
|
2847
2858
|
CoroutineImpl.call(this, resultContinuation);
|
|
2848
2859
|
}
|
|
2849
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2850
|
-
var tmp = this.
|
|
2860
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).v9w = function ($this$flow, $completion) {
|
|
2861
|
+
var tmp = this.w9w($this$flow, $completion);
|
|
2851
2862
|
tmp.h9_1 = Unit_instance;
|
|
2852
2863
|
tmp.i9_1 = null;
|
|
2853
2864
|
return tmp.n9();
|
|
2854
2865
|
};
|
|
2855
2866
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).x9 = function (p1, $completion) {
|
|
2856
|
-
return this.
|
|
2867
|
+
return this.v9w((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2857
2868
|
};
|
|
2858
2869
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).n9 = function () {
|
|
2859
2870
|
var suspendResult = this.h9_1;
|
|
@@ -2864,23 +2875,23 @@
|
|
|
2864
2875
|
case 0:
|
|
2865
2876
|
this.g9_1 = 4;
|
|
2866
2877
|
var tmp_0 = this;
|
|
2867
|
-
tmp_0.
|
|
2878
|
+
tmp_0.q9w_1 = this.n9w_1.b9x_1;
|
|
2868
2879
|
var tmp_1 = this;
|
|
2869
|
-
tmp_1.
|
|
2870
|
-
this.
|
|
2880
|
+
tmp_1.r9w_1 = transformToEmits(this.n9w_1, this.o9w_1);
|
|
2881
|
+
this.s9w_1 = this.r9w_1.j();
|
|
2871
2882
|
this.f9_1 = 1;
|
|
2872
2883
|
continue $sm;
|
|
2873
2884
|
case 1:
|
|
2874
|
-
if (!this.
|
|
2885
|
+
if (!this.s9w_1.k()) {
|
|
2875
2886
|
this.f9_1 = 3;
|
|
2876
2887
|
continue $sm;
|
|
2877
2888
|
}
|
|
2878
2889
|
|
|
2879
|
-
this.
|
|
2890
|
+
this.t9w_1 = this.s9w_1.l();
|
|
2880
2891
|
var tmp_2 = this;
|
|
2881
|
-
tmp_2.
|
|
2892
|
+
tmp_2.u9w_1 = this.t9w_1;
|
|
2882
2893
|
this.f9_1 = 2;
|
|
2883
|
-
suspendResult = this.
|
|
2894
|
+
suspendResult = this.p9w_1.q18(this.u9w_1, this);
|
|
2884
2895
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2885
2896
|
return suspendResult;
|
|
2886
2897
|
}
|
|
@@ -2891,10 +2902,10 @@
|
|
|
2891
2902
|
continue $sm;
|
|
2892
2903
|
case 3:
|
|
2893
2904
|
l$ret$1: do {
|
|
2894
|
-
var this_0 = this.
|
|
2905
|
+
var this_0 = this.n9w_1.a9x_1;
|
|
2895
2906
|
while (true) {
|
|
2896
2907
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2897
|
-
var upd = cur - this.
|
|
2908
|
+
var upd = cur - this.o9w_1.m() | 0;
|
|
2898
2909
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2899
2910
|
break l$ret$1;
|
|
2900
2911
|
}
|
|
@@ -2916,15 +2927,15 @@
|
|
|
2916
2927
|
}
|
|
2917
2928
|
while (true);
|
|
2918
2929
|
};
|
|
2919
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2920
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2921
|
-
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;
|
|
2922
2933
|
return i;
|
|
2923
2934
|
};
|
|
2924
2935
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2925
2936
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2926
2937
|
var l = function ($this$flow, $completion) {
|
|
2927
|
-
return i.
|
|
2938
|
+
return i.v9w($this$flow, $completion);
|
|
2928
2939
|
};
|
|
2929
2940
|
l.$arity = 1;
|
|
2930
2941
|
return l;
|
|
@@ -2997,29 +3008,29 @@
|
|
|
2997
3008
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
2998
3009
|
}
|
|
2999
3010
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3000
|
-
var tmp = $this.
|
|
3011
|
+
var tmp = $this.z9w_1.c6i();
|
|
3001
3012
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3002
|
-
var this_0 = _this__u8e3s4.
|
|
3013
|
+
var this_0 = _this__u8e3s4.e9x_1;
|
|
3003
3014
|
var tmp_0 = copyToArray(this_0);
|
|
3004
3015
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3005
|
-
var this_1 = _this__u8e3s4.
|
|
3016
|
+
var this_1 = _this__u8e3s4.f9x_1;
|
|
3006
3017
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3007
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3018
|
+
return new ActionDeliveryPayload(_this__u8e3s4.d9x_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.g9x_1);
|
|
3008
3019
|
}
|
|
3009
3020
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3010
|
-
this.
|
|
3011
|
-
this.
|
|
3012
|
-
this.
|
|
3013
|
-
this.
|
|
3021
|
+
this.d9x_1 = tableId;
|
|
3022
|
+
this.e9x_1 = includePlayers;
|
|
3023
|
+
this.f9x_1 = excludePlayers;
|
|
3024
|
+
this.g9x_1 = deliveryType;
|
|
3014
3025
|
}
|
|
3015
3026
|
protoOf(GroupKey).toString = function () {
|
|
3016
|
-
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() + ')';
|
|
3017
3028
|
};
|
|
3018
3029
|
protoOf(GroupKey).hashCode = function () {
|
|
3019
|
-
var result = getStringHashCode(this.
|
|
3020
|
-
result = imul(result, 31) + hashCode(this.
|
|
3021
|
-
result = imul(result, 31) + hashCode(this.
|
|
3022
|
-
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;
|
|
3023
3034
|
return result;
|
|
3024
3035
|
};
|
|
3025
3036
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3028,35 +3039,35 @@
|
|
|
3028
3039
|
if (!(other instanceof GroupKey))
|
|
3029
3040
|
return false;
|
|
3030
3041
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3031
|
-
if (!(this.
|
|
3042
|
+
if (!(this.d9x_1 === tmp0_other_with_cast.d9x_1))
|
|
3032
3043
|
return false;
|
|
3033
|
-
if (!equals(this.
|
|
3044
|
+
if (!equals(this.e9x_1, tmp0_other_with_cast.e9x_1))
|
|
3034
3045
|
return false;
|
|
3035
|
-
if (!equals(this.
|
|
3046
|
+
if (!equals(this.f9x_1, tmp0_other_with_cast.f9x_1))
|
|
3036
3047
|
return false;
|
|
3037
|
-
if (!this.
|
|
3048
|
+
if (!this.g9x_1.equals(tmp0_other_with_cast.g9x_1))
|
|
3038
3049
|
return false;
|
|
3039
3050
|
return true;
|
|
3040
3051
|
};
|
|
3041
3052
|
function Companion_1() {
|
|
3042
|
-
this.
|
|
3053
|
+
this.h9x_1 = 6;
|
|
3043
3054
|
}
|
|
3044
3055
|
var Companion_instance_9;
|
|
3045
3056
|
function Companion_getInstance_2() {
|
|
3046
3057
|
return Companion_instance_9;
|
|
3047
3058
|
}
|
|
3048
3059
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3049
|
-
this.
|
|
3060
|
+
this.q9x_1 = this$0;
|
|
3050
3061
|
CoroutineImpl.call(this, resultContinuation);
|
|
3051
3062
|
}
|
|
3052
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3053
|
-
var tmp = this.
|
|
3063
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).s9x = function (actions, $completion) {
|
|
3064
|
+
var tmp = this.t9x(actions, $completion);
|
|
3054
3065
|
tmp.h9_1 = Unit_instance;
|
|
3055
3066
|
tmp.i9_1 = null;
|
|
3056
3067
|
return tmp.n9();
|
|
3057
3068
|
};
|
|
3058
3069
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).x9 = function (p1, $completion) {
|
|
3059
|
-
return this.
|
|
3070
|
+
return this.s9x((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3060
3071
|
};
|
|
3061
3072
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).n9 = function () {
|
|
3062
3073
|
var suspendResult = this.h9_1;
|
|
@@ -3065,7 +3076,7 @@
|
|
|
3065
3076
|
var tmp = this.f9_1;
|
|
3066
3077
|
if (tmp === 0) {
|
|
3067
3078
|
this.g9_1 = 1;
|
|
3068
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3079
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.q9x_1, this.r9x_1, null));
|
|
3069
3080
|
} else if (tmp === 1) {
|
|
3070
3081
|
throw this.i9_1;
|
|
3071
3082
|
}
|
|
@@ -3075,23 +3086,23 @@
|
|
|
3075
3086
|
}
|
|
3076
3087
|
while (true);
|
|
3077
3088
|
};
|
|
3078
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3079
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3080
|
-
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;
|
|
3081
3092
|
return i;
|
|
3082
3093
|
};
|
|
3083
3094
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3084
3095
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3085
3096
|
var l = function (actions, $completion) {
|
|
3086
|
-
return i.
|
|
3097
|
+
return i.s9x(actions, $completion);
|
|
3087
3098
|
};
|
|
3088
3099
|
l.$arity = 1;
|
|
3089
3100
|
return l;
|
|
3090
3101
|
}
|
|
3091
3102
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3092
3103
|
CoroutineImpl.call(this, resultContinuation);
|
|
3093
|
-
this.
|
|
3094
|
-
this.
|
|
3104
|
+
this.c9y_1 = _this__u8e3s4;
|
|
3105
|
+
this.d9y_1 = fromEvent;
|
|
3095
3106
|
}
|
|
3096
3107
|
protoOf($sentEventCOROUTINE$3).n9 = function () {
|
|
3097
3108
|
var suspendResult = this.h9_1;
|
|
@@ -3102,9 +3113,9 @@
|
|
|
3102
3113
|
case 0:
|
|
3103
3114
|
this.g9_1 = 2;
|
|
3104
3115
|
var tmp_0 = this;
|
|
3105
|
-
tmp_0.
|
|
3116
|
+
tmp_0.e9y_1 = this.c9y_1.b9x_1;
|
|
3106
3117
|
l$ret$1: do {
|
|
3107
|
-
var this_0 = this.
|
|
3118
|
+
var this_0 = this.c9y_1.a9x_1;
|
|
3108
3119
|
while (true) {
|
|
3109
3120
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3110
3121
|
var upd = cur + 1 | 0;
|
|
@@ -3115,7 +3126,7 @@
|
|
|
3115
3126
|
}
|
|
3116
3127
|
while (false);
|
|
3117
3128
|
this.f9_1 = 1;
|
|
3118
|
-
suspendResult = this.
|
|
3129
|
+
suspendResult = this.c9y_1.c9x_1.q18(this.d9y_1, this);
|
|
3119
3130
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3120
3131
|
return suspendResult;
|
|
3121
3132
|
}
|
|
@@ -3139,7 +3150,7 @@
|
|
|
3139
3150
|
};
|
|
3140
3151
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3141
3152
|
CoroutineImpl.call(this, resultContinuation);
|
|
3142
|
-
this.
|
|
3153
|
+
this.n9y_1 = _this__u8e3s4;
|
|
3143
3154
|
}
|
|
3144
3155
|
protoOf($waitForCOROUTINE$4).n9 = function () {
|
|
3145
3156
|
var suspendResult = this.h9_1;
|
|
@@ -3150,12 +3161,12 @@
|
|
|
3150
3161
|
case 0:
|
|
3151
3162
|
this.g9_1 = 5;
|
|
3152
3163
|
var tmp_0 = this;
|
|
3153
|
-
tmp_0.
|
|
3154
|
-
this.
|
|
3164
|
+
tmp_0.o9y_1 = this.n9y_1.b9x_1;
|
|
3165
|
+
this.p9y_1 = 0;
|
|
3155
3166
|
this.f9_1 = 1;
|
|
3156
3167
|
continue $sm;
|
|
3157
3168
|
case 1:
|
|
3158
|
-
if (!!(this.
|
|
3169
|
+
if (!!(this.n9y_1.a9x_1.kotlinx$atomicfu$value === 0)) {
|
|
3159
3170
|
this.f9_1 = 4;
|
|
3160
3171
|
continue $sm;
|
|
3161
3172
|
}
|
|
@@ -3168,9 +3179,9 @@
|
|
|
3168
3179
|
|
|
3169
3180
|
continue $sm;
|
|
3170
3181
|
case 2:
|
|
3171
|
-
this.
|
|
3172
|
-
if (this.
|
|
3173
|
-
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);
|
|
3174
3185
|
this.f9_1 = 4;
|
|
3175
3186
|
continue $sm;
|
|
3176
3187
|
} else {
|
|
@@ -3198,42 +3209,42 @@
|
|
|
3198
3209
|
while (true);
|
|
3199
3210
|
};
|
|
3200
3211
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3201
|
-
this.
|
|
3202
|
-
this.
|
|
3203
|
-
this.
|
|
3204
|
-
this.
|
|
3212
|
+
this.x9w_1 = serverReduxConfig;
|
|
3213
|
+
this.y9w_1 = logger;
|
|
3214
|
+
this.z9w_1 = idsProvider;
|
|
3215
|
+
this.a9x_1 = atomic$ref$1(0);
|
|
3205
3216
|
var tmp = this;
|
|
3206
3217
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3207
|
-
tmp.
|
|
3208
|
-
this.
|
|
3218
|
+
tmp.b9x_1 = get_atomicfu$reentrantLock();
|
|
3219
|
+
this.c9x_1 = MutableSharedFlow();
|
|
3209
3220
|
}
|
|
3210
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3221
|
+
protoOf(ToClientEventsObserverImpl).e9w = function (fromEvent, $completion) {
|
|
3211
3222
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3212
3223
|
tmp.h9_1 = Unit_instance;
|
|
3213
3224
|
tmp.i9_1 = null;
|
|
3214
3225
|
return tmp.n9();
|
|
3215
3226
|
};
|
|
3216
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3227
|
+
protoOf(ToClientEventsObserverImpl).k99 = function ($completion) {
|
|
3217
3228
|
var tmp = new $waitForCOROUTINE$4(this, $completion);
|
|
3218
3229
|
tmp.h9_1 = Unit_instance;
|
|
3219
3230
|
tmp.i9_1 = null;
|
|
3220
3231
|
return tmp.n9();
|
|
3221
3232
|
};
|
|
3222
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3223
|
-
if (!this.
|
|
3224
|
-
return this.
|
|
3233
|
+
protoOf(ToClientEventsObserverImpl).m9n = function () {
|
|
3234
|
+
if (!this.x9w_1.enabledCombinedEvents) {
|
|
3235
|
+
return this.c9x_1;
|
|
3225
3236
|
}
|
|
3226
|
-
var tmp = windowedByInterval(this.
|
|
3237
|
+
var tmp = windowedByInterval(this.c9x_1, toLong(this.x9w_1.combinedEventsPeriod));
|
|
3227
3238
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3228
3239
|
};
|
|
3229
3240
|
function UpdateServerConfigAction(serverConfig) {
|
|
3230
|
-
this.
|
|
3241
|
+
this.q9y_1 = serverConfig;
|
|
3231
3242
|
}
|
|
3232
3243
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3233
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3244
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.q9y_1.toString() + ')';
|
|
3234
3245
|
};
|
|
3235
3246
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3236
|
-
return this.
|
|
3247
|
+
return this.q9y_1.hashCode();
|
|
3237
3248
|
};
|
|
3238
3249
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3239
3250
|
if (this === other)
|
|
@@ -3241,20 +3252,20 @@
|
|
|
3241
3252
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3242
3253
|
return false;
|
|
3243
3254
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3244
|
-
if (!this.
|
|
3255
|
+
if (!this.q9y_1.equals(tmp0_other_with_cast.q9y_1))
|
|
3245
3256
|
return false;
|
|
3246
3257
|
return true;
|
|
3247
3258
|
};
|
|
3248
3259
|
function SpectatorsAction() {
|
|
3249
3260
|
}
|
|
3250
3261
|
function AddSpectatorsAction(spectators) {
|
|
3251
|
-
this.
|
|
3262
|
+
this.r9y_1 = spectators;
|
|
3252
3263
|
}
|
|
3253
3264
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3254
|
-
return 'AddSpectatorsAction(spectators=' +
|
|
3265
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.r9y_1) + ')';
|
|
3255
3266
|
};
|
|
3256
3267
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3257
|
-
return hashCode(this.
|
|
3268
|
+
return hashCode(this.r9y_1);
|
|
3258
3269
|
};
|
|
3259
3270
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3260
3271
|
if (this === other)
|
|
@@ -3262,18 +3273,18 @@
|
|
|
3262
3273
|
if (!(other instanceof AddSpectatorsAction))
|
|
3263
3274
|
return false;
|
|
3264
3275
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3265
|
-
if (!equals(this.
|
|
3276
|
+
if (!equals(this.r9y_1, tmp0_other_with_cast.r9y_1))
|
|
3266
3277
|
return false;
|
|
3267
3278
|
return true;
|
|
3268
3279
|
};
|
|
3269
3280
|
function RemoveSpectatorsAction(spectators) {
|
|
3270
|
-
this.
|
|
3281
|
+
this.s9y_1 = spectators;
|
|
3271
3282
|
}
|
|
3272
3283
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3273
|
-
return 'RemoveSpectatorsAction(spectators=' +
|
|
3284
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.s9y_1) + ')';
|
|
3274
3285
|
};
|
|
3275
3286
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3276
|
-
return hashCode(this.
|
|
3287
|
+
return hashCode(this.s9y_1);
|
|
3277
3288
|
};
|
|
3278
3289
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3279
3290
|
if (this === other)
|
|
@@ -3281,78 +3292,78 @@
|
|
|
3281
3292
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3282
3293
|
return false;
|
|
3283
3294
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3284
|
-
if (!equals(this.
|
|
3295
|
+
if (!equals(this.s9y_1, tmp0_other_with_cast.s9y_1))
|
|
3285
3296
|
return false;
|
|
3286
3297
|
return true;
|
|
3287
3298
|
};
|
|
3288
3299
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3289
3300
|
// Inline function 'kotlin.getValue' call
|
|
3290
|
-
var this_0 = $this.
|
|
3301
|
+
var this_0 = $this.y9y_1;
|
|
3291
3302
|
asyncProvider$factory_0();
|
|
3292
3303
|
return this_0.u();
|
|
3293
3304
|
}
|
|
3294
3305
|
function _get_logger__rkp4sl_0($this) {
|
|
3295
3306
|
// Inline function 'kotlin.getValue' call
|
|
3296
|
-
var this_0 = $this.
|
|
3307
|
+
var this_0 = $this.z9y_1;
|
|
3297
3308
|
logger$factory_2();
|
|
3298
3309
|
return this_0.u();
|
|
3299
3310
|
}
|
|
3300
3311
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3301
3312
|
// Inline function 'kotlin.getValue' call
|
|
3302
|
-
var this_0 = $this.
|
|
3313
|
+
var this_0 = $this.a9z_1;
|
|
3303
3314
|
playerConnectionInteractor$factory_2();
|
|
3304
3315
|
return this_0.u();
|
|
3305
3316
|
}
|
|
3306
3317
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3307
3318
|
// Inline function 'kotlin.getValue' call
|
|
3308
|
-
var this_0 = $this.
|
|
3319
|
+
var this_0 = $this.b9z_1;
|
|
3309
3320
|
lastCardInteractor$factory_0();
|
|
3310
3321
|
return this_0.u();
|
|
3311
3322
|
}
|
|
3312
3323
|
function _get_serverConfig__rk2g06($this) {
|
|
3313
3324
|
// Inline function 'kotlin.getValue' call
|
|
3314
|
-
var this_0 = $this.
|
|
3325
|
+
var this_0 = $this.c9z_1;
|
|
3315
3326
|
serverConfig$factory_0();
|
|
3316
3327
|
return this_0.u();
|
|
3317
3328
|
}
|
|
3318
3329
|
function _get_logicConfig__52ww9d($this) {
|
|
3319
3330
|
// Inline function 'kotlin.getValue' call
|
|
3320
|
-
var this_0 = $this.
|
|
3331
|
+
var this_0 = $this.d9z_1;
|
|
3321
3332
|
logicConfig$factory_0();
|
|
3322
3333
|
return this_0.u();
|
|
3323
3334
|
}
|
|
3324
3335
|
function _get_idsProvider__fnfajc_0($this) {
|
|
3325
3336
|
// Inline function 'kotlin.getValue' call
|
|
3326
|
-
var this_0 = $this.
|
|
3337
|
+
var this_0 = $this.e9z_1;
|
|
3327
3338
|
idsProvider$factory_2();
|
|
3328
3339
|
return this_0.u();
|
|
3329
3340
|
}
|
|
3330
3341
|
function _get_botConfig__cpaxzc($this) {
|
|
3331
3342
|
// Inline function 'kotlin.getValue' call
|
|
3332
|
-
var this_0 = $this.
|
|
3343
|
+
var this_0 = $this.f9z_1;
|
|
3333
3344
|
botConfig$factory_0();
|
|
3334
3345
|
return this_0.u();
|
|
3335
3346
|
}
|
|
3336
3347
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3337
3348
|
// Inline function 'kotlin.getValue' call
|
|
3338
|
-
var this_0 = $this.
|
|
3349
|
+
var this_0 = $this.g9z_1;
|
|
3339
3350
|
scenePositionProvider$factory_0();
|
|
3340
3351
|
return this_0.u();
|
|
3341
3352
|
}
|
|
3342
3353
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3343
3354
|
// Inline function 'kotlin.getValue' call
|
|
3344
|
-
var this_0 = $this.
|
|
3355
|
+
var this_0 = $this.h9z_1;
|
|
3345
3356
|
toClientEventsObserver$factory_2();
|
|
3346
3357
|
return this_0.u();
|
|
3347
3358
|
}
|
|
3348
3359
|
function _get_fromClientEventsObserver__a7vzd3_0($this) {
|
|
3349
3360
|
// Inline function 'kotlin.getValue' call
|
|
3350
|
-
var this_0 = $this.
|
|
3361
|
+
var this_0 = $this.i9z_1;
|
|
3351
3362
|
fromClientEventsObserver$factory_2();
|
|
3352
3363
|
return this_0.u();
|
|
3353
3364
|
}
|
|
3354
3365
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
3355
|
-
return !player.
|
|
3366
|
+
return !player.x6c();
|
|
3356
3367
|
}
|
|
3357
3368
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
3358
3369
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -3360,83 +3371,83 @@
|
|
|
3360
3371
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3361
3372
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3362
3373
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3363
|
-
this.
|
|
3364
|
-
this.
|
|
3365
|
-
this.
|
|
3366
|
-
this.
|
|
3367
|
-
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;
|
|
3368
3379
|
var tmp = this;
|
|
3369
3380
|
// Inline function 'org.kodein.di.instance' call
|
|
3370
3381
|
// Inline function 'org.kodein.type.generic' call
|
|
3371
3382
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3372
3383
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3373
|
-
tmp.
|
|
3384
|
+
tmp.y9y_1 = Instance(di, tmp$ret$0, null).y63(this, asyncProvider$factory());
|
|
3374
3385
|
var tmp_1 = this;
|
|
3375
3386
|
// Inline function 'org.kodein.di.instance' call
|
|
3376
3387
|
// Inline function 'org.kodein.type.generic' call
|
|
3377
3388
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3378
3389
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3379
|
-
tmp_1.
|
|
3390
|
+
tmp_1.z9y_1 = Instance(di, tmp$ret$2, null).y63(this, logger$factory_1());
|
|
3380
3391
|
var tmp_3 = this;
|
|
3381
3392
|
// Inline function 'org.kodein.di.instance' call
|
|
3382
3393
|
// Inline function 'org.kodein.type.generic' call
|
|
3383
3394
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3384
3395
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3385
|
-
tmp_3.
|
|
3396
|
+
tmp_3.a9z_1 = Instance(di, tmp$ret$4, null).y63(this, playerConnectionInteractor$factory_1());
|
|
3386
3397
|
var tmp_5 = this;
|
|
3387
3398
|
// Inline function 'org.kodein.di.instance' call
|
|
3388
3399
|
// Inline function 'org.kodein.type.generic' call
|
|
3389
3400
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3390
3401
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3391
|
-
tmp_5.
|
|
3402
|
+
tmp_5.b9z_1 = Instance(di, tmp$ret$6, null).y63(this, lastCardInteractor$factory());
|
|
3392
3403
|
var tmp_7 = this;
|
|
3393
3404
|
// Inline function 'org.kodein.di.instance' call
|
|
3394
3405
|
// Inline function 'org.kodein.type.generic' call
|
|
3395
3406
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3396
3407
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3397
|
-
tmp_7.
|
|
3408
|
+
tmp_7.c9z_1 = Instance(di, tmp$ret$8, null).y63(this, serverConfig$factory());
|
|
3398
3409
|
var tmp_9 = this;
|
|
3399
3410
|
// Inline function 'org.kodein.di.instance' call
|
|
3400
3411
|
// Inline function 'org.kodein.type.generic' call
|
|
3401
3412
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3402
3413
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3403
|
-
tmp_9.
|
|
3414
|
+
tmp_9.d9z_1 = Instance(di, tmp$ret$10, null).y63(this, logicConfig$factory());
|
|
3404
3415
|
var tmp_11 = this;
|
|
3405
3416
|
// Inline function 'org.kodein.di.instance' call
|
|
3406
3417
|
// Inline function 'org.kodein.type.generic' call
|
|
3407
3418
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3408
3419
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3409
|
-
tmp_11.
|
|
3420
|
+
tmp_11.e9z_1 = Instance(di, tmp$ret$12, null).y63(this, idsProvider$factory_1());
|
|
3410
3421
|
var tmp_13 = this;
|
|
3411
3422
|
// Inline function 'org.kodein.di.instance' call
|
|
3412
3423
|
// Inline function 'org.kodein.type.generic' call
|
|
3413
3424
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3414
3425
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3415
|
-
tmp_13.
|
|
3426
|
+
tmp_13.f9z_1 = Instance(di, tmp$ret$14, null).y63(this, botConfig$factory());
|
|
3416
3427
|
var tmp_15 = this;
|
|
3417
3428
|
// Inline function 'org.kodein.di.instance' call
|
|
3418
3429
|
// Inline function 'org.kodein.type.generic' call
|
|
3419
3430
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3420
3431
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3421
|
-
tmp_15.
|
|
3432
|
+
tmp_15.g9z_1 = Instance(di, tmp$ret$16, null).y63(this, scenePositionProvider$factory());
|
|
3422
3433
|
var tmp_17 = this;
|
|
3423
3434
|
// Inline function 'org.kodein.di.instance' call
|
|
3424
3435
|
// Inline function 'org.kodein.type.generic' call
|
|
3425
3436
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3426
3437
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3427
|
-
tmp_17.
|
|
3438
|
+
tmp_17.h9z_1 = Instance(di, tmp$ret$18, null).y63(this, toClientEventsObserver$factory_1());
|
|
3428
3439
|
var tmp_19 = this;
|
|
3429
3440
|
// Inline function 'org.kodein.di.instance' call
|
|
3430
3441
|
// Inline function 'org.kodein.type.generic' call
|
|
3431
3442
|
var tmp_20 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
3432
3443
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3433
|
-
tmp_19.
|
|
3444
|
+
tmp_19.i9z_1 = Instance(di, tmp$ret$20, null).y63(this, fromClientEventsObserver$factory_1());
|
|
3434
3445
|
}
|
|
3435
|
-
protoOf(ServerGameStoreContract).
|
|
3436
|
-
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))]));
|
|
3437
3448
|
};
|
|
3438
|
-
protoOf(ServerGameStoreContract).
|
|
3439
|
-
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()]));
|
|
3440
3451
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3441
3452
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3442
3453
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3568,28 +3579,28 @@
|
|
|
3568
3579
|
}
|
|
3569
3580
|
function _no_name_provided__qut3iv_2() {
|
|
3570
3581
|
}
|
|
3571
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3582
|
+
protoOf(_no_name_provided__qut3iv_2).z6j = function (action) {
|
|
3572
3583
|
return action instanceof RoundEndedAction;
|
|
3573
3584
|
};
|
|
3574
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3585
|
+
protoOf(_no_name_provided__qut3iv_2).q6l = function (store, next, action) {
|
|
3575
3586
|
// Inline function 'games.jass.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
3576
3587
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
3577
3588
|
next(action_0);
|
|
3578
3589
|
var state = store.state;
|
|
3579
|
-
if (!get_serverStatePayload_0(state).
|
|
3580
|
-
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));
|
|
3581
3592
|
}
|
|
3582
3593
|
};
|
|
3583
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3584
|
-
return this.
|
|
3594
|
+
protoOf(_no_name_provided__qut3iv_2).y6j = function (store, next, action) {
|
|
3595
|
+
return this.q6l(store, next, action);
|
|
3585
3596
|
};
|
|
3586
3597
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3587
|
-
this.
|
|
3598
|
+
this.l9z_1 = this$0;
|
|
3588
3599
|
}
|
|
3589
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3600
|
+
protoOf(_no_name_provided__qut3iv_3).z6j = function (action) {
|
|
3590
3601
|
return action instanceof MechanicAction;
|
|
3591
3602
|
};
|
|
3592
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3603
|
+
protoOf(_no_name_provided__qut3iv_3).q6l = function (store, next, action) {
|
|
3593
3604
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>' call
|
|
3594
3605
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
3595
3606
|
var state = store.state;
|
|
@@ -3598,18 +3609,18 @@
|
|
|
3598
3609
|
var tmp;
|
|
3599
3610
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3600
3611
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3601
|
-
var this_0 = this.
|
|
3602
|
-
var tableId = action_0.
|
|
3603
|
-
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;
|
|
3604
3615
|
// Inline function 'kotlin.collections.map' call
|
|
3605
|
-
var this_1 = action_0.
|
|
3616
|
+
var this_1 = action_0.q8y_1;
|
|
3606
3617
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3607
3618
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3608
3619
|
var tmp0_iterator = this_1.j();
|
|
3609
3620
|
while (tmp0_iterator.k()) {
|
|
3610
3621
|
var item = tmp0_iterator.l();
|
|
3611
3622
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3612
|
-
var tmp$ret$0 = to(item.
|
|
3623
|
+
var tmp$ret$0 = to(item.e6b_1, PlayerConnectionState_LIVE_getInstance());
|
|
3613
3624
|
destination.e(tmp$ret$0);
|
|
3614
3625
|
}
|
|
3615
3626
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3643,7 +3654,7 @@
|
|
|
3643
3654
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3644
3655
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3645
3656
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3646
|
-
var tmp0_aid = this_0.
|
|
3657
|
+
var tmp0_aid = this_0.k9z_1.c6i();
|
|
3647
3658
|
// Inline function 'kotlin.collections.map' call
|
|
3648
3659
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3649
3660
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3668,17 +3679,17 @@
|
|
|
3668
3679
|
} else {
|
|
3669
3680
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3670
3681
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3671
|
-
var this_2 = this.
|
|
3672
|
-
var table = state.
|
|
3682
|
+
var this_2 = this.l9z_1;
|
|
3683
|
+
var table = state.w6r();
|
|
3673
3684
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3674
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3685
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.k9z_1.c6i(), table.id, null);
|
|
3675
3686
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3676
3687
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3677
3688
|
} else {
|
|
3678
3689
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3679
3690
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3680
|
-
var this_3 = this.
|
|
3681
|
-
var tableId_0 = action_0.
|
|
3691
|
+
var this_3 = this.l9z_1;
|
|
3692
|
+
var tableId_0 = action_0.t8y_1.id;
|
|
3682
3693
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3683
3694
|
// Inline function 'kotlin.collections.map' call
|
|
3684
3695
|
var this_4 = action_0.users;
|
|
@@ -3688,7 +3699,7 @@
|
|
|
3688
3699
|
while (tmp0_iterator_4.k()) {
|
|
3689
3700
|
var item_2 = tmp0_iterator_4.l();
|
|
3690
3701
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3691
|
-
var tmp$ret$20 = to(item_2.
|
|
3702
|
+
var tmp$ret$20 = to(item_2.e6b_1, PlayerConnectionState_LIVE_getInstance());
|
|
3692
3703
|
destination_4.e(tmp$ret$20);
|
|
3693
3704
|
}
|
|
3694
3705
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3722,7 +3733,7 @@
|
|
|
3722
3733
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3723
3734
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3724
3735
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3725
|
-
var tmp0_aid_0 = this_3.
|
|
3736
|
+
var tmp0_aid_0 = this_3.k9z_1.c6i();
|
|
3726
3737
|
// Inline function 'kotlin.collections.map' call
|
|
3727
3738
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3728
3739
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3747,44 +3758,44 @@
|
|
|
3747
3758
|
} else {
|
|
3748
3759
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3749
3760
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3750
|
-
var this_5 = this.
|
|
3751
|
-
var table_0 = state.
|
|
3761
|
+
var this_5 = this.l9z_1;
|
|
3762
|
+
var table_0 = state.w6r();
|
|
3752
3763
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3753
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3764
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.k9z_1.c6i(), table_0.id, null);
|
|
3754
3765
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3755
3766
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3756
3767
|
} else {
|
|
3757
3768
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3758
3769
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3759
|
-
var this_6 = this.
|
|
3760
|
-
var table_1 = state.
|
|
3770
|
+
var this_6 = this.l9z_1;
|
|
3771
|
+
var table_1 = state.w6r();
|
|
3761
3772
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3762
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3773
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.k9z_1.c6i(), table_1.id, null);
|
|
3763
3774
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3764
3775
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3765
3776
|
} else {
|
|
3766
3777
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3767
3778
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3768
|
-
var this_7 = this.
|
|
3769
|
-
var table_2 = state.
|
|
3779
|
+
var this_7 = this.l9z_1;
|
|
3780
|
+
var table_2 = state.w6r();
|
|
3770
3781
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3771
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3782
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.k9z_1.c6i(), table_2.id, null);
|
|
3772
3783
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3773
3784
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3774
3785
|
} else {
|
|
3775
3786
|
if (action_0 instanceof ErrorAction) {
|
|
3776
3787
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3777
|
-
var this_8 = this.
|
|
3778
|
-
var table_3 = state.
|
|
3788
|
+
var this_8 = this.l9z_1;
|
|
3789
|
+
var table_3 = state.w6r();
|
|
3779
3790
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3780
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3791
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.k9z_1.c6i(), table_3.id, null);
|
|
3781
3792
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3782
3793
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3783
3794
|
} else {
|
|
3784
3795
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3785
3796
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3786
|
-
var this_9 = this.
|
|
3787
|
-
var table_4 = state.
|
|
3797
|
+
var this_9 = this.l9z_1;
|
|
3798
|
+
var table_4 = state.w6r();
|
|
3788
3799
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3789
3800
|
var tableId_1 = table_4.id;
|
|
3790
3801
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -3820,7 +3831,7 @@
|
|
|
3820
3831
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3821
3832
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3822
3833
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3823
|
-
var tmp0_aid_1 = this_9.
|
|
3834
|
+
var tmp0_aid_1 = this_9.k9z_1.c6i();
|
|
3824
3835
|
// Inline function 'kotlin.collections.map' call
|
|
3825
3836
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3826
3837
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3845,8 +3856,8 @@
|
|
|
3845
3856
|
} else {
|
|
3846
3857
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3847
3858
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3848
|
-
var this_10 = this.
|
|
3849
|
-
var table_5 = state.
|
|
3859
|
+
var this_10 = this.l9z_1;
|
|
3860
|
+
var table_5 = state.w6r();
|
|
3850
3861
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3851
3862
|
var tableId_2 = table_5.id;
|
|
3852
3863
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -3882,7 +3893,7 @@
|
|
|
3882
3893
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3883
3894
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3884
3895
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3885
|
-
var tmp0_aid_2 = this_10.
|
|
3896
|
+
var tmp0_aid_2 = this_10.k9z_1.c6i();
|
|
3886
3897
|
// Inline function 'kotlin.collections.map' call
|
|
3887
3898
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3888
3899
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -3907,8 +3918,8 @@
|
|
|
3907
3918
|
} else {
|
|
3908
3919
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
3909
3920
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3910
|
-
var this_11 = this.
|
|
3911
|
-
var table_6 = state.
|
|
3921
|
+
var this_11 = this.l9z_1;
|
|
3922
|
+
var table_6 = state.w6r();
|
|
3912
3923
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3913
3924
|
var tableId_3 = table_6.id;
|
|
3914
3925
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -3944,7 +3955,7 @@
|
|
|
3944
3955
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3945
3956
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3946
3957
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3947
|
-
var tmp0_aid_3 = this_11.
|
|
3958
|
+
var tmp0_aid_3 = this_11.k9z_1.c6i();
|
|
3948
3959
|
// Inline function 'kotlin.collections.map' call
|
|
3949
3960
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3950
3961
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -3957,7 +3968,7 @@
|
|
|
3957
3968
|
}
|
|
3958
3969
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
3959
3970
|
var tmp_0;
|
|
3960
|
-
if (this.
|
|
3971
|
+
if (this.l9z_1.j9z_1.supportBackwardActions && getPlayer(state.w6r().players, sendToPlayer_8.r7e_1).t6x_1.x6x_1) {
|
|
3961
3972
|
tmp_0 = null;
|
|
3962
3973
|
} else {
|
|
3963
3974
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -3975,79 +3986,79 @@
|
|
|
3975
3986
|
} else {
|
|
3976
3987
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
3977
3988
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3978
|
-
var this_12 = this.
|
|
3979
|
-
var table_7 = state.
|
|
3980
|
-
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;
|
|
3981
3992
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3982
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
3993
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.k9z_1.c6i(), table_7.id, exceptPlayerId);
|
|
3983
3994
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
3984
3995
|
tmp = listOfNotNull(tmp$ret$94);
|
|
3985
3996
|
} else {
|
|
3986
3997
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
3987
3998
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3988
|
-
var this_13 = this.
|
|
3989
|
-
var table_8 = state.
|
|
3990
|
-
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;
|
|
3991
4002
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3992
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4003
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.k9z_1.c6i(), table_8.id, exceptPlayerId_0);
|
|
3993
4004
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
3994
4005
|
tmp = listOfNotNull(tmp$ret$96);
|
|
3995
4006
|
} else {
|
|
3996
4007
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
3997
4008
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3998
|
-
var this_14 = this.
|
|
3999
|
-
var table_9 = state.
|
|
4009
|
+
var this_14 = this.l9z_1;
|
|
4010
|
+
var table_9 = state.w6r();
|
|
4000
4011
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4001
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4012
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.k9z_1.c6i(), table_9.id, null);
|
|
4002
4013
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4003
4014
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4004
4015
|
} else {
|
|
4005
4016
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4006
4017
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4007
|
-
var this_15 = this.
|
|
4008
|
-
var table_10 = state.
|
|
4009
|
-
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;
|
|
4010
4021
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4011
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4022
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.k9z_1.c6i(), table_10.id, exceptPlayerId_1);
|
|
4012
4023
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4013
4024
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4014
4025
|
} else {
|
|
4015
4026
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4016
4027
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4017
|
-
var this_16 = this.
|
|
4018
|
-
var table_11 = state.
|
|
4019
|
-
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;
|
|
4020
4031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4021
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4032
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.k9z_1.c6i(), table_11.id, exceptPlayerId_2);
|
|
4022
4033
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4023
4034
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4024
4035
|
} else {
|
|
4025
4036
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4026
4037
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4027
|
-
var this_17 = this.
|
|
4028
|
-
var table_12 = state.
|
|
4038
|
+
var this_17 = this.l9z_1;
|
|
4039
|
+
var table_12 = state.w6r();
|
|
4029
4040
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4030
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4041
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.k9z_1.c6i(), table_12.id, null);
|
|
4031
4042
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4032
4043
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4033
4044
|
} else {
|
|
4034
4045
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4035
4046
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4036
|
-
var this_18 = this.
|
|
4037
|
-
var table_13 = state.
|
|
4047
|
+
var this_18 = this.l9z_1;
|
|
4048
|
+
var table_13 = state.w6r();
|
|
4038
4049
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4039
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4050
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.k9z_1.c6i(), table_13.id, null);
|
|
4040
4051
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4041
4052
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4042
4053
|
} else {
|
|
4043
4054
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4044
|
-
var message = action_0.
|
|
4055
|
+
var message = action_0.x8z_1;
|
|
4045
4056
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4046
|
-
var this_19 = this.
|
|
4047
|
-
var table_14 = state.
|
|
4057
|
+
var this_19 = this.l9z_1;
|
|
4058
|
+
var table_14 = state.w6r();
|
|
4048
4059
|
var tmp_1;
|
|
4049
4060
|
var tmp_2;
|
|
4050
|
-
if (this.
|
|
4061
|
+
if (this.l9z_1.j9z_1.supportBackwardActions) {
|
|
4051
4062
|
tmp_2 = isInterface(message, UserMessage);
|
|
4052
4063
|
} else {
|
|
4053
4064
|
tmp_2 = false;
|
|
@@ -4059,17 +4070,17 @@
|
|
|
4059
4070
|
}
|
|
4060
4071
|
var exceptPlayerId_3 = tmp_1;
|
|
4061
4072
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4062
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4073
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.k9z_1.c6i(), table_14.id, exceptPlayerId_3);
|
|
4063
4074
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4064
4075
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4065
4076
|
} else {
|
|
4066
4077
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4067
4078
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4068
|
-
var this_20 = this.
|
|
4069
|
-
var table_15 = state.
|
|
4079
|
+
var this_20 = this.l9z_1;
|
|
4080
|
+
var table_15 = state.w6r();
|
|
4070
4081
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4071
4082
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4072
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4083
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.k9z_1.c6i(), table_15.id, exceptPlayerId_4);
|
|
4073
4084
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4074
4085
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4075
4086
|
} else {
|
|
@@ -4103,14 +4114,14 @@
|
|
|
4103
4114
|
}
|
|
4104
4115
|
next(action_0);
|
|
4105
4116
|
};
|
|
4106
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
4107
|
-
return this.
|
|
4117
|
+
protoOf(_no_name_provided__qut3iv_3).y6j = function (store, next, action) {
|
|
4118
|
+
return this.q6l(store, next, action);
|
|
4108
4119
|
};
|
|
4109
4120
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4110
|
-
this.
|
|
4111
|
-
this.
|
|
4121
|
+
this.j9z_1 = logicConfig;
|
|
4122
|
+
this.k9z_1 = idsProvider;
|
|
4112
4123
|
}
|
|
4113
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
4124
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).u93 = function () {
|
|
4114
4125
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
4115
4126
|
return new _no_name_provided__qut3iv_3(this);
|
|
4116
4127
|
};
|
|
@@ -4119,8 +4130,8 @@
|
|
|
4119
4130
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4120
4131
|
}
|
|
4121
4132
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4122
|
-
this.
|
|
4123
|
-
this.
|
|
4133
|
+
this.u9z_1 = $provider;
|
|
4134
|
+
this.v9z_1 = $action;
|
|
4124
4135
|
CoroutineImpl.call(this, resultContinuation);
|
|
4125
4136
|
}
|
|
4126
4137
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, $completion) {
|
|
@@ -4141,7 +4152,7 @@
|
|
|
4141
4152
|
case 0:
|
|
4142
4153
|
this.g9_1 = 2;
|
|
4143
4154
|
this.f9_1 = 1;
|
|
4144
|
-
suspendResult = this.
|
|
4155
|
+
suspendResult = this.u9z_1.e9w(this.v9z_1, this);
|
|
4145
4156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4146
4157
|
return suspendResult;
|
|
4147
4158
|
}
|
|
@@ -4164,8 +4175,8 @@
|
|
|
4164
4175
|
while (true);
|
|
4165
4176
|
};
|
|
4166
4177
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).m1e = function ($this$launchDefault, completion) {
|
|
4167
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4168
|
-
i.
|
|
4178
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.u9z_1, this.v9z_1, completion);
|
|
4179
|
+
i.w9z_1 = $this$launchDefault;
|
|
4169
4180
|
return i;
|
|
4170
4181
|
};
|
|
4171
4182
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4177,20 +4188,20 @@
|
|
|
4177
4188
|
return l;
|
|
4178
4189
|
}
|
|
4179
4190
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4180
|
-
this.
|
|
4181
|
-
this.
|
|
4191
|
+
this.x9z_1 = $asyncProvider;
|
|
4192
|
+
this.y9z_1 = $provider;
|
|
4182
4193
|
}
|
|
4183
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4194
|
+
protoOf(_no_name_provided__qut3iv_4).z6j = function (action) {
|
|
4184
4195
|
return action instanceof ToClientAction;
|
|
4185
4196
|
};
|
|
4186
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4197
|
+
protoOf(_no_name_provided__qut3iv_4).q6l = function (store, next, action) {
|
|
4187
4198
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4188
4199
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4189
|
-
this.
|
|
4200
|
+
this.x9z_1.z6g(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.y9z_1, action_0, null));
|
|
4190
4201
|
next(action_0);
|
|
4191
4202
|
};
|
|
4192
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4193
|
-
return this.
|
|
4203
|
+
protoOf(_no_name_provided__qut3iv_4).y6j = function (store, next, action) {
|
|
4204
|
+
return this.q6l(store, next, action);
|
|
4194
4205
|
};
|
|
4195
4206
|
function serverConfigReducer() {
|
|
4196
4207
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -4198,96 +4209,96 @@
|
|
|
4198
4209
|
}
|
|
4199
4210
|
function _no_name_provided__qut3iv_5() {
|
|
4200
4211
|
}
|
|
4201
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4212
|
+
protoOf(_no_name_provided__qut3iv_5).z6j = function (action) {
|
|
4202
4213
|
return action instanceof UpdateServerConfigAction;
|
|
4203
4214
|
};
|
|
4204
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4215
|
+
protoOf(_no_name_provided__qut3iv_5).c9b = function (state, action) {
|
|
4205
4216
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4206
4217
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4207
|
-
return state.
|
|
4218
|
+
return state.o8x(VOID, get_serverStatePayload_0(state).z9z(action_0.q9y_1));
|
|
4208
4219
|
};
|
|
4209
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4210
|
-
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);
|
|
4211
4222
|
};
|
|
4212
4223
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
4213
4224
|
return function (it) {
|
|
4214
4225
|
var tmp = Companion_instance_1;
|
|
4215
4226
|
var tmp_0;
|
|
4216
4227
|
if (it.isBot) {
|
|
4217
|
-
tmp_0 = Companion_instance_2.
|
|
4228
|
+
tmp_0 = Companion_instance_2.g6c(PlayerConnectionState_LEFT_getInstance());
|
|
4218
4229
|
} else {
|
|
4219
4230
|
var tmp_1 = Companion_instance_2;
|
|
4220
4231
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
4221
4232
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4222
4233
|
Companion_getInstance();
|
|
4223
|
-
var this_0 = $action.
|
|
4234
|
+
var this_0 = $action.m8y_1.timeoutTimeMillis;
|
|
4224
4235
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4225
|
-
tmp_0 = tmp_1.
|
|
4236
|
+
tmp_0 = tmp_1.f6c(tmp_2, tmp$ret$0);
|
|
4226
4237
|
}
|
|
4227
|
-
return tmp.
|
|
4238
|
+
return tmp.n6d(tmp_0);
|
|
4228
4239
|
};
|
|
4229
4240
|
}
|
|
4230
4241
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4231
4242
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4232
|
-
this.
|
|
4243
|
+
this.ca0_1 = logger;
|
|
4233
4244
|
}
|
|
4234
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4235
|
-
var serverState = get_serverStatePayloadOrNull(state.
|
|
4245
|
+
protoOf(ServerMechanicLifecycleReducer).o9c = function (state, action) {
|
|
4246
|
+
var serverState = get_serverStatePayloadOrNull(state.v6q_1);
|
|
4236
4247
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4237
|
-
var tmp0_$this = this.
|
|
4238
|
-
var tmp1_tableId = action.
|
|
4239
|
-
var tmp2_gameId = action.
|
|
4240
|
-
var tmp3_version = action.
|
|
4241
|
-
var tmp4_config = action.
|
|
4242
|
-
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;
|
|
4243
4254
|
var tmp6_spectators = action.spectators;
|
|
4244
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
4245
|
-
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));
|
|
4246
4257
|
var tmp;
|
|
4247
4258
|
if (serverState == null) {
|
|
4248
|
-
this.
|
|
4249
|
-
tmp = Companion_instance_10.
|
|
4259
|
+
this.ca0_1.w(VOID, 'ServerPayload is not onStart');
|
|
4260
|
+
tmp = Companion_instance_10.w9v();
|
|
4250
4261
|
} else {
|
|
4251
4262
|
tmp = serverState;
|
|
4252
4263
|
}
|
|
4253
4264
|
var tmp10_payload = tmp;
|
|
4254
|
-
return state.
|
|
4265
|
+
return state.o8x(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4255
4266
|
};
|
|
4256
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4267
|
+
protoOf(ServerMechanicLifecycleReducer).m9c = function (state, action) {
|
|
4257
4268
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4258
|
-
var tmp2_tableOrNull = action.
|
|
4269
|
+
var tmp2_tableOrNull = action.t8y_1;
|
|
4259
4270
|
var tmp = Companion_instance_10;
|
|
4260
|
-
var tmp_0 = get_serverStatePayload_0(state).
|
|
4261
|
-
var tmp_1 = action.
|
|
4271
|
+
var tmp_0 = get_serverStatePayload_0(state).f9v_1;
|
|
4272
|
+
var tmp_1 = action.u8y_1;
|
|
4262
4273
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
4263
|
-
var tmp3_payload = tmp.
|
|
4264
|
-
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);
|
|
4265
4276
|
};
|
|
4266
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4267
|
-
this.
|
|
4277
|
+
protoOf(ServerMechanicLifecycleReducer).n9c = function (state, action) {
|
|
4278
|
+
this.q9c_1.i5r(action.previousGameId);
|
|
4268
4279
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4269
|
-
var tmp1_tableOrNull = this.
|
|
4270
|
-
return state.
|
|
4280
|
+
var tmp1_tableOrNull = this.p9c_1.v9d(state.w6r(), action.gameId);
|
|
4281
|
+
return state.o8x(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
4271
4282
|
};
|
|
4272
4283
|
function spectatorsReducer(logger) {
|
|
4273
4284
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
4274
4285
|
return new _no_name_provided__qut3iv_6(logger);
|
|
4275
4286
|
}
|
|
4276
4287
|
function _no_name_provided__qut3iv_6($logger) {
|
|
4277
|
-
this.
|
|
4288
|
+
this.ea0_1 = $logger;
|
|
4278
4289
|
}
|
|
4279
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4290
|
+
protoOf(_no_name_provided__qut3iv_6).z6j = function (action) {
|
|
4280
4291
|
return isInterface(action, SpectatorsAction);
|
|
4281
4292
|
};
|
|
4282
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4293
|
+
protoOf(_no_name_provided__qut3iv_6).c9b = function (state, action) {
|
|
4283
4294
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
4284
4295
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
4285
|
-
var table = state.
|
|
4296
|
+
var table = state.w6r();
|
|
4286
4297
|
var tmp;
|
|
4287
4298
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4288
4299
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4289
4300
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4290
|
-
var this_0 = action_0.
|
|
4301
|
+
var this_0 = action_0.r9y_1;
|
|
4291
4302
|
var destination = ArrayList_init_$Create$_0();
|
|
4292
4303
|
// Inline function 'kotlin.collections.forEach' call
|
|
4293
4304
|
var tmp0_iterator = this_0.j();
|
|
@@ -4295,7 +4306,7 @@
|
|
|
4295
4306
|
var element = tmp0_iterator.l();
|
|
4296
4307
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4297
4308
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
4298
|
-
var tmp0_safe_receiver = singleOrNull(filterByPlayerId(table.spectators, element.
|
|
4309
|
+
var tmp0_safe_receiver = singleOrNull(filterByPlayerId(table.spectators, element.e6b_1));
|
|
4299
4310
|
if (tmp0_safe_receiver == null)
|
|
4300
4311
|
null;
|
|
4301
4312
|
else {
|
|
@@ -4309,10 +4320,10 @@
|
|
|
4309
4320
|
var tmp_0;
|
|
4310
4321
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4311
4322
|
if (!sameSpectators.p()) {
|
|
4312
|
-
this.
|
|
4323
|
+
this.ea0_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4313
4324
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4314
4325
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4315
|
-
var this_1 = action_0.
|
|
4326
|
+
var this_1 = action_0.r9y_1;
|
|
4316
4327
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4317
4328
|
var tmp0_iterator_0 = this_1.j();
|
|
4318
4329
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4335,7 +4346,7 @@
|
|
|
4335
4346
|
while (tmp0_iterator_1.k()) {
|
|
4336
4347
|
var element_1 = tmp0_iterator_1.l();
|
|
4337
4348
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4338
|
-
if (element_0.
|
|
4349
|
+
if (element_0.e6b_1 === element_1.playerId) {
|
|
4339
4350
|
tmp$ret$5 = true;
|
|
4340
4351
|
break $l$block_0;
|
|
4341
4352
|
}
|
|
@@ -4348,7 +4359,7 @@
|
|
|
4348
4359
|
}
|
|
4349
4360
|
tmp_0 = destination_0;
|
|
4350
4361
|
} else {
|
|
4351
|
-
tmp_0 = action_0.
|
|
4362
|
+
tmp_0 = action_0.r9y_1;
|
|
4352
4363
|
}
|
|
4353
4364
|
var this_2 = tmp_0;
|
|
4354
4365
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4361,12 +4372,12 @@
|
|
|
4361
4372
|
destination_1.e(tmp$ret$10);
|
|
4362
4373
|
}
|
|
4363
4374
|
var spectatorsToAdd = toSet(destination_1);
|
|
4364
|
-
tmp = state.
|
|
4375
|
+
tmp = state.o8x(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
4365
4376
|
} else {
|
|
4366
4377
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4367
4378
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4368
4379
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4369
|
-
var this_3 = action_0.
|
|
4380
|
+
var this_3 = action_0.s9y_1;
|
|
4370
4381
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4371
4382
|
// Inline function 'kotlin.collections.forEach' call
|
|
4372
4383
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4374,7 +4385,7 @@
|
|
|
4374
4385
|
var element_2 = tmp0_iterator_3.l();
|
|
4375
4386
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4376
4387
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
4377
|
-
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));
|
|
4378
4389
|
if (tmp0_safe_receiver_0 == null)
|
|
4379
4390
|
null;
|
|
4380
4391
|
else {
|
|
@@ -4387,10 +4398,10 @@
|
|
|
4387
4398
|
var tmp_2;
|
|
4388
4399
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4389
4400
|
if (!sameSpectators_0.p()) {
|
|
4390
|
-
this.
|
|
4401
|
+
this.ea0_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4391
4402
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4392
4403
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4393
|
-
var this_4 = action_0.
|
|
4404
|
+
var this_4 = action_0.s9y_1;
|
|
4394
4405
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4395
4406
|
var tmp0_iterator_4 = this_4.j();
|
|
4396
4407
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4413,7 +4424,7 @@
|
|
|
4413
4424
|
while (tmp0_iterator_5.k()) {
|
|
4414
4425
|
var element_4 = tmp0_iterator_5.l();
|
|
4415
4426
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4416
|
-
if (element_3.
|
|
4427
|
+
if (element_3.e6b_1 === element_4.playerId) {
|
|
4417
4428
|
tmp$ret$18 = true;
|
|
4418
4429
|
break $l$block_2;
|
|
4419
4430
|
}
|
|
@@ -4426,7 +4437,7 @@
|
|
|
4426
4437
|
}
|
|
4427
4438
|
tmp_2 = destination_3;
|
|
4428
4439
|
} else {
|
|
4429
|
-
tmp_2 = action_0.
|
|
4440
|
+
tmp_2 = action_0.s9y_1;
|
|
4430
4441
|
}
|
|
4431
4442
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4432
4443
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4454,7 +4465,7 @@
|
|
|
4454
4465
|
while (tmp0_iterator_7.k()) {
|
|
4455
4466
|
var element_6 = tmp0_iterator_7.l();
|
|
4456
4467
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4457
|
-
if (element_5.playerId === element_6.
|
|
4468
|
+
if (element_5.playerId === element_6.e6b_1) {
|
|
4458
4469
|
tmp$ret$23 = true;
|
|
4459
4470
|
break $l$block_4;
|
|
4460
4471
|
}
|
|
@@ -4465,40 +4476,40 @@
|
|
|
4465
4476
|
destination_4.e(element_5);
|
|
4466
4477
|
}
|
|
4467
4478
|
}
|
|
4468
|
-
tmp = state.
|
|
4479
|
+
tmp = state.o8x(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
4469
4480
|
} else {
|
|
4470
4481
|
noWhenBranchMatchedException();
|
|
4471
4482
|
}
|
|
4472
4483
|
}
|
|
4473
4484
|
return tmp;
|
|
4474
4485
|
};
|
|
4475
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4476
|
-
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);
|
|
4477
4488
|
};
|
|
4478
4489
|
function Companion_2() {
|
|
4479
4490
|
}
|
|
4480
|
-
protoOf(Companion_2).
|
|
4491
|
+
protoOf(Companion_2).da0 = function (config) {
|
|
4481
4492
|
return new ServerStatePayload(config);
|
|
4482
4493
|
};
|
|
4483
|
-
protoOf(Companion_2).
|
|
4484
|
-
config = config === VOID ? Companion_instance_8.
|
|
4485
|
-
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);
|
|
4486
4497
|
};
|
|
4487
4498
|
var Companion_instance_10;
|
|
4488
4499
|
function Companion_getInstance_3() {
|
|
4489
4500
|
return Companion_instance_10;
|
|
4490
4501
|
}
|
|
4491
4502
|
function ServerStatePayload(config) {
|
|
4492
|
-
this.
|
|
4503
|
+
this.f9v_1 = config;
|
|
4493
4504
|
}
|
|
4494
|
-
protoOf(ServerStatePayload).
|
|
4505
|
+
protoOf(ServerStatePayload).z9z = function (config) {
|
|
4495
4506
|
return new ServerStatePayload(config);
|
|
4496
4507
|
};
|
|
4497
4508
|
protoOf(ServerStatePayload).toString = function () {
|
|
4498
|
-
return 'ServerStatePayload(config=' + this.
|
|
4509
|
+
return 'ServerStatePayload(config=' + this.f9v_1.toString() + ')';
|
|
4499
4510
|
};
|
|
4500
4511
|
protoOf(ServerStatePayload).hashCode = function () {
|
|
4501
|
-
return this.
|
|
4512
|
+
return this.f9v_1.hashCode();
|
|
4502
4513
|
};
|
|
4503
4514
|
protoOf(ServerStatePayload).equals = function (other) {
|
|
4504
4515
|
if (this === other)
|
|
@@ -4506,7 +4517,7 @@
|
|
|
4506
4517
|
if (!(other instanceof ServerStatePayload))
|
|
4507
4518
|
return false;
|
|
4508
4519
|
var tmp0_other_with_cast = other instanceof ServerStatePayload ? other : THROW_CCE();
|
|
4509
|
-
if (!this.
|
|
4520
|
+
if (!this.f9v_1.equals(tmp0_other_with_cast.f9v_1))
|
|
4510
4521
|
return false;
|
|
4511
4522
|
return true;
|
|
4512
4523
|
};
|
|
@@ -4518,7 +4529,7 @@
|
|
|
4518
4529
|
}
|
|
4519
4530
|
function get_serverStatePayload_0(_this__u8e3s4) {
|
|
4520
4531
|
// Inline function 'kotlin.requireNotNull' call
|
|
4521
|
-
var value = _this__u8e3s4.
|
|
4532
|
+
var value = _this__u8e3s4.v6q_1;
|
|
4522
4533
|
// Inline function 'kotlin.contracts.contract' call
|
|
4523
4534
|
var tmp$ret$1;
|
|
4524
4535
|
$l$block: {
|
|
@@ -4527,7 +4538,7 @@
|
|
|
4527
4538
|
if (value == null) {
|
|
4528
4539
|
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
4529
4540
|
var message = 'Required value was null.';
|
|
4530
|
-
throw IllegalArgumentException_init_$Create$(
|
|
4541
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4531
4542
|
} else {
|
|
4532
4543
|
tmp$ret$1 = value;
|
|
4533
4544
|
break $l$block;
|
|
@@ -4544,30 +4555,30 @@
|
|
|
4544
4555
|
}
|
|
4545
4556
|
function _get_logger__rkp4sl_1($this) {
|
|
4546
4557
|
// Inline function 'kotlin.getValue' call
|
|
4547
|
-
var this_0 = $this.
|
|
4558
|
+
var this_0 = $this.na0_1;
|
|
4548
4559
|
logger$factory_3();
|
|
4549
4560
|
return this_0.u();
|
|
4550
4561
|
}
|
|
4551
4562
|
function _get_di__ndbzja($this) {
|
|
4552
4563
|
// Inline function 'kotlin.getValue' call
|
|
4553
|
-
var this_0 = $this.
|
|
4564
|
+
var this_0 = $this.oa0_1;
|
|
4554
4565
|
di$factory();
|
|
4555
4566
|
return this_0.u();
|
|
4556
4567
|
}
|
|
4557
4568
|
function createDI($this, combinedLogger, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
4558
4569
|
var tmp = Companion_instance_3;
|
|
4559
|
-
return tmp.
|
|
4570
|
+
return tmp.m5y(VOID, GameServerEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, $this, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
4560
4571
|
}
|
|
4561
4572
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
4562
4573
|
return function () {
|
|
4563
4574
|
var tmp;
|
|
4564
|
-
if (this$0.
|
|
4575
|
+
if (this$0.la0_1 == null) {
|
|
4565
4576
|
tmp = null;
|
|
4566
4577
|
} else {
|
|
4567
4578
|
// Inline function 'kotlin.let' call
|
|
4568
4579
|
// Inline function 'kotlin.contracts.contract' call
|
|
4569
4580
|
// Inline function 'GameServerEngineControllerImpl.logger$delegate.<anonymous>.<anonymous>' call
|
|
4570
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4581
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.la0_1)]));
|
|
4571
4582
|
}
|
|
4572
4583
|
var tmp1_elvis_lhs = tmp;
|
|
4573
4584
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4584,38 +4595,38 @@
|
|
|
4584
4595
|
// Inline function 'org.kodein.type.generic' call
|
|
4585
4596
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4586
4597
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4587
|
-
var tmp_0 = $this$DI.
|
|
4598
|
+
var tmp_0 = $this$DI.d5y(tmp$ret$0, null, null);
|
|
4588
4599
|
// Inline function 'org.kodein.di.provider' call
|
|
4589
4600
|
var creator = GameServerEngineControllerImpl$di$delegate$lambda$lambda$lambda(this$0);
|
|
4590
|
-
var tmp_1 = $this$DI.
|
|
4601
|
+
var tmp_1 = $this$DI.g5y();
|
|
4591
4602
|
// Inline function 'org.kodein.type.generic' call
|
|
4592
4603
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4593
4604
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4594
4605
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
4595
|
-
tmp_0.
|
|
4596
|
-
$this$DI.
|
|
4597
|
-
$this$DI.
|
|
4598
|
-
$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));
|
|
4599
4610
|
return Unit_instance;
|
|
4600
4611
|
};
|
|
4601
4612
|
}
|
|
4602
4613
|
function GameServerEngineControllerImpl$di$delegate$lambda(this$0) {
|
|
4603
4614
|
return function () {
|
|
4604
4615
|
var tmp = Companion_instance_3;
|
|
4605
|
-
return tmp.
|
|
4616
|
+
return tmp.m5y(VOID, GameServerEngineControllerImpl$di$delegate$lambda$lambda(this$0));
|
|
4606
4617
|
};
|
|
4607
4618
|
}
|
|
4608
4619
|
function _no_name_provided__qut3iv_7($item) {
|
|
4609
|
-
this.
|
|
4620
|
+
this.ua0_1 = $item;
|
|
4610
4621
|
}
|
|
4611
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4622
|
+
protoOf(_no_name_provided__qut3iv_7).z6j = function (action) {
|
|
4612
4623
|
return isInterface(action, Action);
|
|
4613
4624
|
};
|
|
4614
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4615
|
-
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());
|
|
4616
4627
|
};
|
|
4617
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4618
|
-
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);
|
|
4619
4630
|
};
|
|
4620
4631
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4621
4632
|
return function ($this$singleton) {
|
|
@@ -4635,17 +4646,17 @@
|
|
|
4635
4646
|
// Inline function 'org.kodein.type.generic' call
|
|
4636
4647
|
var tmp_0 = typeToken(createKType(getKClass(FileLoggerOutput), arrayOf([]), false));
|
|
4637
4648
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4638
|
-
var tmp_1 = $this$Module.
|
|
4649
|
+
var tmp_1 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
4639
4650
|
// Inline function 'org.kodein.di.singleton' call
|
|
4640
4651
|
var creator = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput);
|
|
4641
|
-
var tmp_2 = $this$Module.
|
|
4642
|
-
var tmp_3 = $this$Module.
|
|
4643
|
-
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();
|
|
4644
4655
|
// Inline function 'org.kodein.type.generic' call
|
|
4645
4656
|
var tmp_5 = typeToken(createKType(getKClass(FileLoggerOutputImpl), arrayOf([]), false));
|
|
4646
4657
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4647
4658
|
var tmp$ret$3 = new Singleton(tmp_2, tmp_3, tmp_4, tmp$ret$2, null, true, creator);
|
|
4648
|
-
tmp_1.
|
|
4659
|
+
tmp_1.b62(tmp$ret$3);
|
|
4649
4660
|
tmp = Unit_instance;
|
|
4650
4661
|
}
|
|
4651
4662
|
var tmp_6;
|
|
@@ -4654,17 +4665,17 @@
|
|
|
4654
4665
|
// Inline function 'org.kodein.type.generic' call
|
|
4655
4666
|
var tmp_7 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4656
4667
|
var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
4657
|
-
var tmp_8 = $this$Module.
|
|
4668
|
+
var tmp_8 = $this$Module.d5y(tmp$ret$4, null, null);
|
|
4658
4669
|
// Inline function 'org.kodein.di.singleton' call
|
|
4659
4670
|
var creator_0 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda_0($callbackWrapperLoggerOutput);
|
|
4660
|
-
var tmp_9 = $this$Module.
|
|
4661
|
-
var tmp_10 = $this$Module.
|
|
4662
|
-
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();
|
|
4663
4674
|
// Inline function 'org.kodein.type.generic' call
|
|
4664
4675
|
var tmp_12 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4665
4676
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
4666
4677
|
var tmp$ret$7 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$6, null, true, creator_0);
|
|
4667
|
-
tmp_8.
|
|
4678
|
+
tmp_8.b62(tmp$ret$7);
|
|
4668
4679
|
tmp_6 = Unit_instance;
|
|
4669
4680
|
}
|
|
4670
4681
|
return Unit_instance;
|
|
@@ -4672,10 +4683,10 @@
|
|
|
4672
4683
|
}
|
|
4673
4684
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4674
4685
|
return function (it) {
|
|
4675
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4686
|
+
var tmp0_elvis_lhs = Companion_instance_4.x9f(it);
|
|
4676
4687
|
var tmp;
|
|
4677
4688
|
if (tmp0_elvis_lhs == null) {
|
|
4678
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4689
|
+
var tmp1_safe_receiver = $gameServer.o6b().u6q_1;
|
|
4679
4690
|
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
4680
4691
|
} else {
|
|
4681
4692
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4685,10 +4696,10 @@
|
|
|
4685
4696
|
}
|
|
4686
4697
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4687
4698
|
return function (it) {
|
|
4688
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4699
|
+
var tmp0_elvis_lhs = Companion_instance_5.i9e(it);
|
|
4689
4700
|
var tmp;
|
|
4690
4701
|
if (tmp0_elvis_lhs == null) {
|
|
4691
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4702
|
+
var tmp1_safe_receiver = $gameServer.o6b().u6q_1;
|
|
4692
4703
|
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
4693
4704
|
} else {
|
|
4694
4705
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4698,94 +4709,94 @@
|
|
|
4698
4709
|
}
|
|
4699
4710
|
function GameServerEngineControllerImpl$createDI$lambda($combinedLogger, $externalModule, this$0, $coreConfig, $serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares) {
|
|
4700
4711
|
return function ($this$DI) {
|
|
4701
|
-
$this$DI.
|
|
4712
|
+
$this$DI.f5y(combinedLoggerModule($combinedLogger));
|
|
4702
4713
|
var tmp0_safe_receiver = $externalModule;
|
|
4703
4714
|
if (tmp0_safe_receiver == null)
|
|
4704
4715
|
null;
|
|
4705
4716
|
else {
|
|
4706
4717
|
// Inline function 'kotlin.let' call
|
|
4707
4718
|
// Inline function 'kotlin.contracts.contract' call
|
|
4708
|
-
$this$DI.
|
|
4719
|
+
$this$DI.f5y(tmp0_safe_receiver);
|
|
4709
4720
|
}
|
|
4710
|
-
$this$DI.
|
|
4711
|
-
$this$DI.
|
|
4712
|
-
$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));
|
|
4713
4724
|
return Unit_instance;
|
|
4714
4725
|
};
|
|
4715
4726
|
}
|
|
4716
4727
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4717
4728
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4718
4729
|
production = production === VOID ? true : production;
|
|
4719
|
-
this.
|
|
4720
|
-
this.
|
|
4721
|
-
AppEnvironment_getInstance().
|
|
4730
|
+
this.la0_1 = loggerCallback;
|
|
4731
|
+
this.ma0_1 = randomOrgConfig;
|
|
4732
|
+
AppEnvironment_getInstance().c6q(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4722
4733
|
var tmp = this;
|
|
4723
|
-
tmp.
|
|
4734
|
+
tmp.na0_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
4724
4735
|
var tmp_0 = this;
|
|
4725
|
-
tmp_0.
|
|
4736
|
+
tmp_0.oa0_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4726
4737
|
var tmp_1 = this;
|
|
4727
4738
|
// Inline function 'org.kodein.di.instance' call
|
|
4728
4739
|
var this_0 = _get_di__ndbzja(this);
|
|
4729
4740
|
// Inline function 'org.kodein.type.generic' call
|
|
4730
4741
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4731
4742
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4732
|
-
tmp_1.
|
|
4743
|
+
tmp_1.pa0_1 = Instance(this_0, tmp$ret$0, null).y63(this, parser$factory());
|
|
4733
4744
|
var tmp_3 = this;
|
|
4734
4745
|
// Inline function 'org.kodein.di.instance' call
|
|
4735
4746
|
var this_1 = _get_di__ndbzja(this);
|
|
4736
4747
|
// Inline function 'org.kodein.type.generic' call
|
|
4737
4748
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4738
4749
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4739
|
-
tmp_3.
|
|
4750
|
+
tmp_3.qa0_1 = Instance(this_1, tmp$ret$2, null).y63(this, helper$factory());
|
|
4740
4751
|
var tmp_5 = this;
|
|
4741
4752
|
// Inline function 'org.kodein.di.instance' call
|
|
4742
4753
|
var this_2 = _get_di__ndbzja(this);
|
|
4743
4754
|
// Inline function 'org.kodein.type.generic' call
|
|
4744
4755
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4745
4756
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4746
|
-
tmp_5.
|
|
4757
|
+
tmp_5.ra0_1 = Instance(this_2, tmp$ret$4, null).y63(this, resources$factory());
|
|
4747
4758
|
var tmp_7 = this;
|
|
4748
4759
|
// Inline function 'org.kodein.di.instance' call
|
|
4749
4760
|
var this_3 = _get_di__ndbzja(this);
|
|
4750
4761
|
// Inline function 'org.kodein.type.generic' call
|
|
4751
4762
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4752
4763
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4753
|
-
tmp_7.
|
|
4764
|
+
tmp_7.sa0_1 = Instance(this_3, tmp$ret$6, null).y63(this, test$factory());
|
|
4754
4765
|
var tmp_9 = this;
|
|
4755
4766
|
// Inline function 'org.kodein.di.instance' call
|
|
4756
4767
|
var this_4 = _get_di__ndbzja(this);
|
|
4757
4768
|
// Inline function 'org.kodein.type.generic' call
|
|
4758
4769
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4759
4770
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4760
|
-
tmp_9.
|
|
4771
|
+
tmp_9.ta0_1 = Instance(this_4, tmp$ret$8, null).y63(this, randomPoolProvider$factory());
|
|
4761
4772
|
}
|
|
4762
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4773
|
+
protoOf(GameServerEngineControllerImpl).fa0 = function () {
|
|
4763
4774
|
// Inline function 'kotlin.getValue' call
|
|
4764
|
-
var this_0 = this.
|
|
4775
|
+
var this_0 = this.pa0_1;
|
|
4765
4776
|
parser$factory_0();
|
|
4766
4777
|
return this_0.u();
|
|
4767
4778
|
};
|
|
4768
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4779
|
+
protoOf(GameServerEngineControllerImpl).ha0 = function () {
|
|
4769
4780
|
// Inline function 'kotlin.getValue' call
|
|
4770
|
-
var this_0 = this.
|
|
4781
|
+
var this_0 = this.qa0_1;
|
|
4771
4782
|
helper$factory_0();
|
|
4772
4783
|
return this_0.u();
|
|
4773
4784
|
};
|
|
4774
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4785
|
+
protoOf(GameServerEngineControllerImpl).ia0 = function () {
|
|
4775
4786
|
// Inline function 'kotlin.getValue' call
|
|
4776
|
-
var this_0 = this.
|
|
4787
|
+
var this_0 = this.ra0_1;
|
|
4777
4788
|
resources$factory_0();
|
|
4778
4789
|
return this_0.u();
|
|
4779
4790
|
};
|
|
4780
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4791
|
+
protoOf(GameServerEngineControllerImpl).ga0 = function () {
|
|
4781
4792
|
// Inline function 'kotlin.getValue' call
|
|
4782
|
-
var this_0 = this.
|
|
4793
|
+
var this_0 = this.sa0_1;
|
|
4783
4794
|
test$factory_0();
|
|
4784
4795
|
return this_0.u();
|
|
4785
4796
|
};
|
|
4786
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4797
|
+
protoOf(GameServerEngineControllerImpl).ja0 = function () {
|
|
4787
4798
|
// Inline function 'kotlin.getValue' call
|
|
4788
|
-
var this_0 = this.
|
|
4799
|
+
var this_0 = this.ta0_1;
|
|
4789
4800
|
randomPoolProvider$factory_0();
|
|
4790
4801
|
return this_0.u();
|
|
4791
4802
|
};
|
|
@@ -4795,7 +4806,7 @@
|
|
|
4795
4806
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4796
4807
|
return this.createGameEngineWithLogic();
|
|
4797
4808
|
};
|
|
4798
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4809
|
+
protoOf(GameServerEngineControllerImpl).ka0 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4799
4810
|
var combinedLogger = Companion_instance_6.rm();
|
|
4800
4811
|
var tmp;
|
|
4801
4812
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4805,8 +4816,8 @@
|
|
|
4805
4816
|
}
|
|
4806
4817
|
var fileLoggerOutput = tmp;
|
|
4807
4818
|
var tmp_0;
|
|
4808
|
-
if (!(this.
|
|
4809
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4819
|
+
if (!(this.la0_1 == null)) {
|
|
4820
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.la0_1));
|
|
4810
4821
|
} else {
|
|
4811
4822
|
tmp_0 = null;
|
|
4812
4823
|
}
|
|
@@ -4842,19 +4853,19 @@
|
|
|
4842
4853
|
var tmp3_externalModule = Module_init_$Create$('External Module', VOID, VOID, GameServerEngineControllerImpl$createGameEngineWithLogic$lambda(fileLoggerOutput, callbackWrapperLoggerOutput));
|
|
4843
4854
|
var di = createDI(this, combinedLogger, coreConfig, serverConfig, logicConfig, tmp0_botConfig, dealerConfig, tmp1_externalReducers, tmp2_externalMiddlewares, tmp3_externalModule);
|
|
4844
4855
|
// Inline function 'org.kodein.di.instance' call
|
|
4845
|
-
var tmp_1 = get_direct(di).
|
|
4856
|
+
var tmp_1 = get_direct(di).q5z();
|
|
4846
4857
|
// Inline function 'org.kodein.type.generic' call
|
|
4847
4858
|
var tmp_2 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
4848
4859
|
var tmp$ret$7 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4849
|
-
var gameServer = tmp_1.
|
|
4860
|
+
var gameServer = tmp_1.p5z(tmp$ret$7, null);
|
|
4850
4861
|
if (!(fileLoggerOutput == null)) {
|
|
4851
4862
|
var tmp_3 = fileLoggerOutput;
|
|
4852
|
-
tmp_3.
|
|
4863
|
+
tmp_3.m9f_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4853
4864
|
combinedLogger.tm(fileLoggerOutput);
|
|
4854
4865
|
}
|
|
4855
4866
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4856
4867
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4857
|
-
tmp_4.
|
|
4868
|
+
tmp_4.k9e_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4858
4869
|
combinedLogger.tm(callbackWrapperLoggerOutput);
|
|
4859
4870
|
}
|
|
4860
4871
|
return gameServer;
|
|
@@ -4923,13 +4934,13 @@
|
|
|
4923
4934
|
}
|
|
4924
4935
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4925
4936
|
// Inline function 'kotlin.getValue' call
|
|
4926
|
-
var this_0 = $this.
|
|
4937
|
+
var this_0 = $this.xa0_1;
|
|
4927
4938
|
playerAnswerInteractor$factory_0();
|
|
4928
4939
|
return this_0.u();
|
|
4929
4940
|
}
|
|
4930
4941
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4931
4942
|
return function ($this$singleton) {
|
|
4932
|
-
return this$0.
|
|
4943
|
+
return this$0.va0_1;
|
|
4933
4944
|
};
|
|
4934
4945
|
}
|
|
4935
4946
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4938,19 +4949,19 @@
|
|
|
4938
4949
|
// Inline function 'org.kodein.type.generic' call
|
|
4939
4950
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4940
4951
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4941
|
-
var tmp_0 = $this$DI.
|
|
4952
|
+
var tmp_0 = $this$DI.d5y(tmp$ret$0, null, null);
|
|
4942
4953
|
// Inline function 'org.kodein.di.singleton' call
|
|
4943
4954
|
var creator = TestHelperImpl$di$lambda$lambda(this$0);
|
|
4944
|
-
var tmp_1 = $this$DI.
|
|
4945
|
-
var tmp_2 = $this$DI.
|
|
4946
|
-
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();
|
|
4947
4958
|
// Inline function 'org.kodein.type.generic' call
|
|
4948
4959
|
var tmp_4 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4949
4960
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4950
4961
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
4951
|
-
tmp_0.
|
|
4952
|
-
$this$DI.
|
|
4953
|
-
$this$DI.
|
|
4962
|
+
tmp_0.b62(tmp$ret$3);
|
|
4963
|
+
$this$DI.f5y(jsonModule(emptyList()));
|
|
4964
|
+
$this$DI.f5y(get_botGameModule());
|
|
4954
4965
|
return Unit_instance;
|
|
4955
4966
|
};
|
|
4956
4967
|
}
|
|
@@ -4958,20 +4969,20 @@
|
|
|
4958
4969
|
return emptyMap();
|
|
4959
4970
|
}
|
|
4960
4971
|
function TestHelperImpl(logger) {
|
|
4961
|
-
this.
|
|
4972
|
+
this.va0_1 = logger;
|
|
4962
4973
|
var tmp = this;
|
|
4963
4974
|
var tmp_0 = Companion_instance_3;
|
|
4964
|
-
tmp.
|
|
4975
|
+
tmp.wa0_1 = tmp_0.m5y(VOID, TestHelperImpl$di$lambda(this));
|
|
4965
4976
|
var tmp_1 = this;
|
|
4966
4977
|
// Inline function 'org.kodein.di.instance' call
|
|
4967
|
-
var this_0 = this.
|
|
4978
|
+
var this_0 = this.wa0_1;
|
|
4968
4979
|
// Inline function 'org.kodein.type.generic' call
|
|
4969
4980
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4970
4981
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4971
|
-
tmp_1.
|
|
4982
|
+
tmp_1.xa0_1 = Instance(this_0, tmp$ret$0, null).y63(this, playerAnswerInteractor$factory());
|
|
4972
4983
|
}
|
|
4973
4984
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4974
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
4985
|
+
return _get_playerAnswerInteractor__msggz1(this).n8n(playerId, table, botConfig);
|
|
4975
4986
|
};
|
|
4976
4987
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4977
4988
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4979,7 +4990,7 @@
|
|
|
4979
4990
|
var tmp$ret$0;
|
|
4980
4991
|
$l$block_0: {
|
|
4981
4992
|
// Inline function 'kotlin.collections.any' call
|
|
4982
|
-
var this_0 = mechanicAction.
|
|
4993
|
+
var this_0 = mechanicAction.g91();
|
|
4983
4994
|
var tmp;
|
|
4984
4995
|
if (isInterface(this_0, Collection)) {
|
|
4985
4996
|
tmp = this_0.p();
|
|
@@ -5012,7 +5023,7 @@
|
|
|
5012
5023
|
var tmp$ret$0;
|
|
5013
5024
|
$l$block_0: {
|
|
5014
5025
|
// Inline function 'kotlin.collections.any' call
|
|
5015
|
-
var this_0 = action.
|
|
5026
|
+
var this_0 = action.g91();
|
|
5016
5027
|
var tmp;
|
|
5017
5028
|
if (isInterface(this_0, Collection)) {
|
|
5018
5029
|
tmp = this_0.p();
|
|
@@ -5054,37 +5065,37 @@
|
|
|
5054
5065
|
return Module_init_$Create$('Server helpers Module', VOID, VOID, serverHelpersModule$lambda);
|
|
5055
5066
|
}
|
|
5056
5067
|
function serverHelpersModule$lambda($this$Module) {
|
|
5057
|
-
$this$Module.
|
|
5058
|
-
$this$Module.
|
|
5068
|
+
$this$Module.f5y(get_ratingModule());
|
|
5069
|
+
$this$Module.f5y(engineHelpersModule());
|
|
5059
5070
|
// Inline function 'org.kodein.di.bind' call
|
|
5060
5071
|
// Inline function 'org.kodein.type.generic' call
|
|
5061
5072
|
var tmp = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
5062
5073
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
5063
|
-
var tmp_0 = $this$Module.
|
|
5074
|
+
var tmp_0 = $this$Module.d5y(tmp$ret$0, null, null);
|
|
5064
5075
|
// Inline function 'org.kodein.di.singleton' call
|
|
5065
5076
|
var creator = serverHelpersModule$lambda$lambda;
|
|
5066
|
-
var tmp_1 = $this$Module.
|
|
5067
|
-
var tmp_2 = $this$Module.
|
|
5068
|
-
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();
|
|
5069
5080
|
// Inline function 'org.kodein.type.generic' call
|
|
5070
5081
|
var tmp_4 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
5071
5082
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
5072
5083
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
5073
|
-
tmp_0.
|
|
5084
|
+
tmp_0.b62(tmp$ret$3);
|
|
5074
5085
|
return Unit_instance;
|
|
5075
5086
|
}
|
|
5076
5087
|
function serverHelpersModule$lambda$lambda($this$singleton) {
|
|
5077
5088
|
// Inline function 'org.kodein.di.instance' call
|
|
5078
|
-
var tmp = $this$singleton.
|
|
5089
|
+
var tmp = $this$singleton.q5z();
|
|
5079
5090
|
// Inline function 'org.kodein.type.generic' call
|
|
5080
5091
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
5081
5092
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
5082
|
-
var tmp$ret$1 = tmp.
|
|
5093
|
+
var tmp$ret$1 = tmp.p5z(tmp$ret$0, null);
|
|
5083
5094
|
return new TestHelperImpl(tmp$ret$1);
|
|
5084
5095
|
}
|
|
5085
5096
|
//region block: post-declaration
|
|
5086
5097
|
defineProp(protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1), 'playerId', function () {
|
|
5087
|
-
return this.
|
|
5098
|
+
return this.p6a();
|
|
5088
5099
|
});
|
|
5089
5100
|
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
5090
5101
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
@@ -5093,41 +5104,41 @@
|
|
|
5093
5104
|
return this.f5l();
|
|
5094
5105
|
});
|
|
5095
5106
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
5096
|
-
return this.
|
|
5107
|
+
return this.w6r();
|
|
5097
5108
|
});
|
|
5098
5109
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
5099
|
-
return this.
|
|
5110
|
+
return this.x6r();
|
|
5100
5111
|
});
|
|
5101
5112
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
5102
|
-
return this.
|
|
5113
|
+
return this.y6r();
|
|
5103
5114
|
});
|
|
5104
|
-
protoOf(UpdateServerConfigAction).
|
|
5115
|
+
protoOf(UpdateServerConfigAction).q6j = get_actionTag;
|
|
5105
5116
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
5106
|
-
return this.
|
|
5117
|
+
return this.q6j();
|
|
5107
5118
|
});
|
|
5108
|
-
protoOf(AddSpectatorsAction).
|
|
5119
|
+
protoOf(AddSpectatorsAction).q6j = get_actionTag;
|
|
5109
5120
|
defineProp(protoOf(AddSpectatorsAction), 'actionTag', function () {
|
|
5110
|
-
return this.
|
|
5121
|
+
return this.q6j();
|
|
5111
5122
|
});
|
|
5112
|
-
protoOf(RemoveSpectatorsAction).
|
|
5123
|
+
protoOf(RemoveSpectatorsAction).q6j = get_actionTag;
|
|
5113
5124
|
defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
|
|
5114
|
-
return this.
|
|
5125
|
+
return this.q6j();
|
|
5115
5126
|
});
|
|
5116
5127
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5117
5128
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5118
|
-
return this.
|
|
5129
|
+
return this.fa0();
|
|
5119
5130
|
});
|
|
5120
5131
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5121
|
-
return this.
|
|
5132
|
+
return this.ha0();
|
|
5122
5133
|
});
|
|
5123
5134
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5124
|
-
return this.
|
|
5135
|
+
return this.ia0();
|
|
5125
5136
|
});
|
|
5126
5137
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5127
|
-
return this.
|
|
5138
|
+
return this.ga0();
|
|
5128
5139
|
});
|
|
5129
5140
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5130
|
-
return this.
|
|
5141
|
+
return this.ja0();
|
|
5131
5142
|
});
|
|
5132
5143
|
//endregion
|
|
5133
5144
|
//region block: init
|