raspberry_games_server_game_logic 1.8.273 → 1.8.275
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 +1 -1
- package/Logic_Debertz-engine.js +11 -12
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +2 -2
- package/Logic_Debertz-game_server.js +409 -402
- 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
|
@@ -305,15 +305,15 @@
|
|
|
305
305
|
tmp = spectators;
|
|
306
306
|
}
|
|
307
307
|
spectators = tmp;
|
|
308
|
-
return this.
|
|
308
|
+
return this.u9t(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
309
309
|
}
|
|
310
310
|
function roomOnDelete(newRid, $super) {
|
|
311
311
|
newRid = newRid === VOID ? null : newRid;
|
|
312
|
-
return this.
|
|
312
|
+
return this.v9t(newRid);
|
|
313
313
|
}
|
|
314
314
|
function shutdown(reason, roomId, $super) {
|
|
315
315
|
roomId = roomId === VOID ? null : roomId;
|
|
316
|
-
return this.
|
|
316
|
+
return this.w9t(reason, roomId);
|
|
317
317
|
}
|
|
318
318
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
319
319
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
386
386
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
387
387
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
388
|
-
return this.
|
|
388
|
+
return this.ha3(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
389
389
|
}
|
|
390
390
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
391
391
|
initMetadataForClass(_no_name_provided__qut3iv_8, VOID, VOID, VOID, [Reducer]);
|
|
@@ -1239,8 +1239,9 @@
|
|
|
1239
1239
|
l.$arity = 2;
|
|
1240
1240
|
return l;
|
|
1241
1241
|
}
|
|
1242
|
-
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
1243
|
-
this.k9q_1 = $
|
|
1242
|
+
function GameServer$roomOnContinueFromRound$slambda($roomId, $tableLite, resultContinuation) {
|
|
1243
|
+
this.k9q_1 = $roomId;
|
|
1244
|
+
this.l9q_1 = $tableLite;
|
|
1244
1245
|
CoroutineImpl.call(this, resultContinuation);
|
|
1245
1246
|
}
|
|
1246
1247
|
protoOf(GameServer$roomOnContinueFromRound$slambda).g9n = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1260,9 +1261,9 @@
|
|
|
1260
1261
|
var tmp = this.e9_1;
|
|
1261
1262
|
if (tmp === 0) {
|
|
1262
1263
|
this.f9_1 = 1;
|
|
1263
|
-
var tmp_0 = this.
|
|
1264
|
+
var tmp_0 = this.n9q_1.dispatch;
|
|
1264
1265
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
1265
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
1266
|
+
var tmp1_table = Companion_instance.restartRound(this.k9q_1, GameEngineConfig_instance.version, this.l9q_1);
|
|
1266
1267
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1267
1268
|
return Unit_instance;
|
|
1268
1269
|
} else if (tmp === 1) {
|
|
@@ -1275,13 +1276,13 @@
|
|
|
1275
1276
|
while (true);
|
|
1276
1277
|
};
|
|
1277
1278
|
protoOf(GameServer$roomOnContinueFromRound$slambda).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1278
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.k9q_1, completion);
|
|
1279
|
-
i.
|
|
1280
|
-
i.
|
|
1279
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.k9q_1, this.l9q_1, completion);
|
|
1280
|
+
i.m9q_1 = $this$dispatchAsync;
|
|
1281
|
+
i.n9q_1 = store;
|
|
1281
1282
|
return i;
|
|
1282
1283
|
};
|
|
1283
|
-
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
1284
|
-
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
1284
|
+
function GameServer$roomOnContinueFromRound$slambda_0($roomId, $tableLite, resultContinuation) {
|
|
1285
|
+
var i = new GameServer$roomOnContinueFromRound$slambda($roomId, $tableLite, resultContinuation);
|
|
1285
1286
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1286
1287
|
return i.g9n($this$dispatchAsync, store, $completion);
|
|
1287
1288
|
};
|
|
@@ -1308,7 +1309,7 @@
|
|
|
1308
1309
|
var tmp = this.e9_1;
|
|
1309
1310
|
if (tmp === 0) {
|
|
1310
1311
|
this.f9_1 = 1;
|
|
1311
|
-
this.
|
|
1312
|
+
this.x9q_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1312
1313
|
return Unit_instance;
|
|
1313
1314
|
} else if (tmp === 1) {
|
|
1314
1315
|
throw this.h9_1;
|
|
@@ -1321,8 +1322,8 @@
|
|
|
1321
1322
|
};
|
|
1322
1323
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1323
1324
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1324
|
-
i.
|
|
1325
|
-
i.
|
|
1325
|
+
i.w9q_1 = $this$dispatchAsync;
|
|
1326
|
+
i.x9q_1 = store;
|
|
1326
1327
|
return i;
|
|
1327
1328
|
};
|
|
1328
1329
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
@@ -1334,7 +1335,7 @@
|
|
|
1334
1335
|
return l;
|
|
1335
1336
|
}
|
|
1336
1337
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1337
|
-
this.
|
|
1338
|
+
this.g9r_1 = $spectators;
|
|
1338
1339
|
CoroutineImpl.call(this, resultContinuation);
|
|
1339
1340
|
}
|
|
1340
1341
|
protoOf(GameServer$addSpectatorsToRoom$slambda).g9n = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1354,7 +1355,7 @@
|
|
|
1354
1355
|
var tmp = this.e9_1;
|
|
1355
1356
|
if (tmp === 0) {
|
|
1356
1357
|
this.f9_1 = 1;
|
|
1357
|
-
this.
|
|
1358
|
+
this.i9r_1.dispatch(new AddSpectatorsAction(toList(this.g9r_1)));
|
|
1358
1359
|
return Unit_instance;
|
|
1359
1360
|
} else if (tmp === 1) {
|
|
1360
1361
|
throw this.h9_1;
|
|
@@ -1366,9 +1367,9 @@
|
|
|
1366
1367
|
while (true);
|
|
1367
1368
|
};
|
|
1368
1369
|
protoOf(GameServer$addSpectatorsToRoom$slambda).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1369
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1370
|
-
i.
|
|
1371
|
-
i.
|
|
1370
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.g9r_1, completion);
|
|
1371
|
+
i.h9r_1 = $this$dispatchAsync;
|
|
1372
|
+
i.i9r_1 = store;
|
|
1372
1373
|
return i;
|
|
1373
1374
|
};
|
|
1374
1375
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
@@ -1380,7 +1381,7 @@
|
|
|
1380
1381
|
return l;
|
|
1381
1382
|
}
|
|
1382
1383
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1383
|
-
this.
|
|
1384
|
+
this.r9r_1 = $spectators;
|
|
1384
1385
|
CoroutineImpl.call(this, resultContinuation);
|
|
1385
1386
|
}
|
|
1386
1387
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).g9n = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1400,7 +1401,7 @@
|
|
|
1400
1401
|
var tmp = this.e9_1;
|
|
1401
1402
|
if (tmp === 0) {
|
|
1402
1403
|
this.f9_1 = 1;
|
|
1403
|
-
this.
|
|
1404
|
+
this.t9r_1.dispatch(new RemoveSpectatorsAction(toList(this.r9r_1)));
|
|
1404
1405
|
return Unit_instance;
|
|
1405
1406
|
} else if (tmp === 1) {
|
|
1406
1407
|
throw this.h9_1;
|
|
@@ -1412,9 +1413,9 @@
|
|
|
1412
1413
|
while (true);
|
|
1413
1414
|
};
|
|
1414
1415
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1415
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1416
|
-
i.
|
|
1417
|
-
i.
|
|
1416
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.r9r_1, completion);
|
|
1417
|
+
i.s9r_1 = $this$dispatchAsync;
|
|
1418
|
+
i.t9r_1 = store;
|
|
1418
1419
|
return i;
|
|
1419
1420
|
};
|
|
1420
1421
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
@@ -1426,8 +1427,8 @@
|
|
|
1426
1427
|
return l;
|
|
1427
1428
|
}
|
|
1428
1429
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1430
|
+
this.c9s_1 = $playerId;
|
|
1431
|
+
this.d9s_1 = this$0;
|
|
1431
1432
|
CoroutineImpl.call(this, resultContinuation);
|
|
1432
1433
|
}
|
|
1433
1434
|
protoOf(GameServer$roomRefreshPlayerState$slambda).g9n = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1447,14 +1448,14 @@
|
|
|
1447
1448
|
var tmp = this.e9_1;
|
|
1448
1449
|
if (tmp === 0) {
|
|
1449
1450
|
this.f9_1 = 1;
|
|
1450
|
-
var table = this.
|
|
1451
|
-
var player = getPlayer(table.players, this.
|
|
1451
|
+
var table = this.f9s_1.state.m6r();
|
|
1452
|
+
var player = getPlayer(table.players, this.c9s_1);
|
|
1452
1453
|
if (player.f6x_1.h6d().y6b_1.isLive) {
|
|
1453
|
-
this.
|
|
1454
|
+
this.f9s_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.d9s_1).b8z(player, table));
|
|
1454
1455
|
} else {
|
|
1455
|
-
var tmp_0 = this.
|
|
1456
|
+
var tmp_0 = this.f9s_1.dispatch;
|
|
1456
1457
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1457
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1458
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.c9s_1));
|
|
1458
1459
|
}
|
|
1459
1460
|
return Unit_instance;
|
|
1460
1461
|
} else if (tmp === 1) {
|
|
@@ -1467,9 +1468,9 @@
|
|
|
1467
1468
|
while (true);
|
|
1468
1469
|
};
|
|
1469
1470
|
protoOf(GameServer$roomRefreshPlayerState$slambda).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1470
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1471
|
-
i.
|
|
1472
|
-
i.
|
|
1471
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.c9s_1, this.d9s_1, completion);
|
|
1472
|
+
i.e9s_1 = $this$dispatchAsync;
|
|
1473
|
+
i.f9s_1 = store;
|
|
1473
1474
|
return i;
|
|
1474
1475
|
};
|
|
1475
1476
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
@@ -1481,8 +1482,8 @@
|
|
|
1481
1482
|
return l;
|
|
1482
1483
|
}
|
|
1483
1484
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1484
|
-
this.
|
|
1485
|
-
this.
|
|
1485
|
+
this.o9s_1 = this$0;
|
|
1486
|
+
this.p9s_1 = $newRid;
|
|
1486
1487
|
CoroutineImpl.call(this, resultContinuation);
|
|
1487
1488
|
}
|
|
1488
1489
|
protoOf(GameServer$roomOnDelete$slambda).g9n = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1502,10 +1503,10 @@
|
|
|
1502
1503
|
var tmp = this.e9_1;
|
|
1503
1504
|
if (tmp === 0) {
|
|
1504
1505
|
this.f9_1 = 1;
|
|
1505
|
-
var it = this.
|
|
1506
|
+
var it = this.o9s_1.e6b().n6q_1;
|
|
1506
1507
|
var tmp_0;
|
|
1507
1508
|
if (it == null) {
|
|
1508
|
-
_get_logger__rkp4sl(this.
|
|
1509
|
+
_get_logger__rkp4sl(this.o9s_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1509
1510
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1510
1511
|
} else {
|
|
1511
1512
|
tmp_0 = it;
|
|
@@ -1514,7 +1515,7 @@
|
|
|
1514
1515
|
var gameTransition = terminationState.h92_1;
|
|
1515
1516
|
var tmp_1;
|
|
1516
1517
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
1517
|
-
var value = this.
|
|
1518
|
+
var value = this.p9s_1;
|
|
1518
1519
|
var tmp$ret$0 = Unit_instance;
|
|
1519
1520
|
l$ret$1: do {
|
|
1520
1521
|
if (value == null) {
|
|
@@ -1531,9 +1532,9 @@
|
|
|
1531
1532
|
tmp_1 = gameTransition;
|
|
1532
1533
|
}
|
|
1533
1534
|
var transition = tmp_1;
|
|
1534
|
-
var tmp_2 = this.
|
|
1535
|
+
var tmp_2 = this.r9s_1.dispatch;
|
|
1535
1536
|
var tmp0_reason = terminationState.g92_1;
|
|
1536
|
-
var tmp1_isGameFinished = this.
|
|
1537
|
+
var tmp1_isGameFinished = this.o9s_1.e6b().m6r().isGameFinished;
|
|
1537
1538
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
1538
1539
|
return Unit_instance;
|
|
1539
1540
|
} else if (tmp === 1) {
|
|
@@ -1546,9 +1547,9 @@
|
|
|
1546
1547
|
while (true);
|
|
1547
1548
|
};
|
|
1548
1549
|
protoOf(GameServer$roomOnDelete$slambda).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1549
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1550
|
-
i.
|
|
1551
|
-
i.
|
|
1550
|
+
var i = new GameServer$roomOnDelete$slambda(this.o9s_1, this.p9s_1, completion);
|
|
1551
|
+
i.q9s_1 = $this$dispatchAsync;
|
|
1552
|
+
i.r9s_1 = store;
|
|
1552
1553
|
return i;
|
|
1553
1554
|
};
|
|
1554
1555
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
@@ -1560,7 +1561,7 @@
|
|
|
1560
1561
|
return l;
|
|
1561
1562
|
}
|
|
1562
1563
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1563
|
-
this.
|
|
1564
|
+
this.a9t_1 = $enabled;
|
|
1564
1565
|
CoroutineImpl.call(this, resultContinuation);
|
|
1565
1566
|
}
|
|
1566
1567
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).g9n = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1580,7 +1581,7 @@
|
|
|
1580
1581
|
var tmp = this.e9_1;
|
|
1581
1582
|
if (tmp === 0) {
|
|
1582
1583
|
this.f9_1 = 1;
|
|
1583
|
-
this.
|
|
1584
|
+
this.c9t_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.c9t_1.state).d9t_1.f9t(this.a9t_1)));
|
|
1584
1585
|
return Unit_instance;
|
|
1585
1586
|
} else if (tmp === 1) {
|
|
1586
1587
|
throw this.h9_1;
|
|
@@ -1592,9 +1593,9 @@
|
|
|
1592
1593
|
while (true);
|
|
1593
1594
|
};
|
|
1594
1595
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1595
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1596
|
-
i.
|
|
1597
|
-
i.
|
|
1596
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.a9t_1, completion);
|
|
1597
|
+
i.b9t_1 = $this$dispatchAsync;
|
|
1598
|
+
i.c9t_1 = store;
|
|
1598
1599
|
return i;
|
|
1599
1600
|
};
|
|
1600
1601
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
@@ -1606,9 +1607,9 @@
|
|
|
1606
1607
|
return l;
|
|
1607
1608
|
}
|
|
1608
1609
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1610
|
+
this.o9t_1 = $reason;
|
|
1611
|
+
this.p9t_1 = this$0;
|
|
1612
|
+
this.q9t_1 = $roomId;
|
|
1612
1613
|
CoroutineImpl.call(this, resultContinuation);
|
|
1613
1614
|
}
|
|
1614
1615
|
protoOf(GameServer$shutdown$slambda).g9n = function ($this$dispatchAsync, store, $completion) {
|
|
@@ -1628,11 +1629,11 @@
|
|
|
1628
1629
|
var tmp = this.e9_1;
|
|
1629
1630
|
if (tmp === 0) {
|
|
1630
1631
|
this.f9_1 = 1;
|
|
1631
|
-
var state = this.
|
|
1632
|
+
var state = this.s9t_1.store.state;
|
|
1632
1633
|
if (state.n6r()) {
|
|
1633
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1634
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.o9t_1, get_serverShutdownReasonMapping());
|
|
1634
1635
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1635
|
-
var tmp_0 = this.
|
|
1636
|
+
var tmp_0 = this.s9t_1.dispatch;
|
|
1636
1637
|
var tmp_1 = Companion_instance_0;
|
|
1637
1638
|
var tmp_2;
|
|
1638
1639
|
switch (shutdownReason.n2_1) {
|
|
@@ -1646,10 +1647,10 @@
|
|
|
1646
1647
|
noWhenBranchMatchedException();
|
|
1647
1648
|
break;
|
|
1648
1649
|
}
|
|
1649
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1650
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.p9t_1.table.isGameFinished, this.p9t_1.table));
|
|
1650
1651
|
} else {
|
|
1651
|
-
_get_logger__rkp4sl(this.
|
|
1652
|
-
this.
|
|
1652
|
+
_get_logger__rkp4sl(this.p9t_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.q9t_1);
|
|
1653
|
+
this.s9t_1.dispatch(new ClearAction());
|
|
1653
1654
|
}
|
|
1654
1655
|
return Unit_instance;
|
|
1655
1656
|
} else if (tmp === 1) {
|
|
@@ -1662,9 +1663,9 @@
|
|
|
1662
1663
|
while (true);
|
|
1663
1664
|
};
|
|
1664
1665
|
protoOf(GameServer$shutdown$slambda).h9n = function ($this$dispatchAsync, store, completion) {
|
|
1665
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1666
|
-
i.
|
|
1667
|
-
i.
|
|
1666
|
+
var i = new GameServer$shutdown$slambda(this.o9t_1, this.p9t_1, this.q9t_1, completion);
|
|
1667
|
+
i.r9t_1 = $this$dispatchAsync;
|
|
1668
|
+
i.s9t_1 = store;
|
|
1668
1669
|
return i;
|
|
1669
1670
|
};
|
|
1670
1671
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
@@ -1676,7 +1677,7 @@
|
|
|
1676
1677
|
return l;
|
|
1677
1678
|
}
|
|
1678
1679
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1679
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_10.
|
|
1680
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_10.t9t()) : preloadedState;
|
|
1680
1681
|
var tmp;
|
|
1681
1682
|
if (externalReducers === VOID) {
|
|
1682
1683
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1774,15 +1775,15 @@
|
|
|
1774
1775
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1775
1776
|
this.h9l_1.l6r(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1776
1777
|
};
|
|
1777
|
-
protoOf(GameServer).
|
|
1778
|
+
protoOf(GameServer).u9t = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1778
1779
|
this.h9l_1.l6r(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1779
1780
|
};
|
|
1780
|
-
protoOf(GameServer).roomOnContinueFromState = function (state) {
|
|
1781
|
+
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
1781
1782
|
this.h9l_1.l6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
1782
1783
|
this.h9l_1.l6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
1783
1784
|
};
|
|
1784
1785
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1785
|
-
this.h9l_1.l6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1786
|
+
this.h9l_1.l6r(GameServer$roomOnContinueFromRound$slambda_0(roomId, tableLite, null));
|
|
1786
1787
|
this.h9l_1.l6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
1787
1788
|
};
|
|
1788
1789
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
@@ -1795,7 +1796,7 @@
|
|
|
1795
1796
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1796
1797
|
this.h9l_1.l6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1797
1798
|
};
|
|
1798
|
-
protoOf(GameServer).
|
|
1799
|
+
protoOf(GameServer).v9t = function (newRid) {
|
|
1799
1800
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
1800
1801
|
this.h9l_1.l6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1801
1802
|
};
|
|
@@ -1803,7 +1804,7 @@
|
|
|
1803
1804
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
1804
1805
|
this.h9l_1.l6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1805
1806
|
};
|
|
1806
|
-
protoOf(GameServer).
|
|
1807
|
+
protoOf(GameServer).w9t = function (reason, roomId) {
|
|
1807
1808
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
1808
1809
|
this.h9l_1.l6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1809
1810
|
};
|
|
@@ -1899,16 +1900,16 @@
|
|
|
1899
1900
|
return ServerShutdownReason_ERROR_instance;
|
|
1900
1901
|
}
|
|
1901
1902
|
function ServerConfig(canStartNewGame) {
|
|
1902
|
-
this.
|
|
1903
|
+
this.e9t_1 = canStartNewGame;
|
|
1903
1904
|
}
|
|
1904
|
-
protoOf(ServerConfig).
|
|
1905
|
+
protoOf(ServerConfig).f9t = function (canStartNewGame) {
|
|
1905
1906
|
return new ServerConfig(canStartNewGame);
|
|
1906
1907
|
};
|
|
1907
1908
|
protoOf(ServerConfig).toString = function () {
|
|
1908
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1909
|
+
return 'ServerConfig(canStartNewGame=' + this.e9t_1 + ')';
|
|
1909
1910
|
};
|
|
1910
1911
|
protoOf(ServerConfig).hashCode = function () {
|
|
1911
|
-
return getBooleanHashCode(this.
|
|
1912
|
+
return getBooleanHashCode(this.e9t_1);
|
|
1912
1913
|
};
|
|
1913
1914
|
protoOf(ServerConfig).equals = function (other) {
|
|
1914
1915
|
if (this === other)
|
|
@@ -1916,7 +1917,7 @@
|
|
|
1916
1917
|
if (!(other instanceof ServerConfig))
|
|
1917
1918
|
return false;
|
|
1918
1919
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1919
|
-
if (!(this.
|
|
1920
|
+
if (!(this.e9t_1 === tmp0_other_with_cast.e9t_1))
|
|
1920
1921
|
return false;
|
|
1921
1922
|
return true;
|
|
1922
1923
|
};
|
|
@@ -1931,12 +1932,12 @@
|
|
|
1931
1932
|
protoOf(TableStateUpdate).pe = function () {
|
|
1932
1933
|
return this.table;
|
|
1933
1934
|
};
|
|
1934
|
-
protoOf(TableStateUpdate).
|
|
1935
|
+
protoOf(TableStateUpdate).x9t = function (table) {
|
|
1935
1936
|
return new TableStateUpdate(table);
|
|
1936
1937
|
};
|
|
1937
1938
|
protoOf(TableStateUpdate).copy = function (table, $super) {
|
|
1938
1939
|
table = table === VOID ? this.table : table;
|
|
1939
|
-
return this.
|
|
1940
|
+
return this.x9t(table);
|
|
1940
1941
|
};
|
|
1941
1942
|
protoOf(TableStateUpdate).toString = function () {
|
|
1942
1943
|
return 'TableStateUpdate(table=' + this.table.toString() + ')';
|
|
@@ -1963,12 +1964,12 @@
|
|
|
1963
1964
|
protoOf(ActionsStateUpdate).pe = function () {
|
|
1964
1965
|
return this.actions;
|
|
1965
1966
|
};
|
|
1966
|
-
protoOf(ActionsStateUpdate).
|
|
1967
|
+
protoOf(ActionsStateUpdate).y9t = function (actions) {
|
|
1967
1968
|
return new ActionsStateUpdate(actions);
|
|
1968
1969
|
};
|
|
1969
1970
|
protoOf(ActionsStateUpdate).copy = function (actions, $super) {
|
|
1970
1971
|
actions = actions === VOID ? this.actions : actions;
|
|
1971
|
-
return this.
|
|
1972
|
+
return this.y9t(actions);
|
|
1972
1973
|
};
|
|
1973
1974
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
1974
1975
|
return 'ActionsStateUpdate(actions=' + toString(this.actions) + ')';
|
|
@@ -2238,7 +2239,7 @@
|
|
|
2238
2239
|
function MechanicEventsObserver() {
|
|
2239
2240
|
}
|
|
2240
2241
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2241
|
-
this.
|
|
2242
|
+
this.i9u_1 = $$this$unsafeFlow;
|
|
2242
2243
|
CoroutineImpl.call(this, resultContinuation);
|
|
2243
2244
|
}
|
|
2244
2245
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2259,12 +2260,12 @@
|
|
|
2259
2260
|
case 0:
|
|
2260
2261
|
this.f9_1 = 2;
|
|
2261
2262
|
var tmp_0 = this;
|
|
2262
|
-
tmp_0.
|
|
2263
|
+
tmp_0.k9u_1 = this.i9u_1;
|
|
2263
2264
|
var tmp_1 = this;
|
|
2264
|
-
tmp_1.
|
|
2265
|
+
tmp_1.l9u_1 = this.j9u_1;
|
|
2265
2266
|
this.e9_1 = 1;
|
|
2266
|
-
var it = this.
|
|
2267
|
-
suspendResult = this.
|
|
2267
|
+
var it = this.l9u_1;
|
|
2268
|
+
suspendResult = this.k9u_1.p18(new ActionsStateUpdate(it), this);
|
|
2268
2269
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2269
2270
|
return suspendResult;
|
|
2270
2271
|
}
|
|
@@ -2287,8 +2288,8 @@
|
|
|
2287
2288
|
while (true);
|
|
2288
2289
|
};
|
|
2289
2290
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda).j1i = function (value, completion) {
|
|
2290
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda(this.
|
|
2291
|
-
i.
|
|
2291
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda(this.i9u_1, completion);
|
|
2292
|
+
i.j9u_1 = value;
|
|
2292
2293
|
return i;
|
|
2293
2294
|
};
|
|
2294
2295
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2301,8 +2302,8 @@
|
|
|
2301
2302
|
}
|
|
2302
2303
|
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
2303
2304
|
CoroutineImpl.call(this, resultContinuation);
|
|
2304
|
-
this.
|
|
2305
|
-
this.
|
|
2305
|
+
this.u9u_1 = _this__u8e3s4;
|
|
2306
|
+
this.v9u_1 = collector;
|
|
2306
2307
|
}
|
|
2307
2308
|
protoOf($collectCOROUTINE$0).m9 = function () {
|
|
2308
2309
|
var suspendResult = this.g9_1;
|
|
@@ -2313,10 +2314,10 @@
|
|
|
2313
2314
|
case 0:
|
|
2314
2315
|
this.f9_1 = 2;
|
|
2315
2316
|
var tmp_0 = this;
|
|
2316
|
-
tmp_0.
|
|
2317
|
+
tmp_0.w9u_1 = this.v9u_1;
|
|
2317
2318
|
this.e9_1 = 1;
|
|
2318
|
-
var tmp_1 = MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0(this.
|
|
2319
|
-
suspendResult = this.
|
|
2319
|
+
var tmp_1 = MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0(this.w9u_1, null);
|
|
2320
|
+
suspendResult = this.u9u_1.x9u_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this);
|
|
2320
2321
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2321
2322
|
return suspendResult;
|
|
2322
2323
|
}
|
|
@@ -2339,7 +2340,7 @@
|
|
|
2339
2340
|
while (true);
|
|
2340
2341
|
};
|
|
2341
2342
|
function _no_name_provided__qut3iv($this) {
|
|
2342
|
-
this.
|
|
2343
|
+
this.x9u_1 = $this;
|
|
2343
2344
|
}
|
|
2344
2345
|
protoOf(_no_name_provided__qut3iv).q18 = function (collector, $completion) {
|
|
2345
2346
|
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
@@ -2351,18 +2352,18 @@
|
|
|
2351
2352
|
return this.q18(collector, $completion);
|
|
2352
2353
|
};
|
|
2353
2354
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda($table, this$0, resultContinuation) {
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2355
|
+
this.g9v_1 = $table;
|
|
2356
|
+
this.h9v_1 = this$0;
|
|
2356
2357
|
CoroutineImpl.call(this, resultContinuation);
|
|
2357
2358
|
}
|
|
2358
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).
|
|
2359
|
-
var tmp = this.
|
|
2359
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).j9v = function ($this$flow, $completion) {
|
|
2360
|
+
var tmp = this.k9v($this$flow, $completion);
|
|
2360
2361
|
tmp.g9_1 = Unit_instance;
|
|
2361
2362
|
tmp.h9_1 = null;
|
|
2362
2363
|
return tmp.m9();
|
|
2363
2364
|
};
|
|
2364
2365
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).w9 = function (p1, $completion) {
|
|
2365
|
-
return this.
|
|
2366
|
+
return this.j9v((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2366
2367
|
};
|
|
2367
2368
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).m9 = function () {
|
|
2368
2369
|
var suspendResult = this.g9_1;
|
|
@@ -2373,7 +2374,7 @@
|
|
|
2373
2374
|
case 0:
|
|
2374
2375
|
this.f9_1 = 3;
|
|
2375
2376
|
this.e9_1 = 1;
|
|
2376
|
-
suspendResult = this.
|
|
2377
|
+
suspendResult = this.i9v_1.p18(new TableStateUpdate(this.g9v_1), this);
|
|
2377
2378
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2378
2379
|
return suspendResult;
|
|
2379
2380
|
}
|
|
@@ -2381,8 +2382,8 @@
|
|
|
2381
2382
|
continue $sm;
|
|
2382
2383
|
case 1:
|
|
2383
2384
|
this.e9_1 = 2;
|
|
2384
|
-
var this_0 = windowedByInterval(this.
|
|
2385
|
-
suspendResult = emitAll(this.
|
|
2385
|
+
var this_0 = windowedByInterval(this.h9v_1.m9v_1, new Long(1000, 0));
|
|
2386
|
+
suspendResult = emitAll(this.i9v_1, new _no_name_provided__qut3iv(this_0), this);
|
|
2386
2387
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2387
2388
|
return suspendResult;
|
|
2388
2389
|
}
|
|
@@ -2404,21 +2405,21 @@
|
|
|
2404
2405
|
}
|
|
2405
2406
|
while (true);
|
|
2406
2407
|
};
|
|
2407
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).
|
|
2408
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda(this.
|
|
2409
|
-
i.
|
|
2408
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).k9v = function ($this$flow, completion) {
|
|
2409
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda(this.g9v_1, this.h9v_1, completion);
|
|
2410
|
+
i.i9v_1 = $this$flow;
|
|
2410
2411
|
return i;
|
|
2411
2412
|
};
|
|
2412
2413
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
2413
2414
|
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda($table, this$0, resultContinuation);
|
|
2414
2415
|
var l = function ($this$flow, $completion) {
|
|
2415
|
-
return i.
|
|
2416
|
+
return i.j9v($this$flow, $completion);
|
|
2416
2417
|
};
|
|
2417
2418
|
l.$arity = 1;
|
|
2418
2419
|
return l;
|
|
2419
2420
|
}
|
|
2420
2421
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2421
|
-
this.
|
|
2422
|
+
this.v9v_1 = $$this$unsafeFlow;
|
|
2422
2423
|
CoroutineImpl.call(this, resultContinuation);
|
|
2423
2424
|
}
|
|
2424
2425
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2439,12 +2440,12 @@
|
|
|
2439
2440
|
case 0:
|
|
2440
2441
|
this.f9_1 = 2;
|
|
2441
2442
|
var tmp_0 = this;
|
|
2442
|
-
tmp_0.
|
|
2443
|
+
tmp_0.x9v_1 = this.v9v_1;
|
|
2443
2444
|
var tmp_1 = this;
|
|
2444
|
-
tmp_1.
|
|
2445
|
+
tmp_1.y9v_1 = this.w9v_1;
|
|
2445
2446
|
this.e9_1 = 1;
|
|
2446
|
-
var state = this.
|
|
2447
|
-
suspendResult = this.
|
|
2447
|
+
var state = this.y9v_1;
|
|
2448
|
+
suspendResult = this.x9v_1.p18(state.m6r().gameInfo.roundNumberTotal, this);
|
|
2448
2449
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2449
2450
|
return suspendResult;
|
|
2450
2451
|
}
|
|
@@ -2467,8 +2468,8 @@
|
|
|
2467
2468
|
while (true);
|
|
2468
2469
|
};
|
|
2469
2470
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).j1i = function (value, completion) {
|
|
2470
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
2471
|
-
i.
|
|
2471
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.v9v_1, completion);
|
|
2472
|
+
i.w9v_1 = value;
|
|
2472
2473
|
return i;
|
|
2473
2474
|
};
|
|
2474
2475
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2481,8 +2482,8 @@
|
|
|
2481
2482
|
}
|
|
2482
2483
|
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
2483
2484
|
CoroutineImpl.call(this, resultContinuation);
|
|
2484
|
-
this.
|
|
2485
|
-
this.
|
|
2485
|
+
this.h9w_1 = _this__u8e3s4;
|
|
2486
|
+
this.i9w_1 = collector;
|
|
2486
2487
|
}
|
|
2487
2488
|
protoOf($collectCOROUTINE$1).m9 = function () {
|
|
2488
2489
|
var suspendResult = this.g9_1;
|
|
@@ -2493,10 +2494,10 @@
|
|
|
2493
2494
|
case 0:
|
|
2494
2495
|
this.f9_1 = 2;
|
|
2495
2496
|
var tmp_0 = this;
|
|
2496
|
-
tmp_0.
|
|
2497
|
+
tmp_0.j9w_1 = this.i9w_1;
|
|
2497
2498
|
this.e9_1 = 1;
|
|
2498
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.
|
|
2499
|
-
suspendResult = this.
|
|
2499
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.j9w_1, null);
|
|
2500
|
+
suspendResult = this.h9w_1.k9w_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2500
2501
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2501
2502
|
return suspendResult;
|
|
2502
2503
|
}
|
|
@@ -2519,7 +2520,7 @@
|
|
|
2519
2520
|
while (true);
|
|
2520
2521
|
};
|
|
2521
2522
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2522
|
-
this.
|
|
2523
|
+
this.t9w_1 = $$this$unsafeFlow;
|
|
2523
2524
|
CoroutineImpl.call(this, resultContinuation);
|
|
2524
2525
|
}
|
|
2525
2526
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2543,33 +2544,33 @@
|
|
|
2543
2544
|
continue $sm;
|
|
2544
2545
|
case 1:
|
|
2545
2546
|
var tmp_0 = this;
|
|
2546
|
-
tmp_0.
|
|
2547
|
+
tmp_0.w9w_1 = this.t9w_1;
|
|
2547
2548
|
var tmp_1 = this;
|
|
2548
|
-
tmp_1.
|
|
2549
|
+
tmp_1.x9w_1 = this.u9w_1;
|
|
2549
2550
|
var tmp_2 = this;
|
|
2550
|
-
tmp_2.
|
|
2551
|
-
if (this.
|
|
2552
|
-
this.
|
|
2551
|
+
tmp_2.y9w_1 = this.x9w_1.k6q_1;
|
|
2552
|
+
if (this.y9w_1 == null) {
|
|
2553
|
+
this.v9w_1 = Unit_instance;
|
|
2553
2554
|
this.e9_1 = 4;
|
|
2554
2555
|
var tmp_3 = this;
|
|
2555
2556
|
continue $sm;
|
|
2556
2557
|
} else {
|
|
2557
|
-
this.
|
|
2558
|
+
this.z9w_1 = this.y9w_1;
|
|
2558
2559
|
this.e9_1 = 2;
|
|
2559
2560
|
continue $sm;
|
|
2560
2561
|
}
|
|
2561
2562
|
|
|
2562
2563
|
case 2:
|
|
2563
|
-
this.
|
|
2564
|
+
this.a9x_1 = this.z9w_1;
|
|
2564
2565
|
this.e9_1 = 3;
|
|
2565
|
-
suspendResult = this.
|
|
2566
|
+
suspendResult = this.w9w_1.p18(this.a9x_1, this);
|
|
2566
2567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2567
2568
|
return suspendResult;
|
|
2568
2569
|
}
|
|
2569
2570
|
|
|
2570
2571
|
continue $sm;
|
|
2571
2572
|
case 3:
|
|
2572
|
-
this.
|
|
2573
|
+
this.v9w_1 = suspendResult;
|
|
2573
2574
|
if (false) {
|
|
2574
2575
|
this.e9_1 = 1;
|
|
2575
2576
|
continue $sm;
|
|
@@ -2594,8 +2595,8 @@
|
|
|
2594
2595
|
while (true);
|
|
2595
2596
|
};
|
|
2596
2597
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).j1i = function (value, completion) {
|
|
2597
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.
|
|
2598
|
-
i.
|
|
2598
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.t9w_1, completion);
|
|
2599
|
+
i.u9w_1 = value;
|
|
2599
2600
|
return i;
|
|
2600
2601
|
};
|
|
2601
2602
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2608,8 +2609,8 @@
|
|
|
2608
2609
|
}
|
|
2609
2610
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
2610
2611
|
CoroutineImpl.call(this, resultContinuation);
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2612
|
+
this.j9x_1 = _this__u8e3s4;
|
|
2613
|
+
this.k9x_1 = collector;
|
|
2613
2614
|
}
|
|
2614
2615
|
protoOf($collectCOROUTINE$2).m9 = function () {
|
|
2615
2616
|
var suspendResult = this.g9_1;
|
|
@@ -2620,10 +2621,10 @@
|
|
|
2620
2621
|
case 0:
|
|
2621
2622
|
this.f9_1 = 2;
|
|
2622
2623
|
var tmp_0 = this;
|
|
2623
|
-
tmp_0.
|
|
2624
|
+
tmp_0.l9x_1 = this.k9x_1;
|
|
2624
2625
|
this.e9_1 = 1;
|
|
2625
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.
|
|
2626
|
-
suspendResult = this.
|
|
2626
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.l9x_1, null);
|
|
2627
|
+
suspendResult = this.j9x_1.m9x_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2627
2628
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2628
2629
|
return suspendResult;
|
|
2629
2630
|
}
|
|
@@ -2646,7 +2647,7 @@
|
|
|
2646
2647
|
while (true);
|
|
2647
2648
|
};
|
|
2648
2649
|
function _no_name_provided__qut3iv_0($this) {
|
|
2649
|
-
this.
|
|
2650
|
+
this.m9x_1 = $this;
|
|
2650
2651
|
}
|
|
2651
2652
|
protoOf(_no_name_provided__qut3iv_0).q18 = function (collector, $completion) {
|
|
2652
2653
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
@@ -2661,27 +2662,27 @@
|
|
|
2661
2662
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
2662
2663
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
2663
2664
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2664
|
-
var this_0 = $this.
|
|
2665
|
+
var this_0 = $this.l9v_1.j6q();
|
|
2665
2666
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2666
2667
|
var tmp$ret$2 = new _no_name_provided__qut3iv_1(this_0);
|
|
2667
2668
|
var this_1 = distinctUntilChanged(tmp$ret$2);
|
|
2668
2669
|
return transformLatest(this_1, MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0($this, null));
|
|
2669
2670
|
}
|
|
2670
2671
|
function Companion_0() {
|
|
2671
|
-
this.
|
|
2672
|
+
this.n9x_1 = 1000;
|
|
2672
2673
|
}
|
|
2673
2674
|
var Companion_instance_8;
|
|
2674
2675
|
function Companion_getInstance_1() {
|
|
2675
2676
|
return Companion_instance_8;
|
|
2676
2677
|
}
|
|
2677
2678
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
2678
|
-
this.
|
|
2679
|
+
this.o9x_1 = function_0;
|
|
2679
2680
|
}
|
|
2680
2681
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).p18 = function (value, $completion) {
|
|
2681
|
-
return this.
|
|
2682
|
+
return this.o9x_1(value, $completion);
|
|
2682
2683
|
};
|
|
2683
2684
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).o3 = function () {
|
|
2684
|
-
return this.
|
|
2685
|
+
return this.o9x_1;
|
|
2685
2686
|
};
|
|
2686
2687
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
2687
2688
|
var tmp;
|
|
@@ -2702,13 +2703,13 @@
|
|
|
2702
2703
|
return hashCode(this.o3());
|
|
2703
2704
|
};
|
|
2704
2705
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
2705
|
-
this.
|
|
2706
|
+
this.p9x_1 = function_0;
|
|
2706
2707
|
}
|
|
2707
2708
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).p18 = function (value, $completion) {
|
|
2708
|
-
return this.
|
|
2709
|
+
return this.p9x_1(value, $completion);
|
|
2709
2710
|
};
|
|
2710
2711
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).o3 = function () {
|
|
2711
|
-
return this.
|
|
2712
|
+
return this.p9x_1;
|
|
2712
2713
|
};
|
|
2713
2714
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
2714
2715
|
var tmp;
|
|
@@ -2729,18 +2730,18 @@
|
|
|
2729
2730
|
return hashCode(this.o3());
|
|
2730
2731
|
};
|
|
2731
2732
|
function MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation) {
|
|
2732
|
-
this.
|
|
2733
|
+
this.y9x_1 = this$0;
|
|
2733
2734
|
CoroutineImpl.call(this, resultContinuation);
|
|
2734
2735
|
}
|
|
2735
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2736
|
-
var tmp = this.
|
|
2736
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).b9y = function ($this$transformLatest, it, $completion) {
|
|
2737
|
+
var tmp = this.c9y($this$transformLatest, it, $completion);
|
|
2737
2738
|
tmp.g9_1 = Unit_instance;
|
|
2738
2739
|
tmp.h9_1 = null;
|
|
2739
2740
|
return tmp.m9();
|
|
2740
2741
|
};
|
|
2741
2742
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).x9 = function (p1, p2, $completion) {
|
|
2742
2743
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2743
|
-
return this.
|
|
2744
|
+
return this.b9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2744
2745
|
};
|
|
2745
2746
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).m9 = function () {
|
|
2746
2747
|
var suspendResult = this.g9_1;
|
|
@@ -2751,8 +2752,8 @@
|
|
|
2751
2752
|
case 0:
|
|
2752
2753
|
this.f9_1 = 2;
|
|
2753
2754
|
this.e9_1 = 1;
|
|
2754
|
-
var table = this.
|
|
2755
|
-
suspendResult = emitAll(this.
|
|
2755
|
+
var table = this.a9y_1;
|
|
2756
|
+
suspendResult = emitAll(this.z9x_1, flow(MechanicEventsObserverImpl$observeUpdates$slambda$slambda_0(table, this.y9x_1, null)), this);
|
|
2756
2757
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2757
2758
|
return suspendResult;
|
|
2758
2759
|
}
|
|
@@ -2774,22 +2775,22 @@
|
|
|
2774
2775
|
}
|
|
2775
2776
|
while (true);
|
|
2776
2777
|
};
|
|
2777
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2778
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.
|
|
2779
|
-
i.
|
|
2780
|
-
i.
|
|
2778
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).c9y = function ($this$transformLatest, it, completion) {
|
|
2779
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.y9x_1, completion);
|
|
2780
|
+
i.z9x_1 = $this$transformLatest;
|
|
2781
|
+
i.a9y_1 = it;
|
|
2781
2782
|
return i;
|
|
2782
2783
|
};
|
|
2783
2784
|
function MechanicEventsObserverImpl$observeUpdates$slambda_0(this$0, resultContinuation) {
|
|
2784
2785
|
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation);
|
|
2785
2786
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2786
|
-
return i.
|
|
2787
|
+
return i.b9y($this$transformLatest, it, $completion);
|
|
2787
2788
|
};
|
|
2788
2789
|
l.$arity = 2;
|
|
2789
2790
|
return l;
|
|
2790
2791
|
}
|
|
2791
2792
|
function _no_name_provided__qut3iv_1($this) {
|
|
2792
|
-
this.
|
|
2793
|
+
this.k9w_1 = $this;
|
|
2793
2794
|
}
|
|
2794
2795
|
protoOf(_no_name_provided__qut3iv_1).q18 = function (collector, $completion) {
|
|
2795
2796
|
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
@@ -2801,18 +2802,18 @@
|
|
|
2801
2802
|
return this.q18(collector, $completion);
|
|
2802
2803
|
};
|
|
2803
2804
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this$0, resultContinuation) {
|
|
2804
|
-
this.
|
|
2805
|
+
this.l9y_1 = this$0;
|
|
2805
2806
|
CoroutineImpl.call(this, resultContinuation);
|
|
2806
2807
|
}
|
|
2807
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2808
|
-
var tmp = this.
|
|
2808
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).b9y = function ($this$transformLatest, it, $completion) {
|
|
2809
|
+
var tmp = this.c9y($this$transformLatest, it, $completion);
|
|
2809
2810
|
tmp.g9_1 = Unit_instance;
|
|
2810
2811
|
tmp.h9_1 = null;
|
|
2811
2812
|
return tmp.m9();
|
|
2812
2813
|
};
|
|
2813
2814
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).x9 = function (p1, p2, $completion) {
|
|
2814
2815
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2815
|
-
return this.
|
|
2816
|
+
return this.b9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2816
2817
|
};
|
|
2817
2818
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).m9 = function () {
|
|
2818
2819
|
var suspendResult = this.g9_1;
|
|
@@ -2823,9 +2824,9 @@
|
|
|
2823
2824
|
case 0:
|
|
2824
2825
|
this.f9_1 = 2;
|
|
2825
2826
|
this.e9_1 = 1;
|
|
2826
|
-
this.
|
|
2827
|
-
var this_0 = this.
|
|
2828
|
-
suspendResult = emitAll(this.
|
|
2827
|
+
this.n9y_1;
|
|
2828
|
+
var this_0 = this.l9y_1.l9v_1.j6q();
|
|
2829
|
+
suspendResult = emitAll(this.m9y_1, new _no_name_provided__qut3iv_0(this_0), this);
|
|
2829
2830
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2830
2831
|
return suspendResult;
|
|
2831
2832
|
}
|
|
@@ -2847,26 +2848,26 @@
|
|
|
2847
2848
|
}
|
|
2848
2849
|
while (true);
|
|
2849
2850
|
};
|
|
2850
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2851
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.
|
|
2852
|
-
i.
|
|
2853
|
-
i.
|
|
2851
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).c9y = function ($this$transformLatest, it, completion) {
|
|
2852
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.l9y_1, completion);
|
|
2853
|
+
i.m9y_1 = $this$transformLatest;
|
|
2854
|
+
i.n9y_1 = it;
|
|
2854
2855
|
return i;
|
|
2855
2856
|
};
|
|
2856
2857
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0(this$0, resultContinuation) {
|
|
2857
2858
|
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this$0, resultContinuation);
|
|
2858
2859
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2859
|
-
return i.
|
|
2860
|
+
return i.b9y($this$transformLatest, it, $completion);
|
|
2860
2861
|
};
|
|
2861
2862
|
l.$arity = 2;
|
|
2862
2863
|
return l;
|
|
2863
2864
|
}
|
|
2864
2865
|
function MechanicEventsObserverImpl(stateProvider) {
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2866
|
+
this.l9v_1 = stateProvider;
|
|
2867
|
+
this.m9v_1 = MutableSharedFlow();
|
|
2867
2868
|
}
|
|
2868
|
-
protoOf(MechanicEventsObserverImpl).
|
|
2869
|
-
return this.
|
|
2869
|
+
protoOf(MechanicEventsObserverImpl).z9t = function (event, $completion) {
|
|
2870
|
+
return this.m9v_1.p18(event, $completion);
|
|
2870
2871
|
};
|
|
2871
2872
|
protoOf(MechanicEventsObserverImpl).j9m = function () {
|
|
2872
2873
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
@@ -2876,18 +2877,18 @@
|
|
|
2876
2877
|
function ToClientEventsObserver() {
|
|
2877
2878
|
}
|
|
2878
2879
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2879
|
-
this.
|
|
2880
|
-
this.
|
|
2880
|
+
this.x9y_1 = this$0;
|
|
2881
|
+
this.y9y_1 = $actions;
|
|
2881
2882
|
CoroutineImpl.call(this, resultContinuation);
|
|
2882
2883
|
}
|
|
2883
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2884
|
-
var tmp = this.
|
|
2884
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).f9z = function ($this$flow, $completion) {
|
|
2885
|
+
var tmp = this.g9z($this$flow, $completion);
|
|
2885
2886
|
tmp.g9_1 = Unit_instance;
|
|
2886
2887
|
tmp.h9_1 = null;
|
|
2887
2888
|
return tmp.m9();
|
|
2888
2889
|
};
|
|
2889
2890
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
2890
|
-
return this.
|
|
2891
|
+
return this.f9z((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2891
2892
|
};
|
|
2892
2893
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).m9 = function () {
|
|
2893
2894
|
var suspendResult = this.g9_1;
|
|
@@ -2898,23 +2899,23 @@
|
|
|
2898
2899
|
case 0:
|
|
2899
2900
|
this.f9_1 = 4;
|
|
2900
2901
|
var tmp_0 = this;
|
|
2901
|
-
tmp_0.
|
|
2902
|
+
tmp_0.a9z_1 = this.x9y_1.l9z_1;
|
|
2902
2903
|
var tmp_1 = this;
|
|
2903
|
-
tmp_1.
|
|
2904
|
-
this.
|
|
2904
|
+
tmp_1.b9z_1 = transformToEmits(this.x9y_1, this.y9y_1);
|
|
2905
|
+
this.c9z_1 = this.b9z_1.j();
|
|
2905
2906
|
this.e9_1 = 1;
|
|
2906
2907
|
continue $sm;
|
|
2907
2908
|
case 1:
|
|
2908
|
-
if (!this.
|
|
2909
|
+
if (!this.c9z_1.k()) {
|
|
2909
2910
|
this.e9_1 = 3;
|
|
2910
2911
|
continue $sm;
|
|
2911
2912
|
}
|
|
2912
2913
|
|
|
2913
|
-
this.
|
|
2914
|
+
this.d9z_1 = this.c9z_1.l();
|
|
2914
2915
|
var tmp_2 = this;
|
|
2915
|
-
tmp_2.
|
|
2916
|
+
tmp_2.e9z_1 = this.d9z_1;
|
|
2916
2917
|
this.e9_1 = 2;
|
|
2917
|
-
suspendResult = this.
|
|
2918
|
+
suspendResult = this.z9y_1.p18(this.e9z_1, this);
|
|
2918
2919
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2919
2920
|
return suspendResult;
|
|
2920
2921
|
}
|
|
@@ -2925,10 +2926,10 @@
|
|
|
2925
2926
|
continue $sm;
|
|
2926
2927
|
case 3:
|
|
2927
2928
|
l$ret$1: do {
|
|
2928
|
-
var this_0 = this.
|
|
2929
|
+
var this_0 = this.x9y_1.k9z_1;
|
|
2929
2930
|
while (true) {
|
|
2930
2931
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2931
|
-
var upd = cur - this.
|
|
2932
|
+
var upd = cur - this.y9y_1.m() | 0;
|
|
2932
2933
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2933
2934
|
break l$ret$1;
|
|
2934
2935
|
}
|
|
@@ -2950,15 +2951,15 @@
|
|
|
2950
2951
|
}
|
|
2951
2952
|
while (true);
|
|
2952
2953
|
};
|
|
2953
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2954
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2955
|
-
i.
|
|
2954
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).g9z = function ($this$flow, completion) {
|
|
2955
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.x9y_1, this.y9y_1, completion);
|
|
2956
|
+
i.z9y_1 = $this$flow;
|
|
2956
2957
|
return i;
|
|
2957
2958
|
};
|
|
2958
2959
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2959
2960
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2960
2961
|
var l = function ($this$flow, $completion) {
|
|
2961
|
-
return i.
|
|
2962
|
+
return i.f9z($this$flow, $completion);
|
|
2962
2963
|
};
|
|
2963
2964
|
l.$arity = 1;
|
|
2964
2965
|
return l;
|
|
@@ -3031,29 +3032,29 @@
|
|
|
3031
3032
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
3032
3033
|
}
|
|
3033
3034
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3034
|
-
var tmp = $this.
|
|
3035
|
+
var tmp = $this.j9z_1.s6h();
|
|
3035
3036
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3036
|
-
var this_0 = _this__u8e3s4.
|
|
3037
|
+
var this_0 = _this__u8e3s4.o9z_1;
|
|
3037
3038
|
var tmp_0 = copyToArray(this_0);
|
|
3038
3039
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3039
|
-
var this_1 = _this__u8e3s4.
|
|
3040
|
+
var this_1 = _this__u8e3s4.p9z_1;
|
|
3040
3041
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3041
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3042
|
+
return new ActionDeliveryPayload(_this__u8e3s4.n9z_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.q9z_1);
|
|
3042
3043
|
}
|
|
3043
3044
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3044
|
-
this.
|
|
3045
|
-
this.
|
|
3046
|
-
this.
|
|
3047
|
-
this.
|
|
3045
|
+
this.n9z_1 = tableId;
|
|
3046
|
+
this.o9z_1 = includePlayers;
|
|
3047
|
+
this.p9z_1 = excludePlayers;
|
|
3048
|
+
this.q9z_1 = deliveryType;
|
|
3048
3049
|
}
|
|
3049
3050
|
protoOf(GroupKey).toString = function () {
|
|
3050
|
-
return 'GroupKey(tableId=' + this.
|
|
3051
|
+
return 'GroupKey(tableId=' + this.n9z_1 + ', includePlayers=' + toString(this.o9z_1) + ', excludePlayers=' + toString(this.p9z_1) + ', deliveryType=' + this.q9z_1.toString() + ')';
|
|
3051
3052
|
};
|
|
3052
3053
|
protoOf(GroupKey).hashCode = function () {
|
|
3053
|
-
var result = getStringHashCode(this.
|
|
3054
|
-
result = imul(result, 31) + hashCode(this.n9z_1) | 0;
|
|
3054
|
+
var result = getStringHashCode(this.n9z_1);
|
|
3055
3055
|
result = imul(result, 31) + hashCode(this.o9z_1) | 0;
|
|
3056
|
-
result = imul(result, 31) + this.p9z_1
|
|
3056
|
+
result = imul(result, 31) + hashCode(this.p9z_1) | 0;
|
|
3057
|
+
result = imul(result, 31) + this.q9z_1.hashCode() | 0;
|
|
3057
3058
|
return result;
|
|
3058
3059
|
};
|
|
3059
3060
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3062,35 +3063,35 @@
|
|
|
3062
3063
|
if (!(other instanceof GroupKey))
|
|
3063
3064
|
return false;
|
|
3064
3065
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3065
|
-
if (!(this.
|
|
3066
|
-
return false;
|
|
3067
|
-
if (!equals(this.n9z_1, tmp0_other_with_cast.n9z_1))
|
|
3066
|
+
if (!(this.n9z_1 === tmp0_other_with_cast.n9z_1))
|
|
3068
3067
|
return false;
|
|
3069
3068
|
if (!equals(this.o9z_1, tmp0_other_with_cast.o9z_1))
|
|
3070
3069
|
return false;
|
|
3071
|
-
if (!this.p9z_1
|
|
3070
|
+
if (!equals(this.p9z_1, tmp0_other_with_cast.p9z_1))
|
|
3071
|
+
return false;
|
|
3072
|
+
if (!this.q9z_1.equals(tmp0_other_with_cast.q9z_1))
|
|
3072
3073
|
return false;
|
|
3073
3074
|
return true;
|
|
3074
3075
|
};
|
|
3075
3076
|
function Companion_1() {
|
|
3076
|
-
this.
|
|
3077
|
+
this.r9z_1 = 6;
|
|
3077
3078
|
}
|
|
3078
3079
|
var Companion_instance_9;
|
|
3079
3080
|
function Companion_getInstance_2() {
|
|
3080
3081
|
return Companion_instance_9;
|
|
3081
3082
|
}
|
|
3082
3083
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3083
|
-
this.
|
|
3084
|
+
this.aa0_1 = this$0;
|
|
3084
3085
|
CoroutineImpl.call(this, resultContinuation);
|
|
3085
3086
|
}
|
|
3086
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3087
|
-
var tmp = this.
|
|
3087
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ca0 = function (actions, $completion) {
|
|
3088
|
+
var tmp = this.da0(actions, $completion);
|
|
3088
3089
|
tmp.g9_1 = Unit_instance;
|
|
3089
3090
|
tmp.h9_1 = null;
|
|
3090
3091
|
return tmp.m9();
|
|
3091
3092
|
};
|
|
3092
3093
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).w9 = function (p1, $completion) {
|
|
3093
|
-
return this.
|
|
3094
|
+
return this.ca0((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3094
3095
|
};
|
|
3095
3096
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).m9 = function () {
|
|
3096
3097
|
var suspendResult = this.g9_1;
|
|
@@ -3099,7 +3100,7 @@
|
|
|
3099
3100
|
var tmp = this.e9_1;
|
|
3100
3101
|
if (tmp === 0) {
|
|
3101
3102
|
this.f9_1 = 1;
|
|
3102
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3103
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.aa0_1, this.ba0_1, null));
|
|
3103
3104
|
} else if (tmp === 1) {
|
|
3104
3105
|
throw this.h9_1;
|
|
3105
3106
|
}
|
|
@@ -3109,23 +3110,23 @@
|
|
|
3109
3110
|
}
|
|
3110
3111
|
while (true);
|
|
3111
3112
|
};
|
|
3112
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3113
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3114
|
-
i.
|
|
3113
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).da0 = function (actions, completion) {
|
|
3114
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.aa0_1, completion);
|
|
3115
|
+
i.ba0_1 = actions;
|
|
3115
3116
|
return i;
|
|
3116
3117
|
};
|
|
3117
3118
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3118
3119
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3119
3120
|
var l = function (actions, $completion) {
|
|
3120
|
-
return i.
|
|
3121
|
+
return i.ca0(actions, $completion);
|
|
3121
3122
|
};
|
|
3122
3123
|
l.$arity = 1;
|
|
3123
3124
|
return l;
|
|
3124
3125
|
}
|
|
3125
3126
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3126
3127
|
CoroutineImpl.call(this, resultContinuation);
|
|
3127
|
-
this.
|
|
3128
|
-
this.
|
|
3128
|
+
this.ma0_1 = _this__u8e3s4;
|
|
3129
|
+
this.na0_1 = fromEvent;
|
|
3129
3130
|
}
|
|
3130
3131
|
protoOf($sentEventCOROUTINE$3).m9 = function () {
|
|
3131
3132
|
var suspendResult = this.g9_1;
|
|
@@ -3136,9 +3137,9 @@
|
|
|
3136
3137
|
case 0:
|
|
3137
3138
|
this.f9_1 = 2;
|
|
3138
3139
|
var tmp_0 = this;
|
|
3139
|
-
tmp_0.
|
|
3140
|
+
tmp_0.oa0_1 = this.ma0_1.l9z_1;
|
|
3140
3141
|
l$ret$1: do {
|
|
3141
|
-
var this_0 = this.
|
|
3142
|
+
var this_0 = this.ma0_1.k9z_1;
|
|
3142
3143
|
while (true) {
|
|
3143
3144
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3144
3145
|
var upd = cur + 1 | 0;
|
|
@@ -3149,7 +3150,7 @@
|
|
|
3149
3150
|
}
|
|
3150
3151
|
while (false);
|
|
3151
3152
|
this.e9_1 = 1;
|
|
3152
|
-
suspendResult = this.
|
|
3153
|
+
suspendResult = this.ma0_1.m9z_1.p18(this.na0_1, this);
|
|
3153
3154
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3154
3155
|
return suspendResult;
|
|
3155
3156
|
}
|
|
@@ -3173,7 +3174,7 @@
|
|
|
3173
3174
|
};
|
|
3174
3175
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3175
3176
|
CoroutineImpl.call(this, resultContinuation);
|
|
3176
|
-
this.
|
|
3177
|
+
this.xa0_1 = _this__u8e3s4;
|
|
3177
3178
|
}
|
|
3178
3179
|
protoOf($waitForCOROUTINE$4).m9 = function () {
|
|
3179
3180
|
var suspendResult = this.g9_1;
|
|
@@ -3184,12 +3185,12 @@
|
|
|
3184
3185
|
case 0:
|
|
3185
3186
|
this.f9_1 = 5;
|
|
3186
3187
|
var tmp_0 = this;
|
|
3187
|
-
tmp_0.
|
|
3188
|
-
this.
|
|
3188
|
+
tmp_0.ya0_1 = this.xa0_1.l9z_1;
|
|
3189
|
+
this.za0_1 = 0;
|
|
3189
3190
|
this.e9_1 = 1;
|
|
3190
3191
|
continue $sm;
|
|
3191
3192
|
case 1:
|
|
3192
|
-
if (!!(this.
|
|
3193
|
+
if (!!(this.xa0_1.k9z_1.kotlinx$atomicfu$value === 0)) {
|
|
3193
3194
|
this.e9_1 = 4;
|
|
3194
3195
|
continue $sm;
|
|
3195
3196
|
}
|
|
@@ -3202,9 +3203,9 @@
|
|
|
3202
3203
|
|
|
3203
3204
|
continue $sm;
|
|
3204
3205
|
case 2:
|
|
3205
|
-
this.
|
|
3206
|
-
if (this.
|
|
3207
|
-
this.
|
|
3206
|
+
this.za0_1 = this.za0_1 + 1 | 0;
|
|
3207
|
+
if (this.za0_1 > 6) {
|
|
3208
|
+
this.xa0_1.i9z_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.xa0_1.k9z_1.kotlinx$atomicfu$value);
|
|
3208
3209
|
this.e9_1 = 4;
|
|
3209
3210
|
continue $sm;
|
|
3210
3211
|
} else {
|
|
@@ -3232,16 +3233,16 @@
|
|
|
3232
3233
|
while (true);
|
|
3233
3234
|
};
|
|
3234
3235
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3235
|
-
this.
|
|
3236
|
-
this.
|
|
3237
|
-
this.
|
|
3238
|
-
this.
|
|
3236
|
+
this.h9z_1 = serverReduxConfig;
|
|
3237
|
+
this.i9z_1 = logger;
|
|
3238
|
+
this.j9z_1 = idsProvider;
|
|
3239
|
+
this.k9z_1 = atomic$ref$1(0);
|
|
3239
3240
|
var tmp = this;
|
|
3240
3241
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3241
|
-
tmp.
|
|
3242
|
-
this.
|
|
3242
|
+
tmp.l9z_1 = get_atomicfu$reentrantLock();
|
|
3243
|
+
this.m9z_1 = MutableSharedFlow();
|
|
3243
3244
|
}
|
|
3244
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3245
|
+
protoOf(ToClientEventsObserverImpl).o9y = function (fromEvent, $completion) {
|
|
3245
3246
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3246
3247
|
tmp.g9_1 = Unit_instance;
|
|
3247
3248
|
tmp.h9_1 = null;
|
|
@@ -3254,20 +3255,20 @@
|
|
|
3254
3255
|
return tmp.m9();
|
|
3255
3256
|
};
|
|
3256
3257
|
protoOf(ToClientEventsObserverImpl).x9l = function () {
|
|
3257
|
-
if (!this.
|
|
3258
|
-
return this.
|
|
3258
|
+
if (!this.h9z_1.enabledCombinedEvents) {
|
|
3259
|
+
return this.m9z_1;
|
|
3259
3260
|
}
|
|
3260
|
-
var tmp = windowedByInterval(this.
|
|
3261
|
+
var tmp = windowedByInterval(this.m9z_1, toLong(this.h9z_1.combinedEventsPeriod));
|
|
3261
3262
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3262
3263
|
};
|
|
3263
3264
|
function UpdateServerConfigAction(serverConfig) {
|
|
3264
|
-
this.
|
|
3265
|
+
this.aa1_1 = serverConfig;
|
|
3265
3266
|
}
|
|
3266
3267
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3267
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3268
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.aa1_1.toString() + ')';
|
|
3268
3269
|
};
|
|
3269
3270
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3270
|
-
return this.
|
|
3271
|
+
return this.aa1_1.hashCode();
|
|
3271
3272
|
};
|
|
3272
3273
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3273
3274
|
if (this === other)
|
|
@@ -3275,20 +3276,20 @@
|
|
|
3275
3276
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3276
3277
|
return false;
|
|
3277
3278
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3278
|
-
if (!this.
|
|
3279
|
+
if (!this.aa1_1.equals(tmp0_other_with_cast.aa1_1))
|
|
3279
3280
|
return false;
|
|
3280
3281
|
return true;
|
|
3281
3282
|
};
|
|
3282
3283
|
function SpectatorsAction() {
|
|
3283
3284
|
}
|
|
3284
3285
|
function AddSpectatorsAction(spectators) {
|
|
3285
|
-
this.
|
|
3286
|
+
this.ba1_1 = spectators;
|
|
3286
3287
|
}
|
|
3287
3288
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3288
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
3289
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.ba1_1) + ')';
|
|
3289
3290
|
};
|
|
3290
3291
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3291
|
-
return hashCode(this.
|
|
3292
|
+
return hashCode(this.ba1_1);
|
|
3292
3293
|
};
|
|
3293
3294
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3294
3295
|
if (this === other)
|
|
@@ -3296,18 +3297,18 @@
|
|
|
3296
3297
|
if (!(other instanceof AddSpectatorsAction))
|
|
3297
3298
|
return false;
|
|
3298
3299
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3299
|
-
if (!equals(this.
|
|
3300
|
+
if (!equals(this.ba1_1, tmp0_other_with_cast.ba1_1))
|
|
3300
3301
|
return false;
|
|
3301
3302
|
return true;
|
|
3302
3303
|
};
|
|
3303
3304
|
function RemoveSpectatorsAction(spectators) {
|
|
3304
|
-
this.
|
|
3305
|
+
this.ca1_1 = spectators;
|
|
3305
3306
|
}
|
|
3306
3307
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3307
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
3308
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.ca1_1) + ')';
|
|
3308
3309
|
};
|
|
3309
3310
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3310
|
-
return hashCode(this.
|
|
3311
|
+
return hashCode(this.ca1_1);
|
|
3311
3312
|
};
|
|
3312
3313
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3313
3314
|
if (this === other)
|
|
@@ -3315,73 +3316,73 @@
|
|
|
3315
3316
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3316
3317
|
return false;
|
|
3317
3318
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3318
|
-
if (!equals(this.
|
|
3319
|
+
if (!equals(this.ca1_1, tmp0_other_with_cast.ca1_1))
|
|
3319
3320
|
return false;
|
|
3320
3321
|
return true;
|
|
3321
3322
|
};
|
|
3322
3323
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3323
3324
|
// Inline function 'kotlin.getValue' call
|
|
3324
|
-
var this_0 = $this.
|
|
3325
|
+
var this_0 = $this.ia1_1;
|
|
3325
3326
|
asyncProvider$factory_0();
|
|
3326
3327
|
return this_0.u();
|
|
3327
3328
|
}
|
|
3328
3329
|
function _get_logger__rkp4sl_0($this) {
|
|
3329
3330
|
// Inline function 'kotlin.getValue' call
|
|
3330
|
-
var this_0 = $this.
|
|
3331
|
+
var this_0 = $this.ja1_1;
|
|
3331
3332
|
logger$factory_2();
|
|
3332
3333
|
return this_0.u();
|
|
3333
3334
|
}
|
|
3334
3335
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3335
3336
|
// Inline function 'kotlin.getValue' call
|
|
3336
|
-
var this_0 = $this.
|
|
3337
|
+
var this_0 = $this.ka1_1;
|
|
3337
3338
|
playerConnectionInteractor$factory_2();
|
|
3338
3339
|
return this_0.u();
|
|
3339
3340
|
}
|
|
3340
3341
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3341
3342
|
// Inline function 'kotlin.getValue' call
|
|
3342
|
-
var this_0 = $this.
|
|
3343
|
+
var this_0 = $this.la1_1;
|
|
3343
3344
|
lastCardInteractor$factory_0();
|
|
3344
3345
|
return this_0.u();
|
|
3345
3346
|
}
|
|
3346
3347
|
function _get_serverConfig__rk2g06($this) {
|
|
3347
3348
|
// Inline function 'kotlin.getValue' call
|
|
3348
|
-
var this_0 = $this.
|
|
3349
|
+
var this_0 = $this.ma1_1;
|
|
3349
3350
|
serverConfig$factory_0();
|
|
3350
3351
|
return this_0.u();
|
|
3351
3352
|
}
|
|
3352
3353
|
function _get_logicConfig__52ww9d($this) {
|
|
3353
3354
|
// Inline function 'kotlin.getValue' call
|
|
3354
|
-
var this_0 = $this.
|
|
3355
|
+
var this_0 = $this.na1_1;
|
|
3355
3356
|
logicConfig$factory_0();
|
|
3356
3357
|
return this_0.u();
|
|
3357
3358
|
}
|
|
3358
3359
|
function _get_idsProvider__fnfajc($this) {
|
|
3359
3360
|
// Inline function 'kotlin.getValue' call
|
|
3360
|
-
var this_0 = $this.
|
|
3361
|
+
var this_0 = $this.oa1_1;
|
|
3361
3362
|
idsProvider$factory_0();
|
|
3362
3363
|
return this_0.u();
|
|
3363
3364
|
}
|
|
3364
3365
|
function _get_botConfig__cpaxzc($this) {
|
|
3365
3366
|
// Inline function 'kotlin.getValue' call
|
|
3366
|
-
var this_0 = $this.
|
|
3367
|
+
var this_0 = $this.pa1_1;
|
|
3367
3368
|
botConfig$factory_0();
|
|
3368
3369
|
return this_0.u();
|
|
3369
3370
|
}
|
|
3370
3371
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3371
3372
|
// Inline function 'kotlin.getValue' call
|
|
3372
|
-
var this_0 = $this.
|
|
3373
|
+
var this_0 = $this.qa1_1;
|
|
3373
3374
|
scenePositionProvider$factory_0();
|
|
3374
3375
|
return this_0.u();
|
|
3375
3376
|
}
|
|
3376
3377
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3377
3378
|
// Inline function 'kotlin.getValue' call
|
|
3378
|
-
var this_0 = $this.
|
|
3379
|
+
var this_0 = $this.ra1_1;
|
|
3379
3380
|
toClientEventsObserver$factory_2();
|
|
3380
3381
|
return this_0.u();
|
|
3381
3382
|
}
|
|
3382
3383
|
function _get_mechanicEventsObserver__ll1b9k_0($this) {
|
|
3383
3384
|
// Inline function 'kotlin.getValue' call
|
|
3384
|
-
var this_0 = $this.
|
|
3385
|
+
var this_0 = $this.sa1_1;
|
|
3385
3386
|
mechanicEventsObserver$factory_2();
|
|
3386
3387
|
return this_0.u();
|
|
3387
3388
|
}
|
|
@@ -3394,83 +3395,83 @@
|
|
|
3394
3395
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3395
3396
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3396
3397
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3397
|
-
this.
|
|
3398
|
-
this.
|
|
3399
|
-
this.
|
|
3400
|
-
this.
|
|
3401
|
-
this.
|
|
3398
|
+
this.da1_1 = validationStoreContract;
|
|
3399
|
+
this.ea1_1 = timersStoreContract;
|
|
3400
|
+
this.fa1_1 = botGameStoreContract;
|
|
3401
|
+
this.ga1_1 = gameMechanicStoreContract;
|
|
3402
|
+
this.ha1_1 = fileLoggerStoreContract;
|
|
3402
3403
|
var tmp = this;
|
|
3403
3404
|
// Inline function 'org.kodein.di.instance' call
|
|
3404
3405
|
// Inline function 'org.kodein.type.generic' call
|
|
3405
3406
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3406
3407
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3407
|
-
tmp.
|
|
3408
|
+
tmp.ia1_1 = Instance(di, tmp$ret$0, null).t63(this, asyncProvider$factory());
|
|
3408
3409
|
var tmp_1 = this;
|
|
3409
3410
|
// Inline function 'org.kodein.di.instance' call
|
|
3410
3411
|
// Inline function 'org.kodein.type.generic' call
|
|
3411
3412
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3412
3413
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3413
|
-
tmp_1.
|
|
3414
|
+
tmp_1.ja1_1 = Instance(di, tmp$ret$2, null).t63(this, logger$factory_1());
|
|
3414
3415
|
var tmp_3 = this;
|
|
3415
3416
|
// Inline function 'org.kodein.di.instance' call
|
|
3416
3417
|
// Inline function 'org.kodein.type.generic' call
|
|
3417
3418
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3418
3419
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3419
|
-
tmp_3.
|
|
3420
|
+
tmp_3.ka1_1 = Instance(di, tmp$ret$4, null).t63(this, playerConnectionInteractor$factory_1());
|
|
3420
3421
|
var tmp_5 = this;
|
|
3421
3422
|
// Inline function 'org.kodein.di.instance' call
|
|
3422
3423
|
// Inline function 'org.kodein.type.generic' call
|
|
3423
3424
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3424
3425
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3425
|
-
tmp_5.
|
|
3426
|
+
tmp_5.la1_1 = Instance(di, tmp$ret$6, null).t63(this, lastCardInteractor$factory());
|
|
3426
3427
|
var tmp_7 = this;
|
|
3427
3428
|
// Inline function 'org.kodein.di.instance' call
|
|
3428
3429
|
// Inline function 'org.kodein.type.generic' call
|
|
3429
3430
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3430
3431
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3431
|
-
tmp_7.
|
|
3432
|
+
tmp_7.ma1_1 = Instance(di, tmp$ret$8, null).t63(this, serverConfig$factory());
|
|
3432
3433
|
var tmp_9 = this;
|
|
3433
3434
|
// Inline function 'org.kodein.di.instance' call
|
|
3434
3435
|
// Inline function 'org.kodein.type.generic' call
|
|
3435
3436
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3436
3437
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3437
|
-
tmp_9.
|
|
3438
|
+
tmp_9.na1_1 = Instance(di, tmp$ret$10, null).t63(this, logicConfig$factory());
|
|
3438
3439
|
var tmp_11 = this;
|
|
3439
3440
|
// Inline function 'org.kodein.di.instance' call
|
|
3440
3441
|
// Inline function 'org.kodein.type.generic' call
|
|
3441
3442
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3442
3443
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3443
|
-
tmp_11.
|
|
3444
|
+
tmp_11.oa1_1 = Instance(di, tmp$ret$12, null).t63(this, idsProvider$factory());
|
|
3444
3445
|
var tmp_13 = this;
|
|
3445
3446
|
// Inline function 'org.kodein.di.instance' call
|
|
3446
3447
|
// Inline function 'org.kodein.type.generic' call
|
|
3447
3448
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3448
3449
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3449
|
-
tmp_13.
|
|
3450
|
+
tmp_13.pa1_1 = Instance(di, tmp$ret$14, null).t63(this, botConfig$factory());
|
|
3450
3451
|
var tmp_15 = this;
|
|
3451
3452
|
// Inline function 'org.kodein.di.instance' call
|
|
3452
3453
|
// Inline function 'org.kodein.type.generic' call
|
|
3453
3454
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3454
3455
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3455
|
-
tmp_15.
|
|
3456
|
+
tmp_15.qa1_1 = Instance(di, tmp$ret$16, null).t63(this, scenePositionProvider$factory());
|
|
3456
3457
|
var tmp_17 = this;
|
|
3457
3458
|
// Inline function 'org.kodein.di.instance' call
|
|
3458
3459
|
// Inline function 'org.kodein.type.generic' call
|
|
3459
3460
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3460
3461
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3461
|
-
tmp_17.
|
|
3462
|
+
tmp_17.ra1_1 = Instance(di, tmp$ret$18, null).t63(this, toClientEventsObserver$factory_1());
|
|
3462
3463
|
var tmp_19 = this;
|
|
3463
3464
|
// Inline function 'org.kodein.di.instance' call
|
|
3464
3465
|
// Inline function 'org.kodein.type.generic' call
|
|
3465
3466
|
var tmp_20 = typeToken(createKType(getKClass(MechanicEventsObserver), arrayOf([]), false));
|
|
3466
3467
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3467
|
-
tmp_19.
|
|
3468
|
+
tmp_19.sa1_1 = Instance(di, tmp$ret$20, null).t63(this, mechanicEventsObserver$factory_1());
|
|
3468
3469
|
}
|
|
3469
3470
|
protoOf(ServerGameStoreContract).c95 = function () {
|
|
3470
|
-
return plus(plus(plus(plus(plus(this.
|
|
3471
|
+
return plus(plus(plus(plus(plus(this.da1_1.c95(), this.ea1_1.c95()), this.fa1_1.c95()), this.ga1_1.c95()), this.ha1_1.c95()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3471
3472
|
};
|
|
3472
3473
|
protoOf(ServerGameStoreContract).d95 = function () {
|
|
3473
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
3474
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.da1_1.d95(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.ea1_1.d95()), this.fa1_1.d95()), this.ga1_1.d95()), this.ha1_1.d95()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([sendMechanicEventsMiddleware(_get_asyncProvider__jbpyhw(this), _get_mechanicEventsObserver__ll1b9k_0(this)), sendToClientActionMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).v96(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3474
3475
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3475
3476
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3476
3477
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3610,7 +3611,7 @@
|
|
|
3610
3611
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
3611
3612
|
next(action_0);
|
|
3612
3613
|
var state = store.state;
|
|
3613
|
-
if (!get_serverStatePayload_0(state).
|
|
3614
|
+
if (!get_serverStatePayload_0(state).d9t_1.e9t_1 && action_0.isGameFinished) {
|
|
3614
3615
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.k6q_1));
|
|
3615
3616
|
}
|
|
3616
3617
|
};
|
|
@@ -3618,7 +3619,7 @@
|
|
|
3618
3619
|
return this.g6l(store, next, action);
|
|
3619
3620
|
};
|
|
3620
3621
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3621
|
-
this.
|
|
3622
|
+
this.va1_1 = this$0;
|
|
3622
3623
|
}
|
|
3623
3624
|
protoOf(_no_name_provided__qut3iv_3).p6j = function (action) {
|
|
3624
3625
|
return action instanceof MechanicAction;
|
|
@@ -3632,7 +3633,7 @@
|
|
|
3632
3633
|
var tmp;
|
|
3633
3634
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3634
3635
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3635
|
-
var this_0 = this.
|
|
3636
|
+
var this_0 = this.va1_1;
|
|
3636
3637
|
var tableId = action_0.t7z_1;
|
|
3637
3638
|
var gameCreatorPlayerId = action_0.v7z_1;
|
|
3638
3639
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3677,7 +3678,7 @@
|
|
|
3677
3678
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3678
3679
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3679
3680
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3680
|
-
var tmp0_aid = this_0.
|
|
3681
|
+
var tmp0_aid = this_0.ua1_1.s6h();
|
|
3681
3682
|
// Inline function 'kotlin.collections.map' call
|
|
3682
3683
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3683
3684
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3702,16 +3703,16 @@
|
|
|
3702
3703
|
} else {
|
|
3703
3704
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3704
3705
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3705
|
-
var this_2 = this.
|
|
3706
|
+
var this_2 = this.va1_1;
|
|
3706
3707
|
var table = state.m6r();
|
|
3707
3708
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3708
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3709
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.ua1_1.s6h(), table.id, null);
|
|
3709
3710
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3710
3711
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3711
3712
|
} else {
|
|
3712
3713
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3713
3714
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3714
|
-
var this_3 = this.
|
|
3715
|
+
var this_3 = this.va1_1;
|
|
3715
3716
|
var tableId_0 = action_0.z7z_1.id;
|
|
3716
3717
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3717
3718
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3756,7 +3757,7 @@
|
|
|
3756
3757
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3757
3758
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3758
3759
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3759
|
-
var tmp0_aid_0 = this_3.
|
|
3760
|
+
var tmp0_aid_0 = this_3.ua1_1.s6h();
|
|
3760
3761
|
// Inline function 'kotlin.collections.map' call
|
|
3761
3762
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3762
3763
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3781,43 +3782,43 @@
|
|
|
3781
3782
|
} else {
|
|
3782
3783
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3783
3784
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3784
|
-
var this_5 = this.
|
|
3785
|
+
var this_5 = this.va1_1;
|
|
3785
3786
|
var table_0 = state.m6r();
|
|
3786
3787
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3787
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3788
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.ua1_1.s6h(), table_0.id, null);
|
|
3788
3789
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3789
3790
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3790
3791
|
} else {
|
|
3791
3792
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3792
3793
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3793
|
-
var this_6 = this.
|
|
3794
|
+
var this_6 = this.va1_1;
|
|
3794
3795
|
var table_1 = state.m6r();
|
|
3795
3796
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3796
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3797
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.ua1_1.s6h(), table_1.id, null);
|
|
3797
3798
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3798
3799
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3799
3800
|
} else {
|
|
3800
3801
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3801
3802
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3802
|
-
var this_7 = this.
|
|
3803
|
+
var this_7 = this.va1_1;
|
|
3803
3804
|
var table_2 = state.m6r();
|
|
3804
3805
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3805
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3806
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.ua1_1.s6h(), table_2.id, null);
|
|
3806
3807
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3807
3808
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3808
3809
|
} else {
|
|
3809
3810
|
if (action_0 instanceof ErrorAction) {
|
|
3810
3811
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3811
|
-
var this_8 = this.
|
|
3812
|
+
var this_8 = this.va1_1;
|
|
3812
3813
|
var table_3 = state.m6r();
|
|
3813
3814
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3814
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3815
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.ua1_1.s6h(), table_3.id, null);
|
|
3815
3816
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3816
3817
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3817
3818
|
} else {
|
|
3818
3819
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3819
3820
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3820
|
-
var this_9 = this.
|
|
3821
|
+
var this_9 = this.va1_1;
|
|
3821
3822
|
var table_4 = state.m6r();
|
|
3822
3823
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3823
3824
|
var tableId_1 = table_4.id;
|
|
@@ -3854,7 +3855,7 @@
|
|
|
3854
3855
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3855
3856
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3856
3857
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3857
|
-
var tmp0_aid_1 = this_9.
|
|
3858
|
+
var tmp0_aid_1 = this_9.ua1_1.s6h();
|
|
3858
3859
|
// Inline function 'kotlin.collections.map' call
|
|
3859
3860
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3860
3861
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3879,7 +3880,7 @@
|
|
|
3879
3880
|
} else {
|
|
3880
3881
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3881
3882
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3882
|
-
var this_10 = this.
|
|
3883
|
+
var this_10 = this.va1_1;
|
|
3883
3884
|
var table_5 = state.m6r();
|
|
3884
3885
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3885
3886
|
var tableId_2 = table_5.id;
|
|
@@ -3916,7 +3917,7 @@
|
|
|
3916
3917
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3917
3918
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3918
3919
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3919
|
-
var tmp0_aid_2 = this_10.
|
|
3920
|
+
var tmp0_aid_2 = this_10.ua1_1.s6h();
|
|
3920
3921
|
// Inline function 'kotlin.collections.map' call
|
|
3921
3922
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3922
3923
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -3941,7 +3942,7 @@
|
|
|
3941
3942
|
} else {
|
|
3942
3943
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
3943
3944
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3944
|
-
var this_11 = this.
|
|
3945
|
+
var this_11 = this.va1_1;
|
|
3945
3946
|
var table_6 = state.m6r();
|
|
3946
3947
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3947
3948
|
var tableId_3 = table_6.id;
|
|
@@ -3978,7 +3979,7 @@
|
|
|
3978
3979
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3979
3980
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3980
3981
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3981
|
-
var tmp0_aid_3 = this_11.
|
|
3982
|
+
var tmp0_aid_3 = this_11.ua1_1.s6h();
|
|
3982
3983
|
// Inline function 'kotlin.collections.map' call
|
|
3983
3984
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3984
3985
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -3991,7 +3992,7 @@
|
|
|
3991
3992
|
}
|
|
3992
3993
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
3993
3994
|
var tmp_0;
|
|
3994
|
-
if (this.
|
|
3995
|
+
if (this.va1_1.ta1_1.supportBackwardActions && getPlayer(state.m6r().players, sendToPlayer_8.b7e_1).h6x_1.l6x_1) {
|
|
3995
3996
|
tmp_0 = null;
|
|
3996
3997
|
} else {
|
|
3997
3998
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -4009,79 +4010,79 @@
|
|
|
4009
4010
|
} else {
|
|
4010
4011
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
4011
4012
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4012
|
-
var this_12 = this.
|
|
4013
|
+
var this_12 = this.va1_1;
|
|
4013
4014
|
var table_7 = state.m6r();
|
|
4014
|
-
var exceptPlayerId = this.
|
|
4015
|
+
var exceptPlayerId = this.va1_1.ta1_1.supportBackwardActions ? action_0.z80_1 : null;
|
|
4015
4016
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4016
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
4017
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.ua1_1.s6h(), table_7.id, exceptPlayerId);
|
|
4017
4018
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
4018
4019
|
tmp = listOfNotNull(tmp$ret$94);
|
|
4019
4020
|
} else {
|
|
4020
4021
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
4021
4022
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4022
|
-
var this_13 = this.
|
|
4023
|
+
var this_13 = this.va1_1;
|
|
4023
4024
|
var table_8 = state.m6r();
|
|
4024
|
-
var exceptPlayerId_0 = this.
|
|
4025
|
+
var exceptPlayerId_0 = this.va1_1.ta1_1.supportBackwardActions ? action_0.d81_1 : null;
|
|
4025
4026
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4026
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4027
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.ua1_1.s6h(), table_8.id, exceptPlayerId_0);
|
|
4027
4028
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
4028
4029
|
tmp = listOfNotNull(tmp$ret$96);
|
|
4029
4030
|
} else {
|
|
4030
4031
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
4031
4032
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4032
|
-
var this_14 = this.
|
|
4033
|
+
var this_14 = this.va1_1;
|
|
4033
4034
|
var table_9 = state.m6r();
|
|
4034
4035
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4035
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4036
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.ua1_1.s6h(), table_9.id, null);
|
|
4036
4037
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4037
4038
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4038
4039
|
} else {
|
|
4039
4040
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4040
4041
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4041
|
-
var this_15 = this.
|
|
4042
|
+
var this_15 = this.va1_1;
|
|
4042
4043
|
var table_10 = state.m6r();
|
|
4043
|
-
var exceptPlayerId_1 = this.
|
|
4044
|
+
var exceptPlayerId_1 = this.va1_1.ta1_1.supportBackwardActions ? action_0.k81_1 : null;
|
|
4044
4045
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4045
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4046
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.ua1_1.s6h(), table_10.id, exceptPlayerId_1);
|
|
4046
4047
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4047
4048
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4048
4049
|
} else {
|
|
4049
4050
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4050
4051
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4051
|
-
var this_16 = this.
|
|
4052
|
+
var this_16 = this.va1_1;
|
|
4052
4053
|
var table_11 = state.m6r();
|
|
4053
|
-
var exceptPlayerId_2 = this.
|
|
4054
|
+
var exceptPlayerId_2 = this.va1_1.ta1_1.supportBackwardActions ? action_0.o81_1 : null;
|
|
4054
4055
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4055
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4056
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.ua1_1.s6h(), table_11.id, exceptPlayerId_2);
|
|
4056
4057
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4057
4058
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4058
4059
|
} else {
|
|
4059
4060
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4060
4061
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4061
|
-
var this_17 = this.
|
|
4062
|
+
var this_17 = this.va1_1;
|
|
4062
4063
|
var table_12 = state.m6r();
|
|
4063
4064
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4064
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4065
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.ua1_1.s6h(), table_12.id, null);
|
|
4065
4066
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4066
4067
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4067
4068
|
} else {
|
|
4068
4069
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4069
4070
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4070
|
-
var this_18 = this.
|
|
4071
|
+
var this_18 = this.va1_1;
|
|
4071
4072
|
var table_13 = state.m6r();
|
|
4072
4073
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4073
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4074
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.ua1_1.s6h(), table_13.id, null);
|
|
4074
4075
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4075
4076
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4076
4077
|
} else {
|
|
4077
4078
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4078
4079
|
var message = action_0.w81_1;
|
|
4079
4080
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4080
|
-
var this_19 = this.
|
|
4081
|
+
var this_19 = this.va1_1;
|
|
4081
4082
|
var table_14 = state.m6r();
|
|
4082
4083
|
var tmp_1;
|
|
4083
4084
|
var tmp_2;
|
|
4084
|
-
if (this.
|
|
4085
|
+
if (this.va1_1.ta1_1.supportBackwardActions) {
|
|
4085
4086
|
tmp_2 = isInterface(message, UserMessage);
|
|
4086
4087
|
} else {
|
|
4087
4088
|
tmp_2 = false;
|
|
@@ -4093,17 +4094,17 @@
|
|
|
4093
4094
|
}
|
|
4094
4095
|
var exceptPlayerId_3 = tmp_1;
|
|
4095
4096
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4096
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4097
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.ua1_1.s6h(), table_14.id, exceptPlayerId_3);
|
|
4097
4098
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4098
4099
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4099
4100
|
} else {
|
|
4100
4101
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4101
4102
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4102
|
-
var this_20 = this.
|
|
4103
|
+
var this_20 = this.va1_1;
|
|
4103
4104
|
var table_15 = state.m6r();
|
|
4104
4105
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4105
4106
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4106
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4107
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.ua1_1.s6h(), table_15.id, exceptPlayerId_4);
|
|
4107
4108
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4108
4109
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4109
4110
|
} else {
|
|
@@ -4141,8 +4142,8 @@
|
|
|
4141
4142
|
return this.g6l(store, next, action);
|
|
4142
4143
|
};
|
|
4143
4144
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4144
|
-
this.
|
|
4145
|
-
this.
|
|
4145
|
+
this.ta1_1 = logicConfig;
|
|
4146
|
+
this.ua1_1 = idsProvider;
|
|
4146
4147
|
}
|
|
4147
4148
|
protoOf(ServerMapMechanicToClientActionMiddleware).v96 = function () {
|
|
4148
4149
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
@@ -4153,8 +4154,8 @@
|
|
|
4153
4154
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4154
4155
|
}
|
|
4155
4156
|
function sendMechanicEventsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4156
|
-
this.
|
|
4157
|
-
this.
|
|
4157
|
+
this.ea2_1 = $provider;
|
|
4158
|
+
this.fa2_1 = $action;
|
|
4158
4159
|
CoroutineImpl.call(this, resultContinuation);
|
|
4159
4160
|
}
|
|
4160
4161
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4175,7 +4176,7 @@
|
|
|
4175
4176
|
case 0:
|
|
4176
4177
|
this.f9_1 = 2;
|
|
4177
4178
|
this.e9_1 = 1;
|
|
4178
|
-
suspendResult = this.
|
|
4179
|
+
suspendResult = this.ea2_1.z9t(this.fa2_1, this);
|
|
4179
4180
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4180
4181
|
return suspendResult;
|
|
4181
4182
|
}
|
|
@@ -4198,8 +4199,8 @@
|
|
|
4198
4199
|
while (true);
|
|
4199
4200
|
};
|
|
4200
4201
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4201
|
-
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.
|
|
4202
|
-
i.
|
|
4202
|
+
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.ea2_1, this.fa2_1, completion);
|
|
4203
|
+
i.ga2_1 = $this$launchDefault;
|
|
4203
4204
|
return i;
|
|
4204
4205
|
};
|
|
4205
4206
|
function sendMechanicEventsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4211,8 +4212,8 @@
|
|
|
4211
4212
|
return l;
|
|
4212
4213
|
}
|
|
4213
4214
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4214
|
-
this.
|
|
4215
|
-
this.
|
|
4215
|
+
this.ha2_1 = $asyncProvider;
|
|
4216
|
+
this.ia2_1 = $provider;
|
|
4216
4217
|
}
|
|
4217
4218
|
protoOf(_no_name_provided__qut3iv_4).p6j = function (action) {
|
|
4218
4219
|
return action instanceof MechanicAction;
|
|
@@ -4220,7 +4221,7 @@
|
|
|
4220
4221
|
protoOf(_no_name_provided__qut3iv_4).g6l = function (store, next, action) {
|
|
4221
4222
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendMechanicEventsMiddleware.<anonymous>' call
|
|
4222
4223
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
4223
|
-
this.
|
|
4224
|
+
this.ha2_1.p6g(VOID, sendMechanicEventsMiddleware$o$handle$slambda_0(this.ia2_1, action_0, null));
|
|
4224
4225
|
next(action_0);
|
|
4225
4226
|
};
|
|
4226
4227
|
protoOf(_no_name_provided__qut3iv_4).o6j = function (store, next, action) {
|
|
@@ -4231,8 +4232,8 @@
|
|
|
4231
4232
|
return new _no_name_provided__qut3iv_5(asyncProvider, provider);
|
|
4232
4233
|
}
|
|
4233
4234
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4234
|
-
this.
|
|
4235
|
-
this.
|
|
4235
|
+
this.ra2_1 = $provider;
|
|
4236
|
+
this.sa2_1 = $action;
|
|
4236
4237
|
CoroutineImpl.call(this, resultContinuation);
|
|
4237
4238
|
}
|
|
4238
4239
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4253,7 +4254,7 @@
|
|
|
4253
4254
|
case 0:
|
|
4254
4255
|
this.f9_1 = 2;
|
|
4255
4256
|
this.e9_1 = 1;
|
|
4256
|
-
suspendResult = this.
|
|
4257
|
+
suspendResult = this.ra2_1.o9y(this.sa2_1, this);
|
|
4257
4258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4258
4259
|
return suspendResult;
|
|
4259
4260
|
}
|
|
@@ -4276,8 +4277,8 @@
|
|
|
4276
4277
|
while (true);
|
|
4277
4278
|
};
|
|
4278
4279
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4279
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4280
|
-
i.
|
|
4280
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.ra2_1, this.sa2_1, completion);
|
|
4281
|
+
i.ta2_1 = $this$launchDefault;
|
|
4281
4282
|
return i;
|
|
4282
4283
|
};
|
|
4283
4284
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4289,8 +4290,8 @@
|
|
|
4289
4290
|
return l;
|
|
4290
4291
|
}
|
|
4291
4292
|
function _no_name_provided__qut3iv_5($asyncProvider, $provider) {
|
|
4292
|
-
this.
|
|
4293
|
-
this.
|
|
4293
|
+
this.ua2_1 = $asyncProvider;
|
|
4294
|
+
this.va2_1 = $provider;
|
|
4294
4295
|
}
|
|
4295
4296
|
protoOf(_no_name_provided__qut3iv_5).p6j = function (action) {
|
|
4296
4297
|
return action instanceof ToClientAction;
|
|
@@ -4298,7 +4299,7 @@
|
|
|
4298
4299
|
protoOf(_no_name_provided__qut3iv_5).g6l = function (store, next, action) {
|
|
4299
4300
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4300
4301
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4301
|
-
this.
|
|
4302
|
+
this.ua2_1.p6g(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.va2_1, action_0, null));
|
|
4302
4303
|
next(action_0);
|
|
4303
4304
|
};
|
|
4304
4305
|
protoOf(_no_name_provided__qut3iv_5).o6j = function (store, next, action) {
|
|
@@ -4316,7 +4317,7 @@
|
|
|
4316
4317
|
protoOf(_no_name_provided__qut3iv_6).q9d = function (state, action) {
|
|
4317
4318
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4318
4319
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4319
|
-
return state.f92(VOID, get_serverStatePayload_0(state).
|
|
4320
|
+
return state.f92(VOID, get_serverStatePayload_0(state).wa2(action_0.aa1_1));
|
|
4320
4321
|
};
|
|
4321
4322
|
protoOf(_no_name_provided__qut3iv_6).h6l = function (state, action) {
|
|
4322
4323
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -4341,7 +4342,7 @@
|
|
|
4341
4342
|
}
|
|
4342
4343
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4343
4344
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4344
|
-
this.
|
|
4345
|
+
this.za2_1 = logger;
|
|
4345
4346
|
}
|
|
4346
4347
|
protoOf(ServerMechanicLifecycleReducer).c9f = function (state, action) {
|
|
4347
4348
|
var serverState = get_serverStatePayloadOrNull(state.l6q_1);
|
|
@@ -4357,14 +4358,20 @@
|
|
|
4357
4358
|
var tmp9_tableOrNull = tmp0_$this.i9g(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
4358
4359
|
var tmp;
|
|
4359
4360
|
if (serverState == null) {
|
|
4360
|
-
this.
|
|
4361
|
-
tmp = Companion_instance_10.
|
|
4361
|
+
this.za2_1.w(VOID, 'ServerPayload is not onStart');
|
|
4362
|
+
tmp = Companion_instance_10.t9t();
|
|
4362
4363
|
} else {
|
|
4363
4364
|
tmp = serverState;
|
|
4364
4365
|
}
|
|
4365
4366
|
var tmp10_payload = tmp;
|
|
4366
4367
|
return state.f92(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4367
4368
|
};
|
|
4369
|
+
protoOf(ServerMechanicLifecycleReducer).a9f = function (state, action) {
|
|
4370
|
+
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4371
|
+
var tmp1_tableOrNull = action.z7z_1;
|
|
4372
|
+
var tmp2_payload = new ServerStatePayload(new ServerConfig(false));
|
|
4373
|
+
return state.f92(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
4374
|
+
};
|
|
4368
4375
|
protoOf(ServerMechanicLifecycleReducer).b9f = function (state, action) {
|
|
4369
4376
|
this.e9f_1.g5r(action.previousGameId);
|
|
4370
4377
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
@@ -4376,7 +4383,7 @@
|
|
|
4376
4383
|
return new _no_name_provided__qut3iv_7(logger);
|
|
4377
4384
|
}
|
|
4378
4385
|
function _no_name_provided__qut3iv_7($logger) {
|
|
4379
|
-
this.
|
|
4386
|
+
this.aa3_1 = $logger;
|
|
4380
4387
|
}
|
|
4381
4388
|
protoOf(_no_name_provided__qut3iv_7).p6j = function (action) {
|
|
4382
4389
|
return isInterface(action, SpectatorsAction);
|
|
@@ -4389,7 +4396,7 @@
|
|
|
4389
4396
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4390
4397
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4391
4398
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4392
|
-
var this_0 = action_0.
|
|
4399
|
+
var this_0 = action_0.ba1_1;
|
|
4393
4400
|
var destination = ArrayList_init_$Create$_0();
|
|
4394
4401
|
// Inline function 'kotlin.collections.forEach' call
|
|
4395
4402
|
var tmp0_iterator = this_0.j();
|
|
@@ -4411,10 +4418,10 @@
|
|
|
4411
4418
|
var tmp_0;
|
|
4412
4419
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4413
4420
|
if (!sameSpectators.p()) {
|
|
4414
|
-
this.
|
|
4421
|
+
this.aa3_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4415
4422
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4416
4423
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4417
|
-
var this_1 = action_0.
|
|
4424
|
+
var this_1 = action_0.ba1_1;
|
|
4418
4425
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4419
4426
|
var tmp0_iterator_0 = this_1.j();
|
|
4420
4427
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4450,7 +4457,7 @@
|
|
|
4450
4457
|
}
|
|
4451
4458
|
tmp_0 = destination_0;
|
|
4452
4459
|
} else {
|
|
4453
|
-
tmp_0 = action_0.
|
|
4460
|
+
tmp_0 = action_0.ba1_1;
|
|
4454
4461
|
}
|
|
4455
4462
|
var this_2 = tmp_0;
|
|
4456
4463
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4468,7 +4475,7 @@
|
|
|
4468
4475
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4469
4476
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4470
4477
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4471
|
-
var this_3 = action_0.
|
|
4478
|
+
var this_3 = action_0.ca1_1;
|
|
4472
4479
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4473
4480
|
// Inline function 'kotlin.collections.forEach' call
|
|
4474
4481
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4489,10 +4496,10 @@
|
|
|
4489
4496
|
var tmp_2;
|
|
4490
4497
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4491
4498
|
if (!sameSpectators_0.p()) {
|
|
4492
|
-
this.
|
|
4499
|
+
this.aa3_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4493
4500
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4494
4501
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4495
|
-
var this_4 = action_0.
|
|
4502
|
+
var this_4 = action_0.ca1_1;
|
|
4496
4503
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4497
4504
|
var tmp0_iterator_4 = this_4.j();
|
|
4498
4505
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4528,7 +4535,7 @@
|
|
|
4528
4535
|
}
|
|
4529
4536
|
tmp_2 = destination_3;
|
|
4530
4537
|
} else {
|
|
4531
|
-
tmp_2 = action_0.
|
|
4538
|
+
tmp_2 = action_0.ca1_1;
|
|
4532
4539
|
}
|
|
4533
4540
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4534
4541
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4579,28 +4586,28 @@
|
|
|
4579
4586
|
};
|
|
4580
4587
|
function Companion_2() {
|
|
4581
4588
|
}
|
|
4582
|
-
protoOf(Companion_2).
|
|
4589
|
+
protoOf(Companion_2).ba3 = function (config) {
|
|
4583
4590
|
return new ServerStatePayload(config);
|
|
4584
4591
|
};
|
|
4585
|
-
protoOf(Companion_2).
|
|
4592
|
+
protoOf(Companion_2).t9t = function (config, $super) {
|
|
4586
4593
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
4587
|
-
return $super === VOID ? this.
|
|
4594
|
+
return $super === VOID ? this.ba3(config) : $super.ba3.call(this, config);
|
|
4588
4595
|
};
|
|
4589
4596
|
var Companion_instance_10;
|
|
4590
4597
|
function Companion_getInstance_3() {
|
|
4591
4598
|
return Companion_instance_10;
|
|
4592
4599
|
}
|
|
4593
4600
|
function ServerStatePayload(config) {
|
|
4594
|
-
this.
|
|
4601
|
+
this.d9t_1 = config;
|
|
4595
4602
|
}
|
|
4596
|
-
protoOf(ServerStatePayload).
|
|
4603
|
+
protoOf(ServerStatePayload).wa2 = function (config) {
|
|
4597
4604
|
return new ServerStatePayload(config);
|
|
4598
4605
|
};
|
|
4599
4606
|
protoOf(ServerStatePayload).toString = function () {
|
|
4600
|
-
return 'ServerStatePayload(config=' + this.
|
|
4607
|
+
return 'ServerStatePayload(config=' + this.d9t_1.toString() + ')';
|
|
4601
4608
|
};
|
|
4602
4609
|
protoOf(ServerStatePayload).hashCode = function () {
|
|
4603
|
-
return this.
|
|
4610
|
+
return this.d9t_1.hashCode();
|
|
4604
4611
|
};
|
|
4605
4612
|
protoOf(ServerStatePayload).equals = function (other) {
|
|
4606
4613
|
if (this === other)
|
|
@@ -4608,7 +4615,7 @@
|
|
|
4608
4615
|
if (!(other instanceof ServerStatePayload))
|
|
4609
4616
|
return false;
|
|
4610
4617
|
var tmp0_other_with_cast = other instanceof ServerStatePayload ? other : THROW_CCE();
|
|
4611
|
-
if (!this.
|
|
4618
|
+
if (!this.d9t_1.equals(tmp0_other_with_cast.d9t_1))
|
|
4612
4619
|
return false;
|
|
4613
4620
|
return true;
|
|
4614
4621
|
};
|
|
@@ -4646,13 +4653,13 @@
|
|
|
4646
4653
|
}
|
|
4647
4654
|
function _get_controllerLogger__nbd727($this) {
|
|
4648
4655
|
// Inline function 'kotlin.getValue' call
|
|
4649
|
-
var this_0 = $this.
|
|
4656
|
+
var this_0 = $this.ka3_1;
|
|
4650
4657
|
controllerLogger$factory();
|
|
4651
4658
|
return this_0.u();
|
|
4652
4659
|
}
|
|
4653
4660
|
function _get_di__ndbzja($this) {
|
|
4654
4661
|
// Inline function 'kotlin.getValue' call
|
|
4655
|
-
var this_0 = $this.
|
|
4662
|
+
var this_0 = $this.la3_1;
|
|
4656
4663
|
di$factory();
|
|
4657
4664
|
return this_0.u();
|
|
4658
4665
|
}
|
|
@@ -4663,13 +4670,13 @@
|
|
|
4663
4670
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
4664
4671
|
return function () {
|
|
4665
4672
|
var tmp;
|
|
4666
|
-
if (this$0.
|
|
4673
|
+
if (this$0.ia3_1 == null) {
|
|
4667
4674
|
tmp = null;
|
|
4668
4675
|
} else {
|
|
4669
4676
|
// Inline function 'kotlin.let' call
|
|
4670
4677
|
// Inline function 'kotlin.contracts.contract' call
|
|
4671
4678
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
4672
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4679
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.ia3_1)]));
|
|
4673
4680
|
}
|
|
4674
4681
|
var tmp1_elvis_lhs = tmp;
|
|
4675
4682
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4697,7 +4704,7 @@
|
|
|
4697
4704
|
tmp_0.w61(tmp$ret$3);
|
|
4698
4705
|
$this$DI.a5y(jsonModule());
|
|
4699
4706
|
$this$DI.a5y(serverHelpersModule());
|
|
4700
|
-
$this$DI.a5y(randomOrgModule(this$0.
|
|
4707
|
+
$this$DI.a5y(randomOrgModule(this$0.ja3_1));
|
|
4701
4708
|
return Unit_instance;
|
|
4702
4709
|
};
|
|
4703
4710
|
}
|
|
@@ -4708,13 +4715,13 @@
|
|
|
4708
4715
|
};
|
|
4709
4716
|
}
|
|
4710
4717
|
function _no_name_provided__qut3iv_8($item) {
|
|
4711
|
-
this.
|
|
4718
|
+
this.ra3_1 = $item;
|
|
4712
4719
|
}
|
|
4713
4720
|
protoOf(_no_name_provided__qut3iv_8).p6j = function (action) {
|
|
4714
4721
|
return isInterface(action, Action);
|
|
4715
4722
|
};
|
|
4716
4723
|
protoOf(_no_name_provided__qut3iv_8).q9d = function (state, action) {
|
|
4717
|
-
return this.
|
|
4724
|
+
return this.ra3_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4718
4725
|
};
|
|
4719
4726
|
protoOf(_no_name_provided__qut3iv_8).h6l = function (state, action) {
|
|
4720
4727
|
return this.q9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -4809,7 +4816,7 @@
|
|
|
4809
4816
|
// Inline function 'kotlin.contracts.contract' call
|
|
4810
4817
|
$this$DI.a5y(tmp0_safe_receiver);
|
|
4811
4818
|
}
|
|
4812
|
-
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.
|
|
4819
|
+
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.ja3_1));
|
|
4813
4820
|
$this$DI.a5y(coreModule($coreConfig));
|
|
4814
4821
|
$this$DI.a5y(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4815
4822
|
return Unit_instance;
|
|
@@ -4818,76 +4825,76 @@
|
|
|
4818
4825
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4819
4826
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4820
4827
|
production = production === VOID ? true : production;
|
|
4821
|
-
this.
|
|
4822
|
-
this.
|
|
4828
|
+
this.ia3_1 = loggerCallback;
|
|
4829
|
+
this.ja3_1 = randomOrgConfig;
|
|
4823
4830
|
AppEnvironment_getInstance().s6p(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4824
4831
|
var tmp = this;
|
|
4825
|
-
tmp.
|
|
4832
|
+
tmp.ka3_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4826
4833
|
var tmp_0 = this;
|
|
4827
|
-
tmp_0.
|
|
4834
|
+
tmp_0.la3_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4828
4835
|
var tmp_1 = this;
|
|
4829
4836
|
// Inline function 'org.kodein.di.instance' call
|
|
4830
4837
|
var this_0 = _get_di__ndbzja(this);
|
|
4831
4838
|
// Inline function 'org.kodein.type.generic' call
|
|
4832
4839
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4833
4840
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4834
|
-
tmp_1.
|
|
4841
|
+
tmp_1.ma3_1 = Instance(this_0, tmp$ret$0, null).t63(this, parser$factory());
|
|
4835
4842
|
var tmp_3 = this;
|
|
4836
4843
|
// Inline function 'org.kodein.di.instance' call
|
|
4837
4844
|
var this_1 = _get_di__ndbzja(this);
|
|
4838
4845
|
// Inline function 'org.kodein.type.generic' call
|
|
4839
4846
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4840
4847
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4841
|
-
tmp_3.
|
|
4848
|
+
tmp_3.na3_1 = Instance(this_1, tmp$ret$2, null).t63(this, helper$factory());
|
|
4842
4849
|
var tmp_5 = this;
|
|
4843
4850
|
// Inline function 'org.kodein.di.instance' call
|
|
4844
4851
|
var this_2 = _get_di__ndbzja(this);
|
|
4845
4852
|
// Inline function 'org.kodein.type.generic' call
|
|
4846
4853
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4847
4854
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4848
|
-
tmp_5.
|
|
4855
|
+
tmp_5.oa3_1 = Instance(this_2, tmp$ret$4, null).t63(this, resources$factory());
|
|
4849
4856
|
var tmp_7 = this;
|
|
4850
4857
|
// Inline function 'org.kodein.di.instance' call
|
|
4851
4858
|
var this_3 = _get_di__ndbzja(this);
|
|
4852
4859
|
// Inline function 'org.kodein.type.generic' call
|
|
4853
4860
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4854
4861
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4855
|
-
tmp_7.
|
|
4862
|
+
tmp_7.pa3_1 = Instance(this_3, tmp$ret$6, null).t63(this, test$factory());
|
|
4856
4863
|
var tmp_9 = this;
|
|
4857
4864
|
// Inline function 'org.kodein.di.instance' call
|
|
4858
4865
|
var this_4 = _get_di__ndbzja(this);
|
|
4859
4866
|
// Inline function 'org.kodein.type.generic' call
|
|
4860
4867
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4861
4868
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4862
|
-
tmp_9.
|
|
4869
|
+
tmp_9.qa3_1 = Instance(this_4, tmp$ret$8, null).t63(this, randomPoolProvider$factory());
|
|
4863
4870
|
}
|
|
4864
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4871
|
+
protoOf(GameServerEngineControllerImpl).ca3 = function () {
|
|
4865
4872
|
// Inline function 'kotlin.getValue' call
|
|
4866
|
-
var this_0 = this.
|
|
4873
|
+
var this_0 = this.ma3_1;
|
|
4867
4874
|
parser$factory_0();
|
|
4868
4875
|
return this_0.u();
|
|
4869
4876
|
};
|
|
4870
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4877
|
+
protoOf(GameServerEngineControllerImpl).ea3 = function () {
|
|
4871
4878
|
// Inline function 'kotlin.getValue' call
|
|
4872
|
-
var this_0 = this.
|
|
4879
|
+
var this_0 = this.na3_1;
|
|
4873
4880
|
helper$factory_0();
|
|
4874
4881
|
return this_0.u();
|
|
4875
4882
|
};
|
|
4876
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4883
|
+
protoOf(GameServerEngineControllerImpl).fa3 = function () {
|
|
4877
4884
|
// Inline function 'kotlin.getValue' call
|
|
4878
|
-
var this_0 = this.
|
|
4885
|
+
var this_0 = this.oa3_1;
|
|
4879
4886
|
resources$factory_0();
|
|
4880
4887
|
return this_0.u();
|
|
4881
4888
|
};
|
|
4882
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4889
|
+
protoOf(GameServerEngineControllerImpl).da3 = function () {
|
|
4883
4890
|
// Inline function 'kotlin.getValue' call
|
|
4884
|
-
var this_0 = this.
|
|
4891
|
+
var this_0 = this.pa3_1;
|
|
4885
4892
|
test$factory_0();
|
|
4886
4893
|
return this_0.u();
|
|
4887
4894
|
};
|
|
4888
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4895
|
+
protoOf(GameServerEngineControllerImpl).ga3 = function () {
|
|
4889
4896
|
// Inline function 'kotlin.getValue' call
|
|
4890
|
-
var this_0 = this.
|
|
4897
|
+
var this_0 = this.qa3_1;
|
|
4891
4898
|
randomPoolProvider$factory_0();
|
|
4892
4899
|
return this_0.u();
|
|
4893
4900
|
};
|
|
@@ -4897,7 +4904,7 @@
|
|
|
4897
4904
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4898
4905
|
return this.createGameEngineWithLogic();
|
|
4899
4906
|
};
|
|
4900
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4907
|
+
protoOf(GameServerEngineControllerImpl).ha3 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4901
4908
|
var combinedLogger = Companion_instance_6.qm();
|
|
4902
4909
|
var tmp;
|
|
4903
4910
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4907,8 +4914,8 @@
|
|
|
4907
4914
|
}
|
|
4908
4915
|
var fileLoggerOutput = tmp;
|
|
4909
4916
|
var tmp_0;
|
|
4910
|
-
if (!(this.
|
|
4911
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4917
|
+
if (!(this.ia3_1 == null)) {
|
|
4918
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.ia3_1));
|
|
4912
4919
|
} else {
|
|
4913
4920
|
tmp_0 = null;
|
|
4914
4921
|
}
|
|
@@ -5025,13 +5032,13 @@
|
|
|
5025
5032
|
}
|
|
5026
5033
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
5027
5034
|
// Inline function 'kotlin.getValue' call
|
|
5028
|
-
var this_0 = $this.
|
|
5035
|
+
var this_0 = $this.ua3_1;
|
|
5029
5036
|
playerAnswerInteractor$factory_0();
|
|
5030
5037
|
return this_0.u();
|
|
5031
5038
|
}
|
|
5032
5039
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5033
5040
|
return function ($this$singleton) {
|
|
5034
|
-
return this$0.
|
|
5041
|
+
return this$0.sa3_1;
|
|
5035
5042
|
};
|
|
5036
5043
|
}
|
|
5037
5044
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5060,17 +5067,17 @@
|
|
|
5060
5067
|
return emptyMap();
|
|
5061
5068
|
}
|
|
5062
5069
|
function TestHelperImpl(logger) {
|
|
5063
|
-
this.
|
|
5070
|
+
this.sa3_1 = logger;
|
|
5064
5071
|
var tmp = this;
|
|
5065
5072
|
var tmp_0 = Companion_instance_3;
|
|
5066
|
-
tmp.
|
|
5073
|
+
tmp.ta3_1 = tmp_0.h5y(VOID, TestHelperImpl$di$lambda(this));
|
|
5067
5074
|
var tmp_1 = this;
|
|
5068
5075
|
// Inline function 'org.kodein.di.instance' call
|
|
5069
|
-
var this_0 = this.
|
|
5076
|
+
var this_0 = this.ta3_1;
|
|
5070
5077
|
// Inline function 'org.kodein.type.generic' call
|
|
5071
5078
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5072
5079
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5073
|
-
tmp_1.
|
|
5080
|
+
tmp_1.ua3_1 = Instance(this_0, tmp$ret$0, null).t63(this, playerAnswerInteractor$factory());
|
|
5074
5081
|
}
|
|
5075
5082
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5076
5083
|
return _get_playerAnswerInteractor__msggz1(this).c8t(playerId, table, botConfig);
|
|
@@ -5217,19 +5224,19 @@
|
|
|
5217
5224
|
});
|
|
5218
5225
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5219
5226
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5220
|
-
return this.
|
|
5227
|
+
return this.ca3();
|
|
5221
5228
|
});
|
|
5222
5229
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5223
|
-
return this.
|
|
5230
|
+
return this.ea3();
|
|
5224
5231
|
});
|
|
5225
5232
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5226
|
-
return this.
|
|
5233
|
+
return this.fa3();
|
|
5227
5234
|
});
|
|
5228
5235
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5229
|
-
return this.
|
|
5236
|
+
return this.da3();
|
|
5230
5237
|
});
|
|
5231
5238
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5232
|
-
return this.
|
|
5239
|
+
return this.ga3();
|
|
5233
5240
|
});
|
|
5234
5241
|
//endregion
|
|
5235
5242
|
//region block: init
|