client_plugin_logic_deb 1.5.19 → 1.6.20
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/Logic_Debertz-client_plugin.d.ts +3 -3
- package/Logic_Debertz-client_plugin.js +1949 -1960
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +16 -15
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +344 -326
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +267 -267
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +1 -1
- package/package.json +1 -1
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
tmp = existingNicknames;
|
|
306
306
|
}
|
|
307
307
|
existingNicknames = tmp;
|
|
308
|
-
return this.
|
|
308
|
+
return this.m8c(playerId, existingNicknames);
|
|
309
309
|
}
|
|
310
310
|
setMetadataFor(GameResources, 'GameResources', interfaceMeta);
|
|
311
311
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
middlewares = tmp_0;
|
|
336
336
|
serverConfig = serverConfig === VOID ? new ServerReduxConfig() : serverConfig;
|
|
337
337
|
logicConfig = logicConfig === VOID ? new LogicReduxConfig() : logicConfig;
|
|
338
|
-
return this.
|
|
338
|
+
return this.b8d(reducers, middlewares, serverConfig, logicConfig);
|
|
339
339
|
}
|
|
340
340
|
setMetadataFor(GameEngineController, 'GameEngineController', interfaceMeta);
|
|
341
341
|
setMetadataFor(_no_name_provided__qut3iv_8, VOID, classMeta, VOID, [Reducer]);
|
|
@@ -344,17 +344,17 @@
|
|
|
344
344
|
setMetadataFor(TestHelperImpl, 'TestHelperImpl', classMeta, VOID, [TestHelper]);
|
|
345
345
|
//endregion
|
|
346
346
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
347
|
-
this.
|
|
347
|
+
this.i86_1 = $subscriber;
|
|
348
348
|
CoroutineImpl.call(this, resultContinuation);
|
|
349
349
|
}
|
|
350
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
351
|
-
var tmp = this.
|
|
350
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).k86 = function (it, $completion) {
|
|
351
|
+
var tmp = this.l86(it, $completion);
|
|
352
352
|
tmp.ai_1 = Unit_getInstance();
|
|
353
353
|
tmp.bi_1 = null;
|
|
354
354
|
return tmp.hi();
|
|
355
355
|
};
|
|
356
356
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).ti = function (p1, $completion) {
|
|
357
|
-
return this.
|
|
357
|
+
return this.k86(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
358
358
|
};
|
|
359
359
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).hi = function () {
|
|
360
360
|
var suspendResult = this.ai_1;
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
var tmp = this.yh_1;
|
|
364
364
|
if (tmp === 0) {
|
|
365
365
|
this.zh_1 = 1;
|
|
366
|
-
this.
|
|
366
|
+
this.i86_1(this.j86_1);
|
|
367
367
|
return Unit_getInstance();
|
|
368
368
|
} else if (tmp === 1) {
|
|
369
369
|
throw this.bi_1;
|
|
@@ -374,21 +374,21 @@
|
|
|
374
374
|
}
|
|
375
375
|
while (true);
|
|
376
376
|
};
|
|
377
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
378
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
379
|
-
i.
|
|
377
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).l86 = function (it, completion) {
|
|
378
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.i86_1, completion);
|
|
379
|
+
i.j86_1 = it;
|
|
380
380
|
return i;
|
|
381
381
|
};
|
|
382
382
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
383
383
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
384
384
|
var l = function (it, $completion) {
|
|
385
|
-
return i.
|
|
385
|
+
return i.k86(it, $completion);
|
|
386
386
|
};
|
|
387
387
|
l.$arity = 1;
|
|
388
388
|
return l;
|
|
389
389
|
}
|
|
390
390
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
391
|
-
this.
|
|
391
|
+
this.u86_1 = $subscriber;
|
|
392
392
|
CoroutineImpl.call(this, resultContinuation);
|
|
393
393
|
}
|
|
394
394
|
protoOf(GameServer$subscribeWith$slambda$slambda).h59 = function (it, $completion) {
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
var tmp = this.yh_1;
|
|
408
408
|
if (tmp === 0) {
|
|
409
409
|
this.zh_1 = 1;
|
|
410
|
-
this.
|
|
410
|
+
this.u86_1(this.v86_1);
|
|
411
411
|
return Unit_getInstance();
|
|
412
412
|
} else if (tmp === 1) {
|
|
413
413
|
throw this.bi_1;
|
|
@@ -419,8 +419,8 @@
|
|
|
419
419
|
while (true);
|
|
420
420
|
};
|
|
421
421
|
protoOf(GameServer$subscribeWith$slambda$slambda).i59 = function (it, completion) {
|
|
422
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
423
|
-
i.
|
|
422
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.u86_1, completion);
|
|
423
|
+
i.v86_1 = it;
|
|
424
424
|
return i;
|
|
425
425
|
};
|
|
426
426
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
@@ -434,28 +434,28 @@
|
|
|
434
434
|
function _get_logger__rkp4sl($this) {
|
|
435
435
|
// Inline function 'kotlin.getValue' call
|
|
436
436
|
logger$factory_0();
|
|
437
|
-
return $this.
|
|
437
|
+
return $this.y86_1.l1();
|
|
438
438
|
}
|
|
439
439
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
440
440
|
// Inline function 'kotlin.getValue' call
|
|
441
441
|
toClientEventsObserver$factory_0();
|
|
442
|
-
return $this.
|
|
442
|
+
return $this.z86_1.l1();
|
|
443
443
|
}
|
|
444
444
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
445
|
-
this.
|
|
445
|
+
this.b87_1 = function_0;
|
|
446
446
|
}
|
|
447
447
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).ry = function (value, $completion) {
|
|
448
|
-
return this.
|
|
448
|
+
return this.b87_1(value, $completion);
|
|
449
449
|
};
|
|
450
450
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
451
|
-
this.
|
|
451
|
+
this.c87_1 = function_0;
|
|
452
452
|
}
|
|
453
453
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).ry = function (value, $completion) {
|
|
454
|
-
return this.
|
|
454
|
+
return this.c87_1(value, $completion);
|
|
455
455
|
};
|
|
456
456
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
457
|
+
this.l87_1 = this$0;
|
|
458
|
+
this.m87_1 = $subscriber;
|
|
459
459
|
CoroutineImpl.call(this, resultContinuation);
|
|
460
460
|
}
|
|
461
461
|
protoOf(GameServer$subscribeToClientAction$slambda).a15 = function ($this$launchWorker, $completion) {
|
|
@@ -476,8 +476,8 @@
|
|
|
476
476
|
case 0:
|
|
477
477
|
this.zh_1 = 2;
|
|
478
478
|
this.yh_1 = 1;
|
|
479
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
480
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
479
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.l87_1).d6j();
|
|
480
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.m87_1, null);
|
|
481
481
|
suspendResult = tmp_0.ey(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
482
482
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
483
483
|
return suspendResult;
|
|
@@ -501,8 +501,8 @@
|
|
|
501
501
|
while (true);
|
|
502
502
|
};
|
|
503
503
|
protoOf(GameServer$subscribeToClientAction$slambda).b15 = function ($this$launchWorker, completion) {
|
|
504
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
505
|
-
i.
|
|
504
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.l87_1, this.m87_1, completion);
|
|
505
|
+
i.n87_1 = $this$launchWorker;
|
|
506
506
|
return i;
|
|
507
507
|
};
|
|
508
508
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -514,8 +514,8 @@
|
|
|
514
514
|
return l;
|
|
515
515
|
}
|
|
516
516
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
517
|
+
this.w87_1 = this$0;
|
|
518
|
+
this.x87_1 = $subscriber;
|
|
519
519
|
CoroutineImpl.call(this, resultContinuation);
|
|
520
520
|
}
|
|
521
521
|
protoOf(GameServer$subscribeWith$slambda).a15 = function ($this$launchWorker, $completion) {
|
|
@@ -536,8 +536,8 @@
|
|
|
536
536
|
case 0:
|
|
537
537
|
this.zh_1 = 2;
|
|
538
538
|
this.yh_1 = 1;
|
|
539
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
540
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
539
|
+
var tmp_0 = distinctUntilChanged(this.w87_1.a3a());
|
|
540
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.x87_1, null);
|
|
541
541
|
suspendResult = tmp_0.ey(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
542
542
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
543
543
|
return suspendResult;
|
|
@@ -561,8 +561,8 @@
|
|
|
561
561
|
while (true);
|
|
562
562
|
};
|
|
563
563
|
protoOf(GameServer$subscribeWith$slambda).b15 = function ($this$launchWorker, completion) {
|
|
564
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
565
|
-
i.
|
|
564
|
+
var i = new GameServer$subscribeWith$slambda(this.w87_1, this.x87_1, completion);
|
|
565
|
+
i.y87_1 = $this$launchWorker;
|
|
566
566
|
return i;
|
|
567
567
|
};
|
|
568
568
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
return l;
|
|
575
575
|
}
|
|
576
576
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
577
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_getInstance_6().
|
|
577
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_getInstance_6().z87()) : preloadedState;
|
|
578
578
|
var tmp;
|
|
579
579
|
if (externalReducers === VOID) {
|
|
580
580
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -598,21 +598,21 @@
|
|
|
598
598
|
// Inline function 'org.kodein.type.generic' call
|
|
599
599
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
600
600
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
601
|
-
tmp_1.
|
|
601
|
+
tmp_1.y86_1 = Instance(di, tmp$ret$2, null).e2r(this, logger$factory());
|
|
602
602
|
var tmp_3 = this;
|
|
603
603
|
// Inline function 'org.kodein.di.instance' call
|
|
604
604
|
var tmp$ret$4;
|
|
605
605
|
// Inline function 'org.kodein.type.generic' call
|
|
606
606
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
607
607
|
tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
608
|
-
tmp_3.
|
|
608
|
+
tmp_3.z86_1 = Instance(di, tmp$ret$4, null).e2r(this, toClientEventsObserver$factory());
|
|
609
609
|
var tmp_5 = this;
|
|
610
610
|
var tmp0_externalMiddlewares = plus(storeContract.w4y(), externalMiddlewares);
|
|
611
611
|
var tmp1_externalReducers = plus(storeContract.v4y(), externalReducers);
|
|
612
|
-
tmp_5.
|
|
612
|
+
tmp_5.a87_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
613
613
|
}
|
|
614
614
|
protoOf(GameServer).k39 = function () {
|
|
615
|
-
return this.
|
|
615
|
+
return this.a87_1;
|
|
616
616
|
};
|
|
617
617
|
protoOf(GameServer).e3b = function () {
|
|
618
618
|
return this.ck().f3b().id;
|
|
@@ -636,33 +636,33 @@
|
|
|
636
636
|
};
|
|
637
637
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
638
638
|
_get_logger__rkp4sl(this).d(VOID, 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
639
|
-
this.
|
|
639
|
+
this.a87_1.s32().dispatch(action);
|
|
640
640
|
};
|
|
641
641
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
642
642
|
_get_logger__rkp4sl(this).d(VOID, 'playerLostConnection: ' + playerId);
|
|
643
|
-
var tmp = this.
|
|
643
|
+
var tmp = this.a87_1.s32().dispatch;
|
|
644
644
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
645
645
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
646
646
|
};
|
|
647
647
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
648
648
|
_get_logger__rkp4sl(this).d(VOID, 'playerLive: ' + playerId);
|
|
649
|
-
var tmp = this.
|
|
649
|
+
var tmp = this.a87_1.s32().dispatch;
|
|
650
650
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
651
651
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
652
652
|
};
|
|
653
653
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
654
654
|
_get_logger__rkp4sl(this).d(VOID, 'playerLeft: ' + playerId);
|
|
655
|
-
var tmp = this.
|
|
655
|
+
var tmp = this.a87_1.s32().dispatch;
|
|
656
656
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
657
657
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
658
658
|
};
|
|
659
659
|
protoOf(GameServer).roomOnCreate = function (roomId, gameCreatorId, config, users) {
|
|
660
660
|
var usersList = toList(users);
|
|
661
661
|
var gameCreatorUser = getPlayer(usersList, gameCreatorId);
|
|
662
|
-
this.
|
|
662
|
+
this.a87_1.s32().dispatch(new RoomWasCreatedAction(roomId, gameCreatorId, config, sortWithItem(usersList, gameCreatorUser)));
|
|
663
663
|
};
|
|
664
664
|
protoOf(GameServer).roomOnDelete = function () {
|
|
665
|
-
this.
|
|
665
|
+
this.a87_1.s32().dispatch(RoomWasDeletedAction_getInstance());
|
|
666
666
|
};
|
|
667
667
|
protoOf(GameServer).clear = function () {
|
|
668
668
|
protoOf(BaseGame).t2.call(this);
|
|
@@ -671,13 +671,13 @@
|
|
|
671
671
|
return this.clear();
|
|
672
672
|
};
|
|
673
673
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
674
|
-
this.
|
|
674
|
+
this.a87_1.s32().dispatch(new UpdateServerConfigAction(get_serverState(this.a87_1.s32().state).a88_1.c88(enabled)));
|
|
675
675
|
};
|
|
676
676
|
protoOf(GameServer).shutdown = function (reason) {
|
|
677
|
-
if (this.
|
|
677
|
+
if (this.a87_1.s32().state.g3b()) {
|
|
678
678
|
var tmp0_elvis_lhs = toDomainEnumSafe(reason, get_serverShutdownReasonMapping());
|
|
679
679
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
680
|
-
var tmp = this.
|
|
680
|
+
var tmp = this.a87_1.s32().dispatch;
|
|
681
681
|
var tmp_0;
|
|
682
682
|
switch (shutdownReason.m5_1) {
|
|
683
683
|
case 0:
|
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
tmp(new FinishingGameMechanicAction(tmp_0));
|
|
694
694
|
} else {
|
|
695
695
|
_get_logger__rkp4sl(this).w(VOID, "GameServer: can't shutdown engine without table");
|
|
696
|
-
this.
|
|
696
|
+
this.a87_1.s32().dispatch(ClearAction_getInstance());
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
699
|
function logger$factory() {
|
|
@@ -758,25 +758,25 @@
|
|
|
758
758
|
this.enabledCombinedEvents = enabledCombinedEvents;
|
|
759
759
|
this.delayToAskBotMillis = delayToAskBotMillis;
|
|
760
760
|
}
|
|
761
|
-
protoOf(ServerReduxConfig).
|
|
761
|
+
protoOf(ServerReduxConfig).d88 = function () {
|
|
762
762
|
return this.finishGameIfAllBots;
|
|
763
763
|
};
|
|
764
|
-
protoOf(ServerReduxConfig).
|
|
764
|
+
protoOf(ServerReduxConfig).e88 = function () {
|
|
765
765
|
return this.waitForPlayerToReconnect;
|
|
766
766
|
};
|
|
767
|
-
protoOf(ServerReduxConfig).
|
|
767
|
+
protoOf(ServerReduxConfig).f88 = function () {
|
|
768
768
|
return this.waitForPlayerToReconnectTimeOutMillis;
|
|
769
769
|
};
|
|
770
|
-
protoOf(ServerReduxConfig).
|
|
770
|
+
protoOf(ServerReduxConfig).g88 = function () {
|
|
771
771
|
return this.closeIfBotsAtFinish;
|
|
772
772
|
};
|
|
773
|
-
protoOf(ServerReduxConfig).
|
|
773
|
+
protoOf(ServerReduxConfig).h88 = function () {
|
|
774
774
|
return this.botReplacesPlayerAfterTimeout;
|
|
775
775
|
};
|
|
776
|
-
protoOf(ServerReduxConfig).
|
|
776
|
+
protoOf(ServerReduxConfig).i88 = function () {
|
|
777
777
|
return this.enabledCombinedEvents;
|
|
778
778
|
};
|
|
779
|
-
protoOf(ServerReduxConfig).
|
|
779
|
+
protoOf(ServerReduxConfig).j88 = function () {
|
|
780
780
|
return this.delayToAskBotMillis;
|
|
781
781
|
};
|
|
782
782
|
protoOf(ServerReduxConfig).v3 = function () {
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
protoOf(ServerReduxConfig).n2w = function () {
|
|
801
801
|
return this.delayToAskBotMillis;
|
|
802
802
|
};
|
|
803
|
-
protoOf(ServerReduxConfig).
|
|
803
|
+
protoOf(ServerReduxConfig).k88 = function (finishGameIfAllBots, waitForPlayerToReconnect, waitForPlayerToReconnectTimeOutMillis, closeIfBotsAtFinish, botReplacesPlayerAfterTimeout, enabledCombinedEvents, delayToAskBotMillis) {
|
|
804
804
|
return new ServerReduxConfig(finishGameIfAllBots, waitForPlayerToReconnect, waitForPlayerToReconnectTimeOutMillis, closeIfBotsAtFinish, botReplacesPlayerAfterTimeout, enabledCombinedEvents, delayToAskBotMillis);
|
|
805
805
|
};
|
|
806
806
|
protoOf(ServerReduxConfig).copy = function (finishGameIfAllBots, waitForPlayerToReconnect, waitForPlayerToReconnectTimeOutMillis, closeIfBotsAtFinish, botReplacesPlayerAfterTimeout, enabledCombinedEvents, delayToAskBotMillis, $super) {
|
|
@@ -811,7 +811,7 @@
|
|
|
811
811
|
botReplacesPlayerAfterTimeout = botReplacesPlayerAfterTimeout === VOID ? this.botReplacesPlayerAfterTimeout : botReplacesPlayerAfterTimeout;
|
|
812
812
|
enabledCombinedEvents = enabledCombinedEvents === VOID ? this.enabledCombinedEvents : enabledCombinedEvents;
|
|
813
813
|
delayToAskBotMillis = delayToAskBotMillis === VOID ? this.delayToAskBotMillis : delayToAskBotMillis;
|
|
814
|
-
return this.
|
|
814
|
+
return this.k88(finishGameIfAllBots, waitForPlayerToReconnect, waitForPlayerToReconnectTimeOutMillis, closeIfBotsAtFinish, botReplacesPlayerAfterTimeout, enabledCombinedEvents, delayToAskBotMillis);
|
|
815
815
|
};
|
|
816
816
|
protoOf(ServerReduxConfig).toString = function () {
|
|
817
817
|
return 'ServerReduxConfig(finishGameIfAllBots=' + this.finishGameIfAllBots + ', waitForPlayerToReconnect=' + this.waitForPlayerToReconnect + ', waitForPlayerToReconnectTimeOutMillis=' + this.waitForPlayerToReconnectTimeOutMillis + ', closeIfBotsAtFinish=' + this.closeIfBotsAtFinish + ', botReplacesPlayerAfterTimeout=' + this.botReplacesPlayerAfterTimeout + ', enabledCombinedEvents=' + this.enabledCombinedEvents + ', delayToAskBotMillis=' + this.delayToAskBotMillis + ')';
|
|
@@ -876,16 +876,16 @@
|
|
|
876
876
|
return tmp instanceof ServerUserPayload ? tmp : THROW_CCE();
|
|
877
877
|
}
|
|
878
878
|
function ServerConfig(canStartNewGame) {
|
|
879
|
-
this.
|
|
879
|
+
this.b88_1 = canStartNewGame;
|
|
880
880
|
}
|
|
881
|
-
protoOf(ServerConfig).
|
|
881
|
+
protoOf(ServerConfig).c88 = function (canStartNewGame) {
|
|
882
882
|
return new ServerConfig(canStartNewGame);
|
|
883
883
|
};
|
|
884
884
|
protoOf(ServerConfig).toString = function () {
|
|
885
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
885
|
+
return 'ServerConfig(canStartNewGame=' + this.b88_1 + ')';
|
|
886
886
|
};
|
|
887
887
|
protoOf(ServerConfig).hashCode = function () {
|
|
888
|
-
return this.
|
|
888
|
+
return this.b88_1 | 0;
|
|
889
889
|
};
|
|
890
890
|
protoOf(ServerConfig).equals = function (other) {
|
|
891
891
|
if (this === other)
|
|
@@ -893,7 +893,7 @@
|
|
|
893
893
|
if (!(other instanceof ServerConfig))
|
|
894
894
|
return false;
|
|
895
895
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
896
|
-
if (!(this.
|
|
896
|
+
if (!(this.b88_1 === tmp0_other_with_cast.b88_1))
|
|
897
897
|
return false;
|
|
898
898
|
return true;
|
|
899
899
|
};
|
|
@@ -1108,17 +1108,17 @@
|
|
|
1108
1108
|
function ToClientEventsObserver() {
|
|
1109
1109
|
}
|
|
1110
1110
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda($actions, resultContinuation) {
|
|
1111
|
-
this.
|
|
1111
|
+
this.u88_1 = $actions;
|
|
1112
1112
|
CoroutineImpl.call(this, resultContinuation);
|
|
1113
1113
|
}
|
|
1114
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1115
|
-
var tmp = this.
|
|
1114
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).c89 = function ($this$flow, $completion) {
|
|
1115
|
+
var tmp = this.d89($this$flow, $completion);
|
|
1116
1116
|
tmp.ai_1 = Unit_getInstance();
|
|
1117
1117
|
tmp.bi_1 = null;
|
|
1118
1118
|
return tmp.hi();
|
|
1119
1119
|
};
|
|
1120
1120
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).ti = function (p1, $completion) {
|
|
1121
|
-
return this.
|
|
1121
|
+
return this.c89((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1122
1122
|
};
|
|
1123
1123
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).hi = function () {
|
|
1124
1124
|
var suspendResult = this.ai_1;
|
|
@@ -1128,14 +1128,14 @@
|
|
|
1128
1128
|
switch (tmp) {
|
|
1129
1129
|
case 0:
|
|
1130
1130
|
this.zh_1 = 8;
|
|
1131
|
-
this.
|
|
1132
|
-
if (this.
|
|
1131
|
+
this.w88_1 = this.u88_1.i();
|
|
1132
|
+
if (this.w88_1 === 0) {
|
|
1133
1133
|
this.yh_1 = 7;
|
|
1134
1134
|
continue $sm;
|
|
1135
1135
|
} else {
|
|
1136
|
-
if (this.
|
|
1136
|
+
if (this.w88_1 === 1) {
|
|
1137
1137
|
this.yh_1 = 6;
|
|
1138
|
-
suspendResult = this.
|
|
1138
|
+
suspendResult = this.v88_1.ry(single(this.u88_1), this);
|
|
1139
1139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1140
1140
|
return suspendResult;
|
|
1141
1141
|
}
|
|
@@ -1143,7 +1143,7 @@
|
|
|
1143
1143
|
} else {
|
|
1144
1144
|
var tmp_0 = this;
|
|
1145
1145
|
var tmp0_groupByTo = LinkedHashMap_init_$Create$();
|
|
1146
|
-
var tmp0_iterator = this.
|
|
1146
|
+
var tmp0_iterator = this.u88_1.f();
|
|
1147
1147
|
while (tmp0_iterator.g()) {
|
|
1148
1148
|
var element = tmp0_iterator.h();
|
|
1149
1149
|
var key = element.deliveryPayload;
|
|
@@ -1159,35 +1159,35 @@
|
|
|
1159
1159
|
var list = tmp_1;
|
|
1160
1160
|
list.a(element);
|
|
1161
1161
|
}
|
|
1162
|
-
tmp_0.
|
|
1162
|
+
tmp_0.x88_1 = tmp0_groupByTo;
|
|
1163
1163
|
var tmp_2 = this;
|
|
1164
|
-
tmp_2.
|
|
1164
|
+
tmp_2.y88_1 = this.x88_1.q().f();
|
|
1165
1165
|
this.yh_1 = 1;
|
|
1166
1166
|
continue $sm;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
1170
|
case 1:
|
|
1171
|
-
if (!this.
|
|
1171
|
+
if (!this.y88_1.g()) {
|
|
1172
1172
|
this.yh_1 = 5;
|
|
1173
1173
|
continue $sm;
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
|
-
this.
|
|
1176
|
+
this.z88_1 = this.y88_1.h();
|
|
1177
1177
|
var tmp_3 = this;
|
|
1178
|
-
tmp_3.
|
|
1178
|
+
tmp_3.a89_1 = this.z88_1.j1();
|
|
1179
1179
|
var tmp_4 = this;
|
|
1180
|
-
tmp_4.
|
|
1181
|
-
if (this.
|
|
1180
|
+
tmp_4.b89_1 = this.z88_1.l1();
|
|
1181
|
+
if (this.b89_1.i() === 1) {
|
|
1182
1182
|
this.yh_1 = 3;
|
|
1183
|
-
suspendResult = this.
|
|
1183
|
+
suspendResult = this.v88_1.ry(single(this.b89_1), this);
|
|
1184
1184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1185
1185
|
return suspendResult;
|
|
1186
1186
|
}
|
|
1187
1187
|
continue $sm;
|
|
1188
1188
|
} else {
|
|
1189
1189
|
this.yh_1 = 2;
|
|
1190
|
-
suspendResult = this.
|
|
1190
|
+
suspendResult = this.v88_1.ry(new CombinedToClientAction(this.a89_1, this.b89_1), this);
|
|
1191
1191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1192
1192
|
return suspendResult;
|
|
1193
1193
|
}
|
|
@@ -1225,15 +1225,15 @@
|
|
|
1225
1225
|
}
|
|
1226
1226
|
while (true);
|
|
1227
1227
|
};
|
|
1228
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1229
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1230
|
-
i.
|
|
1228
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).d89 = function ($this$flow, completion) {
|
|
1229
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.u88_1, completion);
|
|
1230
|
+
i.v88_1 = $this$flow;
|
|
1231
1231
|
return i;
|
|
1232
1232
|
};
|
|
1233
1233
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0($actions, resultContinuation) {
|
|
1234
1234
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda($actions, resultContinuation);
|
|
1235
1235
|
var l = function ($this$flow, $completion) {
|
|
1236
|
-
return i.
|
|
1236
|
+
return i.c89($this$flow, $completion);
|
|
1237
1237
|
};
|
|
1238
1238
|
l.$arity = 1;
|
|
1239
1239
|
return l;
|
|
@@ -1241,14 +1241,14 @@
|
|
|
1241
1241
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(resultContinuation) {
|
|
1242
1242
|
CoroutineImpl.call(this, resultContinuation);
|
|
1243
1243
|
}
|
|
1244
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1245
|
-
var tmp = this.
|
|
1244
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).n89 = function (actions, $completion) {
|
|
1245
|
+
var tmp = this.o89(actions, $completion);
|
|
1246
1246
|
tmp.ai_1 = Unit_getInstance();
|
|
1247
1247
|
tmp.bi_1 = null;
|
|
1248
1248
|
return tmp.hi();
|
|
1249
1249
|
};
|
|
1250
1250
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).ti = function (p1, $completion) {
|
|
1251
|
-
return this.
|
|
1251
|
+
return this.n89((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion);
|
|
1252
1252
|
};
|
|
1253
1253
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).hi = function () {
|
|
1254
1254
|
var suspendResult = this.ai_1;
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
var tmp = this.yh_1;
|
|
1258
1258
|
if (tmp === 0) {
|
|
1259
1259
|
this.zh_1 = 1;
|
|
1260
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1260
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.m89_1, null));
|
|
1261
1261
|
} else if (tmp === 1) {
|
|
1262
1262
|
throw this.bi_1;
|
|
1263
1263
|
}
|
|
@@ -1267,43 +1267,43 @@
|
|
|
1267
1267
|
}
|
|
1268
1268
|
while (true);
|
|
1269
1269
|
};
|
|
1270
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1270
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).o89 = function (actions, completion) {
|
|
1271
1271
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(completion);
|
|
1272
|
-
i.
|
|
1272
|
+
i.m89_1 = actions;
|
|
1273
1273
|
return i;
|
|
1274
1274
|
};
|
|
1275
1275
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(resultContinuation) {
|
|
1276
1276
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(resultContinuation);
|
|
1277
1277
|
var l = function (actions, $completion) {
|
|
1278
|
-
return i.
|
|
1278
|
+
return i.n89(actions, $completion);
|
|
1279
1279
|
};
|
|
1280
1280
|
l.$arity = 1;
|
|
1281
1281
|
return l;
|
|
1282
1282
|
}
|
|
1283
1283
|
function ToClientEventsObserverImpl(serverReduxConfig) {
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1284
|
+
this.p89_1 = serverReduxConfig;
|
|
1285
|
+
this.q89_1 = MutableSharedFlow();
|
|
1286
1286
|
}
|
|
1287
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1288
|
-
return this.
|
|
1287
|
+
protoOf(ToClientEventsObserverImpl).l88 = function (fromEvent, $completion) {
|
|
1288
|
+
return this.q89_1.ry(fromEvent, $completion);
|
|
1289
1289
|
};
|
|
1290
1290
|
protoOf(ToClientEventsObserverImpl).d6j = function () {
|
|
1291
|
-
if (!this.
|
|
1292
|
-
return this.
|
|
1291
|
+
if (!this.p89_1.enabledCombinedEvents) {
|
|
1292
|
+
return this.q89_1;
|
|
1293
1293
|
}
|
|
1294
|
-
var tmp = timedChunk(this.
|
|
1294
|
+
var tmp = timedChunk(this.q89_1, new Long(50, 0));
|
|
1295
1295
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(null));
|
|
1296
1296
|
};
|
|
1297
1297
|
function waitPlayerOrDisconnect($this, connectionState, table, player, waitForPlayer, sendFinishToClientActions) {
|
|
1298
|
-
if ($this.
|
|
1298
|
+
if ($this.r89_1.waitForPlayerToReconnect ? waitForPlayer : false) {
|
|
1299
1299
|
var tmp0_roomId = table.id;
|
|
1300
1300
|
var tmp1_players = table.playersConnections;
|
|
1301
1301
|
return getWaitingPlayerActions($this, tmp0_roomId, connectionState, player, tmp1_players, sendFinishToClientActions);
|
|
1302
1302
|
}
|
|
1303
1303
|
var isLivePlayersExists_0 = isLivePlayersExists($this, player.t2s(), table.players);
|
|
1304
|
-
var canRemoveGameWhenNoPlayers = $this.
|
|
1304
|
+
var canRemoveGameWhenNoPlayers = $this.r89_1.finishGameIfAllBots ? !isLivePlayersExists_0 : false;
|
|
1305
1305
|
var tmp;
|
|
1306
|
-
if (canRemoveGameWhenNoPlayers ? true : !$this.
|
|
1306
|
+
if (canRemoveGameWhenNoPlayers ? true : !$this.r89_1.botReplacesPlayerAfterTimeout) {
|
|
1307
1307
|
tmp = listOf(getFinishingAction($this, connectionState, player, table.playersConnections));
|
|
1308
1308
|
} else {
|
|
1309
1309
|
tmp = getPlayerDisconnectedActions($this, connectionState, table.id, player, table.playersConnections, sendFinishToClientActions);
|
|
@@ -1351,7 +1351,7 @@
|
|
|
1351
1351
|
tmp$ret$3 = false;
|
|
1352
1352
|
}
|
|
1353
1353
|
var isLivePlayersExists = tmp$ret$3;
|
|
1354
|
-
var tmp_0 = 'finishGameIfAllBots: ' + $this.
|
|
1354
|
+
var tmp_0 = 'finishGameIfAllBots: ' + $this.r89_1.finishGameIfAllBots + ', ';
|
|
1355
1355
|
// Inline function 'kotlin.collections.map' call
|
|
1356
1356
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1357
1357
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -1363,7 +1363,7 @@
|
|
|
1363
1363
|
tmp$ret$5 = to(item.t2s(), item.x3e_1.q2v().f2u_1.l5_1);
|
|
1364
1364
|
tmp0_mapTo.a(tmp$ret$5);
|
|
1365
1365
|
}
|
|
1366
|
-
$this.
|
|
1366
|
+
$this.s89_1.d('ReconnectionInteractor', tmp_0 + ('isLivePlayersExists: ' + isLivePlayersExists + ', ' + tmp0_mapTo));
|
|
1367
1367
|
return isLivePlayersExists;
|
|
1368
1368
|
}
|
|
1369
1369
|
function getPlayerConnectedActions($this, player, table) {
|
|
@@ -1371,7 +1371,7 @@
|
|
|
1371
1371
|
var actionsList = ArrayList_init_$Create$();
|
|
1372
1372
|
actionsList.j(listOf(getContinueAction($this, player, table)));
|
|
1373
1373
|
if (player.x3e_1.c2u()) {
|
|
1374
|
-
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.t2s(), player.x3e_1.b2v())), new StartTimerAction(new PlayerTurnTimerTag(player.t2s(), player.x3e_1.b2v(), true), getContinuePlayerTurnTimerDelayMillis(player, $this.
|
|
1374
|
+
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.t2s(), player.x3e_1.b2v())), new StartTimerAction(new PlayerTurnTimerTag(player.t2s(), player.x3e_1.b2v(), true), getContinuePlayerTurnTimerDelayMillis(player, $this.s89_1), VOID, TimerType_DELAY_getInstance())]));
|
|
1375
1375
|
}
|
|
1376
1376
|
return actionsList;
|
|
1377
1377
|
}
|
|
@@ -1425,17 +1425,17 @@
|
|
|
1425
1425
|
var tmp$ret$1;
|
|
1426
1426
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
1427
1427
|
Companion_getInstance_1();
|
|
1428
|
-
var tmp1_get_milliseconds_q8qle6 = $this.
|
|
1428
|
+
var tmp1_get_milliseconds_q8qle6 = $this.r89_1.waitForPlayerToReconnectTimeOutMillis;
|
|
1429
1429
|
tmp$ret$1 = toDuration(tmp1_get_milliseconds_q8qle6, DurationUnit_MILLISECONDS_getInstance());
|
|
1430
1430
|
var reconnectUntilTime = tmp.u2r(tmp$ret$1);
|
|
1431
|
-
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.t2s(), PlayerConnectionState_DISCONNECTING_getInstance(), false, reconnectUntilTime.toString()), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(player.t2s(), connectionState), toLong($this.
|
|
1431
|
+
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.t2s(), PlayerConnectionState_DISCONNECTING_getInstance(), false, reconnectUntilTime.toString()), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(player.t2s(), connectionState), toLong($this.r89_1.waitForPlayerToReconnectTimeOutMillis), VOID, TimerType_DELAY_getInstance())]));
|
|
1432
1432
|
return actionsList;
|
|
1433
1433
|
}
|
|
1434
1434
|
function ReconnectionInteractor(serverConfig, logger) {
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1435
|
+
this.r89_1 = serverConfig;
|
|
1436
|
+
this.s89_1 = logger;
|
|
1437
1437
|
}
|
|
1438
|
-
protoOf(ReconnectionInteractor).
|
|
1438
|
+
protoOf(ReconnectionInteractor).t89 = function (newConnectionState, playerId, table, afterReconnection) {
|
|
1439
1439
|
var player = getPlayer(table.players, playerId);
|
|
1440
1440
|
var tmp;
|
|
1441
1441
|
switch (newConnectionState.m5_1) {
|
|
@@ -1444,8 +1444,8 @@
|
|
|
1444
1444
|
break;
|
|
1445
1445
|
case 3:
|
|
1446
1446
|
var isLivePlayersExists_0 = isLivePlayersExists(this, player.t2s(), table.players);
|
|
1447
|
-
var canRemoveGameWhenNoPlayers = this.
|
|
1448
|
-
var canRemoveGameWhenGameFinished = table.sceneInfo.v4l() ? this.
|
|
1447
|
+
var canRemoveGameWhenNoPlayers = this.r89_1.finishGameIfAllBots ? !isLivePlayersExists_0 : false;
|
|
1448
|
+
var canRemoveGameWhenGameFinished = table.sceneInfo.v4l() ? this.r89_1.finishGameIfAllBots : false;
|
|
1449
1449
|
var tmp_0;
|
|
1450
1450
|
if (canRemoveGameWhenNoPlayers ? true : canRemoveGameWhenGameFinished) {
|
|
1451
1451
|
tmp_0 = listOf(getFinishingAction(this, newConnectionState, player, table.playersConnections));
|
|
@@ -1476,13 +1476,13 @@
|
|
|
1476
1476
|
return tmp;
|
|
1477
1477
|
};
|
|
1478
1478
|
function UpdateServerConfigAction(serverConfig) {
|
|
1479
|
-
this.
|
|
1479
|
+
this.u89_1 = serverConfig;
|
|
1480
1480
|
}
|
|
1481
1481
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
1482
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
1482
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.u89_1 + ')';
|
|
1483
1483
|
};
|
|
1484
1484
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
1485
|
-
return this.
|
|
1485
|
+
return this.u89_1.hashCode();
|
|
1486
1486
|
};
|
|
1487
1487
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
1488
1488
|
if (this === other)
|
|
@@ -1490,25 +1490,25 @@
|
|
|
1490
1490
|
if (!(other instanceof UpdateServerConfigAction))
|
|
1491
1491
|
return false;
|
|
1492
1492
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
1493
|
-
if (!this.
|
|
1493
|
+
if (!this.u89_1.equals(tmp0_other_with_cast.u89_1))
|
|
1494
1494
|
return false;
|
|
1495
1495
|
return true;
|
|
1496
1496
|
};
|
|
1497
1497
|
function RoomWasCreatedAction(roomId, gameCreatorPlayerId, config, users) {
|
|
1498
1498
|
RoomAction.call(this);
|
|
1499
|
-
this.
|
|
1500
|
-
this.
|
|
1501
|
-
this.
|
|
1502
|
-
this.
|
|
1499
|
+
this.v89_1 = roomId;
|
|
1500
|
+
this.w89_1 = gameCreatorPlayerId;
|
|
1501
|
+
this.x89_1 = config;
|
|
1502
|
+
this.y89_1 = users;
|
|
1503
1503
|
}
|
|
1504
1504
|
protoOf(RoomWasCreatedAction).toString = function () {
|
|
1505
|
-
return 'RoomWasCreatedAction(roomId=' + this.
|
|
1505
|
+
return 'RoomWasCreatedAction(roomId=' + this.v89_1 + ', gameCreatorPlayerId=' + this.w89_1 + ', config=' + this.x89_1 + ', users=' + this.y89_1 + ')';
|
|
1506
1506
|
};
|
|
1507
1507
|
protoOf(RoomWasCreatedAction).hashCode = function () {
|
|
1508
|
-
var result = getStringHashCode(this.
|
|
1509
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1510
|
-
result = imul(result, 31) + this.
|
|
1511
|
-
result = imul(result, 31) + hashCode(this.
|
|
1508
|
+
var result = getStringHashCode(this.v89_1);
|
|
1509
|
+
result = imul(result, 31) + getStringHashCode(this.w89_1) | 0;
|
|
1510
|
+
result = imul(result, 31) + this.x89_1.hashCode() | 0;
|
|
1511
|
+
result = imul(result, 31) + hashCode(this.y89_1) | 0;
|
|
1512
1512
|
return result;
|
|
1513
1513
|
};
|
|
1514
1514
|
protoOf(RoomWasCreatedAction).equals = function (other) {
|
|
@@ -1517,13 +1517,13 @@
|
|
|
1517
1517
|
if (!(other instanceof RoomWasCreatedAction))
|
|
1518
1518
|
return false;
|
|
1519
1519
|
var tmp0_other_with_cast = other instanceof RoomWasCreatedAction ? other : THROW_CCE();
|
|
1520
|
-
if (!(this.u89_1 === tmp0_other_with_cast.u89_1))
|
|
1521
|
-
return false;
|
|
1522
1520
|
if (!(this.v89_1 === tmp0_other_with_cast.v89_1))
|
|
1523
1521
|
return false;
|
|
1524
|
-
if (!this.w89_1
|
|
1522
|
+
if (!(this.w89_1 === tmp0_other_with_cast.w89_1))
|
|
1523
|
+
return false;
|
|
1524
|
+
if (!this.x89_1.equals(tmp0_other_with_cast.x89_1))
|
|
1525
1525
|
return false;
|
|
1526
|
-
if (!equals(this.
|
|
1526
|
+
if (!equals(this.y89_1, tmp0_other_with_cast.y89_1))
|
|
1527
1527
|
return false;
|
|
1528
1528
|
return true;
|
|
1529
1529
|
};
|
|
@@ -1545,112 +1545,112 @@
|
|
|
1545
1545
|
function _get_asyncProvider__jbpyhw($this) {
|
|
1546
1546
|
// Inline function 'kotlin.getValue' call
|
|
1547
1547
|
asyncProvider$factory_0();
|
|
1548
|
-
return $this.
|
|
1548
|
+
return $this.c8a_1.l1();
|
|
1549
1549
|
}
|
|
1550
1550
|
function _get_logger__rkp4sl_0($this) {
|
|
1551
1551
|
// Inline function 'kotlin.getValue' call
|
|
1552
1552
|
logger$factory_2();
|
|
1553
|
-
return $this.
|
|
1553
|
+
return $this.d8a_1.l1();
|
|
1554
1554
|
}
|
|
1555
1555
|
function _get_reconnectionInteractor__pua73z($this) {
|
|
1556
1556
|
// Inline function 'kotlin.getValue' call
|
|
1557
1557
|
reconnectionInteractor$factory_0();
|
|
1558
|
-
return $this.
|
|
1558
|
+
return $this.e8a_1.l1();
|
|
1559
1559
|
}
|
|
1560
1560
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
1561
1561
|
// Inline function 'kotlin.getValue' call
|
|
1562
1562
|
lastCardInteractor$factory_0();
|
|
1563
|
-
return $this.
|
|
1563
|
+
return $this.f8a_1.l1();
|
|
1564
1564
|
}
|
|
1565
1565
|
function _get_serverConfig__rk2g06($this) {
|
|
1566
1566
|
// Inline function 'kotlin.getValue' call
|
|
1567
1567
|
serverConfig$factory_0();
|
|
1568
|
-
return $this.
|
|
1568
|
+
return $this.g8a_1.l1();
|
|
1569
1569
|
}
|
|
1570
1570
|
function _get_logicConfig__52ww9d($this) {
|
|
1571
1571
|
// Inline function 'kotlin.getValue' call
|
|
1572
1572
|
logicConfig$factory_0();
|
|
1573
|
-
return $this.
|
|
1573
|
+
return $this.h8a_1.l1();
|
|
1574
1574
|
}
|
|
1575
1575
|
function _get_botConfig__cpaxzc($this) {
|
|
1576
1576
|
// Inline function 'kotlin.getValue' call
|
|
1577
1577
|
botConfig$factory_0();
|
|
1578
|
-
return $this.
|
|
1578
|
+
return $this.i8a_1.l1();
|
|
1579
1579
|
}
|
|
1580
1580
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
1581
1581
|
// Inline function 'kotlin.getValue' call
|
|
1582
1582
|
toClientEventsObserver$factory_2();
|
|
1583
|
-
return $this.
|
|
1583
|
+
return $this.j8a_1.l1();
|
|
1584
1584
|
}
|
|
1585
1585
|
function ServerGameStoreContract(di, commonStoreContract, botGameStoreContract, gameMechanicStoreContract) {
|
|
1586
1586
|
commonStoreContract = commonStoreContract === VOID ? new CommonStoreContract(di) : commonStoreContract;
|
|
1587
1587
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
1588
1588
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di) : gameMechanicStoreContract;
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1589
|
+
this.z89_1 = commonStoreContract;
|
|
1590
|
+
this.a8a_1 = botGameStoreContract;
|
|
1591
|
+
this.b8a_1 = gameMechanicStoreContract;
|
|
1592
1592
|
var tmp = this;
|
|
1593
1593
|
// Inline function 'org.kodein.di.instance' call
|
|
1594
1594
|
var tmp$ret$0;
|
|
1595
1595
|
// Inline function 'org.kodein.type.generic' call
|
|
1596
1596
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
1597
1597
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1598
|
-
tmp.
|
|
1598
|
+
tmp.c8a_1 = Instance(di, tmp$ret$0, null).e2r(this, asyncProvider$factory());
|
|
1599
1599
|
var tmp_1 = this;
|
|
1600
1600
|
// Inline function 'org.kodein.di.instance' call
|
|
1601
1601
|
var tmp$ret$2;
|
|
1602
1602
|
// Inline function 'org.kodein.type.generic' call
|
|
1603
1603
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
1604
1604
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1605
|
-
tmp_1.
|
|
1605
|
+
tmp_1.d8a_1 = Instance(di, tmp$ret$2, null).e2r(this, logger$factory_1());
|
|
1606
1606
|
var tmp_3 = this;
|
|
1607
1607
|
// Inline function 'org.kodein.di.instance' call
|
|
1608
1608
|
var tmp$ret$4;
|
|
1609
1609
|
// Inline function 'org.kodein.type.generic' call
|
|
1610
1610
|
var tmp_4 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
1611
1611
|
tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1612
|
-
tmp_3.
|
|
1612
|
+
tmp_3.e8a_1 = Instance(di, tmp$ret$4, null).e2r(this, reconnectionInteractor$factory());
|
|
1613
1613
|
var tmp_5 = this;
|
|
1614
1614
|
// Inline function 'org.kodein.di.instance' call
|
|
1615
1615
|
var tmp$ret$6;
|
|
1616
1616
|
// Inline function 'org.kodein.type.generic' call
|
|
1617
1617
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
1618
1618
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1619
|
-
tmp_5.
|
|
1619
|
+
tmp_5.f8a_1 = Instance(di, tmp$ret$6, null).e2r(this, lastCardInteractor$factory());
|
|
1620
1620
|
var tmp_7 = this;
|
|
1621
1621
|
// Inline function 'org.kodein.di.instance' call
|
|
1622
1622
|
var tmp$ret$8;
|
|
1623
1623
|
// Inline function 'org.kodein.type.generic' call
|
|
1624
1624
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1625
1625
|
tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1626
|
-
tmp_7.
|
|
1626
|
+
tmp_7.g8a_1 = Instance(di, tmp$ret$8, null).e2r(this, serverConfig$factory());
|
|
1627
1627
|
var tmp_9 = this;
|
|
1628
1628
|
// Inline function 'org.kodein.di.instance' call
|
|
1629
1629
|
var tmp$ret$10;
|
|
1630
1630
|
// Inline function 'org.kodein.type.generic' call
|
|
1631
1631
|
var tmp_10 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
1632
1632
|
tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1633
|
-
tmp_9.
|
|
1633
|
+
tmp_9.h8a_1 = Instance(di, tmp$ret$10, null).e2r(this, logicConfig$factory());
|
|
1634
1634
|
var tmp_11 = this;
|
|
1635
1635
|
// Inline function 'org.kodein.di.instance' call
|
|
1636
1636
|
var tmp$ret$12;
|
|
1637
1637
|
// Inline function 'org.kodein.type.generic' call
|
|
1638
1638
|
var tmp_12 = typeToken(createKType(getKClass(BotReduxConfig), arrayOf([]), false));
|
|
1639
1639
|
tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
1640
|
-
tmp_11.
|
|
1640
|
+
tmp_11.i8a_1 = Instance(di, tmp$ret$12, null).e2r(this, botConfig$factory());
|
|
1641
1641
|
var tmp_13 = this;
|
|
1642
1642
|
// Inline function 'org.kodein.di.instance' call
|
|
1643
1643
|
var tmp$ret$14;
|
|
1644
1644
|
// Inline function 'org.kodein.type.generic' call
|
|
1645
1645
|
var tmp_14 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1646
1646
|
tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
1647
|
-
tmp_13.
|
|
1647
|
+
tmp_13.j8a_1 = Instance(di, tmp$ret$14, null).e2r(this, toClientEventsObserver$factory_1());
|
|
1648
1648
|
}
|
|
1649
1649
|
protoOf(ServerGameStoreContract).v4y = function () {
|
|
1650
|
-
return plus(plus(plus(listOf(serverConfigReducer()), this.
|
|
1650
|
+
return plus(plus(plus(listOf(serverConfigReducer()), this.z89_1.v4y()), this.a8a_1.v4y()), this.b8a_1.v4y());
|
|
1651
1651
|
};
|
|
1652
1652
|
protoOf(ServerGameStoreContract).w4y = function () {
|
|
1653
|
-
return plus(plus(plus(plus(plus(plus(this.
|
|
1653
|
+
return plus(plus(plus(plus(plus(plus(this.z89_1.w4y(), this.a8a_1.w4y()), this.b8a_1.w4y()), listOfNotNull([playerConnectionUpdateMiddleware(_get_reconnectionInteractor__pua73z(this)), playerReconnectionWaitingTimerTickMiddleware(_get_reconnectionInteractor__pua73z(this))])), listOfNotNull([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), serverMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_botConfig__cpaxzc(this), _get_lastCardInteractor__h6lq3w(this))])), listOfNotNull([finishingGameWhenCantStartNewMiddleware(), checkGameIsFinishingWaitForRoomDeleteMiddleware(_get_logger__rkp4sl_0(this)), _get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null])), listOfNotNull([partyLifecycleMiddleware(), roomLifecycleMiddleware(_get_asyncProvider__jbpyhw(this), _get_logger__rkp4sl_0(this)), serverPlayerTurnTimerTickMiddleware(_get_serverConfig__rk2g06(this), _get_logger__rkp4sl_0(this)), clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this)), _get_botConfig__cpaxzc(this).autoStepLastCard ? putPlayerLastCardMiddleware(_get_lastCardInteractor__h6lq3w(this)) : null]));
|
|
1654
1654
|
};
|
|
1655
1655
|
function asyncProvider$factory() {
|
|
1656
1656
|
return getPropertyCallableRef('asyncProvider', 1, KProperty1, function (receiver) {
|
|
@@ -1745,7 +1745,7 @@
|
|
|
1745
1745
|
// Inline function 'com.debertz.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
1746
1746
|
var tmp0_anonymous = action instanceof PartyEndedAction ? action : THROW_CCE();
|
|
1747
1747
|
next(tmp0_anonymous);
|
|
1748
|
-
if (!get_serverState(store.state).
|
|
1748
|
+
if (!get_serverState(store.state).a88_1.b88_1 ? tmp0_anonymous.isGameFinished : false) {
|
|
1749
1749
|
store.dispatch(new FinishingGameMechanicAction(new GameFinishedReason(Reason_DEPLOY_getInstance())));
|
|
1750
1750
|
}
|
|
1751
1751
|
};
|
|
@@ -1768,9 +1768,9 @@
|
|
|
1768
1768
|
};
|
|
1769
1769
|
}
|
|
1770
1770
|
function _no_name_provided__qut3iv_0($logicConfig, $botConfig, $lastCardInteractor) {
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1771
|
+
this.k8a_1 = $logicConfig;
|
|
1772
|
+
this.l8a_1 = $botConfig;
|
|
1773
|
+
this.m8a_1 = $lastCardInteractor;
|
|
1774
1774
|
}
|
|
1775
1775
|
protoOf(_no_name_provided__qut3iv_0).x32 = function (action) {
|
|
1776
1776
|
return action instanceof MechanicAction;
|
|
@@ -2117,7 +2117,7 @@
|
|
|
2117
2117
|
}
|
|
2118
2118
|
var tmp20_anonymous = UserActionPayload_init_$Create$(tmp0_createActionForUser_1, tmp1_createActionForUser_2, element_8, tmp0_mapTo_9);
|
|
2119
2119
|
var tmp_0;
|
|
2120
|
-
if (this.
|
|
2120
|
+
if (this.k8a_1.supportBackwardActions ? getPlayer(state.f3b().players, tmp20_anonymous.k3r_1).z3e_1.e3f_1 : false) {
|
|
2121
2121
|
tmp_0 = null;
|
|
2122
2122
|
} else {
|
|
2123
2123
|
tmp_0 = mapToClient_10(tmp0_anonymous, tmp20_anonymous);
|
|
@@ -2136,7 +2136,7 @@
|
|
|
2136
2136
|
if (tmp0_anonymous instanceof PlayerReadyMechanicAction) {
|
|
2137
2137
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2138
2138
|
var tmp21_createRoomActionFromTable = state.f3b();
|
|
2139
|
-
var tmp22_createRoomActionFromTable = this.
|
|
2139
|
+
var tmp22_createRoomActionFromTable = this.k8a_1.supportBackwardActions ? tmp0_anonymous.e45_1 : null;
|
|
2140
2140
|
var tmp$ret$87;
|
|
2141
2141
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToClientActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2142
2142
|
var tmp23_anonymous = new RoomActionPayload(tmp21_createRoomActionFromTable.id, tmp22_createRoomActionFromTable);
|
|
@@ -2146,7 +2146,7 @@
|
|
|
2146
2146
|
if (tmp0_anonymous instanceof SuitChoiceMechanicAction) {
|
|
2147
2147
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2148
2148
|
var tmp24_createRoomActionFromTable = state.f3b();
|
|
2149
|
-
var tmp25_createRoomActionFromTable = this.
|
|
2149
|
+
var tmp25_createRoomActionFromTable = this.k8a_1.supportBackwardActions ? tmp0_anonymous.f45_1 : null;
|
|
2150
2150
|
var tmp$ret$89;
|
|
2151
2151
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToClientActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2152
2152
|
var tmp26_anonymous = new RoomActionPayload(tmp24_createRoomActionFromTable.id, tmp25_createRoomActionFromTable);
|
|
@@ -2165,7 +2165,7 @@
|
|
|
2165
2165
|
if (tmp0_anonymous instanceof CombinationChoiceMechanicAction) {
|
|
2166
2166
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2167
2167
|
var tmp29_createRoomActionFromTable = state.f3b();
|
|
2168
|
-
var tmp30_createRoomActionFromTable = this.
|
|
2168
|
+
var tmp30_createRoomActionFromTable = this.k8a_1.supportBackwardActions ? tmp0_anonymous.k45_1 : null;
|
|
2169
2169
|
var tmp$ret$93;
|
|
2170
2170
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToClientActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2171
2171
|
var tmp31_anonymous = new RoomActionPayload(tmp29_createRoomActionFromTable.id, tmp30_createRoomActionFromTable);
|
|
@@ -2175,7 +2175,7 @@
|
|
|
2175
2175
|
if (tmp0_anonymous instanceof PutCardMechanicAction) {
|
|
2176
2176
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2177
2177
|
var tmp32_createRoomActionFromTable = state.f3b();
|
|
2178
|
-
var tmp33_createRoomActionFromTable = (serverMapMechanicToClientActionMiddleware$_anonymous_$_anonymous_$backwardActions_ifizn1(this.
|
|
2178
|
+
var tmp33_createRoomActionFromTable = (serverMapMechanicToClientActionMiddleware$_anonymous_$_anonymous_$backwardActions_ifizn1(this.k8a_1) ? !serverMapMechanicToClientActionMiddleware$_anonymous_$_anonymous_$autoStepLastCard_qzh2ug(this.l8a_1, this.m8a_1, state, tmp0_anonymous.t2s()) : false) ? tmp0_anonymous.t2s() : null;
|
|
2179
2179
|
var tmp$ret$95;
|
|
2180
2180
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToClientActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2181
2181
|
var tmp34_anonymous = new RoomActionPayload(tmp32_createRoomActionFromTable.id, tmp33_createRoomActionFromTable);
|
|
@@ -2206,7 +2206,7 @@
|
|
|
2206
2206
|
var tmp39_createRoomActionFromTable = state.f3b();
|
|
2207
2207
|
var tmp_1;
|
|
2208
2208
|
var tmp_2;
|
|
2209
|
-
if (this.
|
|
2209
|
+
if (this.k8a_1.supportBackwardActions) {
|
|
2210
2210
|
tmp_2 = isInterface(message, UserMessage);
|
|
2211
2211
|
} else {
|
|
2212
2212
|
tmp_2 = false;
|
|
@@ -2337,8 +2337,8 @@
|
|
|
2337
2337
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2338
2338
|
}
|
|
2339
2339
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $tmp0_anonymous, resultContinuation) {
|
|
2340
|
-
this.
|
|
2341
|
-
this.
|
|
2340
|
+
this.v8a_1 = $provider;
|
|
2341
|
+
this.w8a_1 = $tmp0_anonymous;
|
|
2342
2342
|
CoroutineImpl.call(this, resultContinuation);
|
|
2343
2343
|
}
|
|
2344
2344
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).a15 = function ($this$launchStore, $completion) {
|
|
@@ -2359,7 +2359,7 @@
|
|
|
2359
2359
|
case 0:
|
|
2360
2360
|
this.zh_1 = 2;
|
|
2361
2361
|
this.yh_1 = 1;
|
|
2362
|
-
suspendResult = this.
|
|
2362
|
+
suspendResult = this.v8a_1.l88(this.w8a_1, this);
|
|
2363
2363
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2364
2364
|
return suspendResult;
|
|
2365
2365
|
}
|
|
@@ -2382,8 +2382,8 @@
|
|
|
2382
2382
|
while (true);
|
|
2383
2383
|
};
|
|
2384
2384
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).b15 = function ($this$launchStore, completion) {
|
|
2385
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
2386
|
-
i.
|
|
2385
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.v8a_1, this.w8a_1, completion);
|
|
2386
|
+
i.x8a_1 = $this$launchStore;
|
|
2387
2387
|
return i;
|
|
2388
2388
|
};
|
|
2389
2389
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $tmp0_anonymous, resultContinuation) {
|
|
@@ -2395,8 +2395,8 @@
|
|
|
2395
2395
|
return l;
|
|
2396
2396
|
}
|
|
2397
2397
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
2398
|
-
this.
|
|
2399
|
-
this.
|
|
2398
|
+
this.y8a_1 = $asyncProvider;
|
|
2399
|
+
this.z8a_1 = $provider;
|
|
2400
2400
|
}
|
|
2401
2401
|
protoOf(_no_name_provided__qut3iv_1).x32 = function (action) {
|
|
2402
2402
|
return action instanceof ToClientAction;
|
|
@@ -2404,7 +2404,7 @@
|
|
|
2404
2404
|
protoOf(_no_name_provided__qut3iv_1).n50 = function (store, next, action) {
|
|
2405
2405
|
// Inline function 'com.debertz.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
2406
2406
|
var tmp0_anonymous = action instanceof ToClientAction ? action : THROW_CCE();
|
|
2407
|
-
this.
|
|
2407
|
+
this.y8a_1.a31(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.z8a_1, tmp0_anonymous, null));
|
|
2408
2408
|
next(tmp0_anonymous);
|
|
2409
2409
|
};
|
|
2410
2410
|
protoOf(_no_name_provided__qut3iv_1).y32 = function (store, next, action) {
|
|
@@ -2415,7 +2415,7 @@
|
|
|
2415
2415
|
return new _no_name_provided__qut3iv_2(reconnectionInteractor);
|
|
2416
2416
|
}
|
|
2417
2417
|
function _no_name_provided__qut3iv_2($reconnectionInteractor) {
|
|
2418
|
-
this.
|
|
2418
|
+
this.a8b_1 = $reconnectionInteractor;
|
|
2419
2419
|
}
|
|
2420
2420
|
protoOf(_no_name_provided__qut3iv_2).x32 = function (action) {
|
|
2421
2421
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -2454,7 +2454,7 @@
|
|
|
2454
2454
|
while (tmp0_iterator_0.g()) {
|
|
2455
2455
|
var element_0 = tmp0_iterator_0.h();
|
|
2456
2456
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerConnectionUpdateMiddleware.<anonymous>.<anonymous>' call
|
|
2457
|
-
if (element_0.
|
|
2457
|
+
if (element_0.b8b_1 === tmp0_anonymous.p4w_1) {
|
|
2458
2458
|
if (found) {
|
|
2459
2459
|
tmp$ret$4 = null;
|
|
2460
2460
|
break $l$block_2;
|
|
@@ -2476,7 +2476,7 @@
|
|
|
2476
2476
|
if (tmp0_anonymous.o4w_1.isLive) {
|
|
2477
2477
|
store.dispatch(new PlayerConnectionChangedMechanicAction(tmp0_anonymous.p4w_1, PlayerConnectionState_LIVE_getInstance()));
|
|
2478
2478
|
}
|
|
2479
|
-
var actions = this.
|
|
2479
|
+
var actions = this.a8b_1.t89(tmp0_anonymous.o4w_1, tmp0_anonymous.p4w_1, store.state.f3b(), tmp0_anonymous.q4w_1);
|
|
2480
2480
|
// Inline function 'kotlin.collections.forEach' call
|
|
2481
2481
|
var tmp0_iterator_1 = actions.f();
|
|
2482
2482
|
while (tmp0_iterator_1.g()) {
|
|
@@ -2495,15 +2495,15 @@
|
|
|
2495
2495
|
return new _no_name_provided__qut3iv_3(reconnectionInteractor);
|
|
2496
2496
|
}
|
|
2497
2497
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2498
|
+
this.b8b_1 = playerId;
|
|
2499
|
+
this.c8b_1 = state;
|
|
2500
2500
|
}
|
|
2501
2501
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
2502
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
2502
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.b8b_1 + ', state=' + this.c8b_1 + ')';
|
|
2503
2503
|
};
|
|
2504
2504
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
2505
|
-
var result = getStringHashCode(this.
|
|
2506
|
-
result = imul(result, 31) + this.
|
|
2505
|
+
var result = getStringHashCode(this.b8b_1);
|
|
2506
|
+
result = imul(result, 31) + this.c8b_1.hashCode() | 0;
|
|
2507
2507
|
return result;
|
|
2508
2508
|
};
|
|
2509
2509
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -2512,14 +2512,14 @@
|
|
|
2512
2512
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
2513
2513
|
return false;
|
|
2514
2514
|
var tmp0_other_with_cast = other instanceof PlayerReconnectionWaitingTimerTag ? other : THROW_CCE();
|
|
2515
|
-
if (!(this.
|
|
2515
|
+
if (!(this.b8b_1 === tmp0_other_with_cast.b8b_1))
|
|
2516
2516
|
return false;
|
|
2517
|
-
if (!this.
|
|
2517
|
+
if (!this.c8b_1.equals(tmp0_other_with_cast.c8b_1))
|
|
2518
2518
|
return false;
|
|
2519
2519
|
return true;
|
|
2520
2520
|
};
|
|
2521
2521
|
function _no_name_provided__qut3iv_3($reconnectionInteractor) {
|
|
2522
|
-
this.
|
|
2522
|
+
this.d8b_1 = $reconnectionInteractor;
|
|
2523
2523
|
}
|
|
2524
2524
|
protoOf(_no_name_provided__qut3iv_3).x32 = function (action) {
|
|
2525
2525
|
return action instanceof TimerTickAction;
|
|
@@ -2530,7 +2530,7 @@
|
|
|
2530
2530
|
var timerTag = tmp0_anonymous.l33_1;
|
|
2531
2531
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
2532
2532
|
var state = store.state;
|
|
2533
|
-
var actions = this.
|
|
2533
|
+
var actions = this.d8b_1.t89(timerTag.c8b_1, timerTag.b8b_1, state.f3b(), true);
|
|
2534
2534
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2535
2535
|
if (!actions.l()) {
|
|
2536
2536
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -2552,8 +2552,8 @@
|
|
|
2552
2552
|
return new _no_name_provided__qut3iv_4(serverConfig, logger);
|
|
2553
2553
|
}
|
|
2554
2554
|
function _no_name_provided__qut3iv_4($serverConfig, $logger) {
|
|
2555
|
-
this.
|
|
2556
|
-
this.
|
|
2555
|
+
this.e8b_1 = $serverConfig;
|
|
2556
|
+
this.f8b_1 = $logger;
|
|
2557
2557
|
}
|
|
2558
2558
|
protoOf(_no_name_provided__qut3iv_4).x32 = function (action) {
|
|
2559
2559
|
return action instanceof TimerTickAction;
|
|
@@ -2578,7 +2578,7 @@
|
|
|
2578
2578
|
case 2:
|
|
2579
2579
|
case 1:
|
|
2580
2580
|
var tmp_0;
|
|
2581
|
-
if (this.
|
|
2581
|
+
if (this.e8b_1.closeIfBotsAtFinish ? table.sceneInfo.v4l() : false) {
|
|
2582
2582
|
tmp_0 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.t2s(), timerTag.b53_1);
|
|
2583
2583
|
} else {
|
|
2584
2584
|
tmp_0 = new AskBotAction(player.t2s(), 'PlayerTurn after player TIMEOUT');
|
|
@@ -2587,7 +2587,7 @@
|
|
|
2587
2587
|
tmp = listOf(tmp_0);
|
|
2588
2588
|
break;
|
|
2589
2589
|
case 5:
|
|
2590
|
-
this.
|
|
2590
|
+
this.f8b_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + player.x3e_1.q2v().f2u_1 + ', ') + ('action:' + tmp0_anonymous));
|
|
2591
2591
|
tmp = emptyList();
|
|
2592
2592
|
break;
|
|
2593
2593
|
default:
|
|
@@ -2616,8 +2616,8 @@
|
|
|
2616
2616
|
return new _no_name_provided__qut3iv_5(asyncProvider, logger);
|
|
2617
2617
|
}
|
|
2618
2618
|
function roomLifecycleMiddleware$o$handle$slambda$slambda($actions, $store, resultContinuation) {
|
|
2619
|
-
this.
|
|
2620
|
-
this.
|
|
2619
|
+
this.o8b_1 = $actions;
|
|
2620
|
+
this.p8b_1 = $store;
|
|
2621
2621
|
CoroutineImpl.call(this, resultContinuation);
|
|
2622
2622
|
}
|
|
2623
2623
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).a15 = function ($this$launchStore, $completion) {
|
|
@@ -2636,10 +2636,10 @@
|
|
|
2636
2636
|
var tmp = this.yh_1;
|
|
2637
2637
|
if (tmp === 0) {
|
|
2638
2638
|
this.zh_1 = 1;
|
|
2639
|
-
var tmp0_iterator = this.
|
|
2639
|
+
var tmp0_iterator = this.o8b_1.f();
|
|
2640
2640
|
while (tmp0_iterator.g()) {
|
|
2641
2641
|
var element = tmp0_iterator.h();
|
|
2642
|
-
this.
|
|
2642
|
+
this.p8b_1.dispatch(element);
|
|
2643
2643
|
}
|
|
2644
2644
|
return Unit_getInstance();
|
|
2645
2645
|
} else if (tmp === 1) {
|
|
@@ -2652,8 +2652,8 @@
|
|
|
2652
2652
|
while (true);
|
|
2653
2653
|
};
|
|
2654
2654
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).b15 = function ($this$launchStore, completion) {
|
|
2655
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.
|
|
2656
|
-
i.
|
|
2655
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.o8b_1, this.p8b_1, completion);
|
|
2656
|
+
i.q8b_1 = $this$launchStore;
|
|
2657
2657
|
return i;
|
|
2658
2658
|
};
|
|
2659
2659
|
function roomLifecycleMiddleware$o$handle$slambda$slambda_0($actions, $store, resultContinuation) {
|
|
@@ -2665,10 +2665,10 @@
|
|
|
2665
2665
|
return l;
|
|
2666
2666
|
}
|
|
2667
2667
|
function roomLifecycleMiddleware$o$handle$slambda($store, $tmp0_anonymous, $logger, $asyncProvider, resultContinuation) {
|
|
2668
|
-
this.
|
|
2669
|
-
this.
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2668
|
+
this.z8b_1 = $store;
|
|
2669
|
+
this.a8c_1 = $tmp0_anonymous;
|
|
2670
|
+
this.b8c_1 = $logger;
|
|
2671
|
+
this.c8c_1 = $asyncProvider;
|
|
2672
2672
|
CoroutineImpl.call(this, resultContinuation);
|
|
2673
2673
|
}
|
|
2674
2674
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).a15 = function ($this$launchWorkerWithLock, $completion) {
|
|
@@ -2687,22 +2687,22 @@
|
|
|
2687
2687
|
var tmp = this.yh_1;
|
|
2688
2688
|
if (tmp === 0) {
|
|
2689
2689
|
this.zh_1 = 1;
|
|
2690
|
-
var state = this.
|
|
2691
|
-
var tmp0_subject = this.
|
|
2690
|
+
var state = this.z8b_1.state;
|
|
2691
|
+
var tmp0_subject = this.a8c_1;
|
|
2692
2692
|
var tmp_0;
|
|
2693
2693
|
if (tmp0_subject instanceof RoomWasCreatedAction) {
|
|
2694
|
-
var tmp1_id = this.
|
|
2694
|
+
var tmp1_id = this.a8c_1.v89_1;
|
|
2695
2695
|
var tmp2_version = GameEngineConfig_getInstance().version;
|
|
2696
|
-
var tmp3_gameCreatorPlayerId = this.
|
|
2697
|
-
var tmp4_config = this.
|
|
2698
|
-
var tmp5_users = this.
|
|
2696
|
+
var tmp3_gameCreatorPlayerId = this.a8c_1.w89_1;
|
|
2697
|
+
var tmp4_config = this.a8c_1.x89_1;
|
|
2698
|
+
var tmp5_users = this.a8c_1.y89_1;
|
|
2699
2699
|
tmp_0 = listOf(new StartGameMechanicAction(tmp4_config, tmp1_id, tmp2_version, tmp3_gameCreatorPlayerId, tmp5_users));
|
|
2700
2700
|
} else {
|
|
2701
2701
|
if (tmp0_subject instanceof RoomWasDeletedAction) {
|
|
2702
2702
|
var tmp0_let = state.e3a_1;
|
|
2703
2703
|
var tmp_1;
|
|
2704
2704
|
if (tmp0_let == null) {
|
|
2705
|
-
this.
|
|
2705
|
+
this.b8c_1.w(VOID, "Termination reason can't be null");
|
|
2706
2706
|
tmp_1 = new GameErrorReason('room deleted error');
|
|
2707
2707
|
} else {
|
|
2708
2708
|
tmp_1 = tmp0_let;
|
|
@@ -2714,7 +2714,7 @@
|
|
|
2714
2714
|
}
|
|
2715
2715
|
}
|
|
2716
2716
|
var actions = tmp_0;
|
|
2717
|
-
this.
|
|
2717
|
+
this.c8c_1.a31(VOID, roomLifecycleMiddleware$o$handle$slambda$slambda_0(actions, this.z8b_1, null));
|
|
2718
2718
|
return Unit_getInstance();
|
|
2719
2719
|
} else if (tmp === 1) {
|
|
2720
2720
|
throw this.bi_1;
|
|
@@ -2726,8 +2726,8 @@
|
|
|
2726
2726
|
while (true);
|
|
2727
2727
|
};
|
|
2728
2728
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).b15 = function ($this$launchWorkerWithLock, completion) {
|
|
2729
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda(this.
|
|
2730
|
-
i.
|
|
2729
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda(this.z8b_1, this.a8c_1, this.b8c_1, this.c8c_1, completion);
|
|
2730
|
+
i.d8c_1 = $this$launchWorkerWithLock;
|
|
2731
2731
|
return i;
|
|
2732
2732
|
};
|
|
2733
2733
|
function roomLifecycleMiddleware$o$handle$slambda_0($store, $tmp0_anonymous, $logger, $asyncProvider, resultContinuation) {
|
|
@@ -2739,8 +2739,8 @@
|
|
|
2739
2739
|
return l;
|
|
2740
2740
|
}
|
|
2741
2741
|
function _no_name_provided__qut3iv_5($asyncProvider, $logger) {
|
|
2742
|
-
this.
|
|
2743
|
-
this.
|
|
2742
|
+
this.e8c_1 = $asyncProvider;
|
|
2743
|
+
this.f8c_1 = $logger;
|
|
2744
2744
|
}
|
|
2745
2745
|
protoOf(_no_name_provided__qut3iv_5).x32 = function (action) {
|
|
2746
2746
|
return action instanceof RoomAction;
|
|
@@ -2749,7 +2749,7 @@
|
|
|
2749
2749
|
// Inline function 'com.debertz.logic.server.redux.middlewares.rooms.roomLifecycleMiddleware.<anonymous>' call
|
|
2750
2750
|
var tmp0_anonymous = action instanceof RoomAction ? action : THROW_CCE();
|
|
2751
2751
|
next(tmp0_anonymous);
|
|
2752
|
-
this.
|
|
2752
|
+
this.e8c_1.e31(VOID, roomLifecycleMiddleware$o$handle$slambda_0(store, tmp0_anonymous, this.f8c_1, this.e8c_1, null));
|
|
2753
2753
|
};
|
|
2754
2754
|
protoOf(_no_name_provided__qut3iv_5).y32 = function (store, next, action) {
|
|
2755
2755
|
return this.n50(store, next, action);
|
|
@@ -2759,7 +2759,7 @@
|
|
|
2759
2759
|
return new _no_name_provided__qut3iv_6(logger);
|
|
2760
2760
|
}
|
|
2761
2761
|
function _no_name_provided__qut3iv_6($logger) {
|
|
2762
|
-
this.
|
|
2762
|
+
this.g8c_1 = $logger;
|
|
2763
2763
|
}
|
|
2764
2764
|
protoOf(_no_name_provided__qut3iv_6).x32 = function (action) {
|
|
2765
2765
|
return action instanceof SceneMechanicAction;
|
|
@@ -2819,7 +2819,7 @@
|
|
|
2819
2819
|
tmp$ret$2 = to(tmp_2, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.f2u_1);
|
|
2820
2820
|
tmp0_mapTo.a(tmp$ret$2);
|
|
2821
2821
|
}
|
|
2822
|
-
this.
|
|
2822
|
+
this.g8c_1.w(tmp_1, 'CheckBotsMiddleware: Only bots are playing: ' + tmp0_mapTo);
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
2825
|
next(tmp0_anonymous);
|
|
@@ -2870,7 +2870,7 @@
|
|
|
2870
2870
|
protoOf(_no_name_provided__qut3iv_7).v55 = function (state, action) {
|
|
2871
2871
|
// Inline function 'com.debertz.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
2872
2872
|
var tmp0_anonymous = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
2873
|
-
return state.n4w(VOID, get_serverState(state).
|
|
2873
|
+
return state.n4w(VOID, get_serverState(state).h8c(tmp0_anonymous.u89_1));
|
|
2874
2874
|
};
|
|
2875
2875
|
protoOf(_no_name_provided__qut3iv_7).n31 = function (state, action) {
|
|
2876
2876
|
return this.v55(state instanceof AppState ? state : THROW_CCE(), action);
|
|
@@ -2880,7 +2880,7 @@
|
|
|
2880
2880
|
}
|
|
2881
2881
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer) {
|
|
2882
2882
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer);
|
|
2883
|
-
this.
|
|
2883
|
+
this.j8c_1 = logger;
|
|
2884
2884
|
}
|
|
2885
2885
|
protoOf(ServerMechanicLifecycleReducer).c57 = function (state, action) {
|
|
2886
2886
|
var serverState = get_serverStateOrNull(state.c3a_1);
|
|
@@ -2894,8 +2894,8 @@
|
|
|
2894
2894
|
var tmp7_tableOrNull = tmp0_$this.i58(tmp1_id, tmp3_config, tmp2_version, tmp4_users, tmp5_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda);
|
|
2895
2895
|
var tmp;
|
|
2896
2896
|
if (serverState == null) {
|
|
2897
|
-
this.
|
|
2898
|
-
tmp = Companion_getInstance_6().
|
|
2897
|
+
this.j8c_1.w(VOID, 'ServerPayload is not onStart');
|
|
2898
|
+
tmp = Companion_getInstance_6().z87();
|
|
2899
2899
|
} else {
|
|
2900
2900
|
tmp = serverState;
|
|
2901
2901
|
}
|
|
@@ -2905,12 +2905,12 @@
|
|
|
2905
2905
|
function Companion() {
|
|
2906
2906
|
Companion_instance = this;
|
|
2907
2907
|
}
|
|
2908
|
-
protoOf(Companion).
|
|
2908
|
+
protoOf(Companion).k8c = function (config) {
|
|
2909
2909
|
return new ServerState(config);
|
|
2910
2910
|
};
|
|
2911
|
-
protoOf(Companion).
|
|
2911
|
+
protoOf(Companion).z87 = function (config, $super) {
|
|
2912
2912
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
2913
|
-
return $super === VOID ? this.
|
|
2913
|
+
return $super === VOID ? this.k8c(config) : $super.k8c.call(this, config);
|
|
2914
2914
|
};
|
|
2915
2915
|
var Companion_instance;
|
|
2916
2916
|
function Companion_getInstance_6() {
|
|
@@ -2920,16 +2920,16 @@
|
|
|
2920
2920
|
}
|
|
2921
2921
|
function ServerState(config) {
|
|
2922
2922
|
Companion_getInstance_6();
|
|
2923
|
-
this.
|
|
2923
|
+
this.a88_1 = config;
|
|
2924
2924
|
}
|
|
2925
|
-
protoOf(ServerState).
|
|
2925
|
+
protoOf(ServerState).h8c = function (config) {
|
|
2926
2926
|
return new ServerState(config);
|
|
2927
2927
|
};
|
|
2928
2928
|
protoOf(ServerState).toString = function () {
|
|
2929
|
-
return 'ServerState(config=' + this.
|
|
2929
|
+
return 'ServerState(config=' + this.a88_1 + ')';
|
|
2930
2930
|
};
|
|
2931
2931
|
protoOf(ServerState).hashCode = function () {
|
|
2932
|
-
return this.
|
|
2932
|
+
return this.a88_1.hashCode();
|
|
2933
2933
|
};
|
|
2934
2934
|
protoOf(ServerState).equals = function (other) {
|
|
2935
2935
|
if (this === other)
|
|
@@ -2937,7 +2937,7 @@
|
|
|
2937
2937
|
if (!(other instanceof ServerState))
|
|
2938
2938
|
return false;
|
|
2939
2939
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
2940
|
-
if (!this.
|
|
2940
|
+
if (!this.a88_1.equals(tmp0_other_with_cast.a88_1))
|
|
2941
2941
|
return false;
|
|
2942
2942
|
return true;
|
|
2943
2943
|
};
|
|
@@ -3460,7 +3460,7 @@
|
|
|
3460
3460
|
if (!state.g3b()) {
|
|
3461
3461
|
return null;
|
|
3462
3462
|
}
|
|
3463
|
-
return get_serverUserPayload(getPlayer(state.f3b().players, playerId).w3e_1).
|
|
3463
|
+
return get_serverUserPayload(getPlayer(state.f3b().players, playerId).w3e_1).l8c_1;
|
|
3464
3464
|
};
|
|
3465
3465
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
3466
3466
|
var state = store.state;
|
|
@@ -3477,7 +3477,7 @@
|
|
|
3477
3477
|
var item = tmp0_iterator.h();
|
|
3478
3478
|
var tmp$ret$0;
|
|
3479
3479
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
3480
|
-
tmp$ret$0 = get_serverUserPayload(item.w3e_1).
|
|
3480
|
+
tmp$ret$0 = get_serverUserPayload(item.w3e_1).l8c_1;
|
|
3481
3481
|
tmp0_mapTo.a(tmp$ret$0);
|
|
3482
3482
|
}
|
|
3483
3483
|
return copyToArray(tmp0_mapTo);
|
|
@@ -3716,41 +3716,41 @@
|
|
|
3716
3716
|
function getRandomAvatarData_0($this) {
|
|
3717
3717
|
var avatarSetNumber = Default_getInstance().n(values_2().length);
|
|
3718
3718
|
var avatarSet = values_2()[avatarSetNumber];
|
|
3719
|
-
return new AvatarData(Default_getInstance().n(avatarSet.
|
|
3719
|
+
return new AvatarData(Default_getInstance().n(avatarSet.p8c()), avatarSet);
|
|
3720
3720
|
}
|
|
3721
3721
|
function getAvatarUrlByIndex($this, data) {
|
|
3722
3722
|
return mapToPattern($this, data);
|
|
3723
3723
|
}
|
|
3724
3724
|
function getNicknameByIndex($this, data) {
|
|
3725
|
-
return data.
|
|
3725
|
+
return data.r8c_1.s8c(data.q8c_1);
|
|
3726
3726
|
}
|
|
3727
3727
|
function mapToPattern($this, data) {
|
|
3728
3728
|
Companion_getInstance_7();
|
|
3729
|
-
return 'debertz://raspberry.games' + '/' + data.
|
|
3729
|
+
return 'debertz://raspberry.games' + '/' + data.r8c_1.m5_1 + '/' + data.q8c_1;
|
|
3730
3730
|
}
|
|
3731
3731
|
function Companion_0() {
|
|
3732
3732
|
Companion_instance_0 = this;
|
|
3733
|
-
this.
|
|
3733
|
+
this.t8c_1 = 'debertz://raspberry.games';
|
|
3734
3734
|
var tmp = this;
|
|
3735
3735
|
// Inline function 'kotlin.arrayOf' call
|
|
3736
3736
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3737
3737
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3738
|
-
tmp.
|
|
3738
|
+
tmp.u8c_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
3739
3739
|
var tmp_0 = this;
|
|
3740
3740
|
// Inline function 'kotlin.arrayOf' call
|
|
3741
3741
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3742
3742
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3743
|
-
tmp_0.
|
|
3743
|
+
tmp_0.v8c_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
3744
3744
|
var tmp_1 = this;
|
|
3745
3745
|
// Inline function 'kotlin.arrayOf' call
|
|
3746
3746
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3747
3747
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3748
|
-
tmp_1.
|
|
3748
|
+
tmp_1.w8c_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
3749
3749
|
var tmp_2 = this;
|
|
3750
3750
|
// Inline function 'kotlin.arrayOf' call
|
|
3751
3751
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3752
3752
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3753
|
-
tmp_2.
|
|
3753
|
+
tmp_2.x8c_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
3754
3754
|
}
|
|
3755
3755
|
var Companion_instance_0;
|
|
3756
3756
|
function Companion_getInstance_7() {
|
|
@@ -3761,14 +3761,14 @@
|
|
|
3761
3761
|
function AvatarSet(name, ordinal) {
|
|
3762
3762
|
Enum.call(this, name, ordinal);
|
|
3763
3763
|
}
|
|
3764
|
-
protoOf(AvatarSet).
|
|
3764
|
+
protoOf(AvatarSet).p8c = function () {
|
|
3765
3765
|
var tmp;
|
|
3766
3766
|
switch (this.m5_1) {
|
|
3767
3767
|
case 0:
|
|
3768
|
-
tmp = Companion_getInstance_7().
|
|
3768
|
+
tmp = Companion_getInstance_7().v8c_1.length;
|
|
3769
3769
|
break;
|
|
3770
3770
|
case 1:
|
|
3771
|
-
tmp = Companion_getInstance_7().
|
|
3771
|
+
tmp = Companion_getInstance_7().x8c_1.length;
|
|
3772
3772
|
break;
|
|
3773
3773
|
default:
|
|
3774
3774
|
noWhenBranchMatchedException();
|
|
@@ -3776,14 +3776,14 @@
|
|
|
3776
3776
|
}
|
|
3777
3777
|
return tmp;
|
|
3778
3778
|
};
|
|
3779
|
-
protoOf(AvatarSet).
|
|
3779
|
+
protoOf(AvatarSet).s8c = function (index) {
|
|
3780
3780
|
var tmp;
|
|
3781
3781
|
switch (this.m5_1) {
|
|
3782
3782
|
case 0:
|
|
3783
|
-
tmp = Companion_getInstance_7().
|
|
3783
|
+
tmp = Companion_getInstance_7().v8c_1[index];
|
|
3784
3784
|
break;
|
|
3785
3785
|
case 1:
|
|
3786
|
-
tmp = Companion_getInstance_7().
|
|
3786
|
+
tmp = Companion_getInstance_7().x8c_1[index];
|
|
3787
3787
|
break;
|
|
3788
3788
|
default:
|
|
3789
3789
|
noWhenBranchMatchedException();
|
|
@@ -3792,8 +3792,8 @@
|
|
|
3792
3792
|
return tmp;
|
|
3793
3793
|
};
|
|
3794
3794
|
function AvatarData(index, avatarSet) {
|
|
3795
|
-
this.
|
|
3796
|
-
this.
|
|
3795
|
+
this.q8c_1 = index;
|
|
3796
|
+
this.r8c_1 = avatarSet;
|
|
3797
3797
|
}
|
|
3798
3798
|
function AvatarSet_ORIGIN_getInstance() {
|
|
3799
3799
|
AvatarSet_initEntries();
|
|
@@ -3806,7 +3806,7 @@
|
|
|
3806
3806
|
function GameResourcesImpl() {
|
|
3807
3807
|
Companion_getInstance_7();
|
|
3808
3808
|
}
|
|
3809
|
-
protoOf(GameResourcesImpl).
|
|
3809
|
+
protoOf(GameResourcesImpl).m8c = function (playerId, existingNicknames) {
|
|
3810
3810
|
var data = getRandomAvatarData(this, existingNicknames);
|
|
3811
3811
|
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
3812
3812
|
};
|
|
@@ -3848,13 +3848,13 @@
|
|
|
3848
3848
|
return tmp.t2l(VOID, GameServerEngineControllerImpl$createDI$lambda(serverConfig, logicConfig, botConfig, externalReducers, externalMiddlewares, logger));
|
|
3849
3849
|
}
|
|
3850
3850
|
function _no_name_provided__qut3iv_8($item) {
|
|
3851
|
-
this.
|
|
3851
|
+
this.c8d_1 = $item;
|
|
3852
3852
|
}
|
|
3853
3853
|
protoOf(_no_name_provided__qut3iv_8).x32 = function (action) {
|
|
3854
3854
|
return isInterface(action, Action);
|
|
3855
3855
|
};
|
|
3856
3856
|
protoOf(_no_name_provided__qut3iv_8).v55 = function (state, action) {
|
|
3857
|
-
return this.
|
|
3857
|
+
return this.c8d_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3858
3858
|
};
|
|
3859
3859
|
protoOf(_no_name_provided__qut3iv_8).n31 = function (state, action) {
|
|
3860
3860
|
return this.v55(state instanceof AppState ? state : THROW_CCE(), action);
|
|
@@ -3930,52 +3930,52 @@
|
|
|
3930
3930
|
}
|
|
3931
3931
|
function GameServerEngineControllerImpl(loggerCallback) {
|
|
3932
3932
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3933
|
-
this.
|
|
3933
|
+
this.d8d_1 = loggerCallback;
|
|
3934
3934
|
var tmp = this;
|
|
3935
3935
|
var tmp_0;
|
|
3936
|
-
if (this.
|
|
3936
|
+
if (this.d8d_1 == null) {
|
|
3937
3937
|
tmp_0 = null;
|
|
3938
3938
|
} else {
|
|
3939
3939
|
// Inline function 'kotlin.let' call
|
|
3940
3940
|
// Inline function 'kotlin.contracts.contract' call
|
|
3941
3941
|
// Inline function 'GameServerEngineControllerImpl.logger.<anonymous>' call
|
|
3942
|
-
tmp_0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.
|
|
3942
|
+
tmp_0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.d8d_1)));
|
|
3943
3943
|
}
|
|
3944
3944
|
var tmp1_elvis_lhs = tmp_0;
|
|
3945
|
-
tmp.
|
|
3946
|
-
this.
|
|
3947
|
-
this.
|
|
3948
|
-
this.
|
|
3949
|
-
this.
|
|
3945
|
+
tmp.e8d_1 = tmp1_elvis_lhs == null ? new PlatformGameLogger() : tmp1_elvis_lhs;
|
|
3946
|
+
this.f8d_1 = new ParserHelperImpl(emptyList());
|
|
3947
|
+
this.g8d_1 = new GameHelperImpl();
|
|
3948
|
+
this.h8d_1 = new GameResourcesImpl();
|
|
3949
|
+
this.i8d_1 = new TestHelperImpl(this.e8d_1);
|
|
3950
3950
|
}
|
|
3951
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3952
|
-
return this.e8d_1;
|
|
3953
|
-
};
|
|
3954
|
-
protoOf(GameServerEngineControllerImpl).y8c = function () {
|
|
3951
|
+
protoOf(GameServerEngineControllerImpl).v85 = function () {
|
|
3955
3952
|
return this.f8d_1;
|
|
3956
3953
|
};
|
|
3957
3954
|
protoOf(GameServerEngineControllerImpl).z8c = function () {
|
|
3958
3955
|
return this.g8d_1;
|
|
3959
3956
|
};
|
|
3960
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3957
|
+
protoOf(GameServerEngineControllerImpl).a8d = function () {
|
|
3961
3958
|
return this.h8d_1;
|
|
3962
3959
|
};
|
|
3960
|
+
protoOf(GameServerEngineControllerImpl).y8c = function () {
|
|
3961
|
+
return this.i8d_1;
|
|
3962
|
+
};
|
|
3963
3963
|
protoOf(GameServerEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
3964
3964
|
Logger_getInstance().u36_1 = enabled;
|
|
3965
3965
|
};
|
|
3966
3966
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3967
3967
|
return this.createGameEngineWithLogic();
|
|
3968
3968
|
};
|
|
3969
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3969
|
+
protoOf(GameServerEngineControllerImpl).b8d = function (reducers, middlewares, serverConfig, logicConfig) {
|
|
3970
3970
|
var loggerOutputWithTablePayload = null;
|
|
3971
3971
|
var tmp;
|
|
3972
|
-
if (this.
|
|
3972
|
+
if (this.d8d_1 == null) {
|
|
3973
3973
|
tmp = null;
|
|
3974
3974
|
} else {
|
|
3975
3975
|
// Inline function 'kotlin.let' call
|
|
3976
3976
|
// Inline function 'kotlin.contracts.contract' call
|
|
3977
3977
|
// Inline function 'GameServerEngineControllerImpl.createGameEngineWithLogic.<anonymous>' call
|
|
3978
|
-
var loggerOutput = createLoggerOutputWithTablePayload(this.
|
|
3978
|
+
var loggerOutput = createLoggerOutputWithTablePayload(this.d8d_1);
|
|
3979
3979
|
loggerOutputWithTablePayload = loggerOutput;
|
|
3980
3980
|
tmp = new CombinedGameLogger(listOf(loggerOutput));
|
|
3981
3981
|
}
|
|
@@ -4030,11 +4030,11 @@
|
|
|
4030
4030
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4031
4031
|
// Inline function 'kotlin.getValue' call
|
|
4032
4032
|
playerAnswerInteractor$factory_0();
|
|
4033
|
-
return $this.
|
|
4033
|
+
return $this.l8d_1.l1();
|
|
4034
4034
|
}
|
|
4035
4035
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4036
4036
|
return function ($this$singleton) {
|
|
4037
|
-
return this$0.
|
|
4037
|
+
return this$0.j8d_1;
|
|
4038
4038
|
};
|
|
4039
4039
|
}
|
|
4040
4040
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4068,18 +4068,18 @@
|
|
|
4068
4068
|
return emptyMap();
|
|
4069
4069
|
}
|
|
4070
4070
|
function TestHelperImpl(gameLogger) {
|
|
4071
|
-
this.
|
|
4071
|
+
this.j8d_1 = gameLogger;
|
|
4072
4072
|
var tmp = this;
|
|
4073
4073
|
var tmp_0 = Companion_getInstance_5();
|
|
4074
|
-
tmp.
|
|
4074
|
+
tmp.k8d_1 = tmp_0.t2l(VOID, TestHelperImpl$di$lambda(this));
|
|
4075
4075
|
var tmp_1 = this;
|
|
4076
4076
|
// Inline function 'org.kodein.di.instance' call
|
|
4077
|
-
var tmp0_instance = this.
|
|
4077
|
+
var tmp0_instance = this.k8d_1;
|
|
4078
4078
|
var tmp$ret$0;
|
|
4079
4079
|
// Inline function 'org.kodein.type.generic' call
|
|
4080
4080
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4081
4081
|
tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4082
|
-
tmp_1.
|
|
4082
|
+
tmp_1.l8d_1 = Instance(tmp0_instance, tmp$ret$0, null).e2r(this, playerAnswerInteractor$factory());
|
|
4083
4083
|
}
|
|
4084
4084
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4085
4085
|
return _get_playerAnswerInteractor__msggz1(this).a4r(playerId, table, botConfig);
|
|
@@ -4196,16 +4196,16 @@
|
|
|
4196
4196
|
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
4197
4197
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4198
4198
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4199
|
-
return this.
|
|
4199
|
+
return this.v85();
|
|
4200
4200
|
}, VOID);
|
|
4201
4201
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4202
|
-
return this.
|
|
4202
|
+
return this.z8c();
|
|
4203
4203
|
}, VOID);
|
|
4204
4204
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4205
|
-
return this.
|
|
4205
|
+
return this.a8d();
|
|
4206
4206
|
}, VOID);
|
|
4207
4207
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4208
|
-
return this.
|
|
4208
|
+
return this.y8c();
|
|
4209
4209
|
}, VOID);
|
|
4210
4210
|
//endregion
|
|
4211
4211
|
//region block: exports
|