raspberry_games_server_game_logic 1.8.253 → 1.8.258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +3 -3
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +5701 -5603
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +26 -20
- package/Logic_Debertz-game_server.js +495 -495
- package/kotlin-kotlin-stdlib.js +24 -24
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
|
@@ -291,15 +291,15 @@
|
|
|
291
291
|
tmp = spectators;
|
|
292
292
|
}
|
|
293
293
|
spectators = tmp;
|
|
294
|
-
return this.
|
|
294
|
+
return this.d9e(roomId, gameCreatorId, config, users, transition, spectators);
|
|
295
295
|
}
|
|
296
296
|
function roomOnDelete(newRid, $super) {
|
|
297
297
|
newRid = newRid === VOID ? null : newRid;
|
|
298
|
-
return this.
|
|
298
|
+
return this.e9e(newRid);
|
|
299
299
|
}
|
|
300
300
|
function shutdown(reason, roomId, $super) {
|
|
301
301
|
roomId = roomId === VOID ? null : roomId;
|
|
302
|
-
return this.
|
|
302
|
+
return this.f9e(reason, roomId);
|
|
303
303
|
}
|
|
304
304
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
305
305
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
350
350
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
351
351
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
352
|
-
return this.
|
|
352
|
+
return this.l9i(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
353
353
|
}
|
|
354
354
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
355
355
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -358,17 +358,17 @@
|
|
|
358
358
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
359
359
|
//endregion
|
|
360
360
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
361
|
-
this.
|
|
361
|
+
this.p96_1 = $subscriber;
|
|
362
362
|
CoroutineImpl.call(this, resultContinuation);
|
|
363
363
|
}
|
|
364
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
365
|
-
var tmp = this.
|
|
364
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).r96 = function (it, $completion) {
|
|
365
|
+
var tmp = this.s96(it, $completion);
|
|
366
366
|
tmp.g9_1 = Unit_instance;
|
|
367
367
|
tmp.h9_1 = null;
|
|
368
368
|
return tmp.m9();
|
|
369
369
|
};
|
|
370
370
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
371
|
-
return this.
|
|
371
|
+
return this.r96(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
372
372
|
};
|
|
373
373
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
374
374
|
var suspendResult = this.g9_1;
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
var tmp = this.e9_1;
|
|
378
378
|
if (tmp === 0) {
|
|
379
379
|
this.f9_1 = 1;
|
|
380
|
-
this.
|
|
380
|
+
this.p96_1(this.q96_1);
|
|
381
381
|
return Unit_instance;
|
|
382
382
|
} else if (tmp === 1) {
|
|
383
383
|
throw this.h9_1;
|
|
@@ -388,31 +388,31 @@
|
|
|
388
388
|
}
|
|
389
389
|
while (true);
|
|
390
390
|
};
|
|
391
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
392
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
393
|
-
i.
|
|
391
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).s96 = function (it, completion) {
|
|
392
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.p96_1, completion);
|
|
393
|
+
i.q96_1 = it;
|
|
394
394
|
return i;
|
|
395
395
|
};
|
|
396
396
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
397
397
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
398
398
|
var l = function (it, $completion) {
|
|
399
|
-
return i.
|
|
399
|
+
return i.r96(it, $completion);
|
|
400
400
|
};
|
|
401
401
|
l.$arity = 1;
|
|
402
402
|
return l;
|
|
403
403
|
}
|
|
404
404
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
405
|
-
this.
|
|
405
|
+
this.b97_1 = $subscriber;
|
|
406
406
|
CoroutineImpl.call(this, resultContinuation);
|
|
407
407
|
}
|
|
408
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
409
|
-
var tmp = this.
|
|
408
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).d97 = function (it, $completion) {
|
|
409
|
+
var tmp = this.e97(it, $completion);
|
|
410
410
|
tmp.g9_1 = Unit_instance;
|
|
411
411
|
tmp.h9_1 = null;
|
|
412
412
|
return tmp.m9();
|
|
413
413
|
};
|
|
414
414
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
415
|
-
return this.
|
|
415
|
+
return this.d97(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
416
416
|
};
|
|
417
417
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
418
418
|
var suspendResult = this.g9_1;
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
var tmp = this.e9_1;
|
|
422
422
|
if (tmp === 0) {
|
|
423
423
|
this.f9_1 = 1;
|
|
424
|
-
this.
|
|
424
|
+
this.b97_1(this.c97_1);
|
|
425
425
|
return Unit_instance;
|
|
426
426
|
} else if (tmp === 1) {
|
|
427
427
|
throw this.h9_1;
|
|
@@ -432,58 +432,58 @@
|
|
|
432
432
|
}
|
|
433
433
|
while (true);
|
|
434
434
|
};
|
|
435
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
436
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
437
|
-
i.
|
|
435
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).e97 = function (it, completion) {
|
|
436
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.b97_1, completion);
|
|
437
|
+
i.c97_1 = it;
|
|
438
438
|
return i;
|
|
439
439
|
};
|
|
440
440
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
441
441
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
442
442
|
var l = function (it, $completion) {
|
|
443
|
-
return i.
|
|
443
|
+
return i.d97(it, $completion);
|
|
444
444
|
};
|
|
445
445
|
l.$arity = 1;
|
|
446
446
|
return l;
|
|
447
447
|
}
|
|
448
448
|
function _get_logger__rkp4sl($this) {
|
|
449
449
|
// Inline function 'kotlin.getValue' call
|
|
450
|
-
var this_0 = $this.
|
|
450
|
+
var this_0 = $this.h97_1;
|
|
451
451
|
logger$factory_0();
|
|
452
452
|
return this_0.u();
|
|
453
453
|
}
|
|
454
454
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
455
455
|
// Inline function 'kotlin.getValue' call
|
|
456
|
-
var this_0 = $this.
|
|
456
|
+
var this_0 = $this.i97_1;
|
|
457
457
|
toClientEventsObserver$factory_0();
|
|
458
458
|
return this_0.u();
|
|
459
459
|
}
|
|
460
460
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
461
461
|
// Inline function 'kotlin.getValue' call
|
|
462
|
-
var this_0 = $this.
|
|
462
|
+
var this_0 = $this.j97_1;
|
|
463
463
|
playerConnectionInteractor$factory_0();
|
|
464
464
|
return this_0.u();
|
|
465
465
|
}
|
|
466
466
|
function _get_random__h29cgo($this) {
|
|
467
467
|
// Inline function 'kotlin.getValue' call
|
|
468
|
-
var this_0 = $this.
|
|
468
|
+
var this_0 = $this.k97_1;
|
|
469
469
|
random$factory();
|
|
470
470
|
return this_0.u();
|
|
471
471
|
}
|
|
472
472
|
function Companion() {
|
|
473
|
-
this.
|
|
473
|
+
this.m97_1 = 'GameEngine_API';
|
|
474
474
|
}
|
|
475
475
|
var Companion_instance_7;
|
|
476
476
|
function Companion_getInstance_0() {
|
|
477
477
|
return Companion_instance_7;
|
|
478
478
|
}
|
|
479
479
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
480
|
-
this.
|
|
480
|
+
this.n97_1 = function_0;
|
|
481
481
|
}
|
|
482
482
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
483
|
-
return this.
|
|
483
|
+
return this.n97_1(value, $completion);
|
|
484
484
|
};
|
|
485
485
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
486
|
-
return this.
|
|
486
|
+
return this.n97_1;
|
|
487
487
|
};
|
|
488
488
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
489
489
|
var tmp;
|
|
@@ -504,13 +504,13 @@
|
|
|
504
504
|
return hashCode(this.o3());
|
|
505
505
|
};
|
|
506
506
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
507
|
-
this.
|
|
507
|
+
this.o97_1 = function_0;
|
|
508
508
|
}
|
|
509
509
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
510
|
-
return this.
|
|
510
|
+
return this.o97_1(value, $completion);
|
|
511
511
|
};
|
|
512
512
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
513
|
-
return this.
|
|
513
|
+
return this.o97_1;
|
|
514
514
|
};
|
|
515
515
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
516
516
|
var tmp;
|
|
@@ -536,8 +536,8 @@
|
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
539
|
+
this.x97_1 = this$0;
|
|
540
|
+
this.y97_1 = $subscriber;
|
|
541
541
|
CoroutineImpl.call(this, resultContinuation);
|
|
542
542
|
}
|
|
543
543
|
protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -558,8 +558,8 @@
|
|
|
558
558
|
case 0:
|
|
559
559
|
this.f9_1 = 2;
|
|
560
560
|
this.e9_1 = 1;
|
|
561
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
562
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
561
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.x97_1).a98();
|
|
562
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.y97_1, null);
|
|
563
563
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
564
564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
565
565
|
return suspendResult;
|
|
@@ -583,8 +583,8 @@
|
|
|
583
583
|
while (true);
|
|
584
584
|
};
|
|
585
585
|
protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
|
|
586
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
587
|
-
i.
|
|
586
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.x97_1, this.y97_1, completion);
|
|
587
|
+
i.z97_1 = $this$launchDefault;
|
|
588
588
|
return i;
|
|
589
589
|
};
|
|
590
590
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -596,8 +596,8 @@
|
|
|
596
596
|
return l;
|
|
597
597
|
}
|
|
598
598
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
599
|
+
this.j98_1 = this$0;
|
|
600
|
+
this.k98_1 = $subscriber;
|
|
601
601
|
CoroutineImpl.call(this, resultContinuation);
|
|
602
602
|
}
|
|
603
603
|
protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -618,8 +618,8 @@
|
|
|
618
618
|
case 0:
|
|
619
619
|
this.f9_1 = 2;
|
|
620
620
|
this.e9_1 = 1;
|
|
621
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
622
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
621
|
+
var tmp_0 = distinctUntilChanged(this.j98_1.x6l());
|
|
622
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.k98_1, null);
|
|
623
623
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
624
624
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
625
625
|
return suspendResult;
|
|
@@ -643,8 +643,8 @@
|
|
|
643
643
|
while (true);
|
|
644
644
|
};
|
|
645
645
|
protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
|
|
646
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
647
|
-
i.
|
|
646
|
+
var i = new GameServer$subscribeWith$slambda(this.j98_1, this.k98_1, completion);
|
|
647
|
+
i.l98_1 = $this$launchDefault;
|
|
648
648
|
return i;
|
|
649
649
|
};
|
|
650
650
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -656,18 +656,18 @@
|
|
|
656
656
|
return l;
|
|
657
657
|
}
|
|
658
658
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
659
|
-
this.
|
|
659
|
+
this.u98_1 = $action;
|
|
660
660
|
CoroutineImpl.call(this, resultContinuation);
|
|
661
661
|
}
|
|
662
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
663
|
-
var tmp = this.
|
|
662
|
+
protoOf(GameServer$fromClientEvent$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
663
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
664
664
|
tmp.g9_1 = Unit_instance;
|
|
665
665
|
tmp.h9_1 = null;
|
|
666
666
|
return tmp.m9();
|
|
667
667
|
};
|
|
668
668
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
669
669
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
670
|
-
return this.
|
|
670
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
671
671
|
};
|
|
672
672
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
673
673
|
var suspendResult = this.g9_1;
|
|
@@ -676,11 +676,11 @@
|
|
|
676
676
|
var tmp = this.e9_1;
|
|
677
677
|
if (tmp === 0) {
|
|
678
678
|
this.f9_1 = 1;
|
|
679
|
-
if (this.
|
|
680
|
-
if (!get_isCreated(this.
|
|
679
|
+
if (this.u98_1 instanceof PlayerReadyFromClientAction)
|
|
680
|
+
if (!get_isCreated(this.w98_1.state)) {
|
|
681
681
|
return Unit_instance;
|
|
682
682
|
}
|
|
683
|
-
this.
|
|
683
|
+
this.w98_1.dispatch(this.u98_1);
|
|
684
684
|
return Unit_instance;
|
|
685
685
|
} else if (tmp === 1) {
|
|
686
686
|
throw this.h9_1;
|
|
@@ -691,33 +691,33 @@
|
|
|
691
691
|
}
|
|
692
692
|
while (true);
|
|
693
693
|
};
|
|
694
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
695
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
696
|
-
i.
|
|
697
|
-
i.
|
|
694
|
+
protoOf(GameServer$fromClientEvent$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
695
|
+
var i = new GameServer$fromClientEvent$slambda(this.u98_1, completion);
|
|
696
|
+
i.v98_1 = $this$dispatchAsync;
|
|
697
|
+
i.w98_1 = store;
|
|
698
698
|
return i;
|
|
699
699
|
};
|
|
700
700
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
701
701
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
702
702
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
703
|
-
return i.
|
|
703
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
704
704
|
};
|
|
705
705
|
l.$arity = 2;
|
|
706
706
|
return l;
|
|
707
707
|
}
|
|
708
708
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
709
|
-
this.
|
|
709
|
+
this.h99_1 = $playerId;
|
|
710
710
|
CoroutineImpl.call(this, resultContinuation);
|
|
711
711
|
}
|
|
712
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
713
|
-
var tmp = this.
|
|
712
|
+
protoOf(GameServer$playerLostConnection$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
713
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
714
714
|
tmp.g9_1 = Unit_instance;
|
|
715
715
|
tmp.h9_1 = null;
|
|
716
716
|
return tmp.m9();
|
|
717
717
|
};
|
|
718
718
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
719
719
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
720
|
-
return this.
|
|
720
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
721
721
|
};
|
|
722
722
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
723
723
|
var suspendResult = this.g9_1;
|
|
@@ -726,12 +726,12 @@
|
|
|
726
726
|
var tmp = this.e9_1;
|
|
727
727
|
if (tmp === 0) {
|
|
728
728
|
this.f9_1 = 1;
|
|
729
|
-
if (!get_isCreated(this.
|
|
729
|
+
if (!get_isCreated(this.j99_1.state)) {
|
|
730
730
|
return Unit_instance;
|
|
731
731
|
}
|
|
732
|
-
var tmp_0 = this.
|
|
732
|
+
var tmp_0 = this.j99_1.dispatch;
|
|
733
733
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
734
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
734
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.h99_1));
|
|
735
735
|
return Unit_instance;
|
|
736
736
|
} else if (tmp === 1) {
|
|
737
737
|
throw this.h9_1;
|
|
@@ -742,33 +742,33 @@
|
|
|
742
742
|
}
|
|
743
743
|
while (true);
|
|
744
744
|
};
|
|
745
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
746
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
747
|
-
i.
|
|
748
|
-
i.
|
|
745
|
+
protoOf(GameServer$playerLostConnection$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
746
|
+
var i = new GameServer$playerLostConnection$slambda(this.h99_1, completion);
|
|
747
|
+
i.i99_1 = $this$dispatchAsync;
|
|
748
|
+
i.j99_1 = store;
|
|
749
749
|
return i;
|
|
750
750
|
};
|
|
751
751
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
752
752
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
753
753
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
754
|
-
return i.
|
|
754
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
755
755
|
};
|
|
756
756
|
l.$arity = 2;
|
|
757
757
|
return l;
|
|
758
758
|
}
|
|
759
759
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
760
|
-
this.
|
|
760
|
+
this.s99_1 = $playerId;
|
|
761
761
|
CoroutineImpl.call(this, resultContinuation);
|
|
762
762
|
}
|
|
763
|
-
protoOf(GameServer$playerLive$slambda).
|
|
764
|
-
var tmp = this.
|
|
763
|
+
protoOf(GameServer$playerLive$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
764
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
765
765
|
tmp.g9_1 = Unit_instance;
|
|
766
766
|
tmp.h9_1 = null;
|
|
767
767
|
return tmp.m9();
|
|
768
768
|
};
|
|
769
769
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
770
770
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
771
|
-
return this.
|
|
771
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
772
772
|
};
|
|
773
773
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
774
774
|
var suspendResult = this.g9_1;
|
|
@@ -777,9 +777,9 @@
|
|
|
777
777
|
var tmp = this.e9_1;
|
|
778
778
|
if (tmp === 0) {
|
|
779
779
|
this.f9_1 = 1;
|
|
780
|
-
var tmp_0 = this.
|
|
780
|
+
var tmp_0 = this.u99_1.dispatch;
|
|
781
781
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
782
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
782
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.s99_1));
|
|
783
783
|
return Unit_instance;
|
|
784
784
|
} else if (tmp === 1) {
|
|
785
785
|
throw this.h9_1;
|
|
@@ -790,33 +790,33 @@
|
|
|
790
790
|
}
|
|
791
791
|
while (true);
|
|
792
792
|
};
|
|
793
|
-
protoOf(GameServer$playerLive$slambda).
|
|
794
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
795
|
-
i.
|
|
796
|
-
i.
|
|
793
|
+
protoOf(GameServer$playerLive$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
794
|
+
var i = new GameServer$playerLive$slambda(this.s99_1, completion);
|
|
795
|
+
i.t99_1 = $this$dispatchAsync;
|
|
796
|
+
i.u99_1 = store;
|
|
797
797
|
return i;
|
|
798
798
|
};
|
|
799
799
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
800
800
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
801
801
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
802
|
-
return i.
|
|
802
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
803
803
|
};
|
|
804
804
|
l.$arity = 2;
|
|
805
805
|
return l;
|
|
806
806
|
}
|
|
807
807
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
808
|
-
this.
|
|
808
|
+
this.d9a_1 = $playerId;
|
|
809
809
|
CoroutineImpl.call(this, resultContinuation);
|
|
810
810
|
}
|
|
811
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
812
|
-
var tmp = this.
|
|
811
|
+
protoOf(GameServer$playerLeft$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
812
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
813
813
|
tmp.g9_1 = Unit_instance;
|
|
814
814
|
tmp.h9_1 = null;
|
|
815
815
|
return tmp.m9();
|
|
816
816
|
};
|
|
817
817
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
818
818
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
819
|
-
return this.
|
|
819
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
820
820
|
};
|
|
821
821
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
822
822
|
var suspendResult = this.g9_1;
|
|
@@ -825,9 +825,9 @@
|
|
|
825
825
|
var tmp = this.e9_1;
|
|
826
826
|
if (tmp === 0) {
|
|
827
827
|
this.f9_1 = 1;
|
|
828
|
-
var tmp_0 = this.
|
|
828
|
+
var tmp_0 = this.f9a_1.dispatch;
|
|
829
829
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
830
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
830
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.d9a_1));
|
|
831
831
|
return Unit_instance;
|
|
832
832
|
} else if (tmp === 1) {
|
|
833
833
|
throw this.h9_1;
|
|
@@ -838,38 +838,38 @@
|
|
|
838
838
|
}
|
|
839
839
|
while (true);
|
|
840
840
|
};
|
|
841
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
842
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
843
|
-
i.
|
|
844
|
-
i.
|
|
841
|
+
protoOf(GameServer$playerLeft$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
842
|
+
var i = new GameServer$playerLeft$slambda(this.d9a_1, completion);
|
|
843
|
+
i.e9a_1 = $this$dispatchAsync;
|
|
844
|
+
i.f9a_1 = store;
|
|
845
845
|
return i;
|
|
846
846
|
};
|
|
847
847
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
848
848
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
849
849
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
850
|
-
return i.
|
|
850
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
851
851
|
};
|
|
852
852
|
l.$arity = 2;
|
|
853
853
|
return l;
|
|
854
854
|
}
|
|
855
855
|
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
856
|
+
this.o9a_1 = $users;
|
|
857
|
+
this.p9a_1 = $gameCreatorId;
|
|
858
|
+
this.q9a_1 = this$0;
|
|
859
|
+
this.r9a_1 = $spectators;
|
|
860
|
+
this.s9a_1 = $config;
|
|
861
|
+
this.t9a_1 = $roomId;
|
|
862
862
|
CoroutineImpl.call(this, resultContinuation);
|
|
863
863
|
}
|
|
864
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
865
|
-
var tmp = this.
|
|
864
|
+
protoOf(GameServer$roomOnCreate$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
865
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
866
866
|
tmp.g9_1 = Unit_instance;
|
|
867
867
|
tmp.h9_1 = null;
|
|
868
868
|
return tmp.m9();
|
|
869
869
|
};
|
|
870
870
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
871
871
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
872
|
-
return this.
|
|
872
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
873
873
|
};
|
|
874
874
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
875
875
|
var suspendResult = this.g9_1;
|
|
@@ -878,13 +878,13 @@
|
|
|
878
878
|
var tmp = this.e9_1;
|
|
879
879
|
if (tmp === 0) {
|
|
880
880
|
this.f9_1 = 1;
|
|
881
|
-
var usersList = toList(this.
|
|
882
|
-
var gameCreatorUser = getPlayer(usersList, this.
|
|
883
|
-
var tmp_0 = this.
|
|
881
|
+
var usersList = toList(this.o9a_1);
|
|
882
|
+
var gameCreatorUser = getPlayer(usersList, this.p9a_1);
|
|
883
|
+
var tmp_0 = this.v9a_1.dispatch;
|
|
884
884
|
var tmp0_version = GameEngineConfig_instance.version;
|
|
885
|
-
var tmp1_users = sortWithItem(_get_random__h29cgo(this.
|
|
886
|
-
var tmp2_spectators = toList(this.
|
|
887
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
885
|
+
var tmp1_users = sortWithItem(_get_random__h29cgo(this.q9a_1).s5s(toMutableList(usersList)), gameCreatorUser);
|
|
886
|
+
var tmp2_spectators = toList(this.r9a_1);
|
|
887
|
+
tmp_0(new StartGameMechanicAction(this.s9a_1, this.t9a_1, tmp0_version, this.p9a_1, tmp1_users, VOID, tmp2_spectators));
|
|
888
888
|
return Unit_instance;
|
|
889
889
|
} else if (tmp === 1) {
|
|
890
890
|
throw this.h9_1;
|
|
@@ -895,33 +895,33 @@
|
|
|
895
895
|
}
|
|
896
896
|
while (true);
|
|
897
897
|
};
|
|
898
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
899
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
900
|
-
i.
|
|
901
|
-
i.
|
|
898
|
+
protoOf(GameServer$roomOnCreate$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
899
|
+
var i = new GameServer$roomOnCreate$slambda(this.o9a_1, this.p9a_1, this.q9a_1, this.r9a_1, this.s9a_1, this.t9a_1, completion);
|
|
900
|
+
i.u9a_1 = $this$dispatchAsync;
|
|
901
|
+
i.v9a_1 = store;
|
|
902
902
|
return i;
|
|
903
903
|
};
|
|
904
904
|
function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
905
905
|
var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation);
|
|
906
906
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
907
|
-
return i.
|
|
907
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
908
908
|
};
|
|
909
909
|
l.$arity = 2;
|
|
910
910
|
return l;
|
|
911
911
|
}
|
|
912
912
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
913
|
-
this.
|
|
913
|
+
this.e9b_1 = $tableLite;
|
|
914
914
|
CoroutineImpl.call(this, resultContinuation);
|
|
915
915
|
}
|
|
916
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
917
|
-
var tmp = this.
|
|
916
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
917
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
918
918
|
tmp.g9_1 = Unit_instance;
|
|
919
919
|
tmp.h9_1 = null;
|
|
920
920
|
return tmp.m9();
|
|
921
921
|
};
|
|
922
922
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
923
923
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
924
|
-
return this.
|
|
924
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
925
925
|
};
|
|
926
926
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
927
927
|
var suspendResult = this.g9_1;
|
|
@@ -930,11 +930,11 @@
|
|
|
930
930
|
var tmp = this.e9_1;
|
|
931
931
|
if (tmp === 0) {
|
|
932
932
|
this.f9_1 = 1;
|
|
933
|
-
var tmp_0 = this.
|
|
933
|
+
var tmp_0 = this.g9b_1.dispatch;
|
|
934
934
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
935
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
935
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.e9b_1);
|
|
936
936
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
937
|
-
this.
|
|
937
|
+
this.g9b_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
938
938
|
return Unit_instance;
|
|
939
939
|
} else if (tmp === 1) {
|
|
940
940
|
throw this.h9_1;
|
|
@@ -945,33 +945,33 @@
|
|
|
945
945
|
}
|
|
946
946
|
while (true);
|
|
947
947
|
};
|
|
948
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
949
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
950
|
-
i.
|
|
951
|
-
i.
|
|
948
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
949
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.e9b_1, completion);
|
|
950
|
+
i.f9b_1 = $this$dispatchAsync;
|
|
951
|
+
i.g9b_1 = store;
|
|
952
952
|
return i;
|
|
953
953
|
};
|
|
954
954
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
955
955
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
956
956
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
957
|
-
return i.
|
|
957
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
958
958
|
};
|
|
959
959
|
l.$arity = 2;
|
|
960
960
|
return l;
|
|
961
961
|
}
|
|
962
962
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
963
|
-
this.
|
|
963
|
+
this.p9b_1 = $spectators;
|
|
964
964
|
CoroutineImpl.call(this, resultContinuation);
|
|
965
965
|
}
|
|
966
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
967
|
-
var tmp = this.
|
|
966
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
967
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
968
968
|
tmp.g9_1 = Unit_instance;
|
|
969
969
|
tmp.h9_1 = null;
|
|
970
970
|
return tmp.m9();
|
|
971
971
|
};
|
|
972
972
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
973
973
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
974
|
-
return this.
|
|
974
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
975
975
|
};
|
|
976
976
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
977
977
|
var suspendResult = this.g9_1;
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
var tmp = this.e9_1;
|
|
981
981
|
if (tmp === 0) {
|
|
982
982
|
this.f9_1 = 1;
|
|
983
|
-
this.
|
|
983
|
+
this.r9b_1.dispatch(new AddSpectatorsAction(toList(this.p9b_1)));
|
|
984
984
|
return Unit_instance;
|
|
985
985
|
} else if (tmp === 1) {
|
|
986
986
|
throw this.h9_1;
|
|
@@ -991,33 +991,33 @@
|
|
|
991
991
|
}
|
|
992
992
|
while (true);
|
|
993
993
|
};
|
|
994
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
995
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
996
|
-
i.
|
|
997
|
-
i.
|
|
994
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
995
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.p9b_1, completion);
|
|
996
|
+
i.q9b_1 = $this$dispatchAsync;
|
|
997
|
+
i.r9b_1 = store;
|
|
998
998
|
return i;
|
|
999
999
|
};
|
|
1000
1000
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1001
1001
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1002
1002
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1003
|
-
return i.
|
|
1003
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
1004
1004
|
};
|
|
1005
1005
|
l.$arity = 2;
|
|
1006
1006
|
return l;
|
|
1007
1007
|
}
|
|
1008
1008
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1009
|
-
this.
|
|
1009
|
+
this.a9c_1 = $spectators;
|
|
1010
1010
|
CoroutineImpl.call(this, resultContinuation);
|
|
1011
1011
|
}
|
|
1012
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1013
|
-
var tmp = this.
|
|
1012
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
1013
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
1014
1014
|
tmp.g9_1 = Unit_instance;
|
|
1015
1015
|
tmp.h9_1 = null;
|
|
1016
1016
|
return tmp.m9();
|
|
1017
1017
|
};
|
|
1018
1018
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1019
1019
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1020
|
-
return this.
|
|
1020
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1021
1021
|
};
|
|
1022
1022
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1023
1023
|
var suspendResult = this.g9_1;
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
var tmp = this.e9_1;
|
|
1027
1027
|
if (tmp === 0) {
|
|
1028
1028
|
this.f9_1 = 1;
|
|
1029
|
-
this.
|
|
1029
|
+
this.c9c_1.dispatch(new RemoveSpectatorsAction(toList(this.a9c_1)));
|
|
1030
1030
|
return Unit_instance;
|
|
1031
1031
|
} else if (tmp === 1) {
|
|
1032
1032
|
throw this.h9_1;
|
|
@@ -1037,34 +1037,34 @@
|
|
|
1037
1037
|
}
|
|
1038
1038
|
while (true);
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1041
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1042
|
-
i.
|
|
1043
|
-
i.
|
|
1040
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
1041
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.a9c_1, completion);
|
|
1042
|
+
i.b9c_1 = $this$dispatchAsync;
|
|
1043
|
+
i.c9c_1 = store;
|
|
1044
1044
|
return i;
|
|
1045
1045
|
};
|
|
1046
1046
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1047
1047
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1048
1048
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1049
|
-
return i.
|
|
1049
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
1050
1050
|
};
|
|
1051
1051
|
l.$arity = 2;
|
|
1052
1052
|
return l;
|
|
1053
1053
|
}
|
|
1054
1054
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1055
|
+
this.l9c_1 = $playerId;
|
|
1056
|
+
this.m9c_1 = this$0;
|
|
1057
1057
|
CoroutineImpl.call(this, resultContinuation);
|
|
1058
1058
|
}
|
|
1059
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1060
|
-
var tmp = this.
|
|
1059
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
1060
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
1061
1061
|
tmp.g9_1 = Unit_instance;
|
|
1062
1062
|
tmp.h9_1 = null;
|
|
1063
1063
|
return tmp.m9();
|
|
1064
1064
|
};
|
|
1065
1065
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1066
1066
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1067
|
-
return this.
|
|
1067
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1068
1068
|
};
|
|
1069
1069
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1070
1070
|
var suspendResult = this.g9_1;
|
|
@@ -1073,14 +1073,14 @@
|
|
|
1073
1073
|
var tmp = this.e9_1;
|
|
1074
1074
|
if (tmp === 0) {
|
|
1075
1075
|
this.f9_1 = 1;
|
|
1076
|
-
var table = this.
|
|
1077
|
-
var player = getPlayer(table.players, this.
|
|
1076
|
+
var table = this.o9c_1.state.a6n();
|
|
1077
|
+
var player = getPlayer(table.players, this.l9c_1);
|
|
1078
1078
|
if (player.s6s_1.q69().h68_1.isLive) {
|
|
1079
|
-
this.
|
|
1079
|
+
this.o9c_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.m9c_1).d8j(player, table));
|
|
1080
1080
|
} else {
|
|
1081
|
-
var tmp_0 = this.
|
|
1081
|
+
var tmp_0 = this.o9c_1.dispatch;
|
|
1082
1082
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1083
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1083
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.l9c_1));
|
|
1084
1084
|
}
|
|
1085
1085
|
return Unit_instance;
|
|
1086
1086
|
} else if (tmp === 1) {
|
|
@@ -1092,34 +1092,34 @@
|
|
|
1092
1092
|
}
|
|
1093
1093
|
while (true);
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1096
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1097
|
-
i.
|
|
1098
|
-
i.
|
|
1095
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
1096
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.l9c_1, this.m9c_1, completion);
|
|
1097
|
+
i.n9c_1 = $this$dispatchAsync;
|
|
1098
|
+
i.o9c_1 = store;
|
|
1099
1099
|
return i;
|
|
1100
1100
|
};
|
|
1101
1101
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1102
1102
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1103
1103
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1104
|
-
return i.
|
|
1104
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
1105
1105
|
};
|
|
1106
1106
|
l.$arity = 2;
|
|
1107
1107
|
return l;
|
|
1108
1108
|
}
|
|
1109
1109
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1110
|
-
this.
|
|
1111
|
-
this.
|
|
1110
|
+
this.x9c_1 = this$0;
|
|
1111
|
+
this.y9c_1 = $newRid;
|
|
1112
1112
|
CoroutineImpl.call(this, resultContinuation);
|
|
1113
1113
|
}
|
|
1114
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1115
|
-
var tmp = this.
|
|
1114
|
+
protoOf(GameServer$roomOnDelete$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
1115
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
1116
1116
|
tmp.g9_1 = Unit_instance;
|
|
1117
1117
|
tmp.h9_1 = null;
|
|
1118
1118
|
return tmp.m9();
|
|
1119
1119
|
};
|
|
1120
1120
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1121
1121
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1122
|
-
return this.
|
|
1122
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1123
1123
|
};
|
|
1124
1124
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1125
1125
|
var suspendResult = this.g9_1;
|
|
@@ -1128,23 +1128,23 @@
|
|
|
1128
1128
|
var tmp = this.e9_1;
|
|
1129
1129
|
if (tmp === 0) {
|
|
1130
1130
|
this.f9_1 = 1;
|
|
1131
|
-
var it = this.
|
|
1131
|
+
var it = this.x9c_1.n67().b6m_1;
|
|
1132
1132
|
var tmp_0;
|
|
1133
1133
|
if (it == null) {
|
|
1134
|
-
_get_logger__rkp4sl(this.
|
|
1134
|
+
_get_logger__rkp4sl(this.x9c_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1135
1135
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1136
1136
|
} else {
|
|
1137
1137
|
tmp_0 = it;
|
|
1138
1138
|
}
|
|
1139
1139
|
var terminationState = tmp_0;
|
|
1140
|
-
var tmp_1 = this.
|
|
1141
|
-
var tmp1_reason = terminationState.
|
|
1142
|
-
var tmp0_safe_receiver = terminationState.
|
|
1140
|
+
var tmp_1 = this.a9d_1.dispatch;
|
|
1141
|
+
var tmp1_reason = terminationState.d8n_1;
|
|
1142
|
+
var tmp0_safe_receiver = terminationState.e8n_1;
|
|
1143
1143
|
var tmp_2;
|
|
1144
1144
|
if (tmp0_safe_receiver == null) {
|
|
1145
1145
|
tmp_2 = null;
|
|
1146
1146
|
} else {
|
|
1147
|
-
var value = this.
|
|
1147
|
+
var value = this.y9c_1;
|
|
1148
1148
|
var tmp$ret$0 = Unit_instance;
|
|
1149
1149
|
l$ret$1: do {
|
|
1150
1150
|
if (value == null) {
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1160
1160
|
}
|
|
1161
1161
|
var tmp2_transition = tmp_2;
|
|
1162
|
-
var tmp3_isGameFinished = this.
|
|
1162
|
+
var tmp3_isGameFinished = this.x9c_1.n67().a6n().isGameFinished;
|
|
1163
1163
|
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1164
1164
|
return Unit_instance;
|
|
1165
1165
|
} else if (tmp === 1) {
|
|
@@ -1171,33 +1171,33 @@
|
|
|
1171
1171
|
}
|
|
1172
1172
|
while (true);
|
|
1173
1173
|
};
|
|
1174
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1175
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1176
|
-
i.
|
|
1177
|
-
i.
|
|
1174
|
+
protoOf(GameServer$roomOnDelete$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
1175
|
+
var i = new GameServer$roomOnDelete$slambda(this.x9c_1, this.y9c_1, completion);
|
|
1176
|
+
i.z9c_1 = $this$dispatchAsync;
|
|
1177
|
+
i.a9d_1 = store;
|
|
1178
1178
|
return i;
|
|
1179
1179
|
};
|
|
1180
1180
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1181
1181
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1182
1182
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1183
|
-
return i.
|
|
1183
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
1184
1184
|
};
|
|
1185
1185
|
l.$arity = 2;
|
|
1186
1186
|
return l;
|
|
1187
1187
|
}
|
|
1188
1188
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1189
|
-
this.
|
|
1189
|
+
this.j9d_1 = $enabled;
|
|
1190
1190
|
CoroutineImpl.call(this, resultContinuation);
|
|
1191
1191
|
}
|
|
1192
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1193
|
-
var tmp = this.
|
|
1192
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
1193
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
1194
1194
|
tmp.g9_1 = Unit_instance;
|
|
1195
1195
|
tmp.h9_1 = null;
|
|
1196
1196
|
return tmp.m9();
|
|
1197
1197
|
};
|
|
1198
1198
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1199
1199
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1200
|
-
return this.
|
|
1200
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1201
1201
|
};
|
|
1202
1202
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1203
1203
|
var suspendResult = this.g9_1;
|
|
@@ -1206,7 +1206,7 @@
|
|
|
1206
1206
|
var tmp = this.e9_1;
|
|
1207
1207
|
if (tmp === 0) {
|
|
1208
1208
|
this.f9_1 = 1;
|
|
1209
|
-
this.
|
|
1209
|
+
this.l9d_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.l9d_1.state).m9d_1.o9d(this.j9d_1)));
|
|
1210
1210
|
return Unit_instance;
|
|
1211
1211
|
} else if (tmp === 1) {
|
|
1212
1212
|
throw this.h9_1;
|
|
@@ -1217,35 +1217,35 @@
|
|
|
1217
1217
|
}
|
|
1218
1218
|
while (true);
|
|
1219
1219
|
};
|
|
1220
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1221
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1222
|
-
i.
|
|
1223
|
-
i.
|
|
1220
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
1221
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.j9d_1, completion);
|
|
1222
|
+
i.k9d_1 = $this$dispatchAsync;
|
|
1223
|
+
i.l9d_1 = store;
|
|
1224
1224
|
return i;
|
|
1225
1225
|
};
|
|
1226
1226
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1227
1227
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1228
1228
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1229
|
-
return i.
|
|
1229
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
1230
1230
|
};
|
|
1231
1231
|
l.$arity = 2;
|
|
1232
1232
|
return l;
|
|
1233
1233
|
}
|
|
1234
1234
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1235
|
-
this.
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1235
|
+
this.x9d_1 = $reason;
|
|
1236
|
+
this.y9d_1 = this$0;
|
|
1237
|
+
this.z9d_1 = $roomId;
|
|
1238
1238
|
CoroutineImpl.call(this, resultContinuation);
|
|
1239
1239
|
}
|
|
1240
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1241
|
-
var tmp = this.
|
|
1240
|
+
protoOf(GameServer$shutdown$slambda).x98 = function ($this$dispatchAsync, store, $completion) {
|
|
1241
|
+
var tmp = this.y98($this$dispatchAsync, store, $completion);
|
|
1242
1242
|
tmp.g9_1 = Unit_instance;
|
|
1243
1243
|
tmp.h9_1 = null;
|
|
1244
1244
|
return tmp.m9();
|
|
1245
1245
|
};
|
|
1246
1246
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1247
1247
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1248
|
-
return this.
|
|
1248
|
+
return this.x98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1249
1249
|
};
|
|
1250
1250
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1251
1251
|
var suspendResult = this.g9_1;
|
|
@@ -1254,11 +1254,11 @@
|
|
|
1254
1254
|
var tmp = this.e9_1;
|
|
1255
1255
|
if (tmp === 0) {
|
|
1256
1256
|
this.f9_1 = 1;
|
|
1257
|
-
var state = this.
|
|
1257
|
+
var state = this.b9e_1.store.state;
|
|
1258
1258
|
if (state.b6n()) {
|
|
1259
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1259
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.x9d_1, get_serverShutdownReasonMapping());
|
|
1260
1260
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1261
|
-
var tmp_0 = this.
|
|
1261
|
+
var tmp_0 = this.b9e_1.dispatch;
|
|
1262
1262
|
var tmp_1 = Companion_instance_0;
|
|
1263
1263
|
var tmp_2;
|
|
1264
1264
|
switch (shutdownReason.n2_1) {
|
|
@@ -1272,10 +1272,10 @@
|
|
|
1272
1272
|
noWhenBranchMatchedException();
|
|
1273
1273
|
break;
|
|
1274
1274
|
}
|
|
1275
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1275
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.y9d_1.table.isGameFinished, this.y9d_1.table));
|
|
1276
1276
|
} else {
|
|
1277
|
-
_get_logger__rkp4sl(this.
|
|
1278
|
-
this.
|
|
1277
|
+
_get_logger__rkp4sl(this.y9d_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.z9d_1);
|
|
1278
|
+
this.b9e_1.dispatch(new ClearAction());
|
|
1279
1279
|
}
|
|
1280
1280
|
return Unit_instance;
|
|
1281
1281
|
} else if (tmp === 1) {
|
|
@@ -1287,22 +1287,22 @@
|
|
|
1287
1287
|
}
|
|
1288
1288
|
while (true);
|
|
1289
1289
|
};
|
|
1290
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1291
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1292
|
-
i.
|
|
1293
|
-
i.
|
|
1290
|
+
protoOf(GameServer$shutdown$slambda).y98 = function ($this$dispatchAsync, store, completion) {
|
|
1291
|
+
var i = new GameServer$shutdown$slambda(this.x9d_1, this.y9d_1, this.z9d_1, completion);
|
|
1292
|
+
i.a9e_1 = $this$dispatchAsync;
|
|
1293
|
+
i.b9e_1 = store;
|
|
1294
1294
|
return i;
|
|
1295
1295
|
};
|
|
1296
1296
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1297
1297
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1298
1298
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1299
|
-
return i.
|
|
1299
|
+
return i.x98($this$dispatchAsync, store, $completion);
|
|
1300
1300
|
};
|
|
1301
1301
|
l.$arity = 2;
|
|
1302
1302
|
return l;
|
|
1303
1303
|
}
|
|
1304
1304
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1305
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1305
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.c9e()) : preloadedState;
|
|
1306
1306
|
var tmp;
|
|
1307
1307
|
if (externalReducers === VOID) {
|
|
1308
1308
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1325,28 +1325,28 @@
|
|
|
1325
1325
|
// Inline function 'org.kodein.type.generic' call
|
|
1326
1326
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1327
1327
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1328
|
-
tmp_1.
|
|
1328
|
+
tmp_1.h97_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
|
|
1329
1329
|
var tmp_3 = this;
|
|
1330
1330
|
// Inline function 'org.kodein.di.instance' call
|
|
1331
1331
|
// Inline function 'org.kodein.type.generic' call
|
|
1332
1332
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1333
1333
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1334
|
-
tmp_3.
|
|
1334
|
+
tmp_3.i97_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
|
|
1335
1335
|
var tmp_5 = this;
|
|
1336
1336
|
// Inline function 'org.kodein.di.instance' call
|
|
1337
1337
|
// Inline function 'org.kodein.type.generic' call
|
|
1338
1338
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1339
1339
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1340
|
-
tmp_5.
|
|
1340
|
+
tmp_5.j97_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
|
|
1341
1341
|
var tmp_7 = this;
|
|
1342
|
-
tmp_7.
|
|
1342
|
+
tmp_7.k97_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1343
1343
|
var tmp_8 = this;
|
|
1344
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1345
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1346
|
-
tmp_8.
|
|
1344
|
+
var tmp0_externalMiddlewares = plus(storeContract.k8r(), externalMiddlewares);
|
|
1345
|
+
var tmp1_externalReducers = plus(storeContract.j8r(), externalReducers);
|
|
1346
|
+
tmp_8.l97_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1347
1347
|
}
|
|
1348
1348
|
protoOf(GameServer).n6l = function () {
|
|
1349
|
-
return this.
|
|
1349
|
+
return this.l97_1;
|
|
1350
1350
|
};
|
|
1351
1351
|
protoOf(GameServer).o5h = function () {
|
|
1352
1352
|
return this.n67().a6n().id;
|
|
@@ -1370,44 +1370,44 @@
|
|
|
1370
1370
|
};
|
|
1371
1371
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1372
1372
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1373
|
-
this.
|
|
1373
|
+
this.l97_1.z6m(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1374
1374
|
};
|
|
1375
1375
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1376
1376
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1377
|
-
this.
|
|
1377
|
+
this.l97_1.z6m(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1378
1378
|
};
|
|
1379
1379
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1380
1380
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1381
|
-
this.
|
|
1381
|
+
this.l97_1.z6m(GameServer$playerLive$slambda_0(playerId, null));
|
|
1382
1382
|
};
|
|
1383
1383
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1384
1384
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1385
|
-
this.
|
|
1385
|
+
this.l97_1.z6m(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1386
1386
|
};
|
|
1387
|
-
protoOf(GameServer).
|
|
1388
|
-
this.
|
|
1387
|
+
protoOf(GameServer).d9e = function (roomId, gameCreatorId, config, users, transition, spectators) {
|
|
1388
|
+
this.l97_1.z6m(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, this, spectators, config, roomId, null));
|
|
1389
1389
|
};
|
|
1390
1390
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1391
|
-
this.
|
|
1391
|
+
this.l97_1.z6m(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1392
1392
|
};
|
|
1393
1393
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1394
|
-
this.
|
|
1394
|
+
this.l97_1.z6m(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1395
1395
|
};
|
|
1396
1396
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1397
|
-
this.
|
|
1397
|
+
this.l97_1.z6m(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1398
1398
|
};
|
|
1399
1399
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1400
1400
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1401
|
-
this.
|
|
1401
|
+
this.l97_1.z6m(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1402
1402
|
};
|
|
1403
|
-
protoOf(GameServer).
|
|
1404
|
-
this.
|
|
1403
|
+
protoOf(GameServer).e9e = function (newRid) {
|
|
1404
|
+
this.l97_1.z6m(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1405
1405
|
};
|
|
1406
1406
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1407
|
-
this.
|
|
1407
|
+
this.l97_1.z6m(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1408
1408
|
};
|
|
1409
|
-
protoOf(GameServer).
|
|
1410
|
-
this.
|
|
1409
|
+
protoOf(GameServer).f9e = function (reason, roomId) {
|
|
1410
|
+
this.l97_1.z6m(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1411
1411
|
};
|
|
1412
1412
|
protoOf(GameServer).clear = function () {
|
|
1413
1413
|
return this.a2();
|
|
@@ -1481,16 +1481,16 @@
|
|
|
1481
1481
|
return ServerShutdownReason_ERROR_instance;
|
|
1482
1482
|
}
|
|
1483
1483
|
function ServerConfig(canStartNewGame) {
|
|
1484
|
-
this.
|
|
1484
|
+
this.n9d_1 = canStartNewGame;
|
|
1485
1485
|
}
|
|
1486
|
-
protoOf(ServerConfig).
|
|
1486
|
+
protoOf(ServerConfig).o9d = function (canStartNewGame) {
|
|
1487
1487
|
return new ServerConfig(canStartNewGame);
|
|
1488
1488
|
};
|
|
1489
1489
|
protoOf(ServerConfig).toString = function () {
|
|
1490
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1490
|
+
return 'ServerConfig(canStartNewGame=' + this.n9d_1 + ')';
|
|
1491
1491
|
};
|
|
1492
1492
|
protoOf(ServerConfig).hashCode = function () {
|
|
1493
|
-
return getBooleanHashCode(this.
|
|
1493
|
+
return getBooleanHashCode(this.n9d_1);
|
|
1494
1494
|
};
|
|
1495
1495
|
protoOf(ServerConfig).equals = function (other) {
|
|
1496
1496
|
if (this === other)
|
|
@@ -1498,7 +1498,7 @@
|
|
|
1498
1498
|
if (!(other instanceof ServerConfig))
|
|
1499
1499
|
return false;
|
|
1500
1500
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1501
|
-
if (!(this.
|
|
1501
|
+
if (!(this.n9d_1 === tmp0_other_with_cast.n9d_1))
|
|
1502
1502
|
return false;
|
|
1503
1503
|
return true;
|
|
1504
1504
|
};
|
|
@@ -1730,18 +1730,18 @@
|
|
|
1730
1730
|
function ToClientEventsObserver() {
|
|
1731
1731
|
}
|
|
1732
1732
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1733
|
-
this.
|
|
1734
|
-
this.
|
|
1733
|
+
this.p9e_1 = this$0;
|
|
1734
|
+
this.q9e_1 = $actions;
|
|
1735
1735
|
CoroutineImpl.call(this, resultContinuation);
|
|
1736
1736
|
}
|
|
1737
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1738
|
-
var tmp = this.
|
|
1737
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).x9e = function ($this$flow, $completion) {
|
|
1738
|
+
var tmp = this.y9e($this$flow, $completion);
|
|
1739
1739
|
tmp.g9_1 = Unit_instance;
|
|
1740
1740
|
tmp.h9_1 = null;
|
|
1741
1741
|
return tmp.m9();
|
|
1742
1742
|
};
|
|
1743
1743
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1744
|
-
return this.
|
|
1744
|
+
return this.x9e((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1745
1745
|
};
|
|
1746
1746
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1747
1747
|
var suspendResult = this.g9_1;
|
|
@@ -1752,23 +1752,23 @@
|
|
|
1752
1752
|
case 0:
|
|
1753
1753
|
this.f9_1 = 4;
|
|
1754
1754
|
var tmp_0 = this;
|
|
1755
|
-
tmp_0.
|
|
1755
|
+
tmp_0.s9e_1 = this.p9e_1.d9f_1;
|
|
1756
1756
|
var tmp_1 = this;
|
|
1757
|
-
tmp_1.
|
|
1758
|
-
this.
|
|
1757
|
+
tmp_1.t9e_1 = transformToEmits(this.p9e_1, this.q9e_1);
|
|
1758
|
+
this.u9e_1 = this.t9e_1.j();
|
|
1759
1759
|
this.e9_1 = 1;
|
|
1760
1760
|
continue $sm;
|
|
1761
1761
|
case 1:
|
|
1762
|
-
if (!this.
|
|
1762
|
+
if (!this.u9e_1.k()) {
|
|
1763
1763
|
this.e9_1 = 3;
|
|
1764
1764
|
continue $sm;
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
|
-
this.
|
|
1767
|
+
this.v9e_1 = this.u9e_1.l();
|
|
1768
1768
|
var tmp_2 = this;
|
|
1769
|
-
tmp_2.
|
|
1769
|
+
tmp_2.w9e_1 = this.v9e_1;
|
|
1770
1770
|
this.e9_1 = 2;
|
|
1771
|
-
suspendResult = this.
|
|
1771
|
+
suspendResult = this.r9e_1.p18(this.w9e_1, this);
|
|
1772
1772
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1773
1773
|
return suspendResult;
|
|
1774
1774
|
}
|
|
@@ -1779,10 +1779,10 @@
|
|
|
1779
1779
|
continue $sm;
|
|
1780
1780
|
case 3:
|
|
1781
1781
|
l$ret$1: do {
|
|
1782
|
-
var this_0 = this.
|
|
1782
|
+
var this_0 = this.p9e_1.c9f_1;
|
|
1783
1783
|
while (true) {
|
|
1784
1784
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1785
|
-
var upd = cur - this.
|
|
1785
|
+
var upd = cur - this.q9e_1.m() | 0;
|
|
1786
1786
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1787
1787
|
break l$ret$1;
|
|
1788
1788
|
}
|
|
@@ -1804,15 +1804,15 @@
|
|
|
1804
1804
|
}
|
|
1805
1805
|
while (true);
|
|
1806
1806
|
};
|
|
1807
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1808
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1809
|
-
i.
|
|
1807
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).y9e = function ($this$flow, completion) {
|
|
1808
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.p9e_1, this.q9e_1, completion);
|
|
1809
|
+
i.r9e_1 = $this$flow;
|
|
1810
1810
|
return i;
|
|
1811
1811
|
};
|
|
1812
1812
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1813
1813
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1814
1814
|
var l = function ($this$flow, $completion) {
|
|
1815
|
-
return i.
|
|
1815
|
+
return i.x9e($this$flow, $completion);
|
|
1816
1816
|
};
|
|
1817
1817
|
l.$arity = 1;
|
|
1818
1818
|
return l;
|
|
@@ -1885,29 +1885,29 @@
|
|
|
1885
1885
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1886
1886
|
}
|
|
1887
1887
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1888
|
-
var tmp = $this.
|
|
1888
|
+
var tmp = $this.b9f_1.g6d();
|
|
1889
1889
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1890
|
-
var this_0 = _this__u8e3s4.
|
|
1890
|
+
var this_0 = _this__u8e3s4.g9f_1;
|
|
1891
1891
|
var tmp_0 = copyToArray(this_0);
|
|
1892
1892
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1893
|
-
var this_1 = _this__u8e3s4.
|
|
1893
|
+
var this_1 = _this__u8e3s4.h9f_1;
|
|
1894
1894
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1895
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1895
|
+
return new ActionDeliveryPayload(_this__u8e3s4.f9f_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.i9f_1);
|
|
1896
1896
|
}
|
|
1897
1897
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1901
|
-
this.
|
|
1898
|
+
this.f9f_1 = tableId;
|
|
1899
|
+
this.g9f_1 = includePlayers;
|
|
1900
|
+
this.h9f_1 = excludePlayers;
|
|
1901
|
+
this.i9f_1 = deliveryType;
|
|
1902
1902
|
}
|
|
1903
1903
|
protoOf(GroupKey).toString = function () {
|
|
1904
|
-
return 'GroupKey(tableId=' + this.
|
|
1904
|
+
return 'GroupKey(tableId=' + this.f9f_1 + ', includePlayers=' + toString(this.g9f_1) + ', excludePlayers=' + toString(this.h9f_1) + ', deliveryType=' + this.i9f_1.toString() + ')';
|
|
1905
1905
|
};
|
|
1906
1906
|
protoOf(GroupKey).hashCode = function () {
|
|
1907
|
-
var result = getStringHashCode(this.
|
|
1908
|
-
result = imul(result, 31) + hashCode(this.
|
|
1909
|
-
result = imul(result, 31) + hashCode(this.
|
|
1910
|
-
result = imul(result, 31) + this.
|
|
1907
|
+
var result = getStringHashCode(this.f9f_1);
|
|
1908
|
+
result = imul(result, 31) + hashCode(this.g9f_1) | 0;
|
|
1909
|
+
result = imul(result, 31) + hashCode(this.h9f_1) | 0;
|
|
1910
|
+
result = imul(result, 31) + this.i9f_1.hashCode() | 0;
|
|
1911
1911
|
return result;
|
|
1912
1912
|
};
|
|
1913
1913
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1916,35 +1916,35 @@
|
|
|
1916
1916
|
if (!(other instanceof GroupKey))
|
|
1917
1917
|
return false;
|
|
1918
1918
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1919
|
-
if (!(this.
|
|
1919
|
+
if (!(this.f9f_1 === tmp0_other_with_cast.f9f_1))
|
|
1920
1920
|
return false;
|
|
1921
|
-
if (!equals(this.
|
|
1921
|
+
if (!equals(this.g9f_1, tmp0_other_with_cast.g9f_1))
|
|
1922
1922
|
return false;
|
|
1923
|
-
if (!equals(this.
|
|
1923
|
+
if (!equals(this.h9f_1, tmp0_other_with_cast.h9f_1))
|
|
1924
1924
|
return false;
|
|
1925
|
-
if (!this.
|
|
1925
|
+
if (!this.i9f_1.equals(tmp0_other_with_cast.i9f_1))
|
|
1926
1926
|
return false;
|
|
1927
1927
|
return true;
|
|
1928
1928
|
};
|
|
1929
1929
|
function Companion_0() {
|
|
1930
|
-
this.
|
|
1930
|
+
this.j9f_1 = 6;
|
|
1931
1931
|
}
|
|
1932
1932
|
var Companion_instance_8;
|
|
1933
1933
|
function Companion_getInstance_1() {
|
|
1934
1934
|
return Companion_instance_8;
|
|
1935
1935
|
}
|
|
1936
1936
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1937
|
-
this.
|
|
1937
|
+
this.s9f_1 = this$0;
|
|
1938
1938
|
CoroutineImpl.call(this, resultContinuation);
|
|
1939
1939
|
}
|
|
1940
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1941
|
-
var tmp = this.
|
|
1940
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).u9f = function (actions, $completion) {
|
|
1941
|
+
var tmp = this.v9f(actions, $completion);
|
|
1942
1942
|
tmp.g9_1 = Unit_instance;
|
|
1943
1943
|
tmp.h9_1 = null;
|
|
1944
1944
|
return tmp.m9();
|
|
1945
1945
|
};
|
|
1946
1946
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
1947
|
-
return this.
|
|
1947
|
+
return this.u9f((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1948
1948
|
};
|
|
1949
1949
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
1950
1950
|
var suspendResult = this.g9_1;
|
|
@@ -1953,7 +1953,7 @@
|
|
|
1953
1953
|
var tmp = this.e9_1;
|
|
1954
1954
|
if (tmp === 0) {
|
|
1955
1955
|
this.f9_1 = 1;
|
|
1956
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1956
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.s9f_1, this.t9f_1, null));
|
|
1957
1957
|
} else if (tmp === 1) {
|
|
1958
1958
|
throw this.h9_1;
|
|
1959
1959
|
}
|
|
@@ -1963,23 +1963,23 @@
|
|
|
1963
1963
|
}
|
|
1964
1964
|
while (true);
|
|
1965
1965
|
};
|
|
1966
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1967
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1968
|
-
i.
|
|
1966
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).v9f = function (actions, completion) {
|
|
1967
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.s9f_1, completion);
|
|
1968
|
+
i.t9f_1 = actions;
|
|
1969
1969
|
return i;
|
|
1970
1970
|
};
|
|
1971
1971
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1972
1972
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1973
1973
|
var l = function (actions, $completion) {
|
|
1974
|
-
return i.
|
|
1974
|
+
return i.u9f(actions, $completion);
|
|
1975
1975
|
};
|
|
1976
1976
|
l.$arity = 1;
|
|
1977
1977
|
return l;
|
|
1978
1978
|
}
|
|
1979
1979
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
1980
1980
|
CoroutineImpl.call(this, resultContinuation);
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
1981
|
+
this.e9g_1 = _this__u8e3s4;
|
|
1982
|
+
this.f9g_1 = fromEvent;
|
|
1983
1983
|
}
|
|
1984
1984
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
1985
1985
|
var suspendResult = this.g9_1;
|
|
@@ -1990,9 +1990,9 @@
|
|
|
1990
1990
|
case 0:
|
|
1991
1991
|
this.f9_1 = 2;
|
|
1992
1992
|
var tmp_0 = this;
|
|
1993
|
-
tmp_0.
|
|
1993
|
+
tmp_0.g9g_1 = this.e9g_1.d9f_1;
|
|
1994
1994
|
l$ret$1: do {
|
|
1995
|
-
var this_0 = this.
|
|
1995
|
+
var this_0 = this.e9g_1.c9f_1;
|
|
1996
1996
|
while (true) {
|
|
1997
1997
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1998
1998
|
var upd = cur + 1 | 0;
|
|
@@ -2003,7 +2003,7 @@
|
|
|
2003
2003
|
}
|
|
2004
2004
|
while (false);
|
|
2005
2005
|
this.e9_1 = 1;
|
|
2006
|
-
suspendResult = this.
|
|
2006
|
+
suspendResult = this.e9g_1.e9f_1.p18(this.f9g_1, this);
|
|
2007
2007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2008
2008
|
return suspendResult;
|
|
2009
2009
|
}
|
|
@@ -2027,7 +2027,7 @@
|
|
|
2027
2027
|
};
|
|
2028
2028
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2029
2029
|
CoroutineImpl.call(this, resultContinuation);
|
|
2030
|
-
this.
|
|
2030
|
+
this.p9g_1 = _this__u8e3s4;
|
|
2031
2031
|
}
|
|
2032
2032
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2033
2033
|
var suspendResult = this.g9_1;
|
|
@@ -2038,12 +2038,12 @@
|
|
|
2038
2038
|
case 0:
|
|
2039
2039
|
this.f9_1 = 5;
|
|
2040
2040
|
var tmp_0 = this;
|
|
2041
|
-
tmp_0.
|
|
2042
|
-
this.
|
|
2041
|
+
tmp_0.q9g_1 = this.p9g_1.d9f_1;
|
|
2042
|
+
this.r9g_1 = 0;
|
|
2043
2043
|
this.e9_1 = 1;
|
|
2044
2044
|
continue $sm;
|
|
2045
2045
|
case 1:
|
|
2046
|
-
if (!!(this.
|
|
2046
|
+
if (!!(this.p9g_1.c9f_1.kotlinx$atomicfu$value === 0)) {
|
|
2047
2047
|
this.e9_1 = 4;
|
|
2048
2048
|
continue $sm;
|
|
2049
2049
|
}
|
|
@@ -2056,9 +2056,9 @@
|
|
|
2056
2056
|
|
|
2057
2057
|
continue $sm;
|
|
2058
2058
|
case 2:
|
|
2059
|
-
this.
|
|
2060
|
-
if (this.
|
|
2061
|
-
this.
|
|
2059
|
+
this.r9g_1 = this.r9g_1 + 1 | 0;
|
|
2060
|
+
if (this.r9g_1 > 6) {
|
|
2061
|
+
this.p9g_1.a9f_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.p9g_1.c9f_1.kotlinx$atomicfu$value);
|
|
2062
2062
|
this.e9_1 = 4;
|
|
2063
2063
|
continue $sm;
|
|
2064
2064
|
} else {
|
|
@@ -2086,42 +2086,42 @@
|
|
|
2086
2086
|
while (true);
|
|
2087
2087
|
};
|
|
2088
2088
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2089
|
+
this.z9e_1 = serverReduxConfig;
|
|
2090
|
+
this.a9f_1 = logger;
|
|
2091
|
+
this.b9f_1 = idsProvider;
|
|
2092
|
+
this.c9f_1 = atomic$ref$1(0);
|
|
2093
2093
|
var tmp = this;
|
|
2094
2094
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2095
|
-
tmp.
|
|
2096
|
-
this.
|
|
2095
|
+
tmp.d9f_1 = get_atomicfu$reentrantLock();
|
|
2096
|
+
this.e9f_1 = MutableSharedFlow();
|
|
2097
2097
|
}
|
|
2098
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2098
|
+
protoOf(ToClientEventsObserverImpl).g9e = function (fromEvent, $completion) {
|
|
2099
2099
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2100
2100
|
tmp.g9_1 = Unit_instance;
|
|
2101
2101
|
tmp.h9_1 = null;
|
|
2102
2102
|
return tmp.m9();
|
|
2103
2103
|
};
|
|
2104
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2104
|
+
protoOf(ToClientEventsObserverImpl).f8y = function ($completion) {
|
|
2105
2105
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2106
2106
|
tmp.g9_1 = Unit_instance;
|
|
2107
2107
|
tmp.h9_1 = null;
|
|
2108
2108
|
return tmp.m9();
|
|
2109
2109
|
};
|
|
2110
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2111
|
-
if (!this.
|
|
2112
|
-
return this.
|
|
2110
|
+
protoOf(ToClientEventsObserverImpl).a98 = function () {
|
|
2111
|
+
if (!this.z9e_1.enabledCombinedEvents) {
|
|
2112
|
+
return this.e9f_1;
|
|
2113
2113
|
}
|
|
2114
|
-
var tmp = windowedByInterval(this.
|
|
2114
|
+
var tmp = windowedByInterval(this.e9f_1, toLong(this.z9e_1.combinedEventsPeriod));
|
|
2115
2115
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2116
2116
|
};
|
|
2117
2117
|
function UpdateServerConfigAction(serverConfig) {
|
|
2118
|
-
this.
|
|
2118
|
+
this.s9g_1 = serverConfig;
|
|
2119
2119
|
}
|
|
2120
2120
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2121
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2121
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.s9g_1.toString() + ')';
|
|
2122
2122
|
};
|
|
2123
2123
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2124
|
-
return this.
|
|
2124
|
+
return this.s9g_1.hashCode();
|
|
2125
2125
|
};
|
|
2126
2126
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2127
2127
|
if (this === other)
|
|
@@ -2129,20 +2129,20 @@
|
|
|
2129
2129
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2130
2130
|
return false;
|
|
2131
2131
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2132
|
-
if (!this.
|
|
2132
|
+
if (!this.s9g_1.equals(tmp0_other_with_cast.s9g_1))
|
|
2133
2133
|
return false;
|
|
2134
2134
|
return true;
|
|
2135
2135
|
};
|
|
2136
2136
|
function SpectatorsAction() {
|
|
2137
2137
|
}
|
|
2138
2138
|
function AddSpectatorsAction(spectators) {
|
|
2139
|
-
this.
|
|
2139
|
+
this.t9g_1 = spectators;
|
|
2140
2140
|
}
|
|
2141
2141
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2142
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2142
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.t9g_1) + ')';
|
|
2143
2143
|
};
|
|
2144
2144
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2145
|
-
return hashCode(this.
|
|
2145
|
+
return hashCode(this.t9g_1);
|
|
2146
2146
|
};
|
|
2147
2147
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2148
2148
|
if (this === other)
|
|
@@ -2150,18 +2150,18 @@
|
|
|
2150
2150
|
if (!(other instanceof AddSpectatorsAction))
|
|
2151
2151
|
return false;
|
|
2152
2152
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2153
|
-
if (!equals(this.
|
|
2153
|
+
if (!equals(this.t9g_1, tmp0_other_with_cast.t9g_1))
|
|
2154
2154
|
return false;
|
|
2155
2155
|
return true;
|
|
2156
2156
|
};
|
|
2157
2157
|
function RemoveSpectatorsAction(spectators) {
|
|
2158
|
-
this.
|
|
2158
|
+
this.u9g_1 = spectators;
|
|
2159
2159
|
}
|
|
2160
2160
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2161
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2161
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.u9g_1) + ')';
|
|
2162
2162
|
};
|
|
2163
2163
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2164
|
-
return hashCode(this.
|
|
2164
|
+
return hashCode(this.u9g_1);
|
|
2165
2165
|
};
|
|
2166
2166
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2167
2167
|
if (this === other)
|
|
@@ -2169,67 +2169,67 @@
|
|
|
2169
2169
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2170
2170
|
return false;
|
|
2171
2171
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2172
|
-
if (!equals(this.
|
|
2172
|
+
if (!equals(this.u9g_1, tmp0_other_with_cast.u9g_1))
|
|
2173
2173
|
return false;
|
|
2174
2174
|
return true;
|
|
2175
2175
|
};
|
|
2176
2176
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2177
2177
|
// Inline function 'kotlin.getValue' call
|
|
2178
|
-
var this_0 = $this.
|
|
2178
|
+
var this_0 = $this.a9h_1;
|
|
2179
2179
|
asyncProvider$factory_0();
|
|
2180
2180
|
return this_0.u();
|
|
2181
2181
|
}
|
|
2182
2182
|
function _get_logger__rkp4sl_0($this) {
|
|
2183
2183
|
// Inline function 'kotlin.getValue' call
|
|
2184
|
-
var this_0 = $this.
|
|
2184
|
+
var this_0 = $this.b9h_1;
|
|
2185
2185
|
logger$factory_2();
|
|
2186
2186
|
return this_0.u();
|
|
2187
2187
|
}
|
|
2188
2188
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2189
2189
|
// Inline function 'kotlin.getValue' call
|
|
2190
|
-
var this_0 = $this.
|
|
2190
|
+
var this_0 = $this.c9h_1;
|
|
2191
2191
|
playerConnectionInteractor$factory_2();
|
|
2192
2192
|
return this_0.u();
|
|
2193
2193
|
}
|
|
2194
2194
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2195
2195
|
// Inline function 'kotlin.getValue' call
|
|
2196
|
-
var this_0 = $this.
|
|
2196
|
+
var this_0 = $this.d9h_1;
|
|
2197
2197
|
lastCardInteractor$factory_0();
|
|
2198
2198
|
return this_0.u();
|
|
2199
2199
|
}
|
|
2200
2200
|
function _get_serverConfig__rk2g06($this) {
|
|
2201
2201
|
// Inline function 'kotlin.getValue' call
|
|
2202
|
-
var this_0 = $this.
|
|
2202
|
+
var this_0 = $this.e9h_1;
|
|
2203
2203
|
serverConfig$factory_0();
|
|
2204
2204
|
return this_0.u();
|
|
2205
2205
|
}
|
|
2206
2206
|
function _get_logicConfig__52ww9d($this) {
|
|
2207
2207
|
// Inline function 'kotlin.getValue' call
|
|
2208
|
-
var this_0 = $this.
|
|
2208
|
+
var this_0 = $this.f9h_1;
|
|
2209
2209
|
logicConfig$factory_0();
|
|
2210
2210
|
return this_0.u();
|
|
2211
2211
|
}
|
|
2212
2212
|
function _get_idsProvider__fnfajc($this) {
|
|
2213
2213
|
// Inline function 'kotlin.getValue' call
|
|
2214
|
-
var this_0 = $this.
|
|
2214
|
+
var this_0 = $this.g9h_1;
|
|
2215
2215
|
idsProvider$factory_0();
|
|
2216
2216
|
return this_0.u();
|
|
2217
2217
|
}
|
|
2218
2218
|
function _get_botConfig__cpaxzc($this) {
|
|
2219
2219
|
// Inline function 'kotlin.getValue' call
|
|
2220
|
-
var this_0 = $this.
|
|
2220
|
+
var this_0 = $this.h9h_1;
|
|
2221
2221
|
botConfig$factory_0();
|
|
2222
2222
|
return this_0.u();
|
|
2223
2223
|
}
|
|
2224
2224
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2225
2225
|
// Inline function 'kotlin.getValue' call
|
|
2226
|
-
var this_0 = $this.
|
|
2226
|
+
var this_0 = $this.i9h_1;
|
|
2227
2227
|
scenePositionProvider$factory_0();
|
|
2228
2228
|
return this_0.u();
|
|
2229
2229
|
}
|
|
2230
2230
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2231
2231
|
// Inline function 'kotlin.getValue' call
|
|
2232
|
-
var this_0 = $this.
|
|
2232
|
+
var this_0 = $this.j9h_1;
|
|
2233
2233
|
toClientEventsObserver$factory_2();
|
|
2234
2234
|
return this_0.u();
|
|
2235
2235
|
}
|
|
@@ -2242,77 +2242,77 @@
|
|
|
2242
2242
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2243
2243
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2244
2244
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2248
|
-
this.
|
|
2249
|
-
this.
|
|
2245
|
+
this.v9g_1 = validationStoreContract;
|
|
2246
|
+
this.w9g_1 = timersStoreContract;
|
|
2247
|
+
this.x9g_1 = botGameStoreContract;
|
|
2248
|
+
this.y9g_1 = gameMechanicStoreContract;
|
|
2249
|
+
this.z9g_1 = fileLoggerStoreContract;
|
|
2250
2250
|
var tmp = this;
|
|
2251
2251
|
// Inline function 'org.kodein.di.instance' call
|
|
2252
2252
|
// Inline function 'org.kodein.type.generic' call
|
|
2253
2253
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2254
2254
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2255
|
-
tmp.
|
|
2255
|
+
tmp.a9h_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2256
2256
|
var tmp_1 = this;
|
|
2257
2257
|
// Inline function 'org.kodein.di.instance' call
|
|
2258
2258
|
// Inline function 'org.kodein.type.generic' call
|
|
2259
2259
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2260
2260
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2261
|
-
tmp_1.
|
|
2261
|
+
tmp_1.b9h_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2262
2262
|
var tmp_3 = this;
|
|
2263
2263
|
// Inline function 'org.kodein.di.instance' call
|
|
2264
2264
|
// Inline function 'org.kodein.type.generic' call
|
|
2265
2265
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2266
2266
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2267
|
-
tmp_3.
|
|
2267
|
+
tmp_3.c9h_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2268
2268
|
var tmp_5 = this;
|
|
2269
2269
|
// Inline function 'org.kodein.di.instance' call
|
|
2270
2270
|
// Inline function 'org.kodein.type.generic' call
|
|
2271
2271
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2272
2272
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2273
|
-
tmp_5.
|
|
2273
|
+
tmp_5.d9h_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2274
2274
|
var tmp_7 = this;
|
|
2275
2275
|
// Inline function 'org.kodein.di.instance' call
|
|
2276
2276
|
// Inline function 'org.kodein.type.generic' call
|
|
2277
2277
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2278
2278
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2279
|
-
tmp_7.
|
|
2279
|
+
tmp_7.e9h_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2280
2280
|
var tmp_9 = this;
|
|
2281
2281
|
// Inline function 'org.kodein.di.instance' call
|
|
2282
2282
|
// Inline function 'org.kodein.type.generic' call
|
|
2283
2283
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2284
2284
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2285
|
-
tmp_9.
|
|
2285
|
+
tmp_9.f9h_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2286
2286
|
var tmp_11 = this;
|
|
2287
2287
|
// Inline function 'org.kodein.di.instance' call
|
|
2288
2288
|
// Inline function 'org.kodein.type.generic' call
|
|
2289
2289
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2290
2290
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2291
|
-
tmp_11.
|
|
2291
|
+
tmp_11.g9h_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2292
2292
|
var tmp_13 = this;
|
|
2293
2293
|
// Inline function 'org.kodein.di.instance' call
|
|
2294
2294
|
// Inline function 'org.kodein.type.generic' call
|
|
2295
2295
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2296
2296
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2297
|
-
tmp_13.
|
|
2297
|
+
tmp_13.h9h_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2298
2298
|
var tmp_15 = this;
|
|
2299
2299
|
// Inline function 'org.kodein.di.instance' call
|
|
2300
2300
|
// Inline function 'org.kodein.type.generic' call
|
|
2301
2301
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2302
2302
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2303
|
-
tmp_15.
|
|
2303
|
+
tmp_15.i9h_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2304
2304
|
var tmp_17 = this;
|
|
2305
2305
|
// Inline function 'org.kodein.di.instance' call
|
|
2306
2306
|
// Inline function 'org.kodein.type.generic' call
|
|
2307
2307
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2308
2308
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2309
|
-
tmp_17.
|
|
2309
|
+
tmp_17.j9h_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2310
2310
|
}
|
|
2311
|
-
protoOf(ServerGameStoreContract).
|
|
2312
|
-
return plus(plus(plus(plus(plus(this.
|
|
2311
|
+
protoOf(ServerGameStoreContract).j8r = function () {
|
|
2312
|
+
return plus(plus(plus(plus(plus(this.v9g_1.j8r(), this.w9g_1.j8r()), this.x9g_1.j8r()), this.y9g_1.j8r()), this.z9g_1.j8r()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2313
2313
|
};
|
|
2314
|
-
protoOf(ServerGameStoreContract).
|
|
2315
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2314
|
+
protoOf(ServerGameStoreContract).k8r = function () {
|
|
2315
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.v9g_1.k8r(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.w9g_1.k8r()), this.x9g_1.k8r()), this.y9g_1.k8r()), this.z9g_1.k8r()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).c8t(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2316
2316
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2317
2317
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2318
2318
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2442,7 +2442,7 @@
|
|
|
2442
2442
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2443
2443
|
next(action_0);
|
|
2444
2444
|
var state = store.state;
|
|
2445
|
-
if (!get_serverState_0(state).
|
|
2445
|
+
if (!get_serverState_0(state).m9d_1.n9d_1 && action_0.isGameFinished) {
|
|
2446
2446
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.y6l_1));
|
|
2447
2447
|
}
|
|
2448
2448
|
};
|
|
@@ -2455,7 +2455,7 @@
|
|
|
2455
2455
|
};
|
|
2456
2456
|
}
|
|
2457
2457
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2458
|
-
this.
|
|
2458
|
+
this.m9h_1 = this$0;
|
|
2459
2459
|
}
|
|
2460
2460
|
protoOf(_no_name_provided__qut3iv_0).d6f = function (action) {
|
|
2461
2461
|
return action instanceof MechanicAction;
|
|
@@ -2470,11 +2470,11 @@
|
|
|
2470
2470
|
var tmp;
|
|
2471
2471
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2472
2472
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2473
|
-
var this_0 = this.
|
|
2474
|
-
var tableId = action_0.
|
|
2475
|
-
var gameCreatorPlayerId = action_0.
|
|
2473
|
+
var this_0 = this.m9h_1;
|
|
2474
|
+
var tableId = action_0.b8o_1;
|
|
2475
|
+
var gameCreatorPlayerId = action_0.d8o_1;
|
|
2476
2476
|
// Inline function 'kotlin.collections.map' call
|
|
2477
|
-
var this_1 = action_0.
|
|
2477
|
+
var this_1 = action_0.e8o_1;
|
|
2478
2478
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2479
2479
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2480
2480
|
var tmp0_iterator = this_1.j();
|
|
@@ -2515,7 +2515,7 @@
|
|
|
2515
2515
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2516
2516
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2517
2517
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2518
|
-
var tmp0_aid = this_0.
|
|
2518
|
+
var tmp0_aid = this_0.l9h_1.g6d();
|
|
2519
2519
|
// Inline function 'kotlin.collections.map' call
|
|
2520
2520
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2521
2521
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
@@ -2540,17 +2540,17 @@
|
|
|
2540
2540
|
} else {
|
|
2541
2541
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2542
2542
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2543
|
-
var this_2 = this.
|
|
2543
|
+
var this_2 = this.m9h_1;
|
|
2544
2544
|
var table = state.a6n();
|
|
2545
2545
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2546
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2546
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.l9h_1.g6d(), table.id, null);
|
|
2547
2547
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2548
2548
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2549
2549
|
} else {
|
|
2550
2550
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2551
2551
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2552
|
-
var this_3 = this.
|
|
2553
|
-
var tableId_0 = action_0.
|
|
2552
|
+
var this_3 = this.m9h_1;
|
|
2553
|
+
var tableId_0 = action_0.h8o_1.id;
|
|
2554
2554
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2555
2555
|
var players = getPlayers();
|
|
2556
2556
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2584,7 +2584,7 @@
|
|
|
2584
2584
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2585
2585
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2586
2586
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2587
|
-
var tmp0_aid_0 = this_3.
|
|
2587
|
+
var tmp0_aid_0 = this_3.l9h_1.g6d();
|
|
2588
2588
|
// Inline function 'kotlin.collections.map' call
|
|
2589
2589
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2590
2590
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -2609,43 +2609,43 @@
|
|
|
2609
2609
|
} else {
|
|
2610
2610
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2611
2611
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2612
|
-
var this_4 = this.
|
|
2612
|
+
var this_4 = this.m9h_1;
|
|
2613
2613
|
var table_0 = state.a6n();
|
|
2614
2614
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2615
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2615
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.l9h_1.g6d(), table_0.id, null);
|
|
2616
2616
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2617
2617
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2618
2618
|
} else {
|
|
2619
2619
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2620
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2621
|
-
var this_5 = this.
|
|
2621
|
+
var this_5 = this.m9h_1;
|
|
2622
2622
|
var table_1 = state.a6n();
|
|
2623
2623
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2624
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2624
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.l9h_1.g6d(), table_1.id, null);
|
|
2625
2625
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2626
2626
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2627
2627
|
} else {
|
|
2628
2628
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2629
2629
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2630
|
-
var this_6 = this.
|
|
2630
|
+
var this_6 = this.m9h_1;
|
|
2631
2631
|
var table_2 = state.a6n();
|
|
2632
2632
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2633
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2633
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.l9h_1.g6d(), table_2.id, null);
|
|
2634
2634
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2635
2635
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2636
2636
|
} else {
|
|
2637
2637
|
if (action_0 instanceof ErrorAction) {
|
|
2638
2638
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2639
|
-
var this_7 = this.
|
|
2639
|
+
var this_7 = this.m9h_1;
|
|
2640
2640
|
var table_3 = state.a6n();
|
|
2641
2641
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2642
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2642
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.l9h_1.g6d(), table_3.id, null);
|
|
2643
2643
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2644
2644
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2645
2645
|
} else {
|
|
2646
2646
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2647
2647
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2648
|
-
var this_8 = this.
|
|
2648
|
+
var this_8 = this.m9h_1;
|
|
2649
2649
|
var table_4 = state.a6n();
|
|
2650
2650
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2651
2651
|
var tableId_1 = table_4.id;
|
|
@@ -2682,7 +2682,7 @@
|
|
|
2682
2682
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2683
2683
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2684
2684
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2685
|
-
var tmp0_aid_1 = this_8.
|
|
2685
|
+
var tmp0_aid_1 = this_8.l9h_1.g6d();
|
|
2686
2686
|
// Inline function 'kotlin.collections.map' call
|
|
2687
2687
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2688
2688
|
var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2707,7 +2707,7 @@
|
|
|
2707
2707
|
} else {
|
|
2708
2708
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2709
2709
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2710
|
-
var this_9 = this.
|
|
2710
|
+
var this_9 = this.m9h_1;
|
|
2711
2711
|
var table_5 = state.a6n();
|
|
2712
2712
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2713
2713
|
var tableId_2 = table_5.id;
|
|
@@ -2744,7 +2744,7 @@
|
|
|
2744
2744
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2745
2745
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2746
2746
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2747
|
-
var tmp0_aid_2 = this_9.
|
|
2747
|
+
var tmp0_aid_2 = this_9.l9h_1.g6d();
|
|
2748
2748
|
// Inline function 'kotlin.collections.map' call
|
|
2749
2749
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2750
2750
|
var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2769,7 +2769,7 @@
|
|
|
2769
2769
|
} else {
|
|
2770
2770
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2771
2771
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2772
|
-
var this_10 = this.
|
|
2772
|
+
var this_10 = this.m9h_1;
|
|
2773
2773
|
var table_6 = state.a6n();
|
|
2774
2774
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2775
2775
|
var tableId_3 = table_6.id;
|
|
@@ -2806,7 +2806,7 @@
|
|
|
2806
2806
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2807
2807
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2808
2808
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2809
|
-
var tmp0_aid_3 = this_10.
|
|
2809
|
+
var tmp0_aid_3 = this_10.l9h_1.g6d();
|
|
2810
2810
|
// Inline function 'kotlin.collections.map' call
|
|
2811
2811
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2812
2812
|
var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2819,7 +2819,7 @@
|
|
|
2819
2819
|
}
|
|
2820
2820
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2821
2821
|
var tmp_0;
|
|
2822
|
-
if (this.
|
|
2822
|
+
if (this.m9h_1.k9h_1.supportBackwardActions && getPlayer(state.a6n().players, sendToPlayer_8.e79_1).u6s_1.z6s_1) {
|
|
2823
2823
|
tmp_0 = null;
|
|
2824
2824
|
} else {
|
|
2825
2825
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2837,79 +2837,79 @@
|
|
|
2837
2837
|
} else {
|
|
2838
2838
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2839
2839
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2840
|
-
var this_11 = this.
|
|
2840
|
+
var this_11 = this.m9h_1;
|
|
2841
2841
|
var table_7 = state.a6n();
|
|
2842
|
-
var exceptPlayerId = this.
|
|
2842
|
+
var exceptPlayerId = this.m9h_1.k9h_1.supportBackwardActions ? action_0.b8p_1 : null;
|
|
2843
2843
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2844
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2844
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.l9h_1.g6d(), table_7.id, exceptPlayerId);
|
|
2845
2845
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2846
2846
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2847
2847
|
} else {
|
|
2848
2848
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2849
2849
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2850
|
-
var this_12 = this.
|
|
2850
|
+
var this_12 = this.m9h_1;
|
|
2851
2851
|
var table_8 = state.a6n();
|
|
2852
|
-
var exceptPlayerId_0 = this.
|
|
2852
|
+
var exceptPlayerId_0 = this.m9h_1.k9h_1.supportBackwardActions ? action_0.z8j_1 : null;
|
|
2853
2853
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2854
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2854
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.l9h_1.g6d(), table_8.id, exceptPlayerId_0);
|
|
2855
2855
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2856
2856
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2857
2857
|
} else {
|
|
2858
2858
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2859
2859
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2860
|
-
var this_13 = this.
|
|
2860
|
+
var this_13 = this.m9h_1;
|
|
2861
2861
|
var table_9 = state.a6n();
|
|
2862
2862
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2863
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2863
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.l9h_1.g6d(), table_9.id, null);
|
|
2864
2864
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2865
2865
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2866
2866
|
} else {
|
|
2867
2867
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2868
2868
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2869
|
-
var this_14 = this.
|
|
2869
|
+
var this_14 = this.m9h_1;
|
|
2870
2870
|
var table_10 = state.a6n();
|
|
2871
|
-
var exceptPlayerId_1 = this.
|
|
2871
|
+
var exceptPlayerId_1 = this.m9h_1.k9h_1.supportBackwardActions ? action_0.h8p_1 : null;
|
|
2872
2872
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2873
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2873
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.l9h_1.g6d(), table_10.id, exceptPlayerId_1);
|
|
2874
2874
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2875
2875
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2876
2876
|
} else {
|
|
2877
2877
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2878
2878
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2879
|
-
var this_15 = this.
|
|
2879
|
+
var this_15 = this.m9h_1;
|
|
2880
2880
|
var table_11 = state.a6n();
|
|
2881
|
-
var exceptPlayerId_2 = this.
|
|
2881
|
+
var exceptPlayerId_2 = this.m9h_1.k9h_1.supportBackwardActions ? action_0.e8k_1 : null;
|
|
2882
2882
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2883
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2883
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.l9h_1.g6d(), table_11.id, exceptPlayerId_2);
|
|
2884
2884
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2885
2885
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2886
2886
|
} else {
|
|
2887
2887
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2888
2888
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2889
|
-
var this_16 = this.
|
|
2889
|
+
var this_16 = this.m9h_1;
|
|
2890
2890
|
var table_12 = state.a6n();
|
|
2891
2891
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2892
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2892
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.l9h_1.g6d(), table_12.id, null);
|
|
2893
2893
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2894
2894
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2895
2895
|
} else {
|
|
2896
2896
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2897
2897
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2898
|
-
var this_17 = this.
|
|
2898
|
+
var this_17 = this.m9h_1;
|
|
2899
2899
|
var table_13 = state.a6n();
|
|
2900
2900
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2901
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2901
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.l9h_1.g6d(), table_13.id, null);
|
|
2902
2902
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2903
2903
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2904
2904
|
} else {
|
|
2905
2905
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2906
|
-
var message = action_0.
|
|
2906
|
+
var message = action_0.l8p_1;
|
|
2907
2907
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2908
|
-
var this_18 = this.
|
|
2908
|
+
var this_18 = this.m9h_1;
|
|
2909
2909
|
var table_14 = state.a6n();
|
|
2910
2910
|
var tmp_1;
|
|
2911
2911
|
var tmp_2;
|
|
2912
|
-
if (this.
|
|
2912
|
+
if (this.m9h_1.k9h_1.supportBackwardActions) {
|
|
2913
2913
|
tmp_2 = isInterface(message, UserMessage);
|
|
2914
2914
|
} else {
|
|
2915
2915
|
tmp_2 = false;
|
|
@@ -2921,17 +2921,17 @@
|
|
|
2921
2921
|
}
|
|
2922
2922
|
var exceptPlayerId_3 = tmp_1;
|
|
2923
2923
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2924
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2924
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.l9h_1.g6d(), table_14.id, exceptPlayerId_3);
|
|
2925
2925
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2926
2926
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2927
2927
|
} else {
|
|
2928
2928
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2929
2929
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2930
|
-
var this_19 = this.
|
|
2930
|
+
var this_19 = this.m9h_1;
|
|
2931
2931
|
var table_15 = state.a6n();
|
|
2932
2932
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2933
2933
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2934
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
2934
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.l9h_1.g6d(), table_15.id, exceptPlayerId_4);
|
|
2935
2935
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2936
2936
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2937
2937
|
} else {
|
|
@@ -2969,10 +2969,10 @@
|
|
|
2969
2969
|
return this.u6g(store, next, action);
|
|
2970
2970
|
};
|
|
2971
2971
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2972
|
-
this.
|
|
2973
|
-
this.
|
|
2972
|
+
this.k9h_1 = logicConfig;
|
|
2973
|
+
this.l9h_1 = idsProvider;
|
|
2974
2974
|
}
|
|
2975
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
2975
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).c8t = function () {
|
|
2976
2976
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2977
2977
|
return new _no_name_provided__qut3iv_0(this);
|
|
2978
2978
|
};
|
|
@@ -2981,8 +2981,8 @@
|
|
|
2981
2981
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2982
2982
|
}
|
|
2983
2983
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
2984
|
-
this.
|
|
2985
|
-
this.
|
|
2984
|
+
this.v9h_1 = $provider;
|
|
2985
|
+
this.w9h_1 = $action;
|
|
2986
2986
|
CoroutineImpl.call(this, resultContinuation);
|
|
2987
2987
|
}
|
|
2988
2988
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -3003,7 +3003,7 @@
|
|
|
3003
3003
|
case 0:
|
|
3004
3004
|
this.f9_1 = 2;
|
|
3005
3005
|
this.e9_1 = 1;
|
|
3006
|
-
suspendResult = this.
|
|
3006
|
+
suspendResult = this.v9h_1.g9e(this.w9h_1, this);
|
|
3007
3007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3008
3008
|
return suspendResult;
|
|
3009
3009
|
}
|
|
@@ -3026,8 +3026,8 @@
|
|
|
3026
3026
|
while (true);
|
|
3027
3027
|
};
|
|
3028
3028
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3029
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3030
|
-
i.
|
|
3029
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.v9h_1, this.w9h_1, completion);
|
|
3030
|
+
i.x9h_1 = $this$launchDefault;
|
|
3031
3031
|
return i;
|
|
3032
3032
|
};
|
|
3033
3033
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3039,8 +3039,8 @@
|
|
|
3039
3039
|
return l;
|
|
3040
3040
|
}
|
|
3041
3041
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3042
|
-
this.
|
|
3043
|
-
this.
|
|
3042
|
+
this.y9h_1 = $asyncProvider;
|
|
3043
|
+
this.z9h_1 = $provider;
|
|
3044
3044
|
}
|
|
3045
3045
|
protoOf(_no_name_provided__qut3iv_1).d6f = function (action) {
|
|
3046
3046
|
return action instanceof ToClientAction;
|
|
@@ -3048,7 +3048,7 @@
|
|
|
3048
3048
|
protoOf(_no_name_provided__qut3iv_1).u6g = function (store, next, action) {
|
|
3049
3049
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3050
3050
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3051
|
-
this.
|
|
3051
|
+
this.y9h_1.d6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.z9h_1, action_0, null));
|
|
3052
3052
|
next(action_0);
|
|
3053
3053
|
};
|
|
3054
3054
|
protoOf(_no_name_provided__qut3iv_1).c6f = function (store, next, action) {
|
|
@@ -3063,13 +3063,13 @@
|
|
|
3063
3063
|
protoOf(_no_name_provided__qut3iv_2).d6f = function (action) {
|
|
3064
3064
|
return action instanceof UpdateServerConfigAction;
|
|
3065
3065
|
};
|
|
3066
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3066
|
+
protoOf(_no_name_provided__qut3iv_2).x8z = function (state, action) {
|
|
3067
3067
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3068
3068
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3069
|
-
return state.
|
|
3069
|
+
return state.c8n(VOID, get_serverState_0(state).a9i(action_0.s9g_1));
|
|
3070
3070
|
};
|
|
3071
3071
|
protoOf(_no_name_provided__qut3iv_2).v6g = function (state, action) {
|
|
3072
|
-
return this.
|
|
3072
|
+
return this.x8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3073
3073
|
};
|
|
3074
3074
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3075
3075
|
return function (it) {
|
|
@@ -3082,7 +3082,7 @@
|
|
|
3082
3082
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3083
3083
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3084
3084
|
Companion_getInstance();
|
|
3085
|
-
var this_0 = $action.
|
|
3085
|
+
var this_0 = $action.a8o_1.timeoutTimeMillis;
|
|
3086
3086
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3087
3087
|
tmp_0 = tmp_1.e68(tmp_2, tmp$ret$0);
|
|
3088
3088
|
}
|
|
@@ -3091,47 +3091,47 @@
|
|
|
3091
3091
|
}
|
|
3092
3092
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3093
3093
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3094
|
-
this.
|
|
3094
|
+
this.d9i_1 = logger;
|
|
3095
3095
|
}
|
|
3096
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3096
|
+
protoOf(ServerMechanicLifecycleReducer).j91 = function (state, action) {
|
|
3097
3097
|
var serverState = get_serverStateOrNull(state.z6l_1);
|
|
3098
3098
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3099
|
-
var tmp0_$this = this.
|
|
3100
|
-
var tmp1_tableId = action.
|
|
3101
|
-
var tmp2_gameId = action.
|
|
3102
|
-
var tmp3_version = action.
|
|
3103
|
-
var tmp4_config = action.
|
|
3104
|
-
var tmp5_users = action.
|
|
3099
|
+
var tmp0_$this = this.k91_1;
|
|
3100
|
+
var tmp1_tableId = action.b8o_1;
|
|
3101
|
+
var tmp2_gameId = action.b8o_1;
|
|
3102
|
+
var tmp3_version = action.c8o_1;
|
|
3103
|
+
var tmp4_config = action.a8o_1;
|
|
3104
|
+
var tmp5_users = action.e8o_1;
|
|
3105
3105
|
var tmp6_spectators = action.spectators;
|
|
3106
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3107
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3106
|
+
var tmp7_gameCreatorPlayerId = action.d8o_1;
|
|
3107
|
+
var tmp9_tableOrNull = tmp0_$this.q92(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3108
3108
|
var tmp;
|
|
3109
3109
|
if (serverState == null) {
|
|
3110
|
-
this.
|
|
3111
|
-
tmp = Companion_instance_9.
|
|
3110
|
+
this.d9i_1.w(VOID, 'ServerPayload is not onStart');
|
|
3111
|
+
tmp = Companion_instance_9.c9e();
|
|
3112
3112
|
} else {
|
|
3113
3113
|
tmp = serverState;
|
|
3114
3114
|
}
|
|
3115
3115
|
var tmp10_payload = tmp;
|
|
3116
|
-
return state.
|
|
3116
|
+
return state.c8n(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3117
3117
|
};
|
|
3118
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3119
|
-
this.
|
|
3118
|
+
protoOf(ServerMechanicLifecycleReducer).i91 = function (state, action) {
|
|
3119
|
+
this.l91_1.r5n(action.previousGameId);
|
|
3120
3120
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3121
|
-
var tmp1_tableOrNull = this.
|
|
3122
|
-
return state.
|
|
3121
|
+
var tmp1_tableOrNull = this.k91_1.r92(state.a6n(), action.gameId);
|
|
3122
|
+
return state.c8n(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3123
3123
|
};
|
|
3124
3124
|
function spectatorsReducer(logger) {
|
|
3125
3125
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3126
3126
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3127
3127
|
}
|
|
3128
3128
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3129
|
-
this.
|
|
3129
|
+
this.e9i_1 = $logger;
|
|
3130
3130
|
}
|
|
3131
3131
|
protoOf(_no_name_provided__qut3iv_3).d6f = function (action) {
|
|
3132
3132
|
return isInterface(action, SpectatorsAction);
|
|
3133
3133
|
};
|
|
3134
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3134
|
+
protoOf(_no_name_provided__qut3iv_3).x8z = function (state, action) {
|
|
3135
3135
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3136
3136
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3137
3137
|
var table = state.a6n();
|
|
@@ -3139,7 +3139,7 @@
|
|
|
3139
3139
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3140
3140
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3141
3141
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3142
|
-
var this_0 = action_0.
|
|
3142
|
+
var this_0 = action_0.t9g_1;
|
|
3143
3143
|
var destination = ArrayList_init_$Create$();
|
|
3144
3144
|
// Inline function 'kotlin.collections.forEach' call
|
|
3145
3145
|
var tmp0_iterator = this_0.j();
|
|
@@ -3161,10 +3161,10 @@
|
|
|
3161
3161
|
var tmp_0;
|
|
3162
3162
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3163
3163
|
if (!sameSpectators.p()) {
|
|
3164
|
-
this.
|
|
3164
|
+
this.e9i_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3165
3165
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3166
3166
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3167
|
-
var this_1 = action_0.
|
|
3167
|
+
var this_1 = action_0.t9g_1;
|
|
3168
3168
|
var destination_0 = ArrayList_init_$Create$();
|
|
3169
3169
|
var tmp0_iterator_0 = this_1.j();
|
|
3170
3170
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3200,7 +3200,7 @@
|
|
|
3200
3200
|
}
|
|
3201
3201
|
tmp_0 = destination_0;
|
|
3202
3202
|
} else {
|
|
3203
|
-
tmp_0 = action_0.
|
|
3203
|
+
tmp_0 = action_0.t9g_1;
|
|
3204
3204
|
}
|
|
3205
3205
|
var this_2 = tmp_0;
|
|
3206
3206
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3213,12 +3213,12 @@
|
|
|
3213
3213
|
destination_1.e(tmp$ret$10);
|
|
3214
3214
|
}
|
|
3215
3215
|
var spectatorsToAdd = toSet(destination_1);
|
|
3216
|
-
tmp = state.
|
|
3216
|
+
tmp = state.c8n(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3217
3217
|
} else {
|
|
3218
3218
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3219
3219
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3220
3220
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3221
|
-
var this_3 = action_0.
|
|
3221
|
+
var this_3 = action_0.u9g_1;
|
|
3222
3222
|
var destination_2 = ArrayList_init_$Create$();
|
|
3223
3223
|
// Inline function 'kotlin.collections.forEach' call
|
|
3224
3224
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3239,10 +3239,10 @@
|
|
|
3239
3239
|
var tmp_2;
|
|
3240
3240
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3241
3241
|
if (!sameSpectators_0.p()) {
|
|
3242
|
-
this.
|
|
3242
|
+
this.e9i_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3243
3243
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3244
3244
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3245
|
-
var this_4 = action_0.
|
|
3245
|
+
var this_4 = action_0.u9g_1;
|
|
3246
3246
|
var destination_3 = ArrayList_init_$Create$();
|
|
3247
3247
|
var tmp0_iterator_4 = this_4.j();
|
|
3248
3248
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3278,7 +3278,7 @@
|
|
|
3278
3278
|
}
|
|
3279
3279
|
tmp_2 = destination_3;
|
|
3280
3280
|
} else {
|
|
3281
|
-
tmp_2 = action_0.
|
|
3281
|
+
tmp_2 = action_0.u9g_1;
|
|
3282
3282
|
}
|
|
3283
3283
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3284
3284
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3317,7 +3317,7 @@
|
|
|
3317
3317
|
destination_4.e(element_5);
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
|
-
tmp = state.
|
|
3320
|
+
tmp = state.c8n(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3321
3321
|
} else {
|
|
3322
3322
|
noWhenBranchMatchedException();
|
|
3323
3323
|
}
|
|
@@ -3325,32 +3325,32 @@
|
|
|
3325
3325
|
return tmp;
|
|
3326
3326
|
};
|
|
3327
3327
|
protoOf(_no_name_provided__qut3iv_3).v6g = function (state, action) {
|
|
3328
|
-
return this.
|
|
3328
|
+
return this.x8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3329
3329
|
};
|
|
3330
3330
|
function Companion_1() {
|
|
3331
3331
|
}
|
|
3332
|
-
protoOf(Companion_1).
|
|
3332
|
+
protoOf(Companion_1).f9i = function (config) {
|
|
3333
3333
|
return new ServerState(config);
|
|
3334
3334
|
};
|
|
3335
|
-
protoOf(Companion_1).
|
|
3335
|
+
protoOf(Companion_1).c9e = function (config, $super) {
|
|
3336
3336
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3337
|
-
return $super === VOID ? this.
|
|
3337
|
+
return $super === VOID ? this.f9i(config) : $super.f9i.call(this, config);
|
|
3338
3338
|
};
|
|
3339
3339
|
var Companion_instance_9;
|
|
3340
3340
|
function Companion_getInstance_2() {
|
|
3341
3341
|
return Companion_instance_9;
|
|
3342
3342
|
}
|
|
3343
3343
|
function ServerState(config) {
|
|
3344
|
-
this.
|
|
3344
|
+
this.m9d_1 = config;
|
|
3345
3345
|
}
|
|
3346
|
-
protoOf(ServerState).
|
|
3346
|
+
protoOf(ServerState).a9i = function (config) {
|
|
3347
3347
|
return new ServerState(config);
|
|
3348
3348
|
};
|
|
3349
3349
|
protoOf(ServerState).toString = function () {
|
|
3350
|
-
return 'ServerState(config=' + this.
|
|
3350
|
+
return 'ServerState(config=' + this.m9d_1.toString() + ')';
|
|
3351
3351
|
};
|
|
3352
3352
|
protoOf(ServerState).hashCode = function () {
|
|
3353
|
-
return this.
|
|
3353
|
+
return this.m9d_1.hashCode();
|
|
3354
3354
|
};
|
|
3355
3355
|
protoOf(ServerState).equals = function (other) {
|
|
3356
3356
|
if (this === other)
|
|
@@ -3358,7 +3358,7 @@
|
|
|
3358
3358
|
if (!(other instanceof ServerState))
|
|
3359
3359
|
return false;
|
|
3360
3360
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3361
|
-
if (!this.
|
|
3361
|
+
if (!this.m9d_1.equals(tmp0_other_with_cast.m9d_1))
|
|
3362
3362
|
return false;
|
|
3363
3363
|
return true;
|
|
3364
3364
|
};
|
|
@@ -3396,13 +3396,13 @@
|
|
|
3396
3396
|
}
|
|
3397
3397
|
function _get_controllerLogger__nbd727($this) {
|
|
3398
3398
|
// Inline function 'kotlin.getValue' call
|
|
3399
|
-
var this_0 = $this.
|
|
3399
|
+
var this_0 = $this.o9i_1;
|
|
3400
3400
|
controllerLogger$factory();
|
|
3401
3401
|
return this_0.u();
|
|
3402
3402
|
}
|
|
3403
3403
|
function _get_di__ndbzja($this) {
|
|
3404
3404
|
// Inline function 'kotlin.getValue' call
|
|
3405
|
-
var this_0 = $this.
|
|
3405
|
+
var this_0 = $this.p9i_1;
|
|
3406
3406
|
di$factory();
|
|
3407
3407
|
return this_0.u();
|
|
3408
3408
|
}
|
|
@@ -3413,13 +3413,13 @@
|
|
|
3413
3413
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3414
3414
|
return function () {
|
|
3415
3415
|
var tmp;
|
|
3416
|
-
if (this$0.
|
|
3416
|
+
if (this$0.m9i_1 == null) {
|
|
3417
3417
|
tmp = null;
|
|
3418
3418
|
} else {
|
|
3419
3419
|
// Inline function 'kotlin.let' call
|
|
3420
3420
|
// Inline function 'kotlin.contracts.contract' call
|
|
3421
3421
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3422
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3422
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.m9i_1)]));
|
|
3423
3423
|
}
|
|
3424
3424
|
var tmp1_elvis_lhs = tmp;
|
|
3425
3425
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3447,7 +3447,7 @@
|
|
|
3447
3447
|
tmp_0.h5y(tmp$ret$3);
|
|
3448
3448
|
$this$DI.l5u(jsonModule());
|
|
3449
3449
|
$this$DI.l5u(serverHelpersModule());
|
|
3450
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3450
|
+
$this$DI.l5u(randomOrgModule(this$0.n9i_1));
|
|
3451
3451
|
return Unit_instance;
|
|
3452
3452
|
};
|
|
3453
3453
|
}
|
|
@@ -3458,16 +3458,16 @@
|
|
|
3458
3458
|
};
|
|
3459
3459
|
}
|
|
3460
3460
|
function _no_name_provided__qut3iv_4($item) {
|
|
3461
|
-
this.
|
|
3461
|
+
this.v9i_1 = $item;
|
|
3462
3462
|
}
|
|
3463
3463
|
protoOf(_no_name_provided__qut3iv_4).d6f = function (action) {
|
|
3464
3464
|
return isInterface(action, Action);
|
|
3465
3465
|
};
|
|
3466
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3467
|
-
return this.
|
|
3466
|
+
protoOf(_no_name_provided__qut3iv_4).x8z = function (state, action) {
|
|
3467
|
+
return this.v9i_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3468
3468
|
};
|
|
3469
3469
|
protoOf(_no_name_provided__qut3iv_4).v6g = function (state, action) {
|
|
3470
|
-
return this.
|
|
3470
|
+
return this.x8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3471
3471
|
};
|
|
3472
3472
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3473
3473
|
return function ($this$singleton) {
|
|
@@ -3524,7 +3524,7 @@
|
|
|
3524
3524
|
}
|
|
3525
3525
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
3526
3526
|
return function (it) {
|
|
3527
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
3527
|
+
var tmp0_elvis_lhs = Companion_instance_4.t94(it);
|
|
3528
3528
|
var tmp;
|
|
3529
3529
|
if (tmp0_elvis_lhs == null) {
|
|
3530
3530
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3537,7 +3537,7 @@
|
|
|
3537
3537
|
}
|
|
3538
3538
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
3539
3539
|
return function (it) {
|
|
3540
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
3540
|
+
var tmp0_elvis_lhs = Companion_instance_5.e93(it);
|
|
3541
3541
|
var tmp;
|
|
3542
3542
|
if (tmp0_elvis_lhs == null) {
|
|
3543
3543
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3559,7 +3559,7 @@
|
|
|
3559
3559
|
// Inline function 'kotlin.contracts.contract' call
|
|
3560
3560
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
3561
3561
|
}
|
|
3562
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3562
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.n9i_1));
|
|
3563
3563
|
$this$DI.l5u(coreModule($coreConfig));
|
|
3564
3564
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3565
3565
|
return Unit_instance;
|
|
@@ -3568,76 +3568,76 @@
|
|
|
3568
3568
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3569
3569
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3570
3570
|
production = production === VOID ? true : production;
|
|
3571
|
-
this.
|
|
3572
|
-
this.
|
|
3571
|
+
this.m9i_1 = loggerCallback;
|
|
3572
|
+
this.n9i_1 = randomOrgConfig;
|
|
3573
3573
|
AppEnvironment_getInstance().g6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3574
3574
|
var tmp = this;
|
|
3575
|
-
tmp.
|
|
3575
|
+
tmp.o9i_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3576
3576
|
var tmp_0 = this;
|
|
3577
|
-
tmp_0.
|
|
3577
|
+
tmp_0.p9i_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3578
3578
|
var tmp_1 = this;
|
|
3579
3579
|
// Inline function 'org.kodein.di.instance' call
|
|
3580
3580
|
var this_0 = _get_di__ndbzja(this);
|
|
3581
3581
|
// Inline function 'org.kodein.type.generic' call
|
|
3582
3582
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3583
3583
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3584
|
-
tmp_1.
|
|
3584
|
+
tmp_1.q9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
3585
3585
|
var tmp_3 = this;
|
|
3586
3586
|
// Inline function 'org.kodein.di.instance' call
|
|
3587
3587
|
var this_1 = _get_di__ndbzja(this);
|
|
3588
3588
|
// Inline function 'org.kodein.type.generic' call
|
|
3589
3589
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3590
3590
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3591
|
-
tmp_3.
|
|
3591
|
+
tmp_3.r9i_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
3592
3592
|
var tmp_5 = this;
|
|
3593
3593
|
// Inline function 'org.kodein.di.instance' call
|
|
3594
3594
|
var this_2 = _get_di__ndbzja(this);
|
|
3595
3595
|
// Inline function 'org.kodein.type.generic' call
|
|
3596
3596
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3597
3597
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3598
|
-
tmp_5.
|
|
3598
|
+
tmp_5.s9i_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
3599
3599
|
var tmp_7 = this;
|
|
3600
3600
|
// Inline function 'org.kodein.di.instance' call
|
|
3601
3601
|
var this_3 = _get_di__ndbzja(this);
|
|
3602
3602
|
// Inline function 'org.kodein.type.generic' call
|
|
3603
3603
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3604
3604
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3605
|
-
tmp_7.
|
|
3605
|
+
tmp_7.t9i_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
3606
3606
|
var tmp_9 = this;
|
|
3607
3607
|
// Inline function 'org.kodein.di.instance' call
|
|
3608
3608
|
var this_4 = _get_di__ndbzja(this);
|
|
3609
3609
|
// Inline function 'org.kodein.type.generic' call
|
|
3610
3610
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3611
3611
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3612
|
-
tmp_9.
|
|
3612
|
+
tmp_9.u9i_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
3613
3613
|
}
|
|
3614
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3614
|
+
protoOf(GameServerEngineControllerImpl).g9i = function () {
|
|
3615
3615
|
// Inline function 'kotlin.getValue' call
|
|
3616
|
-
var this_0 = this.
|
|
3616
|
+
var this_0 = this.q9i_1;
|
|
3617
3617
|
parser$factory_0();
|
|
3618
3618
|
return this_0.u();
|
|
3619
3619
|
};
|
|
3620
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3620
|
+
protoOf(GameServerEngineControllerImpl).i9i = function () {
|
|
3621
3621
|
// Inline function 'kotlin.getValue' call
|
|
3622
|
-
var this_0 = this.
|
|
3622
|
+
var this_0 = this.r9i_1;
|
|
3623
3623
|
helper$factory_0();
|
|
3624
3624
|
return this_0.u();
|
|
3625
3625
|
};
|
|
3626
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3626
|
+
protoOf(GameServerEngineControllerImpl).j9i = function () {
|
|
3627
3627
|
// Inline function 'kotlin.getValue' call
|
|
3628
|
-
var this_0 = this.
|
|
3628
|
+
var this_0 = this.s9i_1;
|
|
3629
3629
|
resources$factory_0();
|
|
3630
3630
|
return this_0.u();
|
|
3631
3631
|
};
|
|
3632
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3632
|
+
protoOf(GameServerEngineControllerImpl).h9i = function () {
|
|
3633
3633
|
// Inline function 'kotlin.getValue' call
|
|
3634
|
-
var this_0 = this.
|
|
3634
|
+
var this_0 = this.t9i_1;
|
|
3635
3635
|
test$factory_0();
|
|
3636
3636
|
return this_0.u();
|
|
3637
3637
|
};
|
|
3638
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3638
|
+
protoOf(GameServerEngineControllerImpl).k9i = function () {
|
|
3639
3639
|
// Inline function 'kotlin.getValue' call
|
|
3640
|
-
var this_0 = this.
|
|
3640
|
+
var this_0 = this.u9i_1;
|
|
3641
3641
|
randomPoolProvider$factory_0();
|
|
3642
3642
|
return this_0.u();
|
|
3643
3643
|
};
|
|
@@ -3647,7 +3647,7 @@
|
|
|
3647
3647
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3648
3648
|
return this.createGameEngineWithLogic();
|
|
3649
3649
|
};
|
|
3650
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3650
|
+
protoOf(GameServerEngineControllerImpl).l9i = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3651
3651
|
var combinedLogger = Companion_instance_6.qm();
|
|
3652
3652
|
var tmp;
|
|
3653
3653
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3657,8 +3657,8 @@
|
|
|
3657
3657
|
}
|
|
3658
3658
|
var fileLoggerOutput = tmp;
|
|
3659
3659
|
var tmp_0;
|
|
3660
|
-
if (!(this.
|
|
3661
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3660
|
+
if (!(this.m9i_1 == null)) {
|
|
3661
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.m9i_1));
|
|
3662
3662
|
} else {
|
|
3663
3663
|
tmp_0 = null;
|
|
3664
3664
|
}
|
|
@@ -3701,12 +3701,12 @@
|
|
|
3701
3701
|
var gameServer = tmp_1.v5v(tmp$ret$7, null);
|
|
3702
3702
|
if (!(fileLoggerOutput == null)) {
|
|
3703
3703
|
var tmp_3 = fileLoggerOutput;
|
|
3704
|
-
tmp_3.
|
|
3704
|
+
tmp_3.i94_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
3705
3705
|
combinedLogger.sm(fileLoggerOutput);
|
|
3706
3706
|
}
|
|
3707
3707
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
3708
3708
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
3709
|
-
tmp_4.
|
|
3709
|
+
tmp_4.g93_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
3710
3710
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
3711
3711
|
}
|
|
3712
3712
|
return gameServer;
|
|
@@ -3775,13 +3775,13 @@
|
|
|
3775
3775
|
}
|
|
3776
3776
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3777
3777
|
// Inline function 'kotlin.getValue' call
|
|
3778
|
-
var this_0 = $this.
|
|
3778
|
+
var this_0 = $this.y9i_1;
|
|
3779
3779
|
playerAnswerInteractor$factory_0();
|
|
3780
3780
|
return this_0.u();
|
|
3781
3781
|
}
|
|
3782
3782
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3783
3783
|
return function ($this$singleton) {
|
|
3784
|
-
return this$0.
|
|
3784
|
+
return this$0.w9i_1;
|
|
3785
3785
|
};
|
|
3786
3786
|
}
|
|
3787
3787
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3810,20 +3810,20 @@
|
|
|
3810
3810
|
return emptyMap();
|
|
3811
3811
|
}
|
|
3812
3812
|
function TestHelperImpl(logger) {
|
|
3813
|
-
this.
|
|
3813
|
+
this.w9i_1 = logger;
|
|
3814
3814
|
var tmp = this;
|
|
3815
3815
|
var tmp_0 = Companion_instance_3;
|
|
3816
|
-
tmp.
|
|
3816
|
+
tmp.x9i_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
3817
3817
|
var tmp_1 = this;
|
|
3818
3818
|
// Inline function 'org.kodein.di.instance' call
|
|
3819
|
-
var this_0 = this.
|
|
3819
|
+
var this_0 = this.x9i_1;
|
|
3820
3820
|
// Inline function 'org.kodein.type.generic' call
|
|
3821
3821
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3822
3822
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3823
|
-
tmp_1.
|
|
3823
|
+
tmp_1.y9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
3824
3824
|
}
|
|
3825
3825
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3826
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3826
|
+
return _get_playerAnswerInteractor__msggz1(this).i8d(playerId, table, botConfig);
|
|
3827
3827
|
};
|
|
3828
3828
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
3829
3829
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -3831,7 +3831,7 @@
|
|
|
3831
3831
|
var tmp$ret$0;
|
|
3832
3832
|
$l$block_0: {
|
|
3833
3833
|
// Inline function 'kotlin.collections.any' call
|
|
3834
|
-
var this_0 = mechanicAction.
|
|
3834
|
+
var this_0 = mechanicAction.o8q();
|
|
3835
3835
|
var tmp;
|
|
3836
3836
|
if (isInterface(this_0, Collection)) {
|
|
3837
3837
|
tmp = this_0.p();
|
|
@@ -3864,7 +3864,7 @@
|
|
|
3864
3864
|
var tmp$ret$0;
|
|
3865
3865
|
$l$block_0: {
|
|
3866
3866
|
// Inline function 'kotlin.collections.any' call
|
|
3867
|
-
var this_0 = action.
|
|
3867
|
+
var this_0 = action.o8q();
|
|
3868
3868
|
var tmp;
|
|
3869
3869
|
if (isInterface(this_0, Collection)) {
|
|
3870
3870
|
tmp = this_0.p();
|
|
@@ -3964,19 +3964,19 @@
|
|
|
3964
3964
|
});
|
|
3965
3965
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
3966
3966
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
3967
|
-
return this.
|
|
3967
|
+
return this.g9i();
|
|
3968
3968
|
});
|
|
3969
3969
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
3970
|
-
return this.
|
|
3970
|
+
return this.i9i();
|
|
3971
3971
|
});
|
|
3972
3972
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
3973
|
-
return this.
|
|
3973
|
+
return this.j9i();
|
|
3974
3974
|
});
|
|
3975
3975
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
3976
|
-
return this.
|
|
3976
|
+
return this.h9i();
|
|
3977
3977
|
});
|
|
3978
3978
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
3979
|
-
return this.
|
|
3979
|
+
return this.k9i();
|
|
3980
3980
|
});
|
|
3981
3981
|
//endregion
|
|
3982
3982
|
//region block: init
|