raspberry_games_server_game_logic 1.8.269 → 1.8.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +10247 -10217
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +654 -644
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +12 -12
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -296,15 +296,15 @@
|
|
|
296
296
|
tmp = spectators;
|
|
297
297
|
}
|
|
298
298
|
spectators = tmp;
|
|
299
|
-
return this.
|
|
299
|
+
return this.m9g(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
300
300
|
}
|
|
301
301
|
function roomOnDelete(newRid, $super) {
|
|
302
302
|
newRid = newRid === VOID ? null : newRid;
|
|
303
|
-
return this.
|
|
303
|
+
return this.n9g(newRid);
|
|
304
304
|
}
|
|
305
305
|
function shutdown(reason, roomId, $super) {
|
|
306
306
|
roomId = roomId === VOID ? null : roomId;
|
|
307
|
-
return this.
|
|
307
|
+
return this.o9g(reason, roomId);
|
|
308
308
|
}
|
|
309
309
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
310
310
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
355
355
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
356
356
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
357
|
-
return this.
|
|
357
|
+
return this.u9k(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
358
358
|
}
|
|
359
359
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
360
360
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -363,17 +363,17 @@
|
|
|
363
363
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
364
364
|
//endregion
|
|
365
365
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
366
|
-
this.
|
|
366
|
+
this.l98_1 = $subscriber;
|
|
367
367
|
CoroutineImpl.call(this, resultContinuation);
|
|
368
368
|
}
|
|
369
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
370
|
-
var tmp = this.
|
|
369
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).n98 = function (it, $completion) {
|
|
370
|
+
var tmp = this.o98(it, $completion);
|
|
371
371
|
tmp.g9_1 = Unit_instance;
|
|
372
372
|
tmp.h9_1 = null;
|
|
373
373
|
return tmp.m9();
|
|
374
374
|
};
|
|
375
375
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
376
|
-
return this.
|
|
376
|
+
return this.n98(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
377
377
|
};
|
|
378
378
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
379
379
|
var suspendResult = this.g9_1;
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
var tmp = this.e9_1;
|
|
383
383
|
if (tmp === 0) {
|
|
384
384
|
this.f9_1 = 1;
|
|
385
|
-
this.
|
|
385
|
+
this.l98_1(this.m98_1);
|
|
386
386
|
return Unit_instance;
|
|
387
387
|
} else if (tmp === 1) {
|
|
388
388
|
throw this.h9_1;
|
|
@@ -393,31 +393,31 @@
|
|
|
393
393
|
}
|
|
394
394
|
while (true);
|
|
395
395
|
};
|
|
396
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
397
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
398
|
-
i.
|
|
396
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).o98 = function (it, completion) {
|
|
397
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.l98_1, completion);
|
|
398
|
+
i.m98_1 = it;
|
|
399
399
|
return i;
|
|
400
400
|
};
|
|
401
401
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
402
402
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
403
403
|
var l = function (it, $completion) {
|
|
404
|
-
return i.
|
|
404
|
+
return i.n98(it, $completion);
|
|
405
405
|
};
|
|
406
406
|
l.$arity = 1;
|
|
407
407
|
return l;
|
|
408
408
|
}
|
|
409
409
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
410
|
-
this.
|
|
410
|
+
this.x98_1 = $subscriber;
|
|
411
411
|
CoroutineImpl.call(this, resultContinuation);
|
|
412
412
|
}
|
|
413
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
414
|
-
var tmp = this.
|
|
413
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).z98 = function (it, $completion) {
|
|
414
|
+
var tmp = this.a99(it, $completion);
|
|
415
415
|
tmp.g9_1 = Unit_instance;
|
|
416
416
|
tmp.h9_1 = null;
|
|
417
417
|
return tmp.m9();
|
|
418
418
|
};
|
|
419
419
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
420
|
-
return this.
|
|
420
|
+
return this.z98(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
421
421
|
};
|
|
422
422
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
423
423
|
var suspendResult = this.g9_1;
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
var tmp = this.e9_1;
|
|
427
427
|
if (tmp === 0) {
|
|
428
428
|
this.f9_1 = 1;
|
|
429
|
-
this.
|
|
429
|
+
this.x98_1(this.y98_1);
|
|
430
430
|
return Unit_instance;
|
|
431
431
|
} else if (tmp === 1) {
|
|
432
432
|
throw this.h9_1;
|
|
@@ -437,70 +437,70 @@
|
|
|
437
437
|
}
|
|
438
438
|
while (true);
|
|
439
439
|
};
|
|
440
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
441
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
442
|
-
i.
|
|
440
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).a99 = function (it, completion) {
|
|
441
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.x98_1, completion);
|
|
442
|
+
i.y98_1 = it;
|
|
443
443
|
return i;
|
|
444
444
|
};
|
|
445
445
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
446
446
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
447
447
|
var l = function (it, $completion) {
|
|
448
|
-
return i.
|
|
448
|
+
return i.z98(it, $completion);
|
|
449
449
|
};
|
|
450
450
|
l.$arity = 1;
|
|
451
451
|
return l;
|
|
452
452
|
}
|
|
453
453
|
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($it) {
|
|
454
|
-
this.
|
|
454
|
+
this.b99_1 = $it;
|
|
455
455
|
}
|
|
456
456
|
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).q66 = function () {
|
|
457
|
-
return this.
|
|
457
|
+
return this.b99_1;
|
|
458
458
|
};
|
|
459
459
|
function _get_logger__rkp4sl($this) {
|
|
460
460
|
// Inline function 'kotlin.getValue' call
|
|
461
|
-
var this_0 = $this.
|
|
461
|
+
var this_0 = $this.e99_1;
|
|
462
462
|
logger$factory_0();
|
|
463
463
|
return this_0.u();
|
|
464
464
|
}
|
|
465
465
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
466
466
|
// Inline function 'kotlin.getValue' call
|
|
467
|
-
var this_0 = $this.
|
|
467
|
+
var this_0 = $this.f99_1;
|
|
468
468
|
toClientEventsObserver$factory_0();
|
|
469
469
|
return this_0.u();
|
|
470
470
|
}
|
|
471
471
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
472
472
|
// Inline function 'kotlin.getValue' call
|
|
473
|
-
var this_0 = $this.
|
|
473
|
+
var this_0 = $this.g99_1;
|
|
474
474
|
playerConnectionInteractor$factory_0();
|
|
475
475
|
return this_0.u();
|
|
476
476
|
}
|
|
477
477
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
478
478
|
// Inline function 'kotlin.getValue' call
|
|
479
|
-
var this_0 = $this.
|
|
479
|
+
var this_0 = $this.h99_1;
|
|
480
480
|
teamsLogicProvider$factory_0();
|
|
481
481
|
return this_0.u();
|
|
482
482
|
}
|
|
483
483
|
function _get_random__h29cgo($this) {
|
|
484
484
|
// Inline function 'kotlin.getValue' call
|
|
485
|
-
var this_0 = $this.
|
|
485
|
+
var this_0 = $this.i99_1;
|
|
486
486
|
random$factory();
|
|
487
487
|
return this_0.u();
|
|
488
488
|
}
|
|
489
489
|
function Companion() {
|
|
490
|
-
this.
|
|
490
|
+
this.k99_1 = 'GameEngine_API';
|
|
491
491
|
}
|
|
492
492
|
var Companion_instance_7;
|
|
493
493
|
function Companion_getInstance_0() {
|
|
494
494
|
return Companion_instance_7;
|
|
495
495
|
}
|
|
496
496
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
497
|
-
this.
|
|
497
|
+
this.l99_1 = function_0;
|
|
498
498
|
}
|
|
499
499
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
500
|
-
return this.
|
|
500
|
+
return this.l99_1(value, $completion);
|
|
501
501
|
};
|
|
502
502
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
503
|
-
return this.
|
|
503
|
+
return this.l99_1;
|
|
504
504
|
};
|
|
505
505
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
506
506
|
var tmp;
|
|
@@ -521,13 +521,13 @@
|
|
|
521
521
|
return hashCode(this.o3());
|
|
522
522
|
};
|
|
523
523
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
524
|
-
this.
|
|
524
|
+
this.m99_1 = function_0;
|
|
525
525
|
}
|
|
526
526
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
527
|
-
return this.
|
|
527
|
+
return this.m99_1(value, $completion);
|
|
528
528
|
};
|
|
529
529
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
530
|
-
return this.
|
|
530
|
+
return this.m99_1;
|
|
531
531
|
};
|
|
532
532
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
533
533
|
var tmp;
|
|
@@ -553,8 +553,8 @@
|
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
556
|
+
this.v99_1 = this$0;
|
|
557
|
+
this.w99_1 = $subscriber;
|
|
558
558
|
CoroutineImpl.call(this, resultContinuation);
|
|
559
559
|
}
|
|
560
560
|
protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -575,8 +575,8 @@
|
|
|
575
575
|
case 0:
|
|
576
576
|
this.f9_1 = 2;
|
|
577
577
|
this.e9_1 = 1;
|
|
578
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
579
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
578
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.v99_1).y99();
|
|
579
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.w99_1, null);
|
|
580
580
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
581
581
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
582
582
|
return suspendResult;
|
|
@@ -600,8 +600,8 @@
|
|
|
600
600
|
while (true);
|
|
601
601
|
};
|
|
602
602
|
protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
|
|
603
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
604
|
-
i.
|
|
603
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.v99_1, this.w99_1, completion);
|
|
604
|
+
i.x99_1 = $this$launchDefault;
|
|
605
605
|
return i;
|
|
606
606
|
};
|
|
607
607
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -613,8 +613,8 @@
|
|
|
613
613
|
return l;
|
|
614
614
|
}
|
|
615
615
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
616
|
+
this.h9a_1 = this$0;
|
|
617
|
+
this.i9a_1 = $subscriber;
|
|
618
618
|
CoroutineImpl.call(this, resultContinuation);
|
|
619
619
|
}
|
|
620
620
|
protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -635,8 +635,8 @@
|
|
|
635
635
|
case 0:
|
|
636
636
|
this.f9_1 = 2;
|
|
637
637
|
this.e9_1 = 1;
|
|
638
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
639
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
638
|
+
var tmp_0 = distinctUntilChanged(this.h9a_1.d6m());
|
|
639
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.i9a_1, null);
|
|
640
640
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
641
641
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
642
642
|
return suspendResult;
|
|
@@ -660,8 +660,8 @@
|
|
|
660
660
|
while (true);
|
|
661
661
|
};
|
|
662
662
|
protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
|
|
663
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
664
|
-
i.
|
|
663
|
+
var i = new GameServer$subscribeWith$slambda(this.h9a_1, this.i9a_1, completion);
|
|
664
|
+
i.j9a_1 = $this$launchDefault;
|
|
665
665
|
return i;
|
|
666
666
|
};
|
|
667
667
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -673,18 +673,18 @@
|
|
|
673
673
|
return l;
|
|
674
674
|
}
|
|
675
675
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
676
|
-
this.
|
|
676
|
+
this.s9a_1 = $action;
|
|
677
677
|
CoroutineImpl.call(this, resultContinuation);
|
|
678
678
|
}
|
|
679
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
680
|
-
var tmp = this.
|
|
679
|
+
protoOf(GameServer$fromClientEvent$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
680
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
681
681
|
tmp.g9_1 = Unit_instance;
|
|
682
682
|
tmp.h9_1 = null;
|
|
683
683
|
return tmp.m9();
|
|
684
684
|
};
|
|
685
685
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
686
686
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
687
|
-
return this.
|
|
687
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
688
688
|
};
|
|
689
689
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
690
690
|
var suspendResult = this.g9_1;
|
|
@@ -693,11 +693,11 @@
|
|
|
693
693
|
var tmp = this.e9_1;
|
|
694
694
|
if (tmp === 0) {
|
|
695
695
|
this.f9_1 = 1;
|
|
696
|
-
if (this.
|
|
697
|
-
if (!get_isCreated(this.
|
|
696
|
+
if (this.s9a_1 instanceof PlayerReadyFromClientAction)
|
|
697
|
+
if (!get_isCreated(this.u9a_1.state)) {
|
|
698
698
|
return Unit_instance;
|
|
699
699
|
}
|
|
700
|
-
this.
|
|
700
|
+
this.u9a_1.dispatch(this.s9a_1);
|
|
701
701
|
return Unit_instance;
|
|
702
702
|
} else if (tmp === 1) {
|
|
703
703
|
throw this.h9_1;
|
|
@@ -708,33 +708,33 @@
|
|
|
708
708
|
}
|
|
709
709
|
while (true);
|
|
710
710
|
};
|
|
711
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
712
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
713
|
-
i.
|
|
714
|
-
i.
|
|
711
|
+
protoOf(GameServer$fromClientEvent$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
712
|
+
var i = new GameServer$fromClientEvent$slambda(this.s9a_1, completion);
|
|
713
|
+
i.t9a_1 = $this$dispatchAsync;
|
|
714
|
+
i.u9a_1 = store;
|
|
715
715
|
return i;
|
|
716
716
|
};
|
|
717
717
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
718
718
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
719
719
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
720
|
-
return i.
|
|
720
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
721
721
|
};
|
|
722
722
|
l.$arity = 2;
|
|
723
723
|
return l;
|
|
724
724
|
}
|
|
725
725
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
726
|
-
this.
|
|
726
|
+
this.f9b_1 = $playerId;
|
|
727
727
|
CoroutineImpl.call(this, resultContinuation);
|
|
728
728
|
}
|
|
729
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
730
|
-
var tmp = this.
|
|
729
|
+
protoOf(GameServer$playerLostConnection$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
730
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
731
731
|
tmp.g9_1 = Unit_instance;
|
|
732
732
|
tmp.h9_1 = null;
|
|
733
733
|
return tmp.m9();
|
|
734
734
|
};
|
|
735
735
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
736
736
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
737
|
-
return this.
|
|
737
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
738
738
|
};
|
|
739
739
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
740
740
|
var suspendResult = this.g9_1;
|
|
@@ -743,12 +743,12 @@
|
|
|
743
743
|
var tmp = this.e9_1;
|
|
744
744
|
if (tmp === 0) {
|
|
745
745
|
this.f9_1 = 1;
|
|
746
|
-
if (!get_isCreated(this.
|
|
746
|
+
if (!get_isCreated(this.h9b_1.state)) {
|
|
747
747
|
return Unit_instance;
|
|
748
748
|
}
|
|
749
|
-
var tmp_0 = this.
|
|
749
|
+
var tmp_0 = this.h9b_1.dispatch;
|
|
750
750
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
751
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
751
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.f9b_1));
|
|
752
752
|
return Unit_instance;
|
|
753
753
|
} else if (tmp === 1) {
|
|
754
754
|
throw this.h9_1;
|
|
@@ -759,33 +759,33 @@
|
|
|
759
759
|
}
|
|
760
760
|
while (true);
|
|
761
761
|
};
|
|
762
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
763
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
764
|
-
i.
|
|
765
|
-
i.
|
|
762
|
+
protoOf(GameServer$playerLostConnection$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
763
|
+
var i = new GameServer$playerLostConnection$slambda(this.f9b_1, completion);
|
|
764
|
+
i.g9b_1 = $this$dispatchAsync;
|
|
765
|
+
i.h9b_1 = store;
|
|
766
766
|
return i;
|
|
767
767
|
};
|
|
768
768
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
769
769
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
770
770
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
771
|
-
return i.
|
|
771
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
772
772
|
};
|
|
773
773
|
l.$arity = 2;
|
|
774
774
|
return l;
|
|
775
775
|
}
|
|
776
776
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
777
|
-
this.
|
|
777
|
+
this.q9b_1 = $playerId;
|
|
778
778
|
CoroutineImpl.call(this, resultContinuation);
|
|
779
779
|
}
|
|
780
|
-
protoOf(GameServer$playerLive$slambda).
|
|
781
|
-
var tmp = this.
|
|
780
|
+
protoOf(GameServer$playerLive$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
781
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
782
782
|
tmp.g9_1 = Unit_instance;
|
|
783
783
|
tmp.h9_1 = null;
|
|
784
784
|
return tmp.m9();
|
|
785
785
|
};
|
|
786
786
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
787
787
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
788
|
-
return this.
|
|
788
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
789
789
|
};
|
|
790
790
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
791
791
|
var suspendResult = this.g9_1;
|
|
@@ -794,9 +794,9 @@
|
|
|
794
794
|
var tmp = this.e9_1;
|
|
795
795
|
if (tmp === 0) {
|
|
796
796
|
this.f9_1 = 1;
|
|
797
|
-
var tmp_0 = this.
|
|
797
|
+
var tmp_0 = this.s9b_1.dispatch;
|
|
798
798
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
799
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
799
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.q9b_1));
|
|
800
800
|
return Unit_instance;
|
|
801
801
|
} else if (tmp === 1) {
|
|
802
802
|
throw this.h9_1;
|
|
@@ -807,33 +807,33 @@
|
|
|
807
807
|
}
|
|
808
808
|
while (true);
|
|
809
809
|
};
|
|
810
|
-
protoOf(GameServer$playerLive$slambda).
|
|
811
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
812
|
-
i.
|
|
813
|
-
i.
|
|
810
|
+
protoOf(GameServer$playerLive$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
811
|
+
var i = new GameServer$playerLive$slambda(this.q9b_1, completion);
|
|
812
|
+
i.r9b_1 = $this$dispatchAsync;
|
|
813
|
+
i.s9b_1 = store;
|
|
814
814
|
return i;
|
|
815
815
|
};
|
|
816
816
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
817
817
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
818
818
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
819
|
-
return i.
|
|
819
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
820
820
|
};
|
|
821
821
|
l.$arity = 2;
|
|
822
822
|
return l;
|
|
823
823
|
}
|
|
824
824
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
825
|
-
this.
|
|
825
|
+
this.b9c_1 = $playerId;
|
|
826
826
|
CoroutineImpl.call(this, resultContinuation);
|
|
827
827
|
}
|
|
828
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
829
|
-
var tmp = this.
|
|
828
|
+
protoOf(GameServer$playerLeft$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
829
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
830
830
|
tmp.g9_1 = Unit_instance;
|
|
831
831
|
tmp.h9_1 = null;
|
|
832
832
|
return tmp.m9();
|
|
833
833
|
};
|
|
834
834
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
835
835
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
836
|
-
return this.
|
|
836
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
837
837
|
};
|
|
838
838
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
839
839
|
var suspendResult = this.g9_1;
|
|
@@ -842,9 +842,9 @@
|
|
|
842
842
|
var tmp = this.e9_1;
|
|
843
843
|
if (tmp === 0) {
|
|
844
844
|
this.f9_1 = 1;
|
|
845
|
-
var tmp_0 = this.
|
|
845
|
+
var tmp_0 = this.d9c_1.dispatch;
|
|
846
846
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
847
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
847
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.b9c_1));
|
|
848
848
|
return Unit_instance;
|
|
849
849
|
} else if (tmp === 1) {
|
|
850
850
|
throw this.h9_1;
|
|
@@ -855,39 +855,39 @@
|
|
|
855
855
|
}
|
|
856
856
|
while (true);
|
|
857
857
|
};
|
|
858
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
859
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
860
|
-
i.
|
|
861
|
-
i.
|
|
858
|
+
protoOf(GameServer$playerLeft$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
859
|
+
var i = new GameServer$playerLeft$slambda(this.b9c_1, completion);
|
|
860
|
+
i.c9c_1 = $this$dispatchAsync;
|
|
861
|
+
i.d9c_1 = store;
|
|
862
862
|
return i;
|
|
863
863
|
};
|
|
864
864
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
865
865
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
866
866
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
867
|
-
return i.
|
|
867
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
868
868
|
};
|
|
869
869
|
l.$arity = 2;
|
|
870
870
|
return l;
|
|
871
871
|
}
|
|
872
872
|
function GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
879
|
-
this.
|
|
873
|
+
this.m9c_1 = $usersArray;
|
|
874
|
+
this.n9c_1 = $gameCreatorId;
|
|
875
|
+
this.o9c_1 = $config;
|
|
876
|
+
this.p9c_1 = $transition;
|
|
877
|
+
this.q9c_1 = this$0;
|
|
878
|
+
this.r9c_1 = $spectators;
|
|
879
|
+
this.s9c_1 = $roomId;
|
|
880
880
|
CoroutineImpl.call(this, resultContinuation);
|
|
881
881
|
}
|
|
882
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
883
|
-
var tmp = this.
|
|
882
|
+
protoOf(GameServer$roomOnCreate$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
883
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
884
884
|
tmp.g9_1 = Unit_instance;
|
|
885
885
|
tmp.h9_1 = null;
|
|
886
886
|
return tmp.m9();
|
|
887
887
|
};
|
|
888
888
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
889
889
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
890
|
-
return this.
|
|
890
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
891
891
|
};
|
|
892
892
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
893
893
|
var suspendResult = this.g9_1;
|
|
@@ -896,24 +896,24 @@
|
|
|
896
896
|
var tmp = this.e9_1;
|
|
897
897
|
if (tmp === 0) {
|
|
898
898
|
this.f9_1 = 1;
|
|
899
|
-
var users = toList(this.
|
|
900
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
899
|
+
var users = toList(this.m9c_1);
|
|
900
|
+
var gameCreatorUser = getPlayer(users, this.n9c_1);
|
|
901
901
|
var tmp_0;
|
|
902
|
-
if (this.
|
|
903
|
-
tmp_0 = sortWithItem(_get_random__h29cgo(this.
|
|
902
|
+
if (this.o9c_1.mode.shufflePlayers && this.p9c_1 == null) {
|
|
903
|
+
tmp_0 = sortWithItem(_get_random__h29cgo(this.q9c_1).s5s(toMutableList(users)), gameCreatorUser);
|
|
904
904
|
} else {
|
|
905
|
-
var tmp0_safe_receiver = this.
|
|
905
|
+
var tmp0_safe_receiver = this.p9c_1;
|
|
906
906
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
907
907
|
var tmp_1;
|
|
908
|
-
if (!(previousPlayers == null) && this.
|
|
909
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
908
|
+
if (!(previousPlayers == null) && this.o9c_1.playersMode.isTeamGame) {
|
|
909
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.q9c_1);
|
|
910
910
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
911
911
|
var tmp0_iterator = previousPlayers.j();
|
|
912
912
|
while (tmp0_iterator.k()) {
|
|
913
913
|
var item = tmp0_iterator.l();
|
|
914
914
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
915
915
|
}
|
|
916
|
-
var previousTeams = tmp_2.
|
|
916
|
+
var previousTeams = tmp_2.o8e(destination);
|
|
917
917
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
918
918
|
var tmp0_iterator_0 = users.j();
|
|
919
919
|
while (tmp0_iterator_0.k()) {
|
|
@@ -937,17 +937,17 @@
|
|
|
937
937
|
destination_1.e(destination_2);
|
|
938
938
|
}
|
|
939
939
|
var updatedTeams = destination_1;
|
|
940
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
940
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.q9c_1).s8e(updatedTeams);
|
|
941
941
|
} else {
|
|
942
942
|
tmp_1 = users;
|
|
943
943
|
}
|
|
944
944
|
tmp_0 = tmp_1;
|
|
945
945
|
}
|
|
946
946
|
var updatedUsers = tmp_0;
|
|
947
|
-
var tmp_3 = this.
|
|
947
|
+
var tmp_3 = this.u9c_1.dispatch;
|
|
948
948
|
var tmp1_version = GameEngineConfig_instance.version;
|
|
949
|
-
var tmp2_spectators = toList(this.
|
|
950
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
949
|
+
var tmp2_spectators = toList(this.r9c_1);
|
|
950
|
+
tmp_3(new StartGameMechanicAction(this.o9c_1, this.s9c_1, tmp1_version, this.n9c_1, updatedUsers, VOID, tmp2_spectators));
|
|
951
951
|
return Unit_instance;
|
|
952
952
|
} else if (tmp === 1) {
|
|
953
953
|
throw this.h9_1;
|
|
@@ -958,33 +958,33 @@
|
|
|
958
958
|
}
|
|
959
959
|
while (true);
|
|
960
960
|
};
|
|
961
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
962
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
963
|
-
i.
|
|
964
|
-
i.
|
|
961
|
+
protoOf(GameServer$roomOnCreate$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
962
|
+
var i = new GameServer$roomOnCreate$slambda(this.m9c_1, this.n9c_1, this.o9c_1, this.p9c_1, this.q9c_1, this.r9c_1, this.s9c_1, completion);
|
|
963
|
+
i.t9c_1 = $this$dispatchAsync;
|
|
964
|
+
i.u9c_1 = store;
|
|
965
965
|
return i;
|
|
966
966
|
};
|
|
967
967
|
function GameServer$roomOnCreate$slambda_0($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
968
968
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation);
|
|
969
969
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
970
|
-
return i.
|
|
970
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
971
971
|
};
|
|
972
972
|
l.$arity = 2;
|
|
973
973
|
return l;
|
|
974
974
|
}
|
|
975
975
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
976
|
-
this.
|
|
976
|
+
this.d9d_1 = $tableLite;
|
|
977
977
|
CoroutineImpl.call(this, resultContinuation);
|
|
978
978
|
}
|
|
979
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
980
|
-
var tmp = this.
|
|
979
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
980
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
981
981
|
tmp.g9_1 = Unit_instance;
|
|
982
982
|
tmp.h9_1 = null;
|
|
983
983
|
return tmp.m9();
|
|
984
984
|
};
|
|
985
985
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
986
986
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
987
|
-
return this.
|
|
987
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
988
988
|
};
|
|
989
989
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
990
990
|
var suspendResult = this.g9_1;
|
|
@@ -993,9 +993,9 @@
|
|
|
993
993
|
var tmp = this.e9_1;
|
|
994
994
|
if (tmp === 0) {
|
|
995
995
|
this.f9_1 = 1;
|
|
996
|
-
var tmp_0 = this.
|
|
996
|
+
var tmp_0 = this.f9d_1.dispatch;
|
|
997
997
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
998
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
998
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.d9d_1);
|
|
999
999
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1000
1000
|
return Unit_instance;
|
|
1001
1001
|
} else if (tmp === 1) {
|
|
@@ -1007,16 +1007,16 @@
|
|
|
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).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1011
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.d9d_1, completion);
|
|
1012
|
+
i.e9d_1 = $this$dispatchAsync;
|
|
1013
|
+
i.f9d_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.v9a($this$dispatchAsync, store, $completion);
|
|
1020
1020
|
};
|
|
1021
1021
|
l.$arity = 2;
|
|
1022
1022
|
return l;
|
|
@@ -1024,15 +1024,15 @@
|
|
|
1024
1024
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1025
1025
|
CoroutineImpl.call(this, resultContinuation);
|
|
1026
1026
|
}
|
|
1027
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1028
|
-
var tmp = this.
|
|
1027
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
1028
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
1029
1029
|
tmp.g9_1 = Unit_instance;
|
|
1030
1030
|
tmp.h9_1 = null;
|
|
1031
1031
|
return tmp.m9();
|
|
1032
1032
|
};
|
|
1033
1033
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).x9 = function (p1, p2, $completion) {
|
|
1034
1034
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1035
|
-
return this.
|
|
1035
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1036
1036
|
};
|
|
1037
1037
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).m9 = function () {
|
|
1038
1038
|
var suspendResult = this.g9_1;
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
var tmp = this.e9_1;
|
|
1042
1042
|
if (tmp === 0) {
|
|
1043
1043
|
this.f9_1 = 1;
|
|
1044
|
-
this.
|
|
1044
|
+
this.p9d_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1045
1045
|
return Unit_instance;
|
|
1046
1046
|
} else if (tmp === 1) {
|
|
1047
1047
|
throw this.h9_1;
|
|
@@ -1052,33 +1052,33 @@
|
|
|
1052
1052
|
}
|
|
1053
1053
|
while (true);
|
|
1054
1054
|
};
|
|
1055
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1055
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1056
1056
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1057
|
-
i.
|
|
1058
|
-
i.
|
|
1057
|
+
i.o9d_1 = $this$dispatchAsync;
|
|
1058
|
+
i.p9d_1 = store;
|
|
1059
1059
|
return i;
|
|
1060
1060
|
};
|
|
1061
1061
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1062
1062
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1063
1063
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1064
|
-
return i.
|
|
1064
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
1065
1065
|
};
|
|
1066
1066
|
l.$arity = 2;
|
|
1067
1067
|
return l;
|
|
1068
1068
|
}
|
|
1069
1069
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1070
|
-
this.
|
|
1070
|
+
this.y9d_1 = $spectators;
|
|
1071
1071
|
CoroutineImpl.call(this, resultContinuation);
|
|
1072
1072
|
}
|
|
1073
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1074
|
-
var tmp = this.
|
|
1073
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
1074
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
1075
1075
|
tmp.g9_1 = Unit_instance;
|
|
1076
1076
|
tmp.h9_1 = null;
|
|
1077
1077
|
return tmp.m9();
|
|
1078
1078
|
};
|
|
1079
1079
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1080
1080
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1081
|
-
return this.
|
|
1081
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1082
1082
|
};
|
|
1083
1083
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
1084
1084
|
var suspendResult = this.g9_1;
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
var tmp = this.e9_1;
|
|
1088
1088
|
if (tmp === 0) {
|
|
1089
1089
|
this.f9_1 = 1;
|
|
1090
|
-
this.
|
|
1090
|
+
this.a9e_1.dispatch(new AddSpectatorsAction(toList(this.y9d_1)));
|
|
1091
1091
|
return Unit_instance;
|
|
1092
1092
|
} else if (tmp === 1) {
|
|
1093
1093
|
throw this.h9_1;
|
|
@@ -1098,33 +1098,33 @@
|
|
|
1098
1098
|
}
|
|
1099
1099
|
while (true);
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1102
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1103
|
-
i.
|
|
1104
|
-
i.
|
|
1101
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1102
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.y9d_1, completion);
|
|
1103
|
+
i.z9d_1 = $this$dispatchAsync;
|
|
1104
|
+
i.a9e_1 = store;
|
|
1105
1105
|
return i;
|
|
1106
1106
|
};
|
|
1107
1107
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1108
1108
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1109
1109
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1110
|
-
return i.
|
|
1110
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
1111
1111
|
};
|
|
1112
1112
|
l.$arity = 2;
|
|
1113
1113
|
return l;
|
|
1114
1114
|
}
|
|
1115
1115
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1116
|
-
this.
|
|
1116
|
+
this.j9e_1 = $spectators;
|
|
1117
1117
|
CoroutineImpl.call(this, resultContinuation);
|
|
1118
1118
|
}
|
|
1119
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1120
|
-
var tmp = this.
|
|
1119
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
1120
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
1121
1121
|
tmp.g9_1 = Unit_instance;
|
|
1122
1122
|
tmp.h9_1 = null;
|
|
1123
1123
|
return tmp.m9();
|
|
1124
1124
|
};
|
|
1125
1125
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1126
1126
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1127
|
-
return this.
|
|
1127
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1128
1128
|
};
|
|
1129
1129
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1130
1130
|
var suspendResult = this.g9_1;
|
|
@@ -1133,7 +1133,7 @@
|
|
|
1133
1133
|
var tmp = this.e9_1;
|
|
1134
1134
|
if (tmp === 0) {
|
|
1135
1135
|
this.f9_1 = 1;
|
|
1136
|
-
this.
|
|
1136
|
+
this.l9e_1.dispatch(new RemoveSpectatorsAction(toList(this.j9e_1)));
|
|
1137
1137
|
return Unit_instance;
|
|
1138
1138
|
} else if (tmp === 1) {
|
|
1139
1139
|
throw this.h9_1;
|
|
@@ -1144,34 +1144,34 @@
|
|
|
1144
1144
|
}
|
|
1145
1145
|
while (true);
|
|
1146
1146
|
};
|
|
1147
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1148
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1149
|
-
i.
|
|
1150
|
-
i.
|
|
1147
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1148
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.j9e_1, completion);
|
|
1149
|
+
i.k9e_1 = $this$dispatchAsync;
|
|
1150
|
+
i.l9e_1 = store;
|
|
1151
1151
|
return i;
|
|
1152
1152
|
};
|
|
1153
1153
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1154
1154
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1155
1155
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1156
|
-
return i.
|
|
1156
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
1157
1157
|
};
|
|
1158
1158
|
l.$arity = 2;
|
|
1159
1159
|
return l;
|
|
1160
1160
|
}
|
|
1161
1161
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1162
|
-
this.
|
|
1163
|
-
this.
|
|
1162
|
+
this.u9e_1 = $playerId;
|
|
1163
|
+
this.v9e_1 = this$0;
|
|
1164
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1165
1165
|
}
|
|
1166
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1167
|
-
var tmp = this.
|
|
1166
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
1167
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
1168
1168
|
tmp.g9_1 = Unit_instance;
|
|
1169
1169
|
tmp.h9_1 = null;
|
|
1170
1170
|
return tmp.m9();
|
|
1171
1171
|
};
|
|
1172
1172
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1173
1173
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1174
|
-
return this.
|
|
1174
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1175
1175
|
};
|
|
1176
1176
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1177
1177
|
var suspendResult = this.g9_1;
|
|
@@ -1180,14 +1180,14 @@
|
|
|
1180
1180
|
var tmp = this.e9_1;
|
|
1181
1181
|
if (tmp === 0) {
|
|
1182
1182
|
this.f9_1 = 1;
|
|
1183
|
-
var table = this.
|
|
1184
|
-
var player = getPlayer(table.players, this.
|
|
1185
|
-
if (player.
|
|
1186
|
-
this.
|
|
1183
|
+
var table = this.x9e_1.state.g6n();
|
|
1184
|
+
var player = getPlayer(table.players, this.u9e_1);
|
|
1185
|
+
if (player.y6s_1.s69().j68_1.isLive) {
|
|
1186
|
+
this.x9e_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.v9e_1).j8l(player, table));
|
|
1187
1187
|
} else {
|
|
1188
|
-
var tmp_0 = this.
|
|
1188
|
+
var tmp_0 = this.x9e_1.dispatch;
|
|
1189
1189
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1190
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1190
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.u9e_1));
|
|
1191
1191
|
}
|
|
1192
1192
|
return Unit_instance;
|
|
1193
1193
|
} else if (tmp === 1) {
|
|
@@ -1199,34 +1199,34 @@
|
|
|
1199
1199
|
}
|
|
1200
1200
|
while (true);
|
|
1201
1201
|
};
|
|
1202
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1203
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1204
|
-
i.
|
|
1205
|
-
i.
|
|
1202
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1203
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.u9e_1, this.v9e_1, completion);
|
|
1204
|
+
i.w9e_1 = $this$dispatchAsync;
|
|
1205
|
+
i.x9e_1 = store;
|
|
1206
1206
|
return i;
|
|
1207
1207
|
};
|
|
1208
1208
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1209
1209
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1210
1210
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1211
|
-
return i.
|
|
1211
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
1212
1212
|
};
|
|
1213
1213
|
l.$arity = 2;
|
|
1214
1214
|
return l;
|
|
1215
1215
|
}
|
|
1216
1216
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1217
|
+
this.g9f_1 = this$0;
|
|
1218
|
+
this.h9f_1 = $newRid;
|
|
1219
1219
|
CoroutineImpl.call(this, resultContinuation);
|
|
1220
1220
|
}
|
|
1221
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1222
|
-
var tmp = this.
|
|
1221
|
+
protoOf(GameServer$roomOnDelete$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
1222
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
1223
1223
|
tmp.g9_1 = Unit_instance;
|
|
1224
1224
|
tmp.h9_1 = null;
|
|
1225
1225
|
return tmp.m9();
|
|
1226
1226
|
};
|
|
1227
1227
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1228
1228
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1229
|
-
return this.
|
|
1229
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1230
1230
|
};
|
|
1231
1231
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1232
1232
|
var suspendResult = this.g9_1;
|
|
@@ -1235,23 +1235,23 @@
|
|
|
1235
1235
|
var tmp = this.e9_1;
|
|
1236
1236
|
if (tmp === 0) {
|
|
1237
1237
|
this.f9_1 = 1;
|
|
1238
|
-
var it = this.
|
|
1238
|
+
var it = this.g9f_1.p67().h6m_1;
|
|
1239
1239
|
var tmp_0;
|
|
1240
1240
|
if (it == null) {
|
|
1241
|
-
_get_logger__rkp4sl(this.
|
|
1241
|
+
_get_logger__rkp4sl(this.g9f_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1242
1242
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1243
1243
|
} else {
|
|
1244
1244
|
tmp_0 = it;
|
|
1245
1245
|
}
|
|
1246
1246
|
var terminationState = tmp_0;
|
|
1247
|
-
var tmp_1 = this.
|
|
1248
|
-
var tmp1_reason = terminationState.
|
|
1249
|
-
var tmp0_safe_receiver = terminationState.
|
|
1247
|
+
var tmp_1 = this.j9f_1.dispatch;
|
|
1248
|
+
var tmp1_reason = terminationState.k8p_1;
|
|
1249
|
+
var tmp0_safe_receiver = terminationState.l8p_1;
|
|
1250
1250
|
var tmp_2;
|
|
1251
1251
|
if (tmp0_safe_receiver == null) {
|
|
1252
1252
|
tmp_2 = null;
|
|
1253
1253
|
} else {
|
|
1254
|
-
var value = this.
|
|
1254
|
+
var value = this.h9f_1;
|
|
1255
1255
|
var tmp$ret$0 = Unit_instance;
|
|
1256
1256
|
l$ret$1: do {
|
|
1257
1257
|
if (value == null) {
|
|
@@ -1266,7 +1266,7 @@
|
|
|
1266
1266
|
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1267
1267
|
}
|
|
1268
1268
|
var tmp2_transition = tmp_2;
|
|
1269
|
-
var tmp3_isGameFinished = this.
|
|
1269
|
+
var tmp3_isGameFinished = this.g9f_1.p67().g6n().isGameFinished;
|
|
1270
1270
|
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1271
1271
|
return Unit_instance;
|
|
1272
1272
|
} else if (tmp === 1) {
|
|
@@ -1278,33 +1278,33 @@
|
|
|
1278
1278
|
}
|
|
1279
1279
|
while (true);
|
|
1280
1280
|
};
|
|
1281
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1282
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1283
|
-
i.
|
|
1284
|
-
i.
|
|
1281
|
+
protoOf(GameServer$roomOnDelete$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1282
|
+
var i = new GameServer$roomOnDelete$slambda(this.g9f_1, this.h9f_1, completion);
|
|
1283
|
+
i.i9f_1 = $this$dispatchAsync;
|
|
1284
|
+
i.j9f_1 = store;
|
|
1285
1285
|
return i;
|
|
1286
1286
|
};
|
|
1287
1287
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1288
1288
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1289
1289
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1290
|
-
return i.
|
|
1290
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
1291
1291
|
};
|
|
1292
1292
|
l.$arity = 2;
|
|
1293
1293
|
return l;
|
|
1294
1294
|
}
|
|
1295
1295
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1296
|
-
this.
|
|
1296
|
+
this.s9f_1 = $enabled;
|
|
1297
1297
|
CoroutineImpl.call(this, resultContinuation);
|
|
1298
1298
|
}
|
|
1299
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1300
|
-
var tmp = this.
|
|
1299
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
1300
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
1301
1301
|
tmp.g9_1 = Unit_instance;
|
|
1302
1302
|
tmp.h9_1 = null;
|
|
1303
1303
|
return tmp.m9();
|
|
1304
1304
|
};
|
|
1305
1305
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1306
1306
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1307
|
-
return this.
|
|
1307
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1308
1308
|
};
|
|
1309
1309
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1310
1310
|
var suspendResult = this.g9_1;
|
|
@@ -1313,7 +1313,7 @@
|
|
|
1313
1313
|
var tmp = this.e9_1;
|
|
1314
1314
|
if (tmp === 0) {
|
|
1315
1315
|
this.f9_1 = 1;
|
|
1316
|
-
this.
|
|
1316
|
+
this.u9f_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.u9f_1.state).v9f_1.x9f(this.s9f_1)));
|
|
1317
1317
|
return Unit_instance;
|
|
1318
1318
|
} else if (tmp === 1) {
|
|
1319
1319
|
throw this.h9_1;
|
|
@@ -1324,35 +1324,35 @@
|
|
|
1324
1324
|
}
|
|
1325
1325
|
while (true);
|
|
1326
1326
|
};
|
|
1327
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1328
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1329
|
-
i.
|
|
1330
|
-
i.
|
|
1327
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1328
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.s9f_1, completion);
|
|
1329
|
+
i.t9f_1 = $this$dispatchAsync;
|
|
1330
|
+
i.u9f_1 = store;
|
|
1331
1331
|
return i;
|
|
1332
1332
|
};
|
|
1333
1333
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1334
1334
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1335
1335
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1336
|
-
return i.
|
|
1336
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
1337
1337
|
};
|
|
1338
1338
|
l.$arity = 2;
|
|
1339
1339
|
return l;
|
|
1340
1340
|
}
|
|
1341
1341
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1342
|
+
this.g9g_1 = $reason;
|
|
1343
|
+
this.h9g_1 = this$0;
|
|
1344
|
+
this.i9g_1 = $roomId;
|
|
1345
1345
|
CoroutineImpl.call(this, resultContinuation);
|
|
1346
1346
|
}
|
|
1347
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1348
|
-
var tmp = this.
|
|
1347
|
+
protoOf(GameServer$shutdown$slambda).v9a = function ($this$dispatchAsync, store, $completion) {
|
|
1348
|
+
var tmp = this.w9a($this$dispatchAsync, store, $completion);
|
|
1349
1349
|
tmp.g9_1 = Unit_instance;
|
|
1350
1350
|
tmp.h9_1 = null;
|
|
1351
1351
|
return tmp.m9();
|
|
1352
1352
|
};
|
|
1353
1353
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1354
1354
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1355
|
-
return this.
|
|
1355
|
+
return this.v9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1356
1356
|
};
|
|
1357
1357
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1358
1358
|
var suspendResult = this.g9_1;
|
|
@@ -1361,11 +1361,11 @@
|
|
|
1361
1361
|
var tmp = this.e9_1;
|
|
1362
1362
|
if (tmp === 0) {
|
|
1363
1363
|
this.f9_1 = 1;
|
|
1364
|
-
var state = this.
|
|
1364
|
+
var state = this.k9g_1.store.state;
|
|
1365
1365
|
if (state.h6n()) {
|
|
1366
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1366
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.g9g_1, get_serverShutdownReasonMapping());
|
|
1367
1367
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1368
|
-
var tmp_0 = this.
|
|
1368
|
+
var tmp_0 = this.k9g_1.dispatch;
|
|
1369
1369
|
var tmp_1 = Companion_instance_0;
|
|
1370
1370
|
var tmp_2;
|
|
1371
1371
|
switch (shutdownReason.n2_1) {
|
|
@@ -1379,10 +1379,10 @@
|
|
|
1379
1379
|
noWhenBranchMatchedException();
|
|
1380
1380
|
break;
|
|
1381
1381
|
}
|
|
1382
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1382
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.h9g_1.table.isGameFinished, this.h9g_1.table));
|
|
1383
1383
|
} else {
|
|
1384
|
-
_get_logger__rkp4sl(this.
|
|
1385
|
-
this.
|
|
1384
|
+
_get_logger__rkp4sl(this.h9g_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.i9g_1);
|
|
1385
|
+
this.k9g_1.dispatch(new ClearAction());
|
|
1386
1386
|
}
|
|
1387
1387
|
return Unit_instance;
|
|
1388
1388
|
} else if (tmp === 1) {
|
|
@@ -1394,22 +1394,22 @@
|
|
|
1394
1394
|
}
|
|
1395
1395
|
while (true);
|
|
1396
1396
|
};
|
|
1397
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1398
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1399
|
-
i.
|
|
1400
|
-
i.
|
|
1397
|
+
protoOf(GameServer$shutdown$slambda).w9a = function ($this$dispatchAsync, store, completion) {
|
|
1398
|
+
var i = new GameServer$shutdown$slambda(this.g9g_1, this.h9g_1, this.i9g_1, completion);
|
|
1399
|
+
i.j9g_1 = $this$dispatchAsync;
|
|
1400
|
+
i.k9g_1 = store;
|
|
1401
1401
|
return i;
|
|
1402
1402
|
};
|
|
1403
1403
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1404
1404
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1405
1405
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1406
|
-
return i.
|
|
1406
|
+
return i.v9a($this$dispatchAsync, store, $completion);
|
|
1407
1407
|
};
|
|
1408
1408
|
l.$arity = 2;
|
|
1409
1409
|
return l;
|
|
1410
1410
|
}
|
|
1411
1411
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1412
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1412
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.l9g()) : preloadedState;
|
|
1413
1413
|
var tmp;
|
|
1414
1414
|
if (externalReducers === VOID) {
|
|
1415
1415
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1432,34 +1432,34 @@
|
|
|
1432
1432
|
// Inline function 'org.kodein.type.generic' call
|
|
1433
1433
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1434
1434
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1435
|
-
tmp_1.
|
|
1435
|
+
tmp_1.e99_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
|
|
1436
1436
|
var tmp_3 = this;
|
|
1437
1437
|
// Inline function 'org.kodein.di.instance' call
|
|
1438
1438
|
// Inline function 'org.kodein.type.generic' call
|
|
1439
1439
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1440
1440
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1441
|
-
tmp_3.
|
|
1441
|
+
tmp_3.f99_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
|
|
1442
1442
|
var tmp_5 = this;
|
|
1443
1443
|
// Inline function 'org.kodein.di.instance' call
|
|
1444
1444
|
// Inline function 'org.kodein.type.generic' call
|
|
1445
1445
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1446
1446
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1447
|
-
tmp_5.
|
|
1447
|
+
tmp_5.g99_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
|
|
1448
1448
|
var tmp_7 = this;
|
|
1449
1449
|
// Inline function 'org.kodein.di.instance' call
|
|
1450
1450
|
// Inline function 'org.kodein.type.generic' call
|
|
1451
1451
|
var tmp_8 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
1452
1452
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1453
|
-
tmp_7.
|
|
1453
|
+
tmp_7.h99_1 = Instance(di, tmp$ret$8, null).e60(this, teamsLogicProvider$factory());
|
|
1454
1454
|
var tmp_9 = this;
|
|
1455
|
-
tmp_9.
|
|
1455
|
+
tmp_9.i99_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1456
1456
|
var tmp_10 = this;
|
|
1457
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1458
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1459
|
-
tmp_10.
|
|
1457
|
+
var tmp0_externalMiddlewares = plus(storeContract.s8t(), externalMiddlewares);
|
|
1458
|
+
var tmp1_externalReducers = plus(storeContract.r8t(), externalReducers);
|
|
1459
|
+
tmp_10.j99_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1460
1460
|
}
|
|
1461
1461
|
protoOf(GameServer).t6l = function () {
|
|
1462
|
-
return this.
|
|
1462
|
+
return this.j99_1;
|
|
1463
1463
|
};
|
|
1464
1464
|
protoOf(GameServer).o5h = function () {
|
|
1465
1465
|
return this.p67().g6n().id;
|
|
@@ -1483,45 +1483,45 @@
|
|
|
1483
1483
|
};
|
|
1484
1484
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1485
1485
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1486
|
-
this.
|
|
1486
|
+
this.j99_1.f6n(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1487
1487
|
};
|
|
1488
1488
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1489
1489
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1490
|
-
this.
|
|
1490
|
+
this.j99_1.f6n(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1491
1491
|
};
|
|
1492
1492
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1493
1493
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1494
|
-
this.
|
|
1494
|
+
this.j99_1.f6n(GameServer$playerLive$slambda_0(playerId, null));
|
|
1495
1495
|
};
|
|
1496
1496
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1497
1497
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1498
|
-
this.
|
|
1498
|
+
this.j99_1.f6n(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1499
1499
|
};
|
|
1500
|
-
protoOf(GameServer).
|
|
1501
|
-
this.
|
|
1500
|
+
protoOf(GameServer).m9g = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1501
|
+
this.j99_1.f6n(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1502
1502
|
};
|
|
1503
1503
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1504
|
+
this.j99_1.f6n(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1505
|
+
this.j99_1.f6n(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
1506
1506
|
};
|
|
1507
1507
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1508
|
-
this.
|
|
1508
|
+
this.j99_1.f6n(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1509
1509
|
};
|
|
1510
1510
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1511
|
-
this.
|
|
1511
|
+
this.j99_1.f6n(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1512
1512
|
};
|
|
1513
1513
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1514
1514
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1515
|
-
this.
|
|
1515
|
+
this.j99_1.f6n(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1516
1516
|
};
|
|
1517
|
-
protoOf(GameServer).
|
|
1518
|
-
this.
|
|
1517
|
+
protoOf(GameServer).n9g = function (newRid) {
|
|
1518
|
+
this.j99_1.f6n(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1519
1519
|
};
|
|
1520
1520
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1521
|
-
this.
|
|
1521
|
+
this.j99_1.f6n(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1522
1522
|
};
|
|
1523
|
-
protoOf(GameServer).
|
|
1524
|
-
this.
|
|
1523
|
+
protoOf(GameServer).o9g = function (reason, roomId) {
|
|
1524
|
+
this.j99_1.f6n(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1525
1525
|
};
|
|
1526
1526
|
protoOf(GameServer).clear = function () {
|
|
1527
1527
|
return this.a2();
|
|
@@ -1605,16 +1605,16 @@
|
|
|
1605
1605
|
return ServerShutdownReason_ERROR_instance;
|
|
1606
1606
|
}
|
|
1607
1607
|
function ServerConfig(canStartNewGame) {
|
|
1608
|
-
this.
|
|
1608
|
+
this.w9f_1 = canStartNewGame;
|
|
1609
1609
|
}
|
|
1610
|
-
protoOf(ServerConfig).
|
|
1610
|
+
protoOf(ServerConfig).x9f = function (canStartNewGame) {
|
|
1611
1611
|
return new ServerConfig(canStartNewGame);
|
|
1612
1612
|
};
|
|
1613
1613
|
protoOf(ServerConfig).toString = function () {
|
|
1614
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1614
|
+
return 'ServerConfig(canStartNewGame=' + this.w9f_1 + ')';
|
|
1615
1615
|
};
|
|
1616
1616
|
protoOf(ServerConfig).hashCode = function () {
|
|
1617
|
-
return getBooleanHashCode(this.
|
|
1617
|
+
return getBooleanHashCode(this.w9f_1);
|
|
1618
1618
|
};
|
|
1619
1619
|
protoOf(ServerConfig).equals = function (other) {
|
|
1620
1620
|
if (this === other)
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
if (!(other instanceof ServerConfig))
|
|
1623
1623
|
return false;
|
|
1624
1624
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1625
|
-
if (!(this.
|
|
1625
|
+
if (!(this.w9f_1 === tmp0_other_with_cast.w9f_1))
|
|
1626
1626
|
return false;
|
|
1627
1627
|
return true;
|
|
1628
1628
|
};
|
|
@@ -1854,18 +1854,18 @@
|
|
|
1854
1854
|
function ToClientEventsObserver() {
|
|
1855
1855
|
}
|
|
1856
1856
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1857
|
+
this.y9g_1 = this$0;
|
|
1858
|
+
this.z9g_1 = $actions;
|
|
1859
1859
|
CoroutineImpl.call(this, resultContinuation);
|
|
1860
1860
|
}
|
|
1861
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1862
|
-
var tmp = this.
|
|
1861
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).g9h = function ($this$flow, $completion) {
|
|
1862
|
+
var tmp = this.h9h($this$flow, $completion);
|
|
1863
1863
|
tmp.g9_1 = Unit_instance;
|
|
1864
1864
|
tmp.h9_1 = null;
|
|
1865
1865
|
return tmp.m9();
|
|
1866
1866
|
};
|
|
1867
1867
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1868
|
-
return this.
|
|
1868
|
+
return this.g9h((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1869
1869
|
};
|
|
1870
1870
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1871
1871
|
var suspendResult = this.g9_1;
|
|
@@ -1876,23 +1876,23 @@
|
|
|
1876
1876
|
case 0:
|
|
1877
1877
|
this.f9_1 = 4;
|
|
1878
1878
|
var tmp_0 = this;
|
|
1879
|
-
tmp_0.
|
|
1879
|
+
tmp_0.b9h_1 = this.y9g_1.m9h_1;
|
|
1880
1880
|
var tmp_1 = this;
|
|
1881
|
-
tmp_1.
|
|
1882
|
-
this.
|
|
1881
|
+
tmp_1.c9h_1 = transformToEmits(this.y9g_1, this.z9g_1);
|
|
1882
|
+
this.d9h_1 = this.c9h_1.j();
|
|
1883
1883
|
this.e9_1 = 1;
|
|
1884
1884
|
continue $sm;
|
|
1885
1885
|
case 1:
|
|
1886
|
-
if (!this.
|
|
1886
|
+
if (!this.d9h_1.k()) {
|
|
1887
1887
|
this.e9_1 = 3;
|
|
1888
1888
|
continue $sm;
|
|
1889
1889
|
}
|
|
1890
1890
|
|
|
1891
|
-
this.
|
|
1891
|
+
this.e9h_1 = this.d9h_1.l();
|
|
1892
1892
|
var tmp_2 = this;
|
|
1893
|
-
tmp_2.
|
|
1893
|
+
tmp_2.f9h_1 = this.e9h_1;
|
|
1894
1894
|
this.e9_1 = 2;
|
|
1895
|
-
suspendResult = this.
|
|
1895
|
+
suspendResult = this.a9h_1.p18(this.f9h_1, this);
|
|
1896
1896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1897
1897
|
return suspendResult;
|
|
1898
1898
|
}
|
|
@@ -1903,10 +1903,10 @@
|
|
|
1903
1903
|
continue $sm;
|
|
1904
1904
|
case 3:
|
|
1905
1905
|
l$ret$1: do {
|
|
1906
|
-
var this_0 = this.
|
|
1906
|
+
var this_0 = this.y9g_1.l9h_1;
|
|
1907
1907
|
while (true) {
|
|
1908
1908
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1909
|
-
var upd = cur - this.
|
|
1909
|
+
var upd = cur - this.z9g_1.m() | 0;
|
|
1910
1910
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1911
1911
|
break l$ret$1;
|
|
1912
1912
|
}
|
|
@@ -1928,15 +1928,15 @@
|
|
|
1928
1928
|
}
|
|
1929
1929
|
while (true);
|
|
1930
1930
|
};
|
|
1931
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1932
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1933
|
-
i.
|
|
1931
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).h9h = function ($this$flow, completion) {
|
|
1932
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.y9g_1, this.z9g_1, completion);
|
|
1933
|
+
i.a9h_1 = $this$flow;
|
|
1934
1934
|
return i;
|
|
1935
1935
|
};
|
|
1936
1936
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1937
1937
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1938
1938
|
var l = function ($this$flow, $completion) {
|
|
1939
|
-
return i.
|
|
1939
|
+
return i.g9h($this$flow, $completion);
|
|
1940
1940
|
};
|
|
1941
1941
|
l.$arity = 1;
|
|
1942
1942
|
return l;
|
|
@@ -2009,29 +2009,29 @@
|
|
|
2009
2009
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
2010
2010
|
}
|
|
2011
2011
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
2012
|
-
var tmp = $this.
|
|
2012
|
+
var tmp = $this.k9h_1.m6d();
|
|
2013
2013
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2014
|
-
var this_0 = _this__u8e3s4.
|
|
2014
|
+
var this_0 = _this__u8e3s4.p9h_1;
|
|
2015
2015
|
var tmp_0 = copyToArray(this_0);
|
|
2016
2016
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2017
|
-
var this_1 = _this__u8e3s4.
|
|
2017
|
+
var this_1 = _this__u8e3s4.q9h_1;
|
|
2018
2018
|
var tmp$ret$1 = copyToArray(this_1);
|
|
2019
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
2019
|
+
return new ActionDeliveryPayload(_this__u8e3s4.o9h_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.r9h_1);
|
|
2020
2020
|
}
|
|
2021
2021
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
2022
|
-
this.
|
|
2023
|
-
this.
|
|
2024
|
-
this.
|
|
2025
|
-
this.
|
|
2022
|
+
this.o9h_1 = tableId;
|
|
2023
|
+
this.p9h_1 = includePlayers;
|
|
2024
|
+
this.q9h_1 = excludePlayers;
|
|
2025
|
+
this.r9h_1 = deliveryType;
|
|
2026
2026
|
}
|
|
2027
2027
|
protoOf(GroupKey).toString = function () {
|
|
2028
|
-
return 'GroupKey(tableId=' + this.
|
|
2028
|
+
return 'GroupKey(tableId=' + this.o9h_1 + ', includePlayers=' + toString(this.p9h_1) + ', excludePlayers=' + toString(this.q9h_1) + ', deliveryType=' + this.r9h_1.toString() + ')';
|
|
2029
2029
|
};
|
|
2030
2030
|
protoOf(GroupKey).hashCode = function () {
|
|
2031
|
-
var result = getStringHashCode(this.
|
|
2032
|
-
result = imul(result, 31) + hashCode(this.
|
|
2033
|
-
result = imul(result, 31) + hashCode(this.
|
|
2034
|
-
result = imul(result, 31) + this.
|
|
2031
|
+
var result = getStringHashCode(this.o9h_1);
|
|
2032
|
+
result = imul(result, 31) + hashCode(this.p9h_1) | 0;
|
|
2033
|
+
result = imul(result, 31) + hashCode(this.q9h_1) | 0;
|
|
2034
|
+
result = imul(result, 31) + this.r9h_1.hashCode() | 0;
|
|
2035
2035
|
return result;
|
|
2036
2036
|
};
|
|
2037
2037
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -2040,35 +2040,35 @@
|
|
|
2040
2040
|
if (!(other instanceof GroupKey))
|
|
2041
2041
|
return false;
|
|
2042
2042
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
2043
|
-
if (!(this.
|
|
2043
|
+
if (!(this.o9h_1 === tmp0_other_with_cast.o9h_1))
|
|
2044
2044
|
return false;
|
|
2045
|
-
if (!equals(this.
|
|
2045
|
+
if (!equals(this.p9h_1, tmp0_other_with_cast.p9h_1))
|
|
2046
2046
|
return false;
|
|
2047
|
-
if (!equals(this.
|
|
2047
|
+
if (!equals(this.q9h_1, tmp0_other_with_cast.q9h_1))
|
|
2048
2048
|
return false;
|
|
2049
|
-
if (!this.
|
|
2049
|
+
if (!this.r9h_1.equals(tmp0_other_with_cast.r9h_1))
|
|
2050
2050
|
return false;
|
|
2051
2051
|
return true;
|
|
2052
2052
|
};
|
|
2053
2053
|
function Companion_0() {
|
|
2054
|
-
this.
|
|
2054
|
+
this.s9h_1 = 6;
|
|
2055
2055
|
}
|
|
2056
2056
|
var Companion_instance_8;
|
|
2057
2057
|
function Companion_getInstance_1() {
|
|
2058
2058
|
return Companion_instance_8;
|
|
2059
2059
|
}
|
|
2060
2060
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
2061
|
-
this.
|
|
2061
|
+
this.b9i_1 = this$0;
|
|
2062
2062
|
CoroutineImpl.call(this, resultContinuation);
|
|
2063
2063
|
}
|
|
2064
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2065
|
-
var tmp = this.
|
|
2064
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).d9i = function (actions, $completion) {
|
|
2065
|
+
var tmp = this.e9i(actions, $completion);
|
|
2066
2066
|
tmp.g9_1 = Unit_instance;
|
|
2067
2067
|
tmp.h9_1 = null;
|
|
2068
2068
|
return tmp.m9();
|
|
2069
2069
|
};
|
|
2070
2070
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
2071
|
-
return this.
|
|
2071
|
+
return this.d9i((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
2072
2072
|
};
|
|
2073
2073
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
2074
2074
|
var suspendResult = this.g9_1;
|
|
@@ -2077,7 +2077,7 @@
|
|
|
2077
2077
|
var tmp = this.e9_1;
|
|
2078
2078
|
if (tmp === 0) {
|
|
2079
2079
|
this.f9_1 = 1;
|
|
2080
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
2080
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.b9i_1, this.c9i_1, null));
|
|
2081
2081
|
} else if (tmp === 1) {
|
|
2082
2082
|
throw this.h9_1;
|
|
2083
2083
|
}
|
|
@@ -2087,23 +2087,23 @@
|
|
|
2087
2087
|
}
|
|
2088
2088
|
while (true);
|
|
2089
2089
|
};
|
|
2090
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2091
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
2092
|
-
i.
|
|
2090
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).e9i = function (actions, completion) {
|
|
2091
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.b9i_1, completion);
|
|
2092
|
+
i.c9i_1 = actions;
|
|
2093
2093
|
return i;
|
|
2094
2094
|
};
|
|
2095
2095
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
2096
2096
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
2097
2097
|
var l = function (actions, $completion) {
|
|
2098
|
-
return i.
|
|
2098
|
+
return i.d9i(actions, $completion);
|
|
2099
2099
|
};
|
|
2100
2100
|
l.$arity = 1;
|
|
2101
2101
|
return l;
|
|
2102
2102
|
}
|
|
2103
2103
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
2104
2104
|
CoroutineImpl.call(this, resultContinuation);
|
|
2105
|
-
this.
|
|
2106
|
-
this.
|
|
2105
|
+
this.n9i_1 = _this__u8e3s4;
|
|
2106
|
+
this.o9i_1 = fromEvent;
|
|
2107
2107
|
}
|
|
2108
2108
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
2109
2109
|
var suspendResult = this.g9_1;
|
|
@@ -2114,9 +2114,9 @@
|
|
|
2114
2114
|
case 0:
|
|
2115
2115
|
this.f9_1 = 2;
|
|
2116
2116
|
var tmp_0 = this;
|
|
2117
|
-
tmp_0.
|
|
2117
|
+
tmp_0.p9i_1 = this.n9i_1.m9h_1;
|
|
2118
2118
|
l$ret$1: do {
|
|
2119
|
-
var this_0 = this.
|
|
2119
|
+
var this_0 = this.n9i_1.l9h_1;
|
|
2120
2120
|
while (true) {
|
|
2121
2121
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2122
2122
|
var upd = cur + 1 | 0;
|
|
@@ -2127,7 +2127,7 @@
|
|
|
2127
2127
|
}
|
|
2128
2128
|
while (false);
|
|
2129
2129
|
this.e9_1 = 1;
|
|
2130
|
-
suspendResult = this.
|
|
2130
|
+
suspendResult = this.n9i_1.n9h_1.p18(this.o9i_1, this);
|
|
2131
2131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2132
2132
|
return suspendResult;
|
|
2133
2133
|
}
|
|
@@ -2151,7 +2151,7 @@
|
|
|
2151
2151
|
};
|
|
2152
2152
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2153
2153
|
CoroutineImpl.call(this, resultContinuation);
|
|
2154
|
-
this.
|
|
2154
|
+
this.y9i_1 = _this__u8e3s4;
|
|
2155
2155
|
}
|
|
2156
2156
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2157
2157
|
var suspendResult = this.g9_1;
|
|
@@ -2162,12 +2162,12 @@
|
|
|
2162
2162
|
case 0:
|
|
2163
2163
|
this.f9_1 = 5;
|
|
2164
2164
|
var tmp_0 = this;
|
|
2165
|
-
tmp_0.
|
|
2166
|
-
this.
|
|
2165
|
+
tmp_0.z9i_1 = this.y9i_1.m9h_1;
|
|
2166
|
+
this.a9j_1 = 0;
|
|
2167
2167
|
this.e9_1 = 1;
|
|
2168
2168
|
continue $sm;
|
|
2169
2169
|
case 1:
|
|
2170
|
-
if (!!(this.
|
|
2170
|
+
if (!!(this.y9i_1.l9h_1.kotlinx$atomicfu$value === 0)) {
|
|
2171
2171
|
this.e9_1 = 4;
|
|
2172
2172
|
continue $sm;
|
|
2173
2173
|
}
|
|
@@ -2180,9 +2180,9 @@
|
|
|
2180
2180
|
|
|
2181
2181
|
continue $sm;
|
|
2182
2182
|
case 2:
|
|
2183
|
-
this.
|
|
2184
|
-
if (this.
|
|
2185
|
-
this.
|
|
2183
|
+
this.a9j_1 = this.a9j_1 + 1 | 0;
|
|
2184
|
+
if (this.a9j_1 > 6) {
|
|
2185
|
+
this.y9i_1.j9h_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.y9i_1.l9h_1.kotlinx$atomicfu$value);
|
|
2186
2186
|
this.e9_1 = 4;
|
|
2187
2187
|
continue $sm;
|
|
2188
2188
|
} else {
|
|
@@ -2210,42 +2210,42 @@
|
|
|
2210
2210
|
while (true);
|
|
2211
2211
|
};
|
|
2212
2212
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2213
|
-
this.
|
|
2214
|
-
this.
|
|
2215
|
-
this.
|
|
2216
|
-
this.
|
|
2213
|
+
this.i9h_1 = serverReduxConfig;
|
|
2214
|
+
this.j9h_1 = logger;
|
|
2215
|
+
this.k9h_1 = idsProvider;
|
|
2216
|
+
this.l9h_1 = atomic$ref$1(0);
|
|
2217
2217
|
var tmp = this;
|
|
2218
2218
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2219
|
-
tmp.
|
|
2220
|
-
this.
|
|
2219
|
+
tmp.m9h_1 = get_atomicfu$reentrantLock();
|
|
2220
|
+
this.n9h_1 = MutableSharedFlow();
|
|
2221
2221
|
}
|
|
2222
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2222
|
+
protoOf(ToClientEventsObserverImpl).p9g = function (fromEvent, $completion) {
|
|
2223
2223
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2224
2224
|
tmp.g9_1 = Unit_instance;
|
|
2225
2225
|
tmp.h9_1 = null;
|
|
2226
2226
|
return tmp.m9();
|
|
2227
2227
|
};
|
|
2228
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2228
|
+
protoOf(ToClientEventsObserverImpl).n90 = function ($completion) {
|
|
2229
2229
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2230
2230
|
tmp.g9_1 = Unit_instance;
|
|
2231
2231
|
tmp.h9_1 = null;
|
|
2232
2232
|
return tmp.m9();
|
|
2233
2233
|
};
|
|
2234
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2235
|
-
if (!this.
|
|
2236
|
-
return this.
|
|
2234
|
+
protoOf(ToClientEventsObserverImpl).y99 = function () {
|
|
2235
|
+
if (!this.i9h_1.enabledCombinedEvents) {
|
|
2236
|
+
return this.n9h_1;
|
|
2237
2237
|
}
|
|
2238
|
-
var tmp = windowedByInterval(this.
|
|
2238
|
+
var tmp = windowedByInterval(this.n9h_1, toLong(this.i9h_1.combinedEventsPeriod));
|
|
2239
2239
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2240
2240
|
};
|
|
2241
2241
|
function UpdateServerConfigAction(serverConfig) {
|
|
2242
|
-
this.
|
|
2242
|
+
this.b9j_1 = serverConfig;
|
|
2243
2243
|
}
|
|
2244
2244
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2245
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2245
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.b9j_1.toString() + ')';
|
|
2246
2246
|
};
|
|
2247
2247
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2248
|
-
return this.
|
|
2248
|
+
return this.b9j_1.hashCode();
|
|
2249
2249
|
};
|
|
2250
2250
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2251
2251
|
if (this === other)
|
|
@@ -2253,20 +2253,20 @@
|
|
|
2253
2253
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2254
2254
|
return false;
|
|
2255
2255
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2256
|
-
if (!this.
|
|
2256
|
+
if (!this.b9j_1.equals(tmp0_other_with_cast.b9j_1))
|
|
2257
2257
|
return false;
|
|
2258
2258
|
return true;
|
|
2259
2259
|
};
|
|
2260
2260
|
function SpectatorsAction() {
|
|
2261
2261
|
}
|
|
2262
2262
|
function AddSpectatorsAction(spectators) {
|
|
2263
|
-
this.
|
|
2263
|
+
this.c9j_1 = spectators;
|
|
2264
2264
|
}
|
|
2265
2265
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2266
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2266
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.c9j_1) + ')';
|
|
2267
2267
|
};
|
|
2268
2268
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2269
|
-
return hashCode(this.
|
|
2269
|
+
return hashCode(this.c9j_1);
|
|
2270
2270
|
};
|
|
2271
2271
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2272
2272
|
if (this === other)
|
|
@@ -2274,18 +2274,18 @@
|
|
|
2274
2274
|
if (!(other instanceof AddSpectatorsAction))
|
|
2275
2275
|
return false;
|
|
2276
2276
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2277
|
-
if (!equals(this.
|
|
2277
|
+
if (!equals(this.c9j_1, tmp0_other_with_cast.c9j_1))
|
|
2278
2278
|
return false;
|
|
2279
2279
|
return true;
|
|
2280
2280
|
};
|
|
2281
2281
|
function RemoveSpectatorsAction(spectators) {
|
|
2282
|
-
this.
|
|
2282
|
+
this.d9j_1 = spectators;
|
|
2283
2283
|
}
|
|
2284
2284
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2285
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2285
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.d9j_1) + ')';
|
|
2286
2286
|
};
|
|
2287
2287
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2288
|
-
return hashCode(this.
|
|
2288
|
+
return hashCode(this.d9j_1);
|
|
2289
2289
|
};
|
|
2290
2290
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2291
2291
|
if (this === other)
|
|
@@ -2293,67 +2293,67 @@
|
|
|
2293
2293
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2294
2294
|
return false;
|
|
2295
2295
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2296
|
-
if (!equals(this.
|
|
2296
|
+
if (!equals(this.d9j_1, tmp0_other_with_cast.d9j_1))
|
|
2297
2297
|
return false;
|
|
2298
2298
|
return true;
|
|
2299
2299
|
};
|
|
2300
2300
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2301
2301
|
// Inline function 'kotlin.getValue' call
|
|
2302
|
-
var this_0 = $this.
|
|
2302
|
+
var this_0 = $this.j9j_1;
|
|
2303
2303
|
asyncProvider$factory_0();
|
|
2304
2304
|
return this_0.u();
|
|
2305
2305
|
}
|
|
2306
2306
|
function _get_logger__rkp4sl_0($this) {
|
|
2307
2307
|
// Inline function 'kotlin.getValue' call
|
|
2308
|
-
var this_0 = $this.
|
|
2308
|
+
var this_0 = $this.k9j_1;
|
|
2309
2309
|
logger$factory_2();
|
|
2310
2310
|
return this_0.u();
|
|
2311
2311
|
}
|
|
2312
2312
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2313
2313
|
// Inline function 'kotlin.getValue' call
|
|
2314
|
-
var this_0 = $this.
|
|
2314
|
+
var this_0 = $this.l9j_1;
|
|
2315
2315
|
playerConnectionInteractor$factory_2();
|
|
2316
2316
|
return this_0.u();
|
|
2317
2317
|
}
|
|
2318
2318
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2319
2319
|
// Inline function 'kotlin.getValue' call
|
|
2320
|
-
var this_0 = $this.
|
|
2320
|
+
var this_0 = $this.m9j_1;
|
|
2321
2321
|
lastCardInteractor$factory_0();
|
|
2322
2322
|
return this_0.u();
|
|
2323
2323
|
}
|
|
2324
2324
|
function _get_serverConfig__rk2g06($this) {
|
|
2325
2325
|
// Inline function 'kotlin.getValue' call
|
|
2326
|
-
var this_0 = $this.
|
|
2326
|
+
var this_0 = $this.n9j_1;
|
|
2327
2327
|
serverConfig$factory_0();
|
|
2328
2328
|
return this_0.u();
|
|
2329
2329
|
}
|
|
2330
2330
|
function _get_logicConfig__52ww9d($this) {
|
|
2331
2331
|
// Inline function 'kotlin.getValue' call
|
|
2332
|
-
var this_0 = $this.
|
|
2332
|
+
var this_0 = $this.o9j_1;
|
|
2333
2333
|
logicConfig$factory_0();
|
|
2334
2334
|
return this_0.u();
|
|
2335
2335
|
}
|
|
2336
2336
|
function _get_idsProvider__fnfajc($this) {
|
|
2337
2337
|
// Inline function 'kotlin.getValue' call
|
|
2338
|
-
var this_0 = $this.
|
|
2338
|
+
var this_0 = $this.p9j_1;
|
|
2339
2339
|
idsProvider$factory_0();
|
|
2340
2340
|
return this_0.u();
|
|
2341
2341
|
}
|
|
2342
2342
|
function _get_botConfig__cpaxzc($this) {
|
|
2343
2343
|
// Inline function 'kotlin.getValue' call
|
|
2344
|
-
var this_0 = $this.
|
|
2344
|
+
var this_0 = $this.q9j_1;
|
|
2345
2345
|
botConfig$factory_0();
|
|
2346
2346
|
return this_0.u();
|
|
2347
2347
|
}
|
|
2348
2348
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2349
2349
|
// Inline function 'kotlin.getValue' call
|
|
2350
|
-
var this_0 = $this.
|
|
2350
|
+
var this_0 = $this.r9j_1;
|
|
2351
2351
|
scenePositionProvider$factory_0();
|
|
2352
2352
|
return this_0.u();
|
|
2353
2353
|
}
|
|
2354
2354
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2355
2355
|
// Inline function 'kotlin.getValue' call
|
|
2356
|
-
var this_0 = $this.
|
|
2356
|
+
var this_0 = $this.s9j_1;
|
|
2357
2357
|
toClientEventsObserver$factory_2();
|
|
2358
2358
|
return this_0.u();
|
|
2359
2359
|
}
|
|
@@ -2366,77 +2366,77 @@
|
|
|
2366
2366
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2367
2367
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2368
2368
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2369
|
-
this.
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2373
|
-
this.
|
|
2369
|
+
this.e9j_1 = validationStoreContract;
|
|
2370
|
+
this.f9j_1 = timersStoreContract;
|
|
2371
|
+
this.g9j_1 = botGameStoreContract;
|
|
2372
|
+
this.h9j_1 = gameMechanicStoreContract;
|
|
2373
|
+
this.i9j_1 = fileLoggerStoreContract;
|
|
2374
2374
|
var tmp = this;
|
|
2375
2375
|
// Inline function 'org.kodein.di.instance' call
|
|
2376
2376
|
// Inline function 'org.kodein.type.generic' call
|
|
2377
2377
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2378
2378
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2379
|
-
tmp.
|
|
2379
|
+
tmp.j9j_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2380
2380
|
var tmp_1 = this;
|
|
2381
2381
|
// Inline function 'org.kodein.di.instance' call
|
|
2382
2382
|
// Inline function 'org.kodein.type.generic' call
|
|
2383
2383
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2384
2384
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2385
|
-
tmp_1.
|
|
2385
|
+
tmp_1.k9j_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2386
2386
|
var tmp_3 = this;
|
|
2387
2387
|
// Inline function 'org.kodein.di.instance' call
|
|
2388
2388
|
// Inline function 'org.kodein.type.generic' call
|
|
2389
2389
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2390
2390
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2391
|
-
tmp_3.
|
|
2391
|
+
tmp_3.l9j_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2392
2392
|
var tmp_5 = this;
|
|
2393
2393
|
// Inline function 'org.kodein.di.instance' call
|
|
2394
2394
|
// Inline function 'org.kodein.type.generic' call
|
|
2395
2395
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2396
2396
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2397
|
-
tmp_5.
|
|
2397
|
+
tmp_5.m9j_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2398
2398
|
var tmp_7 = this;
|
|
2399
2399
|
// Inline function 'org.kodein.di.instance' call
|
|
2400
2400
|
// Inline function 'org.kodein.type.generic' call
|
|
2401
2401
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2402
2402
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2403
|
-
tmp_7.
|
|
2403
|
+
tmp_7.n9j_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2404
2404
|
var tmp_9 = this;
|
|
2405
2405
|
// Inline function 'org.kodein.di.instance' call
|
|
2406
2406
|
// Inline function 'org.kodein.type.generic' call
|
|
2407
2407
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2408
2408
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2409
|
-
tmp_9.
|
|
2409
|
+
tmp_9.o9j_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2410
2410
|
var tmp_11 = this;
|
|
2411
2411
|
// Inline function 'org.kodein.di.instance' call
|
|
2412
2412
|
// Inline function 'org.kodein.type.generic' call
|
|
2413
2413
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2414
2414
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2415
|
-
tmp_11.
|
|
2415
|
+
tmp_11.p9j_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2416
2416
|
var tmp_13 = this;
|
|
2417
2417
|
// Inline function 'org.kodein.di.instance' call
|
|
2418
2418
|
// Inline function 'org.kodein.type.generic' call
|
|
2419
2419
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2420
2420
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2421
|
-
tmp_13.
|
|
2421
|
+
tmp_13.q9j_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2422
2422
|
var tmp_15 = this;
|
|
2423
2423
|
// Inline function 'org.kodein.di.instance' call
|
|
2424
2424
|
// Inline function 'org.kodein.type.generic' call
|
|
2425
2425
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2426
2426
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2427
|
-
tmp_15.
|
|
2427
|
+
tmp_15.r9j_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2428
2428
|
var tmp_17 = this;
|
|
2429
2429
|
// Inline function 'org.kodein.di.instance' call
|
|
2430
2430
|
// Inline function 'org.kodein.type.generic' call
|
|
2431
2431
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2432
2432
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2433
|
-
tmp_17.
|
|
2433
|
+
tmp_17.s9j_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2434
2434
|
}
|
|
2435
|
-
protoOf(ServerGameStoreContract).
|
|
2436
|
-
return plus(plus(plus(plus(plus(this.
|
|
2435
|
+
protoOf(ServerGameStoreContract).r8t = function () {
|
|
2436
|
+
return plus(plus(plus(plus(plus(this.e9j_1.r8t(), this.f9j_1.r8t()), this.g9j_1.r8t()), this.h9j_1.r8t()), this.i9j_1.r8t()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2437
2437
|
};
|
|
2438
|
-
protoOf(ServerGameStoreContract).
|
|
2439
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2438
|
+
protoOf(ServerGameStoreContract).s8t = function () {
|
|
2439
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.e9j_1.s8t(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.f9j_1.s8t()), this.g9j_1.s8t()), this.h9j_1.s8t()), this.i9j_1.s8t()), 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))).k8v(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2440
2440
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2441
2441
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2442
2442
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2566,7 +2566,7 @@
|
|
|
2566
2566
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2567
2567
|
next(action_0);
|
|
2568
2568
|
var state = store.state;
|
|
2569
|
-
if (!get_serverState_0(state).
|
|
2569
|
+
if (!get_serverState_0(state).v9f_1.w9f_1 && action_0.isGameFinished) {
|
|
2570
2570
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.e6m_1));
|
|
2571
2571
|
}
|
|
2572
2572
|
};
|
|
@@ -2579,7 +2579,7 @@
|
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
2581
2581
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2582
|
-
this.
|
|
2582
|
+
this.v9j_1 = this$0;
|
|
2583
2583
|
}
|
|
2584
2584
|
protoOf(_no_name_provided__qut3iv_0).j6f = function (action) {
|
|
2585
2585
|
return action instanceof MechanicAction;
|
|
@@ -2594,11 +2594,11 @@
|
|
|
2594
2594
|
var tmp;
|
|
2595
2595
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2596
2596
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2597
|
-
var this_0 = this.
|
|
2598
|
-
var tableId = action_0.
|
|
2599
|
-
var gameCreatorPlayerId = action_0.
|
|
2597
|
+
var this_0 = this.v9j_1;
|
|
2598
|
+
var tableId = action_0.i8q_1;
|
|
2599
|
+
var gameCreatorPlayerId = action_0.k8q_1;
|
|
2600
2600
|
// Inline function 'kotlin.collections.map' call
|
|
2601
|
-
var this_1 = action_0.
|
|
2601
|
+
var this_1 = action_0.l8q_1;
|
|
2602
2602
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2603
2603
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
2604
2604
|
var tmp0_iterator = this_1.j();
|
|
@@ -2639,7 +2639,7 @@
|
|
|
2639
2639
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2640
2640
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2641
2641
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2642
|
-
var tmp0_aid = this_0.
|
|
2642
|
+
var tmp0_aid = this_0.u9j_1.m6d();
|
|
2643
2643
|
// Inline function 'kotlin.collections.map' call
|
|
2644
2644
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2645
2645
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -2664,286 +2664,296 @@
|
|
|
2664
2664
|
} else {
|
|
2665
2665
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2666
2666
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2667
|
-
var this_2 = this.
|
|
2667
|
+
var this_2 = this.v9j_1;
|
|
2668
2668
|
var table = state.g6n();
|
|
2669
2669
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2670
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2670
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.u9j_1.m6d(), table.id, null);
|
|
2671
2671
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2672
2672
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2673
2673
|
} else {
|
|
2674
2674
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2675
2675
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2676
|
-
var this_3 = this.
|
|
2677
|
-
var tableId_0 = action_0.
|
|
2676
|
+
var this_3 = this.v9j_1;
|
|
2677
|
+
var tableId_0 = action_0.o8q_1.id;
|
|
2678
2678
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2679
|
-
|
|
2679
|
+
// Inline function 'kotlin.collections.map' call
|
|
2680
|
+
var this_4 = action_0.users;
|
|
2681
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2682
|
+
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
2683
|
+
var tmp0_iterator_4 = this_4.j();
|
|
2684
|
+
while (tmp0_iterator_4.k()) {
|
|
2685
|
+
var item_2 = tmp0_iterator_4.l();
|
|
2686
|
+
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2687
|
+
var tmp$ret$20 = to(item_2.f67_1, PlayerConnectionState_LIVE_getInstance());
|
|
2688
|
+
destination_4.e(tmp$ret$20);
|
|
2689
|
+
}
|
|
2680
2690
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2681
2691
|
// Inline function 'kotlin.collections.map' call
|
|
2682
2692
|
// Inline function 'kotlin.collections.filter' call
|
|
2683
2693
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2684
|
-
var
|
|
2685
|
-
var
|
|
2686
|
-
while (
|
|
2687
|
-
var element_1 =
|
|
2694
|
+
var destination_5 = ArrayList_init_$Create$_0();
|
|
2695
|
+
var tmp0_iterator_5 = destination_4.j();
|
|
2696
|
+
while (tmp0_iterator_5.k()) {
|
|
2697
|
+
var element_1 = tmp0_iterator_5.l();
|
|
2688
2698
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2689
2699
|
if (element_1.oe_1.isLive) {
|
|
2690
|
-
|
|
2700
|
+
destination_5.e(element_1);
|
|
2691
2701
|
}
|
|
2692
2702
|
}
|
|
2693
2703
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2694
|
-
var
|
|
2695
|
-
var
|
|
2696
|
-
while (
|
|
2697
|
-
var
|
|
2704
|
+
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_5, 10));
|
|
2705
|
+
var tmp0_iterator_6 = destination_5.j();
|
|
2706
|
+
while (tmp0_iterator_6.k()) {
|
|
2707
|
+
var item_3 = tmp0_iterator_6.l();
|
|
2698
2708
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2699
|
-
var tmp$ret$
|
|
2700
|
-
|
|
2709
|
+
var tmp$ret$26 = item_3.ne_1;
|
|
2710
|
+
destination_6.e(tmp$ret$26);
|
|
2701
2711
|
}
|
|
2702
2712
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2703
|
-
var
|
|
2713
|
+
var destination_7 = ArrayList_init_$Create$_0();
|
|
2704
2714
|
// Inline function 'kotlin.collections.forEach' call
|
|
2705
|
-
var
|
|
2706
|
-
while (
|
|
2707
|
-
var element_2 =
|
|
2715
|
+
var tmp0_iterator_7 = destination_6.j();
|
|
2716
|
+
while (tmp0_iterator_7.k()) {
|
|
2717
|
+
var element_2 = tmp0_iterator_7.l();
|
|
2708
2718
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2709
2719
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2710
2720
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2711
|
-
var tmp0_aid_0 = this_3.
|
|
2721
|
+
var tmp0_aid_0 = this_3.u9j_1.m6d();
|
|
2712
2722
|
// Inline function 'kotlin.collections.map' call
|
|
2713
2723
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2714
|
-
var
|
|
2715
|
-
var
|
|
2716
|
-
while (
|
|
2717
|
-
var
|
|
2724
|
+
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
2725
|
+
var tmp0_iterator_8 = destination_4.j();
|
|
2726
|
+
while (tmp0_iterator_8.k()) {
|
|
2727
|
+
var item_4 = tmp0_iterator_8.l();
|
|
2718
2728
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2719
|
-
var tmp$ret$
|
|
2720
|
-
|
|
2729
|
+
var tmp$ret$29 = item_4.ne_1;
|
|
2730
|
+
destination_8.e(tmp$ret$29);
|
|
2721
2731
|
}
|
|
2722
|
-
var sendToPlayer_1 = UserActionPayload_init_$Create$(tmp0_aid_0, tableId_0, gameCreatorPlayerId_0, element_2,
|
|
2732
|
+
var sendToPlayer_1 = UserActionPayload_init_$Create$(tmp0_aid_0, tableId_0, gameCreatorPlayerId_0, element_2, destination_8);
|
|
2723
2733
|
var tmp0_safe_receiver_0 = mapToClient_15(action_0, sendToPlayer_1);
|
|
2724
2734
|
if (tmp0_safe_receiver_0 == null)
|
|
2725
2735
|
null;
|
|
2726
2736
|
else {
|
|
2727
2737
|
// Inline function 'kotlin.let' call
|
|
2728
2738
|
// Inline function 'kotlin.contracts.contract' call
|
|
2729
|
-
|
|
2739
|
+
destination_7.e(tmp0_safe_receiver_0);
|
|
2730
2740
|
}
|
|
2731
2741
|
}
|
|
2732
|
-
tmp =
|
|
2742
|
+
tmp = destination_7;
|
|
2733
2743
|
} else {
|
|
2734
2744
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2735
2745
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2736
|
-
var
|
|
2746
|
+
var this_5 = this.v9j_1;
|
|
2737
2747
|
var table_0 = state.g6n();
|
|
2738
2748
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2739
|
-
var sendToPlayer_2 = new RoomActionPayload(
|
|
2740
|
-
var tmp$ret$
|
|
2741
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2749
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.u9j_1.m6d(), table_0.id, null);
|
|
2750
|
+
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2751
|
+
tmp = listOfNotNull(tmp$ret$38);
|
|
2742
2752
|
} else {
|
|
2743
2753
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2744
2754
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2745
|
-
var
|
|
2755
|
+
var this_6 = this.v9j_1;
|
|
2746
2756
|
var table_1 = state.g6n();
|
|
2747
2757
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2748
|
-
var sendToPlayer_3 = new RoomActionPayload(
|
|
2749
|
-
var tmp$ret$
|
|
2750
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2758
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.u9j_1.m6d(), table_1.id, null);
|
|
2759
|
+
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2760
|
+
tmp = listOfNotNull(tmp$ret$40);
|
|
2751
2761
|
} else {
|
|
2752
2762
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2753
2763
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2754
|
-
var
|
|
2764
|
+
var this_7 = this.v9j_1;
|
|
2755
2765
|
var table_2 = state.g6n();
|
|
2756
2766
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2757
|
-
var sendToPlayer_4 = new RoomActionPayload(
|
|
2758
|
-
var tmp$ret$
|
|
2759
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2767
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.u9j_1.m6d(), table_2.id, null);
|
|
2768
|
+
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2769
|
+
tmp = listOfNotNull(tmp$ret$42);
|
|
2760
2770
|
} else {
|
|
2761
2771
|
if (action_0 instanceof ErrorAction) {
|
|
2762
2772
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2763
|
-
var
|
|
2773
|
+
var this_8 = this.v9j_1;
|
|
2764
2774
|
var table_3 = state.g6n();
|
|
2765
2775
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2766
|
-
var sendToPlayer_5 = new RoomActionPayload(
|
|
2767
|
-
var tmp$ret$
|
|
2768
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2776
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.u9j_1.m6d(), table_3.id, null);
|
|
2777
|
+
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2778
|
+
tmp = listOfNotNull(tmp$ret$44);
|
|
2769
2779
|
} else {
|
|
2770
2780
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2771
2781
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2772
|
-
var
|
|
2782
|
+
var this_9 = this.v9j_1;
|
|
2773
2783
|
var table_4 = state.g6n();
|
|
2774
2784
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2775
2785
|
var tableId_1 = table_4.id;
|
|
2776
2786
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
2777
|
-
var
|
|
2787
|
+
var players = table_4.playersConnections;
|
|
2778
2788
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2779
2789
|
// Inline function 'kotlin.collections.map' call
|
|
2780
2790
|
// Inline function 'kotlin.collections.filter' call
|
|
2781
2791
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2782
|
-
var
|
|
2783
|
-
var
|
|
2784
|
-
while (
|
|
2785
|
-
var element_3 =
|
|
2792
|
+
var destination_9 = ArrayList_init_$Create$_0();
|
|
2793
|
+
var tmp0_iterator_9 = players.j();
|
|
2794
|
+
while (tmp0_iterator_9.k()) {
|
|
2795
|
+
var element_3 = tmp0_iterator_9.l();
|
|
2786
2796
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2787
2797
|
if (element_3.oe_1.isLive) {
|
|
2788
|
-
|
|
2798
|
+
destination_9.e(element_3);
|
|
2789
2799
|
}
|
|
2790
2800
|
}
|
|
2791
2801
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2792
|
-
var
|
|
2793
|
-
var
|
|
2794
|
-
while (
|
|
2795
|
-
var
|
|
2802
|
+
var destination_10 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_9, 10));
|
|
2803
|
+
var tmp0_iterator_10 = destination_9.j();
|
|
2804
|
+
while (tmp0_iterator_10.k()) {
|
|
2805
|
+
var item_5 = tmp0_iterator_10.l();
|
|
2796
2806
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2797
|
-
var tmp$ret$
|
|
2798
|
-
|
|
2807
|
+
var tmp$ret$49 = item_5.ne_1;
|
|
2808
|
+
destination_10.e(tmp$ret$49);
|
|
2799
2809
|
}
|
|
2800
2810
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2801
|
-
var
|
|
2811
|
+
var destination_11 = ArrayList_init_$Create$_0();
|
|
2802
2812
|
// Inline function 'kotlin.collections.forEach' call
|
|
2803
|
-
var
|
|
2804
|
-
while (
|
|
2805
|
-
var element_4 =
|
|
2813
|
+
var tmp0_iterator_11 = destination_10.j();
|
|
2814
|
+
while (tmp0_iterator_11.k()) {
|
|
2815
|
+
var element_4 = tmp0_iterator_11.l();
|
|
2806
2816
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2807
2817
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2808
2818
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2809
|
-
var tmp0_aid_1 =
|
|
2819
|
+
var tmp0_aid_1 = this_9.u9j_1.m6d();
|
|
2810
2820
|
// Inline function 'kotlin.collections.map' call
|
|
2811
2821
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2812
|
-
var
|
|
2813
|
-
var
|
|
2814
|
-
while (
|
|
2815
|
-
var
|
|
2822
|
+
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
2823
|
+
var tmp0_iterator_12 = players.j();
|
|
2824
|
+
while (tmp0_iterator_12.k()) {
|
|
2825
|
+
var item_6 = tmp0_iterator_12.l();
|
|
2816
2826
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2817
|
-
var tmp$ret$
|
|
2818
|
-
|
|
2827
|
+
var tmp$ret$52 = item_6.ne_1;
|
|
2828
|
+
destination_12.e(tmp$ret$52);
|
|
2819
2829
|
}
|
|
2820
|
-
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tableId_1, gameCreatorPlayerId_1, element_4,
|
|
2830
|
+
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tableId_1, gameCreatorPlayerId_1, element_4, destination_12);
|
|
2821
2831
|
var tmp0_safe_receiver_1 = mapToClient_10(action_0, sendToPlayer_6);
|
|
2822
2832
|
if (tmp0_safe_receiver_1 == null)
|
|
2823
2833
|
null;
|
|
2824
2834
|
else {
|
|
2825
2835
|
// Inline function 'kotlin.let' call
|
|
2826
2836
|
// Inline function 'kotlin.contracts.contract' call
|
|
2827
|
-
|
|
2837
|
+
destination_11.e(tmp0_safe_receiver_1);
|
|
2828
2838
|
}
|
|
2829
2839
|
}
|
|
2830
|
-
tmp =
|
|
2840
|
+
tmp = destination_11;
|
|
2831
2841
|
} else {
|
|
2832
2842
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2833
2843
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2834
|
-
var
|
|
2844
|
+
var this_10 = this.v9j_1;
|
|
2835
2845
|
var table_5 = state.g6n();
|
|
2836
2846
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2837
2847
|
var tableId_2 = table_5.id;
|
|
2838
2848
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
2839
|
-
var
|
|
2849
|
+
var players_0 = table_5.playersConnections;
|
|
2840
2850
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2841
2851
|
// Inline function 'kotlin.collections.map' call
|
|
2842
2852
|
// Inline function 'kotlin.collections.filter' call
|
|
2843
2853
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2844
|
-
var
|
|
2845
|
-
var
|
|
2846
|
-
while (
|
|
2847
|
-
var element_5 =
|
|
2854
|
+
var destination_13 = ArrayList_init_$Create$_0();
|
|
2855
|
+
var tmp0_iterator_13 = players_0.j();
|
|
2856
|
+
while (tmp0_iterator_13.k()) {
|
|
2857
|
+
var element_5 = tmp0_iterator_13.l();
|
|
2848
2858
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2849
2859
|
if (element_5.oe_1.isLive) {
|
|
2850
|
-
|
|
2860
|
+
destination_13.e(element_5);
|
|
2851
2861
|
}
|
|
2852
2862
|
}
|
|
2853
2863
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2854
|
-
var
|
|
2855
|
-
var
|
|
2856
|
-
while (
|
|
2857
|
-
var
|
|
2864
|
+
var destination_14 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_13, 10));
|
|
2865
|
+
var tmp0_iterator_14 = destination_13.j();
|
|
2866
|
+
while (tmp0_iterator_14.k()) {
|
|
2867
|
+
var item_7 = tmp0_iterator_14.l();
|
|
2858
2868
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2859
|
-
var tmp$ret$
|
|
2860
|
-
|
|
2869
|
+
var tmp$ret$65 = item_7.ne_1;
|
|
2870
|
+
destination_14.e(tmp$ret$65);
|
|
2861
2871
|
}
|
|
2862
2872
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2863
|
-
var
|
|
2873
|
+
var destination_15 = ArrayList_init_$Create$_0();
|
|
2864
2874
|
// Inline function 'kotlin.collections.forEach' call
|
|
2865
|
-
var
|
|
2866
|
-
while (
|
|
2867
|
-
var element_6 =
|
|
2875
|
+
var tmp0_iterator_15 = destination_14.j();
|
|
2876
|
+
while (tmp0_iterator_15.k()) {
|
|
2877
|
+
var element_6 = tmp0_iterator_15.l();
|
|
2868
2878
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2869
2879
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2870
2880
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2871
|
-
var tmp0_aid_2 =
|
|
2881
|
+
var tmp0_aid_2 = this_10.u9j_1.m6d();
|
|
2872
2882
|
// Inline function 'kotlin.collections.map' call
|
|
2873
2883
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2874
|
-
var
|
|
2875
|
-
var
|
|
2876
|
-
while (
|
|
2877
|
-
var
|
|
2884
|
+
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
2885
|
+
var tmp0_iterator_16 = players_0.j();
|
|
2886
|
+
while (tmp0_iterator_16.k()) {
|
|
2887
|
+
var item_8 = tmp0_iterator_16.l();
|
|
2878
2888
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2879
|
-
var tmp$ret$
|
|
2880
|
-
|
|
2889
|
+
var tmp$ret$68 = item_8.ne_1;
|
|
2890
|
+
destination_16.e(tmp$ret$68);
|
|
2881
2891
|
}
|
|
2882
|
-
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tableId_2, gameCreatorPlayerId_2, element_6,
|
|
2892
|
+
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tableId_2, gameCreatorPlayerId_2, element_6, destination_16);
|
|
2883
2893
|
var tmp0_safe_receiver_2 = mapToClient_9(action_0, sendToPlayer_7);
|
|
2884
2894
|
if (tmp0_safe_receiver_2 == null)
|
|
2885
2895
|
null;
|
|
2886
2896
|
else {
|
|
2887
2897
|
// Inline function 'kotlin.let' call
|
|
2888
2898
|
// Inline function 'kotlin.contracts.contract' call
|
|
2889
|
-
|
|
2899
|
+
destination_15.e(tmp0_safe_receiver_2);
|
|
2890
2900
|
}
|
|
2891
2901
|
}
|
|
2892
|
-
tmp =
|
|
2902
|
+
tmp = destination_15;
|
|
2893
2903
|
} else {
|
|
2894
2904
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2895
2905
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2896
|
-
var
|
|
2906
|
+
var this_11 = this.v9j_1;
|
|
2897
2907
|
var table_6 = state.g6n();
|
|
2898
2908
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2899
2909
|
var tableId_3 = table_6.id;
|
|
2900
2910
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
2901
|
-
var
|
|
2911
|
+
var players_1 = table_6.playersConnections;
|
|
2902
2912
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2903
2913
|
// Inline function 'kotlin.collections.map' call
|
|
2904
2914
|
// Inline function 'kotlin.collections.filter' call
|
|
2905
2915
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2906
|
-
var
|
|
2907
|
-
var
|
|
2908
|
-
while (
|
|
2909
|
-
var element_7 =
|
|
2916
|
+
var destination_17 = ArrayList_init_$Create$_0();
|
|
2917
|
+
var tmp0_iterator_17 = players_1.j();
|
|
2918
|
+
while (tmp0_iterator_17.k()) {
|
|
2919
|
+
var element_7 = tmp0_iterator_17.l();
|
|
2910
2920
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2911
2921
|
if (element_7.oe_1.isLive) {
|
|
2912
|
-
|
|
2922
|
+
destination_17.e(element_7);
|
|
2913
2923
|
}
|
|
2914
2924
|
}
|
|
2915
2925
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2916
|
-
var
|
|
2917
|
-
var
|
|
2918
|
-
while (
|
|
2919
|
-
var
|
|
2926
|
+
var destination_18 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_17, 10));
|
|
2927
|
+
var tmp0_iterator_18 = destination_17.j();
|
|
2928
|
+
while (tmp0_iterator_18.k()) {
|
|
2929
|
+
var item_9 = tmp0_iterator_18.l();
|
|
2920
2930
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2921
|
-
var tmp$ret$
|
|
2922
|
-
|
|
2931
|
+
var tmp$ret$81 = item_9.ne_1;
|
|
2932
|
+
destination_18.e(tmp$ret$81);
|
|
2923
2933
|
}
|
|
2924
2934
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2925
|
-
var
|
|
2935
|
+
var destination_19 = ArrayList_init_$Create$_0();
|
|
2926
2936
|
// Inline function 'kotlin.collections.forEach' call
|
|
2927
|
-
var
|
|
2928
|
-
while (
|
|
2929
|
-
var element_8 =
|
|
2937
|
+
var tmp0_iterator_19 = destination_18.j();
|
|
2938
|
+
while (tmp0_iterator_19.k()) {
|
|
2939
|
+
var element_8 = tmp0_iterator_19.l();
|
|
2930
2940
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2931
2941
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2932
2942
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2933
|
-
var tmp0_aid_3 =
|
|
2943
|
+
var tmp0_aid_3 = this_11.u9j_1.m6d();
|
|
2934
2944
|
// Inline function 'kotlin.collections.map' call
|
|
2935
2945
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2936
|
-
var
|
|
2937
|
-
var
|
|
2938
|
-
while (
|
|
2939
|
-
var
|
|
2946
|
+
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
2947
|
+
var tmp0_iterator_20 = players_1.j();
|
|
2948
|
+
while (tmp0_iterator_20.k()) {
|
|
2949
|
+
var item_10 = tmp0_iterator_20.l();
|
|
2940
2950
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2941
|
-
var tmp$ret$
|
|
2942
|
-
|
|
2951
|
+
var tmp$ret$84 = item_10.ne_1;
|
|
2952
|
+
destination_20.e(tmp$ret$84);
|
|
2943
2953
|
}
|
|
2944
|
-
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8,
|
|
2954
|
+
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
2945
2955
|
var tmp_0;
|
|
2946
|
-
if (this.
|
|
2956
|
+
if (this.v9j_1.t9j_1.supportBackwardActions && getPlayer(state.g6n().players, sendToPlayer_8.u79_1).a6t_1.e6t_1) {
|
|
2947
2957
|
tmp_0 = null;
|
|
2948
2958
|
} else {
|
|
2949
2959
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2954,86 +2964,86 @@
|
|
|
2954
2964
|
else {
|
|
2955
2965
|
// Inline function 'kotlin.let' call
|
|
2956
2966
|
// Inline function 'kotlin.contracts.contract' call
|
|
2957
|
-
|
|
2967
|
+
destination_19.e(tmp0_safe_receiver_3);
|
|
2958
2968
|
}
|
|
2959
2969
|
}
|
|
2960
|
-
tmp =
|
|
2970
|
+
tmp = destination_19;
|
|
2961
2971
|
} else {
|
|
2962
2972
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2963
2973
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2964
|
-
var
|
|
2974
|
+
var this_12 = this.v9j_1;
|
|
2965
2975
|
var table_7 = state.g6n();
|
|
2966
|
-
var exceptPlayerId = this.
|
|
2976
|
+
var exceptPlayerId = this.v9j_1.t9j_1.supportBackwardActions ? action_0.i8r_1 : null;
|
|
2967
2977
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2968
|
-
var sendToPlayer_9 = new RoomActionPayload(
|
|
2969
|
-
var tmp$ret$
|
|
2970
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2978
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.u9j_1.m6d(), table_7.id, exceptPlayerId);
|
|
2979
|
+
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2980
|
+
tmp = listOfNotNull(tmp$ret$94);
|
|
2971
2981
|
} else {
|
|
2972
2982
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2973
2983
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2974
|
-
var
|
|
2984
|
+
var this_13 = this.v9j_1;
|
|
2975
2985
|
var table_8 = state.g6n();
|
|
2976
|
-
var exceptPlayerId_0 = this.
|
|
2986
|
+
var exceptPlayerId_0 = this.v9j_1.t9j_1.supportBackwardActions ? action_0.g8m_1 : null;
|
|
2977
2987
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2978
|
-
var sendToPlayer_10 = new RoomActionPayload(
|
|
2979
|
-
var tmp$ret$
|
|
2980
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2988
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.u9j_1.m6d(), table_8.id, exceptPlayerId_0);
|
|
2989
|
+
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2990
|
+
tmp = listOfNotNull(tmp$ret$96);
|
|
2981
2991
|
} else {
|
|
2982
2992
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2983
2993
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2984
|
-
var
|
|
2994
|
+
var this_14 = this.v9j_1;
|
|
2985
2995
|
var table_9 = state.g6n();
|
|
2986
2996
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2987
|
-
var sendToPlayer_11 = new RoomActionPayload(
|
|
2988
|
-
var tmp$ret$
|
|
2989
|
-
tmp = listOfNotNull(tmp$ret$
|
|
2997
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.u9j_1.m6d(), table_9.id, null);
|
|
2998
|
+
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2999
|
+
tmp = listOfNotNull(tmp$ret$98);
|
|
2990
3000
|
} else {
|
|
2991
3001
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2992
3002
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2993
|
-
var
|
|
3003
|
+
var this_15 = this.v9j_1;
|
|
2994
3004
|
var table_10 = state.g6n();
|
|
2995
|
-
var exceptPlayerId_1 = this.
|
|
3005
|
+
var exceptPlayerId_1 = this.v9j_1.t9j_1.supportBackwardActions ? action_0.o8r_1 : null;
|
|
2996
3006
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2997
|
-
var sendToPlayer_12 = new RoomActionPayload(
|
|
2998
|
-
var tmp$ret$
|
|
2999
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3007
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.u9j_1.m6d(), table_10.id, exceptPlayerId_1);
|
|
3008
|
+
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
3009
|
+
tmp = listOfNotNull(tmp$ret$100);
|
|
3000
3010
|
} else {
|
|
3001
3011
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
3002
3012
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3003
|
-
var
|
|
3013
|
+
var this_16 = this.v9j_1;
|
|
3004
3014
|
var table_11 = state.g6n();
|
|
3005
|
-
var exceptPlayerId_2 = this.
|
|
3015
|
+
var exceptPlayerId_2 = this.v9j_1.t9j_1.supportBackwardActions ? action_0.l8m_1 : null;
|
|
3006
3016
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3007
|
-
var sendToPlayer_13 = new RoomActionPayload(
|
|
3008
|
-
var tmp$ret$
|
|
3009
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3017
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.u9j_1.m6d(), table_11.id, exceptPlayerId_2);
|
|
3018
|
+
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
3019
|
+
tmp = listOfNotNull(tmp$ret$102);
|
|
3010
3020
|
} else {
|
|
3011
3021
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
3012
3022
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3013
|
-
var
|
|
3023
|
+
var this_17 = this.v9j_1;
|
|
3014
3024
|
var table_12 = state.g6n();
|
|
3015
3025
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3016
|
-
var sendToPlayer_14 = new RoomActionPayload(
|
|
3017
|
-
var tmp$ret$
|
|
3018
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3026
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.u9j_1.m6d(), table_12.id, null);
|
|
3027
|
+
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
3028
|
+
tmp = listOfNotNull(tmp$ret$104);
|
|
3019
3029
|
} else {
|
|
3020
3030
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
3021
3031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3022
|
-
var
|
|
3032
|
+
var this_18 = this.v9j_1;
|
|
3023
3033
|
var table_13 = state.g6n();
|
|
3024
3034
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3025
|
-
var sendToPlayer_15 = new RoomActionPayload(
|
|
3026
|
-
var tmp$ret$
|
|
3027
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3035
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.u9j_1.m6d(), table_13.id, null);
|
|
3036
|
+
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
3037
|
+
tmp = listOfNotNull(tmp$ret$106);
|
|
3028
3038
|
} else {
|
|
3029
3039
|
if (action_0 instanceof MessageMechanicAction) {
|
|
3030
|
-
var message = action_0.
|
|
3040
|
+
var message = action_0.s8r_1;
|
|
3031
3041
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3032
|
-
var
|
|
3042
|
+
var this_19 = this.v9j_1;
|
|
3033
3043
|
var table_14 = state.g6n();
|
|
3034
3044
|
var tmp_1;
|
|
3035
3045
|
var tmp_2;
|
|
3036
|
-
if (this.
|
|
3046
|
+
if (this.v9j_1.t9j_1.supportBackwardActions) {
|
|
3037
3047
|
tmp_2 = isInterface(message, UserMessage);
|
|
3038
3048
|
} else {
|
|
3039
3049
|
tmp_2 = false;
|
|
@@ -3045,19 +3055,19 @@
|
|
|
3045
3055
|
}
|
|
3046
3056
|
var exceptPlayerId_3 = tmp_1;
|
|
3047
3057
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3048
|
-
var sendToPlayer_16 = new RoomActionPayload(
|
|
3049
|
-
var tmp$ret$
|
|
3050
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3058
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.u9j_1.m6d(), table_14.id, exceptPlayerId_3);
|
|
3059
|
+
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
3060
|
+
tmp = listOfNotNull(tmp$ret$108);
|
|
3051
3061
|
} else {
|
|
3052
3062
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
3053
3063
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3054
|
-
var
|
|
3064
|
+
var this_20 = this.v9j_1;
|
|
3055
3065
|
var table_15 = state.g6n();
|
|
3056
3066
|
var exceptPlayerId_4 = action_0.playerId;
|
|
3057
3067
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3058
|
-
var sendToPlayer_17 = new RoomActionPayload(
|
|
3059
|
-
var tmp$ret$
|
|
3060
|
-
tmp = listOfNotNull(tmp$ret$
|
|
3068
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.u9j_1.m6d(), table_15.id, exceptPlayerId_4);
|
|
3069
|
+
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
3070
|
+
tmp = listOfNotNull(tmp$ret$110);
|
|
3061
3071
|
} else {
|
|
3062
3072
|
noWhenBranchMatchedException();
|
|
3063
3073
|
}
|
|
@@ -3081,9 +3091,9 @@
|
|
|
3081
3091
|
}
|
|
3082
3092
|
var actionsToSent = tmp;
|
|
3083
3093
|
// Inline function 'kotlin.collections.forEach' call
|
|
3084
|
-
var
|
|
3085
|
-
while (
|
|
3086
|
-
var element_9 =
|
|
3094
|
+
var tmp0_iterator_21 = actionsToSent.j();
|
|
3095
|
+
while (tmp0_iterator_21.k()) {
|
|
3096
|
+
var element_9 = tmp0_iterator_21.l();
|
|
3087
3097
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3088
3098
|
store.dispatch(element_9);
|
|
3089
3099
|
}
|
|
@@ -3093,10 +3103,10 @@
|
|
|
3093
3103
|
return this.a6h(store, next, action);
|
|
3094
3104
|
};
|
|
3095
3105
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
3096
|
-
this.
|
|
3097
|
-
this.
|
|
3106
|
+
this.t9j_1 = logicConfig;
|
|
3107
|
+
this.u9j_1 = idsProvider;
|
|
3098
3108
|
}
|
|
3099
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
3109
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).k8v = function () {
|
|
3100
3110
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
3101
3111
|
return new _no_name_provided__qut3iv_0(this);
|
|
3102
3112
|
};
|
|
@@ -3105,8 +3115,8 @@
|
|
|
3105
3115
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
3106
3116
|
}
|
|
3107
3117
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
3108
|
-
this.
|
|
3109
|
-
this.
|
|
3118
|
+
this.e9k_1 = $provider;
|
|
3119
|
+
this.f9k_1 = $action;
|
|
3110
3120
|
CoroutineImpl.call(this, resultContinuation);
|
|
3111
3121
|
}
|
|
3112
3122
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -3127,7 +3137,7 @@
|
|
|
3127
3137
|
case 0:
|
|
3128
3138
|
this.f9_1 = 2;
|
|
3129
3139
|
this.e9_1 = 1;
|
|
3130
|
-
suspendResult = this.
|
|
3140
|
+
suspendResult = this.e9k_1.p9g(this.f9k_1, this);
|
|
3131
3141
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3132
3142
|
return suspendResult;
|
|
3133
3143
|
}
|
|
@@ -3150,8 +3160,8 @@
|
|
|
3150
3160
|
while (true);
|
|
3151
3161
|
};
|
|
3152
3162
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3153
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3154
|
-
i.
|
|
3163
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.e9k_1, this.f9k_1, completion);
|
|
3164
|
+
i.g9k_1 = $this$launchDefault;
|
|
3155
3165
|
return i;
|
|
3156
3166
|
};
|
|
3157
3167
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3163,8 +3173,8 @@
|
|
|
3163
3173
|
return l;
|
|
3164
3174
|
}
|
|
3165
3175
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3166
|
-
this.
|
|
3167
|
-
this.
|
|
3176
|
+
this.h9k_1 = $asyncProvider;
|
|
3177
|
+
this.i9k_1 = $provider;
|
|
3168
3178
|
}
|
|
3169
3179
|
protoOf(_no_name_provided__qut3iv_1).j6f = function (action) {
|
|
3170
3180
|
return action instanceof ToClientAction;
|
|
@@ -3172,7 +3182,7 @@
|
|
|
3172
3182
|
protoOf(_no_name_provided__qut3iv_1).a6h = function (store, next, action) {
|
|
3173
3183
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3174
3184
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3175
|
-
this.
|
|
3185
|
+
this.h9k_1.j6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.i9k_1, action_0, null));
|
|
3176
3186
|
next(action_0);
|
|
3177
3187
|
};
|
|
3178
3188
|
protoOf(_no_name_provided__qut3iv_1).i6f = function (store, next, action) {
|
|
@@ -3187,13 +3197,13 @@
|
|
|
3187
3197
|
protoOf(_no_name_provided__qut3iv_2).j6f = function (action) {
|
|
3188
3198
|
return action instanceof UpdateServerConfigAction;
|
|
3189
3199
|
};
|
|
3190
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3200
|
+
protoOf(_no_name_provided__qut3iv_2).f92 = function (state, action) {
|
|
3191
3201
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3192
3202
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3193
|
-
return state.
|
|
3203
|
+
return state.j8p(VOID, get_serverState_0(state).j9k(action_0.b9j_1));
|
|
3194
3204
|
};
|
|
3195
3205
|
protoOf(_no_name_provided__qut3iv_2).b6h = function (state, action) {
|
|
3196
|
-
return this.
|
|
3206
|
+
return this.f92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3197
3207
|
};
|
|
3198
3208
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3199
3209
|
return function (it) {
|
|
@@ -3206,7 +3216,7 @@
|
|
|
3206
3216
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3207
3217
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3208
3218
|
Companion_getInstance();
|
|
3209
|
-
var this_0 = $action.
|
|
3219
|
+
var this_0 = $action.h8q_1.timeoutTimeMillis;
|
|
3210
3220
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3211
3221
|
tmp_0 = tmp_1.g68(tmp_2, tmp$ret$0);
|
|
3212
3222
|
}
|
|
@@ -3215,47 +3225,47 @@
|
|
|
3215
3225
|
}
|
|
3216
3226
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3217
3227
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3218
|
-
this.
|
|
3228
|
+
this.m9k_1 = logger;
|
|
3219
3229
|
}
|
|
3220
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3230
|
+
protoOf(ServerMechanicLifecycleReducer).r93 = function (state, action) {
|
|
3221
3231
|
var serverState = get_serverStateOrNull(state.f6m_1);
|
|
3222
3232
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3223
|
-
var tmp0_$this = this.
|
|
3224
|
-
var tmp1_tableId = action.
|
|
3225
|
-
var tmp2_gameId = action.
|
|
3226
|
-
var tmp3_version = action.
|
|
3227
|
-
var tmp4_config = action.
|
|
3228
|
-
var tmp5_users = action.
|
|
3233
|
+
var tmp0_$this = this.s93_1;
|
|
3234
|
+
var tmp1_tableId = action.i8q_1;
|
|
3235
|
+
var tmp2_gameId = action.i8q_1;
|
|
3236
|
+
var tmp3_version = action.j8q_1;
|
|
3237
|
+
var tmp4_config = action.h8q_1;
|
|
3238
|
+
var tmp5_users = action.l8q_1;
|
|
3229
3239
|
var tmp6_spectators = action.spectators;
|
|
3230
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3231
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3240
|
+
var tmp7_gameCreatorPlayerId = action.k8q_1;
|
|
3241
|
+
var tmp9_tableOrNull = tmp0_$this.x94(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3232
3242
|
var tmp;
|
|
3233
3243
|
if (serverState == null) {
|
|
3234
|
-
this.
|
|
3235
|
-
tmp = Companion_instance_9.
|
|
3244
|
+
this.m9k_1.w(VOID, 'ServerPayload is not onStart');
|
|
3245
|
+
tmp = Companion_instance_9.l9g();
|
|
3236
3246
|
} else {
|
|
3237
3247
|
tmp = serverState;
|
|
3238
3248
|
}
|
|
3239
3249
|
var tmp10_payload = tmp;
|
|
3240
|
-
return state.
|
|
3250
|
+
return state.j8p(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3241
3251
|
};
|
|
3242
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3243
|
-
this.
|
|
3252
|
+
protoOf(ServerMechanicLifecycleReducer).q93 = function (state, action) {
|
|
3253
|
+
this.t93_1.r5n(action.previousGameId);
|
|
3244
3254
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3245
|
-
var tmp1_tableOrNull = this.
|
|
3246
|
-
return state.
|
|
3255
|
+
var tmp1_tableOrNull = this.s93_1.y94(state.g6n(), action.gameId);
|
|
3256
|
+
return state.j8p(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3247
3257
|
};
|
|
3248
3258
|
function spectatorsReducer(logger) {
|
|
3249
3259
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3250
3260
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3251
3261
|
}
|
|
3252
3262
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3253
|
-
this.
|
|
3263
|
+
this.n9k_1 = $logger;
|
|
3254
3264
|
}
|
|
3255
3265
|
protoOf(_no_name_provided__qut3iv_3).j6f = function (action) {
|
|
3256
3266
|
return isInterface(action, SpectatorsAction);
|
|
3257
3267
|
};
|
|
3258
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3268
|
+
protoOf(_no_name_provided__qut3iv_3).f92 = function (state, action) {
|
|
3259
3269
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3260
3270
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3261
3271
|
var table = state.g6n();
|
|
@@ -3263,7 +3273,7 @@
|
|
|
3263
3273
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3264
3274
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3265
3275
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3266
|
-
var this_0 = action_0.
|
|
3276
|
+
var this_0 = action_0.c9j_1;
|
|
3267
3277
|
var destination = ArrayList_init_$Create$_0();
|
|
3268
3278
|
// Inline function 'kotlin.collections.forEach' call
|
|
3269
3279
|
var tmp0_iterator = this_0.j();
|
|
@@ -3285,10 +3295,10 @@
|
|
|
3285
3295
|
var tmp_0;
|
|
3286
3296
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3287
3297
|
if (!sameSpectators.p()) {
|
|
3288
|
-
this.
|
|
3298
|
+
this.n9k_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3289
3299
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3290
3300
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3291
|
-
var this_1 = action_0.
|
|
3301
|
+
var this_1 = action_0.c9j_1;
|
|
3292
3302
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
3293
3303
|
var tmp0_iterator_0 = this_1.j();
|
|
3294
3304
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3324,7 +3334,7 @@
|
|
|
3324
3334
|
}
|
|
3325
3335
|
tmp_0 = destination_0;
|
|
3326
3336
|
} else {
|
|
3327
|
-
tmp_0 = action_0.
|
|
3337
|
+
tmp_0 = action_0.c9j_1;
|
|
3328
3338
|
}
|
|
3329
3339
|
var this_2 = tmp_0;
|
|
3330
3340
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3337,12 +3347,12 @@
|
|
|
3337
3347
|
destination_1.e(tmp$ret$10);
|
|
3338
3348
|
}
|
|
3339
3349
|
var spectatorsToAdd = toSet(destination_1);
|
|
3340
|
-
tmp = state.
|
|
3350
|
+
tmp = state.j8p(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3341
3351
|
} else {
|
|
3342
3352
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3343
3353
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3344
3354
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3345
|
-
var this_3 = action_0.
|
|
3355
|
+
var this_3 = action_0.d9j_1;
|
|
3346
3356
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
3347
3357
|
// Inline function 'kotlin.collections.forEach' call
|
|
3348
3358
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3363,10 +3373,10 @@
|
|
|
3363
3373
|
var tmp_2;
|
|
3364
3374
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3365
3375
|
if (!sameSpectators_0.p()) {
|
|
3366
|
-
this.
|
|
3376
|
+
this.n9k_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3367
3377
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3368
3378
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3369
|
-
var this_4 = action_0.
|
|
3379
|
+
var this_4 = action_0.d9j_1;
|
|
3370
3380
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
3371
3381
|
var tmp0_iterator_4 = this_4.j();
|
|
3372
3382
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3402,7 +3412,7 @@
|
|
|
3402
3412
|
}
|
|
3403
3413
|
tmp_2 = destination_3;
|
|
3404
3414
|
} else {
|
|
3405
|
-
tmp_2 = action_0.
|
|
3415
|
+
tmp_2 = action_0.d9j_1;
|
|
3406
3416
|
}
|
|
3407
3417
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3408
3418
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3441,7 +3451,7 @@
|
|
|
3441
3451
|
destination_4.e(element_5);
|
|
3442
3452
|
}
|
|
3443
3453
|
}
|
|
3444
|
-
tmp = state.
|
|
3454
|
+
tmp = state.j8p(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3445
3455
|
} else {
|
|
3446
3456
|
noWhenBranchMatchedException();
|
|
3447
3457
|
}
|
|
@@ -3449,32 +3459,32 @@
|
|
|
3449
3459
|
return tmp;
|
|
3450
3460
|
};
|
|
3451
3461
|
protoOf(_no_name_provided__qut3iv_3).b6h = function (state, action) {
|
|
3452
|
-
return this.
|
|
3462
|
+
return this.f92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3453
3463
|
};
|
|
3454
3464
|
function Companion_1() {
|
|
3455
3465
|
}
|
|
3456
|
-
protoOf(Companion_1).
|
|
3466
|
+
protoOf(Companion_1).o9k = function (config) {
|
|
3457
3467
|
return new ServerState(config);
|
|
3458
3468
|
};
|
|
3459
|
-
protoOf(Companion_1).
|
|
3469
|
+
protoOf(Companion_1).l9g = function (config, $super) {
|
|
3460
3470
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3461
|
-
return $super === VOID ? this.
|
|
3471
|
+
return $super === VOID ? this.o9k(config) : $super.o9k.call(this, config);
|
|
3462
3472
|
};
|
|
3463
3473
|
var Companion_instance_9;
|
|
3464
3474
|
function Companion_getInstance_2() {
|
|
3465
3475
|
return Companion_instance_9;
|
|
3466
3476
|
}
|
|
3467
3477
|
function ServerState(config) {
|
|
3468
|
-
this.
|
|
3478
|
+
this.v9f_1 = config;
|
|
3469
3479
|
}
|
|
3470
|
-
protoOf(ServerState).
|
|
3480
|
+
protoOf(ServerState).j9k = function (config) {
|
|
3471
3481
|
return new ServerState(config);
|
|
3472
3482
|
};
|
|
3473
3483
|
protoOf(ServerState).toString = function () {
|
|
3474
|
-
return 'ServerState(config=' + this.
|
|
3484
|
+
return 'ServerState(config=' + this.v9f_1.toString() + ')';
|
|
3475
3485
|
};
|
|
3476
3486
|
protoOf(ServerState).hashCode = function () {
|
|
3477
|
-
return this.
|
|
3487
|
+
return this.v9f_1.hashCode();
|
|
3478
3488
|
};
|
|
3479
3489
|
protoOf(ServerState).equals = function (other) {
|
|
3480
3490
|
if (this === other)
|
|
@@ -3482,7 +3492,7 @@
|
|
|
3482
3492
|
if (!(other instanceof ServerState))
|
|
3483
3493
|
return false;
|
|
3484
3494
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3485
|
-
if (!this.
|
|
3495
|
+
if (!this.v9f_1.equals(tmp0_other_with_cast.v9f_1))
|
|
3486
3496
|
return false;
|
|
3487
3497
|
return true;
|
|
3488
3498
|
};
|
|
@@ -3520,13 +3530,13 @@
|
|
|
3520
3530
|
}
|
|
3521
3531
|
function _get_controllerLogger__nbd727($this) {
|
|
3522
3532
|
// Inline function 'kotlin.getValue' call
|
|
3523
|
-
var this_0 = $this.
|
|
3533
|
+
var this_0 = $this.x9k_1;
|
|
3524
3534
|
controllerLogger$factory();
|
|
3525
3535
|
return this_0.u();
|
|
3526
3536
|
}
|
|
3527
3537
|
function _get_di__ndbzja($this) {
|
|
3528
3538
|
// Inline function 'kotlin.getValue' call
|
|
3529
|
-
var this_0 = $this.
|
|
3539
|
+
var this_0 = $this.y9k_1;
|
|
3530
3540
|
di$factory();
|
|
3531
3541
|
return this_0.u();
|
|
3532
3542
|
}
|
|
@@ -3537,13 +3547,13 @@
|
|
|
3537
3547
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3538
3548
|
return function () {
|
|
3539
3549
|
var tmp;
|
|
3540
|
-
if (this$0.
|
|
3550
|
+
if (this$0.v9k_1 == null) {
|
|
3541
3551
|
tmp = null;
|
|
3542
3552
|
} else {
|
|
3543
3553
|
// Inline function 'kotlin.let' call
|
|
3544
3554
|
// Inline function 'kotlin.contracts.contract' call
|
|
3545
3555
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3546
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3556
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.v9k_1)]));
|
|
3547
3557
|
}
|
|
3548
3558
|
var tmp1_elvis_lhs = tmp;
|
|
3549
3559
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3571,7 +3581,7 @@
|
|
|
3571
3581
|
tmp_0.h5y(tmp$ret$3);
|
|
3572
3582
|
$this$DI.l5u(jsonModule());
|
|
3573
3583
|
$this$DI.l5u(serverHelpersModule());
|
|
3574
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3584
|
+
$this$DI.l5u(randomOrgModule(this$0.w9k_1));
|
|
3575
3585
|
return Unit_instance;
|
|
3576
3586
|
};
|
|
3577
3587
|
}
|
|
@@ -3582,16 +3592,16 @@
|
|
|
3582
3592
|
};
|
|
3583
3593
|
}
|
|
3584
3594
|
function _no_name_provided__qut3iv_4($item) {
|
|
3585
|
-
this.
|
|
3595
|
+
this.e9l_1 = $item;
|
|
3586
3596
|
}
|
|
3587
3597
|
protoOf(_no_name_provided__qut3iv_4).j6f = function (action) {
|
|
3588
3598
|
return isInterface(action, Action);
|
|
3589
3599
|
};
|
|
3590
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3591
|
-
return this.
|
|
3600
|
+
protoOf(_no_name_provided__qut3iv_4).f92 = function (state, action) {
|
|
3601
|
+
return this.e9l_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3592
3602
|
};
|
|
3593
3603
|
protoOf(_no_name_provided__qut3iv_4).b6h = function (state, action) {
|
|
3594
|
-
return this.
|
|
3604
|
+
return this.f92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3595
3605
|
};
|
|
3596
3606
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3597
3607
|
return function ($this$singleton) {
|
|
@@ -3648,7 +3658,7 @@
|
|
|
3648
3658
|
}
|
|
3649
3659
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
3650
3660
|
return function (it) {
|
|
3651
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
3661
|
+
var tmp0_elvis_lhs = Companion_instance_4.a97(it);
|
|
3652
3662
|
var tmp;
|
|
3653
3663
|
if (tmp0_elvis_lhs == null) {
|
|
3654
3664
|
var tmp1_safe_receiver = $gameServer.p67().e6m_1;
|
|
@@ -3661,7 +3671,7 @@
|
|
|
3661
3671
|
}
|
|
3662
3672
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
3663
3673
|
return function (it) {
|
|
3664
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
3674
|
+
var tmp0_elvis_lhs = Companion_instance_5.l95(it);
|
|
3665
3675
|
var tmp;
|
|
3666
3676
|
if (tmp0_elvis_lhs == null) {
|
|
3667
3677
|
var tmp1_safe_receiver = $gameServer.p67().e6m_1;
|
|
@@ -3683,7 +3693,7 @@
|
|
|
3683
3693
|
// Inline function 'kotlin.contracts.contract' call
|
|
3684
3694
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
3685
3695
|
}
|
|
3686
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3696
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.w9k_1));
|
|
3687
3697
|
$this$DI.l5u(coreModule($coreConfig));
|
|
3688
3698
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3689
3699
|
return Unit_instance;
|
|
@@ -3692,76 +3702,76 @@
|
|
|
3692
3702
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3693
3703
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3694
3704
|
production = production === VOID ? true : production;
|
|
3695
|
-
this.
|
|
3696
|
-
this.
|
|
3705
|
+
this.v9k_1 = loggerCallback;
|
|
3706
|
+
this.w9k_1 = randomOrgConfig;
|
|
3697
3707
|
AppEnvironment_getInstance().m6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3698
3708
|
var tmp = this;
|
|
3699
|
-
tmp.
|
|
3709
|
+
tmp.x9k_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3700
3710
|
var tmp_0 = this;
|
|
3701
|
-
tmp_0.
|
|
3711
|
+
tmp_0.y9k_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3702
3712
|
var tmp_1 = this;
|
|
3703
3713
|
// Inline function 'org.kodein.di.instance' call
|
|
3704
3714
|
var this_0 = _get_di__ndbzja(this);
|
|
3705
3715
|
// Inline function 'org.kodein.type.generic' call
|
|
3706
3716
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3707
3717
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3708
|
-
tmp_1.
|
|
3718
|
+
tmp_1.z9k_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
3709
3719
|
var tmp_3 = this;
|
|
3710
3720
|
// Inline function 'org.kodein.di.instance' call
|
|
3711
3721
|
var this_1 = _get_di__ndbzja(this);
|
|
3712
3722
|
// Inline function 'org.kodein.type.generic' call
|
|
3713
3723
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3714
3724
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3715
|
-
tmp_3.
|
|
3725
|
+
tmp_3.a9l_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
3716
3726
|
var tmp_5 = this;
|
|
3717
3727
|
// Inline function 'org.kodein.di.instance' call
|
|
3718
3728
|
var this_2 = _get_di__ndbzja(this);
|
|
3719
3729
|
// Inline function 'org.kodein.type.generic' call
|
|
3720
3730
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3721
3731
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3722
|
-
tmp_5.
|
|
3732
|
+
tmp_5.b9l_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
3723
3733
|
var tmp_7 = this;
|
|
3724
3734
|
// Inline function 'org.kodein.di.instance' call
|
|
3725
3735
|
var this_3 = _get_di__ndbzja(this);
|
|
3726
3736
|
// Inline function 'org.kodein.type.generic' call
|
|
3727
3737
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3728
3738
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3729
|
-
tmp_7.
|
|
3739
|
+
tmp_7.c9l_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
3730
3740
|
var tmp_9 = this;
|
|
3731
3741
|
// Inline function 'org.kodein.di.instance' call
|
|
3732
3742
|
var this_4 = _get_di__ndbzja(this);
|
|
3733
3743
|
// Inline function 'org.kodein.type.generic' call
|
|
3734
3744
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3735
3745
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3736
|
-
tmp_9.
|
|
3746
|
+
tmp_9.d9l_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
3737
3747
|
}
|
|
3738
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3748
|
+
protoOf(GameServerEngineControllerImpl).p9k = function () {
|
|
3739
3749
|
// Inline function 'kotlin.getValue' call
|
|
3740
|
-
var this_0 = this.
|
|
3750
|
+
var this_0 = this.z9k_1;
|
|
3741
3751
|
parser$factory_0();
|
|
3742
3752
|
return this_0.u();
|
|
3743
3753
|
};
|
|
3744
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3754
|
+
protoOf(GameServerEngineControllerImpl).r9k = function () {
|
|
3745
3755
|
// Inline function 'kotlin.getValue' call
|
|
3746
|
-
var this_0 = this.
|
|
3756
|
+
var this_0 = this.a9l_1;
|
|
3747
3757
|
helper$factory_0();
|
|
3748
3758
|
return this_0.u();
|
|
3749
3759
|
};
|
|
3750
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3760
|
+
protoOf(GameServerEngineControllerImpl).s9k = function () {
|
|
3751
3761
|
// Inline function 'kotlin.getValue' call
|
|
3752
|
-
var this_0 = this.
|
|
3762
|
+
var this_0 = this.b9l_1;
|
|
3753
3763
|
resources$factory_0();
|
|
3754
3764
|
return this_0.u();
|
|
3755
3765
|
};
|
|
3756
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3766
|
+
protoOf(GameServerEngineControllerImpl).q9k = function () {
|
|
3757
3767
|
// Inline function 'kotlin.getValue' call
|
|
3758
|
-
var this_0 = this.
|
|
3768
|
+
var this_0 = this.c9l_1;
|
|
3759
3769
|
test$factory_0();
|
|
3760
3770
|
return this_0.u();
|
|
3761
3771
|
};
|
|
3762
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3772
|
+
protoOf(GameServerEngineControllerImpl).t9k = function () {
|
|
3763
3773
|
// Inline function 'kotlin.getValue' call
|
|
3764
|
-
var this_0 = this.
|
|
3774
|
+
var this_0 = this.d9l_1;
|
|
3765
3775
|
randomPoolProvider$factory_0();
|
|
3766
3776
|
return this_0.u();
|
|
3767
3777
|
};
|
|
@@ -3771,7 +3781,7 @@
|
|
|
3771
3781
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3772
3782
|
return this.createGameEngineWithLogic();
|
|
3773
3783
|
};
|
|
3774
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3784
|
+
protoOf(GameServerEngineControllerImpl).u9k = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3775
3785
|
var combinedLogger = Companion_instance_6.qm();
|
|
3776
3786
|
var tmp;
|
|
3777
3787
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3781,8 +3791,8 @@
|
|
|
3781
3791
|
}
|
|
3782
3792
|
var fileLoggerOutput = tmp;
|
|
3783
3793
|
var tmp_0;
|
|
3784
|
-
if (!(this.
|
|
3785
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3794
|
+
if (!(this.v9k_1 == null)) {
|
|
3795
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.v9k_1));
|
|
3786
3796
|
} else {
|
|
3787
3797
|
tmp_0 = null;
|
|
3788
3798
|
}
|
|
@@ -3825,12 +3835,12 @@
|
|
|
3825
3835
|
var gameServer = tmp_1.v5v(tmp$ret$7, null);
|
|
3826
3836
|
if (!(fileLoggerOutput == null)) {
|
|
3827
3837
|
var tmp_3 = fileLoggerOutput;
|
|
3828
|
-
tmp_3.
|
|
3838
|
+
tmp_3.p96_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
3829
3839
|
combinedLogger.sm(fileLoggerOutput);
|
|
3830
3840
|
}
|
|
3831
3841
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
3832
3842
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
3833
|
-
tmp_4.
|
|
3843
|
+
tmp_4.n95_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
3834
3844
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
3835
3845
|
}
|
|
3836
3846
|
return gameServer;
|
|
@@ -3899,13 +3909,13 @@
|
|
|
3899
3909
|
}
|
|
3900
3910
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3901
3911
|
// Inline function 'kotlin.getValue' call
|
|
3902
|
-
var this_0 = $this.
|
|
3912
|
+
var this_0 = $this.h9l_1;
|
|
3903
3913
|
playerAnswerInteractor$factory_0();
|
|
3904
3914
|
return this_0.u();
|
|
3905
3915
|
}
|
|
3906
3916
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3907
3917
|
return function ($this$singleton) {
|
|
3908
|
-
return this$0.
|
|
3918
|
+
return this$0.f9l_1;
|
|
3909
3919
|
};
|
|
3910
3920
|
}
|
|
3911
3921
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3934,20 +3944,20 @@
|
|
|
3934
3944
|
return emptyMap();
|
|
3935
3945
|
}
|
|
3936
3946
|
function TestHelperImpl(logger) {
|
|
3937
|
-
this.
|
|
3947
|
+
this.f9l_1 = logger;
|
|
3938
3948
|
var tmp = this;
|
|
3939
3949
|
var tmp_0 = Companion_instance_3;
|
|
3940
|
-
tmp.
|
|
3950
|
+
tmp.g9l_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
3941
3951
|
var tmp_1 = this;
|
|
3942
3952
|
// Inline function 'org.kodein.di.instance' call
|
|
3943
|
-
var this_0 = this.
|
|
3953
|
+
var this_0 = this.g9l_1;
|
|
3944
3954
|
// Inline function 'org.kodein.type.generic' call
|
|
3945
3955
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3946
3956
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3947
|
-
tmp_1.
|
|
3957
|
+
tmp_1.h9l_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
3948
3958
|
}
|
|
3949
3959
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3950
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3960
|
+
return _get_playerAnswerInteractor__msggz1(this).k8f(playerId, table, botConfig);
|
|
3951
3961
|
};
|
|
3952
3962
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
3953
3963
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -3955,7 +3965,7 @@
|
|
|
3955
3965
|
var tmp$ret$0;
|
|
3956
3966
|
$l$block_0: {
|
|
3957
3967
|
// Inline function 'kotlin.collections.any' call
|
|
3958
|
-
var this_0 = mechanicAction.
|
|
3968
|
+
var this_0 = mechanicAction.x8s();
|
|
3959
3969
|
var tmp;
|
|
3960
3970
|
if (isInterface(this_0, Collection)) {
|
|
3961
3971
|
tmp = this_0.p();
|
|
@@ -3988,7 +3998,7 @@
|
|
|
3988
3998
|
var tmp$ret$0;
|
|
3989
3999
|
$l$block_0: {
|
|
3990
4000
|
// Inline function 'kotlin.collections.any' call
|
|
3991
|
-
var this_0 = action.
|
|
4001
|
+
var this_0 = action.x8s();
|
|
3992
4002
|
var tmp;
|
|
3993
4003
|
if (isInterface(this_0, Collection)) {
|
|
3994
4004
|
tmp = this_0.p();
|
|
@@ -4091,19 +4101,19 @@
|
|
|
4091
4101
|
});
|
|
4092
4102
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4093
4103
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4094
|
-
return this.
|
|
4104
|
+
return this.p9k();
|
|
4095
4105
|
});
|
|
4096
4106
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4097
|
-
return this.
|
|
4107
|
+
return this.r9k();
|
|
4098
4108
|
});
|
|
4099
4109
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4100
|
-
return this.
|
|
4110
|
+
return this.s9k();
|
|
4101
4111
|
});
|
|
4102
4112
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4103
|
-
return this.
|
|
4113
|
+
return this.q9k();
|
|
4104
4114
|
});
|
|
4105
4115
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
4106
|
-
return this.
|
|
4116
|
+
return this.t9k();
|
|
4107
4117
|
});
|
|
4108
4118
|
//endregion
|
|
4109
4119
|
//region block: init
|