raspberry_games_server_game_logic 1.8.314 → 1.8.319
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +79 -58
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +9711 -9671
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +121 -121
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.j2;
|
|
72
72
|
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
73
73
|
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
74
|
-
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
74
|
+
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
|
|
75
75
|
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
|
|
76
76
|
var get_isFinished = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
|
|
77
77
|
var get_isFinishing = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
|
|
78
|
-
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
79
|
-
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
78
|
+
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.o3;
|
|
79
|
+
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
80
80
|
var toList = kotlin_kotlin.$_$.v9;
|
|
81
81
|
var toString = kotlin_kotlin.$_$.ad;
|
|
82
82
|
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.g4;
|
|
83
|
-
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
83
|
+
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v3;
|
|
84
84
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
|
|
85
85
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t6;
|
|
86
86
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
@@ -89,21 +89,21 @@
|
|
|
89
89
|
var firstOrNull = kotlin_kotlin.$_$.s7;
|
|
90
90
|
var toMutableList = kotlin_kotlin.$_$.y9;
|
|
91
91
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
92
|
-
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
93
|
-
var get_versionOrDefault = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
94
|
-
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
92
|
+
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.t4;
|
|
93
|
+
var get_versionOrDefault = kotlin_io_raspberryapps_game_engine_core.$_$.k3;
|
|
94
|
+
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
|
|
95
95
|
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
|
|
96
96
|
var RestartRoundReason = kotlin_io_raspberryapps_game_engine_core.$_$.l1;
|
|
97
97
|
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
|
|
98
98
|
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.f4;
|
|
99
99
|
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
|
|
100
|
-
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
100
|
+
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t3;
|
|
101
101
|
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
|
|
102
102
|
var GameToRoomTransition = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
|
|
103
103
|
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b2;
|
|
104
104
|
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
|
|
105
|
-
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
106
|
-
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
105
|
+
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
|
|
106
|
+
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.x3;
|
|
107
107
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.i1;
|
|
108
108
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.rh;
|
|
109
109
|
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
|
|
@@ -226,8 +226,8 @@
|
|
|
226
226
|
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p2;
|
|
227
227
|
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.f1;
|
|
228
228
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
229
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
230
|
-
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
229
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.j4;
|
|
230
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.h4;
|
|
231
231
|
var Companion_getInstance = kotlin_kotlin.$_$.h5;
|
|
232
232
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
233
233
|
var toDuration = kotlin_kotlin.$_$.bg;
|
|
@@ -246,19 +246,19 @@
|
|
|
246
246
|
var mutableListOf = kotlin_kotlin.$_$.w8;
|
|
247
247
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
248
248
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
249
|
-
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
249
|
+
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
|
|
250
250
|
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
|
|
251
251
|
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
252
252
|
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
253
253
|
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.i4;
|
|
254
254
|
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.h4;
|
|
255
255
|
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
|
|
256
|
-
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
257
|
-
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
258
|
-
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
259
|
-
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
260
|
-
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
261
|
-
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
256
|
+
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
|
|
257
|
+
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.h3;
|
|
258
|
+
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.g3;
|
|
259
|
+
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v4;
|
|
260
|
+
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.f4;
|
|
261
|
+
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.g4;
|
|
262
262
|
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
263
263
|
var GameHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
264
264
|
var GameResources = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
continue $sm;
|
|
587
587
|
case 1:
|
|
588
588
|
this.j9_1 = 2;
|
|
589
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.a9k_1).
|
|
589
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.a9k_1).u8m(), new Long(3000, 0));
|
|
590
590
|
suspendResult = emitAll(this.b9k_1, new _no_name_provided__qut3iv(this_0), this);
|
|
591
591
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
592
592
|
return suspendResult;
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
tmp_1.o9l_1 = this.m9l_1;
|
|
754
754
|
this.j9_1 = 1;
|
|
755
755
|
var state = this.o9l_1;
|
|
756
|
-
suspendResult = this.n9l_1.r18(state.
|
|
756
|
+
suspendResult = this.n9l_1.r18(state.s6r().gameInfo.roundNumberTotal, this);
|
|
757
757
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
758
758
|
return suspendResult;
|
|
759
759
|
}
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
var tmp_1 = this;
|
|
857
857
|
tmp_1.n9m_1 = this.k9m_1;
|
|
858
858
|
var tmp_2 = this;
|
|
859
|
-
tmp_2.o9m_1 = this.n9m_1.
|
|
859
|
+
tmp_2.o9m_1 = this.n9m_1.b6r_1;
|
|
860
860
|
if (this.o9m_1 == null) {
|
|
861
861
|
this.l9m_1 = Unit_instance;
|
|
862
862
|
this.j9_1 = 4;
|
|
@@ -1270,7 +1270,7 @@
|
|
|
1270
1270
|
case 0:
|
|
1271
1271
|
this.k9_1 = 2;
|
|
1272
1272
|
this.j9_1 = 1;
|
|
1273
|
-
var this_0 = observeTableWhenRoundChanges(this.z9o_1, this.z9o_1.
|
|
1273
|
+
var this_0 = observeTableWhenRoundChanges(this.z9o_1, this.z9o_1.a6r());
|
|
1274
1274
|
var tmp_0 = transformLatest(this_0, GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.z9o_1, null));
|
|
1275
1275
|
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_2(this.a9p_1, null);
|
|
1276
1276
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
case 0:
|
|
1405
1405
|
this.k9_1 = 2;
|
|
1406
1406
|
this.j9_1 = 1;
|
|
1407
|
-
var tmp_0 = distinctUntilChanged(this.v9p_1.
|
|
1407
|
+
var tmp_0 = distinctUntilChanged(this.v9p_1.a6r());
|
|
1408
1408
|
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.w9p_1, null);
|
|
1409
1409
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this);
|
|
1410
1410
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1567,7 +1567,7 @@
|
|
|
1567
1567
|
if (get_isFinished(this.h9r_1.state) || get_isFinishing(this.h9r_1.state)) {
|
|
1568
1568
|
return Unit_instance;
|
|
1569
1569
|
}
|
|
1570
|
-
if (!get_isCreated(this.h9r_1.state) || !this.e9r_1.v6b().
|
|
1570
|
+
if (!get_isCreated(this.h9r_1.state) || !this.e9r_1.v6b().t6r()) {
|
|
1571
1571
|
_get_logger__rkp4sl(this.e9r_1).w('GameEngine_API', 'playerLive: ' + this.f9r_1 + ' before game is created');
|
|
1572
1572
|
return Unit_instance;
|
|
1573
1573
|
}
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
if (get_isFinished(this.t9r_1.state) || get_isFinishing(this.t9r_1.state)) {
|
|
1624
1624
|
return Unit_instance;
|
|
1625
1625
|
}
|
|
1626
|
-
if (!get_isCreated(this.t9r_1.state) || !this.q9r_1.v6b().
|
|
1626
|
+
if (!get_isCreated(this.t9r_1.state) || !this.q9r_1.v6b().t6r()) {
|
|
1627
1627
|
_get_logger__rkp4sl(this.q9r_1).w('GameEngine_API', 'playerLeft: ' + this.r9r_1 + ' before game is created');
|
|
1628
1628
|
return Unit_instance;
|
|
1629
1629
|
}
|
|
@@ -1702,7 +1702,7 @@
|
|
|
1702
1702
|
var item = tmp0_iterator.l();
|
|
1703
1703
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
1704
1704
|
}
|
|
1705
|
-
var previousTeams = tmp_2.
|
|
1705
|
+
var previousTeams = tmp_2.l8m(destination);
|
|
1706
1706
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1707
1707
|
var tmp0_iterator_0 = users.j();
|
|
1708
1708
|
while (tmp0_iterator_0.k()) {
|
|
@@ -1726,7 +1726,7 @@
|
|
|
1726
1726
|
destination_1.e(destination_2);
|
|
1727
1727
|
}
|
|
1728
1728
|
var updatedTeams = destination_1;
|
|
1729
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9s_1).
|
|
1729
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9s_1).p8m(updatedTeams);
|
|
1730
1730
|
} else {
|
|
1731
1731
|
tmp_1 = users;
|
|
1732
1732
|
}
|
|
@@ -2072,10 +2072,10 @@
|
|
|
2072
2072
|
var tmp = this.j9_1;
|
|
2073
2073
|
if (tmp === 0) {
|
|
2074
2074
|
this.k9_1 = 1;
|
|
2075
|
-
var table = this.l9v_1.state.
|
|
2075
|
+
var table = this.l9v_1.state.s6r();
|
|
2076
2076
|
var player = getPlayer(table.players, this.i9v_1);
|
|
2077
|
-
if (player.
|
|
2078
|
-
this.l9v_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.j9v_1).
|
|
2077
|
+
if (player.n6x_1.y6d().p6c_1.isLive) {
|
|
2078
|
+
this.l9v_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.j9v_1).j8t(player, table));
|
|
2079
2079
|
} else {
|
|
2080
2080
|
var tmp_0 = this.l9v_1.dispatch;
|
|
2081
2081
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
@@ -2127,7 +2127,7 @@
|
|
|
2127
2127
|
var tmp = this.j9_1;
|
|
2128
2128
|
if (tmp === 0) {
|
|
2129
2129
|
this.k9_1 = 1;
|
|
2130
|
-
var it = this.u9v_1.v6b().
|
|
2130
|
+
var it = this.u9v_1.v6b().e6r_1;
|
|
2131
2131
|
var tmp_0;
|
|
2132
2132
|
if (it == null) {
|
|
2133
2133
|
_get_logger__rkp4sl(this.u9v_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
@@ -2136,7 +2136,7 @@
|
|
|
2136
2136
|
tmp_0 = it;
|
|
2137
2137
|
}
|
|
2138
2138
|
var terminationState = tmp_0;
|
|
2139
|
-
var gameTransition = terminationState.
|
|
2139
|
+
var gameTransition = terminationState.n8x_1;
|
|
2140
2140
|
var tmp_1;
|
|
2141
2141
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2142
2142
|
var tmp0_elvis_lhs = this.v9v_1;
|
|
@@ -2146,8 +2146,8 @@
|
|
|
2146
2146
|
}
|
|
2147
2147
|
var transition = tmp_1;
|
|
2148
2148
|
var tmp_2 = this.x9v_1.dispatch;
|
|
2149
|
-
var tmp0_reason = terminationState.
|
|
2150
|
-
var tmp1_isGameFinished = this.u9v_1.v6b().
|
|
2149
|
+
var tmp0_reason = terminationState.m8x_1;
|
|
2150
|
+
var tmp1_isGameFinished = this.u9v_1.v6b().s6r().isGameFinished;
|
|
2151
2151
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2152
2152
|
return Unit_instance;
|
|
2153
2153
|
} else if (tmp === 1) {
|
|
@@ -2243,7 +2243,7 @@
|
|
|
2243
2243
|
if (tmp === 0) {
|
|
2244
2244
|
this.k9_1 = 1;
|
|
2245
2245
|
var state = this.v9w_1.store.state;
|
|
2246
|
-
if (state.
|
|
2246
|
+
if (state.t6r()) {
|
|
2247
2247
|
var tmp0_elvis_lhs = toDomainEnumSafe(this.r9w_1, get_serverShutdownReasonMapping());
|
|
2248
2248
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
2249
2249
|
var tmp_0 = this.v9w_1.dispatch;
|
|
@@ -2347,24 +2347,24 @@
|
|
|
2347
2347
|
var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
2348
2348
|
tmp_12.y9n_1 = Instance(di, tmp$ret$12, null).d64(this, idsProvider$factory());
|
|
2349
2349
|
var tmp_14 = this;
|
|
2350
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
2351
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
2350
|
+
var tmp0_externalMiddlewares = plus(storeContract.y91(), externalMiddlewares);
|
|
2351
|
+
var tmp1_externalReducers = plus(storeContract.x91(), externalReducers);
|
|
2352
2352
|
tmp_14.z9n_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
2353
2353
|
}
|
|
2354
2354
|
protoOf(GameServer).r6q = function () {
|
|
2355
2355
|
return this.z9n_1;
|
|
2356
2356
|
};
|
|
2357
2357
|
protoOf(GameServer).g5l = function () {
|
|
2358
|
-
return this.v6b().
|
|
2358
|
+
return this.v6b().s6r().id;
|
|
2359
2359
|
};
|
|
2360
|
-
protoOf(GameServer).
|
|
2361
|
-
return this.v6b().
|
|
2360
|
+
protoOf(GameServer).s6r = function () {
|
|
2361
|
+
return this.v6b().s6r();
|
|
2362
2362
|
};
|
|
2363
|
-
protoOf(GameServer).
|
|
2364
|
-
return this.v6b().
|
|
2363
|
+
protoOf(GameServer).t6r = function () {
|
|
2364
|
+
return this.v6b().t6r();
|
|
2365
2365
|
};
|
|
2366
|
-
protoOf(GameServer).
|
|
2367
|
-
return this.v6b().
|
|
2366
|
+
protoOf(GameServer).u6r = function () {
|
|
2367
|
+
return this.v6b().d6r_1;
|
|
2368
2368
|
};
|
|
2369
2369
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
2370
2370
|
var tmp = this.p6q();
|
|
@@ -2380,55 +2380,55 @@
|
|
|
2380
2380
|
};
|
|
2381
2381
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
2382
2382
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
2383
|
-
this.z9n_1.
|
|
2383
|
+
this.z9n_1.r6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
2384
2384
|
};
|
|
2385
2385
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
2386
2386
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
2387
|
-
this.z9n_1.
|
|
2387
|
+
this.z9n_1.r6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
2388
2388
|
};
|
|
2389
2389
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
2390
2390
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
2391
|
-
this.z9n_1.
|
|
2391
|
+
this.z9n_1.r6r(GameServer$playerLive$slambda_0(this, playerId, null));
|
|
2392
2392
|
};
|
|
2393
2393
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
2394
2394
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
2395
|
-
this.z9n_1.
|
|
2395
|
+
this.z9n_1.r6r(GameServer$playerLeft$slambda_0(this, playerId, null));
|
|
2396
2396
|
};
|
|
2397
2397
|
protoOf(GameServer).w9w = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
2398
2398
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
2399
|
-
this.z9n_1.
|
|
2399
|
+
this.z9n_1.r6r(GameServer$roomOnCreate$slambda_0(usersArray, config, this, roomId, transition, gameCreatorId, spectators, null));
|
|
2400
2400
|
};
|
|
2401
2401
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
2402
2402
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
2403
|
-
this.z9n_1.
|
|
2404
|
-
this.z9n_1.
|
|
2403
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
2404
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
2405
2405
|
};
|
|
2406
2406
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
2407
2407
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
2408
|
-
this.z9n_1.
|
|
2409
|
-
this.z9n_1.
|
|
2408
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
2409
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
2410
2410
|
};
|
|
2411
2411
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
2412
|
-
this.z9n_1.
|
|
2412
|
+
this.z9n_1.r6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
2413
2413
|
};
|
|
2414
2414
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
2415
|
-
this.z9n_1.
|
|
2415
|
+
this.z9n_1.r6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
2416
2416
|
};
|
|
2417
2417
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
2418
2418
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
2419
|
-
this.z9n_1.
|
|
2419
|
+
this.z9n_1.r6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
2420
2420
|
};
|
|
2421
2421
|
protoOf(GameServer).x9w = function (newRid) {
|
|
2422
2422
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
2423
|
-
this.z9n_1.
|
|
2423
|
+
this.z9n_1.r6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
2424
2424
|
};
|
|
2425
2425
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
2426
2426
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
2427
|
-
this.z9n_1.
|
|
2427
|
+
this.z9n_1.r6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
2428
2428
|
};
|
|
2429
2429
|
protoOf(GameServer).y9w = function (reason, roomId) {
|
|
2430
2430
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
2431
|
-
this.z9n_1.
|
|
2431
|
+
this.z9n_1.r6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
2432
2432
|
};
|
|
2433
2433
|
protoOf(GameServer).clear = function () {
|
|
2434
2434
|
return this.d2();
|
|
@@ -2589,7 +2589,7 @@
|
|
|
2589
2589
|
function TableStateUpdate(table) {
|
|
2590
2590
|
this.table = table;
|
|
2591
2591
|
}
|
|
2592
|
-
protoOf(TableStateUpdate).
|
|
2592
|
+
protoOf(TableStateUpdate).s6r = function () {
|
|
2593
2593
|
return this.table;
|
|
2594
2594
|
};
|
|
2595
2595
|
protoOf(TableStateUpdate).ue = function () {
|
|
@@ -2621,7 +2621,7 @@
|
|
|
2621
2621
|
function ActionsStateUpdate(actions) {
|
|
2622
2622
|
this.actions = actions;
|
|
2623
2623
|
}
|
|
2624
|
-
protoOf(ActionsStateUpdate).
|
|
2624
|
+
protoOf(ActionsStateUpdate).d8f = function () {
|
|
2625
2625
|
return this.actions;
|
|
2626
2626
|
};
|
|
2627
2627
|
protoOf(ActionsStateUpdate).ue = function () {
|
|
@@ -3504,11 +3504,11 @@
|
|
|
3504
3504
|
var tmp$ret$26 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE();
|
|
3505
3505
|
tmp_25.la0_1 = Instance(di, tmp$ret$26, null).d64(this, cardsDealerProvider$factory());
|
|
3506
3506
|
}
|
|
3507
|
-
protoOf(ServerGameStoreContract).
|
|
3508
|
-
return plus(plus(plus(plus(plus(this.t9z_1.
|
|
3507
|
+
protoOf(ServerGameStoreContract).x91 = function () {
|
|
3508
|
+
return plus(plus(plus(plus(plus(this.t9z_1.x91(), this.u9z_1.x91()), this.v9z_1.x91()), this.w9z_1.x91()), this.x9z_1.x91()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3509
3509
|
};
|
|
3510
|
-
protoOf(ServerGameStoreContract).
|
|
3511
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.t9z_1.
|
|
3510
|
+
protoOf(ServerGameStoreContract).y91 = function () {
|
|
3511
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.t9z_1.y91(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.u9z_1.y91()), this.v9z_1.y91()), this.w9z_1.y91()), this.x9z_1.y91()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([sendFromClientEventsMiddleware(_get_asyncProvider__jbpyhw(this), _get_fromClientEventsObserver__a7vzd3_0(this)), sendToClientActionMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc_0(this))).d94(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3512
3512
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3513
3513
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3514
3514
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3684,7 +3684,7 @@
|
|
|
3684
3684
|
next(action_0);
|
|
3685
3685
|
var state = store.state;
|
|
3686
3686
|
if (!get_serverStatePayload_0(state).config.canStartNewGame && action_0.isGameFinished) {
|
|
3687
|
-
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.
|
|
3687
|
+
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.b6r_1));
|
|
3688
3688
|
}
|
|
3689
3689
|
};
|
|
3690
3690
|
protoOf(_no_name_provided__qut3iv_2).g6k = function (store, next, action) {
|
|
@@ -3706,10 +3706,10 @@
|
|
|
3706
3706
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3707
3707
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3708
3708
|
var this_0 = this.oa0_1;
|
|
3709
|
-
var tableId = action_0.
|
|
3710
|
-
var gameCreatorPlayerId = action_0.
|
|
3709
|
+
var tableId = action_0.k8y_1;
|
|
3710
|
+
var gameCreatorPlayerId = action_0.m8y_1;
|
|
3711
3711
|
// Inline function 'kotlin.collections.map' call
|
|
3712
|
-
var this_1 = action_0.
|
|
3712
|
+
var this_1 = action_0.n8y_1;
|
|
3713
3713
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3714
3714
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3715
3715
|
var tmp0_iterator = this_1.j();
|
|
@@ -3776,7 +3776,7 @@
|
|
|
3776
3776
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3777
3777
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3778
3778
|
var this_2 = this.oa0_1;
|
|
3779
|
-
var table = state.
|
|
3779
|
+
var table = state.s6r();
|
|
3780
3780
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3781
3781
|
var sendToPlayer_0 = new RoomActionPayload(this_2.na0_1.k6i(), table.id, null);
|
|
3782
3782
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
@@ -3785,7 +3785,7 @@
|
|
|
3785
3785
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3786
3786
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3787
3787
|
var this_3 = this.oa0_1;
|
|
3788
|
-
var tableId_0 = action_0.
|
|
3788
|
+
var tableId_0 = action_0.q8y_1.id;
|
|
3789
3789
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3790
3790
|
// Inline function 'kotlin.collections.map' call
|
|
3791
3791
|
var this_4 = action_0.users;
|
|
@@ -3855,7 +3855,7 @@
|
|
|
3855
3855
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3856
3856
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3857
3857
|
var this_5 = this.oa0_1;
|
|
3858
|
-
var table_0 = state.
|
|
3858
|
+
var table_0 = state.s6r();
|
|
3859
3859
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3860
3860
|
var sendToPlayer_2 = new RoomActionPayload(this_5.na0_1.k6i(), table_0.id, null);
|
|
3861
3861
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
@@ -3864,7 +3864,7 @@
|
|
|
3864
3864
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3865
3865
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3866
3866
|
var this_6 = this.oa0_1;
|
|
3867
|
-
var table_1 = state.
|
|
3867
|
+
var table_1 = state.s6r();
|
|
3868
3868
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3869
3869
|
var sendToPlayer_3 = new RoomActionPayload(this_6.na0_1.k6i(), table_1.id, null);
|
|
3870
3870
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
@@ -3873,7 +3873,7 @@
|
|
|
3873
3873
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3874
3874
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3875
3875
|
var this_7 = this.oa0_1;
|
|
3876
|
-
var table_2 = state.
|
|
3876
|
+
var table_2 = state.s6r();
|
|
3877
3877
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3878
3878
|
var sendToPlayer_4 = new RoomActionPayload(this_7.na0_1.k6i(), table_2.id, null);
|
|
3879
3879
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
@@ -3882,7 +3882,7 @@
|
|
|
3882
3882
|
if (action_0 instanceof ErrorAction) {
|
|
3883
3883
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3884
3884
|
var this_8 = this.oa0_1;
|
|
3885
|
-
var table_3 = state.
|
|
3885
|
+
var table_3 = state.s6r();
|
|
3886
3886
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3887
3887
|
var sendToPlayer_5 = new RoomActionPayload(this_8.na0_1.k6i(), table_3.id, null);
|
|
3888
3888
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
@@ -3891,7 +3891,7 @@
|
|
|
3891
3891
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3892
3892
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3893
3893
|
var this_9 = this.oa0_1;
|
|
3894
|
-
var table_4 = state.
|
|
3894
|
+
var table_4 = state.s6r();
|
|
3895
3895
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3896
3896
|
var tableId_1 = table_4.id;
|
|
3897
3897
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -3953,7 +3953,7 @@
|
|
|
3953
3953
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3954
3954
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3955
3955
|
var this_10 = this.oa0_1;
|
|
3956
|
-
var table_5 = state.
|
|
3956
|
+
var table_5 = state.s6r();
|
|
3957
3957
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3958
3958
|
var tableId_2 = table_5.id;
|
|
3959
3959
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -4015,7 +4015,7 @@
|
|
|
4015
4015
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
4016
4016
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
4017
4017
|
var this_11 = this.oa0_1;
|
|
4018
|
-
var table_6 = state.
|
|
4018
|
+
var table_6 = state.s6r();
|
|
4019
4019
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
4020
4020
|
var tableId_3 = table_6.id;
|
|
4021
4021
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -4064,7 +4064,7 @@
|
|
|
4064
4064
|
}
|
|
4065
4065
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
4066
4066
|
var tmp_0;
|
|
4067
|
-
if (this.oa0_1.ma0_1.supportBackwardActions && getPlayer(state.
|
|
4067
|
+
if (this.oa0_1.ma0_1.supportBackwardActions && getPlayer(state.s6r().players, sendToPlayer_8.n7e_1).p6x_1.t6x_1) {
|
|
4068
4068
|
tmp_0 = null;
|
|
4069
4069
|
} else {
|
|
4070
4070
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -4083,8 +4083,8 @@
|
|
|
4083
4083
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
4084
4084
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4085
4085
|
var this_12 = this.oa0_1;
|
|
4086
|
-
var table_7 = state.
|
|
4087
|
-
var exceptPlayerId = this.oa0_1.ma0_1.supportBackwardActions ? action_0.
|
|
4086
|
+
var table_7 = state.s6r();
|
|
4087
|
+
var exceptPlayerId = this.oa0_1.ma0_1.supportBackwardActions ? action_0.k8z_1 : null;
|
|
4088
4088
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4089
4089
|
var sendToPlayer_9 = new RoomActionPayload(this_12.na0_1.k6i(), table_7.id, exceptPlayerId);
|
|
4090
4090
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
@@ -4093,8 +4093,8 @@
|
|
|
4093
4093
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
4094
4094
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4095
4095
|
var this_13 = this.oa0_1;
|
|
4096
|
-
var table_8 = state.
|
|
4097
|
-
var exceptPlayerId_0 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.
|
|
4096
|
+
var table_8 = state.s6r();
|
|
4097
|
+
var exceptPlayerId_0 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.g8u_1 : null;
|
|
4098
4098
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4099
4099
|
var sendToPlayer_10 = new RoomActionPayload(this_13.na0_1.k6i(), table_8.id, exceptPlayerId_0);
|
|
4100
4100
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
@@ -4103,7 +4103,7 @@
|
|
|
4103
4103
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
4104
4104
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4105
4105
|
var this_14 = this.oa0_1;
|
|
4106
|
-
var table_9 = state.
|
|
4106
|
+
var table_9 = state.s6r();
|
|
4107
4107
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4108
4108
|
var sendToPlayer_11 = new RoomActionPayload(this_14.na0_1.k6i(), table_9.id, null);
|
|
4109
4109
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
@@ -4112,8 +4112,8 @@
|
|
|
4112
4112
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4113
4113
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4114
4114
|
var this_15 = this.oa0_1;
|
|
4115
|
-
var table_10 = state.
|
|
4116
|
-
var exceptPlayerId_1 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.
|
|
4115
|
+
var table_10 = state.s6r();
|
|
4116
|
+
var exceptPlayerId_1 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.q8z_1 : null;
|
|
4117
4117
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4118
4118
|
var sendToPlayer_12 = new RoomActionPayload(this_15.na0_1.k6i(), table_10.id, exceptPlayerId_1);
|
|
4119
4119
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
@@ -4122,8 +4122,8 @@
|
|
|
4122
4122
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4123
4123
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4124
4124
|
var this_16 = this.oa0_1;
|
|
4125
|
-
var table_11 = state.
|
|
4126
|
-
var exceptPlayerId_2 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.
|
|
4125
|
+
var table_11 = state.s6r();
|
|
4126
|
+
var exceptPlayerId_2 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.l8u_1 : null;
|
|
4127
4127
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4128
4128
|
var sendToPlayer_13 = new RoomActionPayload(this_16.na0_1.k6i(), table_11.id, exceptPlayerId_2);
|
|
4129
4129
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
@@ -4132,7 +4132,7 @@
|
|
|
4132
4132
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4133
4133
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4134
4134
|
var this_17 = this.oa0_1;
|
|
4135
|
-
var table_12 = state.
|
|
4135
|
+
var table_12 = state.s6r();
|
|
4136
4136
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4137
4137
|
var sendToPlayer_14 = new RoomActionPayload(this_17.na0_1.k6i(), table_12.id, null);
|
|
4138
4138
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
@@ -4141,17 +4141,17 @@
|
|
|
4141
4141
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4142
4142
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4143
4143
|
var this_18 = this.oa0_1;
|
|
4144
|
-
var table_13 = state.
|
|
4144
|
+
var table_13 = state.s6r();
|
|
4145
4145
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4146
4146
|
var sendToPlayer_15 = new RoomActionPayload(this_18.na0_1.k6i(), table_13.id, null);
|
|
4147
4147
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4148
4148
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4149
4149
|
} else {
|
|
4150
4150
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4151
|
-
var message = action_0.
|
|
4151
|
+
var message = action_0.u8z_1;
|
|
4152
4152
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4153
4153
|
var this_19 = this.oa0_1;
|
|
4154
|
-
var table_14 = state.
|
|
4154
|
+
var table_14 = state.s6r();
|
|
4155
4155
|
var tmp_1;
|
|
4156
4156
|
var tmp_2;
|
|
4157
4157
|
if (this.oa0_1.ma0_1.supportBackwardActions) {
|
|
@@ -4173,7 +4173,7 @@
|
|
|
4173
4173
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4174
4174
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4175
4175
|
var this_20 = this.oa0_1;
|
|
4176
|
-
var table_15 = state.
|
|
4176
|
+
var table_15 = state.s6r();
|
|
4177
4177
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4178
4178
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4179
4179
|
var sendToPlayer_17 = new RoomActionPayload(this_20.na0_1.k6i(), table_15.id, exceptPlayerId_4);
|
|
@@ -4311,7 +4311,7 @@
|
|
|
4311
4311
|
protoOf(_no_name_provided__qut3iv_5).f9c = function (state, action) {
|
|
4312
4312
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4313
4313
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4314
|
-
return state.
|
|
4314
|
+
return state.l8x(VOID, get_serverStatePayload_0(state).copy(action_0.q9z_1));
|
|
4315
4315
|
};
|
|
4316
4316
|
protoOf(_no_name_provided__qut3iv_5).z6l = function (state, action) {
|
|
4317
4317
|
return this.f9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -4327,7 +4327,7 @@
|
|
|
4327
4327
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
4328
4328
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4329
4329
|
Companion_getInstance();
|
|
4330
|
-
var this_0 = $action.
|
|
4330
|
+
var this_0 = $action.j8y_1.timeoutTimeMillis;
|
|
4331
4331
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4332
4332
|
tmp_0 = tmp_1.m6c(tmp_2, tmp$ret$0);
|
|
4333
4333
|
}
|
|
@@ -4339,16 +4339,16 @@
|
|
|
4339
4339
|
this.ea1_1 = logger;
|
|
4340
4340
|
}
|
|
4341
4341
|
protoOf(ServerMechanicLifecycleReducer).r9d = function (state, action) {
|
|
4342
|
-
var serverState = get_serverStatePayloadOrNull(state.
|
|
4342
|
+
var serverState = get_serverStatePayloadOrNull(state.c6r_1);
|
|
4343
4343
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4344
4344
|
var tmp0_$this = this.s9d_1;
|
|
4345
|
-
var tmp1_tableId = action.
|
|
4346
|
-
var tmp2_gameId = action.
|
|
4347
|
-
var tmp3_version = action.
|
|
4348
|
-
var tmp4_config = action.
|
|
4349
|
-
var tmp5_users = action.
|
|
4345
|
+
var tmp1_tableId = action.k8y_1;
|
|
4346
|
+
var tmp2_gameId = action.k8y_1;
|
|
4347
|
+
var tmp3_version = action.l8y_1;
|
|
4348
|
+
var tmp4_config = action.j8y_1;
|
|
4349
|
+
var tmp5_users = action.n8y_1;
|
|
4350
4350
|
var tmp6_spectators = action.spectators;
|
|
4351
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
4351
|
+
var tmp7_gameCreatorPlayerId = action.m8y_1;
|
|
4352
4352
|
var tmp9_tableOrNull = tmp0_$this.y9e(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
4353
4353
|
var tmp;
|
|
4354
4354
|
if (serverState == null) {
|
|
@@ -4358,23 +4358,23 @@
|
|
|
4358
4358
|
tmp = serverState;
|
|
4359
4359
|
}
|
|
4360
4360
|
var tmp10_payload = tmp;
|
|
4361
|
-
return state.
|
|
4361
|
+
return state.l8x(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4362
4362
|
};
|
|
4363
4363
|
protoOf(ServerMechanicLifecycleReducer).p9d = function (state, action) {
|
|
4364
4364
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4365
|
-
var tmp2_tableOrNull = action.
|
|
4365
|
+
var tmp2_tableOrNull = action.q8y_1;
|
|
4366
4366
|
var tmp = Companion_instance_10;
|
|
4367
4367
|
var tmp_0 = get_serverStatePayload_0(state).config;
|
|
4368
|
-
var tmp_1 = action.
|
|
4368
|
+
var tmp_1 = action.r8y_1;
|
|
4369
4369
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
4370
4370
|
var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d6a_1));
|
|
4371
|
-
return state.
|
|
4371
|
+
return state.l8x(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
4372
4372
|
};
|
|
4373
4373
|
protoOf(ServerMechanicLifecycleReducer).q9d = function (state, action) {
|
|
4374
4374
|
this.t9d_1.j5r(action.previousGameId);
|
|
4375
4375
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4376
|
-
var tmp1_tableOrNull = this.s9d_1.z9e(state.
|
|
4377
|
-
return state.
|
|
4376
|
+
var tmp1_tableOrNull = this.s9d_1.z9e(state.s6r(), action.gameId);
|
|
4377
|
+
return state.l8x(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
4378
4378
|
};
|
|
4379
4379
|
function spectatorsReducer(logger) {
|
|
4380
4380
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -4389,7 +4389,7 @@
|
|
|
4389
4389
|
protoOf(_no_name_provided__qut3iv_6).f9c = function (state, action) {
|
|
4390
4390
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
4391
4391
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
4392
|
-
var table = state.
|
|
4392
|
+
var table = state.s6r();
|
|
4393
4393
|
var tmp;
|
|
4394
4394
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4395
4395
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4468,7 +4468,7 @@
|
|
|
4468
4468
|
destination_1.e(tmp$ret$10);
|
|
4469
4469
|
}
|
|
4470
4470
|
var spectatorsToAdd = toSet(destination_1);
|
|
4471
|
-
tmp = state.
|
|
4471
|
+
tmp = state.l8x(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
4472
4472
|
} else {
|
|
4473
4473
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4474
4474
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -4572,7 +4572,7 @@
|
|
|
4572
4572
|
destination_4.e(element_5);
|
|
4573
4573
|
}
|
|
4574
4574
|
}
|
|
4575
|
-
tmp = state.
|
|
4575
|
+
tmp = state.l8x(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
4576
4576
|
} else {
|
|
4577
4577
|
noWhenBranchMatchedException();
|
|
4578
4578
|
}
|
|
@@ -4635,7 +4635,7 @@
|
|
|
4635
4635
|
}
|
|
4636
4636
|
function get_serverStatePayload_0(_this__u8e3s4) {
|
|
4637
4637
|
// Inline function 'kotlin.requireNotNull' call
|
|
4638
|
-
var value = _this__u8e3s4.
|
|
4638
|
+
var value = _this__u8e3s4.c6r_1;
|
|
4639
4639
|
// Inline function 'kotlin.contracts.contract' call
|
|
4640
4640
|
var tmp$ret$1;
|
|
4641
4641
|
$l$block: {
|
|
@@ -4792,7 +4792,7 @@
|
|
|
4792
4792
|
var tmp0_elvis_lhs = Companion_instance_4.b9h(it);
|
|
4793
4793
|
var tmp;
|
|
4794
4794
|
if (tmp0_elvis_lhs == null) {
|
|
4795
|
-
var tmp1_safe_receiver = $gameServer.v6b().
|
|
4795
|
+
var tmp1_safe_receiver = $gameServer.v6b().b6r_1;
|
|
4796
4796
|
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
4797
4797
|
} else {
|
|
4798
4798
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4805,7 +4805,7 @@
|
|
|
4805
4805
|
var tmp0_elvis_lhs = Companion_instance_5.m9f(it);
|
|
4806
4806
|
var tmp;
|
|
4807
4807
|
if (tmp0_elvis_lhs == null) {
|
|
4808
|
-
var tmp1_safe_receiver = $gameServer.v6b().
|
|
4808
|
+
var tmp1_safe_receiver = $gameServer.v6b().b6r_1;
|
|
4809
4809
|
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
4810
4810
|
} else {
|
|
4811
4811
|
tmp = tmp0_elvis_lhs;
|
|
@@ -5118,7 +5118,7 @@
|
|
|
5118
5118
|
tmp_1.ca2_1 = Instance(this_0, tmp$ret$0, null).d64(this, playerAnswerInteractor$factory());
|
|
5119
5119
|
}
|
|
5120
5120
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5121
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
5121
|
+
return _get_playerAnswerInteractor__msggz1(this).k8n(playerId, table, botConfig);
|
|
5122
5122
|
};
|
|
5123
5123
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
5124
5124
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -5126,7 +5126,7 @@
|
|
|
5126
5126
|
var tmp$ret$0;
|
|
5127
5127
|
$l$block_0: {
|
|
5128
5128
|
// Inline function 'kotlin.collections.any' call
|
|
5129
|
-
var this_0 = mechanicAction.
|
|
5129
|
+
var this_0 = mechanicAction.d91();
|
|
5130
5130
|
var tmp;
|
|
5131
5131
|
if (isInterface(this_0, Collection)) {
|
|
5132
5132
|
tmp = this_0.p();
|
|
@@ -5159,7 +5159,7 @@
|
|
|
5159
5159
|
var tmp$ret$0;
|
|
5160
5160
|
$l$block_0: {
|
|
5161
5161
|
// Inline function 'kotlin.collections.any' call
|
|
5162
|
-
var this_0 = action.
|
|
5162
|
+
var this_0 = action.d91();
|
|
5163
5163
|
var tmp;
|
|
5164
5164
|
if (isInterface(this_0, Collection)) {
|
|
5165
5165
|
tmp = this_0.p();
|
|
@@ -5258,13 +5258,13 @@
|
|
|
5258
5258
|
return this.g5l();
|
|
5259
5259
|
});
|
|
5260
5260
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
5261
|
-
return this.
|
|
5261
|
+
return this.s6r();
|
|
5262
5262
|
});
|
|
5263
5263
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
5264
|
-
return this.
|
|
5264
|
+
return this.t6r();
|
|
5265
5265
|
});
|
|
5266
5266
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
5267
|
-
return this.
|
|
5267
|
+
return this.u6r();
|
|
5268
5268
|
});
|
|
5269
5269
|
protoOf(UpdateServerConfigAction).y6j = get_actionTag;
|
|
5270
5270
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|