raspberry_games_server_game_logic 1.8.261 → 1.8.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +6453 -6320
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +22 -19
- package/Logic_Debertz-game_server.js +506 -506
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -295,15 +295,15 @@
|
|
|
295
295
|
tmp = spectators;
|
|
296
296
|
}
|
|
297
297
|
spectators = tmp;
|
|
298
|
-
return this.
|
|
298
|
+
return this.x9f(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
299
299
|
}
|
|
300
300
|
function roomOnDelete(newRid, $super) {
|
|
301
301
|
newRid = newRid === VOID ? null : newRid;
|
|
302
|
-
return this.
|
|
302
|
+
return this.y9f(newRid);
|
|
303
303
|
}
|
|
304
304
|
function shutdown(reason, roomId, $super) {
|
|
305
305
|
roomId = roomId === VOID ? null : roomId;
|
|
306
|
-
return this.
|
|
306
|
+
return this.z9f(reason, roomId);
|
|
307
307
|
}
|
|
308
308
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
309
309
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
354
354
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
355
355
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
356
|
-
return this.
|
|
356
|
+
return this.f9k(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
357
357
|
}
|
|
358
358
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
359
359
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -362,17 +362,17 @@
|
|
|
362
362
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
363
363
|
//endregion
|
|
364
364
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
365
|
-
this.
|
|
365
|
+
this.g98_1 = $subscriber;
|
|
366
366
|
CoroutineImpl.call(this, resultContinuation);
|
|
367
367
|
}
|
|
368
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
369
|
-
var tmp = this.
|
|
368
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).i98 = function (it, $completion) {
|
|
369
|
+
var tmp = this.j98(it, $completion);
|
|
370
370
|
tmp.g9_1 = Unit_instance;
|
|
371
371
|
tmp.h9_1 = null;
|
|
372
372
|
return tmp.m9();
|
|
373
373
|
};
|
|
374
374
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
375
|
-
return this.
|
|
375
|
+
return this.i98(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
376
376
|
};
|
|
377
377
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
378
378
|
var suspendResult = this.g9_1;
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
var tmp = this.e9_1;
|
|
382
382
|
if (tmp === 0) {
|
|
383
383
|
this.f9_1 = 1;
|
|
384
|
-
this.
|
|
384
|
+
this.g98_1(this.h98_1);
|
|
385
385
|
return Unit_instance;
|
|
386
386
|
} else if (tmp === 1) {
|
|
387
387
|
throw this.h9_1;
|
|
@@ -392,31 +392,31 @@
|
|
|
392
392
|
}
|
|
393
393
|
while (true);
|
|
394
394
|
};
|
|
395
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
396
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
397
|
-
i.
|
|
395
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).j98 = function (it, completion) {
|
|
396
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.g98_1, completion);
|
|
397
|
+
i.h98_1 = it;
|
|
398
398
|
return i;
|
|
399
399
|
};
|
|
400
400
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
401
401
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
402
402
|
var l = function (it, $completion) {
|
|
403
|
-
return i.
|
|
403
|
+
return i.i98(it, $completion);
|
|
404
404
|
};
|
|
405
405
|
l.$arity = 1;
|
|
406
406
|
return l;
|
|
407
407
|
}
|
|
408
408
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
409
|
-
this.
|
|
409
|
+
this.s98_1 = $subscriber;
|
|
410
410
|
CoroutineImpl.call(this, resultContinuation);
|
|
411
411
|
}
|
|
412
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
413
|
-
var tmp = this.
|
|
412
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).u98 = function (it, $completion) {
|
|
413
|
+
var tmp = this.v98(it, $completion);
|
|
414
414
|
tmp.g9_1 = Unit_instance;
|
|
415
415
|
tmp.h9_1 = null;
|
|
416
416
|
return tmp.m9();
|
|
417
417
|
};
|
|
418
418
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
419
|
-
return this.
|
|
419
|
+
return this.u98(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
420
420
|
};
|
|
421
421
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
422
422
|
var suspendResult = this.g9_1;
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
var tmp = this.e9_1;
|
|
426
426
|
if (tmp === 0) {
|
|
427
427
|
this.f9_1 = 1;
|
|
428
|
-
this.
|
|
428
|
+
this.s98_1(this.t98_1);
|
|
429
429
|
return Unit_instance;
|
|
430
430
|
} else if (tmp === 1) {
|
|
431
431
|
throw this.h9_1;
|
|
@@ -436,70 +436,70 @@
|
|
|
436
436
|
}
|
|
437
437
|
while (true);
|
|
438
438
|
};
|
|
439
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
440
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
441
|
-
i.
|
|
439
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).v98 = function (it, completion) {
|
|
440
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.s98_1, completion);
|
|
441
|
+
i.t98_1 = it;
|
|
442
442
|
return i;
|
|
443
443
|
};
|
|
444
444
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
445
445
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
446
446
|
var l = function (it, $completion) {
|
|
447
|
-
return i.
|
|
447
|
+
return i.u98(it, $completion);
|
|
448
448
|
};
|
|
449
449
|
l.$arity = 1;
|
|
450
450
|
return l;
|
|
451
451
|
}
|
|
452
452
|
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($it) {
|
|
453
|
-
this.
|
|
453
|
+
this.w98_1 = $it;
|
|
454
454
|
}
|
|
455
455
|
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).q66 = function () {
|
|
456
|
-
return this.
|
|
456
|
+
return this.w98_1;
|
|
457
457
|
};
|
|
458
458
|
function _get_logger__rkp4sl($this) {
|
|
459
459
|
// Inline function 'kotlin.getValue' call
|
|
460
|
-
var this_0 = $this.
|
|
460
|
+
var this_0 = $this.z98_1;
|
|
461
461
|
logger$factory_0();
|
|
462
462
|
return this_0.u();
|
|
463
463
|
}
|
|
464
464
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
465
465
|
// Inline function 'kotlin.getValue' call
|
|
466
|
-
var this_0 = $this.
|
|
466
|
+
var this_0 = $this.a99_1;
|
|
467
467
|
toClientEventsObserver$factory_0();
|
|
468
468
|
return this_0.u();
|
|
469
469
|
}
|
|
470
470
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
471
471
|
// Inline function 'kotlin.getValue' call
|
|
472
|
-
var this_0 = $this.
|
|
472
|
+
var this_0 = $this.b99_1;
|
|
473
473
|
playerConnectionInteractor$factory_0();
|
|
474
474
|
return this_0.u();
|
|
475
475
|
}
|
|
476
476
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
477
477
|
// Inline function 'kotlin.getValue' call
|
|
478
|
-
var this_0 = $this.
|
|
478
|
+
var this_0 = $this.c99_1;
|
|
479
479
|
teamsLogicProvider$factory_0();
|
|
480
480
|
return this_0.u();
|
|
481
481
|
}
|
|
482
482
|
function _get_random__h29cgo($this) {
|
|
483
483
|
// Inline function 'kotlin.getValue' call
|
|
484
|
-
var this_0 = $this.
|
|
484
|
+
var this_0 = $this.d99_1;
|
|
485
485
|
random$factory();
|
|
486
486
|
return this_0.u();
|
|
487
487
|
}
|
|
488
488
|
function Companion() {
|
|
489
|
-
this.
|
|
489
|
+
this.f99_1 = 'GameEngine_API';
|
|
490
490
|
}
|
|
491
491
|
var Companion_instance_7;
|
|
492
492
|
function Companion_getInstance_0() {
|
|
493
493
|
return Companion_instance_7;
|
|
494
494
|
}
|
|
495
495
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
496
|
-
this.
|
|
496
|
+
this.g99_1 = function_0;
|
|
497
497
|
}
|
|
498
498
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
499
|
-
return this.
|
|
499
|
+
return this.g99_1(value, $completion);
|
|
500
500
|
};
|
|
501
501
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
502
|
-
return this.
|
|
502
|
+
return this.g99_1;
|
|
503
503
|
};
|
|
504
504
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
505
505
|
var tmp;
|
|
@@ -520,13 +520,13 @@
|
|
|
520
520
|
return hashCode(this.o3());
|
|
521
521
|
};
|
|
522
522
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
523
|
-
this.
|
|
523
|
+
this.h99_1 = function_0;
|
|
524
524
|
}
|
|
525
525
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
526
|
-
return this.
|
|
526
|
+
return this.h99_1(value, $completion);
|
|
527
527
|
};
|
|
528
528
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
529
|
-
return this.
|
|
529
|
+
return this.h99_1;
|
|
530
530
|
};
|
|
531
531
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
532
532
|
var tmp;
|
|
@@ -552,8 +552,8 @@
|
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
555
|
+
this.q99_1 = this$0;
|
|
556
|
+
this.r99_1 = $subscriber;
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
558
|
}
|
|
559
559
|
protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -574,8 +574,8 @@
|
|
|
574
574
|
case 0:
|
|
575
575
|
this.f9_1 = 2;
|
|
576
576
|
this.e9_1 = 1;
|
|
577
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
578
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
577
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.q99_1).t99();
|
|
578
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.r99_1, null);
|
|
579
579
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
580
580
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
581
581
|
return suspendResult;
|
|
@@ -599,8 +599,8 @@
|
|
|
599
599
|
while (true);
|
|
600
600
|
};
|
|
601
601
|
protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
|
|
602
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
603
|
-
i.
|
|
602
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.q99_1, this.r99_1, completion);
|
|
603
|
+
i.s99_1 = $this$launchDefault;
|
|
604
604
|
return i;
|
|
605
605
|
};
|
|
606
606
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -612,8 +612,8 @@
|
|
|
612
612
|
return l;
|
|
613
613
|
}
|
|
614
614
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
615
|
+
this.c9a_1 = this$0;
|
|
616
|
+
this.d9a_1 = $subscriber;
|
|
617
617
|
CoroutineImpl.call(this, resultContinuation);
|
|
618
618
|
}
|
|
619
619
|
protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -634,8 +634,8 @@
|
|
|
634
634
|
case 0:
|
|
635
635
|
this.f9_1 = 2;
|
|
636
636
|
this.e9_1 = 1;
|
|
637
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
638
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
637
|
+
var tmp_0 = distinctUntilChanged(this.c9a_1.x6l());
|
|
638
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.d9a_1, null);
|
|
639
639
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
640
640
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
641
641
|
return suspendResult;
|
|
@@ -659,8 +659,8 @@
|
|
|
659
659
|
while (true);
|
|
660
660
|
};
|
|
661
661
|
protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
|
|
662
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
663
|
-
i.
|
|
662
|
+
var i = new GameServer$subscribeWith$slambda(this.c9a_1, this.d9a_1, completion);
|
|
663
|
+
i.e9a_1 = $this$launchDefault;
|
|
664
664
|
return i;
|
|
665
665
|
};
|
|
666
666
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -672,18 +672,18 @@
|
|
|
672
672
|
return l;
|
|
673
673
|
}
|
|
674
674
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
675
|
-
this.
|
|
675
|
+
this.n9a_1 = $action;
|
|
676
676
|
CoroutineImpl.call(this, resultContinuation);
|
|
677
677
|
}
|
|
678
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
679
|
-
var tmp = this.
|
|
678
|
+
protoOf(GameServer$fromClientEvent$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
679
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
680
680
|
tmp.g9_1 = Unit_instance;
|
|
681
681
|
tmp.h9_1 = null;
|
|
682
682
|
return tmp.m9();
|
|
683
683
|
};
|
|
684
684
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
685
685
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
686
|
-
return this.
|
|
686
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
687
687
|
};
|
|
688
688
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
689
689
|
var suspendResult = this.g9_1;
|
|
@@ -692,11 +692,11 @@
|
|
|
692
692
|
var tmp = this.e9_1;
|
|
693
693
|
if (tmp === 0) {
|
|
694
694
|
this.f9_1 = 1;
|
|
695
|
-
if (this.
|
|
696
|
-
if (!get_isCreated(this.
|
|
695
|
+
if (this.n9a_1 instanceof PlayerReadyFromClientAction)
|
|
696
|
+
if (!get_isCreated(this.p9a_1.state)) {
|
|
697
697
|
return Unit_instance;
|
|
698
698
|
}
|
|
699
|
-
this.
|
|
699
|
+
this.p9a_1.dispatch(this.n9a_1);
|
|
700
700
|
return Unit_instance;
|
|
701
701
|
} else if (tmp === 1) {
|
|
702
702
|
throw this.h9_1;
|
|
@@ -707,33 +707,33 @@
|
|
|
707
707
|
}
|
|
708
708
|
while (true);
|
|
709
709
|
};
|
|
710
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
711
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
712
|
-
i.
|
|
713
|
-
i.
|
|
710
|
+
protoOf(GameServer$fromClientEvent$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
711
|
+
var i = new GameServer$fromClientEvent$slambda(this.n9a_1, completion);
|
|
712
|
+
i.o9a_1 = $this$dispatchAsync;
|
|
713
|
+
i.p9a_1 = store;
|
|
714
714
|
return i;
|
|
715
715
|
};
|
|
716
716
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
717
717
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
718
718
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
719
|
-
return i.
|
|
719
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
720
720
|
};
|
|
721
721
|
l.$arity = 2;
|
|
722
722
|
return l;
|
|
723
723
|
}
|
|
724
724
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
725
|
-
this.
|
|
725
|
+
this.a9b_1 = $playerId;
|
|
726
726
|
CoroutineImpl.call(this, resultContinuation);
|
|
727
727
|
}
|
|
728
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
729
|
-
var tmp = this.
|
|
728
|
+
protoOf(GameServer$playerLostConnection$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
729
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
730
730
|
tmp.g9_1 = Unit_instance;
|
|
731
731
|
tmp.h9_1 = null;
|
|
732
732
|
return tmp.m9();
|
|
733
733
|
};
|
|
734
734
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
735
735
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
736
|
-
return this.
|
|
736
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
737
737
|
};
|
|
738
738
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
739
739
|
var suspendResult = this.g9_1;
|
|
@@ -742,12 +742,12 @@
|
|
|
742
742
|
var tmp = this.e9_1;
|
|
743
743
|
if (tmp === 0) {
|
|
744
744
|
this.f9_1 = 1;
|
|
745
|
-
if (!get_isCreated(this.
|
|
745
|
+
if (!get_isCreated(this.c9b_1.state)) {
|
|
746
746
|
return Unit_instance;
|
|
747
747
|
}
|
|
748
|
-
var tmp_0 = this.
|
|
748
|
+
var tmp_0 = this.c9b_1.dispatch;
|
|
749
749
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
750
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
750
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.a9b_1));
|
|
751
751
|
return Unit_instance;
|
|
752
752
|
} else if (tmp === 1) {
|
|
753
753
|
throw this.h9_1;
|
|
@@ -758,33 +758,33 @@
|
|
|
758
758
|
}
|
|
759
759
|
while (true);
|
|
760
760
|
};
|
|
761
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
762
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
763
|
-
i.
|
|
764
|
-
i.
|
|
761
|
+
protoOf(GameServer$playerLostConnection$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
762
|
+
var i = new GameServer$playerLostConnection$slambda(this.a9b_1, completion);
|
|
763
|
+
i.b9b_1 = $this$dispatchAsync;
|
|
764
|
+
i.c9b_1 = store;
|
|
765
765
|
return i;
|
|
766
766
|
};
|
|
767
767
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
768
768
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
769
769
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
770
|
-
return i.
|
|
770
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
771
771
|
};
|
|
772
772
|
l.$arity = 2;
|
|
773
773
|
return l;
|
|
774
774
|
}
|
|
775
775
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
776
|
-
this.
|
|
776
|
+
this.l9b_1 = $playerId;
|
|
777
777
|
CoroutineImpl.call(this, resultContinuation);
|
|
778
778
|
}
|
|
779
|
-
protoOf(GameServer$playerLive$slambda).
|
|
780
|
-
var tmp = this.
|
|
779
|
+
protoOf(GameServer$playerLive$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
780
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
781
781
|
tmp.g9_1 = Unit_instance;
|
|
782
782
|
tmp.h9_1 = null;
|
|
783
783
|
return tmp.m9();
|
|
784
784
|
};
|
|
785
785
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
786
786
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
787
|
-
return this.
|
|
787
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
788
788
|
};
|
|
789
789
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
790
790
|
var suspendResult = this.g9_1;
|
|
@@ -793,9 +793,9 @@
|
|
|
793
793
|
var tmp = this.e9_1;
|
|
794
794
|
if (tmp === 0) {
|
|
795
795
|
this.f9_1 = 1;
|
|
796
|
-
var tmp_0 = this.
|
|
796
|
+
var tmp_0 = this.n9b_1.dispatch;
|
|
797
797
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
798
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
798
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.l9b_1));
|
|
799
799
|
return Unit_instance;
|
|
800
800
|
} else if (tmp === 1) {
|
|
801
801
|
throw this.h9_1;
|
|
@@ -806,33 +806,33 @@
|
|
|
806
806
|
}
|
|
807
807
|
while (true);
|
|
808
808
|
};
|
|
809
|
-
protoOf(GameServer$playerLive$slambda).
|
|
810
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
811
|
-
i.
|
|
812
|
-
i.
|
|
809
|
+
protoOf(GameServer$playerLive$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
810
|
+
var i = new GameServer$playerLive$slambda(this.l9b_1, completion);
|
|
811
|
+
i.m9b_1 = $this$dispatchAsync;
|
|
812
|
+
i.n9b_1 = store;
|
|
813
813
|
return i;
|
|
814
814
|
};
|
|
815
815
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
816
816
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
817
817
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
818
|
-
return i.
|
|
818
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
819
819
|
};
|
|
820
820
|
l.$arity = 2;
|
|
821
821
|
return l;
|
|
822
822
|
}
|
|
823
823
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
824
|
-
this.
|
|
824
|
+
this.w9b_1 = $playerId;
|
|
825
825
|
CoroutineImpl.call(this, resultContinuation);
|
|
826
826
|
}
|
|
827
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
828
|
-
var tmp = this.
|
|
827
|
+
protoOf(GameServer$playerLeft$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
828
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
829
829
|
tmp.g9_1 = Unit_instance;
|
|
830
830
|
tmp.h9_1 = null;
|
|
831
831
|
return tmp.m9();
|
|
832
832
|
};
|
|
833
833
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
834
834
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
835
|
-
return this.
|
|
835
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
836
836
|
};
|
|
837
837
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
838
838
|
var suspendResult = this.g9_1;
|
|
@@ -841,9 +841,9 @@
|
|
|
841
841
|
var tmp = this.e9_1;
|
|
842
842
|
if (tmp === 0) {
|
|
843
843
|
this.f9_1 = 1;
|
|
844
|
-
var tmp_0 = this.
|
|
844
|
+
var tmp_0 = this.y9b_1.dispatch;
|
|
845
845
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
846
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
846
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.w9b_1));
|
|
847
847
|
return Unit_instance;
|
|
848
848
|
} else if (tmp === 1) {
|
|
849
849
|
throw this.h9_1;
|
|
@@ -854,39 +854,39 @@
|
|
|
854
854
|
}
|
|
855
855
|
while (true);
|
|
856
856
|
};
|
|
857
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
858
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
859
|
-
i.
|
|
860
|
-
i.
|
|
857
|
+
protoOf(GameServer$playerLeft$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
858
|
+
var i = new GameServer$playerLeft$slambda(this.w9b_1, completion);
|
|
859
|
+
i.x9b_1 = $this$dispatchAsync;
|
|
860
|
+
i.y9b_1 = store;
|
|
861
861
|
return i;
|
|
862
862
|
};
|
|
863
863
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
864
864
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
865
865
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
866
|
-
return i.
|
|
866
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
867
867
|
};
|
|
868
868
|
l.$arity = 2;
|
|
869
869
|
return l;
|
|
870
870
|
}
|
|
871
871
|
function GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
872
|
+
this.h9c_1 = $usersArray;
|
|
873
|
+
this.i9c_1 = $gameCreatorId;
|
|
874
|
+
this.j9c_1 = $config;
|
|
875
|
+
this.k9c_1 = $transition;
|
|
876
|
+
this.l9c_1 = this$0;
|
|
877
|
+
this.m9c_1 = $spectators;
|
|
878
|
+
this.n9c_1 = $roomId;
|
|
879
879
|
CoroutineImpl.call(this, resultContinuation);
|
|
880
880
|
}
|
|
881
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
882
|
-
var tmp = this.
|
|
881
|
+
protoOf(GameServer$roomOnCreate$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
882
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
883
883
|
tmp.g9_1 = Unit_instance;
|
|
884
884
|
tmp.h9_1 = null;
|
|
885
885
|
return tmp.m9();
|
|
886
886
|
};
|
|
887
887
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
888
888
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
889
|
-
return this.
|
|
889
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
890
890
|
};
|
|
891
891
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
892
892
|
var suspendResult = this.g9_1;
|
|
@@ -895,24 +895,24 @@
|
|
|
895
895
|
var tmp = this.e9_1;
|
|
896
896
|
if (tmp === 0) {
|
|
897
897
|
this.f9_1 = 1;
|
|
898
|
-
var users = toList(this.
|
|
899
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
898
|
+
var users = toList(this.h9c_1);
|
|
899
|
+
var gameCreatorUser = getPlayer(users, this.i9c_1);
|
|
900
900
|
var tmp_0;
|
|
901
|
-
if (this.
|
|
902
|
-
tmp_0 = sortWithItem(_get_random__h29cgo(this.
|
|
901
|
+
if (this.j9c_1.mode.shufflePlayers && this.k9c_1 == null) {
|
|
902
|
+
tmp_0 = sortWithItem(_get_random__h29cgo(this.l9c_1).s5s(toMutableList(users)), gameCreatorUser);
|
|
903
903
|
} else {
|
|
904
|
-
var tmp0_safe_receiver = this.
|
|
904
|
+
var tmp0_safe_receiver = this.k9c_1;
|
|
905
905
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
906
906
|
var tmp_1;
|
|
907
|
-
if (!(previousPlayers == null) && this.
|
|
908
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
907
|
+
if (!(previousPlayers == null) && this.j9c_1.playersMode.isTeamGame) {
|
|
908
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.l9c_1);
|
|
909
909
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
910
910
|
var tmp0_iterator = previousPlayers.j();
|
|
911
911
|
while (tmp0_iterator.k()) {
|
|
912
912
|
var item = tmp0_iterator.l();
|
|
913
913
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
914
914
|
}
|
|
915
|
-
var previousTeams = tmp_2.
|
|
915
|
+
var previousTeams = tmp_2.k8e(destination);
|
|
916
916
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
917
917
|
var tmp0_iterator_0 = users.j();
|
|
918
918
|
while (tmp0_iterator_0.k()) {
|
|
@@ -936,17 +936,17 @@
|
|
|
936
936
|
destination_1.e(destination_2);
|
|
937
937
|
}
|
|
938
938
|
var updatedTeams = destination_1;
|
|
939
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
939
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.l9c_1).o8e(updatedTeams);
|
|
940
940
|
} else {
|
|
941
941
|
tmp_1 = users;
|
|
942
942
|
}
|
|
943
943
|
tmp_0 = tmp_1;
|
|
944
944
|
}
|
|
945
945
|
var updatedUsers = tmp_0;
|
|
946
|
-
var tmp_3 = this.
|
|
946
|
+
var tmp_3 = this.p9c_1.dispatch;
|
|
947
947
|
var tmp1_version = GameEngineConfig_instance.version;
|
|
948
|
-
var tmp2_spectators = toList(this.
|
|
949
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
948
|
+
var tmp2_spectators = toList(this.m9c_1);
|
|
949
|
+
tmp_3(new StartGameMechanicAction(this.j9c_1, this.n9c_1, tmp1_version, this.i9c_1, updatedUsers, VOID, tmp2_spectators));
|
|
950
950
|
return Unit_instance;
|
|
951
951
|
} else if (tmp === 1) {
|
|
952
952
|
throw this.h9_1;
|
|
@@ -957,33 +957,33 @@
|
|
|
957
957
|
}
|
|
958
958
|
while (true);
|
|
959
959
|
};
|
|
960
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
961
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
962
|
-
i.
|
|
963
|
-
i.
|
|
960
|
+
protoOf(GameServer$roomOnCreate$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
961
|
+
var i = new GameServer$roomOnCreate$slambda(this.h9c_1, this.i9c_1, this.j9c_1, this.k9c_1, this.l9c_1, this.m9c_1, this.n9c_1, completion);
|
|
962
|
+
i.o9c_1 = $this$dispatchAsync;
|
|
963
|
+
i.p9c_1 = store;
|
|
964
964
|
return i;
|
|
965
965
|
};
|
|
966
966
|
function GameServer$roomOnCreate$slambda_0($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
967
967
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation);
|
|
968
968
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
969
|
-
return i.
|
|
969
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
970
970
|
};
|
|
971
971
|
l.$arity = 2;
|
|
972
972
|
return l;
|
|
973
973
|
}
|
|
974
974
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
975
|
-
this.
|
|
975
|
+
this.y9c_1 = $tableLite;
|
|
976
976
|
CoroutineImpl.call(this, resultContinuation);
|
|
977
977
|
}
|
|
978
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
979
|
-
var tmp = this.
|
|
978
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
979
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
980
980
|
tmp.g9_1 = Unit_instance;
|
|
981
981
|
tmp.h9_1 = null;
|
|
982
982
|
return tmp.m9();
|
|
983
983
|
};
|
|
984
984
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
985
985
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
986
|
-
return this.
|
|
986
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
987
987
|
};
|
|
988
988
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
989
989
|
var suspendResult = this.g9_1;
|
|
@@ -992,11 +992,11 @@
|
|
|
992
992
|
var tmp = this.e9_1;
|
|
993
993
|
if (tmp === 0) {
|
|
994
994
|
this.f9_1 = 1;
|
|
995
|
-
var tmp_0 = this.
|
|
995
|
+
var tmp_0 = this.a9d_1.dispatch;
|
|
996
996
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
997
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
997
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.y9c_1);
|
|
998
998
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
999
|
-
this.
|
|
999
|
+
this.a9d_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1000
1000
|
return Unit_instance;
|
|
1001
1001
|
} else if (tmp === 1) {
|
|
1002
1002
|
throw this.h9_1;
|
|
@@ -1007,33 +1007,33 @@
|
|
|
1007
1007
|
}
|
|
1008
1008
|
while (true);
|
|
1009
1009
|
};
|
|
1010
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1011
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
1012
|
-
i.
|
|
1013
|
-
i.
|
|
1010
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
1011
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.y9c_1, completion);
|
|
1012
|
+
i.z9c_1 = $this$dispatchAsync;
|
|
1013
|
+
i.a9d_1 = store;
|
|
1014
1014
|
return i;
|
|
1015
1015
|
};
|
|
1016
1016
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
1017
1017
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
1018
1018
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1019
|
-
return i.
|
|
1019
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
1020
1020
|
};
|
|
1021
1021
|
l.$arity = 2;
|
|
1022
1022
|
return l;
|
|
1023
1023
|
}
|
|
1024
1024
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1025
|
-
this.
|
|
1025
|
+
this.j9d_1 = $spectators;
|
|
1026
1026
|
CoroutineImpl.call(this, resultContinuation);
|
|
1027
1027
|
}
|
|
1028
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1029
|
-
var tmp = this.
|
|
1028
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
1029
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
1030
1030
|
tmp.g9_1 = Unit_instance;
|
|
1031
1031
|
tmp.h9_1 = null;
|
|
1032
1032
|
return tmp.m9();
|
|
1033
1033
|
};
|
|
1034
1034
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1035
1035
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1036
|
-
return this.
|
|
1036
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1037
1037
|
};
|
|
1038
1038
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
1039
1039
|
var suspendResult = this.g9_1;
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
var tmp = this.e9_1;
|
|
1043
1043
|
if (tmp === 0) {
|
|
1044
1044
|
this.f9_1 = 1;
|
|
1045
|
-
this.
|
|
1045
|
+
this.l9d_1.dispatch(new AddSpectatorsAction(toList(this.j9d_1)));
|
|
1046
1046
|
return Unit_instance;
|
|
1047
1047
|
} else if (tmp === 1) {
|
|
1048
1048
|
throw this.h9_1;
|
|
@@ -1053,33 +1053,33 @@
|
|
|
1053
1053
|
}
|
|
1054
1054
|
while (true);
|
|
1055
1055
|
};
|
|
1056
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1057
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1058
|
-
i.
|
|
1059
|
-
i.
|
|
1056
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
1057
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.j9d_1, completion);
|
|
1058
|
+
i.k9d_1 = $this$dispatchAsync;
|
|
1059
|
+
i.l9d_1 = store;
|
|
1060
1060
|
return i;
|
|
1061
1061
|
};
|
|
1062
1062
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1063
1063
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1064
1064
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1065
|
-
return i.
|
|
1065
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
1066
1066
|
};
|
|
1067
1067
|
l.$arity = 2;
|
|
1068
1068
|
return l;
|
|
1069
1069
|
}
|
|
1070
1070
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1071
|
-
this.
|
|
1071
|
+
this.u9d_1 = $spectators;
|
|
1072
1072
|
CoroutineImpl.call(this, resultContinuation);
|
|
1073
1073
|
}
|
|
1074
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1075
|
-
var tmp = this.
|
|
1074
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
1075
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
1076
1076
|
tmp.g9_1 = Unit_instance;
|
|
1077
1077
|
tmp.h9_1 = null;
|
|
1078
1078
|
return tmp.m9();
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1081
1081
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1082
|
-
return this.
|
|
1082
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1083
1083
|
};
|
|
1084
1084
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1085
1085
|
var suspendResult = this.g9_1;
|
|
@@ -1088,7 +1088,7 @@
|
|
|
1088
1088
|
var tmp = this.e9_1;
|
|
1089
1089
|
if (tmp === 0) {
|
|
1090
1090
|
this.f9_1 = 1;
|
|
1091
|
-
this.
|
|
1091
|
+
this.w9d_1.dispatch(new RemoveSpectatorsAction(toList(this.u9d_1)));
|
|
1092
1092
|
return Unit_instance;
|
|
1093
1093
|
} else if (tmp === 1) {
|
|
1094
1094
|
throw this.h9_1;
|
|
@@ -1099,34 +1099,34 @@
|
|
|
1099
1099
|
}
|
|
1100
1100
|
while (true);
|
|
1101
1101
|
};
|
|
1102
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1103
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1104
|
-
i.
|
|
1105
|
-
i.
|
|
1102
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
1103
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.u9d_1, completion);
|
|
1104
|
+
i.v9d_1 = $this$dispatchAsync;
|
|
1105
|
+
i.w9d_1 = store;
|
|
1106
1106
|
return i;
|
|
1107
1107
|
};
|
|
1108
1108
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1109
1109
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1110
1110
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1111
|
-
return i.
|
|
1111
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
1112
1112
|
};
|
|
1113
1113
|
l.$arity = 2;
|
|
1114
1114
|
return l;
|
|
1115
1115
|
}
|
|
1116
1116
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1117
|
-
this.
|
|
1118
|
-
this.
|
|
1117
|
+
this.f9e_1 = $playerId;
|
|
1118
|
+
this.g9e_1 = this$0;
|
|
1119
1119
|
CoroutineImpl.call(this, resultContinuation);
|
|
1120
1120
|
}
|
|
1121
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1122
|
-
var tmp = this.
|
|
1121
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
1122
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
1123
1123
|
tmp.g9_1 = Unit_instance;
|
|
1124
1124
|
tmp.h9_1 = null;
|
|
1125
1125
|
return tmp.m9();
|
|
1126
1126
|
};
|
|
1127
1127
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1128
1128
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1129
|
-
return this.
|
|
1129
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1130
1130
|
};
|
|
1131
1131
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1132
1132
|
var suspendResult = this.g9_1;
|
|
@@ -1135,14 +1135,14 @@
|
|
|
1135
1135
|
var tmp = this.e9_1;
|
|
1136
1136
|
if (tmp === 0) {
|
|
1137
1137
|
this.f9_1 = 1;
|
|
1138
|
-
var table = this.
|
|
1139
|
-
var player = getPlayer(table.players, this.
|
|
1138
|
+
var table = this.i9e_1.state.a6n();
|
|
1139
|
+
var player = getPlayer(table.players, this.f9e_1);
|
|
1140
1140
|
if (player.s6s_1.q69().h68_1.isLive) {
|
|
1141
|
-
this.
|
|
1141
|
+
this.i9e_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.g9e_1).d8l(player, table));
|
|
1142
1142
|
} else {
|
|
1143
|
-
var tmp_0 = this.
|
|
1143
|
+
var tmp_0 = this.i9e_1.dispatch;
|
|
1144
1144
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1145
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1145
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.f9e_1));
|
|
1146
1146
|
}
|
|
1147
1147
|
return Unit_instance;
|
|
1148
1148
|
} else if (tmp === 1) {
|
|
@@ -1154,34 +1154,34 @@
|
|
|
1154
1154
|
}
|
|
1155
1155
|
while (true);
|
|
1156
1156
|
};
|
|
1157
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1158
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1159
|
-
i.
|
|
1160
|
-
i.
|
|
1157
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
1158
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.f9e_1, this.g9e_1, completion);
|
|
1159
|
+
i.h9e_1 = $this$dispatchAsync;
|
|
1160
|
+
i.i9e_1 = store;
|
|
1161
1161
|
return i;
|
|
1162
1162
|
};
|
|
1163
1163
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1164
1164
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1165
1165
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1166
|
-
return i.
|
|
1166
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
1167
1167
|
};
|
|
1168
1168
|
l.$arity = 2;
|
|
1169
1169
|
return l;
|
|
1170
1170
|
}
|
|
1171
1171
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1172
|
+
this.r9e_1 = this$0;
|
|
1173
|
+
this.s9e_1 = $newRid;
|
|
1174
1174
|
CoroutineImpl.call(this, resultContinuation);
|
|
1175
1175
|
}
|
|
1176
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1177
|
-
var tmp = this.
|
|
1176
|
+
protoOf(GameServer$roomOnDelete$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
1177
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
1178
1178
|
tmp.g9_1 = Unit_instance;
|
|
1179
1179
|
tmp.h9_1 = null;
|
|
1180
1180
|
return tmp.m9();
|
|
1181
1181
|
};
|
|
1182
1182
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1183
1183
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1184
|
-
return this.
|
|
1184
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1185
1185
|
};
|
|
1186
1186
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1187
1187
|
var suspendResult = this.g9_1;
|
|
@@ -1190,23 +1190,23 @@
|
|
|
1190
1190
|
var tmp = this.e9_1;
|
|
1191
1191
|
if (tmp === 0) {
|
|
1192
1192
|
this.f9_1 = 1;
|
|
1193
|
-
var it = this.
|
|
1193
|
+
var it = this.r9e_1.n67().b6m_1;
|
|
1194
1194
|
var tmp_0;
|
|
1195
1195
|
if (it == null) {
|
|
1196
|
-
_get_logger__rkp4sl(this.
|
|
1196
|
+
_get_logger__rkp4sl(this.r9e_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1197
1197
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1198
1198
|
} else {
|
|
1199
1199
|
tmp_0 = it;
|
|
1200
1200
|
}
|
|
1201
1201
|
var terminationState = tmp_0;
|
|
1202
|
-
var tmp_1 = this.
|
|
1203
|
-
var tmp1_reason = terminationState.
|
|
1204
|
-
var tmp0_safe_receiver = terminationState.
|
|
1202
|
+
var tmp_1 = this.u9e_1.dispatch;
|
|
1203
|
+
var tmp1_reason = terminationState.e8p_1;
|
|
1204
|
+
var tmp0_safe_receiver = terminationState.f8p_1;
|
|
1205
1205
|
var tmp_2;
|
|
1206
1206
|
if (tmp0_safe_receiver == null) {
|
|
1207
1207
|
tmp_2 = null;
|
|
1208
1208
|
} else {
|
|
1209
|
-
var value = this.
|
|
1209
|
+
var value = this.s9e_1;
|
|
1210
1210
|
var tmp$ret$0 = Unit_instance;
|
|
1211
1211
|
l$ret$1: do {
|
|
1212
1212
|
if (value == null) {
|
|
@@ -1221,7 +1221,7 @@
|
|
|
1221
1221
|
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1222
1222
|
}
|
|
1223
1223
|
var tmp2_transition = tmp_2;
|
|
1224
|
-
var tmp3_isGameFinished = this.
|
|
1224
|
+
var tmp3_isGameFinished = this.r9e_1.n67().a6n().isGameFinished;
|
|
1225
1225
|
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1226
1226
|
return Unit_instance;
|
|
1227
1227
|
} else if (tmp === 1) {
|
|
@@ -1233,33 +1233,33 @@
|
|
|
1233
1233
|
}
|
|
1234
1234
|
while (true);
|
|
1235
1235
|
};
|
|
1236
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1237
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1238
|
-
i.
|
|
1239
|
-
i.
|
|
1236
|
+
protoOf(GameServer$roomOnDelete$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
1237
|
+
var i = new GameServer$roomOnDelete$slambda(this.r9e_1, this.s9e_1, completion);
|
|
1238
|
+
i.t9e_1 = $this$dispatchAsync;
|
|
1239
|
+
i.u9e_1 = store;
|
|
1240
1240
|
return i;
|
|
1241
1241
|
};
|
|
1242
1242
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1243
1243
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1244
1244
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1245
|
-
return i.
|
|
1245
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
1246
1246
|
};
|
|
1247
1247
|
l.$arity = 2;
|
|
1248
1248
|
return l;
|
|
1249
1249
|
}
|
|
1250
1250
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1251
|
-
this.
|
|
1251
|
+
this.d9f_1 = $enabled;
|
|
1252
1252
|
CoroutineImpl.call(this, resultContinuation);
|
|
1253
1253
|
}
|
|
1254
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1255
|
-
var tmp = this.
|
|
1254
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
1255
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
1256
1256
|
tmp.g9_1 = Unit_instance;
|
|
1257
1257
|
tmp.h9_1 = null;
|
|
1258
1258
|
return tmp.m9();
|
|
1259
1259
|
};
|
|
1260
1260
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1261
1261
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1262
|
-
return this.
|
|
1262
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1263
1263
|
};
|
|
1264
1264
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1265
1265
|
var suspendResult = this.g9_1;
|
|
@@ -1268,7 +1268,7 @@
|
|
|
1268
1268
|
var tmp = this.e9_1;
|
|
1269
1269
|
if (tmp === 0) {
|
|
1270
1270
|
this.f9_1 = 1;
|
|
1271
|
-
this.
|
|
1271
|
+
this.f9f_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.f9f_1.state).g9f_1.i9f(this.d9f_1)));
|
|
1272
1272
|
return Unit_instance;
|
|
1273
1273
|
} else if (tmp === 1) {
|
|
1274
1274
|
throw this.h9_1;
|
|
@@ -1279,35 +1279,35 @@
|
|
|
1279
1279
|
}
|
|
1280
1280
|
while (true);
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1283
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1284
|
-
i.
|
|
1285
|
-
i.
|
|
1282
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
1283
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.d9f_1, completion);
|
|
1284
|
+
i.e9f_1 = $this$dispatchAsync;
|
|
1285
|
+
i.f9f_1 = store;
|
|
1286
1286
|
return i;
|
|
1287
1287
|
};
|
|
1288
1288
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1289
1289
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1290
1290
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1291
|
-
return i.
|
|
1291
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
1292
1292
|
};
|
|
1293
1293
|
l.$arity = 2;
|
|
1294
1294
|
return l;
|
|
1295
1295
|
}
|
|
1296
1296
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1297
|
+
this.r9f_1 = $reason;
|
|
1298
|
+
this.s9f_1 = this$0;
|
|
1299
|
+
this.t9f_1 = $roomId;
|
|
1300
1300
|
CoroutineImpl.call(this, resultContinuation);
|
|
1301
1301
|
}
|
|
1302
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1303
|
-
var tmp = this.
|
|
1302
|
+
protoOf(GameServer$shutdown$slambda).q9a = function ($this$dispatchAsync, store, $completion) {
|
|
1303
|
+
var tmp = this.r9a($this$dispatchAsync, store, $completion);
|
|
1304
1304
|
tmp.g9_1 = Unit_instance;
|
|
1305
1305
|
tmp.h9_1 = null;
|
|
1306
1306
|
return tmp.m9();
|
|
1307
1307
|
};
|
|
1308
1308
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1309
1309
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1310
|
-
return this.
|
|
1310
|
+
return this.q9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1311
1311
|
};
|
|
1312
1312
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1313
1313
|
var suspendResult = this.g9_1;
|
|
@@ -1316,11 +1316,11 @@
|
|
|
1316
1316
|
var tmp = this.e9_1;
|
|
1317
1317
|
if (tmp === 0) {
|
|
1318
1318
|
this.f9_1 = 1;
|
|
1319
|
-
var state = this.
|
|
1319
|
+
var state = this.v9f_1.store.state;
|
|
1320
1320
|
if (state.b6n()) {
|
|
1321
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1321
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.r9f_1, get_serverShutdownReasonMapping());
|
|
1322
1322
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1323
|
-
var tmp_0 = this.
|
|
1323
|
+
var tmp_0 = this.v9f_1.dispatch;
|
|
1324
1324
|
var tmp_1 = Companion_instance_0;
|
|
1325
1325
|
var tmp_2;
|
|
1326
1326
|
switch (shutdownReason.n2_1) {
|
|
@@ -1334,10 +1334,10 @@
|
|
|
1334
1334
|
noWhenBranchMatchedException();
|
|
1335
1335
|
break;
|
|
1336
1336
|
}
|
|
1337
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1337
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.s9f_1.table.isGameFinished, this.s9f_1.table));
|
|
1338
1338
|
} else {
|
|
1339
|
-
_get_logger__rkp4sl(this.
|
|
1340
|
-
this.
|
|
1339
|
+
_get_logger__rkp4sl(this.s9f_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.t9f_1);
|
|
1340
|
+
this.v9f_1.dispatch(new ClearAction());
|
|
1341
1341
|
}
|
|
1342
1342
|
return Unit_instance;
|
|
1343
1343
|
} else if (tmp === 1) {
|
|
@@ -1349,22 +1349,22 @@
|
|
|
1349
1349
|
}
|
|
1350
1350
|
while (true);
|
|
1351
1351
|
};
|
|
1352
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1353
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1354
|
-
i.
|
|
1355
|
-
i.
|
|
1352
|
+
protoOf(GameServer$shutdown$slambda).r9a = function ($this$dispatchAsync, store, completion) {
|
|
1353
|
+
var i = new GameServer$shutdown$slambda(this.r9f_1, this.s9f_1, this.t9f_1, completion);
|
|
1354
|
+
i.u9f_1 = $this$dispatchAsync;
|
|
1355
|
+
i.v9f_1 = store;
|
|
1356
1356
|
return i;
|
|
1357
1357
|
};
|
|
1358
1358
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1359
1359
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1360
1360
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1361
|
-
return i.
|
|
1361
|
+
return i.q9a($this$dispatchAsync, store, $completion);
|
|
1362
1362
|
};
|
|
1363
1363
|
l.$arity = 2;
|
|
1364
1364
|
return l;
|
|
1365
1365
|
}
|
|
1366
1366
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1367
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1367
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.w9f()) : preloadedState;
|
|
1368
1368
|
var tmp;
|
|
1369
1369
|
if (externalReducers === VOID) {
|
|
1370
1370
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1387,34 +1387,34 @@
|
|
|
1387
1387
|
// Inline function 'org.kodein.type.generic' call
|
|
1388
1388
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1389
1389
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1390
|
-
tmp_1.
|
|
1390
|
+
tmp_1.z98_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
|
|
1391
1391
|
var tmp_3 = this;
|
|
1392
1392
|
// Inline function 'org.kodein.di.instance' call
|
|
1393
1393
|
// Inline function 'org.kodein.type.generic' call
|
|
1394
1394
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1395
1395
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1396
|
-
tmp_3.
|
|
1396
|
+
tmp_3.a99_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
|
|
1397
1397
|
var tmp_5 = this;
|
|
1398
1398
|
// Inline function 'org.kodein.di.instance' call
|
|
1399
1399
|
// Inline function 'org.kodein.type.generic' call
|
|
1400
1400
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1401
1401
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1402
|
-
tmp_5.
|
|
1402
|
+
tmp_5.b99_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
|
|
1403
1403
|
var tmp_7 = this;
|
|
1404
1404
|
// Inline function 'org.kodein.di.instance' call
|
|
1405
1405
|
// Inline function 'org.kodein.type.generic' call
|
|
1406
1406
|
var tmp_8 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
1407
1407
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1408
|
-
tmp_7.
|
|
1408
|
+
tmp_7.c99_1 = Instance(di, tmp$ret$8, null).e60(this, teamsLogicProvider$factory());
|
|
1409
1409
|
var tmp_9 = this;
|
|
1410
|
-
tmp_9.
|
|
1410
|
+
tmp_9.d99_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1411
1411
|
var tmp_10 = this;
|
|
1412
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1413
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1414
|
-
tmp_10.
|
|
1412
|
+
var tmp0_externalMiddlewares = plus(storeContract.m8t(), externalMiddlewares);
|
|
1413
|
+
var tmp1_externalReducers = plus(storeContract.l8t(), externalReducers);
|
|
1414
|
+
tmp_10.e99_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1415
1415
|
}
|
|
1416
1416
|
protoOf(GameServer).n6l = function () {
|
|
1417
|
-
return this.
|
|
1417
|
+
return this.e99_1;
|
|
1418
1418
|
};
|
|
1419
1419
|
protoOf(GameServer).o5h = function () {
|
|
1420
1420
|
return this.n67().a6n().id;
|
|
@@ -1438,44 +1438,44 @@
|
|
|
1438
1438
|
};
|
|
1439
1439
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1440
1440
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1441
|
-
this.
|
|
1441
|
+
this.e99_1.z6m(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1442
1442
|
};
|
|
1443
1443
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1444
1444
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1445
|
-
this.
|
|
1445
|
+
this.e99_1.z6m(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1446
1446
|
};
|
|
1447
1447
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1448
1448
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1449
|
-
this.
|
|
1449
|
+
this.e99_1.z6m(GameServer$playerLive$slambda_0(playerId, null));
|
|
1450
1450
|
};
|
|
1451
1451
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1452
1452
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1453
|
-
this.
|
|
1453
|
+
this.e99_1.z6m(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1454
1454
|
};
|
|
1455
|
-
protoOf(GameServer).
|
|
1456
|
-
this.
|
|
1455
|
+
protoOf(GameServer).x9f = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1456
|
+
this.e99_1.z6m(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1457
1457
|
};
|
|
1458
1458
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1459
|
-
this.
|
|
1459
|
+
this.e99_1.z6m(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1460
1460
|
};
|
|
1461
1461
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1462
|
-
this.
|
|
1462
|
+
this.e99_1.z6m(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1463
1463
|
};
|
|
1464
1464
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1465
|
-
this.
|
|
1465
|
+
this.e99_1.z6m(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1466
1466
|
};
|
|
1467
1467
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1468
1468
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1469
|
-
this.
|
|
1469
|
+
this.e99_1.z6m(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1470
1470
|
};
|
|
1471
|
-
protoOf(GameServer).
|
|
1472
|
-
this.
|
|
1471
|
+
protoOf(GameServer).y9f = function (newRid) {
|
|
1472
|
+
this.e99_1.z6m(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1473
1473
|
};
|
|
1474
1474
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1475
|
-
this.
|
|
1475
|
+
this.e99_1.z6m(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1476
1476
|
};
|
|
1477
|
-
protoOf(GameServer).
|
|
1478
|
-
this.
|
|
1477
|
+
protoOf(GameServer).z9f = function (reason, roomId) {
|
|
1478
|
+
this.e99_1.z6m(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1479
1479
|
};
|
|
1480
1480
|
protoOf(GameServer).clear = function () {
|
|
1481
1481
|
return this.a2();
|
|
@@ -1559,16 +1559,16 @@
|
|
|
1559
1559
|
return ServerShutdownReason_ERROR_instance;
|
|
1560
1560
|
}
|
|
1561
1561
|
function ServerConfig(canStartNewGame) {
|
|
1562
|
-
this.
|
|
1562
|
+
this.h9f_1 = canStartNewGame;
|
|
1563
1563
|
}
|
|
1564
|
-
protoOf(ServerConfig).
|
|
1564
|
+
protoOf(ServerConfig).i9f = function (canStartNewGame) {
|
|
1565
1565
|
return new ServerConfig(canStartNewGame);
|
|
1566
1566
|
};
|
|
1567
1567
|
protoOf(ServerConfig).toString = function () {
|
|
1568
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1568
|
+
return 'ServerConfig(canStartNewGame=' + this.h9f_1 + ')';
|
|
1569
1569
|
};
|
|
1570
1570
|
protoOf(ServerConfig).hashCode = function () {
|
|
1571
|
-
return getBooleanHashCode(this.
|
|
1571
|
+
return getBooleanHashCode(this.h9f_1);
|
|
1572
1572
|
};
|
|
1573
1573
|
protoOf(ServerConfig).equals = function (other) {
|
|
1574
1574
|
if (this === other)
|
|
@@ -1576,7 +1576,7 @@
|
|
|
1576
1576
|
if (!(other instanceof ServerConfig))
|
|
1577
1577
|
return false;
|
|
1578
1578
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1579
|
-
if (!(this.
|
|
1579
|
+
if (!(this.h9f_1 === tmp0_other_with_cast.h9f_1))
|
|
1580
1580
|
return false;
|
|
1581
1581
|
return true;
|
|
1582
1582
|
};
|
|
@@ -1808,18 +1808,18 @@
|
|
|
1808
1808
|
function ToClientEventsObserver() {
|
|
1809
1809
|
}
|
|
1810
1810
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1811
|
+
this.j9g_1 = this$0;
|
|
1812
|
+
this.k9g_1 = $actions;
|
|
1813
1813
|
CoroutineImpl.call(this, resultContinuation);
|
|
1814
1814
|
}
|
|
1815
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1816
|
-
var tmp = this.
|
|
1815
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).r9g = function ($this$flow, $completion) {
|
|
1816
|
+
var tmp = this.s9g($this$flow, $completion);
|
|
1817
1817
|
tmp.g9_1 = Unit_instance;
|
|
1818
1818
|
tmp.h9_1 = null;
|
|
1819
1819
|
return tmp.m9();
|
|
1820
1820
|
};
|
|
1821
1821
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1822
|
-
return this.
|
|
1822
|
+
return this.r9g((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1823
1823
|
};
|
|
1824
1824
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1825
1825
|
var suspendResult = this.g9_1;
|
|
@@ -1830,23 +1830,23 @@
|
|
|
1830
1830
|
case 0:
|
|
1831
1831
|
this.f9_1 = 4;
|
|
1832
1832
|
var tmp_0 = this;
|
|
1833
|
-
tmp_0.
|
|
1833
|
+
tmp_0.m9g_1 = this.j9g_1.x9g_1;
|
|
1834
1834
|
var tmp_1 = this;
|
|
1835
|
-
tmp_1.
|
|
1836
|
-
this.
|
|
1835
|
+
tmp_1.n9g_1 = transformToEmits(this.j9g_1, this.k9g_1);
|
|
1836
|
+
this.o9g_1 = this.n9g_1.j();
|
|
1837
1837
|
this.e9_1 = 1;
|
|
1838
1838
|
continue $sm;
|
|
1839
1839
|
case 1:
|
|
1840
|
-
if (!this.
|
|
1840
|
+
if (!this.o9g_1.k()) {
|
|
1841
1841
|
this.e9_1 = 3;
|
|
1842
1842
|
continue $sm;
|
|
1843
1843
|
}
|
|
1844
1844
|
|
|
1845
|
-
this.
|
|
1845
|
+
this.p9g_1 = this.o9g_1.l();
|
|
1846
1846
|
var tmp_2 = this;
|
|
1847
|
-
tmp_2.
|
|
1847
|
+
tmp_2.q9g_1 = this.p9g_1;
|
|
1848
1848
|
this.e9_1 = 2;
|
|
1849
|
-
suspendResult = this.
|
|
1849
|
+
suspendResult = this.l9g_1.p18(this.q9g_1, this);
|
|
1850
1850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1851
1851
|
return suspendResult;
|
|
1852
1852
|
}
|
|
@@ -1857,10 +1857,10 @@
|
|
|
1857
1857
|
continue $sm;
|
|
1858
1858
|
case 3:
|
|
1859
1859
|
l$ret$1: do {
|
|
1860
|
-
var this_0 = this.
|
|
1860
|
+
var this_0 = this.j9g_1.w9g_1;
|
|
1861
1861
|
while (true) {
|
|
1862
1862
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1863
|
-
var upd = cur - this.
|
|
1863
|
+
var upd = cur - this.k9g_1.m() | 0;
|
|
1864
1864
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1865
1865
|
break l$ret$1;
|
|
1866
1866
|
}
|
|
@@ -1882,15 +1882,15 @@
|
|
|
1882
1882
|
}
|
|
1883
1883
|
while (true);
|
|
1884
1884
|
};
|
|
1885
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1886
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1887
|
-
i.
|
|
1885
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).s9g = function ($this$flow, completion) {
|
|
1886
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.j9g_1, this.k9g_1, completion);
|
|
1887
|
+
i.l9g_1 = $this$flow;
|
|
1888
1888
|
return i;
|
|
1889
1889
|
};
|
|
1890
1890
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1891
1891
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1892
1892
|
var l = function ($this$flow, $completion) {
|
|
1893
|
-
return i.
|
|
1893
|
+
return i.r9g($this$flow, $completion);
|
|
1894
1894
|
};
|
|
1895
1895
|
l.$arity = 1;
|
|
1896
1896
|
return l;
|
|
@@ -1963,29 +1963,29 @@
|
|
|
1963
1963
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1964
1964
|
}
|
|
1965
1965
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1966
|
-
var tmp = $this.
|
|
1966
|
+
var tmp = $this.v9g_1.g6d();
|
|
1967
1967
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1968
|
-
var this_0 = _this__u8e3s4.
|
|
1968
|
+
var this_0 = _this__u8e3s4.a9h_1;
|
|
1969
1969
|
var tmp_0 = copyToArray(this_0);
|
|
1970
1970
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1971
|
-
var this_1 = _this__u8e3s4.
|
|
1971
|
+
var this_1 = _this__u8e3s4.b9h_1;
|
|
1972
1972
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1973
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1973
|
+
return new ActionDeliveryPayload(_this__u8e3s4.z9g_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.c9h_1);
|
|
1974
1974
|
}
|
|
1975
1975
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
1976
|
+
this.z9g_1 = tableId;
|
|
1977
|
+
this.a9h_1 = includePlayers;
|
|
1978
|
+
this.b9h_1 = excludePlayers;
|
|
1979
|
+
this.c9h_1 = deliveryType;
|
|
1980
1980
|
}
|
|
1981
1981
|
protoOf(GroupKey).toString = function () {
|
|
1982
|
-
return 'GroupKey(tableId=' + this.
|
|
1982
|
+
return 'GroupKey(tableId=' + this.z9g_1 + ', includePlayers=' + toString(this.a9h_1) + ', excludePlayers=' + toString(this.b9h_1) + ', deliveryType=' + this.c9h_1.toString() + ')';
|
|
1983
1983
|
};
|
|
1984
1984
|
protoOf(GroupKey).hashCode = function () {
|
|
1985
|
-
var result = getStringHashCode(this.
|
|
1986
|
-
result = imul(result, 31) + hashCode(this.
|
|
1987
|
-
result = imul(result, 31) + hashCode(this.
|
|
1988
|
-
result = imul(result, 31) + this.
|
|
1985
|
+
var result = getStringHashCode(this.z9g_1);
|
|
1986
|
+
result = imul(result, 31) + hashCode(this.a9h_1) | 0;
|
|
1987
|
+
result = imul(result, 31) + hashCode(this.b9h_1) | 0;
|
|
1988
|
+
result = imul(result, 31) + this.c9h_1.hashCode() | 0;
|
|
1989
1989
|
return result;
|
|
1990
1990
|
};
|
|
1991
1991
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1994,35 +1994,35 @@
|
|
|
1994
1994
|
if (!(other instanceof GroupKey))
|
|
1995
1995
|
return false;
|
|
1996
1996
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1997
|
-
if (!(this.
|
|
1997
|
+
if (!(this.z9g_1 === tmp0_other_with_cast.z9g_1))
|
|
1998
1998
|
return false;
|
|
1999
|
-
if (!equals(this.
|
|
1999
|
+
if (!equals(this.a9h_1, tmp0_other_with_cast.a9h_1))
|
|
2000
2000
|
return false;
|
|
2001
|
-
if (!equals(this.
|
|
2001
|
+
if (!equals(this.b9h_1, tmp0_other_with_cast.b9h_1))
|
|
2002
2002
|
return false;
|
|
2003
|
-
if (!this.
|
|
2003
|
+
if (!this.c9h_1.equals(tmp0_other_with_cast.c9h_1))
|
|
2004
2004
|
return false;
|
|
2005
2005
|
return true;
|
|
2006
2006
|
};
|
|
2007
2007
|
function Companion_0() {
|
|
2008
|
-
this.
|
|
2008
|
+
this.d9h_1 = 6;
|
|
2009
2009
|
}
|
|
2010
2010
|
var Companion_instance_8;
|
|
2011
2011
|
function Companion_getInstance_1() {
|
|
2012
2012
|
return Companion_instance_8;
|
|
2013
2013
|
}
|
|
2014
2014
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
2015
|
-
this.
|
|
2015
|
+
this.m9h_1 = this$0;
|
|
2016
2016
|
CoroutineImpl.call(this, resultContinuation);
|
|
2017
2017
|
}
|
|
2018
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2019
|
-
var tmp = this.
|
|
2018
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).o9h = function (actions, $completion) {
|
|
2019
|
+
var tmp = this.p9h(actions, $completion);
|
|
2020
2020
|
tmp.g9_1 = Unit_instance;
|
|
2021
2021
|
tmp.h9_1 = null;
|
|
2022
2022
|
return tmp.m9();
|
|
2023
2023
|
};
|
|
2024
2024
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
2025
|
-
return this.
|
|
2025
|
+
return this.o9h((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
2026
2026
|
};
|
|
2027
2027
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
2028
2028
|
var suspendResult = this.g9_1;
|
|
@@ -2031,7 +2031,7 @@
|
|
|
2031
2031
|
var tmp = this.e9_1;
|
|
2032
2032
|
if (tmp === 0) {
|
|
2033
2033
|
this.f9_1 = 1;
|
|
2034
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
2034
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.m9h_1, this.n9h_1, null));
|
|
2035
2035
|
} else if (tmp === 1) {
|
|
2036
2036
|
throw this.h9_1;
|
|
2037
2037
|
}
|
|
@@ -2041,23 +2041,23 @@
|
|
|
2041
2041
|
}
|
|
2042
2042
|
while (true);
|
|
2043
2043
|
};
|
|
2044
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2045
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
2046
|
-
i.
|
|
2044
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).p9h = function (actions, completion) {
|
|
2045
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.m9h_1, completion);
|
|
2046
|
+
i.n9h_1 = actions;
|
|
2047
2047
|
return i;
|
|
2048
2048
|
};
|
|
2049
2049
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
2050
2050
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
2051
2051
|
var l = function (actions, $completion) {
|
|
2052
|
-
return i.
|
|
2052
|
+
return i.o9h(actions, $completion);
|
|
2053
2053
|
};
|
|
2054
2054
|
l.$arity = 1;
|
|
2055
2055
|
return l;
|
|
2056
2056
|
}
|
|
2057
2057
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
2058
2058
|
CoroutineImpl.call(this, resultContinuation);
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2059
|
+
this.y9h_1 = _this__u8e3s4;
|
|
2060
|
+
this.z9h_1 = fromEvent;
|
|
2061
2061
|
}
|
|
2062
2062
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
2063
2063
|
var suspendResult = this.g9_1;
|
|
@@ -2068,9 +2068,9 @@
|
|
|
2068
2068
|
case 0:
|
|
2069
2069
|
this.f9_1 = 2;
|
|
2070
2070
|
var tmp_0 = this;
|
|
2071
|
-
tmp_0.
|
|
2071
|
+
tmp_0.a9i_1 = this.y9h_1.x9g_1;
|
|
2072
2072
|
l$ret$1: do {
|
|
2073
|
-
var this_0 = this.
|
|
2073
|
+
var this_0 = this.y9h_1.w9g_1;
|
|
2074
2074
|
while (true) {
|
|
2075
2075
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2076
2076
|
var upd = cur + 1 | 0;
|
|
@@ -2081,7 +2081,7 @@
|
|
|
2081
2081
|
}
|
|
2082
2082
|
while (false);
|
|
2083
2083
|
this.e9_1 = 1;
|
|
2084
|
-
suspendResult = this.
|
|
2084
|
+
suspendResult = this.y9h_1.y9g_1.p18(this.z9h_1, this);
|
|
2085
2085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2086
2086
|
return suspendResult;
|
|
2087
2087
|
}
|
|
@@ -2105,7 +2105,7 @@
|
|
|
2105
2105
|
};
|
|
2106
2106
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2107
2107
|
CoroutineImpl.call(this, resultContinuation);
|
|
2108
|
-
this.
|
|
2108
|
+
this.j9i_1 = _this__u8e3s4;
|
|
2109
2109
|
}
|
|
2110
2110
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2111
2111
|
var suspendResult = this.g9_1;
|
|
@@ -2116,12 +2116,12 @@
|
|
|
2116
2116
|
case 0:
|
|
2117
2117
|
this.f9_1 = 5;
|
|
2118
2118
|
var tmp_0 = this;
|
|
2119
|
-
tmp_0.
|
|
2120
|
-
this.
|
|
2119
|
+
tmp_0.k9i_1 = this.j9i_1.x9g_1;
|
|
2120
|
+
this.l9i_1 = 0;
|
|
2121
2121
|
this.e9_1 = 1;
|
|
2122
2122
|
continue $sm;
|
|
2123
2123
|
case 1:
|
|
2124
|
-
if (!!(this.
|
|
2124
|
+
if (!!(this.j9i_1.w9g_1.kotlinx$atomicfu$value === 0)) {
|
|
2125
2125
|
this.e9_1 = 4;
|
|
2126
2126
|
continue $sm;
|
|
2127
2127
|
}
|
|
@@ -2134,9 +2134,9 @@
|
|
|
2134
2134
|
|
|
2135
2135
|
continue $sm;
|
|
2136
2136
|
case 2:
|
|
2137
|
-
this.
|
|
2138
|
-
if (this.
|
|
2139
|
-
this.
|
|
2137
|
+
this.l9i_1 = this.l9i_1 + 1 | 0;
|
|
2138
|
+
if (this.l9i_1 > 6) {
|
|
2139
|
+
this.j9i_1.u9g_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.j9i_1.w9g_1.kotlinx$atomicfu$value);
|
|
2140
2140
|
this.e9_1 = 4;
|
|
2141
2141
|
continue $sm;
|
|
2142
2142
|
} else {
|
|
@@ -2164,42 +2164,42 @@
|
|
|
2164
2164
|
while (true);
|
|
2165
2165
|
};
|
|
2166
2166
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
this.
|
|
2167
|
+
this.t9g_1 = serverReduxConfig;
|
|
2168
|
+
this.u9g_1 = logger;
|
|
2169
|
+
this.v9g_1 = idsProvider;
|
|
2170
|
+
this.w9g_1 = atomic$ref$1(0);
|
|
2171
2171
|
var tmp = this;
|
|
2172
2172
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2173
|
-
tmp.
|
|
2174
|
-
this.
|
|
2173
|
+
tmp.x9g_1 = get_atomicfu$reentrantLock();
|
|
2174
|
+
this.y9g_1 = MutableSharedFlow();
|
|
2175
2175
|
}
|
|
2176
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2176
|
+
protoOf(ToClientEventsObserverImpl).a9g = function (fromEvent, $completion) {
|
|
2177
2177
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2178
2178
|
tmp.g9_1 = Unit_instance;
|
|
2179
2179
|
tmp.h9_1 = null;
|
|
2180
2180
|
return tmp.m9();
|
|
2181
2181
|
};
|
|
2182
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2182
|
+
protoOf(ToClientEventsObserverImpl).h90 = function ($completion) {
|
|
2183
2183
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2184
2184
|
tmp.g9_1 = Unit_instance;
|
|
2185
2185
|
tmp.h9_1 = null;
|
|
2186
2186
|
return tmp.m9();
|
|
2187
2187
|
};
|
|
2188
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2189
|
-
if (!this.
|
|
2190
|
-
return this.
|
|
2188
|
+
protoOf(ToClientEventsObserverImpl).t99 = function () {
|
|
2189
|
+
if (!this.t9g_1.enabledCombinedEvents) {
|
|
2190
|
+
return this.y9g_1;
|
|
2191
2191
|
}
|
|
2192
|
-
var tmp = windowedByInterval(this.
|
|
2192
|
+
var tmp = windowedByInterval(this.y9g_1, toLong(this.t9g_1.combinedEventsPeriod));
|
|
2193
2193
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2194
2194
|
};
|
|
2195
2195
|
function UpdateServerConfigAction(serverConfig) {
|
|
2196
|
-
this.
|
|
2196
|
+
this.m9i_1 = serverConfig;
|
|
2197
2197
|
}
|
|
2198
2198
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2199
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2199
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.m9i_1.toString() + ')';
|
|
2200
2200
|
};
|
|
2201
2201
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2202
|
-
return this.
|
|
2202
|
+
return this.m9i_1.hashCode();
|
|
2203
2203
|
};
|
|
2204
2204
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2205
2205
|
if (this === other)
|
|
@@ -2207,20 +2207,20 @@
|
|
|
2207
2207
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2208
2208
|
return false;
|
|
2209
2209
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2210
|
-
if (!this.
|
|
2210
|
+
if (!this.m9i_1.equals(tmp0_other_with_cast.m9i_1))
|
|
2211
2211
|
return false;
|
|
2212
2212
|
return true;
|
|
2213
2213
|
};
|
|
2214
2214
|
function SpectatorsAction() {
|
|
2215
2215
|
}
|
|
2216
2216
|
function AddSpectatorsAction(spectators) {
|
|
2217
|
-
this.
|
|
2217
|
+
this.n9i_1 = spectators;
|
|
2218
2218
|
}
|
|
2219
2219
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2220
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2220
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.n9i_1) + ')';
|
|
2221
2221
|
};
|
|
2222
2222
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2223
|
-
return hashCode(this.
|
|
2223
|
+
return hashCode(this.n9i_1);
|
|
2224
2224
|
};
|
|
2225
2225
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2226
2226
|
if (this === other)
|
|
@@ -2228,18 +2228,18 @@
|
|
|
2228
2228
|
if (!(other instanceof AddSpectatorsAction))
|
|
2229
2229
|
return false;
|
|
2230
2230
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2231
|
-
if (!equals(this.
|
|
2231
|
+
if (!equals(this.n9i_1, tmp0_other_with_cast.n9i_1))
|
|
2232
2232
|
return false;
|
|
2233
2233
|
return true;
|
|
2234
2234
|
};
|
|
2235
2235
|
function RemoveSpectatorsAction(spectators) {
|
|
2236
|
-
this.
|
|
2236
|
+
this.o9i_1 = spectators;
|
|
2237
2237
|
}
|
|
2238
2238
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2239
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2239
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.o9i_1) + ')';
|
|
2240
2240
|
};
|
|
2241
2241
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2242
|
-
return hashCode(this.
|
|
2242
|
+
return hashCode(this.o9i_1);
|
|
2243
2243
|
};
|
|
2244
2244
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2245
2245
|
if (this === other)
|
|
@@ -2247,67 +2247,67 @@
|
|
|
2247
2247
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2248
2248
|
return false;
|
|
2249
2249
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2250
|
-
if (!equals(this.
|
|
2250
|
+
if (!equals(this.o9i_1, tmp0_other_with_cast.o9i_1))
|
|
2251
2251
|
return false;
|
|
2252
2252
|
return true;
|
|
2253
2253
|
};
|
|
2254
2254
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2255
2255
|
// Inline function 'kotlin.getValue' call
|
|
2256
|
-
var this_0 = $this.
|
|
2256
|
+
var this_0 = $this.u9i_1;
|
|
2257
2257
|
asyncProvider$factory_0();
|
|
2258
2258
|
return this_0.u();
|
|
2259
2259
|
}
|
|
2260
2260
|
function _get_logger__rkp4sl_0($this) {
|
|
2261
2261
|
// Inline function 'kotlin.getValue' call
|
|
2262
|
-
var this_0 = $this.
|
|
2262
|
+
var this_0 = $this.v9i_1;
|
|
2263
2263
|
logger$factory_2();
|
|
2264
2264
|
return this_0.u();
|
|
2265
2265
|
}
|
|
2266
2266
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2267
2267
|
// Inline function 'kotlin.getValue' call
|
|
2268
|
-
var this_0 = $this.
|
|
2268
|
+
var this_0 = $this.w9i_1;
|
|
2269
2269
|
playerConnectionInteractor$factory_2();
|
|
2270
2270
|
return this_0.u();
|
|
2271
2271
|
}
|
|
2272
2272
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2273
2273
|
// Inline function 'kotlin.getValue' call
|
|
2274
|
-
var this_0 = $this.
|
|
2274
|
+
var this_0 = $this.x9i_1;
|
|
2275
2275
|
lastCardInteractor$factory_0();
|
|
2276
2276
|
return this_0.u();
|
|
2277
2277
|
}
|
|
2278
2278
|
function _get_serverConfig__rk2g06($this) {
|
|
2279
2279
|
// Inline function 'kotlin.getValue' call
|
|
2280
|
-
var this_0 = $this.
|
|
2280
|
+
var this_0 = $this.y9i_1;
|
|
2281
2281
|
serverConfig$factory_0();
|
|
2282
2282
|
return this_0.u();
|
|
2283
2283
|
}
|
|
2284
2284
|
function _get_logicConfig__52ww9d($this) {
|
|
2285
2285
|
// Inline function 'kotlin.getValue' call
|
|
2286
|
-
var this_0 = $this.
|
|
2286
|
+
var this_0 = $this.z9i_1;
|
|
2287
2287
|
logicConfig$factory_0();
|
|
2288
2288
|
return this_0.u();
|
|
2289
2289
|
}
|
|
2290
2290
|
function _get_idsProvider__fnfajc($this) {
|
|
2291
2291
|
// Inline function 'kotlin.getValue' call
|
|
2292
|
-
var this_0 = $this.
|
|
2292
|
+
var this_0 = $this.a9j_1;
|
|
2293
2293
|
idsProvider$factory_0();
|
|
2294
2294
|
return this_0.u();
|
|
2295
2295
|
}
|
|
2296
2296
|
function _get_botConfig__cpaxzc($this) {
|
|
2297
2297
|
// Inline function 'kotlin.getValue' call
|
|
2298
|
-
var this_0 = $this.
|
|
2298
|
+
var this_0 = $this.b9j_1;
|
|
2299
2299
|
botConfig$factory_0();
|
|
2300
2300
|
return this_0.u();
|
|
2301
2301
|
}
|
|
2302
2302
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2303
2303
|
// Inline function 'kotlin.getValue' call
|
|
2304
|
-
var this_0 = $this.
|
|
2304
|
+
var this_0 = $this.c9j_1;
|
|
2305
2305
|
scenePositionProvider$factory_0();
|
|
2306
2306
|
return this_0.u();
|
|
2307
2307
|
}
|
|
2308
2308
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2309
2309
|
// Inline function 'kotlin.getValue' call
|
|
2310
|
-
var this_0 = $this.
|
|
2310
|
+
var this_0 = $this.d9j_1;
|
|
2311
2311
|
toClientEventsObserver$factory_2();
|
|
2312
2312
|
return this_0.u();
|
|
2313
2313
|
}
|
|
@@ -2320,77 +2320,77 @@
|
|
|
2320
2320
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2321
2321
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2322
2322
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2323
|
+
this.p9i_1 = validationStoreContract;
|
|
2324
|
+
this.q9i_1 = timersStoreContract;
|
|
2325
|
+
this.r9i_1 = botGameStoreContract;
|
|
2326
|
+
this.s9i_1 = gameMechanicStoreContract;
|
|
2327
|
+
this.t9i_1 = fileLoggerStoreContract;
|
|
2328
2328
|
var tmp = this;
|
|
2329
2329
|
// Inline function 'org.kodein.di.instance' call
|
|
2330
2330
|
// Inline function 'org.kodein.type.generic' call
|
|
2331
2331
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2332
2332
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2333
|
-
tmp.
|
|
2333
|
+
tmp.u9i_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2334
2334
|
var tmp_1 = this;
|
|
2335
2335
|
// Inline function 'org.kodein.di.instance' call
|
|
2336
2336
|
// Inline function 'org.kodein.type.generic' call
|
|
2337
2337
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2338
2338
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2339
|
-
tmp_1.
|
|
2339
|
+
tmp_1.v9i_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2340
2340
|
var tmp_3 = this;
|
|
2341
2341
|
// Inline function 'org.kodein.di.instance' call
|
|
2342
2342
|
// Inline function 'org.kodein.type.generic' call
|
|
2343
2343
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2344
2344
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2345
|
-
tmp_3.
|
|
2345
|
+
tmp_3.w9i_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2346
2346
|
var tmp_5 = this;
|
|
2347
2347
|
// Inline function 'org.kodein.di.instance' call
|
|
2348
2348
|
// Inline function 'org.kodein.type.generic' call
|
|
2349
2349
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2350
2350
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2351
|
-
tmp_5.
|
|
2351
|
+
tmp_5.x9i_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2352
2352
|
var tmp_7 = this;
|
|
2353
2353
|
// Inline function 'org.kodein.di.instance' call
|
|
2354
2354
|
// Inline function 'org.kodein.type.generic' call
|
|
2355
2355
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2356
2356
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2357
|
-
tmp_7.
|
|
2357
|
+
tmp_7.y9i_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2358
2358
|
var tmp_9 = this;
|
|
2359
2359
|
// Inline function 'org.kodein.di.instance' call
|
|
2360
2360
|
// Inline function 'org.kodein.type.generic' call
|
|
2361
2361
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2362
2362
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2363
|
-
tmp_9.
|
|
2363
|
+
tmp_9.z9i_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2364
2364
|
var tmp_11 = this;
|
|
2365
2365
|
// Inline function 'org.kodein.di.instance' call
|
|
2366
2366
|
// Inline function 'org.kodein.type.generic' call
|
|
2367
2367
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2368
2368
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2369
|
-
tmp_11.
|
|
2369
|
+
tmp_11.a9j_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2370
2370
|
var tmp_13 = this;
|
|
2371
2371
|
// Inline function 'org.kodein.di.instance' call
|
|
2372
2372
|
// Inline function 'org.kodein.type.generic' call
|
|
2373
2373
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2374
2374
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2375
|
-
tmp_13.
|
|
2375
|
+
tmp_13.b9j_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2376
2376
|
var tmp_15 = this;
|
|
2377
2377
|
// Inline function 'org.kodein.di.instance' call
|
|
2378
2378
|
// Inline function 'org.kodein.type.generic' call
|
|
2379
2379
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2380
2380
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2381
|
-
tmp_15.
|
|
2381
|
+
tmp_15.c9j_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2382
2382
|
var tmp_17 = this;
|
|
2383
2383
|
// Inline function 'org.kodein.di.instance' call
|
|
2384
2384
|
// Inline function 'org.kodein.type.generic' call
|
|
2385
2385
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2386
2386
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2387
|
-
tmp_17.
|
|
2387
|
+
tmp_17.d9j_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2388
2388
|
}
|
|
2389
|
-
protoOf(ServerGameStoreContract).
|
|
2390
|
-
return plus(plus(plus(plus(plus(this.
|
|
2389
|
+
protoOf(ServerGameStoreContract).l8t = function () {
|
|
2390
|
+
return plus(plus(plus(plus(plus(this.p9i_1.l8t(), this.q9i_1.l8t()), this.r9i_1.l8t()), this.s9i_1.l8t()), this.t9i_1.l8t()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2391
2391
|
};
|
|
2392
|
-
protoOf(ServerGameStoreContract).
|
|
2393
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2392
|
+
protoOf(ServerGameStoreContract).m8t = function () {
|
|
2393
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.p9i_1.m8t(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.q9i_1.m8t()), this.r9i_1.m8t()), this.s9i_1.m8t()), this.t9i_1.m8t()), 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))).e8v(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2394
2394
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2395
2395
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2396
2396
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2520,7 +2520,7 @@
|
|
|
2520
2520
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2521
2521
|
next(action_0);
|
|
2522
2522
|
var state = store.state;
|
|
2523
|
-
if (!get_serverState_0(state).
|
|
2523
|
+
if (!get_serverState_0(state).g9f_1.h9f_1 && action_0.isGameFinished) {
|
|
2524
2524
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.y6l_1));
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
@@ -2533,7 +2533,7 @@
|
|
|
2533
2533
|
};
|
|
2534
2534
|
}
|
|
2535
2535
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2536
|
-
this.
|
|
2536
|
+
this.g9j_1 = this$0;
|
|
2537
2537
|
}
|
|
2538
2538
|
protoOf(_no_name_provided__qut3iv_0).d6f = function (action) {
|
|
2539
2539
|
return action instanceof MechanicAction;
|
|
@@ -2548,11 +2548,11 @@
|
|
|
2548
2548
|
var tmp;
|
|
2549
2549
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2550
2550
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2551
|
-
var this_0 = this.
|
|
2552
|
-
var tableId = action_0.
|
|
2553
|
-
var gameCreatorPlayerId = action_0.
|
|
2551
|
+
var this_0 = this.g9j_1;
|
|
2552
|
+
var tableId = action_0.c8q_1;
|
|
2553
|
+
var gameCreatorPlayerId = action_0.e8q_1;
|
|
2554
2554
|
// Inline function 'kotlin.collections.map' call
|
|
2555
|
-
var this_1 = action_0.
|
|
2555
|
+
var this_1 = action_0.f8q_1;
|
|
2556
2556
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2557
2557
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
2558
2558
|
var tmp0_iterator = this_1.j();
|
|
@@ -2593,7 +2593,7 @@
|
|
|
2593
2593
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2594
2594
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2595
2595
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2596
|
-
var tmp0_aid = this_0.
|
|
2596
|
+
var tmp0_aid = this_0.f9j_1.g6d();
|
|
2597
2597
|
// Inline function 'kotlin.collections.map' call
|
|
2598
2598
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2599
2599
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -2618,17 +2618,17 @@
|
|
|
2618
2618
|
} else {
|
|
2619
2619
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2620
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2621
|
-
var this_2 = this.
|
|
2621
|
+
var this_2 = this.g9j_1;
|
|
2622
2622
|
var table = state.a6n();
|
|
2623
2623
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2624
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2624
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.f9j_1.g6d(), table.id, null);
|
|
2625
2625
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2626
2626
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2627
2627
|
} else {
|
|
2628
2628
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2629
2629
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2630
|
-
var this_3 = this.
|
|
2631
|
-
var tableId_0 = action_0.
|
|
2630
|
+
var this_3 = this.g9j_1;
|
|
2631
|
+
var tableId_0 = action_0.i8q_1.id;
|
|
2632
2632
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2633
2633
|
var players = getPlayers();
|
|
2634
2634
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2662,7 +2662,7 @@
|
|
|
2662
2662
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2663
2663
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2664
2664
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2665
|
-
var tmp0_aid_0 = this_3.
|
|
2665
|
+
var tmp0_aid_0 = this_3.f9j_1.g6d();
|
|
2666
2666
|
// Inline function 'kotlin.collections.map' call
|
|
2667
2667
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2668
2668
|
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -2687,43 +2687,43 @@
|
|
|
2687
2687
|
} else {
|
|
2688
2688
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2689
2689
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2690
|
-
var this_4 = this.
|
|
2690
|
+
var this_4 = this.g9j_1;
|
|
2691
2691
|
var table_0 = state.a6n();
|
|
2692
2692
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2693
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2693
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.f9j_1.g6d(), table_0.id, null);
|
|
2694
2694
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2695
2695
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2696
2696
|
} else {
|
|
2697
2697
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2698
2698
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2699
|
-
var this_5 = this.
|
|
2699
|
+
var this_5 = this.g9j_1;
|
|
2700
2700
|
var table_1 = state.a6n();
|
|
2701
2701
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2702
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2702
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.f9j_1.g6d(), table_1.id, null);
|
|
2703
2703
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2704
2704
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2705
2705
|
} else {
|
|
2706
2706
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2707
2707
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2708
|
-
var this_6 = this.
|
|
2708
|
+
var this_6 = this.g9j_1;
|
|
2709
2709
|
var table_2 = state.a6n();
|
|
2710
2710
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2711
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2711
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.f9j_1.g6d(), table_2.id, null);
|
|
2712
2712
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2713
2713
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2714
2714
|
} else {
|
|
2715
2715
|
if (action_0 instanceof ErrorAction) {
|
|
2716
2716
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2717
|
-
var this_7 = this.
|
|
2717
|
+
var this_7 = this.g9j_1;
|
|
2718
2718
|
var table_3 = state.a6n();
|
|
2719
2719
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2720
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2720
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.f9j_1.g6d(), table_3.id, null);
|
|
2721
2721
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2722
2722
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2723
2723
|
} else {
|
|
2724
2724
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2725
2725
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2726
|
-
var this_8 = this.
|
|
2726
|
+
var this_8 = this.g9j_1;
|
|
2727
2727
|
var table_4 = state.a6n();
|
|
2728
2728
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2729
2729
|
var tableId_1 = table_4.id;
|
|
@@ -2760,7 +2760,7 @@
|
|
|
2760
2760
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2761
2761
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2762
2762
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2763
|
-
var tmp0_aid_1 = this_8.
|
|
2763
|
+
var tmp0_aid_1 = this_8.f9j_1.g6d();
|
|
2764
2764
|
// Inline function 'kotlin.collections.map' call
|
|
2765
2765
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2766
2766
|
var destination_11 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2785,7 +2785,7 @@
|
|
|
2785
2785
|
} else {
|
|
2786
2786
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2787
2787
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2788
|
-
var this_9 = this.
|
|
2788
|
+
var this_9 = this.g9j_1;
|
|
2789
2789
|
var table_5 = state.a6n();
|
|
2790
2790
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2791
2791
|
var tableId_2 = table_5.id;
|
|
@@ -2822,7 +2822,7 @@
|
|
|
2822
2822
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2823
2823
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2824
2824
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2825
|
-
var tmp0_aid_2 = this_9.
|
|
2825
|
+
var tmp0_aid_2 = this_9.f9j_1.g6d();
|
|
2826
2826
|
// Inline function 'kotlin.collections.map' call
|
|
2827
2827
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2828
2828
|
var destination_15 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2847,7 +2847,7 @@
|
|
|
2847
2847
|
} else {
|
|
2848
2848
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2849
2849
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2850
|
-
var this_10 = this.
|
|
2850
|
+
var this_10 = this.g9j_1;
|
|
2851
2851
|
var table_6 = state.a6n();
|
|
2852
2852
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2853
2853
|
var tableId_3 = table_6.id;
|
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2885
2885
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2886
2886
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2887
|
-
var tmp0_aid_3 = this_10.
|
|
2887
|
+
var tmp0_aid_3 = this_10.f9j_1.g6d();
|
|
2888
2888
|
// Inline function 'kotlin.collections.map' call
|
|
2889
2889
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2890
2890
|
var destination_19 = ArrayList_init_$Create$(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2897,7 +2897,7 @@
|
|
|
2897
2897
|
}
|
|
2898
2898
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2899
2899
|
var tmp_0;
|
|
2900
|
-
if (this.
|
|
2900
|
+
if (this.g9j_1.e9j_1.supportBackwardActions && getPlayer(state.a6n().players, sendToPlayer_8.h79_1).u6s_1.z6s_1) {
|
|
2901
2901
|
tmp_0 = null;
|
|
2902
2902
|
} else {
|
|
2903
2903
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2915,79 +2915,79 @@
|
|
|
2915
2915
|
} else {
|
|
2916
2916
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2917
2917
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2918
|
-
var this_11 = this.
|
|
2918
|
+
var this_11 = this.g9j_1;
|
|
2919
2919
|
var table_7 = state.a6n();
|
|
2920
|
-
var exceptPlayerId = this.
|
|
2920
|
+
var exceptPlayerId = this.g9j_1.e9j_1.supportBackwardActions ? action_0.c8r_1 : null;
|
|
2921
2921
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2922
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2922
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.f9j_1.g6d(), table_7.id, exceptPlayerId);
|
|
2923
2923
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2924
2924
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2925
2925
|
} else {
|
|
2926
2926
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2927
2927
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2928
|
-
var this_12 = this.
|
|
2928
|
+
var this_12 = this.g9j_1;
|
|
2929
2929
|
var table_8 = state.a6n();
|
|
2930
|
-
var exceptPlayerId_0 = this.
|
|
2930
|
+
var exceptPlayerId_0 = this.g9j_1.e9j_1.supportBackwardActions ? action_0.a8m_1 : null;
|
|
2931
2931
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2932
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2932
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.f9j_1.g6d(), table_8.id, exceptPlayerId_0);
|
|
2933
2933
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2934
2934
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2935
2935
|
} else {
|
|
2936
2936
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2937
2937
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2938
|
-
var this_13 = this.
|
|
2938
|
+
var this_13 = this.g9j_1;
|
|
2939
2939
|
var table_9 = state.a6n();
|
|
2940
2940
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2941
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2941
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.f9j_1.g6d(), table_9.id, null);
|
|
2942
2942
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2943
2943
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2944
2944
|
} else {
|
|
2945
2945
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2946
2946
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2947
|
-
var this_14 = this.
|
|
2947
|
+
var this_14 = this.g9j_1;
|
|
2948
2948
|
var table_10 = state.a6n();
|
|
2949
|
-
var exceptPlayerId_1 = this.
|
|
2949
|
+
var exceptPlayerId_1 = this.g9j_1.e9j_1.supportBackwardActions ? action_0.i8r_1 : null;
|
|
2950
2950
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2951
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2951
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.f9j_1.g6d(), table_10.id, exceptPlayerId_1);
|
|
2952
2952
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2953
2953
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2954
2954
|
} else {
|
|
2955
2955
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2956
2956
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2957
|
-
var this_15 = this.
|
|
2957
|
+
var this_15 = this.g9j_1;
|
|
2958
2958
|
var table_11 = state.a6n();
|
|
2959
|
-
var exceptPlayerId_2 = this.
|
|
2959
|
+
var exceptPlayerId_2 = this.g9j_1.e9j_1.supportBackwardActions ? action_0.f8m_1 : null;
|
|
2960
2960
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2961
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2961
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.f9j_1.g6d(), table_11.id, exceptPlayerId_2);
|
|
2962
2962
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2963
2963
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2964
2964
|
} else {
|
|
2965
2965
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2966
2966
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2967
|
-
var this_16 = this.
|
|
2967
|
+
var this_16 = this.g9j_1;
|
|
2968
2968
|
var table_12 = state.a6n();
|
|
2969
2969
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2970
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2970
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.f9j_1.g6d(), table_12.id, null);
|
|
2971
2971
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2972
2972
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2973
2973
|
} else {
|
|
2974
2974
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2975
2975
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2976
|
-
var this_17 = this.
|
|
2976
|
+
var this_17 = this.g9j_1;
|
|
2977
2977
|
var table_13 = state.a6n();
|
|
2978
2978
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2979
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2979
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.f9j_1.g6d(), table_13.id, null);
|
|
2980
2980
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2981
2981
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2982
2982
|
} else {
|
|
2983
2983
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2984
|
-
var message = action_0.
|
|
2984
|
+
var message = action_0.m8r_1;
|
|
2985
2985
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2986
|
-
var this_18 = this.
|
|
2986
|
+
var this_18 = this.g9j_1;
|
|
2987
2987
|
var table_14 = state.a6n();
|
|
2988
2988
|
var tmp_1;
|
|
2989
2989
|
var tmp_2;
|
|
2990
|
-
if (this.
|
|
2990
|
+
if (this.g9j_1.e9j_1.supportBackwardActions) {
|
|
2991
2991
|
tmp_2 = isInterface(message, UserMessage);
|
|
2992
2992
|
} else {
|
|
2993
2993
|
tmp_2 = false;
|
|
@@ -2999,17 +2999,17 @@
|
|
|
2999
2999
|
}
|
|
3000
3000
|
var exceptPlayerId_3 = tmp_1;
|
|
3001
3001
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3002
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
3002
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.f9j_1.g6d(), table_14.id, exceptPlayerId_3);
|
|
3003
3003
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
3004
3004
|
tmp = listOfNotNull(tmp$ret$105);
|
|
3005
3005
|
} else {
|
|
3006
3006
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
3007
3007
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3008
|
-
var this_19 = this.
|
|
3008
|
+
var this_19 = this.g9j_1;
|
|
3009
3009
|
var table_15 = state.a6n();
|
|
3010
3010
|
var exceptPlayerId_4 = action_0.playerId;
|
|
3011
3011
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3012
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
3012
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.f9j_1.g6d(), table_15.id, exceptPlayerId_4);
|
|
3013
3013
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
3014
3014
|
tmp = listOfNotNull(tmp$ret$107);
|
|
3015
3015
|
} else {
|
|
@@ -3047,10 +3047,10 @@
|
|
|
3047
3047
|
return this.u6g(store, next, action);
|
|
3048
3048
|
};
|
|
3049
3049
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3050
|
+
this.e9j_1 = logicConfig;
|
|
3051
|
+
this.f9j_1 = idsProvider;
|
|
3052
3052
|
}
|
|
3053
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
3053
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).e8v = function () {
|
|
3054
3054
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
3055
3055
|
return new _no_name_provided__qut3iv_0(this);
|
|
3056
3056
|
};
|
|
@@ -3059,8 +3059,8 @@
|
|
|
3059
3059
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
3060
3060
|
}
|
|
3061
3061
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
3062
|
-
this.
|
|
3063
|
-
this.
|
|
3062
|
+
this.p9j_1 = $provider;
|
|
3063
|
+
this.q9j_1 = $action;
|
|
3064
3064
|
CoroutineImpl.call(this, resultContinuation);
|
|
3065
3065
|
}
|
|
3066
3066
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -3081,7 +3081,7 @@
|
|
|
3081
3081
|
case 0:
|
|
3082
3082
|
this.f9_1 = 2;
|
|
3083
3083
|
this.e9_1 = 1;
|
|
3084
|
-
suspendResult = this.
|
|
3084
|
+
suspendResult = this.p9j_1.a9g(this.q9j_1, this);
|
|
3085
3085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3086
3086
|
return suspendResult;
|
|
3087
3087
|
}
|
|
@@ -3104,8 +3104,8 @@
|
|
|
3104
3104
|
while (true);
|
|
3105
3105
|
};
|
|
3106
3106
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3107
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3108
|
-
i.
|
|
3107
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.p9j_1, this.q9j_1, completion);
|
|
3108
|
+
i.r9j_1 = $this$launchDefault;
|
|
3109
3109
|
return i;
|
|
3110
3110
|
};
|
|
3111
3111
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3117,8 +3117,8 @@
|
|
|
3117
3117
|
return l;
|
|
3118
3118
|
}
|
|
3119
3119
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3120
|
-
this.
|
|
3121
|
-
this.
|
|
3120
|
+
this.s9j_1 = $asyncProvider;
|
|
3121
|
+
this.t9j_1 = $provider;
|
|
3122
3122
|
}
|
|
3123
3123
|
protoOf(_no_name_provided__qut3iv_1).d6f = function (action) {
|
|
3124
3124
|
return action instanceof ToClientAction;
|
|
@@ -3126,7 +3126,7 @@
|
|
|
3126
3126
|
protoOf(_no_name_provided__qut3iv_1).u6g = function (store, next, action) {
|
|
3127
3127
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3128
3128
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3129
|
-
this.
|
|
3129
|
+
this.s9j_1.d6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.t9j_1, action_0, null));
|
|
3130
3130
|
next(action_0);
|
|
3131
3131
|
};
|
|
3132
3132
|
protoOf(_no_name_provided__qut3iv_1).c6f = function (store, next, action) {
|
|
@@ -3141,13 +3141,13 @@
|
|
|
3141
3141
|
protoOf(_no_name_provided__qut3iv_2).d6f = function (action) {
|
|
3142
3142
|
return action instanceof UpdateServerConfigAction;
|
|
3143
3143
|
};
|
|
3144
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3144
|
+
protoOf(_no_name_provided__qut3iv_2).z91 = function (state, action) {
|
|
3145
3145
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3146
3146
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3147
|
-
return state.
|
|
3147
|
+
return state.d8p(VOID, get_serverState_0(state).u9j(action_0.m9i_1));
|
|
3148
3148
|
};
|
|
3149
3149
|
protoOf(_no_name_provided__qut3iv_2).v6g = function (state, action) {
|
|
3150
|
-
return this.
|
|
3150
|
+
return this.z91((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3151
3151
|
};
|
|
3152
3152
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3153
3153
|
return function (it) {
|
|
@@ -3160,7 +3160,7 @@
|
|
|
3160
3160
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3161
3161
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3162
3162
|
Companion_getInstance();
|
|
3163
|
-
var this_0 = $action.
|
|
3163
|
+
var this_0 = $action.b8q_1.timeoutTimeMillis;
|
|
3164
3164
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3165
3165
|
tmp_0 = tmp_1.e68(tmp_2, tmp$ret$0);
|
|
3166
3166
|
}
|
|
@@ -3169,47 +3169,47 @@
|
|
|
3169
3169
|
}
|
|
3170
3170
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3171
3171
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3172
|
-
this.
|
|
3172
|
+
this.x9j_1 = logger;
|
|
3173
3173
|
}
|
|
3174
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3174
|
+
protoOf(ServerMechanicLifecycleReducer).l93 = function (state, action) {
|
|
3175
3175
|
var serverState = get_serverStateOrNull(state.z6l_1);
|
|
3176
3176
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3177
|
-
var tmp0_$this = this.
|
|
3178
|
-
var tmp1_tableId = action.
|
|
3179
|
-
var tmp2_gameId = action.
|
|
3180
|
-
var tmp3_version = action.
|
|
3181
|
-
var tmp4_config = action.
|
|
3182
|
-
var tmp5_users = action.
|
|
3177
|
+
var tmp0_$this = this.m93_1;
|
|
3178
|
+
var tmp1_tableId = action.c8q_1;
|
|
3179
|
+
var tmp2_gameId = action.c8q_1;
|
|
3180
|
+
var tmp3_version = action.d8q_1;
|
|
3181
|
+
var tmp4_config = action.b8q_1;
|
|
3182
|
+
var tmp5_users = action.f8q_1;
|
|
3183
3183
|
var tmp6_spectators = action.spectators;
|
|
3184
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3185
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3184
|
+
var tmp7_gameCreatorPlayerId = action.e8q_1;
|
|
3185
|
+
var tmp9_tableOrNull = tmp0_$this.s94(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3186
3186
|
var tmp;
|
|
3187
3187
|
if (serverState == null) {
|
|
3188
|
-
this.
|
|
3189
|
-
tmp = Companion_instance_9.
|
|
3188
|
+
this.x9j_1.w(VOID, 'ServerPayload is not onStart');
|
|
3189
|
+
tmp = Companion_instance_9.w9f();
|
|
3190
3190
|
} else {
|
|
3191
3191
|
tmp = serverState;
|
|
3192
3192
|
}
|
|
3193
3193
|
var tmp10_payload = tmp;
|
|
3194
|
-
return state.
|
|
3194
|
+
return state.d8p(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3195
3195
|
};
|
|
3196
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3197
|
-
this.
|
|
3196
|
+
protoOf(ServerMechanicLifecycleReducer).k93 = function (state, action) {
|
|
3197
|
+
this.n93_1.r5n(action.previousGameId);
|
|
3198
3198
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3199
|
-
var tmp1_tableOrNull = this.
|
|
3200
|
-
return state.
|
|
3199
|
+
var tmp1_tableOrNull = this.m93_1.t94(state.a6n(), action.gameId);
|
|
3200
|
+
return state.d8p(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3201
3201
|
};
|
|
3202
3202
|
function spectatorsReducer(logger) {
|
|
3203
3203
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3204
3204
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3205
3205
|
}
|
|
3206
3206
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3207
|
-
this.
|
|
3207
|
+
this.y9j_1 = $logger;
|
|
3208
3208
|
}
|
|
3209
3209
|
protoOf(_no_name_provided__qut3iv_3).d6f = function (action) {
|
|
3210
3210
|
return isInterface(action, SpectatorsAction);
|
|
3211
3211
|
};
|
|
3212
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3212
|
+
protoOf(_no_name_provided__qut3iv_3).z91 = function (state, action) {
|
|
3213
3213
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3214
3214
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3215
3215
|
var table = state.a6n();
|
|
@@ -3217,7 +3217,7 @@
|
|
|
3217
3217
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3218
3218
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3219
3219
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3220
|
-
var this_0 = action_0.
|
|
3220
|
+
var this_0 = action_0.n9i_1;
|
|
3221
3221
|
var destination = ArrayList_init_$Create$_0();
|
|
3222
3222
|
// Inline function 'kotlin.collections.forEach' call
|
|
3223
3223
|
var tmp0_iterator = this_0.j();
|
|
@@ -3239,10 +3239,10 @@
|
|
|
3239
3239
|
var tmp_0;
|
|
3240
3240
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3241
3241
|
if (!sameSpectators.p()) {
|
|
3242
|
-
this.
|
|
3242
|
+
this.y9j_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3243
3243
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3244
3244
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3245
|
-
var this_1 = action_0.
|
|
3245
|
+
var this_1 = action_0.n9i_1;
|
|
3246
3246
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
3247
3247
|
var tmp0_iterator_0 = this_1.j();
|
|
3248
3248
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3278,7 +3278,7 @@
|
|
|
3278
3278
|
}
|
|
3279
3279
|
tmp_0 = destination_0;
|
|
3280
3280
|
} else {
|
|
3281
|
-
tmp_0 = action_0.
|
|
3281
|
+
tmp_0 = action_0.n9i_1;
|
|
3282
3282
|
}
|
|
3283
3283
|
var this_2 = tmp_0;
|
|
3284
3284
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3291,12 +3291,12 @@
|
|
|
3291
3291
|
destination_1.e(tmp$ret$10);
|
|
3292
3292
|
}
|
|
3293
3293
|
var spectatorsToAdd = toSet(destination_1);
|
|
3294
|
-
tmp = state.
|
|
3294
|
+
tmp = state.d8p(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3295
3295
|
} else {
|
|
3296
3296
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3297
3297
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3298
3298
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3299
|
-
var this_3 = action_0.
|
|
3299
|
+
var this_3 = action_0.o9i_1;
|
|
3300
3300
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
3301
3301
|
// Inline function 'kotlin.collections.forEach' call
|
|
3302
3302
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3317,10 +3317,10 @@
|
|
|
3317
3317
|
var tmp_2;
|
|
3318
3318
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3319
3319
|
if (!sameSpectators_0.p()) {
|
|
3320
|
-
this.
|
|
3320
|
+
this.y9j_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3321
3321
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3322
3322
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3323
|
-
var this_4 = action_0.
|
|
3323
|
+
var this_4 = action_0.o9i_1;
|
|
3324
3324
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
3325
3325
|
var tmp0_iterator_4 = this_4.j();
|
|
3326
3326
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3356,7 +3356,7 @@
|
|
|
3356
3356
|
}
|
|
3357
3357
|
tmp_2 = destination_3;
|
|
3358
3358
|
} else {
|
|
3359
|
-
tmp_2 = action_0.
|
|
3359
|
+
tmp_2 = action_0.o9i_1;
|
|
3360
3360
|
}
|
|
3361
3361
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3362
3362
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3395,7 +3395,7 @@
|
|
|
3395
3395
|
destination_4.e(element_5);
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
|
-
tmp = state.
|
|
3398
|
+
tmp = state.d8p(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3399
3399
|
} else {
|
|
3400
3400
|
noWhenBranchMatchedException();
|
|
3401
3401
|
}
|
|
@@ -3403,32 +3403,32 @@
|
|
|
3403
3403
|
return tmp;
|
|
3404
3404
|
};
|
|
3405
3405
|
protoOf(_no_name_provided__qut3iv_3).v6g = function (state, action) {
|
|
3406
|
-
return this.
|
|
3406
|
+
return this.z91((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3407
3407
|
};
|
|
3408
3408
|
function Companion_1() {
|
|
3409
3409
|
}
|
|
3410
|
-
protoOf(Companion_1).
|
|
3410
|
+
protoOf(Companion_1).z9j = function (config) {
|
|
3411
3411
|
return new ServerState(config);
|
|
3412
3412
|
};
|
|
3413
|
-
protoOf(Companion_1).
|
|
3413
|
+
protoOf(Companion_1).w9f = function (config, $super) {
|
|
3414
3414
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3415
|
-
return $super === VOID ? this.
|
|
3415
|
+
return $super === VOID ? this.z9j(config) : $super.z9j.call(this, config);
|
|
3416
3416
|
};
|
|
3417
3417
|
var Companion_instance_9;
|
|
3418
3418
|
function Companion_getInstance_2() {
|
|
3419
3419
|
return Companion_instance_9;
|
|
3420
3420
|
}
|
|
3421
3421
|
function ServerState(config) {
|
|
3422
|
-
this.
|
|
3422
|
+
this.g9f_1 = config;
|
|
3423
3423
|
}
|
|
3424
|
-
protoOf(ServerState).
|
|
3424
|
+
protoOf(ServerState).u9j = function (config) {
|
|
3425
3425
|
return new ServerState(config);
|
|
3426
3426
|
};
|
|
3427
3427
|
protoOf(ServerState).toString = function () {
|
|
3428
|
-
return 'ServerState(config=' + this.
|
|
3428
|
+
return 'ServerState(config=' + this.g9f_1.toString() + ')';
|
|
3429
3429
|
};
|
|
3430
3430
|
protoOf(ServerState).hashCode = function () {
|
|
3431
|
-
return this.
|
|
3431
|
+
return this.g9f_1.hashCode();
|
|
3432
3432
|
};
|
|
3433
3433
|
protoOf(ServerState).equals = function (other) {
|
|
3434
3434
|
if (this === other)
|
|
@@ -3436,7 +3436,7 @@
|
|
|
3436
3436
|
if (!(other instanceof ServerState))
|
|
3437
3437
|
return false;
|
|
3438
3438
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3439
|
-
if (!this.
|
|
3439
|
+
if (!this.g9f_1.equals(tmp0_other_with_cast.g9f_1))
|
|
3440
3440
|
return false;
|
|
3441
3441
|
return true;
|
|
3442
3442
|
};
|
|
@@ -3474,13 +3474,13 @@
|
|
|
3474
3474
|
}
|
|
3475
3475
|
function _get_controllerLogger__nbd727($this) {
|
|
3476
3476
|
// Inline function 'kotlin.getValue' call
|
|
3477
|
-
var this_0 = $this.
|
|
3477
|
+
var this_0 = $this.i9k_1;
|
|
3478
3478
|
controllerLogger$factory();
|
|
3479
3479
|
return this_0.u();
|
|
3480
3480
|
}
|
|
3481
3481
|
function _get_di__ndbzja($this) {
|
|
3482
3482
|
// Inline function 'kotlin.getValue' call
|
|
3483
|
-
var this_0 = $this.
|
|
3483
|
+
var this_0 = $this.j9k_1;
|
|
3484
3484
|
di$factory();
|
|
3485
3485
|
return this_0.u();
|
|
3486
3486
|
}
|
|
@@ -3491,13 +3491,13 @@
|
|
|
3491
3491
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3492
3492
|
return function () {
|
|
3493
3493
|
var tmp;
|
|
3494
|
-
if (this$0.
|
|
3494
|
+
if (this$0.g9k_1 == null) {
|
|
3495
3495
|
tmp = null;
|
|
3496
3496
|
} else {
|
|
3497
3497
|
// Inline function 'kotlin.let' call
|
|
3498
3498
|
// Inline function 'kotlin.contracts.contract' call
|
|
3499
3499
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3500
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3500
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.g9k_1)]));
|
|
3501
3501
|
}
|
|
3502
3502
|
var tmp1_elvis_lhs = tmp;
|
|
3503
3503
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3525,7 +3525,7 @@
|
|
|
3525
3525
|
tmp_0.h5y(tmp$ret$3);
|
|
3526
3526
|
$this$DI.l5u(jsonModule());
|
|
3527
3527
|
$this$DI.l5u(serverHelpersModule());
|
|
3528
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3528
|
+
$this$DI.l5u(randomOrgModule(this$0.h9k_1));
|
|
3529
3529
|
return Unit_instance;
|
|
3530
3530
|
};
|
|
3531
3531
|
}
|
|
@@ -3536,16 +3536,16 @@
|
|
|
3536
3536
|
};
|
|
3537
3537
|
}
|
|
3538
3538
|
function _no_name_provided__qut3iv_4($item) {
|
|
3539
|
-
this.
|
|
3539
|
+
this.p9k_1 = $item;
|
|
3540
3540
|
}
|
|
3541
3541
|
protoOf(_no_name_provided__qut3iv_4).d6f = function (action) {
|
|
3542
3542
|
return isInterface(action, Action);
|
|
3543
3543
|
};
|
|
3544
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3545
|
-
return this.
|
|
3544
|
+
protoOf(_no_name_provided__qut3iv_4).z91 = function (state, action) {
|
|
3545
|
+
return this.p9k_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3546
3546
|
};
|
|
3547
3547
|
protoOf(_no_name_provided__qut3iv_4).v6g = function (state, action) {
|
|
3548
|
-
return this.
|
|
3548
|
+
return this.z91((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3549
3549
|
};
|
|
3550
3550
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3551
3551
|
return function ($this$singleton) {
|
|
@@ -3602,7 +3602,7 @@
|
|
|
3602
3602
|
}
|
|
3603
3603
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
3604
3604
|
return function (it) {
|
|
3605
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
3605
|
+
var tmp0_elvis_lhs = Companion_instance_4.v96(it);
|
|
3606
3606
|
var tmp;
|
|
3607
3607
|
if (tmp0_elvis_lhs == null) {
|
|
3608
3608
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3615,7 +3615,7 @@
|
|
|
3615
3615
|
}
|
|
3616
3616
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
3617
3617
|
return function (it) {
|
|
3618
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
3618
|
+
var tmp0_elvis_lhs = Companion_instance_5.g95(it);
|
|
3619
3619
|
var tmp;
|
|
3620
3620
|
if (tmp0_elvis_lhs == null) {
|
|
3621
3621
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3637,7 +3637,7 @@
|
|
|
3637
3637
|
// Inline function 'kotlin.contracts.contract' call
|
|
3638
3638
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
3639
3639
|
}
|
|
3640
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3640
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.h9k_1));
|
|
3641
3641
|
$this$DI.l5u(coreModule($coreConfig));
|
|
3642
3642
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3643
3643
|
return Unit_instance;
|
|
@@ -3646,76 +3646,76 @@
|
|
|
3646
3646
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3647
3647
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3648
3648
|
production = production === VOID ? true : production;
|
|
3649
|
-
this.
|
|
3650
|
-
this.
|
|
3649
|
+
this.g9k_1 = loggerCallback;
|
|
3650
|
+
this.h9k_1 = randomOrgConfig;
|
|
3651
3651
|
AppEnvironment_getInstance().g6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3652
3652
|
var tmp = this;
|
|
3653
|
-
tmp.
|
|
3653
|
+
tmp.i9k_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3654
3654
|
var tmp_0 = this;
|
|
3655
|
-
tmp_0.
|
|
3655
|
+
tmp_0.j9k_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3656
3656
|
var tmp_1 = this;
|
|
3657
3657
|
// Inline function 'org.kodein.di.instance' call
|
|
3658
3658
|
var this_0 = _get_di__ndbzja(this);
|
|
3659
3659
|
// Inline function 'org.kodein.type.generic' call
|
|
3660
3660
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3661
3661
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3662
|
-
tmp_1.
|
|
3662
|
+
tmp_1.k9k_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
3663
3663
|
var tmp_3 = this;
|
|
3664
3664
|
// Inline function 'org.kodein.di.instance' call
|
|
3665
3665
|
var this_1 = _get_di__ndbzja(this);
|
|
3666
3666
|
// Inline function 'org.kodein.type.generic' call
|
|
3667
3667
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3668
3668
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3669
|
-
tmp_3.
|
|
3669
|
+
tmp_3.l9k_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
3670
3670
|
var tmp_5 = this;
|
|
3671
3671
|
// Inline function 'org.kodein.di.instance' call
|
|
3672
3672
|
var this_2 = _get_di__ndbzja(this);
|
|
3673
3673
|
// Inline function 'org.kodein.type.generic' call
|
|
3674
3674
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3675
3675
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3676
|
-
tmp_5.
|
|
3676
|
+
tmp_5.m9k_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
3677
3677
|
var tmp_7 = this;
|
|
3678
3678
|
// Inline function 'org.kodein.di.instance' call
|
|
3679
3679
|
var this_3 = _get_di__ndbzja(this);
|
|
3680
3680
|
// Inline function 'org.kodein.type.generic' call
|
|
3681
3681
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3682
3682
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3683
|
-
tmp_7.
|
|
3683
|
+
tmp_7.n9k_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
3684
3684
|
var tmp_9 = this;
|
|
3685
3685
|
// Inline function 'org.kodein.di.instance' call
|
|
3686
3686
|
var this_4 = _get_di__ndbzja(this);
|
|
3687
3687
|
// Inline function 'org.kodein.type.generic' call
|
|
3688
3688
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3689
3689
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3690
|
-
tmp_9.
|
|
3690
|
+
tmp_9.o9k_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
3691
3691
|
}
|
|
3692
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3692
|
+
protoOf(GameServerEngineControllerImpl).a9k = function () {
|
|
3693
3693
|
// Inline function 'kotlin.getValue' call
|
|
3694
|
-
var this_0 = this.
|
|
3694
|
+
var this_0 = this.k9k_1;
|
|
3695
3695
|
parser$factory_0();
|
|
3696
3696
|
return this_0.u();
|
|
3697
3697
|
};
|
|
3698
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3698
|
+
protoOf(GameServerEngineControllerImpl).c9k = function () {
|
|
3699
3699
|
// Inline function 'kotlin.getValue' call
|
|
3700
|
-
var this_0 = this.
|
|
3700
|
+
var this_0 = this.l9k_1;
|
|
3701
3701
|
helper$factory_0();
|
|
3702
3702
|
return this_0.u();
|
|
3703
3703
|
};
|
|
3704
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3704
|
+
protoOf(GameServerEngineControllerImpl).d9k = function () {
|
|
3705
3705
|
// Inline function 'kotlin.getValue' call
|
|
3706
|
-
var this_0 = this.
|
|
3706
|
+
var this_0 = this.m9k_1;
|
|
3707
3707
|
resources$factory_0();
|
|
3708
3708
|
return this_0.u();
|
|
3709
3709
|
};
|
|
3710
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3710
|
+
protoOf(GameServerEngineControllerImpl).b9k = function () {
|
|
3711
3711
|
// Inline function 'kotlin.getValue' call
|
|
3712
|
-
var this_0 = this.
|
|
3712
|
+
var this_0 = this.n9k_1;
|
|
3713
3713
|
test$factory_0();
|
|
3714
3714
|
return this_0.u();
|
|
3715
3715
|
};
|
|
3716
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3716
|
+
protoOf(GameServerEngineControllerImpl).e9k = function () {
|
|
3717
3717
|
// Inline function 'kotlin.getValue' call
|
|
3718
|
-
var this_0 = this.
|
|
3718
|
+
var this_0 = this.o9k_1;
|
|
3719
3719
|
randomPoolProvider$factory_0();
|
|
3720
3720
|
return this_0.u();
|
|
3721
3721
|
};
|
|
@@ -3725,7 +3725,7 @@
|
|
|
3725
3725
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3726
3726
|
return this.createGameEngineWithLogic();
|
|
3727
3727
|
};
|
|
3728
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3728
|
+
protoOf(GameServerEngineControllerImpl).f9k = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3729
3729
|
var combinedLogger = Companion_instance_6.qm();
|
|
3730
3730
|
var tmp;
|
|
3731
3731
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3735,8 +3735,8 @@
|
|
|
3735
3735
|
}
|
|
3736
3736
|
var fileLoggerOutput = tmp;
|
|
3737
3737
|
var tmp_0;
|
|
3738
|
-
if (!(this.
|
|
3739
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3738
|
+
if (!(this.g9k_1 == null)) {
|
|
3739
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.g9k_1));
|
|
3740
3740
|
} else {
|
|
3741
3741
|
tmp_0 = null;
|
|
3742
3742
|
}
|
|
@@ -3779,12 +3779,12 @@
|
|
|
3779
3779
|
var gameServer = tmp_1.v5v(tmp$ret$7, null);
|
|
3780
3780
|
if (!(fileLoggerOutput == null)) {
|
|
3781
3781
|
var tmp_3 = fileLoggerOutput;
|
|
3782
|
-
tmp_3.
|
|
3782
|
+
tmp_3.k96_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
3783
3783
|
combinedLogger.sm(fileLoggerOutput);
|
|
3784
3784
|
}
|
|
3785
3785
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
3786
3786
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
3787
|
-
tmp_4.
|
|
3787
|
+
tmp_4.i95_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
3788
3788
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
3789
3789
|
}
|
|
3790
3790
|
return gameServer;
|
|
@@ -3853,13 +3853,13 @@
|
|
|
3853
3853
|
}
|
|
3854
3854
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3855
3855
|
// Inline function 'kotlin.getValue' call
|
|
3856
|
-
var this_0 = $this.
|
|
3856
|
+
var this_0 = $this.s9k_1;
|
|
3857
3857
|
playerAnswerInteractor$factory_0();
|
|
3858
3858
|
return this_0.u();
|
|
3859
3859
|
}
|
|
3860
3860
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3861
3861
|
return function ($this$singleton) {
|
|
3862
|
-
return this$0.
|
|
3862
|
+
return this$0.q9k_1;
|
|
3863
3863
|
};
|
|
3864
3864
|
}
|
|
3865
3865
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3888,20 +3888,20 @@
|
|
|
3888
3888
|
return emptyMap();
|
|
3889
3889
|
}
|
|
3890
3890
|
function TestHelperImpl(logger) {
|
|
3891
|
-
this.
|
|
3891
|
+
this.q9k_1 = logger;
|
|
3892
3892
|
var tmp = this;
|
|
3893
3893
|
var tmp_0 = Companion_instance_3;
|
|
3894
|
-
tmp.
|
|
3894
|
+
tmp.r9k_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
3895
3895
|
var tmp_1 = this;
|
|
3896
3896
|
// Inline function 'org.kodein.di.instance' call
|
|
3897
|
-
var this_0 = this.
|
|
3897
|
+
var this_0 = this.r9k_1;
|
|
3898
3898
|
// Inline function 'org.kodein.type.generic' call
|
|
3899
3899
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3900
3900
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3901
|
-
tmp_1.
|
|
3901
|
+
tmp_1.s9k_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
3902
3902
|
}
|
|
3903
3903
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3904
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3904
|
+
return _get_playerAnswerInteractor__msggz1(this).g8f(playerId, table, botConfig);
|
|
3905
3905
|
};
|
|
3906
3906
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
3907
3907
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -3909,7 +3909,7 @@
|
|
|
3909
3909
|
var tmp$ret$0;
|
|
3910
3910
|
$l$block_0: {
|
|
3911
3911
|
// Inline function 'kotlin.collections.any' call
|
|
3912
|
-
var this_0 = mechanicAction.
|
|
3912
|
+
var this_0 = mechanicAction.q8s();
|
|
3913
3913
|
var tmp;
|
|
3914
3914
|
if (isInterface(this_0, Collection)) {
|
|
3915
3915
|
tmp = this_0.p();
|
|
@@ -3942,7 +3942,7 @@
|
|
|
3942
3942
|
var tmp$ret$0;
|
|
3943
3943
|
$l$block_0: {
|
|
3944
3944
|
// Inline function 'kotlin.collections.any' call
|
|
3945
|
-
var this_0 = action.
|
|
3945
|
+
var this_0 = action.q8s();
|
|
3946
3946
|
var tmp;
|
|
3947
3947
|
if (isInterface(this_0, Collection)) {
|
|
3948
3948
|
tmp = this_0.p();
|
|
@@ -4045,19 +4045,19 @@
|
|
|
4045
4045
|
});
|
|
4046
4046
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4047
4047
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4048
|
-
return this.
|
|
4048
|
+
return this.a9k();
|
|
4049
4049
|
});
|
|
4050
4050
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4051
|
-
return this.
|
|
4051
|
+
return this.c9k();
|
|
4052
4052
|
});
|
|
4053
4053
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4054
|
-
return this.
|
|
4054
|
+
return this.d9k();
|
|
4055
4055
|
});
|
|
4056
4056
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4057
|
-
return this.
|
|
4057
|
+
return this.b9k();
|
|
4058
4058
|
});
|
|
4059
4059
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
4060
|
-
return this.
|
|
4060
|
+
return this.e9k();
|
|
4061
4061
|
});
|
|
4062
4062
|
//endregion
|
|
4063
4063
|
//region block: init
|