raspberry_games_server_game_logic 1.8.266 → 1.8.268
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +866 -819
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +9712 -9787
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +6 -5
- package/Logic_Debertz-game_server.js +622 -576
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -279,6 +279,7 @@
|
|
|
279
279
|
initMetadataForLambda(GameServer$playerLeft$slambda, CoroutineImpl, VOID, [2]);
|
|
280
280
|
initMetadataForLambda(GameServer$roomOnCreate$slambda, CoroutineImpl, VOID, [2]);
|
|
281
281
|
initMetadataForLambda(GameServer$roomOnContinueFromRound$slambda, CoroutineImpl, VOID, [2]);
|
|
282
|
+
initMetadataForLambda(GameServer$roomOnContinueFromRound$slambda_1, CoroutineImpl, VOID, [2]);
|
|
282
283
|
initMetadataForLambda(GameServer$addSpectatorsToRoom$slambda, CoroutineImpl, VOID, [2]);
|
|
283
284
|
initMetadataForLambda(GameServer$removeSpectatorsFromRoom$slambda, CoroutineImpl, VOID, [2]);
|
|
284
285
|
initMetadataForLambda(GameServer$roomRefreshPlayerState$slambda, CoroutineImpl, VOID, [2]);
|
|
@@ -295,15 +296,15 @@
|
|
|
295
296
|
tmp = spectators;
|
|
296
297
|
}
|
|
297
298
|
spectators = tmp;
|
|
298
|
-
return this.
|
|
299
|
+
return this.k9g(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
299
300
|
}
|
|
300
301
|
function roomOnDelete(newRid, $super) {
|
|
301
302
|
newRid = newRid === VOID ? null : newRid;
|
|
302
|
-
return this.
|
|
303
|
+
return this.l9g(newRid);
|
|
303
304
|
}
|
|
304
305
|
function shutdown(reason, roomId, $super) {
|
|
305
306
|
roomId = roomId === VOID ? null : roomId;
|
|
306
|
-
return this.
|
|
307
|
+
return this.m9g(reason, roomId);
|
|
307
308
|
}
|
|
308
309
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
309
310
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -353,7 +354,7 @@
|
|
|
353
354
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
354
355
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
355
356
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
356
|
-
return this.
|
|
357
|
+
return this.s9k(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
357
358
|
}
|
|
358
359
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
359
360
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -362,17 +363,17 @@
|
|
|
362
363
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
363
364
|
//endregion
|
|
364
365
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
365
|
-
this.
|
|
366
|
+
this.j98_1 = $subscriber;
|
|
366
367
|
CoroutineImpl.call(this, resultContinuation);
|
|
367
368
|
}
|
|
368
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
369
|
-
var tmp = this.
|
|
369
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).l98 = function (it, $completion) {
|
|
370
|
+
var tmp = this.m98(it, $completion);
|
|
370
371
|
tmp.g9_1 = Unit_instance;
|
|
371
372
|
tmp.h9_1 = null;
|
|
372
373
|
return tmp.m9();
|
|
373
374
|
};
|
|
374
375
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
375
|
-
return this.
|
|
376
|
+
return this.l98(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
376
377
|
};
|
|
377
378
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
378
379
|
var suspendResult = this.g9_1;
|
|
@@ -381,7 +382,7 @@
|
|
|
381
382
|
var tmp = this.e9_1;
|
|
382
383
|
if (tmp === 0) {
|
|
383
384
|
this.f9_1 = 1;
|
|
384
|
-
this.
|
|
385
|
+
this.j98_1(this.k98_1);
|
|
385
386
|
return Unit_instance;
|
|
386
387
|
} else if (tmp === 1) {
|
|
387
388
|
throw this.h9_1;
|
|
@@ -392,31 +393,31 @@
|
|
|
392
393
|
}
|
|
393
394
|
while (true);
|
|
394
395
|
};
|
|
395
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
396
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
397
|
-
i.
|
|
396
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m98 = function (it, completion) {
|
|
397
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.j98_1, completion);
|
|
398
|
+
i.k98_1 = it;
|
|
398
399
|
return i;
|
|
399
400
|
};
|
|
400
401
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
401
402
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
402
403
|
var l = function (it, $completion) {
|
|
403
|
-
return i.
|
|
404
|
+
return i.l98(it, $completion);
|
|
404
405
|
};
|
|
405
406
|
l.$arity = 1;
|
|
406
407
|
return l;
|
|
407
408
|
}
|
|
408
409
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
409
|
-
this.
|
|
410
|
+
this.v98_1 = $subscriber;
|
|
410
411
|
CoroutineImpl.call(this, resultContinuation);
|
|
411
412
|
}
|
|
412
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
413
|
-
var tmp = this.
|
|
413
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).x98 = function (it, $completion) {
|
|
414
|
+
var tmp = this.y98(it, $completion);
|
|
414
415
|
tmp.g9_1 = Unit_instance;
|
|
415
416
|
tmp.h9_1 = null;
|
|
416
417
|
return tmp.m9();
|
|
417
418
|
};
|
|
418
419
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
419
|
-
return this.
|
|
420
|
+
return this.x98(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
420
421
|
};
|
|
421
422
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
422
423
|
var suspendResult = this.g9_1;
|
|
@@ -425,7 +426,7 @@
|
|
|
425
426
|
var tmp = this.e9_1;
|
|
426
427
|
if (tmp === 0) {
|
|
427
428
|
this.f9_1 = 1;
|
|
428
|
-
this.
|
|
429
|
+
this.v98_1(this.w98_1);
|
|
429
430
|
return Unit_instance;
|
|
430
431
|
} else if (tmp === 1) {
|
|
431
432
|
throw this.h9_1;
|
|
@@ -436,70 +437,70 @@
|
|
|
436
437
|
}
|
|
437
438
|
while (true);
|
|
438
439
|
};
|
|
439
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
440
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
441
|
-
i.
|
|
440
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).y98 = function (it, completion) {
|
|
441
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.v98_1, completion);
|
|
442
|
+
i.w98_1 = it;
|
|
442
443
|
return i;
|
|
443
444
|
};
|
|
444
445
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
445
446
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
446
447
|
var l = function (it, $completion) {
|
|
447
|
-
return i.
|
|
448
|
+
return i.x98(it, $completion);
|
|
448
449
|
};
|
|
449
450
|
l.$arity = 1;
|
|
450
451
|
return l;
|
|
451
452
|
}
|
|
452
453
|
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($it) {
|
|
453
|
-
this.
|
|
454
|
+
this.z98_1 = $it;
|
|
454
455
|
}
|
|
455
456
|
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).q66 = function () {
|
|
456
|
-
return this.
|
|
457
|
+
return this.z98_1;
|
|
457
458
|
};
|
|
458
459
|
function _get_logger__rkp4sl($this) {
|
|
459
460
|
// Inline function 'kotlin.getValue' call
|
|
460
|
-
var this_0 = $this.
|
|
461
|
+
var this_0 = $this.c99_1;
|
|
461
462
|
logger$factory_0();
|
|
462
463
|
return this_0.u();
|
|
463
464
|
}
|
|
464
465
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
465
466
|
// Inline function 'kotlin.getValue' call
|
|
466
|
-
var this_0 = $this.
|
|
467
|
+
var this_0 = $this.d99_1;
|
|
467
468
|
toClientEventsObserver$factory_0();
|
|
468
469
|
return this_0.u();
|
|
469
470
|
}
|
|
470
471
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
471
472
|
// Inline function 'kotlin.getValue' call
|
|
472
|
-
var this_0 = $this.
|
|
473
|
+
var this_0 = $this.e99_1;
|
|
473
474
|
playerConnectionInteractor$factory_0();
|
|
474
475
|
return this_0.u();
|
|
475
476
|
}
|
|
476
477
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
477
478
|
// Inline function 'kotlin.getValue' call
|
|
478
|
-
var this_0 = $this.
|
|
479
|
+
var this_0 = $this.f99_1;
|
|
479
480
|
teamsLogicProvider$factory_0();
|
|
480
481
|
return this_0.u();
|
|
481
482
|
}
|
|
482
483
|
function _get_random__h29cgo($this) {
|
|
483
484
|
// Inline function 'kotlin.getValue' call
|
|
484
|
-
var this_0 = $this.
|
|
485
|
+
var this_0 = $this.g99_1;
|
|
485
486
|
random$factory();
|
|
486
487
|
return this_0.u();
|
|
487
488
|
}
|
|
488
489
|
function Companion() {
|
|
489
|
-
this.
|
|
490
|
+
this.i99_1 = 'GameEngine_API';
|
|
490
491
|
}
|
|
491
492
|
var Companion_instance_7;
|
|
492
493
|
function Companion_getInstance_0() {
|
|
493
494
|
return Companion_instance_7;
|
|
494
495
|
}
|
|
495
496
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
496
|
-
this.
|
|
497
|
+
this.j99_1 = function_0;
|
|
497
498
|
}
|
|
498
499
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
499
|
-
return this.
|
|
500
|
+
return this.j99_1(value, $completion);
|
|
500
501
|
};
|
|
501
502
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
502
|
-
return this.
|
|
503
|
+
return this.j99_1;
|
|
503
504
|
};
|
|
504
505
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
505
506
|
var tmp;
|
|
@@ -520,13 +521,13 @@
|
|
|
520
521
|
return hashCode(this.o3());
|
|
521
522
|
};
|
|
522
523
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
523
|
-
this.
|
|
524
|
+
this.k99_1 = function_0;
|
|
524
525
|
}
|
|
525
526
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
526
|
-
return this.
|
|
527
|
+
return this.k99_1(value, $completion);
|
|
527
528
|
};
|
|
528
529
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
529
|
-
return this.
|
|
530
|
+
return this.k99_1;
|
|
530
531
|
};
|
|
531
532
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
532
533
|
var tmp;
|
|
@@ -552,8 +553,8 @@
|
|
|
552
553
|
};
|
|
553
554
|
}
|
|
554
555
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
556
|
+
this.t99_1 = this$0;
|
|
557
|
+
this.u99_1 = $subscriber;
|
|
557
558
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
559
|
}
|
|
559
560
|
protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -574,8 +575,8 @@
|
|
|
574
575
|
case 0:
|
|
575
576
|
this.f9_1 = 2;
|
|
576
577
|
this.e9_1 = 1;
|
|
577
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
578
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
578
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.t99_1).w99();
|
|
579
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.u99_1, null);
|
|
579
580
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
580
581
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
581
582
|
return suspendResult;
|
|
@@ -599,8 +600,8 @@
|
|
|
599
600
|
while (true);
|
|
600
601
|
};
|
|
601
602
|
protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
|
|
602
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
603
|
-
i.
|
|
603
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.t99_1, this.u99_1, completion);
|
|
604
|
+
i.v99_1 = $this$launchDefault;
|
|
604
605
|
return i;
|
|
605
606
|
};
|
|
606
607
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -612,8 +613,8 @@
|
|
|
612
613
|
return l;
|
|
613
614
|
}
|
|
614
615
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
616
|
+
this.f9a_1 = this$0;
|
|
617
|
+
this.g9a_1 = $subscriber;
|
|
617
618
|
CoroutineImpl.call(this, resultContinuation);
|
|
618
619
|
}
|
|
619
620
|
protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -634,8 +635,8 @@
|
|
|
634
635
|
case 0:
|
|
635
636
|
this.f9_1 = 2;
|
|
636
637
|
this.e9_1 = 1;
|
|
637
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
638
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
638
|
+
var tmp_0 = distinctUntilChanged(this.f9a_1.d6m());
|
|
639
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.g9a_1, null);
|
|
639
640
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
640
641
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
641
642
|
return suspendResult;
|
|
@@ -659,8 +660,8 @@
|
|
|
659
660
|
while (true);
|
|
660
661
|
};
|
|
661
662
|
protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
|
|
662
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
663
|
-
i.
|
|
663
|
+
var i = new GameServer$subscribeWith$slambda(this.f9a_1, this.g9a_1, completion);
|
|
664
|
+
i.h9a_1 = $this$launchDefault;
|
|
664
665
|
return i;
|
|
665
666
|
};
|
|
666
667
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -672,18 +673,18 @@
|
|
|
672
673
|
return l;
|
|
673
674
|
}
|
|
674
675
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
675
|
-
this.
|
|
676
|
+
this.q9a_1 = $action;
|
|
676
677
|
CoroutineImpl.call(this, resultContinuation);
|
|
677
678
|
}
|
|
678
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
679
|
-
var tmp = this.
|
|
679
|
+
protoOf(GameServer$fromClientEvent$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
680
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
680
681
|
tmp.g9_1 = Unit_instance;
|
|
681
682
|
tmp.h9_1 = null;
|
|
682
683
|
return tmp.m9();
|
|
683
684
|
};
|
|
684
685
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
685
686
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
686
|
-
return this.
|
|
687
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
687
688
|
};
|
|
688
689
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
689
690
|
var suspendResult = this.g9_1;
|
|
@@ -692,11 +693,11 @@
|
|
|
692
693
|
var tmp = this.e9_1;
|
|
693
694
|
if (tmp === 0) {
|
|
694
695
|
this.f9_1 = 1;
|
|
695
|
-
if (this.
|
|
696
|
-
if (!get_isCreated(this.
|
|
696
|
+
if (this.q9a_1 instanceof PlayerReadyFromClientAction)
|
|
697
|
+
if (!get_isCreated(this.s9a_1.state)) {
|
|
697
698
|
return Unit_instance;
|
|
698
699
|
}
|
|
699
|
-
this.
|
|
700
|
+
this.s9a_1.dispatch(this.q9a_1);
|
|
700
701
|
return Unit_instance;
|
|
701
702
|
} else if (tmp === 1) {
|
|
702
703
|
throw this.h9_1;
|
|
@@ -707,33 +708,33 @@
|
|
|
707
708
|
}
|
|
708
709
|
while (true);
|
|
709
710
|
};
|
|
710
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
711
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
712
|
-
i.
|
|
713
|
-
i.
|
|
711
|
+
protoOf(GameServer$fromClientEvent$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
712
|
+
var i = new GameServer$fromClientEvent$slambda(this.q9a_1, completion);
|
|
713
|
+
i.r9a_1 = $this$dispatchAsync;
|
|
714
|
+
i.s9a_1 = store;
|
|
714
715
|
return i;
|
|
715
716
|
};
|
|
716
717
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
717
718
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
718
719
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
719
|
-
return i.
|
|
720
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
720
721
|
};
|
|
721
722
|
l.$arity = 2;
|
|
722
723
|
return l;
|
|
723
724
|
}
|
|
724
725
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
725
|
-
this.
|
|
726
|
+
this.d9b_1 = $playerId;
|
|
726
727
|
CoroutineImpl.call(this, resultContinuation);
|
|
727
728
|
}
|
|
728
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
729
|
-
var tmp = this.
|
|
729
|
+
protoOf(GameServer$playerLostConnection$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
730
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
730
731
|
tmp.g9_1 = Unit_instance;
|
|
731
732
|
tmp.h9_1 = null;
|
|
732
733
|
return tmp.m9();
|
|
733
734
|
};
|
|
734
735
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
735
736
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
736
|
-
return this.
|
|
737
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
737
738
|
};
|
|
738
739
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
739
740
|
var suspendResult = this.g9_1;
|
|
@@ -742,12 +743,12 @@
|
|
|
742
743
|
var tmp = this.e9_1;
|
|
743
744
|
if (tmp === 0) {
|
|
744
745
|
this.f9_1 = 1;
|
|
745
|
-
if (!get_isCreated(this.
|
|
746
|
+
if (!get_isCreated(this.f9b_1.state)) {
|
|
746
747
|
return Unit_instance;
|
|
747
748
|
}
|
|
748
|
-
var tmp_0 = this.
|
|
749
|
+
var tmp_0 = this.f9b_1.dispatch;
|
|
749
750
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
750
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
751
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.d9b_1));
|
|
751
752
|
return Unit_instance;
|
|
752
753
|
} else if (tmp === 1) {
|
|
753
754
|
throw this.h9_1;
|
|
@@ -758,33 +759,33 @@
|
|
|
758
759
|
}
|
|
759
760
|
while (true);
|
|
760
761
|
};
|
|
761
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
762
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
763
|
-
i.
|
|
764
|
-
i.
|
|
762
|
+
protoOf(GameServer$playerLostConnection$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
763
|
+
var i = new GameServer$playerLostConnection$slambda(this.d9b_1, completion);
|
|
764
|
+
i.e9b_1 = $this$dispatchAsync;
|
|
765
|
+
i.f9b_1 = store;
|
|
765
766
|
return i;
|
|
766
767
|
};
|
|
767
768
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
768
769
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
769
770
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
770
|
-
return i.
|
|
771
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
771
772
|
};
|
|
772
773
|
l.$arity = 2;
|
|
773
774
|
return l;
|
|
774
775
|
}
|
|
775
776
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
776
|
-
this.
|
|
777
|
+
this.o9b_1 = $playerId;
|
|
777
778
|
CoroutineImpl.call(this, resultContinuation);
|
|
778
779
|
}
|
|
779
|
-
protoOf(GameServer$playerLive$slambda).
|
|
780
|
-
var tmp = this.
|
|
780
|
+
protoOf(GameServer$playerLive$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
781
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
781
782
|
tmp.g9_1 = Unit_instance;
|
|
782
783
|
tmp.h9_1 = null;
|
|
783
784
|
return tmp.m9();
|
|
784
785
|
};
|
|
785
786
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
786
787
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
787
|
-
return this.
|
|
788
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
788
789
|
};
|
|
789
790
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
790
791
|
var suspendResult = this.g9_1;
|
|
@@ -793,9 +794,9 @@
|
|
|
793
794
|
var tmp = this.e9_1;
|
|
794
795
|
if (tmp === 0) {
|
|
795
796
|
this.f9_1 = 1;
|
|
796
|
-
var tmp_0 = this.
|
|
797
|
+
var tmp_0 = this.q9b_1.dispatch;
|
|
797
798
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
798
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
799
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.o9b_1));
|
|
799
800
|
return Unit_instance;
|
|
800
801
|
} else if (tmp === 1) {
|
|
801
802
|
throw this.h9_1;
|
|
@@ -806,33 +807,33 @@
|
|
|
806
807
|
}
|
|
807
808
|
while (true);
|
|
808
809
|
};
|
|
809
|
-
protoOf(GameServer$playerLive$slambda).
|
|
810
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
811
|
-
i.
|
|
812
|
-
i.
|
|
810
|
+
protoOf(GameServer$playerLive$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
811
|
+
var i = new GameServer$playerLive$slambda(this.o9b_1, completion);
|
|
812
|
+
i.p9b_1 = $this$dispatchAsync;
|
|
813
|
+
i.q9b_1 = store;
|
|
813
814
|
return i;
|
|
814
815
|
};
|
|
815
816
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
816
817
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
817
818
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
818
|
-
return i.
|
|
819
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
819
820
|
};
|
|
820
821
|
l.$arity = 2;
|
|
821
822
|
return l;
|
|
822
823
|
}
|
|
823
824
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
824
|
-
this.
|
|
825
|
+
this.z9b_1 = $playerId;
|
|
825
826
|
CoroutineImpl.call(this, resultContinuation);
|
|
826
827
|
}
|
|
827
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
828
|
-
var tmp = this.
|
|
828
|
+
protoOf(GameServer$playerLeft$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
829
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
829
830
|
tmp.g9_1 = Unit_instance;
|
|
830
831
|
tmp.h9_1 = null;
|
|
831
832
|
return tmp.m9();
|
|
832
833
|
};
|
|
833
834
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
834
835
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
835
|
-
return this.
|
|
836
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
836
837
|
};
|
|
837
838
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
838
839
|
var suspendResult = this.g9_1;
|
|
@@ -841,9 +842,9 @@
|
|
|
841
842
|
var tmp = this.e9_1;
|
|
842
843
|
if (tmp === 0) {
|
|
843
844
|
this.f9_1 = 1;
|
|
844
|
-
var tmp_0 = this.
|
|
845
|
+
var tmp_0 = this.b9c_1.dispatch;
|
|
845
846
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
846
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
847
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.z9b_1));
|
|
847
848
|
return Unit_instance;
|
|
848
849
|
} else if (tmp === 1) {
|
|
849
850
|
throw this.h9_1;
|
|
@@ -854,39 +855,39 @@
|
|
|
854
855
|
}
|
|
855
856
|
while (true);
|
|
856
857
|
};
|
|
857
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
858
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
859
|
-
i.
|
|
860
|
-
i.
|
|
858
|
+
protoOf(GameServer$playerLeft$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
859
|
+
var i = new GameServer$playerLeft$slambda(this.z9b_1, completion);
|
|
860
|
+
i.a9c_1 = $this$dispatchAsync;
|
|
861
|
+
i.b9c_1 = store;
|
|
861
862
|
return i;
|
|
862
863
|
};
|
|
863
864
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
864
865
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
865
866
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
866
|
-
return i.
|
|
867
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
867
868
|
};
|
|
868
869
|
l.$arity = 2;
|
|
869
870
|
return l;
|
|
870
871
|
}
|
|
871
872
|
function GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
873
|
+
this.k9c_1 = $usersArray;
|
|
874
|
+
this.l9c_1 = $gameCreatorId;
|
|
875
|
+
this.m9c_1 = $config;
|
|
876
|
+
this.n9c_1 = $transition;
|
|
877
|
+
this.o9c_1 = this$0;
|
|
878
|
+
this.p9c_1 = $spectators;
|
|
879
|
+
this.q9c_1 = $roomId;
|
|
879
880
|
CoroutineImpl.call(this, resultContinuation);
|
|
880
881
|
}
|
|
881
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
882
|
-
var tmp = this.
|
|
882
|
+
protoOf(GameServer$roomOnCreate$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
883
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
883
884
|
tmp.g9_1 = Unit_instance;
|
|
884
885
|
tmp.h9_1 = null;
|
|
885
886
|
return tmp.m9();
|
|
886
887
|
};
|
|
887
888
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
888
889
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
889
|
-
return this.
|
|
890
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
890
891
|
};
|
|
891
892
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
892
893
|
var suspendResult = this.g9_1;
|
|
@@ -895,24 +896,24 @@
|
|
|
895
896
|
var tmp = this.e9_1;
|
|
896
897
|
if (tmp === 0) {
|
|
897
898
|
this.f9_1 = 1;
|
|
898
|
-
var users = toList(this.
|
|
899
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
899
|
+
var users = toList(this.k9c_1);
|
|
900
|
+
var gameCreatorUser = getPlayer(users, this.l9c_1);
|
|
900
901
|
var tmp_0;
|
|
901
|
-
if (this.
|
|
902
|
-
tmp_0 = sortWithItem(_get_random__h29cgo(this.
|
|
902
|
+
if (this.m9c_1.mode.shufflePlayers && this.n9c_1 == null) {
|
|
903
|
+
tmp_0 = sortWithItem(_get_random__h29cgo(this.o9c_1).s5s(toMutableList(users)), gameCreatorUser);
|
|
903
904
|
} else {
|
|
904
|
-
var tmp0_safe_receiver = this.
|
|
905
|
+
var tmp0_safe_receiver = this.n9c_1;
|
|
905
906
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
906
907
|
var tmp_1;
|
|
907
|
-
if (!(previousPlayers == null) && this.
|
|
908
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
908
|
+
if (!(previousPlayers == null) && this.m9c_1.playersMode.isTeamGame) {
|
|
909
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.o9c_1);
|
|
909
910
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
910
911
|
var tmp0_iterator = previousPlayers.j();
|
|
911
912
|
while (tmp0_iterator.k()) {
|
|
912
913
|
var item = tmp0_iterator.l();
|
|
913
914
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
914
915
|
}
|
|
915
|
-
var previousTeams = tmp_2.
|
|
916
|
+
var previousTeams = tmp_2.l8e(destination);
|
|
916
917
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
917
918
|
var tmp0_iterator_0 = users.j();
|
|
918
919
|
while (tmp0_iterator_0.k()) {
|
|
@@ -936,17 +937,17 @@
|
|
|
936
937
|
destination_1.e(destination_2);
|
|
937
938
|
}
|
|
938
939
|
var updatedTeams = destination_1;
|
|
939
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
940
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.o9c_1).p8e(updatedTeams);
|
|
940
941
|
} else {
|
|
941
942
|
tmp_1 = users;
|
|
942
943
|
}
|
|
943
944
|
tmp_0 = tmp_1;
|
|
944
945
|
}
|
|
945
946
|
var updatedUsers = tmp_0;
|
|
946
|
-
var tmp_3 = this.
|
|
947
|
+
var tmp_3 = this.s9c_1.dispatch;
|
|
947
948
|
var tmp1_version = GameEngineConfig_instance.version;
|
|
948
|
-
var tmp2_spectators = toList(this.
|
|
949
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
949
|
+
var tmp2_spectators = toList(this.p9c_1);
|
|
950
|
+
tmp_3(new StartGameMechanicAction(this.m9c_1, this.q9c_1, tmp1_version, this.l9c_1, updatedUsers, VOID, tmp2_spectators));
|
|
950
951
|
return Unit_instance;
|
|
951
952
|
} else if (tmp === 1) {
|
|
952
953
|
throw this.h9_1;
|
|
@@ -957,33 +958,33 @@
|
|
|
957
958
|
}
|
|
958
959
|
while (true);
|
|
959
960
|
};
|
|
960
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
961
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
962
|
-
i.
|
|
963
|
-
i.
|
|
961
|
+
protoOf(GameServer$roomOnCreate$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
962
|
+
var i = new GameServer$roomOnCreate$slambda(this.k9c_1, this.l9c_1, this.m9c_1, this.n9c_1, this.o9c_1, this.p9c_1, this.q9c_1, completion);
|
|
963
|
+
i.r9c_1 = $this$dispatchAsync;
|
|
964
|
+
i.s9c_1 = store;
|
|
964
965
|
return i;
|
|
965
966
|
};
|
|
966
967
|
function GameServer$roomOnCreate$slambda_0($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
967
968
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation);
|
|
968
969
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
969
|
-
return i.
|
|
970
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
970
971
|
};
|
|
971
972
|
l.$arity = 2;
|
|
972
973
|
return l;
|
|
973
974
|
}
|
|
974
975
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
975
|
-
this.
|
|
976
|
+
this.b9d_1 = $tableLite;
|
|
976
977
|
CoroutineImpl.call(this, resultContinuation);
|
|
977
978
|
}
|
|
978
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
979
|
-
var tmp = this.
|
|
979
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
980
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
980
981
|
tmp.g9_1 = Unit_instance;
|
|
981
982
|
tmp.h9_1 = null;
|
|
982
983
|
return tmp.m9();
|
|
983
984
|
};
|
|
984
985
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
985
986
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
986
|
-
return this.
|
|
987
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
987
988
|
};
|
|
988
989
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
989
990
|
var suspendResult = this.g9_1;
|
|
@@ -992,11 +993,10 @@
|
|
|
992
993
|
var tmp = this.e9_1;
|
|
993
994
|
if (tmp === 0) {
|
|
994
995
|
this.f9_1 = 1;
|
|
995
|
-
var tmp_0 = this.
|
|
996
|
+
var tmp_0 = this.d9d_1.dispatch;
|
|
996
997
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
997
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
998
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.b9d_1);
|
|
998
999
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
999
|
-
this.g9d_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1000
1000
|
return Unit_instance;
|
|
1001
1001
|
} else if (tmp === 1) {
|
|
1002
1002
|
throw this.h9_1;
|
|
@@ -1007,33 +1007,78 @@
|
|
|
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).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1011
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.b9d_1, completion);
|
|
1012
|
+
i.c9d_1 = $this$dispatchAsync;
|
|
1013
|
+
i.d9d_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.t9a($this$dispatchAsync, store, $completion);
|
|
1020
|
+
};
|
|
1021
|
+
l.$arity = 2;
|
|
1022
|
+
return l;
|
|
1023
|
+
}
|
|
1024
|
+
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1025
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1026
|
+
}
|
|
1027
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1028
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1029
|
+
tmp.g9_1 = Unit_instance;
|
|
1030
|
+
tmp.h9_1 = null;
|
|
1031
|
+
return tmp.m9();
|
|
1032
|
+
};
|
|
1033
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).x9 = function (p1, p2, $completion) {
|
|
1034
|
+
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1035
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1036
|
+
};
|
|
1037
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).m9 = function () {
|
|
1038
|
+
var suspendResult = this.g9_1;
|
|
1039
|
+
$sm: do
|
|
1040
|
+
try {
|
|
1041
|
+
var tmp = this.e9_1;
|
|
1042
|
+
if (tmp === 0) {
|
|
1043
|
+
this.f9_1 = 1;
|
|
1044
|
+
this.n9d_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1045
|
+
return Unit_instance;
|
|
1046
|
+
} else if (tmp === 1) {
|
|
1047
|
+
throw this.h9_1;
|
|
1048
|
+
}
|
|
1049
|
+
} catch ($p) {
|
|
1050
|
+
var e = $p;
|
|
1051
|
+
throw e;
|
|
1052
|
+
}
|
|
1053
|
+
while (true);
|
|
1054
|
+
};
|
|
1055
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1056
|
+
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1057
|
+
i.m9d_1 = $this$dispatchAsync;
|
|
1058
|
+
i.n9d_1 = store;
|
|
1059
|
+
return i;
|
|
1060
|
+
};
|
|
1061
|
+
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1062
|
+
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1063
|
+
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1064
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1020
1065
|
};
|
|
1021
1066
|
l.$arity = 2;
|
|
1022
1067
|
return l;
|
|
1023
1068
|
}
|
|
1024
1069
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1025
|
-
this.
|
|
1070
|
+
this.w9d_1 = $spectators;
|
|
1026
1071
|
CoroutineImpl.call(this, resultContinuation);
|
|
1027
1072
|
}
|
|
1028
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1029
|
-
var tmp = this.
|
|
1073
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1074
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1030
1075
|
tmp.g9_1 = Unit_instance;
|
|
1031
1076
|
tmp.h9_1 = null;
|
|
1032
1077
|
return tmp.m9();
|
|
1033
1078
|
};
|
|
1034
1079
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1035
1080
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1036
|
-
return this.
|
|
1081
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1037
1082
|
};
|
|
1038
1083
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
1039
1084
|
var suspendResult = this.g9_1;
|
|
@@ -1042,7 +1087,7 @@
|
|
|
1042
1087
|
var tmp = this.e9_1;
|
|
1043
1088
|
if (tmp === 0) {
|
|
1044
1089
|
this.f9_1 = 1;
|
|
1045
|
-
this.
|
|
1090
|
+
this.y9d_1.dispatch(new AddSpectatorsAction(toList(this.w9d_1)));
|
|
1046
1091
|
return Unit_instance;
|
|
1047
1092
|
} else if (tmp === 1) {
|
|
1048
1093
|
throw this.h9_1;
|
|
@@ -1053,33 +1098,33 @@
|
|
|
1053
1098
|
}
|
|
1054
1099
|
while (true);
|
|
1055
1100
|
};
|
|
1056
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1057
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1058
|
-
i.
|
|
1059
|
-
i.
|
|
1101
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1102
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.w9d_1, completion);
|
|
1103
|
+
i.x9d_1 = $this$dispatchAsync;
|
|
1104
|
+
i.y9d_1 = store;
|
|
1060
1105
|
return i;
|
|
1061
1106
|
};
|
|
1062
1107
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1063
1108
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1064
1109
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1065
|
-
return i.
|
|
1110
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1066
1111
|
};
|
|
1067
1112
|
l.$arity = 2;
|
|
1068
1113
|
return l;
|
|
1069
1114
|
}
|
|
1070
1115
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1071
|
-
this.
|
|
1116
|
+
this.h9e_1 = $spectators;
|
|
1072
1117
|
CoroutineImpl.call(this, resultContinuation);
|
|
1073
1118
|
}
|
|
1074
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1075
|
-
var tmp = this.
|
|
1119
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1120
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1076
1121
|
tmp.g9_1 = Unit_instance;
|
|
1077
1122
|
tmp.h9_1 = null;
|
|
1078
1123
|
return tmp.m9();
|
|
1079
1124
|
};
|
|
1080
1125
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1081
1126
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1082
|
-
return this.
|
|
1127
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1083
1128
|
};
|
|
1084
1129
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1085
1130
|
var suspendResult = this.g9_1;
|
|
@@ -1088,7 +1133,7 @@
|
|
|
1088
1133
|
var tmp = this.e9_1;
|
|
1089
1134
|
if (tmp === 0) {
|
|
1090
1135
|
this.f9_1 = 1;
|
|
1091
|
-
this.
|
|
1136
|
+
this.j9e_1.dispatch(new RemoveSpectatorsAction(toList(this.h9e_1)));
|
|
1092
1137
|
return Unit_instance;
|
|
1093
1138
|
} else if (tmp === 1) {
|
|
1094
1139
|
throw this.h9_1;
|
|
@@ -1099,34 +1144,34 @@
|
|
|
1099
1144
|
}
|
|
1100
1145
|
while (true);
|
|
1101
1146
|
};
|
|
1102
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1103
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1104
|
-
i.
|
|
1105
|
-
i.
|
|
1147
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1148
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.h9e_1, completion);
|
|
1149
|
+
i.i9e_1 = $this$dispatchAsync;
|
|
1150
|
+
i.j9e_1 = store;
|
|
1106
1151
|
return i;
|
|
1107
1152
|
};
|
|
1108
1153
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1109
1154
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1110
1155
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1111
|
-
return i.
|
|
1156
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1112
1157
|
};
|
|
1113
1158
|
l.$arity = 2;
|
|
1114
1159
|
return l;
|
|
1115
1160
|
}
|
|
1116
1161
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1117
|
-
this.
|
|
1118
|
-
this.
|
|
1162
|
+
this.s9e_1 = $playerId;
|
|
1163
|
+
this.t9e_1 = this$0;
|
|
1119
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1120
1165
|
}
|
|
1121
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1122
|
-
var tmp = this.
|
|
1166
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1167
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1123
1168
|
tmp.g9_1 = Unit_instance;
|
|
1124
1169
|
tmp.h9_1 = null;
|
|
1125
1170
|
return tmp.m9();
|
|
1126
1171
|
};
|
|
1127
1172
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1128
1173
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1129
|
-
return this.
|
|
1174
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1130
1175
|
};
|
|
1131
1176
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1132
1177
|
var suspendResult = this.g9_1;
|
|
@@ -1135,14 +1180,14 @@
|
|
|
1135
1180
|
var tmp = this.e9_1;
|
|
1136
1181
|
if (tmp === 0) {
|
|
1137
1182
|
this.f9_1 = 1;
|
|
1138
|
-
var table = this.
|
|
1139
|
-
var player = getPlayer(table.players, this.
|
|
1140
|
-
if (player.
|
|
1141
|
-
this.
|
|
1183
|
+
var table = this.v9e_1.state.g6n();
|
|
1184
|
+
var player = getPlayer(table.players, this.s9e_1);
|
|
1185
|
+
if (player.x6s_1.s69().j68_1.isLive) {
|
|
1186
|
+
this.v9e_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.t9e_1).g8l(player, table));
|
|
1142
1187
|
} else {
|
|
1143
|
-
var tmp_0 = this.
|
|
1188
|
+
var tmp_0 = this.v9e_1.dispatch;
|
|
1144
1189
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1145
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1190
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.s9e_1));
|
|
1146
1191
|
}
|
|
1147
1192
|
return Unit_instance;
|
|
1148
1193
|
} else if (tmp === 1) {
|
|
@@ -1154,34 +1199,34 @@
|
|
|
1154
1199
|
}
|
|
1155
1200
|
while (true);
|
|
1156
1201
|
};
|
|
1157
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1158
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1159
|
-
i.
|
|
1160
|
-
i.
|
|
1202
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1203
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.s9e_1, this.t9e_1, completion);
|
|
1204
|
+
i.u9e_1 = $this$dispatchAsync;
|
|
1205
|
+
i.v9e_1 = store;
|
|
1161
1206
|
return i;
|
|
1162
1207
|
};
|
|
1163
1208
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1164
1209
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1165
1210
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1166
|
-
return i.
|
|
1211
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1167
1212
|
};
|
|
1168
1213
|
l.$arity = 2;
|
|
1169
1214
|
return l;
|
|
1170
1215
|
}
|
|
1171
1216
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1217
|
+
this.e9f_1 = this$0;
|
|
1218
|
+
this.f9f_1 = $newRid;
|
|
1174
1219
|
CoroutineImpl.call(this, resultContinuation);
|
|
1175
1220
|
}
|
|
1176
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1177
|
-
var tmp = this.
|
|
1221
|
+
protoOf(GameServer$roomOnDelete$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1222
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1178
1223
|
tmp.g9_1 = Unit_instance;
|
|
1179
1224
|
tmp.h9_1 = null;
|
|
1180
1225
|
return tmp.m9();
|
|
1181
1226
|
};
|
|
1182
1227
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1183
1228
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1184
|
-
return this.
|
|
1229
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1185
1230
|
};
|
|
1186
1231
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1187
1232
|
var suspendResult = this.g9_1;
|
|
@@ -1190,23 +1235,23 @@
|
|
|
1190
1235
|
var tmp = this.e9_1;
|
|
1191
1236
|
if (tmp === 0) {
|
|
1192
1237
|
this.f9_1 = 1;
|
|
1193
|
-
var it = this.
|
|
1238
|
+
var it = this.e9f_1.p67().h6m_1;
|
|
1194
1239
|
var tmp_0;
|
|
1195
1240
|
if (it == null) {
|
|
1196
|
-
_get_logger__rkp4sl(this.
|
|
1241
|
+
_get_logger__rkp4sl(this.e9f_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1197
1242
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1198
1243
|
} else {
|
|
1199
1244
|
tmp_0 = it;
|
|
1200
1245
|
}
|
|
1201
1246
|
var terminationState = tmp_0;
|
|
1202
|
-
var tmp_1 = this.
|
|
1203
|
-
var tmp1_reason = terminationState.
|
|
1204
|
-
var tmp0_safe_receiver = terminationState.
|
|
1247
|
+
var tmp_1 = this.h9f_1.dispatch;
|
|
1248
|
+
var tmp1_reason = terminationState.h8p_1;
|
|
1249
|
+
var tmp0_safe_receiver = terminationState.i8p_1;
|
|
1205
1250
|
var tmp_2;
|
|
1206
1251
|
if (tmp0_safe_receiver == null) {
|
|
1207
1252
|
tmp_2 = null;
|
|
1208
1253
|
} else {
|
|
1209
|
-
var value = this.
|
|
1254
|
+
var value = this.f9f_1;
|
|
1210
1255
|
var tmp$ret$0 = Unit_instance;
|
|
1211
1256
|
l$ret$1: do {
|
|
1212
1257
|
if (value == null) {
|
|
@@ -1221,7 +1266,7 @@
|
|
|
1221
1266
|
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1222
1267
|
}
|
|
1223
1268
|
var tmp2_transition = tmp_2;
|
|
1224
|
-
var tmp3_isGameFinished = this.
|
|
1269
|
+
var tmp3_isGameFinished = this.e9f_1.p67().g6n().isGameFinished;
|
|
1225
1270
|
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1226
1271
|
return Unit_instance;
|
|
1227
1272
|
} else if (tmp === 1) {
|
|
@@ -1233,33 +1278,33 @@
|
|
|
1233
1278
|
}
|
|
1234
1279
|
while (true);
|
|
1235
1280
|
};
|
|
1236
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1237
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1238
|
-
i.
|
|
1239
|
-
i.
|
|
1281
|
+
protoOf(GameServer$roomOnDelete$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1282
|
+
var i = new GameServer$roomOnDelete$slambda(this.e9f_1, this.f9f_1, completion);
|
|
1283
|
+
i.g9f_1 = $this$dispatchAsync;
|
|
1284
|
+
i.h9f_1 = store;
|
|
1240
1285
|
return i;
|
|
1241
1286
|
};
|
|
1242
1287
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1243
1288
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1244
1289
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1245
|
-
return i.
|
|
1290
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1246
1291
|
};
|
|
1247
1292
|
l.$arity = 2;
|
|
1248
1293
|
return l;
|
|
1249
1294
|
}
|
|
1250
1295
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1251
|
-
this.
|
|
1296
|
+
this.q9f_1 = $enabled;
|
|
1252
1297
|
CoroutineImpl.call(this, resultContinuation);
|
|
1253
1298
|
}
|
|
1254
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1255
|
-
var tmp = this.
|
|
1299
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1300
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1256
1301
|
tmp.g9_1 = Unit_instance;
|
|
1257
1302
|
tmp.h9_1 = null;
|
|
1258
1303
|
return tmp.m9();
|
|
1259
1304
|
};
|
|
1260
1305
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1261
1306
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1262
|
-
return this.
|
|
1307
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1263
1308
|
};
|
|
1264
1309
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1265
1310
|
var suspendResult = this.g9_1;
|
|
@@ -1268,7 +1313,7 @@
|
|
|
1268
1313
|
var tmp = this.e9_1;
|
|
1269
1314
|
if (tmp === 0) {
|
|
1270
1315
|
this.f9_1 = 1;
|
|
1271
|
-
this.
|
|
1316
|
+
this.s9f_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.s9f_1.state).t9f_1.v9f(this.q9f_1)));
|
|
1272
1317
|
return Unit_instance;
|
|
1273
1318
|
} else if (tmp === 1) {
|
|
1274
1319
|
throw this.h9_1;
|
|
@@ -1279,35 +1324,35 @@
|
|
|
1279
1324
|
}
|
|
1280
1325
|
while (true);
|
|
1281
1326
|
};
|
|
1282
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1283
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1284
|
-
i.
|
|
1285
|
-
i.
|
|
1327
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1328
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.q9f_1, completion);
|
|
1329
|
+
i.r9f_1 = $this$dispatchAsync;
|
|
1330
|
+
i.s9f_1 = store;
|
|
1286
1331
|
return i;
|
|
1287
1332
|
};
|
|
1288
1333
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1289
1334
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1290
1335
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1291
|
-
return i.
|
|
1336
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1292
1337
|
};
|
|
1293
1338
|
l.$arity = 2;
|
|
1294
1339
|
return l;
|
|
1295
1340
|
}
|
|
1296
1341
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1342
|
+
this.e9g_1 = $reason;
|
|
1343
|
+
this.f9g_1 = this$0;
|
|
1344
|
+
this.g9g_1 = $roomId;
|
|
1300
1345
|
CoroutineImpl.call(this, resultContinuation);
|
|
1301
1346
|
}
|
|
1302
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1303
|
-
var tmp = this.
|
|
1347
|
+
protoOf(GameServer$shutdown$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1348
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1304
1349
|
tmp.g9_1 = Unit_instance;
|
|
1305
1350
|
tmp.h9_1 = null;
|
|
1306
1351
|
return tmp.m9();
|
|
1307
1352
|
};
|
|
1308
1353
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1309
1354
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1310
|
-
return this.
|
|
1355
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1311
1356
|
};
|
|
1312
1357
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1313
1358
|
var suspendResult = this.g9_1;
|
|
@@ -1316,11 +1361,11 @@
|
|
|
1316
1361
|
var tmp = this.e9_1;
|
|
1317
1362
|
if (tmp === 0) {
|
|
1318
1363
|
this.f9_1 = 1;
|
|
1319
|
-
var state = this.
|
|
1320
|
-
if (state.
|
|
1321
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1364
|
+
var state = this.i9g_1.store.state;
|
|
1365
|
+
if (state.h6n()) {
|
|
1366
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.e9g_1, get_serverShutdownReasonMapping());
|
|
1322
1367
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1323
|
-
var tmp_0 = this.
|
|
1368
|
+
var tmp_0 = this.i9g_1.dispatch;
|
|
1324
1369
|
var tmp_1 = Companion_instance_0;
|
|
1325
1370
|
var tmp_2;
|
|
1326
1371
|
switch (shutdownReason.n2_1) {
|
|
@@ -1334,10 +1379,10 @@
|
|
|
1334
1379
|
noWhenBranchMatchedException();
|
|
1335
1380
|
break;
|
|
1336
1381
|
}
|
|
1337
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1382
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.f9g_1.table.isGameFinished, this.f9g_1.table));
|
|
1338
1383
|
} else {
|
|
1339
|
-
_get_logger__rkp4sl(this.
|
|
1340
|
-
this.
|
|
1384
|
+
_get_logger__rkp4sl(this.f9g_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.g9g_1);
|
|
1385
|
+
this.i9g_1.dispatch(new ClearAction());
|
|
1341
1386
|
}
|
|
1342
1387
|
return Unit_instance;
|
|
1343
1388
|
} else if (tmp === 1) {
|
|
@@ -1349,22 +1394,22 @@
|
|
|
1349
1394
|
}
|
|
1350
1395
|
while (true);
|
|
1351
1396
|
};
|
|
1352
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1353
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1354
|
-
i.
|
|
1355
|
-
i.
|
|
1397
|
+
protoOf(GameServer$shutdown$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1398
|
+
var i = new GameServer$shutdown$slambda(this.e9g_1, this.f9g_1, this.g9g_1, completion);
|
|
1399
|
+
i.h9g_1 = $this$dispatchAsync;
|
|
1400
|
+
i.i9g_1 = store;
|
|
1356
1401
|
return i;
|
|
1357
1402
|
};
|
|
1358
1403
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1359
1404
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1360
1405
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1361
|
-
return i.
|
|
1406
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1362
1407
|
};
|
|
1363
1408
|
l.$arity = 2;
|
|
1364
1409
|
return l;
|
|
1365
1410
|
}
|
|
1366
1411
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1367
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1412
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.j9g()) : preloadedState;
|
|
1368
1413
|
var tmp;
|
|
1369
1414
|
if (externalReducers === VOID) {
|
|
1370
1415
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1387,95 +1432,96 @@
|
|
|
1387
1432
|
// Inline function 'org.kodein.type.generic' call
|
|
1388
1433
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1389
1434
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1390
|
-
tmp_1.
|
|
1435
|
+
tmp_1.c99_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
|
|
1391
1436
|
var tmp_3 = this;
|
|
1392
1437
|
// Inline function 'org.kodein.di.instance' call
|
|
1393
1438
|
// Inline function 'org.kodein.type.generic' call
|
|
1394
1439
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1395
1440
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1396
|
-
tmp_3.
|
|
1441
|
+
tmp_3.d99_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
|
|
1397
1442
|
var tmp_5 = this;
|
|
1398
1443
|
// Inline function 'org.kodein.di.instance' call
|
|
1399
1444
|
// Inline function 'org.kodein.type.generic' call
|
|
1400
1445
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1401
1446
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1402
|
-
tmp_5.
|
|
1447
|
+
tmp_5.e99_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
|
|
1403
1448
|
var tmp_7 = this;
|
|
1404
1449
|
// Inline function 'org.kodein.di.instance' call
|
|
1405
1450
|
// Inline function 'org.kodein.type.generic' call
|
|
1406
1451
|
var tmp_8 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
1407
1452
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1408
|
-
tmp_7.
|
|
1453
|
+
tmp_7.f99_1 = Instance(di, tmp$ret$8, null).e60(this, teamsLogicProvider$factory());
|
|
1409
1454
|
var tmp_9 = this;
|
|
1410
|
-
tmp_9.
|
|
1455
|
+
tmp_9.g99_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1411
1456
|
var tmp_10 = this;
|
|
1412
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1413
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1414
|
-
tmp_10.
|
|
1457
|
+
var tmp0_externalMiddlewares = plus(storeContract.p8t(), externalMiddlewares);
|
|
1458
|
+
var tmp1_externalReducers = plus(storeContract.o8t(), externalReducers);
|
|
1459
|
+
tmp_10.h99_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1415
1460
|
}
|
|
1416
|
-
protoOf(GameServer).
|
|
1417
|
-
return this.
|
|
1461
|
+
protoOf(GameServer).t6l = function () {
|
|
1462
|
+
return this.h99_1;
|
|
1418
1463
|
};
|
|
1419
1464
|
protoOf(GameServer).o5h = function () {
|
|
1420
|
-
return this.
|
|
1465
|
+
return this.p67().g6n().id;
|
|
1421
1466
|
};
|
|
1422
|
-
protoOf(GameServer).
|
|
1423
|
-
return this.
|
|
1467
|
+
protoOf(GameServer).g6n = function () {
|
|
1468
|
+
return this.p67().g6n();
|
|
1424
1469
|
};
|
|
1425
|
-
protoOf(GameServer).
|
|
1426
|
-
return this.
|
|
1470
|
+
protoOf(GameServer).h6n = function () {
|
|
1471
|
+
return this.p67().h6n();
|
|
1427
1472
|
};
|
|
1428
|
-
protoOf(GameServer).
|
|
1429
|
-
return this.
|
|
1473
|
+
protoOf(GameServer).i6n = function () {
|
|
1474
|
+
return this.p67().g6m_1;
|
|
1430
1475
|
};
|
|
1431
1476
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
1432
|
-
var tmp = this.
|
|
1433
|
-
tmp.
|
|
1477
|
+
var tmp = this.r6l();
|
|
1478
|
+
tmp.j6c(VOID, GameServer$subscribeToClientAction$slambda_0(this, subscriber, null));
|
|
1434
1479
|
};
|
|
1435
1480
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
1436
|
-
var tmp = this.
|
|
1437
|
-
tmp.
|
|
1481
|
+
var tmp = this.r6l();
|
|
1482
|
+
tmp.j6c(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
1438
1483
|
};
|
|
1439
1484
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1440
1485
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1441
|
-
this.
|
|
1486
|
+
this.h99_1.f6n(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1442
1487
|
};
|
|
1443
1488
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1444
1489
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1445
|
-
this.
|
|
1490
|
+
this.h99_1.f6n(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1446
1491
|
};
|
|
1447
1492
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1448
1493
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1449
|
-
this.
|
|
1494
|
+
this.h99_1.f6n(GameServer$playerLive$slambda_0(playerId, null));
|
|
1450
1495
|
};
|
|
1451
1496
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1452
1497
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1453
|
-
this.
|
|
1498
|
+
this.h99_1.f6n(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1454
1499
|
};
|
|
1455
|
-
protoOf(GameServer).
|
|
1456
|
-
this.
|
|
1500
|
+
protoOf(GameServer).k9g = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1501
|
+
this.h99_1.f6n(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1457
1502
|
};
|
|
1458
1503
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1459
|
-
this.
|
|
1504
|
+
this.h99_1.f6n(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1505
|
+
this.h99_1.f6n(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
1460
1506
|
};
|
|
1461
1507
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1462
|
-
this.
|
|
1508
|
+
this.h99_1.f6n(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1463
1509
|
};
|
|
1464
1510
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1465
|
-
this.
|
|
1511
|
+
this.h99_1.f6n(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1466
1512
|
};
|
|
1467
1513
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1468
1514
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1469
|
-
this.
|
|
1515
|
+
this.h99_1.f6n(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1470
1516
|
};
|
|
1471
|
-
protoOf(GameServer).
|
|
1472
|
-
this.
|
|
1517
|
+
protoOf(GameServer).l9g = function (newRid) {
|
|
1518
|
+
this.h99_1.f6n(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1473
1519
|
};
|
|
1474
1520
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1475
|
-
this.
|
|
1521
|
+
this.h99_1.f6n(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1476
1522
|
};
|
|
1477
|
-
protoOf(GameServer).
|
|
1478
|
-
this.
|
|
1523
|
+
protoOf(GameServer).m9g = function (reason, roomId) {
|
|
1524
|
+
this.h99_1.f6n(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1479
1525
|
};
|
|
1480
1526
|
protoOf(GameServer).clear = function () {
|
|
1481
1527
|
return this.a2();
|
|
@@ -1559,16 +1605,16 @@
|
|
|
1559
1605
|
return ServerShutdownReason_ERROR_instance;
|
|
1560
1606
|
}
|
|
1561
1607
|
function ServerConfig(canStartNewGame) {
|
|
1562
|
-
this.
|
|
1608
|
+
this.u9f_1 = canStartNewGame;
|
|
1563
1609
|
}
|
|
1564
|
-
protoOf(ServerConfig).
|
|
1610
|
+
protoOf(ServerConfig).v9f = function (canStartNewGame) {
|
|
1565
1611
|
return new ServerConfig(canStartNewGame);
|
|
1566
1612
|
};
|
|
1567
1613
|
protoOf(ServerConfig).toString = function () {
|
|
1568
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1614
|
+
return 'ServerConfig(canStartNewGame=' + this.u9f_1 + ')';
|
|
1569
1615
|
};
|
|
1570
1616
|
protoOf(ServerConfig).hashCode = function () {
|
|
1571
|
-
return getBooleanHashCode(this.
|
|
1617
|
+
return getBooleanHashCode(this.u9f_1);
|
|
1572
1618
|
};
|
|
1573
1619
|
protoOf(ServerConfig).equals = function (other) {
|
|
1574
1620
|
if (this === other)
|
|
@@ -1576,7 +1622,7 @@
|
|
|
1576
1622
|
if (!(other instanceof ServerConfig))
|
|
1577
1623
|
return false;
|
|
1578
1624
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1579
|
-
if (!(this.
|
|
1625
|
+
if (!(this.u9f_1 === tmp0_other_with_cast.u9f_1))
|
|
1580
1626
|
return false;
|
|
1581
1627
|
return true;
|
|
1582
1628
|
};
|
|
@@ -1808,18 +1854,18 @@
|
|
|
1808
1854
|
function ToClientEventsObserver() {
|
|
1809
1855
|
}
|
|
1810
1856
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1857
|
+
this.w9g_1 = this$0;
|
|
1858
|
+
this.x9g_1 = $actions;
|
|
1813
1859
|
CoroutineImpl.call(this, resultContinuation);
|
|
1814
1860
|
}
|
|
1815
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1816
|
-
var tmp = this.
|
|
1861
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).e9h = function ($this$flow, $completion) {
|
|
1862
|
+
var tmp = this.f9h($this$flow, $completion);
|
|
1817
1863
|
tmp.g9_1 = Unit_instance;
|
|
1818
1864
|
tmp.h9_1 = null;
|
|
1819
1865
|
return tmp.m9();
|
|
1820
1866
|
};
|
|
1821
1867
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1822
|
-
return this.
|
|
1868
|
+
return this.e9h((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1823
1869
|
};
|
|
1824
1870
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1825
1871
|
var suspendResult = this.g9_1;
|
|
@@ -1830,23 +1876,23 @@
|
|
|
1830
1876
|
case 0:
|
|
1831
1877
|
this.f9_1 = 4;
|
|
1832
1878
|
var tmp_0 = this;
|
|
1833
|
-
tmp_0.
|
|
1879
|
+
tmp_0.z9g_1 = this.w9g_1.k9h_1;
|
|
1834
1880
|
var tmp_1 = this;
|
|
1835
|
-
tmp_1.
|
|
1836
|
-
this.
|
|
1881
|
+
tmp_1.a9h_1 = transformToEmits(this.w9g_1, this.x9g_1);
|
|
1882
|
+
this.b9h_1 = this.a9h_1.j();
|
|
1837
1883
|
this.e9_1 = 1;
|
|
1838
1884
|
continue $sm;
|
|
1839
1885
|
case 1:
|
|
1840
|
-
if (!this.
|
|
1886
|
+
if (!this.b9h_1.k()) {
|
|
1841
1887
|
this.e9_1 = 3;
|
|
1842
1888
|
continue $sm;
|
|
1843
1889
|
}
|
|
1844
1890
|
|
|
1845
|
-
this.
|
|
1891
|
+
this.c9h_1 = this.b9h_1.l();
|
|
1846
1892
|
var tmp_2 = this;
|
|
1847
|
-
tmp_2.
|
|
1893
|
+
tmp_2.d9h_1 = this.c9h_1;
|
|
1848
1894
|
this.e9_1 = 2;
|
|
1849
|
-
suspendResult = this.
|
|
1895
|
+
suspendResult = this.y9g_1.p18(this.d9h_1, this);
|
|
1850
1896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1851
1897
|
return suspendResult;
|
|
1852
1898
|
}
|
|
@@ -1857,10 +1903,10 @@
|
|
|
1857
1903
|
continue $sm;
|
|
1858
1904
|
case 3:
|
|
1859
1905
|
l$ret$1: do {
|
|
1860
|
-
var this_0 = this.
|
|
1906
|
+
var this_0 = this.w9g_1.j9h_1;
|
|
1861
1907
|
while (true) {
|
|
1862
1908
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1863
|
-
var upd = cur - this.
|
|
1909
|
+
var upd = cur - this.x9g_1.m() | 0;
|
|
1864
1910
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1865
1911
|
break l$ret$1;
|
|
1866
1912
|
}
|
|
@@ -1882,15 +1928,15 @@
|
|
|
1882
1928
|
}
|
|
1883
1929
|
while (true);
|
|
1884
1930
|
};
|
|
1885
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1886
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1887
|
-
i.
|
|
1931
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).f9h = function ($this$flow, completion) {
|
|
1932
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.w9g_1, this.x9g_1, completion);
|
|
1933
|
+
i.y9g_1 = $this$flow;
|
|
1888
1934
|
return i;
|
|
1889
1935
|
};
|
|
1890
1936
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1891
1937
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1892
1938
|
var l = function ($this$flow, $completion) {
|
|
1893
|
-
return i.
|
|
1939
|
+
return i.e9h($this$flow, $completion);
|
|
1894
1940
|
};
|
|
1895
1941
|
l.$arity = 1;
|
|
1896
1942
|
return l;
|
|
@@ -1963,29 +2009,29 @@
|
|
|
1963
2009
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1964
2010
|
}
|
|
1965
2011
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1966
|
-
var tmp = $this.
|
|
2012
|
+
var tmp = $this.i9h_1.m6d();
|
|
1967
2013
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1968
|
-
var this_0 = _this__u8e3s4.
|
|
2014
|
+
var this_0 = _this__u8e3s4.n9h_1;
|
|
1969
2015
|
var tmp_0 = copyToArray(this_0);
|
|
1970
2016
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1971
|
-
var this_1 = _this__u8e3s4.
|
|
2017
|
+
var this_1 = _this__u8e3s4.o9h_1;
|
|
1972
2018
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1973
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
2019
|
+
return new ActionDeliveryPayload(_this__u8e3s4.m9h_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.p9h_1);
|
|
1974
2020
|
}
|
|
1975
2021
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
2022
|
+
this.m9h_1 = tableId;
|
|
2023
|
+
this.n9h_1 = includePlayers;
|
|
2024
|
+
this.o9h_1 = excludePlayers;
|
|
2025
|
+
this.p9h_1 = deliveryType;
|
|
1980
2026
|
}
|
|
1981
2027
|
protoOf(GroupKey).toString = function () {
|
|
1982
|
-
return 'GroupKey(tableId=' + this.
|
|
2028
|
+
return 'GroupKey(tableId=' + this.m9h_1 + ', includePlayers=' + toString(this.n9h_1) + ', excludePlayers=' + toString(this.o9h_1) + ', deliveryType=' + this.p9h_1.toString() + ')';
|
|
1983
2029
|
};
|
|
1984
2030
|
protoOf(GroupKey).hashCode = function () {
|
|
1985
|
-
var result = getStringHashCode(this.
|
|
1986
|
-
result = imul(result, 31) + hashCode(this.
|
|
1987
|
-
result = imul(result, 31) + hashCode(this.
|
|
1988
|
-
result = imul(result, 31) + this.
|
|
2031
|
+
var result = getStringHashCode(this.m9h_1);
|
|
2032
|
+
result = imul(result, 31) + hashCode(this.n9h_1) | 0;
|
|
2033
|
+
result = imul(result, 31) + hashCode(this.o9h_1) | 0;
|
|
2034
|
+
result = imul(result, 31) + this.p9h_1.hashCode() | 0;
|
|
1989
2035
|
return result;
|
|
1990
2036
|
};
|
|
1991
2037
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1994,35 +2040,35 @@
|
|
|
1994
2040
|
if (!(other instanceof GroupKey))
|
|
1995
2041
|
return false;
|
|
1996
2042
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1997
|
-
if (!(this.
|
|
2043
|
+
if (!(this.m9h_1 === tmp0_other_with_cast.m9h_1))
|
|
1998
2044
|
return false;
|
|
1999
|
-
if (!equals(this.
|
|
2045
|
+
if (!equals(this.n9h_1, tmp0_other_with_cast.n9h_1))
|
|
2000
2046
|
return false;
|
|
2001
|
-
if (!equals(this.
|
|
2047
|
+
if (!equals(this.o9h_1, tmp0_other_with_cast.o9h_1))
|
|
2002
2048
|
return false;
|
|
2003
|
-
if (!this.
|
|
2049
|
+
if (!this.p9h_1.equals(tmp0_other_with_cast.p9h_1))
|
|
2004
2050
|
return false;
|
|
2005
2051
|
return true;
|
|
2006
2052
|
};
|
|
2007
2053
|
function Companion_0() {
|
|
2008
|
-
this.
|
|
2054
|
+
this.q9h_1 = 6;
|
|
2009
2055
|
}
|
|
2010
2056
|
var Companion_instance_8;
|
|
2011
2057
|
function Companion_getInstance_1() {
|
|
2012
2058
|
return Companion_instance_8;
|
|
2013
2059
|
}
|
|
2014
2060
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
2015
|
-
this.
|
|
2061
|
+
this.z9h_1 = this$0;
|
|
2016
2062
|
CoroutineImpl.call(this, resultContinuation);
|
|
2017
2063
|
}
|
|
2018
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2019
|
-
var tmp = this.
|
|
2064
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).b9i = function (actions, $completion) {
|
|
2065
|
+
var tmp = this.c9i(actions, $completion);
|
|
2020
2066
|
tmp.g9_1 = Unit_instance;
|
|
2021
2067
|
tmp.h9_1 = null;
|
|
2022
2068
|
return tmp.m9();
|
|
2023
2069
|
};
|
|
2024
2070
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
2025
|
-
return this.
|
|
2071
|
+
return this.b9i((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
2026
2072
|
};
|
|
2027
2073
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
2028
2074
|
var suspendResult = this.g9_1;
|
|
@@ -2031,7 +2077,7 @@
|
|
|
2031
2077
|
var tmp = this.e9_1;
|
|
2032
2078
|
if (tmp === 0) {
|
|
2033
2079
|
this.f9_1 = 1;
|
|
2034
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
2080
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.z9h_1, this.a9i_1, null));
|
|
2035
2081
|
} else if (tmp === 1) {
|
|
2036
2082
|
throw this.h9_1;
|
|
2037
2083
|
}
|
|
@@ -2041,23 +2087,23 @@
|
|
|
2041
2087
|
}
|
|
2042
2088
|
while (true);
|
|
2043
2089
|
};
|
|
2044
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2045
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
2046
|
-
i.
|
|
2090
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).c9i = function (actions, completion) {
|
|
2091
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.z9h_1, completion);
|
|
2092
|
+
i.a9i_1 = actions;
|
|
2047
2093
|
return i;
|
|
2048
2094
|
};
|
|
2049
2095
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
2050
2096
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
2051
2097
|
var l = function (actions, $completion) {
|
|
2052
|
-
return i.
|
|
2098
|
+
return i.b9i(actions, $completion);
|
|
2053
2099
|
};
|
|
2054
2100
|
l.$arity = 1;
|
|
2055
2101
|
return l;
|
|
2056
2102
|
}
|
|
2057
2103
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
2058
2104
|
CoroutineImpl.call(this, resultContinuation);
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2105
|
+
this.l9i_1 = _this__u8e3s4;
|
|
2106
|
+
this.m9i_1 = fromEvent;
|
|
2061
2107
|
}
|
|
2062
2108
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
2063
2109
|
var suspendResult = this.g9_1;
|
|
@@ -2068,9 +2114,9 @@
|
|
|
2068
2114
|
case 0:
|
|
2069
2115
|
this.f9_1 = 2;
|
|
2070
2116
|
var tmp_0 = this;
|
|
2071
|
-
tmp_0.
|
|
2117
|
+
tmp_0.n9i_1 = this.l9i_1.k9h_1;
|
|
2072
2118
|
l$ret$1: do {
|
|
2073
|
-
var this_0 = this.
|
|
2119
|
+
var this_0 = this.l9i_1.j9h_1;
|
|
2074
2120
|
while (true) {
|
|
2075
2121
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2076
2122
|
var upd = cur + 1 | 0;
|
|
@@ -2081,7 +2127,7 @@
|
|
|
2081
2127
|
}
|
|
2082
2128
|
while (false);
|
|
2083
2129
|
this.e9_1 = 1;
|
|
2084
|
-
suspendResult = this.
|
|
2130
|
+
suspendResult = this.l9i_1.l9h_1.p18(this.m9i_1, this);
|
|
2085
2131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2086
2132
|
return suspendResult;
|
|
2087
2133
|
}
|
|
@@ -2105,7 +2151,7 @@
|
|
|
2105
2151
|
};
|
|
2106
2152
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2107
2153
|
CoroutineImpl.call(this, resultContinuation);
|
|
2108
|
-
this.
|
|
2154
|
+
this.w9i_1 = _this__u8e3s4;
|
|
2109
2155
|
}
|
|
2110
2156
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2111
2157
|
var suspendResult = this.g9_1;
|
|
@@ -2116,12 +2162,12 @@
|
|
|
2116
2162
|
case 0:
|
|
2117
2163
|
this.f9_1 = 5;
|
|
2118
2164
|
var tmp_0 = this;
|
|
2119
|
-
tmp_0.
|
|
2120
|
-
this.
|
|
2165
|
+
tmp_0.x9i_1 = this.w9i_1.k9h_1;
|
|
2166
|
+
this.y9i_1 = 0;
|
|
2121
2167
|
this.e9_1 = 1;
|
|
2122
2168
|
continue $sm;
|
|
2123
2169
|
case 1:
|
|
2124
|
-
if (!!(this.
|
|
2170
|
+
if (!!(this.w9i_1.j9h_1.kotlinx$atomicfu$value === 0)) {
|
|
2125
2171
|
this.e9_1 = 4;
|
|
2126
2172
|
continue $sm;
|
|
2127
2173
|
}
|
|
@@ -2134,9 +2180,9 @@
|
|
|
2134
2180
|
|
|
2135
2181
|
continue $sm;
|
|
2136
2182
|
case 2:
|
|
2137
|
-
this.
|
|
2138
|
-
if (this.
|
|
2139
|
-
this.
|
|
2183
|
+
this.y9i_1 = this.y9i_1 + 1 | 0;
|
|
2184
|
+
if (this.y9i_1 > 6) {
|
|
2185
|
+
this.w9i_1.h9h_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.w9i_1.j9h_1.kotlinx$atomicfu$value);
|
|
2140
2186
|
this.e9_1 = 4;
|
|
2141
2187
|
continue $sm;
|
|
2142
2188
|
} else {
|
|
@@ -2164,42 +2210,42 @@
|
|
|
2164
2210
|
while (true);
|
|
2165
2211
|
};
|
|
2166
2212
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
this.
|
|
2213
|
+
this.g9h_1 = serverReduxConfig;
|
|
2214
|
+
this.h9h_1 = logger;
|
|
2215
|
+
this.i9h_1 = idsProvider;
|
|
2216
|
+
this.j9h_1 = atomic$ref$1(0);
|
|
2171
2217
|
var tmp = this;
|
|
2172
2218
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2173
|
-
tmp.
|
|
2174
|
-
this.
|
|
2219
|
+
tmp.k9h_1 = get_atomicfu$reentrantLock();
|
|
2220
|
+
this.l9h_1 = MutableSharedFlow();
|
|
2175
2221
|
}
|
|
2176
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2222
|
+
protoOf(ToClientEventsObserverImpl).n9g = function (fromEvent, $completion) {
|
|
2177
2223
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2178
2224
|
tmp.g9_1 = Unit_instance;
|
|
2179
2225
|
tmp.h9_1 = null;
|
|
2180
2226
|
return tmp.m9();
|
|
2181
2227
|
};
|
|
2182
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2228
|
+
protoOf(ToClientEventsObserverImpl).k90 = function ($completion) {
|
|
2183
2229
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2184
2230
|
tmp.g9_1 = Unit_instance;
|
|
2185
2231
|
tmp.h9_1 = null;
|
|
2186
2232
|
return tmp.m9();
|
|
2187
2233
|
};
|
|
2188
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2189
|
-
if (!this.
|
|
2190
|
-
return this.
|
|
2234
|
+
protoOf(ToClientEventsObserverImpl).w99 = function () {
|
|
2235
|
+
if (!this.g9h_1.enabledCombinedEvents) {
|
|
2236
|
+
return this.l9h_1;
|
|
2191
2237
|
}
|
|
2192
|
-
var tmp = windowedByInterval(this.
|
|
2238
|
+
var tmp = windowedByInterval(this.l9h_1, toLong(this.g9h_1.combinedEventsPeriod));
|
|
2193
2239
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2194
2240
|
};
|
|
2195
2241
|
function UpdateServerConfigAction(serverConfig) {
|
|
2196
|
-
this.
|
|
2242
|
+
this.z9i_1 = serverConfig;
|
|
2197
2243
|
}
|
|
2198
2244
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2199
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2245
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.z9i_1.toString() + ')';
|
|
2200
2246
|
};
|
|
2201
2247
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2202
|
-
return this.
|
|
2248
|
+
return this.z9i_1.hashCode();
|
|
2203
2249
|
};
|
|
2204
2250
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2205
2251
|
if (this === other)
|
|
@@ -2207,20 +2253,20 @@
|
|
|
2207
2253
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2208
2254
|
return false;
|
|
2209
2255
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2210
|
-
if (!this.
|
|
2256
|
+
if (!this.z9i_1.equals(tmp0_other_with_cast.z9i_1))
|
|
2211
2257
|
return false;
|
|
2212
2258
|
return true;
|
|
2213
2259
|
};
|
|
2214
2260
|
function SpectatorsAction() {
|
|
2215
2261
|
}
|
|
2216
2262
|
function AddSpectatorsAction(spectators) {
|
|
2217
|
-
this.
|
|
2263
|
+
this.a9j_1 = spectators;
|
|
2218
2264
|
}
|
|
2219
2265
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2220
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2266
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.a9j_1) + ')';
|
|
2221
2267
|
};
|
|
2222
2268
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2223
|
-
return hashCode(this.
|
|
2269
|
+
return hashCode(this.a9j_1);
|
|
2224
2270
|
};
|
|
2225
2271
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2226
2272
|
if (this === other)
|
|
@@ -2228,18 +2274,18 @@
|
|
|
2228
2274
|
if (!(other instanceof AddSpectatorsAction))
|
|
2229
2275
|
return false;
|
|
2230
2276
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2231
|
-
if (!equals(this.
|
|
2277
|
+
if (!equals(this.a9j_1, tmp0_other_with_cast.a9j_1))
|
|
2232
2278
|
return false;
|
|
2233
2279
|
return true;
|
|
2234
2280
|
};
|
|
2235
2281
|
function RemoveSpectatorsAction(spectators) {
|
|
2236
|
-
this.
|
|
2282
|
+
this.b9j_1 = spectators;
|
|
2237
2283
|
}
|
|
2238
2284
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2239
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2285
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.b9j_1) + ')';
|
|
2240
2286
|
};
|
|
2241
2287
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2242
|
-
return hashCode(this.
|
|
2288
|
+
return hashCode(this.b9j_1);
|
|
2243
2289
|
};
|
|
2244
2290
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2245
2291
|
if (this === other)
|
|
@@ -2247,72 +2293,72 @@
|
|
|
2247
2293
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2248
2294
|
return false;
|
|
2249
2295
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2250
|
-
if (!equals(this.
|
|
2296
|
+
if (!equals(this.b9j_1, tmp0_other_with_cast.b9j_1))
|
|
2251
2297
|
return false;
|
|
2252
2298
|
return true;
|
|
2253
2299
|
};
|
|
2254
2300
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2255
2301
|
// Inline function 'kotlin.getValue' call
|
|
2256
|
-
var this_0 = $this.
|
|
2302
|
+
var this_0 = $this.h9j_1;
|
|
2257
2303
|
asyncProvider$factory_0();
|
|
2258
2304
|
return this_0.u();
|
|
2259
2305
|
}
|
|
2260
2306
|
function _get_logger__rkp4sl_0($this) {
|
|
2261
2307
|
// Inline function 'kotlin.getValue' call
|
|
2262
|
-
var this_0 = $this.
|
|
2308
|
+
var this_0 = $this.i9j_1;
|
|
2263
2309
|
logger$factory_2();
|
|
2264
2310
|
return this_0.u();
|
|
2265
2311
|
}
|
|
2266
2312
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2267
2313
|
// Inline function 'kotlin.getValue' call
|
|
2268
|
-
var this_0 = $this.
|
|
2314
|
+
var this_0 = $this.j9j_1;
|
|
2269
2315
|
playerConnectionInteractor$factory_2();
|
|
2270
2316
|
return this_0.u();
|
|
2271
2317
|
}
|
|
2272
2318
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2273
2319
|
// Inline function 'kotlin.getValue' call
|
|
2274
|
-
var this_0 = $this.
|
|
2320
|
+
var this_0 = $this.k9j_1;
|
|
2275
2321
|
lastCardInteractor$factory_0();
|
|
2276
2322
|
return this_0.u();
|
|
2277
2323
|
}
|
|
2278
2324
|
function _get_serverConfig__rk2g06($this) {
|
|
2279
2325
|
// Inline function 'kotlin.getValue' call
|
|
2280
|
-
var this_0 = $this.
|
|
2326
|
+
var this_0 = $this.l9j_1;
|
|
2281
2327
|
serverConfig$factory_0();
|
|
2282
2328
|
return this_0.u();
|
|
2283
2329
|
}
|
|
2284
2330
|
function _get_logicConfig__52ww9d($this) {
|
|
2285
2331
|
// Inline function 'kotlin.getValue' call
|
|
2286
|
-
var this_0 = $this.
|
|
2332
|
+
var this_0 = $this.m9j_1;
|
|
2287
2333
|
logicConfig$factory_0();
|
|
2288
2334
|
return this_0.u();
|
|
2289
2335
|
}
|
|
2290
2336
|
function _get_idsProvider__fnfajc($this) {
|
|
2291
2337
|
// Inline function 'kotlin.getValue' call
|
|
2292
|
-
var this_0 = $this.
|
|
2338
|
+
var this_0 = $this.n9j_1;
|
|
2293
2339
|
idsProvider$factory_0();
|
|
2294
2340
|
return this_0.u();
|
|
2295
2341
|
}
|
|
2296
2342
|
function _get_botConfig__cpaxzc($this) {
|
|
2297
2343
|
// Inline function 'kotlin.getValue' call
|
|
2298
|
-
var this_0 = $this.
|
|
2344
|
+
var this_0 = $this.o9j_1;
|
|
2299
2345
|
botConfig$factory_0();
|
|
2300
2346
|
return this_0.u();
|
|
2301
2347
|
}
|
|
2302
2348
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2303
2349
|
// Inline function 'kotlin.getValue' call
|
|
2304
|
-
var this_0 = $this.
|
|
2350
|
+
var this_0 = $this.p9j_1;
|
|
2305
2351
|
scenePositionProvider$factory_0();
|
|
2306
2352
|
return this_0.u();
|
|
2307
2353
|
}
|
|
2308
2354
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2309
2355
|
// Inline function 'kotlin.getValue' call
|
|
2310
|
-
var this_0 = $this.
|
|
2356
|
+
var this_0 = $this.q9j_1;
|
|
2311
2357
|
toClientEventsObserver$factory_2();
|
|
2312
2358
|
return this_0.u();
|
|
2313
2359
|
}
|
|
2314
2360
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
2315
|
-
return !player.
|
|
2361
|
+
return !player.y68();
|
|
2316
2362
|
}
|
|
2317
2363
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
2318
2364
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -2320,77 +2366,77 @@
|
|
|
2320
2366
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2321
2367
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2322
2368
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2369
|
+
this.c9j_1 = validationStoreContract;
|
|
2370
|
+
this.d9j_1 = timersStoreContract;
|
|
2371
|
+
this.e9j_1 = botGameStoreContract;
|
|
2372
|
+
this.f9j_1 = gameMechanicStoreContract;
|
|
2373
|
+
this.g9j_1 = fileLoggerStoreContract;
|
|
2328
2374
|
var tmp = this;
|
|
2329
2375
|
// Inline function 'org.kodein.di.instance' call
|
|
2330
2376
|
// Inline function 'org.kodein.type.generic' call
|
|
2331
2377
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2332
2378
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2333
|
-
tmp.
|
|
2379
|
+
tmp.h9j_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2334
2380
|
var tmp_1 = this;
|
|
2335
2381
|
// Inline function 'org.kodein.di.instance' call
|
|
2336
2382
|
// Inline function 'org.kodein.type.generic' call
|
|
2337
2383
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2338
2384
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2339
|
-
tmp_1.
|
|
2385
|
+
tmp_1.i9j_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2340
2386
|
var tmp_3 = this;
|
|
2341
2387
|
// Inline function 'org.kodein.di.instance' call
|
|
2342
2388
|
// Inline function 'org.kodein.type.generic' call
|
|
2343
2389
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2344
2390
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2345
|
-
tmp_3.
|
|
2391
|
+
tmp_3.j9j_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2346
2392
|
var tmp_5 = this;
|
|
2347
2393
|
// Inline function 'org.kodein.di.instance' call
|
|
2348
2394
|
// Inline function 'org.kodein.type.generic' call
|
|
2349
2395
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2350
2396
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2351
|
-
tmp_5.
|
|
2397
|
+
tmp_5.k9j_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2352
2398
|
var tmp_7 = this;
|
|
2353
2399
|
// Inline function 'org.kodein.di.instance' call
|
|
2354
2400
|
// Inline function 'org.kodein.type.generic' call
|
|
2355
2401
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2356
2402
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2357
|
-
tmp_7.
|
|
2403
|
+
tmp_7.l9j_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2358
2404
|
var tmp_9 = this;
|
|
2359
2405
|
// Inline function 'org.kodein.di.instance' call
|
|
2360
2406
|
// Inline function 'org.kodein.type.generic' call
|
|
2361
2407
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2362
2408
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2363
|
-
tmp_9.
|
|
2409
|
+
tmp_9.m9j_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2364
2410
|
var tmp_11 = this;
|
|
2365
2411
|
// Inline function 'org.kodein.di.instance' call
|
|
2366
2412
|
// Inline function 'org.kodein.type.generic' call
|
|
2367
2413
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2368
2414
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2369
|
-
tmp_11.
|
|
2415
|
+
tmp_11.n9j_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2370
2416
|
var tmp_13 = this;
|
|
2371
2417
|
// Inline function 'org.kodein.di.instance' call
|
|
2372
2418
|
// Inline function 'org.kodein.type.generic' call
|
|
2373
2419
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2374
2420
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2375
|
-
tmp_13.
|
|
2421
|
+
tmp_13.o9j_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2376
2422
|
var tmp_15 = this;
|
|
2377
2423
|
// Inline function 'org.kodein.di.instance' call
|
|
2378
2424
|
// Inline function 'org.kodein.type.generic' call
|
|
2379
2425
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2380
2426
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2381
|
-
tmp_15.
|
|
2427
|
+
tmp_15.p9j_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2382
2428
|
var tmp_17 = this;
|
|
2383
2429
|
// Inline function 'org.kodein.di.instance' call
|
|
2384
2430
|
// Inline function 'org.kodein.type.generic' call
|
|
2385
2431
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2386
2432
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2387
|
-
tmp_17.
|
|
2433
|
+
tmp_17.q9j_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2388
2434
|
}
|
|
2389
|
-
protoOf(ServerGameStoreContract).
|
|
2390
|
-
return plus(plus(plus(plus(plus(this.
|
|
2435
|
+
protoOf(ServerGameStoreContract).o8t = function () {
|
|
2436
|
+
return plus(plus(plus(plus(plus(this.c9j_1.o8t(), this.d9j_1.o8t()), this.e9j_1.o8t()), this.f9j_1.o8t()), this.g9j_1.o8t()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2391
2437
|
};
|
|
2392
|
-
protoOf(ServerGameStoreContract).
|
|
2393
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2438
|
+
protoOf(ServerGameStoreContract).p8t = function () {
|
|
2439
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.c9j_1.p8t(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.d9j_1.p8t()), this.e9j_1.p8t()), this.f9j_1.p8t()), this.g9j_1.p8t()), 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))).h8v(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2394
2440
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2395
2441
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2396
2442
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2512,33 +2558,33 @@
|
|
|
2512
2558
|
}
|
|
2513
2559
|
function _no_name_provided__qut3iv() {
|
|
2514
2560
|
}
|
|
2515
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2561
|
+
protoOf(_no_name_provided__qut3iv).j6f = function (action) {
|
|
2516
2562
|
return action instanceof RoundEndedAction;
|
|
2517
2563
|
};
|
|
2518
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2564
|
+
protoOf(_no_name_provided__qut3iv).a6h = function (store, next, action) {
|
|
2519
2565
|
// Inline function 'games.jass.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
2520
2566
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2521
2567
|
next(action_0);
|
|
2522
2568
|
var state = store.state;
|
|
2523
|
-
if (!get_serverState_0(state).
|
|
2524
|
-
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.
|
|
2569
|
+
if (!get_serverState_0(state).t9f_1.u9f_1 && action_0.isGameFinished) {
|
|
2570
|
+
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.e6m_1));
|
|
2525
2571
|
}
|
|
2526
2572
|
};
|
|
2527
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2528
|
-
return this.
|
|
2573
|
+
protoOf(_no_name_provided__qut3iv).i6f = function (store, next, action) {
|
|
2574
|
+
return this.a6h(store, next, action);
|
|
2529
2575
|
};
|
|
2530
2576
|
function ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda($$this$with) {
|
|
2531
2577
|
return function () {
|
|
2532
|
-
return $$this$with.
|
|
2578
|
+
return $$this$with.g6n().playersConnections;
|
|
2533
2579
|
};
|
|
2534
2580
|
}
|
|
2535
2581
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2536
|
-
this.
|
|
2582
|
+
this.t9j_1 = this$0;
|
|
2537
2583
|
}
|
|
2538
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2584
|
+
protoOf(_no_name_provided__qut3iv_0).j6f = function (action) {
|
|
2539
2585
|
return action instanceof MechanicAction;
|
|
2540
2586
|
};
|
|
2541
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2587
|
+
protoOf(_no_name_provided__qut3iv_0).a6h = function (store, next, action) {
|
|
2542
2588
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>' call
|
|
2543
2589
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
2544
2590
|
var state = store.state;
|
|
@@ -2548,11 +2594,11 @@
|
|
|
2548
2594
|
var tmp;
|
|
2549
2595
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2550
2596
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2551
|
-
var this_0 = this.
|
|
2552
|
-
var tableId = action_0.
|
|
2553
|
-
var gameCreatorPlayerId = action_0.
|
|
2597
|
+
var this_0 = this.t9j_1;
|
|
2598
|
+
var tableId = action_0.f8q_1;
|
|
2599
|
+
var gameCreatorPlayerId = action_0.h8q_1;
|
|
2554
2600
|
// Inline function 'kotlin.collections.map' call
|
|
2555
|
-
var this_1 = action_0.
|
|
2601
|
+
var this_1 = action_0.i8q_1;
|
|
2556
2602
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2557
2603
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
2558
2604
|
var tmp0_iterator = this_1.j();
|
|
@@ -2593,7 +2639,7 @@
|
|
|
2593
2639
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2594
2640
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2595
2641
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2596
|
-
var tmp0_aid = this_0.
|
|
2642
|
+
var tmp0_aid = this_0.s9j_1.m6d();
|
|
2597
2643
|
// Inline function 'kotlin.collections.map' call
|
|
2598
2644
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2599
2645
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -2618,17 +2664,17 @@
|
|
|
2618
2664
|
} else {
|
|
2619
2665
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2620
2666
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2621
|
-
var this_2 = this.
|
|
2622
|
-
var table = state.
|
|
2667
|
+
var this_2 = this.t9j_1;
|
|
2668
|
+
var table = state.g6n();
|
|
2623
2669
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2624
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2670
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.s9j_1.m6d(), table.id, null);
|
|
2625
2671
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2626
2672
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2627
2673
|
} else {
|
|
2628
2674
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2629
2675
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2630
|
-
var this_3 = this.
|
|
2631
|
-
var tableId_0 = action_0.
|
|
2676
|
+
var this_3 = this.t9j_1;
|
|
2677
|
+
var tableId_0 = action_0.l8q_1.id;
|
|
2632
2678
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2633
2679
|
var players = getPlayers();
|
|
2634
2680
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2662,7 +2708,7 @@
|
|
|
2662
2708
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2663
2709
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2664
2710
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2665
|
-
var tmp0_aid_0 = this_3.
|
|
2711
|
+
var tmp0_aid_0 = this_3.s9j_1.m6d();
|
|
2666
2712
|
// Inline function 'kotlin.collections.map' call
|
|
2667
2713
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2668
2714
|
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -2687,44 +2733,44 @@
|
|
|
2687
2733
|
} else {
|
|
2688
2734
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2689
2735
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2690
|
-
var this_4 = this.
|
|
2691
|
-
var table_0 = state.
|
|
2736
|
+
var this_4 = this.t9j_1;
|
|
2737
|
+
var table_0 = state.g6n();
|
|
2692
2738
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2693
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2739
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.s9j_1.m6d(), table_0.id, null);
|
|
2694
2740
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2695
2741
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2696
2742
|
} else {
|
|
2697
2743
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2698
2744
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2699
|
-
var this_5 = this.
|
|
2700
|
-
var table_1 = state.
|
|
2745
|
+
var this_5 = this.t9j_1;
|
|
2746
|
+
var table_1 = state.g6n();
|
|
2701
2747
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2702
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2748
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.s9j_1.m6d(), table_1.id, null);
|
|
2703
2749
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2704
2750
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2705
2751
|
} else {
|
|
2706
2752
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2707
2753
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2708
|
-
var this_6 = this.
|
|
2709
|
-
var table_2 = state.
|
|
2754
|
+
var this_6 = this.t9j_1;
|
|
2755
|
+
var table_2 = state.g6n();
|
|
2710
2756
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2711
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2757
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.s9j_1.m6d(), table_2.id, null);
|
|
2712
2758
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2713
2759
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2714
2760
|
} else {
|
|
2715
2761
|
if (action_0 instanceof ErrorAction) {
|
|
2716
2762
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2717
|
-
var this_7 = this.
|
|
2718
|
-
var table_3 = state.
|
|
2763
|
+
var this_7 = this.t9j_1;
|
|
2764
|
+
var table_3 = state.g6n();
|
|
2719
2765
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2720
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2766
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.s9j_1.m6d(), table_3.id, null);
|
|
2721
2767
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2722
2768
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2723
2769
|
} else {
|
|
2724
2770
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2725
2771
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2726
|
-
var this_8 = this.
|
|
2727
|
-
var table_4 = state.
|
|
2772
|
+
var this_8 = this.t9j_1;
|
|
2773
|
+
var table_4 = state.g6n();
|
|
2728
2774
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2729
2775
|
var tableId_1 = table_4.id;
|
|
2730
2776
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -2760,7 +2806,7 @@
|
|
|
2760
2806
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2761
2807
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2762
2808
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2763
|
-
var tmp0_aid_1 = this_8.
|
|
2809
|
+
var tmp0_aid_1 = this_8.s9j_1.m6d();
|
|
2764
2810
|
// Inline function 'kotlin.collections.map' call
|
|
2765
2811
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2766
2812
|
var destination_11 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2785,8 +2831,8 @@
|
|
|
2785
2831
|
} else {
|
|
2786
2832
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2787
2833
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2788
|
-
var this_9 = this.
|
|
2789
|
-
var table_5 = state.
|
|
2834
|
+
var this_9 = this.t9j_1;
|
|
2835
|
+
var table_5 = state.g6n();
|
|
2790
2836
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2791
2837
|
var tableId_2 = table_5.id;
|
|
2792
2838
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -2822,7 +2868,7 @@
|
|
|
2822
2868
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2823
2869
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2824
2870
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2825
|
-
var tmp0_aid_2 = this_9.
|
|
2871
|
+
var tmp0_aid_2 = this_9.s9j_1.m6d();
|
|
2826
2872
|
// Inline function 'kotlin.collections.map' call
|
|
2827
2873
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2828
2874
|
var destination_15 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2847,8 +2893,8 @@
|
|
|
2847
2893
|
} else {
|
|
2848
2894
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2849
2895
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2850
|
-
var this_10 = this.
|
|
2851
|
-
var table_6 = state.
|
|
2896
|
+
var this_10 = this.t9j_1;
|
|
2897
|
+
var table_6 = state.g6n();
|
|
2852
2898
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2853
2899
|
var tableId_3 = table_6.id;
|
|
2854
2900
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -2884,7 +2930,7 @@
|
|
|
2884
2930
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2885
2931
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2886
2932
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2887
|
-
var tmp0_aid_3 = this_10.
|
|
2933
|
+
var tmp0_aid_3 = this_10.s9j_1.m6d();
|
|
2888
2934
|
// Inline function 'kotlin.collections.map' call
|
|
2889
2935
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2890
2936
|
var destination_19 = ArrayList_init_$Create$(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2897,7 +2943,7 @@
|
|
|
2897
2943
|
}
|
|
2898
2944
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2899
2945
|
var tmp_0;
|
|
2900
|
-
if (this.
|
|
2946
|
+
if (this.t9j_1.r9j_1.supportBackwardActions && getPlayer(state.g6n().players, sendToPlayer_8.k79_1).z6s_1.d6t_1) {
|
|
2901
2947
|
tmp_0 = null;
|
|
2902
2948
|
} else {
|
|
2903
2949
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2915,79 +2961,79 @@
|
|
|
2915
2961
|
} else {
|
|
2916
2962
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2917
2963
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2918
|
-
var this_11 = this.
|
|
2919
|
-
var table_7 = state.
|
|
2920
|
-
var exceptPlayerId = this.
|
|
2964
|
+
var this_11 = this.t9j_1;
|
|
2965
|
+
var table_7 = state.g6n();
|
|
2966
|
+
var exceptPlayerId = this.t9j_1.r9j_1.supportBackwardActions ? action_0.f8r_1 : null;
|
|
2921
2967
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2922
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2968
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.s9j_1.m6d(), table_7.id, exceptPlayerId);
|
|
2923
2969
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2924
2970
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2925
2971
|
} else {
|
|
2926
2972
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2927
2973
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2928
|
-
var this_12 = this.
|
|
2929
|
-
var table_8 = state.
|
|
2930
|
-
var exceptPlayerId_0 = this.
|
|
2974
|
+
var this_12 = this.t9j_1;
|
|
2975
|
+
var table_8 = state.g6n();
|
|
2976
|
+
var exceptPlayerId_0 = this.t9j_1.r9j_1.supportBackwardActions ? action_0.d8m_1 : null;
|
|
2931
2977
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2932
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2978
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.s9j_1.m6d(), table_8.id, exceptPlayerId_0);
|
|
2933
2979
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2934
2980
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2935
2981
|
} else {
|
|
2936
2982
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2937
2983
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2938
|
-
var this_13 = this.
|
|
2939
|
-
var table_9 = state.
|
|
2984
|
+
var this_13 = this.t9j_1;
|
|
2985
|
+
var table_9 = state.g6n();
|
|
2940
2986
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2941
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2987
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.s9j_1.m6d(), table_9.id, null);
|
|
2942
2988
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2943
2989
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2944
2990
|
} else {
|
|
2945
2991
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2946
2992
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2947
|
-
var this_14 = this.
|
|
2948
|
-
var table_10 = state.
|
|
2949
|
-
var exceptPlayerId_1 = this.
|
|
2993
|
+
var this_14 = this.t9j_1;
|
|
2994
|
+
var table_10 = state.g6n();
|
|
2995
|
+
var exceptPlayerId_1 = this.t9j_1.r9j_1.supportBackwardActions ? action_0.l8r_1 : null;
|
|
2950
2996
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2951
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2997
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.s9j_1.m6d(), table_10.id, exceptPlayerId_1);
|
|
2952
2998
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2953
2999
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2954
3000
|
} else {
|
|
2955
3001
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2956
3002
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2957
|
-
var this_15 = this.
|
|
2958
|
-
var table_11 = state.
|
|
2959
|
-
var exceptPlayerId_2 = this.
|
|
3003
|
+
var this_15 = this.t9j_1;
|
|
3004
|
+
var table_11 = state.g6n();
|
|
3005
|
+
var exceptPlayerId_2 = this.t9j_1.r9j_1.supportBackwardActions ? action_0.i8m_1 : null;
|
|
2960
3006
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2961
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
3007
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.s9j_1.m6d(), table_11.id, exceptPlayerId_2);
|
|
2962
3008
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2963
3009
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2964
3010
|
} else {
|
|
2965
3011
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2966
3012
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2967
|
-
var this_16 = this.
|
|
2968
|
-
var table_12 = state.
|
|
3013
|
+
var this_16 = this.t9j_1;
|
|
3014
|
+
var table_12 = state.g6n();
|
|
2969
3015
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2970
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
3016
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.s9j_1.m6d(), table_12.id, null);
|
|
2971
3017
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2972
3018
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2973
3019
|
} else {
|
|
2974
3020
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2975
3021
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2976
|
-
var this_17 = this.
|
|
2977
|
-
var table_13 = state.
|
|
3022
|
+
var this_17 = this.t9j_1;
|
|
3023
|
+
var table_13 = state.g6n();
|
|
2978
3024
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2979
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
3025
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.s9j_1.m6d(), table_13.id, null);
|
|
2980
3026
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2981
3027
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2982
3028
|
} else {
|
|
2983
3029
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2984
|
-
var message = action_0.
|
|
3030
|
+
var message = action_0.p8r_1;
|
|
2985
3031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2986
|
-
var this_18 = this.
|
|
2987
|
-
var table_14 = state.
|
|
3032
|
+
var this_18 = this.t9j_1;
|
|
3033
|
+
var table_14 = state.g6n();
|
|
2988
3034
|
var tmp_1;
|
|
2989
3035
|
var tmp_2;
|
|
2990
|
-
if (this.
|
|
3036
|
+
if (this.t9j_1.r9j_1.supportBackwardActions) {
|
|
2991
3037
|
tmp_2 = isInterface(message, UserMessage);
|
|
2992
3038
|
} else {
|
|
2993
3039
|
tmp_2 = false;
|
|
@@ -2999,17 +3045,17 @@
|
|
|
2999
3045
|
}
|
|
3000
3046
|
var exceptPlayerId_3 = tmp_1;
|
|
3001
3047
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3002
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
3048
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.s9j_1.m6d(), table_14.id, exceptPlayerId_3);
|
|
3003
3049
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
3004
3050
|
tmp = listOfNotNull(tmp$ret$105);
|
|
3005
3051
|
} else {
|
|
3006
3052
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
3007
3053
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3008
|
-
var this_19 = this.
|
|
3009
|
-
var table_15 = state.
|
|
3054
|
+
var this_19 = this.t9j_1;
|
|
3055
|
+
var table_15 = state.g6n();
|
|
3010
3056
|
var exceptPlayerId_4 = action_0.playerId;
|
|
3011
3057
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3012
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
3058
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.s9j_1.m6d(), table_15.id, exceptPlayerId_4);
|
|
3013
3059
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
3014
3060
|
tmp = listOfNotNull(tmp$ret$107);
|
|
3015
3061
|
} else {
|
|
@@ -3043,14 +3089,14 @@
|
|
|
3043
3089
|
}
|
|
3044
3090
|
next(action_0);
|
|
3045
3091
|
};
|
|
3046
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
3047
|
-
return this.
|
|
3092
|
+
protoOf(_no_name_provided__qut3iv_0).i6f = function (store, next, action) {
|
|
3093
|
+
return this.a6h(store, next, action);
|
|
3048
3094
|
};
|
|
3049
3095
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3096
|
+
this.r9j_1 = logicConfig;
|
|
3097
|
+
this.s9j_1 = idsProvider;
|
|
3052
3098
|
}
|
|
3053
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
3099
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).h8v = function () {
|
|
3054
3100
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
3055
3101
|
return new _no_name_provided__qut3iv_0(this);
|
|
3056
3102
|
};
|
|
@@ -3059,8 +3105,8 @@
|
|
|
3059
3105
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
3060
3106
|
}
|
|
3061
3107
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
3062
|
-
this.
|
|
3063
|
-
this.
|
|
3108
|
+
this.c9k_1 = $provider;
|
|
3109
|
+
this.d9k_1 = $action;
|
|
3064
3110
|
CoroutineImpl.call(this, resultContinuation);
|
|
3065
3111
|
}
|
|
3066
3112
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -3081,7 +3127,7 @@
|
|
|
3081
3127
|
case 0:
|
|
3082
3128
|
this.f9_1 = 2;
|
|
3083
3129
|
this.e9_1 = 1;
|
|
3084
|
-
suspendResult = this.
|
|
3130
|
+
suspendResult = this.c9k_1.n9g(this.d9k_1, this);
|
|
3085
3131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3086
3132
|
return suspendResult;
|
|
3087
3133
|
}
|
|
@@ -3104,8 +3150,8 @@
|
|
|
3104
3150
|
while (true);
|
|
3105
3151
|
};
|
|
3106
3152
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3107
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3108
|
-
i.
|
|
3153
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.c9k_1, this.d9k_1, completion);
|
|
3154
|
+
i.e9k_1 = $this$launchDefault;
|
|
3109
3155
|
return i;
|
|
3110
3156
|
};
|
|
3111
3157
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3117,20 +3163,20 @@
|
|
|
3117
3163
|
return l;
|
|
3118
3164
|
}
|
|
3119
3165
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3120
|
-
this.
|
|
3121
|
-
this.
|
|
3166
|
+
this.f9k_1 = $asyncProvider;
|
|
3167
|
+
this.g9k_1 = $provider;
|
|
3122
3168
|
}
|
|
3123
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3169
|
+
protoOf(_no_name_provided__qut3iv_1).j6f = function (action) {
|
|
3124
3170
|
return action instanceof ToClientAction;
|
|
3125
3171
|
};
|
|
3126
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3172
|
+
protoOf(_no_name_provided__qut3iv_1).a6h = function (store, next, action) {
|
|
3127
3173
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3128
3174
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3129
|
-
this.
|
|
3175
|
+
this.f9k_1.j6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.g9k_1, action_0, null));
|
|
3130
3176
|
next(action_0);
|
|
3131
3177
|
};
|
|
3132
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3133
|
-
return this.
|
|
3178
|
+
protoOf(_no_name_provided__qut3iv_1).i6f = function (store, next, action) {
|
|
3179
|
+
return this.a6h(store, next, action);
|
|
3134
3180
|
};
|
|
3135
3181
|
function serverConfigReducer() {
|
|
3136
3182
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -3138,86 +3184,86 @@
|
|
|
3138
3184
|
}
|
|
3139
3185
|
function _no_name_provided__qut3iv_2() {
|
|
3140
3186
|
}
|
|
3141
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3187
|
+
protoOf(_no_name_provided__qut3iv_2).j6f = function (action) {
|
|
3142
3188
|
return action instanceof UpdateServerConfigAction;
|
|
3143
3189
|
};
|
|
3144
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3190
|
+
protoOf(_no_name_provided__qut3iv_2).c92 = function (state, action) {
|
|
3145
3191
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3146
3192
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3147
|
-
return state.
|
|
3193
|
+
return state.g8p(VOID, get_serverState_0(state).h9k(action_0.z9i_1));
|
|
3148
3194
|
};
|
|
3149
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3150
|
-
return this.
|
|
3195
|
+
protoOf(_no_name_provided__qut3iv_2).b6h = function (state, action) {
|
|
3196
|
+
return this.c92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3151
3197
|
};
|
|
3152
3198
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3153
3199
|
return function (it) {
|
|
3154
3200
|
var tmp = Companion_instance_1;
|
|
3155
3201
|
var tmp_0;
|
|
3156
3202
|
if (it.isBot) {
|
|
3157
|
-
tmp_0 = Companion_instance_2.
|
|
3203
|
+
tmp_0 = Companion_instance_2.h68(PlayerConnectionState_LEFT_getInstance());
|
|
3158
3204
|
} else {
|
|
3159
3205
|
var tmp_1 = Companion_instance_2;
|
|
3160
3206
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3161
3207
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3162
3208
|
Companion_getInstance();
|
|
3163
|
-
var this_0 = $action.
|
|
3209
|
+
var this_0 = $action.e8q_1.timeoutTimeMillis;
|
|
3164
3210
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3165
|
-
tmp_0 = tmp_1.
|
|
3211
|
+
tmp_0 = tmp_1.g68(tmp_2, tmp$ret$0);
|
|
3166
3212
|
}
|
|
3167
|
-
return tmp.
|
|
3213
|
+
return tmp.o69(tmp_0);
|
|
3168
3214
|
};
|
|
3169
3215
|
}
|
|
3170
3216
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3171
3217
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3172
|
-
this.
|
|
3218
|
+
this.k9k_1 = logger;
|
|
3173
3219
|
}
|
|
3174
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3175
|
-
var serverState = get_serverStateOrNull(state.
|
|
3220
|
+
protoOf(ServerMechanicLifecycleReducer).o93 = function (state, action) {
|
|
3221
|
+
var serverState = get_serverStateOrNull(state.f6m_1);
|
|
3176
3222
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3177
|
-
var tmp0_$this = this.
|
|
3178
|
-
var tmp1_tableId = action.
|
|
3179
|
-
var tmp2_gameId = action.
|
|
3180
|
-
var tmp3_version = action.
|
|
3181
|
-
var tmp4_config = action.
|
|
3182
|
-
var tmp5_users = action.
|
|
3223
|
+
var tmp0_$this = this.p93_1;
|
|
3224
|
+
var tmp1_tableId = action.f8q_1;
|
|
3225
|
+
var tmp2_gameId = action.f8q_1;
|
|
3226
|
+
var tmp3_version = action.g8q_1;
|
|
3227
|
+
var tmp4_config = action.e8q_1;
|
|
3228
|
+
var tmp5_users = action.i8q_1;
|
|
3183
3229
|
var tmp6_spectators = action.spectators;
|
|
3184
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3185
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3230
|
+
var tmp7_gameCreatorPlayerId = action.h8q_1;
|
|
3231
|
+
var tmp9_tableOrNull = tmp0_$this.v94(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3186
3232
|
var tmp;
|
|
3187
3233
|
if (serverState == null) {
|
|
3188
|
-
this.
|
|
3189
|
-
tmp = Companion_instance_9.
|
|
3234
|
+
this.k9k_1.w(VOID, 'ServerPayload is not onStart');
|
|
3235
|
+
tmp = Companion_instance_9.j9g();
|
|
3190
3236
|
} else {
|
|
3191
3237
|
tmp = serverState;
|
|
3192
3238
|
}
|
|
3193
3239
|
var tmp10_payload = tmp;
|
|
3194
|
-
return state.
|
|
3240
|
+
return state.g8p(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3195
3241
|
};
|
|
3196
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3197
|
-
this.
|
|
3242
|
+
protoOf(ServerMechanicLifecycleReducer).n93 = function (state, action) {
|
|
3243
|
+
this.q93_1.r5n(action.previousGameId);
|
|
3198
3244
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3199
|
-
var tmp1_tableOrNull = this.
|
|
3200
|
-
return state.
|
|
3245
|
+
var tmp1_tableOrNull = this.p93_1.w94(state.g6n(), action.gameId);
|
|
3246
|
+
return state.g8p(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3201
3247
|
};
|
|
3202
3248
|
function spectatorsReducer(logger) {
|
|
3203
3249
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3204
3250
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3205
3251
|
}
|
|
3206
3252
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3207
|
-
this.
|
|
3253
|
+
this.l9k_1 = $logger;
|
|
3208
3254
|
}
|
|
3209
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3255
|
+
protoOf(_no_name_provided__qut3iv_3).j6f = function (action) {
|
|
3210
3256
|
return isInterface(action, SpectatorsAction);
|
|
3211
3257
|
};
|
|
3212
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3258
|
+
protoOf(_no_name_provided__qut3iv_3).c92 = function (state, action) {
|
|
3213
3259
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3214
3260
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3215
|
-
var table = state.
|
|
3261
|
+
var table = state.g6n();
|
|
3216
3262
|
var tmp;
|
|
3217
3263
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3218
3264
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3219
3265
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3220
|
-
var this_0 = action_0.
|
|
3266
|
+
var this_0 = action_0.a9j_1;
|
|
3221
3267
|
var destination = ArrayList_init_$Create$_0();
|
|
3222
3268
|
// Inline function 'kotlin.collections.forEach' call
|
|
3223
3269
|
var tmp0_iterator = this_0.j();
|
|
@@ -3239,10 +3285,10 @@
|
|
|
3239
3285
|
var tmp_0;
|
|
3240
3286
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3241
3287
|
if (!sameSpectators.p()) {
|
|
3242
|
-
this.
|
|
3288
|
+
this.l9k_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3243
3289
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3244
3290
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3245
|
-
var this_1 = action_0.
|
|
3291
|
+
var this_1 = action_0.a9j_1;
|
|
3246
3292
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
3247
3293
|
var tmp0_iterator_0 = this_1.j();
|
|
3248
3294
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3278,7 +3324,7 @@
|
|
|
3278
3324
|
}
|
|
3279
3325
|
tmp_0 = destination_0;
|
|
3280
3326
|
} else {
|
|
3281
|
-
tmp_0 = action_0.
|
|
3327
|
+
tmp_0 = action_0.a9j_1;
|
|
3282
3328
|
}
|
|
3283
3329
|
var this_2 = tmp_0;
|
|
3284
3330
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3291,12 +3337,12 @@
|
|
|
3291
3337
|
destination_1.e(tmp$ret$10);
|
|
3292
3338
|
}
|
|
3293
3339
|
var spectatorsToAdd = toSet(destination_1);
|
|
3294
|
-
tmp = state.
|
|
3340
|
+
tmp = state.g8p(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3295
3341
|
} else {
|
|
3296
3342
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3297
3343
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3298
3344
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3299
|
-
var this_3 = action_0.
|
|
3345
|
+
var this_3 = action_0.b9j_1;
|
|
3300
3346
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
3301
3347
|
// Inline function 'kotlin.collections.forEach' call
|
|
3302
3348
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3317,10 +3363,10 @@
|
|
|
3317
3363
|
var tmp_2;
|
|
3318
3364
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3319
3365
|
if (!sameSpectators_0.p()) {
|
|
3320
|
-
this.
|
|
3366
|
+
this.l9k_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3321
3367
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3322
3368
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3323
|
-
var this_4 = action_0.
|
|
3369
|
+
var this_4 = action_0.b9j_1;
|
|
3324
3370
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
3325
3371
|
var tmp0_iterator_4 = this_4.j();
|
|
3326
3372
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3356,7 +3402,7 @@
|
|
|
3356
3402
|
}
|
|
3357
3403
|
tmp_2 = destination_3;
|
|
3358
3404
|
} else {
|
|
3359
|
-
tmp_2 = action_0.
|
|
3405
|
+
tmp_2 = action_0.b9j_1;
|
|
3360
3406
|
}
|
|
3361
3407
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3362
3408
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3395,40 +3441,40 @@
|
|
|
3395
3441
|
destination_4.e(element_5);
|
|
3396
3442
|
}
|
|
3397
3443
|
}
|
|
3398
|
-
tmp = state.
|
|
3444
|
+
tmp = state.g8p(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3399
3445
|
} else {
|
|
3400
3446
|
noWhenBranchMatchedException();
|
|
3401
3447
|
}
|
|
3402
3448
|
}
|
|
3403
3449
|
return tmp;
|
|
3404
3450
|
};
|
|
3405
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3406
|
-
return this.
|
|
3451
|
+
protoOf(_no_name_provided__qut3iv_3).b6h = function (state, action) {
|
|
3452
|
+
return this.c92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3407
3453
|
};
|
|
3408
3454
|
function Companion_1() {
|
|
3409
3455
|
}
|
|
3410
|
-
protoOf(Companion_1).
|
|
3456
|
+
protoOf(Companion_1).m9k = function (config) {
|
|
3411
3457
|
return new ServerState(config);
|
|
3412
3458
|
};
|
|
3413
|
-
protoOf(Companion_1).
|
|
3459
|
+
protoOf(Companion_1).j9g = function (config, $super) {
|
|
3414
3460
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3415
|
-
return $super === VOID ? this.
|
|
3461
|
+
return $super === VOID ? this.m9k(config) : $super.m9k.call(this, config);
|
|
3416
3462
|
};
|
|
3417
3463
|
var Companion_instance_9;
|
|
3418
3464
|
function Companion_getInstance_2() {
|
|
3419
3465
|
return Companion_instance_9;
|
|
3420
3466
|
}
|
|
3421
3467
|
function ServerState(config) {
|
|
3422
|
-
this.
|
|
3468
|
+
this.t9f_1 = config;
|
|
3423
3469
|
}
|
|
3424
|
-
protoOf(ServerState).
|
|
3470
|
+
protoOf(ServerState).h9k = function (config) {
|
|
3425
3471
|
return new ServerState(config);
|
|
3426
3472
|
};
|
|
3427
3473
|
protoOf(ServerState).toString = function () {
|
|
3428
|
-
return 'ServerState(config=' + this.
|
|
3474
|
+
return 'ServerState(config=' + this.t9f_1.toString() + ')';
|
|
3429
3475
|
};
|
|
3430
3476
|
protoOf(ServerState).hashCode = function () {
|
|
3431
|
-
return this.
|
|
3477
|
+
return this.t9f_1.hashCode();
|
|
3432
3478
|
};
|
|
3433
3479
|
protoOf(ServerState).equals = function (other) {
|
|
3434
3480
|
if (this === other)
|
|
@@ -3436,7 +3482,7 @@
|
|
|
3436
3482
|
if (!(other instanceof ServerState))
|
|
3437
3483
|
return false;
|
|
3438
3484
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3439
|
-
if (!this.
|
|
3485
|
+
if (!this.t9f_1.equals(tmp0_other_with_cast.t9f_1))
|
|
3440
3486
|
return false;
|
|
3441
3487
|
return true;
|
|
3442
3488
|
};
|
|
@@ -3448,7 +3494,7 @@
|
|
|
3448
3494
|
}
|
|
3449
3495
|
function get_serverState_0(_this__u8e3s4) {
|
|
3450
3496
|
// Inline function 'kotlin.requireNotNull' call
|
|
3451
|
-
var value = _this__u8e3s4.
|
|
3497
|
+
var value = _this__u8e3s4.f6m_1;
|
|
3452
3498
|
// Inline function 'kotlin.contracts.contract' call
|
|
3453
3499
|
var tmp$ret$1;
|
|
3454
3500
|
$l$block: {
|
|
@@ -3474,13 +3520,13 @@
|
|
|
3474
3520
|
}
|
|
3475
3521
|
function _get_controllerLogger__nbd727($this) {
|
|
3476
3522
|
// Inline function 'kotlin.getValue' call
|
|
3477
|
-
var this_0 = $this.
|
|
3523
|
+
var this_0 = $this.v9k_1;
|
|
3478
3524
|
controllerLogger$factory();
|
|
3479
3525
|
return this_0.u();
|
|
3480
3526
|
}
|
|
3481
3527
|
function _get_di__ndbzja($this) {
|
|
3482
3528
|
// Inline function 'kotlin.getValue' call
|
|
3483
|
-
var this_0 = $this.
|
|
3529
|
+
var this_0 = $this.w9k_1;
|
|
3484
3530
|
di$factory();
|
|
3485
3531
|
return this_0.u();
|
|
3486
3532
|
}
|
|
@@ -3491,13 +3537,13 @@
|
|
|
3491
3537
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3492
3538
|
return function () {
|
|
3493
3539
|
var tmp;
|
|
3494
|
-
if (this$0.
|
|
3540
|
+
if (this$0.t9k_1 == null) {
|
|
3495
3541
|
tmp = null;
|
|
3496
3542
|
} else {
|
|
3497
3543
|
// Inline function 'kotlin.let' call
|
|
3498
3544
|
// Inline function 'kotlin.contracts.contract' call
|
|
3499
3545
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3500
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3546
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.t9k_1)]));
|
|
3501
3547
|
}
|
|
3502
3548
|
var tmp1_elvis_lhs = tmp;
|
|
3503
3549
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3525,7 +3571,7 @@
|
|
|
3525
3571
|
tmp_0.h5y(tmp$ret$3);
|
|
3526
3572
|
$this$DI.l5u(jsonModule());
|
|
3527
3573
|
$this$DI.l5u(serverHelpersModule());
|
|
3528
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3574
|
+
$this$DI.l5u(randomOrgModule(this$0.u9k_1));
|
|
3529
3575
|
return Unit_instance;
|
|
3530
3576
|
};
|
|
3531
3577
|
}
|
|
@@ -3536,16 +3582,16 @@
|
|
|
3536
3582
|
};
|
|
3537
3583
|
}
|
|
3538
3584
|
function _no_name_provided__qut3iv_4($item) {
|
|
3539
|
-
this.
|
|
3585
|
+
this.c9l_1 = $item;
|
|
3540
3586
|
}
|
|
3541
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3587
|
+
protoOf(_no_name_provided__qut3iv_4).j6f = function (action) {
|
|
3542
3588
|
return isInterface(action, Action);
|
|
3543
3589
|
};
|
|
3544
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3545
|
-
return this.
|
|
3590
|
+
protoOf(_no_name_provided__qut3iv_4).c92 = function (state, action) {
|
|
3591
|
+
return this.c9l_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3546
3592
|
};
|
|
3547
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3548
|
-
return this.
|
|
3593
|
+
protoOf(_no_name_provided__qut3iv_4).b6h = function (state, action) {
|
|
3594
|
+
return this.c92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3549
3595
|
};
|
|
3550
3596
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3551
3597
|
return function ($this$singleton) {
|
|
@@ -3602,10 +3648,10 @@
|
|
|
3602
3648
|
}
|
|
3603
3649
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
3604
3650
|
return function (it) {
|
|
3605
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
3651
|
+
var tmp0_elvis_lhs = Companion_instance_4.y96(it);
|
|
3606
3652
|
var tmp;
|
|
3607
3653
|
if (tmp0_elvis_lhs == null) {
|
|
3608
|
-
var tmp1_safe_receiver = $gameServer.
|
|
3654
|
+
var tmp1_safe_receiver = $gameServer.p67().e6m_1;
|
|
3609
3655
|
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
3610
3656
|
} else {
|
|
3611
3657
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3615,10 +3661,10 @@
|
|
|
3615
3661
|
}
|
|
3616
3662
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
3617
3663
|
return function (it) {
|
|
3618
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
3664
|
+
var tmp0_elvis_lhs = Companion_instance_5.j95(it);
|
|
3619
3665
|
var tmp;
|
|
3620
3666
|
if (tmp0_elvis_lhs == null) {
|
|
3621
|
-
var tmp1_safe_receiver = $gameServer.
|
|
3667
|
+
var tmp1_safe_receiver = $gameServer.p67().e6m_1;
|
|
3622
3668
|
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
3623
3669
|
} else {
|
|
3624
3670
|
tmp = tmp0_elvis_lhs;
|
|
@@ -3637,7 +3683,7 @@
|
|
|
3637
3683
|
// Inline function 'kotlin.contracts.contract' call
|
|
3638
3684
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
3639
3685
|
}
|
|
3640
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3686
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.u9k_1));
|
|
3641
3687
|
$this$DI.l5u(coreModule($coreConfig));
|
|
3642
3688
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3643
3689
|
return Unit_instance;
|
|
@@ -3646,76 +3692,76 @@
|
|
|
3646
3692
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3647
3693
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3648
3694
|
production = production === VOID ? true : production;
|
|
3649
|
-
this.
|
|
3650
|
-
this.
|
|
3651
|
-
AppEnvironment_getInstance().
|
|
3695
|
+
this.t9k_1 = loggerCallback;
|
|
3696
|
+
this.u9k_1 = randomOrgConfig;
|
|
3697
|
+
AppEnvironment_getInstance().m6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3652
3698
|
var tmp = this;
|
|
3653
|
-
tmp.
|
|
3699
|
+
tmp.v9k_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3654
3700
|
var tmp_0 = this;
|
|
3655
|
-
tmp_0.
|
|
3701
|
+
tmp_0.w9k_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3656
3702
|
var tmp_1 = this;
|
|
3657
3703
|
// Inline function 'org.kodein.di.instance' call
|
|
3658
3704
|
var this_0 = _get_di__ndbzja(this);
|
|
3659
3705
|
// Inline function 'org.kodein.type.generic' call
|
|
3660
3706
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3661
3707
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3662
|
-
tmp_1.
|
|
3708
|
+
tmp_1.x9k_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
3663
3709
|
var tmp_3 = this;
|
|
3664
3710
|
// Inline function 'org.kodein.di.instance' call
|
|
3665
3711
|
var this_1 = _get_di__ndbzja(this);
|
|
3666
3712
|
// Inline function 'org.kodein.type.generic' call
|
|
3667
3713
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3668
3714
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3669
|
-
tmp_3.
|
|
3715
|
+
tmp_3.y9k_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
3670
3716
|
var tmp_5 = this;
|
|
3671
3717
|
// Inline function 'org.kodein.di.instance' call
|
|
3672
3718
|
var this_2 = _get_di__ndbzja(this);
|
|
3673
3719
|
// Inline function 'org.kodein.type.generic' call
|
|
3674
3720
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3675
3721
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3676
|
-
tmp_5.
|
|
3722
|
+
tmp_5.z9k_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
3677
3723
|
var tmp_7 = this;
|
|
3678
3724
|
// Inline function 'org.kodein.di.instance' call
|
|
3679
3725
|
var this_3 = _get_di__ndbzja(this);
|
|
3680
3726
|
// Inline function 'org.kodein.type.generic' call
|
|
3681
3727
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3682
3728
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3683
|
-
tmp_7.
|
|
3729
|
+
tmp_7.a9l_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
3684
3730
|
var tmp_9 = this;
|
|
3685
3731
|
// Inline function 'org.kodein.di.instance' call
|
|
3686
3732
|
var this_4 = _get_di__ndbzja(this);
|
|
3687
3733
|
// Inline function 'org.kodein.type.generic' call
|
|
3688
3734
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3689
3735
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3690
|
-
tmp_9.
|
|
3736
|
+
tmp_9.b9l_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
3691
3737
|
}
|
|
3692
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3738
|
+
protoOf(GameServerEngineControllerImpl).n9k = function () {
|
|
3693
3739
|
// Inline function 'kotlin.getValue' call
|
|
3694
|
-
var this_0 = this.
|
|
3740
|
+
var this_0 = this.x9k_1;
|
|
3695
3741
|
parser$factory_0();
|
|
3696
3742
|
return this_0.u();
|
|
3697
3743
|
};
|
|
3698
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3744
|
+
protoOf(GameServerEngineControllerImpl).p9k = function () {
|
|
3699
3745
|
// Inline function 'kotlin.getValue' call
|
|
3700
|
-
var this_0 = this.
|
|
3746
|
+
var this_0 = this.y9k_1;
|
|
3701
3747
|
helper$factory_0();
|
|
3702
3748
|
return this_0.u();
|
|
3703
3749
|
};
|
|
3704
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3750
|
+
protoOf(GameServerEngineControllerImpl).q9k = function () {
|
|
3705
3751
|
// Inline function 'kotlin.getValue' call
|
|
3706
|
-
var this_0 = this.
|
|
3752
|
+
var this_0 = this.z9k_1;
|
|
3707
3753
|
resources$factory_0();
|
|
3708
3754
|
return this_0.u();
|
|
3709
3755
|
};
|
|
3710
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3756
|
+
protoOf(GameServerEngineControllerImpl).o9k = function () {
|
|
3711
3757
|
// Inline function 'kotlin.getValue' call
|
|
3712
|
-
var this_0 = this.
|
|
3758
|
+
var this_0 = this.a9l_1;
|
|
3713
3759
|
test$factory_0();
|
|
3714
3760
|
return this_0.u();
|
|
3715
3761
|
};
|
|
3716
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3762
|
+
protoOf(GameServerEngineControllerImpl).r9k = function () {
|
|
3717
3763
|
// Inline function 'kotlin.getValue' call
|
|
3718
|
-
var this_0 = this.
|
|
3764
|
+
var this_0 = this.b9l_1;
|
|
3719
3765
|
randomPoolProvider$factory_0();
|
|
3720
3766
|
return this_0.u();
|
|
3721
3767
|
};
|
|
@@ -3725,7 +3771,7 @@
|
|
|
3725
3771
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3726
3772
|
return this.createGameEngineWithLogic();
|
|
3727
3773
|
};
|
|
3728
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3774
|
+
protoOf(GameServerEngineControllerImpl).s9k = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3729
3775
|
var combinedLogger = Companion_instance_6.qm();
|
|
3730
3776
|
var tmp;
|
|
3731
3777
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3735,8 +3781,8 @@
|
|
|
3735
3781
|
}
|
|
3736
3782
|
var fileLoggerOutput = tmp;
|
|
3737
3783
|
var tmp_0;
|
|
3738
|
-
if (!(this.
|
|
3739
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3784
|
+
if (!(this.t9k_1 == null)) {
|
|
3785
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.t9k_1));
|
|
3740
3786
|
} else {
|
|
3741
3787
|
tmp_0 = null;
|
|
3742
3788
|
}
|
|
@@ -3779,12 +3825,12 @@
|
|
|
3779
3825
|
var gameServer = tmp_1.v5v(tmp$ret$7, null);
|
|
3780
3826
|
if (!(fileLoggerOutput == null)) {
|
|
3781
3827
|
var tmp_3 = fileLoggerOutput;
|
|
3782
|
-
tmp_3.
|
|
3828
|
+
tmp_3.n96_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
3783
3829
|
combinedLogger.sm(fileLoggerOutput);
|
|
3784
3830
|
}
|
|
3785
3831
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
3786
3832
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
3787
|
-
tmp_4.
|
|
3833
|
+
tmp_4.l95_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
3788
3834
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
3789
3835
|
}
|
|
3790
3836
|
return gameServer;
|
|
@@ -3853,13 +3899,13 @@
|
|
|
3853
3899
|
}
|
|
3854
3900
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3855
3901
|
// Inline function 'kotlin.getValue' call
|
|
3856
|
-
var this_0 = $this.
|
|
3902
|
+
var this_0 = $this.f9l_1;
|
|
3857
3903
|
playerAnswerInteractor$factory_0();
|
|
3858
3904
|
return this_0.u();
|
|
3859
3905
|
}
|
|
3860
3906
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3861
3907
|
return function ($this$singleton) {
|
|
3862
|
-
return this$0.
|
|
3908
|
+
return this$0.d9l_1;
|
|
3863
3909
|
};
|
|
3864
3910
|
}
|
|
3865
3911
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3888,20 +3934,20 @@
|
|
|
3888
3934
|
return emptyMap();
|
|
3889
3935
|
}
|
|
3890
3936
|
function TestHelperImpl(logger) {
|
|
3891
|
-
this.
|
|
3937
|
+
this.d9l_1 = logger;
|
|
3892
3938
|
var tmp = this;
|
|
3893
3939
|
var tmp_0 = Companion_instance_3;
|
|
3894
|
-
tmp.
|
|
3940
|
+
tmp.e9l_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
3895
3941
|
var tmp_1 = this;
|
|
3896
3942
|
// Inline function 'org.kodein.di.instance' call
|
|
3897
|
-
var this_0 = this.
|
|
3943
|
+
var this_0 = this.e9l_1;
|
|
3898
3944
|
// Inline function 'org.kodein.type.generic' call
|
|
3899
3945
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3900
3946
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3901
|
-
tmp_1.
|
|
3947
|
+
tmp_1.f9l_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
3902
3948
|
}
|
|
3903
3949
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3904
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3950
|
+
return _get_playerAnswerInteractor__msggz1(this).h8f(playerId, table, botConfig);
|
|
3905
3951
|
};
|
|
3906
3952
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
3907
3953
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -3909,7 +3955,7 @@
|
|
|
3909
3955
|
var tmp$ret$0;
|
|
3910
3956
|
$l$block_0: {
|
|
3911
3957
|
// Inline function 'kotlin.collections.any' call
|
|
3912
|
-
var this_0 = mechanicAction.
|
|
3958
|
+
var this_0 = mechanicAction.u8s();
|
|
3913
3959
|
var tmp;
|
|
3914
3960
|
if (isInterface(this_0, Collection)) {
|
|
3915
3961
|
tmp = this_0.p();
|
|
@@ -3942,7 +3988,7 @@
|
|
|
3942
3988
|
var tmp$ret$0;
|
|
3943
3989
|
$l$block_0: {
|
|
3944
3990
|
// Inline function 'kotlin.collections.any' call
|
|
3945
|
-
var this_0 = action.
|
|
3991
|
+
var this_0 = action.u8s();
|
|
3946
3992
|
var tmp;
|
|
3947
3993
|
if (isInterface(this_0, Collection)) {
|
|
3948
3994
|
tmp = this_0.p();
|
|
@@ -4023,41 +4069,41 @@
|
|
|
4023
4069
|
return this.o5h();
|
|
4024
4070
|
});
|
|
4025
4071
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
4026
|
-
return this.
|
|
4072
|
+
return this.g6n();
|
|
4027
4073
|
});
|
|
4028
4074
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
4029
|
-
return this.
|
|
4075
|
+
return this.h6n();
|
|
4030
4076
|
});
|
|
4031
4077
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
4032
|
-
return this.
|
|
4078
|
+
return this.i6n();
|
|
4033
4079
|
});
|
|
4034
|
-
protoOf(UpdateServerConfigAction).
|
|
4080
|
+
protoOf(UpdateServerConfigAction).a6f = get_actionTag;
|
|
4035
4081
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
4036
|
-
return this.
|
|
4082
|
+
return this.a6f();
|
|
4037
4083
|
});
|
|
4038
|
-
protoOf(AddSpectatorsAction).
|
|
4084
|
+
protoOf(AddSpectatorsAction).a6f = get_actionTag;
|
|
4039
4085
|
defineProp(protoOf(AddSpectatorsAction), 'actionTag', function () {
|
|
4040
|
-
return this.
|
|
4086
|
+
return this.a6f();
|
|
4041
4087
|
});
|
|
4042
|
-
protoOf(RemoveSpectatorsAction).
|
|
4088
|
+
protoOf(RemoveSpectatorsAction).a6f = get_actionTag;
|
|
4043
4089
|
defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
|
|
4044
|
-
return this.
|
|
4090
|
+
return this.a6f();
|
|
4045
4091
|
});
|
|
4046
4092
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4047
4093
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4048
|
-
return this.
|
|
4094
|
+
return this.n9k();
|
|
4049
4095
|
});
|
|
4050
4096
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4051
|
-
return this.
|
|
4097
|
+
return this.p9k();
|
|
4052
4098
|
});
|
|
4053
4099
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4054
|
-
return this.
|
|
4100
|
+
return this.q9k();
|
|
4055
4101
|
});
|
|
4056
4102
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4057
|
-
return this.
|
|
4103
|
+
return this.o9k();
|
|
4058
4104
|
});
|
|
4059
4105
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
4060
|
-
return this.
|
|
4106
|
+
return this.r9k();
|
|
4061
4107
|
});
|
|
4062
4108
|
//endregion
|
|
4063
4109
|
//region block: init
|