raspberry_games_server_game_logic 1.8.424 → 1.8.426
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-core.js +1 -1
- package/Logic_Debertz-engine.js +6115 -6103
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +5 -2
- package/Logic_Debertz-game_server.js +140 -133
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
ratingConfig = ratingConfig === VOID ? new RatingConfig() : ratingConfig;
|
|
507
507
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
508
508
|
botConfig = botConfig === VOID ? new EngineBotConfig(VOID, VOID, VOID, false) : botConfig;
|
|
509
|
-
return $super === VOID ? this.
|
|
509
|
+
return $super === VOID ? this.fae(reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig) : $super.fae.call(this, reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig);
|
|
510
510
|
}
|
|
511
511
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
512
512
|
initMetadataForClass(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -1555,7 +1555,7 @@
|
|
|
1555
1555
|
}
|
|
1556
1556
|
var playerAchievements = tmp;
|
|
1557
1557
|
var playerAnalytics = mapToGameAnalytics(player, table.gameDuration);
|
|
1558
|
-
return new PlayerLeftResult(playerAchievements, playerAnalytics);
|
|
1558
|
+
return new PlayerLeftResult(table.gameId, table.gameCreatedAt, table.config, playerAchievements, playerAnalytics);
|
|
1559
1559
|
}
|
|
1560
1560
|
function validatePlayerCount($this, config, users, roomId) {
|
|
1561
1561
|
if (!(config.playersMode.count === users.o())) {
|
|
@@ -3366,7 +3366,7 @@
|
|
|
3366
3366
|
if (this.t66().b6s()) {
|
|
3367
3367
|
tmp = calculatePlayerLeftResult(this, playerId);
|
|
3368
3368
|
} else {
|
|
3369
|
-
tmp =
|
|
3369
|
+
tmp = null;
|
|
3370
3370
|
}
|
|
3371
3371
|
var result = tmp;
|
|
3372
3372
|
this.u9x_1.x6r(GameServer$playerLeft$slambda_0(this, playerId, permanently, null));
|
|
@@ -3654,7 +3654,7 @@
|
|
|
3654
3654
|
this.la8_1 = roomId;
|
|
3655
3655
|
this.table = table;
|
|
3656
3656
|
}
|
|
3657
|
-
protoOf(TableStateUpdateDto).
|
|
3657
|
+
protoOf(TableStateUpdateDto).y8i = function () {
|
|
3658
3658
|
return this.la8_1;
|
|
3659
3659
|
};
|
|
3660
3660
|
protoOf(TableStateUpdateDto).z6r = function () {
|
|
@@ -3784,7 +3784,7 @@
|
|
|
3784
3784
|
this.oa8_1 = roomId;
|
|
3785
3785
|
this.actions = actions;
|
|
3786
3786
|
}
|
|
3787
|
-
protoOf(ActionsStateUpdateDto).
|
|
3787
|
+
protoOf(ActionsStateUpdateDto).y8i = function () {
|
|
3788
3788
|
return this.oa8_1;
|
|
3789
3789
|
};
|
|
3790
3790
|
protoOf(ActionsStateUpdateDto).l8j = function () {
|
|
@@ -3858,7 +3858,7 @@
|
|
|
3858
3858
|
this.qa8_1 = roomId;
|
|
3859
3859
|
this.table = table;
|
|
3860
3860
|
}
|
|
3861
|
-
protoOf(TableStateUpdate).
|
|
3861
|
+
protoOf(TableStateUpdate).y8i = function () {
|
|
3862
3862
|
return this.qa8_1;
|
|
3863
3863
|
};
|
|
3864
3864
|
protoOf(TableStateUpdate).z6r = function () {
|
|
@@ -3901,7 +3901,7 @@
|
|
|
3901
3901
|
this.pa8_1 = roomId;
|
|
3902
3902
|
this.actions = actions;
|
|
3903
3903
|
}
|
|
3904
|
-
protoOf(ActionsStateUpdate).
|
|
3904
|
+
protoOf(ActionsStateUpdate).y8i = function () {
|
|
3905
3905
|
return this.pa8_1;
|
|
3906
3906
|
};
|
|
3907
3907
|
protoOf(ActionsStateUpdate).l8j = function () {
|
|
@@ -4565,7 +4565,7 @@
|
|
|
4565
4565
|
if (canRemoveGameWhenNoPlayers) {
|
|
4566
4566
|
return listOf($this.fab_1.m8x(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: No Players to continue game'));
|
|
4567
4567
|
}
|
|
4568
|
-
if (table.sceneInfo.
|
|
4568
|
+
if (table.sceneInfo.f7g()) {
|
|
4569
4569
|
if (!$this.cab_1.openRoomIfFinished) {
|
|
4570
4570
|
return listOf($this.fab_1.m8x(mapToFinishReason(newConnectionState, player, table.playersConnections), table, 'Disconnect: Game is finished'));
|
|
4571
4571
|
}
|
|
@@ -4690,7 +4690,7 @@
|
|
|
4690
4690
|
break;
|
|
4691
4691
|
case 4:
|
|
4692
4692
|
case 5:
|
|
4693
|
-
var tmp1_waitForPlayer = !afterReconnection && !table.sceneInfo.
|
|
4693
|
+
var tmp1_waitForPlayer = !afterReconnection && !table.sceneInfo.f7g() && table.config.isPrivate;
|
|
4694
4694
|
tmp = waitPlayerOrDisconnect(this, newConnectionState, previousConnectionState, table, player, tmp1_waitForPlayer);
|
|
4695
4695
|
break;
|
|
4696
4696
|
case 2:
|
|
@@ -5196,7 +5196,7 @@
|
|
|
5196
5196
|
tmp_0 = null;
|
|
5197
5197
|
}
|
|
5198
5198
|
var tmp_1 = plus(plus(plus(plus(plus(tmp, listOfNotNull(tmp_0)), this.mab_1.q97()), this.kab_1.q97()), this.lab_1.q97()), this.nab_1.q97());
|
|
5199
|
-
var tmp_2 = playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this));
|
|
5199
|
+
var tmp_2 = playerConnectionUpdateMiddleware(_get_logger__rkp4sl(this), _get_playerConnectionInteractor__si6cxf_0(this));
|
|
5200
5200
|
var tmp_3 = playerReconnectionTimeoutMiddleware(_get_playerConnectionInteractor__si6cxf_0(this));
|
|
5201
5201
|
var tmp_4;
|
|
5202
5202
|
if (_get_serverConfig__rk2g06(this).waitForPlayerToConnectOnStart) {
|
|
@@ -5585,7 +5585,7 @@
|
|
|
5585
5585
|
}
|
|
5586
5586
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3, tmp4_3, element_8, destination_20);
|
|
5587
5587
|
var tmp_0;
|
|
5588
|
-
if (this.eac_1.cac_1.supportBackwardActions && getPlayer(state.z6r().players, sendToPlayer_8.
|
|
5588
|
+
if (this.eac_1.cac_1.supportBackwardActions && getPlayer(state.z6r().players, sendToPlayer_8.y7g_1).m6v_1.w6z_1) {
|
|
5589
5589
|
tmp_0 = null;
|
|
5590
5590
|
} else {
|
|
5591
5591
|
tmp_0 = mapToClient_10(action_0, sendToPlayer_8);
|
|
@@ -5741,27 +5741,34 @@
|
|
|
5741
5741
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
5742
5742
|
return new ServerMapMechanicToClientActionMiddleware$middleware$$inlined$middlewareForActionType$1(this);
|
|
5743
5743
|
};
|
|
5744
|
-
function playerConnectionUpdateMiddleware(playerConnectionInteractor) {
|
|
5744
|
+
function playerConnectionUpdateMiddleware(logger, playerConnectionInteractor) {
|
|
5745
5745
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
5746
|
-
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5746
|
+
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(logger, playerConnectionInteractor);
|
|
5747
5747
|
}
|
|
5748
|
-
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5749
|
-
this.fac_1 = $
|
|
5748
|
+
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($logger, $playerConnectionInteractor) {
|
|
5749
|
+
this.fac_1 = $logger;
|
|
5750
|
+
this.gac_1 = $playerConnectionInteractor;
|
|
5750
5751
|
}
|
|
5751
5752
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).g6g = function (action) {
|
|
5752
5753
|
return action instanceof PlayerConnectionUpdateAction;
|
|
5753
5754
|
};
|
|
5754
5755
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).v6h = function (store, next, action) {
|
|
5755
5756
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
5756
|
-
$l$
|
|
5757
|
+
$l$block_1: {
|
|
5757
5758
|
next(tmp4);
|
|
5758
5759
|
var state = store.state;
|
|
5759
5760
|
if (!get_isCreated(state)) {
|
|
5760
|
-
break $l$
|
|
5761
|
+
break $l$block_1;
|
|
5761
5762
|
}
|
|
5762
5763
|
var player = getPlayer(state.z6r().players, tmp4.f93_1);
|
|
5763
|
-
if (tmp4.e93_1.isVisibleDisconnectedReason
|
|
5764
|
-
|
|
5764
|
+
if (tmp4.e93_1.isVisibleDisconnectedReason) {
|
|
5765
|
+
if (player.k6v_1.a69().n67_1.isDisconnecting) {
|
|
5766
|
+
break $l$block_1;
|
|
5767
|
+
}
|
|
5768
|
+
if (player.k6v_1.a69().n67_1.isLeftPermanently) {
|
|
5769
|
+
this.fac_1.w('playerConnectionUpdateMiddleware', "player connection state can't be changed after [playerLeft] is invoked, " + tmp4.toString());
|
|
5770
|
+
break $l$block_1;
|
|
5771
|
+
}
|
|
5765
5772
|
}
|
|
5766
5773
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
5767
5774
|
var tmp0 = state.a6r_1;
|
|
@@ -5775,17 +5782,17 @@
|
|
|
5775
5782
|
}
|
|
5776
5783
|
}
|
|
5777
5784
|
var tmp$ret$4;
|
|
5778
|
-
$l$
|
|
5785
|
+
$l$block_3: {
|
|
5779
5786
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
5780
5787
|
var single = null;
|
|
5781
5788
|
var found = false;
|
|
5782
5789
|
var _iterator__ex2g4s_0 = destination.l();
|
|
5783
5790
|
while (_iterator__ex2g4s_0.m()) {
|
|
5784
5791
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
5785
|
-
if (element_0.
|
|
5792
|
+
if (element_0.hac_1 === tmp4.f93_1) {
|
|
5786
5793
|
if (found) {
|
|
5787
5794
|
tmp$ret$4 = null;
|
|
5788
|
-
break $l$
|
|
5795
|
+
break $l$block_3;
|
|
5789
5796
|
}
|
|
5790
5797
|
single = element_0;
|
|
5791
5798
|
found = true;
|
|
@@ -5793,7 +5800,7 @@
|
|
|
5793
5800
|
}
|
|
5794
5801
|
if (!found) {
|
|
5795
5802
|
tmp$ret$4 = null;
|
|
5796
|
-
break $l$
|
|
5803
|
+
break $l$block_3;
|
|
5797
5804
|
}
|
|
5798
5805
|
tmp$ret$4 = single;
|
|
5799
5806
|
}
|
|
@@ -5801,7 +5808,7 @@
|
|
|
5801
5808
|
if (!(reconnectionTimerTag == null)) {
|
|
5802
5809
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
5803
5810
|
}
|
|
5804
|
-
var actions = this.
|
|
5811
|
+
var actions = this.gac_1.zaa(tmp4.e93_1, player.k6v_1.a69().n67_1, player, store.state.z6r(), tmp4.g93_1);
|
|
5805
5812
|
// Inline function 'kotlin.collections.forEach' call
|
|
5806
5813
|
var _iterator__ex2g4s_1 = actions.l();
|
|
5807
5814
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -5818,17 +5825,17 @@
|
|
|
5818
5825
|
return new playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5819
5826
|
}
|
|
5820
5827
|
function PlayerReconnectionWaitingTimerTag(playerId, state, previousState) {
|
|
5821
|
-
this.
|
|
5822
|
-
this.
|
|
5823
|
-
this.
|
|
5828
|
+
this.hac_1 = playerId;
|
|
5829
|
+
this.iac_1 = state;
|
|
5830
|
+
this.jac_1 = previousState;
|
|
5824
5831
|
}
|
|
5825
5832
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
5826
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
5833
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.hac_1 + ', state=' + this.iac_1.toString() + ', previousState=' + this.jac_1.toString() + ')';
|
|
5827
5834
|
};
|
|
5828
5835
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
5829
|
-
var result = getStringHashCode(this.
|
|
5830
|
-
result = imul(result, 31) + this.hac_1.hashCode() | 0;
|
|
5836
|
+
var result = getStringHashCode(this.hac_1);
|
|
5831
5837
|
result = imul(result, 31) + this.iac_1.hashCode() | 0;
|
|
5838
|
+
result = imul(result, 31) + this.jac_1.hashCode() | 0;
|
|
5832
5839
|
return result;
|
|
5833
5840
|
};
|
|
5834
5841
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -5836,16 +5843,16 @@
|
|
|
5836
5843
|
return true;
|
|
5837
5844
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
5838
5845
|
return false;
|
|
5839
|
-
if (!(this.
|
|
5840
|
-
return false;
|
|
5841
|
-
if (!this.hac_1.equals(other.hac_1))
|
|
5846
|
+
if (!(this.hac_1 === other.hac_1))
|
|
5842
5847
|
return false;
|
|
5843
5848
|
if (!this.iac_1.equals(other.iac_1))
|
|
5844
5849
|
return false;
|
|
5850
|
+
if (!this.jac_1.equals(other.jac_1))
|
|
5851
|
+
return false;
|
|
5845
5852
|
return true;
|
|
5846
5853
|
};
|
|
5847
5854
|
function playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5848
|
-
this.
|
|
5855
|
+
this.kac_1 = $playerConnectionInteractor;
|
|
5849
5856
|
}
|
|
5850
5857
|
protoOf(playerReconnectionTimeoutMiddleware$$inlined$middlewareForActionType$1).g6g = function (action) {
|
|
5851
5858
|
return action instanceof TimerTickAction;
|
|
@@ -5859,8 +5866,8 @@
|
|
|
5859
5866
|
var timerTag = tmp4.c6g_1;
|
|
5860
5867
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
5861
5868
|
var state = store.state;
|
|
5862
|
-
var player = getPlayer(state.z6r().players, timerTag.
|
|
5863
|
-
var actions = this.
|
|
5869
|
+
var player = getPlayer(state.z6r().players, timerTag.hac_1);
|
|
5870
|
+
var actions = this.kac_1.zaa(timerTag.iac_1, timerTag.jac_1, player, state.z6r(), true);
|
|
5864
5871
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5865
5872
|
if (!actions.r()) {
|
|
5866
5873
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -5882,7 +5889,7 @@
|
|
|
5882
5889
|
return new playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
5883
5890
|
}
|
|
5884
5891
|
function playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
5885
|
-
this.
|
|
5892
|
+
this.lac_1 = $playerConnectionInteractor;
|
|
5886
5893
|
}
|
|
5887
5894
|
protoOf(playerReconnectionTimerStartWhenStartGameMiddleware$$inlined$middlewareForActionType$1).g6g = function (action) {
|
|
5888
5895
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -5910,7 +5917,7 @@
|
|
|
5910
5917
|
var tmp1_previousConnectionState = element_0.k6v_1.a69().n67_1;
|
|
5911
5918
|
var tmp2_playerId = element_0.playerId;
|
|
5912
5919
|
// Inline function 'kotlin.collections.forEach' call
|
|
5913
|
-
var _iterator__ex2g4s_1 = this.
|
|
5920
|
+
var _iterator__ex2g4s_1 = this.lac_1.aab(tmp2_playerId, tmp0_newConnectionState, tmp1_previousConnectionState).l();
|
|
5914
5921
|
while (_iterator__ex2g4s_1.m()) {
|
|
5915
5922
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
5916
5923
|
store.dispatch(element_1);
|
|
@@ -5925,8 +5932,8 @@
|
|
|
5925
5932
|
return new sendToClientActionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, provider);
|
|
5926
5933
|
}
|
|
5927
5934
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
5928
|
-
this.
|
|
5929
|
-
this.
|
|
5935
|
+
this.uac_1 = $provider;
|
|
5936
|
+
this.vac_1 = $action;
|
|
5930
5937
|
CoroutineImpl.call(this, resultContinuation);
|
|
5931
5938
|
}
|
|
5932
5939
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).b2d = function ($this$launchDefault, $completion) {
|
|
@@ -5947,7 +5954,7 @@
|
|
|
5947
5954
|
case 0:
|
|
5948
5955
|
this.t8_1 = 2;
|
|
5949
5956
|
this.s8_1 = 1;
|
|
5950
|
-
suspendResult = this.
|
|
5957
|
+
suspendResult = this.uac_1.ta8(this.vac_1, this);
|
|
5951
5958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5952
5959
|
return suspendResult;
|
|
5953
5960
|
}
|
|
@@ -5970,8 +5977,8 @@
|
|
|
5970
5977
|
while (true);
|
|
5971
5978
|
};
|
|
5972
5979
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).c2d = function ($this$launchDefault, completion) {
|
|
5973
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
5974
|
-
i.
|
|
5980
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.uac_1, this.vac_1, completion);
|
|
5981
|
+
i.wac_1 = $this$launchDefault;
|
|
5975
5982
|
return i;
|
|
5976
5983
|
};
|
|
5977
5984
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -5983,15 +5990,15 @@
|
|
|
5983
5990
|
return l;
|
|
5984
5991
|
}
|
|
5985
5992
|
function sendToClientActionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $provider) {
|
|
5986
|
-
this.
|
|
5987
|
-
this.
|
|
5993
|
+
this.xac_1 = $asyncProvider;
|
|
5994
|
+
this.yac_1 = $provider;
|
|
5988
5995
|
}
|
|
5989
5996
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).g6g = function (action) {
|
|
5990
5997
|
return action instanceof ToClientAction;
|
|
5991
5998
|
};
|
|
5992
5999
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).v6h = function (store, next, action) {
|
|
5993
6000
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
5994
|
-
this.
|
|
6001
|
+
this.xac_1.j6c(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.yac_1, action_0, null));
|
|
5995
6002
|
next(action_0);
|
|
5996
6003
|
};
|
|
5997
6004
|
protoOf(sendToClientActionMiddleware$$inlined$middlewareForActionType$1).f6g = function (store, next, action) {
|
|
@@ -6002,11 +6009,11 @@
|
|
|
6002
6009
|
return new playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
6003
6010
|
}
|
|
6004
6011
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
6005
|
-
this.
|
|
6006
|
-
this.
|
|
6007
|
-
this.
|
|
6008
|
-
this.
|
|
6009
|
-
this.
|
|
6012
|
+
this.had_1 = $store;
|
|
6013
|
+
this.iad_1 = $timerTag;
|
|
6014
|
+
this.jad_1 = $serverConfig;
|
|
6015
|
+
this.kad_1 = $logger;
|
|
6016
|
+
this.lad_1 = $action;
|
|
6010
6017
|
CoroutineImpl.call(this, resultContinuation);
|
|
6011
6018
|
}
|
|
6012
6019
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).b2d = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -6025,13 +6032,13 @@
|
|
|
6025
6032
|
var tmp = this.s8_1;
|
|
6026
6033
|
if (tmp === 0) {
|
|
6027
6034
|
this.t8_1 = 1;
|
|
6028
|
-
var table = this.
|
|
6029
|
-
var player = getPlayer(table.players, this.
|
|
6035
|
+
var table = this.had_1.state.z6r();
|
|
6036
|
+
var player = getPlayer(table.players, this.iad_1.v65());
|
|
6030
6037
|
var connectionState = player.k6v_1.a69().n67_1;
|
|
6031
6038
|
var tmp_0;
|
|
6032
6039
|
switch (connectionState.q2_1) {
|
|
6033
6040
|
case 1:
|
|
6034
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.
|
|
6041
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.iad_1.s9g_1));
|
|
6035
6042
|
break;
|
|
6036
6043
|
case 6:
|
|
6037
6044
|
tmp_0 = emptyList();
|
|
@@ -6041,8 +6048,8 @@
|
|
|
6041
6048
|
case 3:
|
|
6042
6049
|
case 2:
|
|
6043
6050
|
var tmp_1;
|
|
6044
|
-
if (table.sceneInfo.
|
|
6045
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.
|
|
6051
|
+
if (table.sceneInfo.f7g() && this.jad_1.closeIfBotsAtFinish) {
|
|
6052
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.iad_1.s9g_1);
|
|
6046
6053
|
} else {
|
|
6047
6054
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
6048
6055
|
}
|
|
@@ -6051,7 +6058,7 @@
|
|
|
6051
6058
|
break;
|
|
6052
6059
|
case 0:
|
|
6053
6060
|
case 7:
|
|
6054
|
-
this.
|
|
6061
|
+
this.kad_1.w('playerTurnTimeoutWhenHasConnectionMiddleware', "Can't support this state " + connectionState.toString() + ', ' + ('action:' + this.lad_1.toString()));
|
|
6055
6062
|
tmp_0 = emptyList();
|
|
6056
6063
|
break;
|
|
6057
6064
|
default:
|
|
@@ -6063,7 +6070,7 @@
|
|
|
6063
6070
|
var _iterator__ex2g4s = actions.l();
|
|
6064
6071
|
while (_iterator__ex2g4s.m()) {
|
|
6065
6072
|
var element = _iterator__ex2g4s.n();
|
|
6066
|
-
this.
|
|
6073
|
+
this.had_1.dispatch(element);
|
|
6067
6074
|
}
|
|
6068
6075
|
}
|
|
6069
6076
|
return Unit_instance;
|
|
@@ -6077,8 +6084,8 @@
|
|
|
6077
6084
|
while (true);
|
|
6078
6085
|
};
|
|
6079
6086
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda).c2d = function ($this$launchDefaultWithLock, completion) {
|
|
6080
|
-
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.
|
|
6081
|
-
i.
|
|
6087
|
+
var i = new playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda(this.had_1, this.iad_1, this.jad_1, this.kad_1, this.lad_1, completion);
|
|
6088
|
+
i.mad_1 = $this$launchDefaultWithLock;
|
|
6082
6089
|
return i;
|
|
6083
6090
|
};
|
|
6084
6091
|
function playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -6090,9 +6097,9 @@
|
|
|
6090
6097
|
return l;
|
|
6091
6098
|
}
|
|
6092
6099
|
function playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
6093
|
-
this.
|
|
6094
|
-
this.
|
|
6095
|
-
this.
|
|
6100
|
+
this.nad_1 = $asyncProvider;
|
|
6101
|
+
this.oad_1 = $serverConfig;
|
|
6102
|
+
this.pad_1 = $logger;
|
|
6096
6103
|
}
|
|
6097
6104
|
protoOf(playerTurnTimeoutWhenHasConnectionMiddleware$$inlined$middlewareForActionType$1).g6g = function (action) {
|
|
6098
6105
|
return action instanceof TimerTickAction;
|
|
@@ -6101,7 +6108,7 @@
|
|
|
6101
6108
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
6102
6109
|
var timerTag = action_0.c6g_1;
|
|
6103
6110
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
6104
|
-
this.
|
|
6111
|
+
this.nad_1.l6c(VOID, playerTurnTimeoutWhenHasConnectionMiddleware$o$handle$slambda_0(store, timerTag, this.oad_1, this.pad_1, action_0, null));
|
|
6105
6112
|
}
|
|
6106
6113
|
next(action_0);
|
|
6107
6114
|
};
|
|
@@ -6129,7 +6136,7 @@
|
|
|
6129
6136
|
return _this__u8e3s4.metadata;
|
|
6130
6137
|
}
|
|
6131
6138
|
function Companion_5() {
|
|
6132
|
-
this.
|
|
6139
|
+
this.qad_1 = 'ServerMechanicLifecycleReducer';
|
|
6133
6140
|
}
|
|
6134
6141
|
var Companion_instance_15;
|
|
6135
6142
|
function Companion_getInstance_6() {
|
|
@@ -6143,7 +6150,7 @@
|
|
|
6143
6150
|
tmp_0 = Companion_instance_4.l67(PlayerConnectionState_LEFT_PERMANENTLY_getInstance());
|
|
6144
6151
|
} else {
|
|
6145
6152
|
var tmp_1;
|
|
6146
|
-
if (this$0.
|
|
6153
|
+
if (this$0.uad_1.waitForPlayerToConnectOnStart) {
|
|
6147
6154
|
var tmp_2 = Companion_instance_4;
|
|
6148
6155
|
var tmp_3;
|
|
6149
6156
|
if ($updatedServerPayload.connectedPlayers.u1(it.j66_1)) {
|
|
@@ -6173,11 +6180,11 @@
|
|
|
6173
6180
|
}
|
|
6174
6181
|
function ServerMechanicLifecycleReducer(logger, serverReduxConfig, tableLifecycleReducer, randomPoolProvider) {
|
|
6175
6182
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
6176
|
-
this.
|
|
6177
|
-
this.
|
|
6183
|
+
this.tad_1 = logger;
|
|
6184
|
+
this.uad_1 = serverReduxConfig;
|
|
6178
6185
|
}
|
|
6179
6186
|
protoOf(ServerMechanicLifecycleReducer).s9k = function (state, action) {
|
|
6180
|
-
this.
|
|
6187
|
+
this.tad_1.d('ServerMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
6181
6188
|
var tableId = action.w93_1;
|
|
6182
6189
|
var serverState = get_serverStatePayload_0(state);
|
|
6183
6190
|
var updatedServerPayload = serverState.copy(VOID, addRoomMetadata(this, serverState, tableId));
|
|
@@ -6192,7 +6199,7 @@
|
|
|
6192
6199
|
return state.x92(tmp7_tableOrNull, updatedServerPayload, tmp6_gameLifecycleState);
|
|
6193
6200
|
};
|
|
6194
6201
|
protoOf(ServerMechanicLifecycleReducer).q9k = function (state, action) {
|
|
6195
|
-
this.
|
|
6202
|
+
this.tad_1.d('ServerMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
6196
6203
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
6197
6204
|
var tmp2_tableOrNull = action.table;
|
|
6198
6205
|
var tmp = Companion_instance_16;
|
|
@@ -6214,7 +6221,7 @@
|
|
|
6214
6221
|
return new spectatorsReducer$$inlined$reducerForActionType$1(logger);
|
|
6215
6222
|
}
|
|
6216
6223
|
function spectatorsReducer$$inlined$reducerForActionType$1($logger) {
|
|
6217
|
-
this.
|
|
6224
|
+
this.vad_1 = $logger;
|
|
6218
6225
|
}
|
|
6219
6226
|
protoOf(spectatorsReducer$$inlined$reducerForActionType$1).g6g = function (action) {
|
|
6220
6227
|
return isInterface(action, SpectatorsAction);
|
|
@@ -6244,7 +6251,7 @@
|
|
|
6244
6251
|
var tmp_0;
|
|
6245
6252
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6246
6253
|
if (!sameSpectators.r()) {
|
|
6247
|
-
this.
|
|
6254
|
+
this.vad_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
6248
6255
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6249
6256
|
var tmp0_0 = action_0.hab_1;
|
|
6250
6257
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -6317,7 +6324,7 @@
|
|
|
6317
6324
|
var tmp_2;
|
|
6318
6325
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6319
6326
|
if (!sameSpectators_0.r()) {
|
|
6320
|
-
this.
|
|
6327
|
+
this.vad_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
6321
6328
|
// Inline function 'kotlin.collections.filterNot' call
|
|
6322
6329
|
var tmp0_2 = action_0.iab_1;
|
|
6323
6330
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -6426,13 +6433,13 @@
|
|
|
6426
6433
|
};
|
|
6427
6434
|
function Companion_6() {
|
|
6428
6435
|
}
|
|
6429
|
-
protoOf(Companion_6).
|
|
6436
|
+
protoOf(Companion_6).wad = function (config, metadata) {
|
|
6430
6437
|
return new ServerStatePayload(config, metadata, emptyList());
|
|
6431
6438
|
};
|
|
6432
6439
|
protoOf(Companion_6).initial = function (config, metadata, $super) {
|
|
6433
6440
|
config = config === VOID ? Companion_instance_10.initial(null) : config;
|
|
6434
6441
|
metadata = metadata === VOID ? new RoomMetadata() : metadata;
|
|
6435
|
-
return $super === VOID ? this.
|
|
6442
|
+
return $super === VOID ? this.wad(config, metadata) : $super.wad.call(this, config, metadata);
|
|
6436
6443
|
};
|
|
6437
6444
|
var Companion_instance_16;
|
|
6438
6445
|
function Companion_getInstance_7() {
|
|
@@ -6449,7 +6456,7 @@
|
|
|
6449
6456
|
protoOf(ServerStatePayload).e8m = function () {
|
|
6450
6457
|
return this.metadata;
|
|
6451
6458
|
};
|
|
6452
|
-
protoOf(ServerStatePayload).
|
|
6459
|
+
protoOf(ServerStatePayload).xad = function () {
|
|
6453
6460
|
return this.connectedPlayers;
|
|
6454
6461
|
};
|
|
6455
6462
|
protoOf(ServerStatePayload).oe = function () {
|
|
@@ -6461,14 +6468,14 @@
|
|
|
6461
6468
|
protoOf(ServerStatePayload).xl = function () {
|
|
6462
6469
|
return this.connectedPlayers;
|
|
6463
6470
|
};
|
|
6464
|
-
protoOf(ServerStatePayload).
|
|
6471
|
+
protoOf(ServerStatePayload).yad = function (config, metadata, connectedPlayers) {
|
|
6465
6472
|
return new ServerStatePayload(config, metadata, connectedPlayers);
|
|
6466
6473
|
};
|
|
6467
6474
|
protoOf(ServerStatePayload).copy = function (config, metadata, connectedPlayers, $super) {
|
|
6468
6475
|
config = config === VOID ? this.config : config;
|
|
6469
6476
|
metadata = metadata === VOID ? this.metadata : metadata;
|
|
6470
6477
|
connectedPlayers = connectedPlayers === VOID ? this.connectedPlayers : connectedPlayers;
|
|
6471
|
-
return $super === VOID ? this.
|
|
6478
|
+
return $super === VOID ? this.yad(config, metadata, connectedPlayers) : $super.yad.call(this, config, metadata, connectedPlayers);
|
|
6472
6479
|
};
|
|
6473
6480
|
protoOf(ServerStatePayload).toString = function () {
|
|
6474
6481
|
return 'ServerStatePayload(config=' + this.config.toString() + ', metadata=' + toString(this.metadata) + ', connectedPlayers=' + toString(this.connectedPlayers) + ')';
|
|
@@ -6533,14 +6540,14 @@
|
|
|
6533
6540
|
return new GameServerEngineControllerImpl(loggerCallback, randomOrgConfig);
|
|
6534
6541
|
}
|
|
6535
6542
|
function _get_logger__rkp4sl_0($this) {
|
|
6536
|
-
var tmp0 = $this.
|
|
6543
|
+
var tmp0 = $this.iae_1;
|
|
6537
6544
|
var tmp = KProperty1;
|
|
6538
6545
|
// Inline function 'kotlin.getValue' call
|
|
6539
6546
|
getPropertyCallableRef('logger', 1, tmp, GameServerEngineControllerImpl$_get_logger_$ref_b9j0th(), null);
|
|
6540
6547
|
return tmp0.x();
|
|
6541
6548
|
}
|
|
6542
6549
|
function _get_di__ndbzja($this) {
|
|
6543
|
-
var tmp0 = $this.
|
|
6550
|
+
var tmp0 = $this.jae_1;
|
|
6544
6551
|
var tmp = KProperty1;
|
|
6545
6552
|
// Inline function 'kotlin.getValue' call
|
|
6546
6553
|
getPropertyCallableRef('di', 1, tmp, GameServerEngineControllerImpl$_get_di_$ref_cvlqo6(), null);
|
|
@@ -6557,8 +6564,8 @@
|
|
|
6557
6564
|
}
|
|
6558
6565
|
function createCallbackOutput($this, gameServer) {
|
|
6559
6566
|
var tmp;
|
|
6560
|
-
if (!($this.
|
|
6561
|
-
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.
|
|
6567
|
+
if (!($this.gae_1 == null)) {
|
|
6568
|
+
var tmp_0 = new LoggerCallbacksWrapperLoggerOutput($this.gae_1);
|
|
6562
6569
|
tmp = new CallbackWrapperLoggerOutput(tmp_0, GameServerEngineControllerImpl$createCallbackOutput$lambda(gameServer));
|
|
6563
6570
|
} else {
|
|
6564
6571
|
tmp = null;
|
|
@@ -6572,11 +6579,11 @@
|
|
|
6572
6579
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
6573
6580
|
return function () {
|
|
6574
6581
|
var tmp;
|
|
6575
|
-
if (this$0.
|
|
6582
|
+
if (this$0.gae_1 == null) {
|
|
6576
6583
|
tmp = null;
|
|
6577
6584
|
} else {
|
|
6578
6585
|
// Inline function 'kotlin.let' call
|
|
6579
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
6586
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.gae_1)]));
|
|
6580
6587
|
}
|
|
6581
6588
|
var tmp1_elvis_lhs = tmp;
|
|
6582
6589
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -6609,7 +6616,7 @@
|
|
|
6609
6616
|
tmp_0.z62(tmp$ret$3);
|
|
6610
6617
|
$this$DI.d5z(jsonModule());
|
|
6611
6618
|
$this$DI.d5z(serverHelpersModule());
|
|
6612
|
-
$this$DI.d5z(randomOrgModule(this$0.
|
|
6619
|
+
$this$DI.d5z(randomOrgModule(this$0.hae_1));
|
|
6613
6620
|
return Unit_instance;
|
|
6614
6621
|
};
|
|
6615
6622
|
}
|
|
@@ -6685,13 +6692,13 @@
|
|
|
6685
6692
|
};
|
|
6686
6693
|
}
|
|
6687
6694
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1($reducer) {
|
|
6688
|
-
this.
|
|
6695
|
+
this.qae_1 = $reducer;
|
|
6689
6696
|
}
|
|
6690
6697
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).g6g = function (action) {
|
|
6691
6698
|
return isInterface(action, Action);
|
|
6692
6699
|
};
|
|
6693
6700
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).b9j = function (state, action) {
|
|
6694
|
-
return this.
|
|
6701
|
+
return this.qae_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
6695
6702
|
};
|
|
6696
6703
|
protoOf(GameServerEngineControllerImpl$createGameEngineWithLogic$$inlined$map$1).w6h = function (state, action) {
|
|
6697
6704
|
return this.b9j((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -6795,7 +6802,7 @@
|
|
|
6795
6802
|
// Inline function 'kotlin.let' call
|
|
6796
6803
|
$this$DI.d5z(tmp0_safe_receiver);
|
|
6797
6804
|
}
|
|
6798
|
-
$this$DI.d5z(dealerModule(this$0.randomPoolProvider, this$0.
|
|
6805
|
+
$this$DI.d5z(dealerModule(this$0.randomPoolProvider, this$0.hae_1));
|
|
6799
6806
|
$this$DI.d5z(coreModule($coreConfig));
|
|
6800
6807
|
$this$DI.d5z(createGameServerDI($serverConfig, $logicConfig, $engineBotConfig, $dealerConfig, $ratingConfig, $externalReducers, $externalMiddlewares));
|
|
6801
6808
|
return Unit_instance;
|
|
@@ -6804,8 +6811,8 @@
|
|
|
6804
6811
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
6805
6812
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
6806
6813
|
production = production === VOID ? true : production;
|
|
6807
|
-
this.
|
|
6808
|
-
this.
|
|
6814
|
+
this.gae_1 = loggerCallback;
|
|
6815
|
+
this.hae_1 = randomOrgConfig;
|
|
6809
6816
|
var tmp = AppEnvironment_getInstance();
|
|
6810
6817
|
var tmp_0;
|
|
6811
6818
|
if (production) {
|
|
@@ -6815,9 +6822,9 @@
|
|
|
6815
6822
|
}
|
|
6816
6823
|
tmp.d6m(tmp_0);
|
|
6817
6824
|
var tmp_1 = this;
|
|
6818
|
-
tmp_1.
|
|
6825
|
+
tmp_1.iae_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
6819
6826
|
var tmp_2 = this;
|
|
6820
|
-
tmp_2.
|
|
6827
|
+
tmp_2.jae_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
6821
6828
|
var tmp_3 = this;
|
|
6822
6829
|
// Inline function 'org.kodein.di.instance' call
|
|
6823
6830
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -6826,7 +6833,7 @@
|
|
|
6826
6833
|
var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
6827
6834
|
var tmp_5 = Instance(this_0, tmp$ret$0, null);
|
|
6828
6835
|
var tmp_6 = KProperty1;
|
|
6829
|
-
tmp_3.
|
|
6836
|
+
tmp_3.kae_1 = tmp_5.w64(this, getPropertyCallableRef('parser', 1, tmp_6, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w(), null));
|
|
6830
6837
|
var tmp_7 = this;
|
|
6831
6838
|
// Inline function 'org.kodein.di.instance' call
|
|
6832
6839
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -6835,7 +6842,7 @@
|
|
|
6835
6842
|
var tmp$ret$2 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
6836
6843
|
var tmp_9 = Instance(this_1, tmp$ret$2, null);
|
|
6837
6844
|
var tmp_10 = KProperty1;
|
|
6838
|
-
tmp_7.
|
|
6845
|
+
tmp_7.lae_1 = tmp_9.w64(this, getPropertyCallableRef('helper', 1, tmp_10, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f(), null));
|
|
6839
6846
|
var tmp_11 = this;
|
|
6840
6847
|
// Inline function 'org.kodein.di.instance' call
|
|
6841
6848
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -6844,7 +6851,7 @@
|
|
|
6844
6851
|
var tmp$ret$4 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
6845
6852
|
var tmp_13 = Instance(this_2, tmp$ret$4, null);
|
|
6846
6853
|
var tmp_14 = KProperty1;
|
|
6847
|
-
tmp_11.
|
|
6854
|
+
tmp_11.mae_1 = tmp_13.w64(this, getPropertyCallableRef('serverHelper', 1, tmp_14, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre(), null));
|
|
6848
6855
|
var tmp_15 = this;
|
|
6849
6856
|
// Inline function 'org.kodein.di.instance' call
|
|
6850
6857
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -6853,7 +6860,7 @@
|
|
|
6853
6860
|
var tmp$ret$6 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
6854
6861
|
var tmp_17 = Instance(this_3, tmp$ret$6, null);
|
|
6855
6862
|
var tmp_18 = KProperty1;
|
|
6856
|
-
tmp_15.
|
|
6863
|
+
tmp_15.nae_1 = tmp_17.w64(this, getPropertyCallableRef('resources', 1, tmp_18, GameServerEngineControllerImpl$_get_resources_$ref_dt6416(), null));
|
|
6857
6864
|
var tmp_19 = this;
|
|
6858
6865
|
// Inline function 'org.kodein.di.instance' call
|
|
6859
6866
|
var this_4 = _get_di__ndbzja(this);
|
|
@@ -6862,7 +6869,7 @@
|
|
|
6862
6869
|
var tmp$ret$8 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
6863
6870
|
var tmp_21 = Instance(this_4, tmp$ret$8, null);
|
|
6864
6871
|
var tmp_22 = KProperty1;
|
|
6865
|
-
tmp_19.
|
|
6872
|
+
tmp_19.oae_1 = tmp_21.w64(this, getPropertyCallableRef('test', 1, tmp_22, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5(), null));
|
|
6866
6873
|
var tmp_23 = this;
|
|
6867
6874
|
// Inline function 'org.kodein.di.instance' call
|
|
6868
6875
|
var this_5 = _get_di__ndbzja(this);
|
|
@@ -6871,45 +6878,45 @@
|
|
|
6871
6878
|
var tmp$ret$10 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
6872
6879
|
var tmp_25 = Instance(this_5, tmp$ret$10, null);
|
|
6873
6880
|
var tmp_26 = KProperty1;
|
|
6874
|
-
tmp_23.
|
|
6881
|
+
tmp_23.pae_1 = tmp_25.w64(this, getPropertyCallableRef('randomPoolProvider', 1, tmp_26, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl(), null));
|
|
6875
6882
|
}
|
|
6876
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6877
|
-
var tmp0 = this.
|
|
6883
|
+
protoOf(GameServerEngineControllerImpl).zad = function () {
|
|
6884
|
+
var tmp0 = this.kae_1;
|
|
6878
6885
|
var tmp = KProperty1;
|
|
6879
6886
|
// Inline function 'kotlin.getValue' call
|
|
6880
6887
|
getPropertyCallableRef('parser', 1, tmp, GameServerEngineControllerImpl$_get_parser_$ref_3gee3w_0(), null);
|
|
6881
6888
|
return tmp0.x();
|
|
6882
6889
|
};
|
|
6883
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6884
|
-
var tmp0 = this.
|
|
6890
|
+
protoOf(GameServerEngineControllerImpl).bae = function () {
|
|
6891
|
+
var tmp0 = this.lae_1;
|
|
6885
6892
|
var tmp = KProperty1;
|
|
6886
6893
|
// Inline function 'kotlin.getValue' call
|
|
6887
6894
|
getPropertyCallableRef('helper', 1, tmp, GameServerEngineControllerImpl$_get_helper_$ref_y2ht1f_0(), null);
|
|
6888
6895
|
return tmp0.x();
|
|
6889
6896
|
};
|
|
6890
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6891
|
-
var tmp0 = this.
|
|
6897
|
+
protoOf(GameServerEngineControllerImpl).cae = function () {
|
|
6898
|
+
var tmp0 = this.mae_1;
|
|
6892
6899
|
var tmp = KProperty1;
|
|
6893
6900
|
// Inline function 'kotlin.getValue' call
|
|
6894
6901
|
getPropertyCallableRef('serverHelper', 1, tmp, GameServerEngineControllerImpl$_get_serverHelper_$ref_o2mqre_0(), null);
|
|
6895
6902
|
return tmp0.x();
|
|
6896
6903
|
};
|
|
6897
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6898
|
-
var tmp0 = this.
|
|
6904
|
+
protoOf(GameServerEngineControllerImpl).dae = function () {
|
|
6905
|
+
var tmp0 = this.nae_1;
|
|
6899
6906
|
var tmp = KProperty1;
|
|
6900
6907
|
// Inline function 'kotlin.getValue' call
|
|
6901
6908
|
getPropertyCallableRef('resources', 1, tmp, GameServerEngineControllerImpl$_get_resources_$ref_dt6416_0(), null);
|
|
6902
6909
|
return tmp0.x();
|
|
6903
6910
|
};
|
|
6904
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6905
|
-
var tmp0 = this.
|
|
6911
|
+
protoOf(GameServerEngineControllerImpl).aae = function () {
|
|
6912
|
+
var tmp0 = this.oae_1;
|
|
6906
6913
|
var tmp = KProperty1;
|
|
6907
6914
|
// Inline function 'kotlin.getValue' call
|
|
6908
6915
|
getPropertyCallableRef('test', 1, tmp, GameServerEngineControllerImpl$_get_test_$ref_ol1cd5_0(), null);
|
|
6909
6916
|
return tmp0.x();
|
|
6910
6917
|
};
|
|
6911
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6912
|
-
var tmp0 = this.
|
|
6918
|
+
protoOf(GameServerEngineControllerImpl).eae = function () {
|
|
6919
|
+
var tmp0 = this.pae_1;
|
|
6913
6920
|
var tmp = KProperty1;
|
|
6914
6921
|
// Inline function 'kotlin.getValue' call
|
|
6915
6922
|
getPropertyCallableRef('randomPoolProvider', 1, tmp, GameServerEngineControllerImpl$_get_randomPoolProvider_$ref_ut9lgl_0(), null);
|
|
@@ -6921,7 +6928,7 @@
|
|
|
6921
6928
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
6922
6929
|
return this.createGameEngineWithLogic();
|
|
6923
6930
|
};
|
|
6924
|
-
protoOf(GameServerEngineControllerImpl).
|
|
6931
|
+
protoOf(GameServerEngineControllerImpl).fae = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, botConfig) {
|
|
6925
6932
|
var combinedLogger = Companion_instance_8.mx();
|
|
6926
6933
|
var gameServer = {_v: null};
|
|
6927
6934
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -6969,7 +6976,7 @@
|
|
|
6969
6976
|
function TestHelper() {
|
|
6970
6977
|
}
|
|
6971
6978
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
6972
|
-
var tmp0 = $this.
|
|
6979
|
+
var tmp0 = $this.tae_1;
|
|
6973
6980
|
var tmp = KProperty1;
|
|
6974
6981
|
// Inline function 'kotlin.getValue' call
|
|
6975
6982
|
getPropertyCallableRef('playerAnswerInteractor', 1, tmp, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy_0(), null);
|
|
@@ -6977,7 +6984,7 @@
|
|
|
6977
6984
|
}
|
|
6978
6985
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
6979
6986
|
return function ($this$singleton) {
|
|
6980
|
-
return this$0.
|
|
6987
|
+
return this$0.rae_1;
|
|
6981
6988
|
};
|
|
6982
6989
|
}
|
|
6983
6990
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -7017,19 +7024,19 @@
|
|
|
7017
7024
|
return emptyMap();
|
|
7018
7025
|
}
|
|
7019
7026
|
function TestHelperImpl(logger) {
|
|
7020
|
-
this.
|
|
7027
|
+
this.rae_1 = logger;
|
|
7021
7028
|
var tmp = this;
|
|
7022
7029
|
var tmp_0 = Companion_instance_6;
|
|
7023
|
-
tmp.
|
|
7030
|
+
tmp.sae_1 = tmp_0.k5z(VOID, TestHelperImpl$di$lambda(this));
|
|
7024
7031
|
var tmp_1 = this;
|
|
7025
7032
|
// Inline function 'org.kodein.di.instance' call
|
|
7026
|
-
var this_0 = this.
|
|
7033
|
+
var this_0 = this.sae_1;
|
|
7027
7034
|
// Inline function 'org.kodein.type.generic' call
|
|
7028
7035
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
7029
7036
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
7030
7037
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
7031
7038
|
var tmp_4 = KProperty1;
|
|
7032
|
-
tmp_1.
|
|
7039
|
+
tmp_1.tae_1 = tmp_3.w64(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_4, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy(), null));
|
|
7033
7040
|
}
|
|
7034
7041
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
7035
7042
|
return _get_playerAnswerInteractor__msggz1(this).l8t(playerId, table, botConfig);
|
|
@@ -7102,14 +7109,14 @@
|
|
|
7102
7109
|
function RoomMetadata() {
|
|
7103
7110
|
var tmp = this;
|
|
7104
7111
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7105
|
-
tmp.
|
|
7112
|
+
tmp.uae_1 = LinkedHashMap_init_$Create$();
|
|
7106
7113
|
this.extras = {};
|
|
7107
|
-
this.extras = this.
|
|
7114
|
+
this.extras = this.uae_1;
|
|
7108
7115
|
}
|
|
7109
|
-
protoOf(RoomMetadata).
|
|
7116
|
+
protoOf(RoomMetadata).vae = function () {
|
|
7110
7117
|
return this.extras;
|
|
7111
7118
|
};
|
|
7112
|
-
protoOf(RoomMetadata).
|
|
7119
|
+
protoOf(RoomMetadata).vae = function () {
|
|
7113
7120
|
return this.extras;
|
|
7114
7121
|
};
|
|
7115
7122
|
protoOf(RoomMetadata).getGame = function (gameId) {
|
|
@@ -7127,7 +7134,7 @@
|
|
|
7127
7134
|
};
|
|
7128
7135
|
protoOf(RoomMetadata).addGame = function (gameId, game) {
|
|
7129
7136
|
// Inline function 'kotlin.collections.set' call
|
|
7130
|
-
this.
|
|
7137
|
+
this.uae_1.f2(gameId, game);
|
|
7131
7138
|
};
|
|
7132
7139
|
function GameMetadata(gameId) {
|
|
7133
7140
|
this.gameId = gameId;
|
|
@@ -7136,7 +7143,7 @@
|
|
|
7136
7143
|
protoOf(GameMetadata).c54 = function () {
|
|
7137
7144
|
return this.gameId;
|
|
7138
7145
|
};
|
|
7139
|
-
protoOf(GameMetadata).
|
|
7146
|
+
protoOf(GameMetadata).vae = function () {
|
|
7140
7147
|
return this.extras;
|
|
7141
7148
|
};
|
|
7142
7149
|
function serverHelpersModule() {
|
|
@@ -7217,17 +7224,17 @@
|
|
|
7217
7224
|
});
|
|
7218
7225
|
protoOf($serializer).wz = typeParametersSerializers;
|
|
7219
7226
|
defineProp(protoOf(TableStateUpdateDto), 'roomId', function () {
|
|
7220
|
-
return this.
|
|
7227
|
+
return this.y8i();
|
|
7221
7228
|
});
|
|
7222
7229
|
protoOf($serializer_0).wz = typeParametersSerializers;
|
|
7223
7230
|
defineProp(protoOf(ActionsStateUpdateDto), 'roomId', function () {
|
|
7224
|
-
return this.
|
|
7231
|
+
return this.y8i();
|
|
7225
7232
|
});
|
|
7226
7233
|
defineProp(protoOf(TableStateUpdate), 'roomId', function () {
|
|
7227
|
-
return this.
|
|
7234
|
+
return this.y8i();
|
|
7228
7235
|
});
|
|
7229
7236
|
defineProp(protoOf(ActionsStateUpdate), 'roomId', function () {
|
|
7230
|
-
return this.
|
|
7237
|
+
return this.y8i();
|
|
7231
7238
|
});
|
|
7232
7239
|
protoOf(UpdateServerConfigAction).s6f = get_actionTag;
|
|
7233
7240
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
@@ -7245,22 +7252,22 @@
|
|
|
7245
7252
|
protoOf(PlayerReconnectionWaitingTimerTag).h92 = ignoreTimerResetValidation;
|
|
7246
7253
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
7247
7254
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
7248
|
-
return this.
|
|
7255
|
+
return this.zad();
|
|
7249
7256
|
});
|
|
7250
7257
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
7251
|
-
return this.
|
|
7258
|
+
return this.bae();
|
|
7252
7259
|
});
|
|
7253
7260
|
defineProp(protoOf(GameServerEngineControllerImpl), 'serverHelper', function () {
|
|
7254
|
-
return this.
|
|
7261
|
+
return this.cae();
|
|
7255
7262
|
});
|
|
7256
7263
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
7257
|
-
return this.
|
|
7264
|
+
return this.dae();
|
|
7258
7265
|
});
|
|
7259
7266
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
7260
|
-
return this.
|
|
7267
|
+
return this.aae();
|
|
7261
7268
|
});
|
|
7262
7269
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
7263
|
-
return this.
|
|
7270
|
+
return this.eae();
|
|
7264
7271
|
});
|
|
7265
7272
|
//endregion
|
|
7266
7273
|
//region block: init
|