raspberry_games_server_game_logic 1.8.267 → 1.8.268
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Logic_Debertz-core.js +22 -18
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +907 -919
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +6 -6
- package/Logic_Debertz-game_server.js +332 -286
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -279,6 +279,7 @@
|
|
|
279
279
|
initMetadataForLambda(GameServer$playerLeft$slambda, CoroutineImpl, VOID, [2]);
|
|
280
280
|
initMetadataForLambda(GameServer$roomOnCreate$slambda, CoroutineImpl, VOID, [2]);
|
|
281
281
|
initMetadataForLambda(GameServer$roomOnContinueFromRound$slambda, CoroutineImpl, VOID, [2]);
|
|
282
|
+
initMetadataForLambda(GameServer$roomOnContinueFromRound$slambda_1, CoroutineImpl, VOID, [2]);
|
|
282
283
|
initMetadataForLambda(GameServer$addSpectatorsToRoom$slambda, CoroutineImpl, VOID, [2]);
|
|
283
284
|
initMetadataForLambda(GameServer$removeSpectatorsFromRoom$slambda, CoroutineImpl, VOID, [2]);
|
|
284
285
|
initMetadataForLambda(GameServer$roomRefreshPlayerState$slambda, CoroutineImpl, VOID, [2]);
|
|
@@ -295,15 +296,15 @@
|
|
|
295
296
|
tmp = spectators;
|
|
296
297
|
}
|
|
297
298
|
spectators = tmp;
|
|
298
|
-
return this.
|
|
299
|
+
return this.k9g(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
299
300
|
}
|
|
300
301
|
function roomOnDelete(newRid, $super) {
|
|
301
302
|
newRid = newRid === VOID ? null : newRid;
|
|
302
|
-
return this.
|
|
303
|
+
return this.l9g(newRid);
|
|
303
304
|
}
|
|
304
305
|
function shutdown(reason, roomId, $super) {
|
|
305
306
|
roomId = roomId === VOID ? null : roomId;
|
|
306
|
-
return this.
|
|
307
|
+
return this.m9g(reason, roomId);
|
|
307
308
|
}
|
|
308
309
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
309
310
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -353,7 +354,7 @@
|
|
|
353
354
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
354
355
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
355
356
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
356
|
-
return this.
|
|
357
|
+
return this.s9k(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
357
358
|
}
|
|
358
359
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
359
360
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -996,7 +997,6 @@
|
|
|
996
997
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
997
998
|
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.b9d_1);
|
|
998
999
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
999
|
-
this.d9d_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1000
1000
|
return Unit_instance;
|
|
1001
1001
|
} else if (tmp === 1) {
|
|
1002
1002
|
throw this.h9_1;
|
|
@@ -1021,8 +1021,53 @@
|
|
|
1021
1021
|
l.$arity = 2;
|
|
1022
1022
|
return l;
|
|
1023
1023
|
}
|
|
1024
|
+
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1025
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1026
|
+
}
|
|
1027
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
1028
|
+
var tmp = this.u9a($this$dispatchAsync, store, $completion);
|
|
1029
|
+
tmp.g9_1 = Unit_instance;
|
|
1030
|
+
tmp.h9_1 = null;
|
|
1031
|
+
return tmp.m9();
|
|
1032
|
+
};
|
|
1033
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).x9 = function (p1, p2, $completion) {
|
|
1034
|
+
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1035
|
+
return this.t9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1036
|
+
};
|
|
1037
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).m9 = function () {
|
|
1038
|
+
var suspendResult = this.g9_1;
|
|
1039
|
+
$sm: do
|
|
1040
|
+
try {
|
|
1041
|
+
var tmp = this.e9_1;
|
|
1042
|
+
if (tmp === 0) {
|
|
1043
|
+
this.f9_1 = 1;
|
|
1044
|
+
this.n9d_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1045
|
+
return Unit_instance;
|
|
1046
|
+
} else if (tmp === 1) {
|
|
1047
|
+
throw this.h9_1;
|
|
1048
|
+
}
|
|
1049
|
+
} catch ($p) {
|
|
1050
|
+
var e = $p;
|
|
1051
|
+
throw e;
|
|
1052
|
+
}
|
|
1053
|
+
while (true);
|
|
1054
|
+
};
|
|
1055
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1056
|
+
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1057
|
+
i.m9d_1 = $this$dispatchAsync;
|
|
1058
|
+
i.n9d_1 = store;
|
|
1059
|
+
return i;
|
|
1060
|
+
};
|
|
1061
|
+
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1062
|
+
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1063
|
+
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1064
|
+
return i.t9a($this$dispatchAsync, store, $completion);
|
|
1065
|
+
};
|
|
1066
|
+
l.$arity = 2;
|
|
1067
|
+
return l;
|
|
1068
|
+
}
|
|
1024
1069
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1025
|
-
this.
|
|
1070
|
+
this.w9d_1 = $spectators;
|
|
1026
1071
|
CoroutineImpl.call(this, resultContinuation);
|
|
1027
1072
|
}
|
|
1028
1073
|
protoOf(GameServer$addSpectatorsToRoom$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1042,7 +1087,7 @@
|
|
|
1042
1087
|
var tmp = this.e9_1;
|
|
1043
1088
|
if (tmp === 0) {
|
|
1044
1089
|
this.f9_1 = 1;
|
|
1045
|
-
this.
|
|
1090
|
+
this.y9d_1.dispatch(new AddSpectatorsAction(toList(this.w9d_1)));
|
|
1046
1091
|
return Unit_instance;
|
|
1047
1092
|
} else if (tmp === 1) {
|
|
1048
1093
|
throw this.h9_1;
|
|
@@ -1054,9 +1099,9 @@
|
|
|
1054
1099
|
while (true);
|
|
1055
1100
|
};
|
|
1056
1101
|
protoOf(GameServer$addSpectatorsToRoom$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1057
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1058
|
-
i.
|
|
1059
|
-
i.
|
|
1102
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.w9d_1, completion);
|
|
1103
|
+
i.x9d_1 = $this$dispatchAsync;
|
|
1104
|
+
i.y9d_1 = store;
|
|
1060
1105
|
return i;
|
|
1061
1106
|
};
|
|
1062
1107
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
@@ -1068,7 +1113,7 @@
|
|
|
1068
1113
|
return l;
|
|
1069
1114
|
}
|
|
1070
1115
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1071
|
-
this.
|
|
1116
|
+
this.h9e_1 = $spectators;
|
|
1072
1117
|
CoroutineImpl.call(this, resultContinuation);
|
|
1073
1118
|
}
|
|
1074
1119
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1088,7 +1133,7 @@
|
|
|
1088
1133
|
var tmp = this.e9_1;
|
|
1089
1134
|
if (tmp === 0) {
|
|
1090
1135
|
this.f9_1 = 1;
|
|
1091
|
-
this.
|
|
1136
|
+
this.j9e_1.dispatch(new RemoveSpectatorsAction(toList(this.h9e_1)));
|
|
1092
1137
|
return Unit_instance;
|
|
1093
1138
|
} else if (tmp === 1) {
|
|
1094
1139
|
throw this.h9_1;
|
|
@@ -1100,9 +1145,9 @@
|
|
|
1100
1145
|
while (true);
|
|
1101
1146
|
};
|
|
1102
1147
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1103
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1104
|
-
i.
|
|
1105
|
-
i.
|
|
1148
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.h9e_1, completion);
|
|
1149
|
+
i.i9e_1 = $this$dispatchAsync;
|
|
1150
|
+
i.j9e_1 = store;
|
|
1106
1151
|
return i;
|
|
1107
1152
|
};
|
|
1108
1153
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
@@ -1114,8 +1159,8 @@
|
|
|
1114
1159
|
return l;
|
|
1115
1160
|
}
|
|
1116
1161
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1117
|
-
this.
|
|
1118
|
-
this.
|
|
1162
|
+
this.s9e_1 = $playerId;
|
|
1163
|
+
this.t9e_1 = this$0;
|
|
1119
1164
|
CoroutineImpl.call(this, resultContinuation);
|
|
1120
1165
|
}
|
|
1121
1166
|
protoOf(GameServer$roomRefreshPlayerState$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1135,14 +1180,14 @@
|
|
|
1135
1180
|
var tmp = this.e9_1;
|
|
1136
1181
|
if (tmp === 0) {
|
|
1137
1182
|
this.f9_1 = 1;
|
|
1138
|
-
var table = this.
|
|
1139
|
-
var player = getPlayer(table.players, this.
|
|
1140
|
-
if (player.
|
|
1141
|
-
this.
|
|
1183
|
+
var table = this.v9e_1.state.g6n();
|
|
1184
|
+
var player = getPlayer(table.players, this.s9e_1);
|
|
1185
|
+
if (player.x6s_1.s69().j68_1.isLive) {
|
|
1186
|
+
this.v9e_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.t9e_1).g8l(player, table));
|
|
1142
1187
|
} else {
|
|
1143
|
-
var tmp_0 = this.
|
|
1188
|
+
var tmp_0 = this.v9e_1.dispatch;
|
|
1144
1189
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1145
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1190
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.s9e_1));
|
|
1146
1191
|
}
|
|
1147
1192
|
return Unit_instance;
|
|
1148
1193
|
} else if (tmp === 1) {
|
|
@@ -1155,9 +1200,9 @@
|
|
|
1155
1200
|
while (true);
|
|
1156
1201
|
};
|
|
1157
1202
|
protoOf(GameServer$roomRefreshPlayerState$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1158
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1159
|
-
i.
|
|
1160
|
-
i.
|
|
1203
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.s9e_1, this.t9e_1, completion);
|
|
1204
|
+
i.u9e_1 = $this$dispatchAsync;
|
|
1205
|
+
i.v9e_1 = store;
|
|
1161
1206
|
return i;
|
|
1162
1207
|
};
|
|
1163
1208
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
@@ -1169,8 +1214,8 @@
|
|
|
1169
1214
|
return l;
|
|
1170
1215
|
}
|
|
1171
1216
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1217
|
+
this.e9f_1 = this$0;
|
|
1218
|
+
this.f9f_1 = $newRid;
|
|
1174
1219
|
CoroutineImpl.call(this, resultContinuation);
|
|
1175
1220
|
}
|
|
1176
1221
|
protoOf(GameServer$roomOnDelete$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1190,23 +1235,23 @@
|
|
|
1190
1235
|
var tmp = this.e9_1;
|
|
1191
1236
|
if (tmp === 0) {
|
|
1192
1237
|
this.f9_1 = 1;
|
|
1193
|
-
var it = this.
|
|
1238
|
+
var it = this.e9f_1.p67().h6m_1;
|
|
1194
1239
|
var tmp_0;
|
|
1195
1240
|
if (it == null) {
|
|
1196
|
-
_get_logger__rkp4sl(this.
|
|
1241
|
+
_get_logger__rkp4sl(this.e9f_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1197
1242
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1198
1243
|
} else {
|
|
1199
1244
|
tmp_0 = it;
|
|
1200
1245
|
}
|
|
1201
1246
|
var terminationState = tmp_0;
|
|
1202
|
-
var tmp_1 = this.
|
|
1247
|
+
var tmp_1 = this.h9f_1.dispatch;
|
|
1203
1248
|
var tmp1_reason = terminationState.h8p_1;
|
|
1204
1249
|
var tmp0_safe_receiver = terminationState.i8p_1;
|
|
1205
1250
|
var tmp_2;
|
|
1206
1251
|
if (tmp0_safe_receiver == null) {
|
|
1207
1252
|
tmp_2 = null;
|
|
1208
1253
|
} else {
|
|
1209
|
-
var value = this.
|
|
1254
|
+
var value = this.f9f_1;
|
|
1210
1255
|
var tmp$ret$0 = Unit_instance;
|
|
1211
1256
|
l$ret$1: do {
|
|
1212
1257
|
if (value == null) {
|
|
@@ -1221,7 +1266,7 @@
|
|
|
1221
1266
|
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1222
1267
|
}
|
|
1223
1268
|
var tmp2_transition = tmp_2;
|
|
1224
|
-
var tmp3_isGameFinished = this.
|
|
1269
|
+
var tmp3_isGameFinished = this.e9f_1.p67().g6n().isGameFinished;
|
|
1225
1270
|
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1226
1271
|
return Unit_instance;
|
|
1227
1272
|
} else if (tmp === 1) {
|
|
@@ -1234,9 +1279,9 @@
|
|
|
1234
1279
|
while (true);
|
|
1235
1280
|
};
|
|
1236
1281
|
protoOf(GameServer$roomOnDelete$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1237
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1238
|
-
i.
|
|
1239
|
-
i.
|
|
1282
|
+
var i = new GameServer$roomOnDelete$slambda(this.e9f_1, this.f9f_1, completion);
|
|
1283
|
+
i.g9f_1 = $this$dispatchAsync;
|
|
1284
|
+
i.h9f_1 = store;
|
|
1240
1285
|
return i;
|
|
1241
1286
|
};
|
|
1242
1287
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
@@ -1248,7 +1293,7 @@
|
|
|
1248
1293
|
return l;
|
|
1249
1294
|
}
|
|
1250
1295
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1251
|
-
this.
|
|
1296
|
+
this.q9f_1 = $enabled;
|
|
1252
1297
|
CoroutineImpl.call(this, resultContinuation);
|
|
1253
1298
|
}
|
|
1254
1299
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1268,7 +1313,7 @@
|
|
|
1268
1313
|
var tmp = this.e9_1;
|
|
1269
1314
|
if (tmp === 0) {
|
|
1270
1315
|
this.f9_1 = 1;
|
|
1271
|
-
this.
|
|
1316
|
+
this.s9f_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.s9f_1.state).t9f_1.v9f(this.q9f_1)));
|
|
1272
1317
|
return Unit_instance;
|
|
1273
1318
|
} else if (tmp === 1) {
|
|
1274
1319
|
throw this.h9_1;
|
|
@@ -1280,9 +1325,9 @@
|
|
|
1280
1325
|
while (true);
|
|
1281
1326
|
};
|
|
1282
1327
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1283
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1284
|
-
i.
|
|
1285
|
-
i.
|
|
1328
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.q9f_1, completion);
|
|
1329
|
+
i.r9f_1 = $this$dispatchAsync;
|
|
1330
|
+
i.s9f_1 = store;
|
|
1286
1331
|
return i;
|
|
1287
1332
|
};
|
|
1288
1333
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
@@ -1294,9 +1339,9 @@
|
|
|
1294
1339
|
return l;
|
|
1295
1340
|
}
|
|
1296
1341
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1342
|
+
this.e9g_1 = $reason;
|
|
1343
|
+
this.f9g_1 = this$0;
|
|
1344
|
+
this.g9g_1 = $roomId;
|
|
1300
1345
|
CoroutineImpl.call(this, resultContinuation);
|
|
1301
1346
|
}
|
|
1302
1347
|
protoOf(GameServer$shutdown$slambda).t9a = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1316,11 +1361,11 @@
|
|
|
1316
1361
|
var tmp = this.e9_1;
|
|
1317
1362
|
if (tmp === 0) {
|
|
1318
1363
|
this.f9_1 = 1;
|
|
1319
|
-
var state = this.
|
|
1364
|
+
var state = this.i9g_1.store.state;
|
|
1320
1365
|
if (state.h6n()) {
|
|
1321
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1366
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.e9g_1, get_serverShutdownReasonMapping());
|
|
1322
1367
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1323
|
-
var tmp_0 = this.
|
|
1368
|
+
var tmp_0 = this.i9g_1.dispatch;
|
|
1324
1369
|
var tmp_1 = Companion_instance_0;
|
|
1325
1370
|
var tmp_2;
|
|
1326
1371
|
switch (shutdownReason.n2_1) {
|
|
@@ -1334,10 +1379,10 @@
|
|
|
1334
1379
|
noWhenBranchMatchedException();
|
|
1335
1380
|
break;
|
|
1336
1381
|
}
|
|
1337
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1382
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.f9g_1.table.isGameFinished, this.f9g_1.table));
|
|
1338
1383
|
} else {
|
|
1339
|
-
_get_logger__rkp4sl(this.
|
|
1340
|
-
this.
|
|
1384
|
+
_get_logger__rkp4sl(this.f9g_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.g9g_1);
|
|
1385
|
+
this.i9g_1.dispatch(new ClearAction());
|
|
1341
1386
|
}
|
|
1342
1387
|
return Unit_instance;
|
|
1343
1388
|
} else if (tmp === 1) {
|
|
@@ -1350,9 +1395,9 @@
|
|
|
1350
1395
|
while (true);
|
|
1351
1396
|
};
|
|
1352
1397
|
protoOf(GameServer$shutdown$slambda).u9a = function ($this$dispatchAsync, store, completion) {
|
|
1353
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1354
|
-
i.
|
|
1355
|
-
i.
|
|
1398
|
+
var i = new GameServer$shutdown$slambda(this.e9g_1, this.f9g_1, this.g9g_1, completion);
|
|
1399
|
+
i.h9g_1 = $this$dispatchAsync;
|
|
1400
|
+
i.i9g_1 = store;
|
|
1356
1401
|
return i;
|
|
1357
1402
|
};
|
|
1358
1403
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
@@ -1364,7 +1409,7 @@
|
|
|
1364
1409
|
return l;
|
|
1365
1410
|
}
|
|
1366
1411
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1367
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1412
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.j9g()) : preloadedState;
|
|
1368
1413
|
var tmp;
|
|
1369
1414
|
if (externalReducers === VOID) {
|
|
1370
1415
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1452,11 +1497,12 @@
|
|
|
1452
1497
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1453
1498
|
this.h99_1.f6n(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1454
1499
|
};
|
|
1455
|
-
protoOf(GameServer).
|
|
1500
|
+
protoOf(GameServer).k9g = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1456
1501
|
this.h99_1.f6n(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1457
1502
|
};
|
|
1458
1503
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1459
1504
|
this.h99_1.f6n(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1505
|
+
this.h99_1.f6n(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
1460
1506
|
};
|
|
1461
1507
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1462
1508
|
this.h99_1.f6n(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
@@ -1468,13 +1514,13 @@
|
|
|
1468
1514
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1469
1515
|
this.h99_1.f6n(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1470
1516
|
};
|
|
1471
|
-
protoOf(GameServer).
|
|
1517
|
+
protoOf(GameServer).l9g = function (newRid) {
|
|
1472
1518
|
this.h99_1.f6n(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1473
1519
|
};
|
|
1474
1520
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1475
1521
|
this.h99_1.f6n(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1476
1522
|
};
|
|
1477
|
-
protoOf(GameServer).
|
|
1523
|
+
protoOf(GameServer).m9g = function (reason, roomId) {
|
|
1478
1524
|
this.h99_1.f6n(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1479
1525
|
};
|
|
1480
1526
|
protoOf(GameServer).clear = function () {
|
|
@@ -1559,16 +1605,16 @@
|
|
|
1559
1605
|
return ServerShutdownReason_ERROR_instance;
|
|
1560
1606
|
}
|
|
1561
1607
|
function ServerConfig(canStartNewGame) {
|
|
1562
|
-
this.
|
|
1608
|
+
this.u9f_1 = canStartNewGame;
|
|
1563
1609
|
}
|
|
1564
|
-
protoOf(ServerConfig).
|
|
1610
|
+
protoOf(ServerConfig).v9f = function (canStartNewGame) {
|
|
1565
1611
|
return new ServerConfig(canStartNewGame);
|
|
1566
1612
|
};
|
|
1567
1613
|
protoOf(ServerConfig).toString = function () {
|
|
1568
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1614
|
+
return 'ServerConfig(canStartNewGame=' + this.u9f_1 + ')';
|
|
1569
1615
|
};
|
|
1570
1616
|
protoOf(ServerConfig).hashCode = function () {
|
|
1571
|
-
return getBooleanHashCode(this.
|
|
1617
|
+
return getBooleanHashCode(this.u9f_1);
|
|
1572
1618
|
};
|
|
1573
1619
|
protoOf(ServerConfig).equals = function (other) {
|
|
1574
1620
|
if (this === other)
|
|
@@ -1576,7 +1622,7 @@
|
|
|
1576
1622
|
if (!(other instanceof ServerConfig))
|
|
1577
1623
|
return false;
|
|
1578
1624
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1579
|
-
if (!(this.
|
|
1625
|
+
if (!(this.u9f_1 === tmp0_other_with_cast.u9f_1))
|
|
1580
1626
|
return false;
|
|
1581
1627
|
return true;
|
|
1582
1628
|
};
|
|
@@ -1808,18 +1854,18 @@
|
|
|
1808
1854
|
function ToClientEventsObserver() {
|
|
1809
1855
|
}
|
|
1810
1856
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1857
|
+
this.w9g_1 = this$0;
|
|
1858
|
+
this.x9g_1 = $actions;
|
|
1813
1859
|
CoroutineImpl.call(this, resultContinuation);
|
|
1814
1860
|
}
|
|
1815
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1816
|
-
var tmp = this.
|
|
1861
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).e9h = function ($this$flow, $completion) {
|
|
1862
|
+
var tmp = this.f9h($this$flow, $completion);
|
|
1817
1863
|
tmp.g9_1 = Unit_instance;
|
|
1818
1864
|
tmp.h9_1 = null;
|
|
1819
1865
|
return tmp.m9();
|
|
1820
1866
|
};
|
|
1821
1867
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1822
|
-
return this.
|
|
1868
|
+
return this.e9h((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1823
1869
|
};
|
|
1824
1870
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1825
1871
|
var suspendResult = this.g9_1;
|
|
@@ -1830,23 +1876,23 @@
|
|
|
1830
1876
|
case 0:
|
|
1831
1877
|
this.f9_1 = 4;
|
|
1832
1878
|
var tmp_0 = this;
|
|
1833
|
-
tmp_0.
|
|
1879
|
+
tmp_0.z9g_1 = this.w9g_1.k9h_1;
|
|
1834
1880
|
var tmp_1 = this;
|
|
1835
|
-
tmp_1.
|
|
1836
|
-
this.
|
|
1881
|
+
tmp_1.a9h_1 = transformToEmits(this.w9g_1, this.x9g_1);
|
|
1882
|
+
this.b9h_1 = this.a9h_1.j();
|
|
1837
1883
|
this.e9_1 = 1;
|
|
1838
1884
|
continue $sm;
|
|
1839
1885
|
case 1:
|
|
1840
|
-
if (!this.
|
|
1886
|
+
if (!this.b9h_1.k()) {
|
|
1841
1887
|
this.e9_1 = 3;
|
|
1842
1888
|
continue $sm;
|
|
1843
1889
|
}
|
|
1844
1890
|
|
|
1845
|
-
this.
|
|
1891
|
+
this.c9h_1 = this.b9h_1.l();
|
|
1846
1892
|
var tmp_2 = this;
|
|
1847
|
-
tmp_2.
|
|
1893
|
+
tmp_2.d9h_1 = this.c9h_1;
|
|
1848
1894
|
this.e9_1 = 2;
|
|
1849
|
-
suspendResult = this.
|
|
1895
|
+
suspendResult = this.y9g_1.p18(this.d9h_1, this);
|
|
1850
1896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1851
1897
|
return suspendResult;
|
|
1852
1898
|
}
|
|
@@ -1857,10 +1903,10 @@
|
|
|
1857
1903
|
continue $sm;
|
|
1858
1904
|
case 3:
|
|
1859
1905
|
l$ret$1: do {
|
|
1860
|
-
var this_0 = this.
|
|
1906
|
+
var this_0 = this.w9g_1.j9h_1;
|
|
1861
1907
|
while (true) {
|
|
1862
1908
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1863
|
-
var upd = cur - this.
|
|
1909
|
+
var upd = cur - this.x9g_1.m() | 0;
|
|
1864
1910
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1865
1911
|
break l$ret$1;
|
|
1866
1912
|
}
|
|
@@ -1882,15 +1928,15 @@
|
|
|
1882
1928
|
}
|
|
1883
1929
|
while (true);
|
|
1884
1930
|
};
|
|
1885
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1886
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1887
|
-
i.
|
|
1931
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).f9h = function ($this$flow, completion) {
|
|
1932
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.w9g_1, this.x9g_1, completion);
|
|
1933
|
+
i.y9g_1 = $this$flow;
|
|
1888
1934
|
return i;
|
|
1889
1935
|
};
|
|
1890
1936
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1891
1937
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1892
1938
|
var l = function ($this$flow, $completion) {
|
|
1893
|
-
return i.
|
|
1939
|
+
return i.e9h($this$flow, $completion);
|
|
1894
1940
|
};
|
|
1895
1941
|
l.$arity = 1;
|
|
1896
1942
|
return l;
|
|
@@ -1963,29 +2009,29 @@
|
|
|
1963
2009
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1964
2010
|
}
|
|
1965
2011
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1966
|
-
var tmp = $this.
|
|
2012
|
+
var tmp = $this.i9h_1.m6d();
|
|
1967
2013
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1968
|
-
var this_0 = _this__u8e3s4.
|
|
2014
|
+
var this_0 = _this__u8e3s4.n9h_1;
|
|
1969
2015
|
var tmp_0 = copyToArray(this_0);
|
|
1970
2016
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1971
|
-
var this_1 = _this__u8e3s4.
|
|
2017
|
+
var this_1 = _this__u8e3s4.o9h_1;
|
|
1972
2018
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1973
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
2019
|
+
return new ActionDeliveryPayload(_this__u8e3s4.m9h_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.p9h_1);
|
|
1974
2020
|
}
|
|
1975
2021
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
2022
|
+
this.m9h_1 = tableId;
|
|
2023
|
+
this.n9h_1 = includePlayers;
|
|
2024
|
+
this.o9h_1 = excludePlayers;
|
|
2025
|
+
this.p9h_1 = deliveryType;
|
|
1980
2026
|
}
|
|
1981
2027
|
protoOf(GroupKey).toString = function () {
|
|
1982
|
-
return 'GroupKey(tableId=' + this.
|
|
2028
|
+
return 'GroupKey(tableId=' + this.m9h_1 + ', includePlayers=' + toString(this.n9h_1) + ', excludePlayers=' + toString(this.o9h_1) + ', deliveryType=' + this.p9h_1.toString() + ')';
|
|
1983
2029
|
};
|
|
1984
2030
|
protoOf(GroupKey).hashCode = function () {
|
|
1985
|
-
var result = getStringHashCode(this.
|
|
1986
|
-
result = imul(result, 31) + hashCode(this.
|
|
1987
|
-
result = imul(result, 31) + hashCode(this.
|
|
1988
|
-
result = imul(result, 31) + this.
|
|
2031
|
+
var result = getStringHashCode(this.m9h_1);
|
|
2032
|
+
result = imul(result, 31) + hashCode(this.n9h_1) | 0;
|
|
2033
|
+
result = imul(result, 31) + hashCode(this.o9h_1) | 0;
|
|
2034
|
+
result = imul(result, 31) + this.p9h_1.hashCode() | 0;
|
|
1989
2035
|
return result;
|
|
1990
2036
|
};
|
|
1991
2037
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1994,35 +2040,35 @@
|
|
|
1994
2040
|
if (!(other instanceof GroupKey))
|
|
1995
2041
|
return false;
|
|
1996
2042
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1997
|
-
if (!(this.
|
|
2043
|
+
if (!(this.m9h_1 === tmp0_other_with_cast.m9h_1))
|
|
1998
2044
|
return false;
|
|
1999
|
-
if (!equals(this.
|
|
2045
|
+
if (!equals(this.n9h_1, tmp0_other_with_cast.n9h_1))
|
|
2000
2046
|
return false;
|
|
2001
|
-
if (!equals(this.
|
|
2047
|
+
if (!equals(this.o9h_1, tmp0_other_with_cast.o9h_1))
|
|
2002
2048
|
return false;
|
|
2003
|
-
if (!this.
|
|
2049
|
+
if (!this.p9h_1.equals(tmp0_other_with_cast.p9h_1))
|
|
2004
2050
|
return false;
|
|
2005
2051
|
return true;
|
|
2006
2052
|
};
|
|
2007
2053
|
function Companion_0() {
|
|
2008
|
-
this.
|
|
2054
|
+
this.q9h_1 = 6;
|
|
2009
2055
|
}
|
|
2010
2056
|
var Companion_instance_8;
|
|
2011
2057
|
function Companion_getInstance_1() {
|
|
2012
2058
|
return Companion_instance_8;
|
|
2013
2059
|
}
|
|
2014
2060
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
2015
|
-
this.
|
|
2061
|
+
this.z9h_1 = this$0;
|
|
2016
2062
|
CoroutineImpl.call(this, resultContinuation);
|
|
2017
2063
|
}
|
|
2018
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2019
|
-
var tmp = this.
|
|
2064
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).b9i = function (actions, $completion) {
|
|
2065
|
+
var tmp = this.c9i(actions, $completion);
|
|
2020
2066
|
tmp.g9_1 = Unit_instance;
|
|
2021
2067
|
tmp.h9_1 = null;
|
|
2022
2068
|
return tmp.m9();
|
|
2023
2069
|
};
|
|
2024
2070
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
2025
|
-
return this.
|
|
2071
|
+
return this.b9i((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
2026
2072
|
};
|
|
2027
2073
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
2028
2074
|
var suspendResult = this.g9_1;
|
|
@@ -2031,7 +2077,7 @@
|
|
|
2031
2077
|
var tmp = this.e9_1;
|
|
2032
2078
|
if (tmp === 0) {
|
|
2033
2079
|
this.f9_1 = 1;
|
|
2034
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
2080
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.z9h_1, this.a9i_1, null));
|
|
2035
2081
|
} else if (tmp === 1) {
|
|
2036
2082
|
throw this.h9_1;
|
|
2037
2083
|
}
|
|
@@ -2041,23 +2087,23 @@
|
|
|
2041
2087
|
}
|
|
2042
2088
|
while (true);
|
|
2043
2089
|
};
|
|
2044
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
2045
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
2046
|
-
i.
|
|
2090
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).c9i = function (actions, completion) {
|
|
2091
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.z9h_1, completion);
|
|
2092
|
+
i.a9i_1 = actions;
|
|
2047
2093
|
return i;
|
|
2048
2094
|
};
|
|
2049
2095
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
2050
2096
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
2051
2097
|
var l = function (actions, $completion) {
|
|
2052
|
-
return i.
|
|
2098
|
+
return i.b9i(actions, $completion);
|
|
2053
2099
|
};
|
|
2054
2100
|
l.$arity = 1;
|
|
2055
2101
|
return l;
|
|
2056
2102
|
}
|
|
2057
2103
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
2058
2104
|
CoroutineImpl.call(this, resultContinuation);
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2105
|
+
this.l9i_1 = _this__u8e3s4;
|
|
2106
|
+
this.m9i_1 = fromEvent;
|
|
2061
2107
|
}
|
|
2062
2108
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
2063
2109
|
var suspendResult = this.g9_1;
|
|
@@ -2068,9 +2114,9 @@
|
|
|
2068
2114
|
case 0:
|
|
2069
2115
|
this.f9_1 = 2;
|
|
2070
2116
|
var tmp_0 = this;
|
|
2071
|
-
tmp_0.
|
|
2117
|
+
tmp_0.n9i_1 = this.l9i_1.k9h_1;
|
|
2072
2118
|
l$ret$1: do {
|
|
2073
|
-
var this_0 = this.
|
|
2119
|
+
var this_0 = this.l9i_1.j9h_1;
|
|
2074
2120
|
while (true) {
|
|
2075
2121
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2076
2122
|
var upd = cur + 1 | 0;
|
|
@@ -2081,7 +2127,7 @@
|
|
|
2081
2127
|
}
|
|
2082
2128
|
while (false);
|
|
2083
2129
|
this.e9_1 = 1;
|
|
2084
|
-
suspendResult = this.
|
|
2130
|
+
suspendResult = this.l9i_1.l9h_1.p18(this.m9i_1, this);
|
|
2085
2131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2086
2132
|
return suspendResult;
|
|
2087
2133
|
}
|
|
@@ -2105,7 +2151,7 @@
|
|
|
2105
2151
|
};
|
|
2106
2152
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2107
2153
|
CoroutineImpl.call(this, resultContinuation);
|
|
2108
|
-
this.
|
|
2154
|
+
this.w9i_1 = _this__u8e3s4;
|
|
2109
2155
|
}
|
|
2110
2156
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2111
2157
|
var suspendResult = this.g9_1;
|
|
@@ -2116,12 +2162,12 @@
|
|
|
2116
2162
|
case 0:
|
|
2117
2163
|
this.f9_1 = 5;
|
|
2118
2164
|
var tmp_0 = this;
|
|
2119
|
-
tmp_0.
|
|
2120
|
-
this.
|
|
2165
|
+
tmp_0.x9i_1 = this.w9i_1.k9h_1;
|
|
2166
|
+
this.y9i_1 = 0;
|
|
2121
2167
|
this.e9_1 = 1;
|
|
2122
2168
|
continue $sm;
|
|
2123
2169
|
case 1:
|
|
2124
|
-
if (!!(this.
|
|
2170
|
+
if (!!(this.w9i_1.j9h_1.kotlinx$atomicfu$value === 0)) {
|
|
2125
2171
|
this.e9_1 = 4;
|
|
2126
2172
|
continue $sm;
|
|
2127
2173
|
}
|
|
@@ -2134,9 +2180,9 @@
|
|
|
2134
2180
|
|
|
2135
2181
|
continue $sm;
|
|
2136
2182
|
case 2:
|
|
2137
|
-
this.
|
|
2138
|
-
if (this.
|
|
2139
|
-
this.
|
|
2183
|
+
this.y9i_1 = this.y9i_1 + 1 | 0;
|
|
2184
|
+
if (this.y9i_1 > 6) {
|
|
2185
|
+
this.w9i_1.h9h_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.w9i_1.j9h_1.kotlinx$atomicfu$value);
|
|
2140
2186
|
this.e9_1 = 4;
|
|
2141
2187
|
continue $sm;
|
|
2142
2188
|
} else {
|
|
@@ -2164,16 +2210,16 @@
|
|
|
2164
2210
|
while (true);
|
|
2165
2211
|
};
|
|
2166
2212
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
this.
|
|
2213
|
+
this.g9h_1 = serverReduxConfig;
|
|
2214
|
+
this.h9h_1 = logger;
|
|
2215
|
+
this.i9h_1 = idsProvider;
|
|
2216
|
+
this.j9h_1 = atomic$ref$1(0);
|
|
2171
2217
|
var tmp = this;
|
|
2172
2218
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2173
|
-
tmp.
|
|
2174
|
-
this.
|
|
2219
|
+
tmp.k9h_1 = get_atomicfu$reentrantLock();
|
|
2220
|
+
this.l9h_1 = MutableSharedFlow();
|
|
2175
2221
|
}
|
|
2176
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2222
|
+
protoOf(ToClientEventsObserverImpl).n9g = function (fromEvent, $completion) {
|
|
2177
2223
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2178
2224
|
tmp.g9_1 = Unit_instance;
|
|
2179
2225
|
tmp.h9_1 = null;
|
|
@@ -2186,20 +2232,20 @@
|
|
|
2186
2232
|
return tmp.m9();
|
|
2187
2233
|
};
|
|
2188
2234
|
protoOf(ToClientEventsObserverImpl).w99 = function () {
|
|
2189
|
-
if (!this.
|
|
2190
|
-
return this.
|
|
2235
|
+
if (!this.g9h_1.enabledCombinedEvents) {
|
|
2236
|
+
return this.l9h_1;
|
|
2191
2237
|
}
|
|
2192
|
-
var tmp = windowedByInterval(this.
|
|
2238
|
+
var tmp = windowedByInterval(this.l9h_1, toLong(this.g9h_1.combinedEventsPeriod));
|
|
2193
2239
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2194
2240
|
};
|
|
2195
2241
|
function UpdateServerConfigAction(serverConfig) {
|
|
2196
|
-
this.
|
|
2242
|
+
this.z9i_1 = serverConfig;
|
|
2197
2243
|
}
|
|
2198
2244
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2199
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2245
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.z9i_1.toString() + ')';
|
|
2200
2246
|
};
|
|
2201
2247
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2202
|
-
return this.
|
|
2248
|
+
return this.z9i_1.hashCode();
|
|
2203
2249
|
};
|
|
2204
2250
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2205
2251
|
if (this === other)
|
|
@@ -2207,20 +2253,20 @@
|
|
|
2207
2253
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2208
2254
|
return false;
|
|
2209
2255
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2210
|
-
if (!this.
|
|
2256
|
+
if (!this.z9i_1.equals(tmp0_other_with_cast.z9i_1))
|
|
2211
2257
|
return false;
|
|
2212
2258
|
return true;
|
|
2213
2259
|
};
|
|
2214
2260
|
function SpectatorsAction() {
|
|
2215
2261
|
}
|
|
2216
2262
|
function AddSpectatorsAction(spectators) {
|
|
2217
|
-
this.
|
|
2263
|
+
this.a9j_1 = spectators;
|
|
2218
2264
|
}
|
|
2219
2265
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2220
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2266
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.a9j_1) + ')';
|
|
2221
2267
|
};
|
|
2222
2268
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2223
|
-
return hashCode(this.
|
|
2269
|
+
return hashCode(this.a9j_1);
|
|
2224
2270
|
};
|
|
2225
2271
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2226
2272
|
if (this === other)
|
|
@@ -2228,18 +2274,18 @@
|
|
|
2228
2274
|
if (!(other instanceof AddSpectatorsAction))
|
|
2229
2275
|
return false;
|
|
2230
2276
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2231
|
-
if (!equals(this.
|
|
2277
|
+
if (!equals(this.a9j_1, tmp0_other_with_cast.a9j_1))
|
|
2232
2278
|
return false;
|
|
2233
2279
|
return true;
|
|
2234
2280
|
};
|
|
2235
2281
|
function RemoveSpectatorsAction(spectators) {
|
|
2236
|
-
this.
|
|
2282
|
+
this.b9j_1 = spectators;
|
|
2237
2283
|
}
|
|
2238
2284
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2239
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2285
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.b9j_1) + ')';
|
|
2240
2286
|
};
|
|
2241
2287
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2242
|
-
return hashCode(this.
|
|
2288
|
+
return hashCode(this.b9j_1);
|
|
2243
2289
|
};
|
|
2244
2290
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2245
2291
|
if (this === other)
|
|
@@ -2247,67 +2293,67 @@
|
|
|
2247
2293
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2248
2294
|
return false;
|
|
2249
2295
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2250
|
-
if (!equals(this.
|
|
2296
|
+
if (!equals(this.b9j_1, tmp0_other_with_cast.b9j_1))
|
|
2251
2297
|
return false;
|
|
2252
2298
|
return true;
|
|
2253
2299
|
};
|
|
2254
2300
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2255
2301
|
// Inline function 'kotlin.getValue' call
|
|
2256
|
-
var this_0 = $this.
|
|
2302
|
+
var this_0 = $this.h9j_1;
|
|
2257
2303
|
asyncProvider$factory_0();
|
|
2258
2304
|
return this_0.u();
|
|
2259
2305
|
}
|
|
2260
2306
|
function _get_logger__rkp4sl_0($this) {
|
|
2261
2307
|
// Inline function 'kotlin.getValue' call
|
|
2262
|
-
var this_0 = $this.
|
|
2308
|
+
var this_0 = $this.i9j_1;
|
|
2263
2309
|
logger$factory_2();
|
|
2264
2310
|
return this_0.u();
|
|
2265
2311
|
}
|
|
2266
2312
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2267
2313
|
// Inline function 'kotlin.getValue' call
|
|
2268
|
-
var this_0 = $this.
|
|
2314
|
+
var this_0 = $this.j9j_1;
|
|
2269
2315
|
playerConnectionInteractor$factory_2();
|
|
2270
2316
|
return this_0.u();
|
|
2271
2317
|
}
|
|
2272
2318
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2273
2319
|
// Inline function 'kotlin.getValue' call
|
|
2274
|
-
var this_0 = $this.
|
|
2320
|
+
var this_0 = $this.k9j_1;
|
|
2275
2321
|
lastCardInteractor$factory_0();
|
|
2276
2322
|
return this_0.u();
|
|
2277
2323
|
}
|
|
2278
2324
|
function _get_serverConfig__rk2g06($this) {
|
|
2279
2325
|
// Inline function 'kotlin.getValue' call
|
|
2280
|
-
var this_0 = $this.
|
|
2326
|
+
var this_0 = $this.l9j_1;
|
|
2281
2327
|
serverConfig$factory_0();
|
|
2282
2328
|
return this_0.u();
|
|
2283
2329
|
}
|
|
2284
2330
|
function _get_logicConfig__52ww9d($this) {
|
|
2285
2331
|
// Inline function 'kotlin.getValue' call
|
|
2286
|
-
var this_0 = $this.
|
|
2332
|
+
var this_0 = $this.m9j_1;
|
|
2287
2333
|
logicConfig$factory_0();
|
|
2288
2334
|
return this_0.u();
|
|
2289
2335
|
}
|
|
2290
2336
|
function _get_idsProvider__fnfajc($this) {
|
|
2291
2337
|
// Inline function 'kotlin.getValue' call
|
|
2292
|
-
var this_0 = $this.
|
|
2338
|
+
var this_0 = $this.n9j_1;
|
|
2293
2339
|
idsProvider$factory_0();
|
|
2294
2340
|
return this_0.u();
|
|
2295
2341
|
}
|
|
2296
2342
|
function _get_botConfig__cpaxzc($this) {
|
|
2297
2343
|
// Inline function 'kotlin.getValue' call
|
|
2298
|
-
var this_0 = $this.
|
|
2344
|
+
var this_0 = $this.o9j_1;
|
|
2299
2345
|
botConfig$factory_0();
|
|
2300
2346
|
return this_0.u();
|
|
2301
2347
|
}
|
|
2302
2348
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2303
2349
|
// Inline function 'kotlin.getValue' call
|
|
2304
|
-
var this_0 = $this.
|
|
2350
|
+
var this_0 = $this.p9j_1;
|
|
2305
2351
|
scenePositionProvider$factory_0();
|
|
2306
2352
|
return this_0.u();
|
|
2307
2353
|
}
|
|
2308
2354
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2309
2355
|
// Inline function 'kotlin.getValue' call
|
|
2310
|
-
var this_0 = $this.
|
|
2356
|
+
var this_0 = $this.q9j_1;
|
|
2311
2357
|
toClientEventsObserver$factory_2();
|
|
2312
2358
|
return this_0.u();
|
|
2313
2359
|
}
|
|
@@ -2320,77 +2366,77 @@
|
|
|
2320
2366
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2321
2367
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2322
2368
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2323
|
-
this.
|
|
2324
|
-
this.
|
|
2325
|
-
this.
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2369
|
+
this.c9j_1 = validationStoreContract;
|
|
2370
|
+
this.d9j_1 = timersStoreContract;
|
|
2371
|
+
this.e9j_1 = botGameStoreContract;
|
|
2372
|
+
this.f9j_1 = gameMechanicStoreContract;
|
|
2373
|
+
this.g9j_1 = fileLoggerStoreContract;
|
|
2328
2374
|
var tmp = this;
|
|
2329
2375
|
// Inline function 'org.kodein.di.instance' call
|
|
2330
2376
|
// Inline function 'org.kodein.type.generic' call
|
|
2331
2377
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2332
2378
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2333
|
-
tmp.
|
|
2379
|
+
tmp.h9j_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2334
2380
|
var tmp_1 = this;
|
|
2335
2381
|
// Inline function 'org.kodein.di.instance' call
|
|
2336
2382
|
// Inline function 'org.kodein.type.generic' call
|
|
2337
2383
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2338
2384
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2339
|
-
tmp_1.
|
|
2385
|
+
tmp_1.i9j_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2340
2386
|
var tmp_3 = this;
|
|
2341
2387
|
// Inline function 'org.kodein.di.instance' call
|
|
2342
2388
|
// Inline function 'org.kodein.type.generic' call
|
|
2343
2389
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2344
2390
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2345
|
-
tmp_3.
|
|
2391
|
+
tmp_3.j9j_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2346
2392
|
var tmp_5 = this;
|
|
2347
2393
|
// Inline function 'org.kodein.di.instance' call
|
|
2348
2394
|
// Inline function 'org.kodein.type.generic' call
|
|
2349
2395
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2350
2396
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2351
|
-
tmp_5.
|
|
2397
|
+
tmp_5.k9j_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2352
2398
|
var tmp_7 = this;
|
|
2353
2399
|
// Inline function 'org.kodein.di.instance' call
|
|
2354
2400
|
// Inline function 'org.kodein.type.generic' call
|
|
2355
2401
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2356
2402
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2357
|
-
tmp_7.
|
|
2403
|
+
tmp_7.l9j_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2358
2404
|
var tmp_9 = this;
|
|
2359
2405
|
// Inline function 'org.kodein.di.instance' call
|
|
2360
2406
|
// Inline function 'org.kodein.type.generic' call
|
|
2361
2407
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2362
2408
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2363
|
-
tmp_9.
|
|
2409
|
+
tmp_9.m9j_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2364
2410
|
var tmp_11 = this;
|
|
2365
2411
|
// Inline function 'org.kodein.di.instance' call
|
|
2366
2412
|
// Inline function 'org.kodein.type.generic' call
|
|
2367
2413
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2368
2414
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2369
|
-
tmp_11.
|
|
2415
|
+
tmp_11.n9j_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2370
2416
|
var tmp_13 = this;
|
|
2371
2417
|
// Inline function 'org.kodein.di.instance' call
|
|
2372
2418
|
// Inline function 'org.kodein.type.generic' call
|
|
2373
2419
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2374
2420
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2375
|
-
tmp_13.
|
|
2421
|
+
tmp_13.o9j_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2376
2422
|
var tmp_15 = this;
|
|
2377
2423
|
// Inline function 'org.kodein.di.instance' call
|
|
2378
2424
|
// Inline function 'org.kodein.type.generic' call
|
|
2379
2425
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2380
2426
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2381
|
-
tmp_15.
|
|
2427
|
+
tmp_15.p9j_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2382
2428
|
var tmp_17 = this;
|
|
2383
2429
|
// Inline function 'org.kodein.di.instance' call
|
|
2384
2430
|
// Inline function 'org.kodein.type.generic' call
|
|
2385
2431
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2386
2432
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2387
|
-
tmp_17.
|
|
2433
|
+
tmp_17.q9j_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2388
2434
|
}
|
|
2389
2435
|
protoOf(ServerGameStoreContract).o8t = function () {
|
|
2390
|
-
return plus(plus(plus(plus(plus(this.
|
|
2436
|
+
return plus(plus(plus(plus(plus(this.c9j_1.o8t(), this.d9j_1.o8t()), this.e9j_1.o8t()), this.f9j_1.o8t()), this.g9j_1.o8t()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2391
2437
|
};
|
|
2392
2438
|
protoOf(ServerGameStoreContract).p8t = function () {
|
|
2393
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2439
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.c9j_1.p8t(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.d9j_1.p8t()), this.e9j_1.p8t()), this.f9j_1.p8t()), this.g9j_1.p8t()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).h8v(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2394
2440
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2395
2441
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2396
2442
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2520,7 +2566,7 @@
|
|
|
2520
2566
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2521
2567
|
next(action_0);
|
|
2522
2568
|
var state = store.state;
|
|
2523
|
-
if (!get_serverState_0(state).
|
|
2569
|
+
if (!get_serverState_0(state).t9f_1.u9f_1 && action_0.isGameFinished) {
|
|
2524
2570
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.e6m_1));
|
|
2525
2571
|
}
|
|
2526
2572
|
};
|
|
@@ -2533,7 +2579,7 @@
|
|
|
2533
2579
|
};
|
|
2534
2580
|
}
|
|
2535
2581
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2536
|
-
this.
|
|
2582
|
+
this.t9j_1 = this$0;
|
|
2537
2583
|
}
|
|
2538
2584
|
protoOf(_no_name_provided__qut3iv_0).j6f = function (action) {
|
|
2539
2585
|
return action instanceof MechanicAction;
|
|
@@ -2548,7 +2594,7 @@
|
|
|
2548
2594
|
var tmp;
|
|
2549
2595
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2550
2596
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2551
|
-
var this_0 = this.
|
|
2597
|
+
var this_0 = this.t9j_1;
|
|
2552
2598
|
var tableId = action_0.f8q_1;
|
|
2553
2599
|
var gameCreatorPlayerId = action_0.h8q_1;
|
|
2554
2600
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2593,7 +2639,7 @@
|
|
|
2593
2639
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2594
2640
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2595
2641
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2596
|
-
var tmp0_aid = this_0.
|
|
2642
|
+
var tmp0_aid = this_0.s9j_1.m6d();
|
|
2597
2643
|
// Inline function 'kotlin.collections.map' call
|
|
2598
2644
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2599
2645
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -2618,16 +2664,16 @@
|
|
|
2618
2664
|
} else {
|
|
2619
2665
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2620
2666
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2621
|
-
var this_2 = this.
|
|
2667
|
+
var this_2 = this.t9j_1;
|
|
2622
2668
|
var table = state.g6n();
|
|
2623
2669
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2624
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2670
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.s9j_1.m6d(), table.id, null);
|
|
2625
2671
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2626
2672
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2627
2673
|
} else {
|
|
2628
2674
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2629
2675
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2630
|
-
var this_3 = this.
|
|
2676
|
+
var this_3 = this.t9j_1;
|
|
2631
2677
|
var tableId_0 = action_0.l8q_1.id;
|
|
2632
2678
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2633
2679
|
var players = getPlayers();
|
|
@@ -2662,7 +2708,7 @@
|
|
|
2662
2708
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2663
2709
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2664
2710
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2665
|
-
var tmp0_aid_0 = this_3.
|
|
2711
|
+
var tmp0_aid_0 = this_3.s9j_1.m6d();
|
|
2666
2712
|
// Inline function 'kotlin.collections.map' call
|
|
2667
2713
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2668
2714
|
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -2687,43 +2733,43 @@
|
|
|
2687
2733
|
} else {
|
|
2688
2734
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2689
2735
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2690
|
-
var this_4 = this.
|
|
2736
|
+
var this_4 = this.t9j_1;
|
|
2691
2737
|
var table_0 = state.g6n();
|
|
2692
2738
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2693
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2739
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.s9j_1.m6d(), table_0.id, null);
|
|
2694
2740
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2695
2741
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2696
2742
|
} else {
|
|
2697
2743
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2698
2744
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2699
|
-
var this_5 = this.
|
|
2745
|
+
var this_5 = this.t9j_1;
|
|
2700
2746
|
var table_1 = state.g6n();
|
|
2701
2747
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2702
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2748
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.s9j_1.m6d(), table_1.id, null);
|
|
2703
2749
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2704
2750
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2705
2751
|
} else {
|
|
2706
2752
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2707
2753
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2708
|
-
var this_6 = this.
|
|
2754
|
+
var this_6 = this.t9j_1;
|
|
2709
2755
|
var table_2 = state.g6n();
|
|
2710
2756
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2711
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2757
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.s9j_1.m6d(), table_2.id, null);
|
|
2712
2758
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2713
2759
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2714
2760
|
} else {
|
|
2715
2761
|
if (action_0 instanceof ErrorAction) {
|
|
2716
2762
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2717
|
-
var this_7 = this.
|
|
2763
|
+
var this_7 = this.t9j_1;
|
|
2718
2764
|
var table_3 = state.g6n();
|
|
2719
2765
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2720
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2766
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.s9j_1.m6d(), table_3.id, null);
|
|
2721
2767
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2722
2768
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2723
2769
|
} else {
|
|
2724
2770
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2725
2771
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2726
|
-
var this_8 = this.
|
|
2772
|
+
var this_8 = this.t9j_1;
|
|
2727
2773
|
var table_4 = state.g6n();
|
|
2728
2774
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2729
2775
|
var tableId_1 = table_4.id;
|
|
@@ -2760,7 +2806,7 @@
|
|
|
2760
2806
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2761
2807
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2762
2808
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2763
|
-
var tmp0_aid_1 = this_8.
|
|
2809
|
+
var tmp0_aid_1 = this_8.s9j_1.m6d();
|
|
2764
2810
|
// Inline function 'kotlin.collections.map' call
|
|
2765
2811
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2766
2812
|
var destination_11 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2785,7 +2831,7 @@
|
|
|
2785
2831
|
} else {
|
|
2786
2832
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2787
2833
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2788
|
-
var this_9 = this.
|
|
2834
|
+
var this_9 = this.t9j_1;
|
|
2789
2835
|
var table_5 = state.g6n();
|
|
2790
2836
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2791
2837
|
var tableId_2 = table_5.id;
|
|
@@ -2822,7 +2868,7 @@
|
|
|
2822
2868
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2823
2869
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2824
2870
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2825
|
-
var tmp0_aid_2 = this_9.
|
|
2871
|
+
var tmp0_aid_2 = this_9.s9j_1.m6d();
|
|
2826
2872
|
// Inline function 'kotlin.collections.map' call
|
|
2827
2873
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2828
2874
|
var destination_15 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2847,7 +2893,7 @@
|
|
|
2847
2893
|
} else {
|
|
2848
2894
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2849
2895
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2850
|
-
var this_10 = this.
|
|
2896
|
+
var this_10 = this.t9j_1;
|
|
2851
2897
|
var table_6 = state.g6n();
|
|
2852
2898
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2853
2899
|
var tableId_3 = table_6.id;
|
|
@@ -2884,7 +2930,7 @@
|
|
|
2884
2930
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2885
2931
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2886
2932
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2887
|
-
var tmp0_aid_3 = this_10.
|
|
2933
|
+
var tmp0_aid_3 = this_10.s9j_1.m6d();
|
|
2888
2934
|
// Inline function 'kotlin.collections.map' call
|
|
2889
2935
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2890
2936
|
var destination_19 = ArrayList_init_$Create$(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2897,7 +2943,7 @@
|
|
|
2897
2943
|
}
|
|
2898
2944
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2899
2945
|
var tmp_0;
|
|
2900
|
-
if (this.
|
|
2946
|
+
if (this.t9j_1.r9j_1.supportBackwardActions && getPlayer(state.g6n().players, sendToPlayer_8.k79_1).z6s_1.d6t_1) {
|
|
2901
2947
|
tmp_0 = null;
|
|
2902
2948
|
} else {
|
|
2903
2949
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2915,79 +2961,79 @@
|
|
|
2915
2961
|
} else {
|
|
2916
2962
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2917
2963
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2918
|
-
var this_11 = this.
|
|
2964
|
+
var this_11 = this.t9j_1;
|
|
2919
2965
|
var table_7 = state.g6n();
|
|
2920
|
-
var exceptPlayerId = this.
|
|
2966
|
+
var exceptPlayerId = this.t9j_1.r9j_1.supportBackwardActions ? action_0.f8r_1 : null;
|
|
2921
2967
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2922
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2968
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.s9j_1.m6d(), table_7.id, exceptPlayerId);
|
|
2923
2969
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2924
2970
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2925
2971
|
} else {
|
|
2926
2972
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2927
2973
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2928
|
-
var this_12 = this.
|
|
2974
|
+
var this_12 = this.t9j_1;
|
|
2929
2975
|
var table_8 = state.g6n();
|
|
2930
|
-
var exceptPlayerId_0 = this.
|
|
2976
|
+
var exceptPlayerId_0 = this.t9j_1.r9j_1.supportBackwardActions ? action_0.d8m_1 : null;
|
|
2931
2977
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2932
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2978
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.s9j_1.m6d(), table_8.id, exceptPlayerId_0);
|
|
2933
2979
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2934
2980
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2935
2981
|
} else {
|
|
2936
2982
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2937
2983
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2938
|
-
var this_13 = this.
|
|
2984
|
+
var this_13 = this.t9j_1;
|
|
2939
2985
|
var table_9 = state.g6n();
|
|
2940
2986
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2941
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2987
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.s9j_1.m6d(), table_9.id, null);
|
|
2942
2988
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2943
2989
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2944
2990
|
} else {
|
|
2945
2991
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2946
2992
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2947
|
-
var this_14 = this.
|
|
2993
|
+
var this_14 = this.t9j_1;
|
|
2948
2994
|
var table_10 = state.g6n();
|
|
2949
|
-
var exceptPlayerId_1 = this.
|
|
2995
|
+
var exceptPlayerId_1 = this.t9j_1.r9j_1.supportBackwardActions ? action_0.l8r_1 : null;
|
|
2950
2996
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2951
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2997
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.s9j_1.m6d(), table_10.id, exceptPlayerId_1);
|
|
2952
2998
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2953
2999
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2954
3000
|
} else {
|
|
2955
3001
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2956
3002
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2957
|
-
var this_15 = this.
|
|
3003
|
+
var this_15 = this.t9j_1;
|
|
2958
3004
|
var table_11 = state.g6n();
|
|
2959
|
-
var exceptPlayerId_2 = this.
|
|
3005
|
+
var exceptPlayerId_2 = this.t9j_1.r9j_1.supportBackwardActions ? action_0.i8m_1 : null;
|
|
2960
3006
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2961
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
3007
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.s9j_1.m6d(), table_11.id, exceptPlayerId_2);
|
|
2962
3008
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2963
3009
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2964
3010
|
} else {
|
|
2965
3011
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2966
3012
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2967
|
-
var this_16 = this.
|
|
3013
|
+
var this_16 = this.t9j_1;
|
|
2968
3014
|
var table_12 = state.g6n();
|
|
2969
3015
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2970
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
3016
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.s9j_1.m6d(), table_12.id, null);
|
|
2971
3017
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2972
3018
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2973
3019
|
} else {
|
|
2974
3020
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2975
3021
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2976
|
-
var this_17 = this.
|
|
3022
|
+
var this_17 = this.t9j_1;
|
|
2977
3023
|
var table_13 = state.g6n();
|
|
2978
3024
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2979
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
3025
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.s9j_1.m6d(), table_13.id, null);
|
|
2980
3026
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2981
3027
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2982
3028
|
} else {
|
|
2983
3029
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2984
3030
|
var message = action_0.p8r_1;
|
|
2985
3031
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2986
|
-
var this_18 = this.
|
|
3032
|
+
var this_18 = this.t9j_1;
|
|
2987
3033
|
var table_14 = state.g6n();
|
|
2988
3034
|
var tmp_1;
|
|
2989
3035
|
var tmp_2;
|
|
2990
|
-
if (this.
|
|
3036
|
+
if (this.t9j_1.r9j_1.supportBackwardActions) {
|
|
2991
3037
|
tmp_2 = isInterface(message, UserMessage);
|
|
2992
3038
|
} else {
|
|
2993
3039
|
tmp_2 = false;
|
|
@@ -2999,17 +3045,17 @@
|
|
|
2999
3045
|
}
|
|
3000
3046
|
var exceptPlayerId_3 = tmp_1;
|
|
3001
3047
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3002
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
3048
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.s9j_1.m6d(), table_14.id, exceptPlayerId_3);
|
|
3003
3049
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
3004
3050
|
tmp = listOfNotNull(tmp$ret$105);
|
|
3005
3051
|
} else {
|
|
3006
3052
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
3007
3053
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3008
|
-
var this_19 = this.
|
|
3054
|
+
var this_19 = this.t9j_1;
|
|
3009
3055
|
var table_15 = state.g6n();
|
|
3010
3056
|
var exceptPlayerId_4 = action_0.playerId;
|
|
3011
3057
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3012
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
3058
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.s9j_1.m6d(), table_15.id, exceptPlayerId_4);
|
|
3013
3059
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
3014
3060
|
tmp = listOfNotNull(tmp$ret$107);
|
|
3015
3061
|
} else {
|
|
@@ -3047,8 +3093,8 @@
|
|
|
3047
3093
|
return this.a6h(store, next, action);
|
|
3048
3094
|
};
|
|
3049
3095
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3096
|
+
this.r9j_1 = logicConfig;
|
|
3097
|
+
this.s9j_1 = idsProvider;
|
|
3052
3098
|
}
|
|
3053
3099
|
protoOf(ServerMapMechanicToClientActionMiddleware).h8v = function () {
|
|
3054
3100
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
@@ -3059,8 +3105,8 @@
|
|
|
3059
3105
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
3060
3106
|
}
|
|
3061
3107
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
3062
|
-
this.
|
|
3063
|
-
this.
|
|
3108
|
+
this.c9k_1 = $provider;
|
|
3109
|
+
this.d9k_1 = $action;
|
|
3064
3110
|
CoroutineImpl.call(this, resultContinuation);
|
|
3065
3111
|
}
|
|
3066
3112
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -3081,7 +3127,7 @@
|
|
|
3081
3127
|
case 0:
|
|
3082
3128
|
this.f9_1 = 2;
|
|
3083
3129
|
this.e9_1 = 1;
|
|
3084
|
-
suspendResult = this.
|
|
3130
|
+
suspendResult = this.c9k_1.n9g(this.d9k_1, this);
|
|
3085
3131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3086
3132
|
return suspendResult;
|
|
3087
3133
|
}
|
|
@@ -3104,8 +3150,8 @@
|
|
|
3104
3150
|
while (true);
|
|
3105
3151
|
};
|
|
3106
3152
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3107
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3108
|
-
i.
|
|
3153
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.c9k_1, this.d9k_1, completion);
|
|
3154
|
+
i.e9k_1 = $this$launchDefault;
|
|
3109
3155
|
return i;
|
|
3110
3156
|
};
|
|
3111
3157
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3117,8 +3163,8 @@
|
|
|
3117
3163
|
return l;
|
|
3118
3164
|
}
|
|
3119
3165
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3120
|
-
this.
|
|
3121
|
-
this.
|
|
3166
|
+
this.f9k_1 = $asyncProvider;
|
|
3167
|
+
this.g9k_1 = $provider;
|
|
3122
3168
|
}
|
|
3123
3169
|
protoOf(_no_name_provided__qut3iv_1).j6f = function (action) {
|
|
3124
3170
|
return action instanceof ToClientAction;
|
|
@@ -3126,7 +3172,7 @@
|
|
|
3126
3172
|
protoOf(_no_name_provided__qut3iv_1).a6h = function (store, next, action) {
|
|
3127
3173
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3128
3174
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3129
|
-
this.
|
|
3175
|
+
this.f9k_1.j6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.g9k_1, action_0, null));
|
|
3130
3176
|
next(action_0);
|
|
3131
3177
|
};
|
|
3132
3178
|
protoOf(_no_name_provided__qut3iv_1).i6f = function (store, next, action) {
|
|
@@ -3144,7 +3190,7 @@
|
|
|
3144
3190
|
protoOf(_no_name_provided__qut3iv_2).c92 = function (state, action) {
|
|
3145
3191
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3146
3192
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3147
|
-
return state.g8p(VOID, get_serverState_0(state).
|
|
3193
|
+
return state.g8p(VOID, get_serverState_0(state).h9k(action_0.z9i_1));
|
|
3148
3194
|
};
|
|
3149
3195
|
protoOf(_no_name_provided__qut3iv_2).b6h = function (state, action) {
|
|
3150
3196
|
return this.c92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -3169,7 +3215,7 @@
|
|
|
3169
3215
|
}
|
|
3170
3216
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3171
3217
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3172
|
-
this.
|
|
3218
|
+
this.k9k_1 = logger;
|
|
3173
3219
|
}
|
|
3174
3220
|
protoOf(ServerMechanicLifecycleReducer).o93 = function (state, action) {
|
|
3175
3221
|
var serverState = get_serverStateOrNull(state.f6m_1);
|
|
@@ -3185,8 +3231,8 @@
|
|
|
3185
3231
|
var tmp9_tableOrNull = tmp0_$this.v94(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3186
3232
|
var tmp;
|
|
3187
3233
|
if (serverState == null) {
|
|
3188
|
-
this.
|
|
3189
|
-
tmp = Companion_instance_9.
|
|
3234
|
+
this.k9k_1.w(VOID, 'ServerPayload is not onStart');
|
|
3235
|
+
tmp = Companion_instance_9.j9g();
|
|
3190
3236
|
} else {
|
|
3191
3237
|
tmp = serverState;
|
|
3192
3238
|
}
|
|
@@ -3204,7 +3250,7 @@
|
|
|
3204
3250
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3205
3251
|
}
|
|
3206
3252
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3207
|
-
this.
|
|
3253
|
+
this.l9k_1 = $logger;
|
|
3208
3254
|
}
|
|
3209
3255
|
protoOf(_no_name_provided__qut3iv_3).j6f = function (action) {
|
|
3210
3256
|
return isInterface(action, SpectatorsAction);
|
|
@@ -3217,7 +3263,7 @@
|
|
|
3217
3263
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3218
3264
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3219
3265
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3220
|
-
var this_0 = action_0.
|
|
3266
|
+
var this_0 = action_0.a9j_1;
|
|
3221
3267
|
var destination = ArrayList_init_$Create$_0();
|
|
3222
3268
|
// Inline function 'kotlin.collections.forEach' call
|
|
3223
3269
|
var tmp0_iterator = this_0.j();
|
|
@@ -3239,10 +3285,10 @@
|
|
|
3239
3285
|
var tmp_0;
|
|
3240
3286
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3241
3287
|
if (!sameSpectators.p()) {
|
|
3242
|
-
this.
|
|
3288
|
+
this.l9k_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3243
3289
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3244
3290
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3245
|
-
var this_1 = action_0.
|
|
3291
|
+
var this_1 = action_0.a9j_1;
|
|
3246
3292
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
3247
3293
|
var tmp0_iterator_0 = this_1.j();
|
|
3248
3294
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3278,7 +3324,7 @@
|
|
|
3278
3324
|
}
|
|
3279
3325
|
tmp_0 = destination_0;
|
|
3280
3326
|
} else {
|
|
3281
|
-
tmp_0 = action_0.
|
|
3327
|
+
tmp_0 = action_0.a9j_1;
|
|
3282
3328
|
}
|
|
3283
3329
|
var this_2 = tmp_0;
|
|
3284
3330
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3296,7 +3342,7 @@
|
|
|
3296
3342
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3297
3343
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3298
3344
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3299
|
-
var this_3 = action_0.
|
|
3345
|
+
var this_3 = action_0.b9j_1;
|
|
3300
3346
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
3301
3347
|
// Inline function 'kotlin.collections.forEach' call
|
|
3302
3348
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3317,10 +3363,10 @@
|
|
|
3317
3363
|
var tmp_2;
|
|
3318
3364
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3319
3365
|
if (!sameSpectators_0.p()) {
|
|
3320
|
-
this.
|
|
3366
|
+
this.l9k_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3321
3367
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3322
3368
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3323
|
-
var this_4 = action_0.
|
|
3369
|
+
var this_4 = action_0.b9j_1;
|
|
3324
3370
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
3325
3371
|
var tmp0_iterator_4 = this_4.j();
|
|
3326
3372
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3356,7 +3402,7 @@
|
|
|
3356
3402
|
}
|
|
3357
3403
|
tmp_2 = destination_3;
|
|
3358
3404
|
} else {
|
|
3359
|
-
tmp_2 = action_0.
|
|
3405
|
+
tmp_2 = action_0.b9j_1;
|
|
3360
3406
|
}
|
|
3361
3407
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3362
3408
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3407,28 +3453,28 @@
|
|
|
3407
3453
|
};
|
|
3408
3454
|
function Companion_1() {
|
|
3409
3455
|
}
|
|
3410
|
-
protoOf(Companion_1).
|
|
3456
|
+
protoOf(Companion_1).m9k = function (config) {
|
|
3411
3457
|
return new ServerState(config);
|
|
3412
3458
|
};
|
|
3413
|
-
protoOf(Companion_1).
|
|
3459
|
+
protoOf(Companion_1).j9g = function (config, $super) {
|
|
3414
3460
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3415
|
-
return $super === VOID ? this.
|
|
3461
|
+
return $super === VOID ? this.m9k(config) : $super.m9k.call(this, config);
|
|
3416
3462
|
};
|
|
3417
3463
|
var Companion_instance_9;
|
|
3418
3464
|
function Companion_getInstance_2() {
|
|
3419
3465
|
return Companion_instance_9;
|
|
3420
3466
|
}
|
|
3421
3467
|
function ServerState(config) {
|
|
3422
|
-
this.
|
|
3468
|
+
this.t9f_1 = config;
|
|
3423
3469
|
}
|
|
3424
|
-
protoOf(ServerState).
|
|
3470
|
+
protoOf(ServerState).h9k = function (config) {
|
|
3425
3471
|
return new ServerState(config);
|
|
3426
3472
|
};
|
|
3427
3473
|
protoOf(ServerState).toString = function () {
|
|
3428
|
-
return 'ServerState(config=' + this.
|
|
3474
|
+
return 'ServerState(config=' + this.t9f_1.toString() + ')';
|
|
3429
3475
|
};
|
|
3430
3476
|
protoOf(ServerState).hashCode = function () {
|
|
3431
|
-
return this.
|
|
3477
|
+
return this.t9f_1.hashCode();
|
|
3432
3478
|
};
|
|
3433
3479
|
protoOf(ServerState).equals = function (other) {
|
|
3434
3480
|
if (this === other)
|
|
@@ -3436,7 +3482,7 @@
|
|
|
3436
3482
|
if (!(other instanceof ServerState))
|
|
3437
3483
|
return false;
|
|
3438
3484
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3439
|
-
if (!this.
|
|
3485
|
+
if (!this.t9f_1.equals(tmp0_other_with_cast.t9f_1))
|
|
3440
3486
|
return false;
|
|
3441
3487
|
return true;
|
|
3442
3488
|
};
|
|
@@ -3474,13 +3520,13 @@
|
|
|
3474
3520
|
}
|
|
3475
3521
|
function _get_controllerLogger__nbd727($this) {
|
|
3476
3522
|
// Inline function 'kotlin.getValue' call
|
|
3477
|
-
var this_0 = $this.
|
|
3523
|
+
var this_0 = $this.v9k_1;
|
|
3478
3524
|
controllerLogger$factory();
|
|
3479
3525
|
return this_0.u();
|
|
3480
3526
|
}
|
|
3481
3527
|
function _get_di__ndbzja($this) {
|
|
3482
3528
|
// Inline function 'kotlin.getValue' call
|
|
3483
|
-
var this_0 = $this.
|
|
3529
|
+
var this_0 = $this.w9k_1;
|
|
3484
3530
|
di$factory();
|
|
3485
3531
|
return this_0.u();
|
|
3486
3532
|
}
|
|
@@ -3491,13 +3537,13 @@
|
|
|
3491
3537
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3492
3538
|
return function () {
|
|
3493
3539
|
var tmp;
|
|
3494
|
-
if (this$0.
|
|
3540
|
+
if (this$0.t9k_1 == null) {
|
|
3495
3541
|
tmp = null;
|
|
3496
3542
|
} else {
|
|
3497
3543
|
// Inline function 'kotlin.let' call
|
|
3498
3544
|
// Inline function 'kotlin.contracts.contract' call
|
|
3499
3545
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3500
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3546
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.t9k_1)]));
|
|
3501
3547
|
}
|
|
3502
3548
|
var tmp1_elvis_lhs = tmp;
|
|
3503
3549
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3525,7 +3571,7 @@
|
|
|
3525
3571
|
tmp_0.h5y(tmp$ret$3);
|
|
3526
3572
|
$this$DI.l5u(jsonModule());
|
|
3527
3573
|
$this$DI.l5u(serverHelpersModule());
|
|
3528
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3574
|
+
$this$DI.l5u(randomOrgModule(this$0.u9k_1));
|
|
3529
3575
|
return Unit_instance;
|
|
3530
3576
|
};
|
|
3531
3577
|
}
|
|
@@ -3536,13 +3582,13 @@
|
|
|
3536
3582
|
};
|
|
3537
3583
|
}
|
|
3538
3584
|
function _no_name_provided__qut3iv_4($item) {
|
|
3539
|
-
this.
|
|
3585
|
+
this.c9l_1 = $item;
|
|
3540
3586
|
}
|
|
3541
3587
|
protoOf(_no_name_provided__qut3iv_4).j6f = function (action) {
|
|
3542
3588
|
return isInterface(action, Action);
|
|
3543
3589
|
};
|
|
3544
3590
|
protoOf(_no_name_provided__qut3iv_4).c92 = function (state, action) {
|
|
3545
|
-
return this.
|
|
3591
|
+
return this.c9l_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3546
3592
|
};
|
|
3547
3593
|
protoOf(_no_name_provided__qut3iv_4).b6h = function (state, action) {
|
|
3548
3594
|
return this.c92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -3637,7 +3683,7 @@
|
|
|
3637
3683
|
// Inline function 'kotlin.contracts.contract' call
|
|
3638
3684
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
3639
3685
|
}
|
|
3640
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3686
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.u9k_1));
|
|
3641
3687
|
$this$DI.l5u(coreModule($coreConfig));
|
|
3642
3688
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3643
3689
|
return Unit_instance;
|
|
@@ -3646,76 +3692,76 @@
|
|
|
3646
3692
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3647
3693
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3648
3694
|
production = production === VOID ? true : production;
|
|
3649
|
-
this.
|
|
3650
|
-
this.
|
|
3695
|
+
this.t9k_1 = loggerCallback;
|
|
3696
|
+
this.u9k_1 = randomOrgConfig;
|
|
3651
3697
|
AppEnvironment_getInstance().m6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3652
3698
|
var tmp = this;
|
|
3653
|
-
tmp.
|
|
3699
|
+
tmp.v9k_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3654
3700
|
var tmp_0 = this;
|
|
3655
|
-
tmp_0.
|
|
3701
|
+
tmp_0.w9k_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3656
3702
|
var tmp_1 = this;
|
|
3657
3703
|
// Inline function 'org.kodein.di.instance' call
|
|
3658
3704
|
var this_0 = _get_di__ndbzja(this);
|
|
3659
3705
|
// Inline function 'org.kodein.type.generic' call
|
|
3660
3706
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3661
3707
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3662
|
-
tmp_1.
|
|
3708
|
+
tmp_1.x9k_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
3663
3709
|
var tmp_3 = this;
|
|
3664
3710
|
// Inline function 'org.kodein.di.instance' call
|
|
3665
3711
|
var this_1 = _get_di__ndbzja(this);
|
|
3666
3712
|
// Inline function 'org.kodein.type.generic' call
|
|
3667
3713
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3668
3714
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3669
|
-
tmp_3.
|
|
3715
|
+
tmp_3.y9k_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
3670
3716
|
var tmp_5 = this;
|
|
3671
3717
|
// Inline function 'org.kodein.di.instance' call
|
|
3672
3718
|
var this_2 = _get_di__ndbzja(this);
|
|
3673
3719
|
// Inline function 'org.kodein.type.generic' call
|
|
3674
3720
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3675
3721
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3676
|
-
tmp_5.
|
|
3722
|
+
tmp_5.z9k_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
3677
3723
|
var tmp_7 = this;
|
|
3678
3724
|
// Inline function 'org.kodein.di.instance' call
|
|
3679
3725
|
var this_3 = _get_di__ndbzja(this);
|
|
3680
3726
|
// Inline function 'org.kodein.type.generic' call
|
|
3681
3727
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3682
3728
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3683
|
-
tmp_7.
|
|
3729
|
+
tmp_7.a9l_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
3684
3730
|
var tmp_9 = this;
|
|
3685
3731
|
// Inline function 'org.kodein.di.instance' call
|
|
3686
3732
|
var this_4 = _get_di__ndbzja(this);
|
|
3687
3733
|
// Inline function 'org.kodein.type.generic' call
|
|
3688
3734
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3689
3735
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3690
|
-
tmp_9.
|
|
3736
|
+
tmp_9.b9l_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
3691
3737
|
}
|
|
3692
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3738
|
+
protoOf(GameServerEngineControllerImpl).n9k = function () {
|
|
3693
3739
|
// Inline function 'kotlin.getValue' call
|
|
3694
|
-
var this_0 = this.
|
|
3740
|
+
var this_0 = this.x9k_1;
|
|
3695
3741
|
parser$factory_0();
|
|
3696
3742
|
return this_0.u();
|
|
3697
3743
|
};
|
|
3698
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3744
|
+
protoOf(GameServerEngineControllerImpl).p9k = function () {
|
|
3699
3745
|
// Inline function 'kotlin.getValue' call
|
|
3700
|
-
var this_0 = this.
|
|
3746
|
+
var this_0 = this.y9k_1;
|
|
3701
3747
|
helper$factory_0();
|
|
3702
3748
|
return this_0.u();
|
|
3703
3749
|
};
|
|
3704
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3750
|
+
protoOf(GameServerEngineControllerImpl).q9k = function () {
|
|
3705
3751
|
// Inline function 'kotlin.getValue' call
|
|
3706
|
-
var this_0 = this.
|
|
3752
|
+
var this_0 = this.z9k_1;
|
|
3707
3753
|
resources$factory_0();
|
|
3708
3754
|
return this_0.u();
|
|
3709
3755
|
};
|
|
3710
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3756
|
+
protoOf(GameServerEngineControllerImpl).o9k = function () {
|
|
3711
3757
|
// Inline function 'kotlin.getValue' call
|
|
3712
|
-
var this_0 = this.
|
|
3758
|
+
var this_0 = this.a9l_1;
|
|
3713
3759
|
test$factory_0();
|
|
3714
3760
|
return this_0.u();
|
|
3715
3761
|
};
|
|
3716
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3762
|
+
protoOf(GameServerEngineControllerImpl).r9k = function () {
|
|
3717
3763
|
// Inline function 'kotlin.getValue' call
|
|
3718
|
-
var this_0 = this.
|
|
3764
|
+
var this_0 = this.b9l_1;
|
|
3719
3765
|
randomPoolProvider$factory_0();
|
|
3720
3766
|
return this_0.u();
|
|
3721
3767
|
};
|
|
@@ -3725,7 +3771,7 @@
|
|
|
3725
3771
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3726
3772
|
return this.createGameEngineWithLogic();
|
|
3727
3773
|
};
|
|
3728
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3774
|
+
protoOf(GameServerEngineControllerImpl).s9k = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3729
3775
|
var combinedLogger = Companion_instance_6.qm();
|
|
3730
3776
|
var tmp;
|
|
3731
3777
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3735,8 +3781,8 @@
|
|
|
3735
3781
|
}
|
|
3736
3782
|
var fileLoggerOutput = tmp;
|
|
3737
3783
|
var tmp_0;
|
|
3738
|
-
if (!(this.
|
|
3739
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3784
|
+
if (!(this.t9k_1 == null)) {
|
|
3785
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.t9k_1));
|
|
3740
3786
|
} else {
|
|
3741
3787
|
tmp_0 = null;
|
|
3742
3788
|
}
|
|
@@ -3853,13 +3899,13 @@
|
|
|
3853
3899
|
}
|
|
3854
3900
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3855
3901
|
// Inline function 'kotlin.getValue' call
|
|
3856
|
-
var this_0 = $this.
|
|
3902
|
+
var this_0 = $this.f9l_1;
|
|
3857
3903
|
playerAnswerInteractor$factory_0();
|
|
3858
3904
|
return this_0.u();
|
|
3859
3905
|
}
|
|
3860
3906
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3861
3907
|
return function ($this$singleton) {
|
|
3862
|
-
return this$0.
|
|
3908
|
+
return this$0.d9l_1;
|
|
3863
3909
|
};
|
|
3864
3910
|
}
|
|
3865
3911
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3888,17 +3934,17 @@
|
|
|
3888
3934
|
return emptyMap();
|
|
3889
3935
|
}
|
|
3890
3936
|
function TestHelperImpl(logger) {
|
|
3891
|
-
this.
|
|
3937
|
+
this.d9l_1 = logger;
|
|
3892
3938
|
var tmp = this;
|
|
3893
3939
|
var tmp_0 = Companion_instance_3;
|
|
3894
|
-
tmp.
|
|
3940
|
+
tmp.e9l_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
3895
3941
|
var tmp_1 = this;
|
|
3896
3942
|
// Inline function 'org.kodein.di.instance' call
|
|
3897
|
-
var this_0 = this.
|
|
3943
|
+
var this_0 = this.e9l_1;
|
|
3898
3944
|
// Inline function 'org.kodein.type.generic' call
|
|
3899
3945
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3900
3946
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3901
|
-
tmp_1.
|
|
3947
|
+
tmp_1.f9l_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
3902
3948
|
}
|
|
3903
3949
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3904
3950
|
return _get_playerAnswerInteractor__msggz1(this).h8f(playerId, table, botConfig);
|
|
@@ -4045,19 +4091,19 @@
|
|
|
4045
4091
|
});
|
|
4046
4092
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4047
4093
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4048
|
-
return this.
|
|
4094
|
+
return this.n9k();
|
|
4049
4095
|
});
|
|
4050
4096
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4051
|
-
return this.
|
|
4097
|
+
return this.p9k();
|
|
4052
4098
|
});
|
|
4053
4099
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4054
|
-
return this.
|
|
4100
|
+
return this.q9k();
|
|
4055
4101
|
});
|
|
4056
4102
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4057
|
-
return this.
|
|
4103
|
+
return this.o9k();
|
|
4058
4104
|
});
|
|
4059
4105
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
4060
|
-
return this.
|
|
4106
|
+
return this.r9k();
|
|
4061
4107
|
});
|
|
4062
4108
|
//endregion
|
|
4063
4109
|
//region block: init
|