raspberry_games_server_game_logic 1.8.279 → 1.8.281
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 +1 -1
- package/Logic_Debertz-core.js +1492 -1443
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +10953 -10950
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +2 -2
- package/Logic_Debertz-game_server.js +812 -796
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
62
62
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
63
63
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
64
|
-
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
64
|
+
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.p2;
|
|
65
65
|
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
66
66
|
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
|
|
67
|
-
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
67
|
+
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
|
|
68
68
|
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
|
|
69
|
-
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
70
|
-
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
69
|
+
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.o3;
|
|
70
|
+
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
71
71
|
var toList = kotlin_kotlin.$_$.t9;
|
|
72
72
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
73
73
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
77
77
|
var firstOrNull = kotlin_kotlin.$_$.r7;
|
|
78
78
|
var toMutableList = kotlin_kotlin.$_$.w9;
|
|
79
|
-
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
79
|
+
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.c3;
|
|
80
80
|
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.s4;
|
|
81
81
|
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.n2;
|
|
82
|
-
var
|
|
82
|
+
var RestartRoundReason = kotlin_io_raspberryapps_game_engine_core.$_$.n1;
|
|
83
83
|
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y1;
|
|
84
84
|
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
|
|
85
85
|
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t2;
|
|
86
|
-
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
86
|
+
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.s3;
|
|
87
87
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.j1;
|
|
88
88
|
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.p3;
|
|
89
89
|
var toString = kotlin_kotlin.$_$.yc;
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
var GameToRoomTransition = kotlin_io_raspberryapps_game_engine_engine.$_$.c2;
|
|
92
92
|
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a2;
|
|
93
93
|
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
|
|
94
|
-
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
94
|
+
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.e3;
|
|
95
95
|
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.b4;
|
|
96
|
-
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
96
|
+
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w3;
|
|
97
97
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
|
|
98
|
-
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
98
|
+
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u3;
|
|
99
99
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ph;
|
|
100
100
|
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
101
101
|
var emptyList = kotlin_kotlin.$_$.n7;
|
|
@@ -109,9 +109,10 @@
|
|
|
109
109
|
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
|
|
110
110
|
var TeamsLogicProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
|
|
111
111
|
var lazy = kotlin_kotlin.$_$.oh;
|
|
112
|
-
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
112
|
+
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.p1;
|
|
113
113
|
var plus = kotlin_kotlin.$_$.z8;
|
|
114
114
|
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
115
|
+
var toString_0 = kotlin_kotlin.$_$.vh;
|
|
115
116
|
var KProperty1 = kotlin_kotlin.$_$.pd;
|
|
116
117
|
var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
|
|
117
118
|
var to = kotlin_kotlin.$_$.wh;
|
|
@@ -153,14 +154,14 @@
|
|
|
153
154
|
var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
154
155
|
var toLong = kotlin_kotlin.$_$.wc;
|
|
155
156
|
var flatMapConcat = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
156
|
-
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
157
|
-
var Action = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
157
|
+
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.l2;
|
|
158
|
+
var Action = kotlin_io_raspberryapps_game_engine_core.$_$.m2;
|
|
158
159
|
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.b3;
|
|
159
160
|
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.a3;
|
|
160
161
|
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
|
|
161
162
|
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.y2;
|
|
162
163
|
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.x2;
|
|
163
|
-
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
164
|
+
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
|
|
164
165
|
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
165
166
|
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.l;
|
|
166
167
|
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
|
|
@@ -176,7 +177,7 @@
|
|
|
176
177
|
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.h3;
|
|
177
178
|
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.d3;
|
|
178
179
|
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w1;
|
|
179
|
-
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
180
|
+
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.n2;
|
|
180
181
|
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
|
|
181
182
|
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
|
|
182
183
|
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.l1;
|
|
@@ -217,9 +218,9 @@
|
|
|
217
218
|
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.i1;
|
|
218
219
|
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
|
|
219
220
|
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.e1;
|
|
220
|
-
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
221
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
222
|
-
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
221
|
+
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.o2;
|
|
222
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.i4;
|
|
223
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.g4;
|
|
223
224
|
var Companion_getInstance = kotlin_kotlin.$_$.g5;
|
|
224
225
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
225
226
|
var toDuration = kotlin_kotlin.$_$.zf;
|
|
@@ -238,26 +239,26 @@
|
|
|
238
239
|
var mutableListOf = kotlin_kotlin.$_$.v8;
|
|
239
240
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
240
241
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
241
|
-
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
242
|
+
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.u1;
|
|
242
243
|
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
|
|
243
244
|
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
|
|
244
245
|
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.q3;
|
|
245
246
|
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
246
247
|
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.c4;
|
|
247
248
|
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
|
|
248
|
-
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
249
|
-
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
250
|
-
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
249
|
+
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.r1;
|
|
250
|
+
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.t1;
|
|
251
|
+
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.s1;
|
|
251
252
|
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u4;
|
|
252
|
-
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
253
|
-
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
253
|
+
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.e4;
|
|
254
|
+
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.f4;
|
|
254
255
|
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
255
256
|
var GameHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
256
257
|
var GameResources = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
257
258
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
258
259
|
var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
259
260
|
var toList_0 = kotlin_kotlin.$_$.s9;
|
|
260
|
-
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
261
|
+
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.r2;
|
|
261
262
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.g;
|
|
262
263
|
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.o;
|
|
263
264
|
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
@@ -305,15 +306,15 @@
|
|
|
305
306
|
tmp = spectators;
|
|
306
307
|
}
|
|
307
308
|
spectators = tmp;
|
|
308
|
-
return this.
|
|
309
|
+
return this.b9u(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
309
310
|
}
|
|
310
311
|
function roomOnDelete(newRid, $super) {
|
|
311
312
|
newRid = newRid === VOID ? null : newRid;
|
|
312
|
-
return this.
|
|
313
|
+
return this.c9u(newRid);
|
|
313
314
|
}
|
|
314
315
|
function shutdown(reason, roomId, $super) {
|
|
315
316
|
roomId = roomId === VOID ? null : roomId;
|
|
316
|
-
return this.
|
|
317
|
+
return this.d9u(reason, roomId);
|
|
317
318
|
}
|
|
318
319
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
319
320
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -386,7 +387,7 @@
|
|
|
386
387
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
387
388
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
388
389
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
389
|
-
return this.
|
|
390
|
+
return this.pa3(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
390
391
|
}
|
|
391
392
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
392
393
|
initMetadataForClass(_no_name_provided__qut3iv_8, VOID, VOID, VOID, [Reducer]);
|
|
@@ -395,17 +396,17 @@
|
|
|
395
396
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
396
397
|
//endregion
|
|
397
398
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
398
|
-
this.
|
|
399
|
+
this.a9k_1 = $subscriber;
|
|
399
400
|
CoroutineImpl.call(this, resultContinuation);
|
|
400
401
|
}
|
|
401
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
402
|
-
var tmp = this.
|
|
402
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).c9k = function (it, $completion) {
|
|
403
|
+
var tmp = this.d9k(it, $completion);
|
|
403
404
|
tmp.g9_1 = Unit_instance;
|
|
404
405
|
tmp.h9_1 = null;
|
|
405
406
|
return tmp.m9();
|
|
406
407
|
};
|
|
407
408
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
408
|
-
return this.
|
|
409
|
+
return this.c9k(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
409
410
|
};
|
|
410
411
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
411
412
|
var suspendResult = this.g9_1;
|
|
@@ -414,7 +415,7 @@
|
|
|
414
415
|
var tmp = this.e9_1;
|
|
415
416
|
if (tmp === 0) {
|
|
416
417
|
this.f9_1 = 1;
|
|
417
|
-
this.
|
|
418
|
+
this.a9k_1(this.b9k_1);
|
|
418
419
|
return Unit_instance;
|
|
419
420
|
} else if (tmp === 1) {
|
|
420
421
|
throw this.h9_1;
|
|
@@ -425,31 +426,31 @@
|
|
|
425
426
|
}
|
|
426
427
|
while (true);
|
|
427
428
|
};
|
|
428
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
429
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
430
|
-
i.
|
|
429
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).d9k = function (it, completion) {
|
|
430
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.a9k_1, completion);
|
|
431
|
+
i.b9k_1 = it;
|
|
431
432
|
return i;
|
|
432
433
|
};
|
|
433
434
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
434
435
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
435
436
|
var l = function (it, $completion) {
|
|
436
|
-
return i.
|
|
437
|
+
return i.c9k(it, $completion);
|
|
437
438
|
};
|
|
438
439
|
l.$arity = 1;
|
|
439
440
|
return l;
|
|
440
441
|
}
|
|
441
442
|
function GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation) {
|
|
442
|
-
this.
|
|
443
|
+
this.m9k_1 = $subscriber;
|
|
443
444
|
CoroutineImpl.call(this, resultContinuation);
|
|
444
445
|
}
|
|
445
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
446
|
-
var tmp = this.
|
|
446
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).o9k = function (it, $completion) {
|
|
447
|
+
var tmp = this.p9k(it, $completion);
|
|
447
448
|
tmp.g9_1 = Unit_instance;
|
|
448
449
|
tmp.h9_1 = null;
|
|
449
450
|
return tmp.m9();
|
|
450
451
|
};
|
|
451
452
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).w9 = function (p1, $completion) {
|
|
452
|
-
return this.
|
|
453
|
+
return this.o9k((!(p1 == null) ? isInterface(p1, ServerStateUpdate) : false) ? p1 : THROW_CCE(), $completion);
|
|
453
454
|
};
|
|
454
455
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).m9 = function () {
|
|
455
456
|
var suspendResult = this.g9_1;
|
|
@@ -458,7 +459,7 @@
|
|
|
458
459
|
var tmp = this.e9_1;
|
|
459
460
|
if (tmp === 0) {
|
|
460
461
|
this.f9_1 = 1;
|
|
461
|
-
this.
|
|
462
|
+
this.m9k_1(this.n9k_1);
|
|
462
463
|
return Unit_instance;
|
|
463
464
|
} else if (tmp === 1) {
|
|
464
465
|
throw this.h9_1;
|
|
@@ -469,31 +470,31 @@
|
|
|
469
470
|
}
|
|
470
471
|
while (true);
|
|
471
472
|
};
|
|
472
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
473
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.
|
|
474
|
-
i.
|
|
473
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).p9k = function (it, completion) {
|
|
474
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.m9k_1, completion);
|
|
475
|
+
i.n9k_1 = it;
|
|
475
476
|
return i;
|
|
476
477
|
};
|
|
477
478
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_0($subscriber, resultContinuation) {
|
|
478
479
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda($subscriber, resultContinuation);
|
|
479
480
|
var l = function (it, $completion) {
|
|
480
|
-
return i.
|
|
481
|
+
return i.o9k(it, $completion);
|
|
481
482
|
};
|
|
482
483
|
l.$arity = 1;
|
|
483
484
|
return l;
|
|
484
485
|
}
|
|
485
486
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
486
|
-
this.
|
|
487
|
+
this.y9k_1 = $subscriber;
|
|
487
488
|
CoroutineImpl.call(this, resultContinuation);
|
|
488
489
|
}
|
|
489
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
490
|
-
var tmp = this.
|
|
490
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).a9l = function (it, $completion) {
|
|
491
|
+
var tmp = this.b9l(it, $completion);
|
|
491
492
|
tmp.g9_1 = Unit_instance;
|
|
492
493
|
tmp.h9_1 = null;
|
|
493
494
|
return tmp.m9();
|
|
494
495
|
};
|
|
495
496
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
496
|
-
return this.
|
|
497
|
+
return this.a9l(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
497
498
|
};
|
|
498
499
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
499
500
|
var suspendResult = this.g9_1;
|
|
@@ -502,7 +503,7 @@
|
|
|
502
503
|
var tmp = this.e9_1;
|
|
503
504
|
if (tmp === 0) {
|
|
504
505
|
this.f9_1 = 1;
|
|
505
|
-
this.
|
|
506
|
+
this.y9k_1(this.z9k_1);
|
|
506
507
|
return Unit_instance;
|
|
507
508
|
} else if (tmp === 1) {
|
|
508
509
|
throw this.h9_1;
|
|
@@ -513,82 +514,82 @@
|
|
|
513
514
|
}
|
|
514
515
|
while (true);
|
|
515
516
|
};
|
|
516
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
517
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
518
|
-
i.
|
|
517
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).b9l = function (it, completion) {
|
|
518
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.y9k_1, completion);
|
|
519
|
+
i.z9k_1 = it;
|
|
519
520
|
return i;
|
|
520
521
|
};
|
|
521
522
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
522
523
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
523
524
|
var l = function (it, $completion) {
|
|
524
|
-
return i.
|
|
525
|
+
return i.a9l(it, $completion);
|
|
525
526
|
};
|
|
526
527
|
l.$arity = 1;
|
|
527
528
|
return l;
|
|
528
529
|
}
|
|
529
|
-
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($
|
|
530
|
-
this.
|
|
530
|
+
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($playerId) {
|
|
531
|
+
this.c9l_1 = $playerId;
|
|
531
532
|
}
|
|
532
|
-
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).
|
|
533
|
-
return this.
|
|
533
|
+
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).h6a = function () {
|
|
534
|
+
return this.c9l_1;
|
|
534
535
|
};
|
|
535
536
|
function _get_logger__rkp4sl($this) {
|
|
536
537
|
// Inline function 'kotlin.getValue' call
|
|
537
|
-
var this_0 = $this.
|
|
538
|
+
var this_0 = $this.f9l_1;
|
|
538
539
|
logger$factory_0();
|
|
539
540
|
return this_0.u();
|
|
540
541
|
}
|
|
541
542
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
542
543
|
// Inline function 'kotlin.getValue' call
|
|
543
|
-
var this_0 = $this.
|
|
544
|
+
var this_0 = $this.g9l_1;
|
|
544
545
|
toClientEventsObserver$factory_0();
|
|
545
546
|
return this_0.u();
|
|
546
547
|
}
|
|
547
548
|
function _get_mechanicEventsObserver__ll1b9k($this) {
|
|
548
549
|
// Inline function 'kotlin.getValue' call
|
|
549
|
-
var this_0 = $this.
|
|
550
|
+
var this_0 = $this.h9l_1;
|
|
550
551
|
mechanicEventsObserver$factory_0();
|
|
551
552
|
return this_0.u();
|
|
552
553
|
}
|
|
553
554
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
554
555
|
// Inline function 'kotlin.getValue' call
|
|
555
|
-
var this_0 = $this.
|
|
556
|
+
var this_0 = $this.i9l_1;
|
|
556
557
|
playerConnectionInteractor$factory_0();
|
|
557
558
|
return this_0.u();
|
|
558
559
|
}
|
|
559
560
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
560
561
|
// Inline function 'kotlin.getValue' call
|
|
561
|
-
var this_0 = $this.
|
|
562
|
+
var this_0 = $this.j9l_1;
|
|
562
563
|
teamsLogicProvider$factory_0();
|
|
563
564
|
return this_0.u();
|
|
564
565
|
}
|
|
565
566
|
function _get_random__h29cgo($this) {
|
|
566
567
|
// Inline function 'kotlin.getValue' call
|
|
567
|
-
var this_0 = $this.
|
|
568
|
+
var this_0 = $this.k9l_1;
|
|
568
569
|
random$factory();
|
|
569
570
|
return this_0.u();
|
|
570
571
|
}
|
|
571
572
|
function _get_idsProvider__fnfajc($this) {
|
|
572
573
|
// Inline function 'kotlin.getValue' call
|
|
573
|
-
var this_0 = $this.
|
|
574
|
+
var this_0 = $this.l9l_1;
|
|
574
575
|
idsProvider$factory_0();
|
|
575
576
|
return this_0.u();
|
|
576
577
|
}
|
|
577
578
|
function Companion() {
|
|
578
|
-
this.
|
|
579
|
+
this.n9l_1 = 'GameEngine_API';
|
|
579
580
|
}
|
|
580
581
|
var Companion_instance_7;
|
|
581
582
|
function Companion_getInstance_0() {
|
|
582
583
|
return Companion_instance_7;
|
|
583
584
|
}
|
|
584
585
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
585
|
-
this.
|
|
586
|
+
this.o9l_1 = function_0;
|
|
586
587
|
}
|
|
587
588
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
588
|
-
return this.
|
|
589
|
+
return this.o9l_1(value, $completion);
|
|
589
590
|
};
|
|
590
591
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
591
|
-
return this.
|
|
592
|
+
return this.o9l_1;
|
|
592
593
|
};
|
|
593
594
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
594
595
|
var tmp;
|
|
@@ -609,13 +610,13 @@
|
|
|
609
610
|
return hashCode(this.o3());
|
|
610
611
|
};
|
|
611
612
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
612
|
-
this.
|
|
613
|
+
this.p9l_1 = function_0;
|
|
613
614
|
}
|
|
614
615
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
615
|
-
return this.
|
|
616
|
+
return this.p9l_1(value, $completion);
|
|
616
617
|
};
|
|
617
618
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
618
|
-
return this.
|
|
619
|
+
return this.p9l_1;
|
|
619
620
|
};
|
|
620
621
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
621
622
|
var tmp;
|
|
@@ -636,13 +637,13 @@
|
|
|
636
637
|
return hashCode(this.o3());
|
|
637
638
|
};
|
|
638
639
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
639
|
-
this.
|
|
640
|
+
this.q9l_1 = function_0;
|
|
640
641
|
}
|
|
641
642
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).p18 = function (value, $completion) {
|
|
642
|
-
return this.
|
|
643
|
+
return this.q9l_1(value, $completion);
|
|
643
644
|
};
|
|
644
645
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).o3 = function () {
|
|
645
|
-
return this.
|
|
646
|
+
return this.q9l_1;
|
|
646
647
|
};
|
|
647
648
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
648
649
|
var tmp;
|
|
@@ -668,8 +669,8 @@
|
|
|
668
669
|
};
|
|
669
670
|
}
|
|
670
671
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
672
|
+
this.z9l_1 = this$0;
|
|
673
|
+
this.a9m_1 = $subscriber;
|
|
673
674
|
CoroutineImpl.call(this, resultContinuation);
|
|
674
675
|
}
|
|
675
676
|
protoOf(GameServer$subscribeToClientAction$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -690,8 +691,8 @@
|
|
|
690
691
|
case 0:
|
|
691
692
|
this.f9_1 = 2;
|
|
692
693
|
this.e9_1 = 1;
|
|
693
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
694
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
694
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.z9l_1).c9m();
|
|
695
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.a9m_1, null);
|
|
695
696
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
696
697
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
697
698
|
return suspendResult;
|
|
@@ -715,8 +716,8 @@
|
|
|
715
716
|
while (true);
|
|
716
717
|
};
|
|
717
718
|
protoOf(GameServer$subscribeToClientAction$slambda).l1e = function ($this$launchDefault, completion) {
|
|
718
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
719
|
-
i.
|
|
719
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.z9l_1, this.a9m_1, completion);
|
|
720
|
+
i.b9m_1 = $this$launchDefault;
|
|
720
721
|
return i;
|
|
721
722
|
};
|
|
722
723
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -728,8 +729,8 @@
|
|
|
728
729
|
return l;
|
|
729
730
|
}
|
|
730
731
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
732
|
+
this.l9m_1 = this$0;
|
|
733
|
+
this.m9m_1 = $subscriber;
|
|
733
734
|
CoroutineImpl.call(this, resultContinuation);
|
|
734
735
|
}
|
|
735
736
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -750,8 +751,8 @@
|
|
|
750
751
|
case 0:
|
|
751
752
|
this.f9_1 = 2;
|
|
752
753
|
this.e9_1 = 1;
|
|
753
|
-
var tmp_0 = _get_mechanicEventsObserver__ll1b9k(this.
|
|
754
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
754
|
+
var tmp_0 = _get_mechanicEventsObserver__ll1b9k(this.l9m_1).o9m(this.l9m_1.l6q());
|
|
755
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.m9m_1, null);
|
|
755
756
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
756
757
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
757
758
|
return suspendResult;
|
|
@@ -775,8 +776,8 @@
|
|
|
775
776
|
while (true);
|
|
776
777
|
};
|
|
777
778
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).l1e = function ($this$launchDefault, completion) {
|
|
778
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
779
|
-
i.
|
|
779
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.l9m_1, this.m9m_1, completion);
|
|
780
|
+
i.n9m_1 = $this$launchDefault;
|
|
780
781
|
return i;
|
|
781
782
|
};
|
|
782
783
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -788,8 +789,8 @@
|
|
|
788
789
|
return l;
|
|
789
790
|
}
|
|
790
791
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
792
|
+
this.x9m_1 = this$0;
|
|
793
|
+
this.y9m_1 = $subscriber;
|
|
793
794
|
CoroutineImpl.call(this, resultContinuation);
|
|
794
795
|
}
|
|
795
796
|
protoOf(GameServer$subscribeWith$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -810,8 +811,8 @@
|
|
|
810
811
|
case 0:
|
|
811
812
|
this.f9_1 = 2;
|
|
812
813
|
this.e9_1 = 1;
|
|
813
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
814
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
814
|
+
var tmp_0 = distinctUntilChanged(this.x9m_1.l6q());
|
|
815
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.y9m_1, null);
|
|
815
816
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
816
817
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
817
818
|
return suspendResult;
|
|
@@ -835,8 +836,8 @@
|
|
|
835
836
|
while (true);
|
|
836
837
|
};
|
|
837
838
|
protoOf(GameServer$subscribeWith$slambda).l1e = function ($this$launchDefault, completion) {
|
|
838
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
839
|
-
i.
|
|
839
|
+
var i = new GameServer$subscribeWith$slambda(this.x9m_1, this.y9m_1, completion);
|
|
840
|
+
i.z9m_1 = $this$launchDefault;
|
|
840
841
|
return i;
|
|
841
842
|
};
|
|
842
843
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -848,18 +849,18 @@
|
|
|
848
849
|
return l;
|
|
849
850
|
}
|
|
850
851
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
851
|
-
this.
|
|
852
|
+
this.i9n_1 = $action;
|
|
852
853
|
CoroutineImpl.call(this, resultContinuation);
|
|
853
854
|
}
|
|
854
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
855
|
-
var tmp = this.
|
|
855
|
+
protoOf(GameServer$fromClientEvent$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
856
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
856
857
|
tmp.g9_1 = Unit_instance;
|
|
857
858
|
tmp.h9_1 = null;
|
|
858
859
|
return tmp.m9();
|
|
859
860
|
};
|
|
860
861
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
861
862
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
862
|
-
return this.
|
|
863
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
863
864
|
};
|
|
864
865
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
865
866
|
var suspendResult = this.g9_1;
|
|
@@ -868,11 +869,11 @@
|
|
|
868
869
|
var tmp = this.e9_1;
|
|
869
870
|
if (tmp === 0) {
|
|
870
871
|
this.f9_1 = 1;
|
|
871
|
-
if (this.
|
|
872
|
-
if (!get_isCreated(this.
|
|
872
|
+
if (this.i9n_1 instanceof PlayerReadyFromClientAction)
|
|
873
|
+
if (!get_isCreated(this.k9n_1.state)) {
|
|
873
874
|
return Unit_instance;
|
|
874
875
|
}
|
|
875
|
-
this.
|
|
876
|
+
this.k9n_1.dispatch(this.i9n_1);
|
|
876
877
|
return Unit_instance;
|
|
877
878
|
} else if (tmp === 1) {
|
|
878
879
|
throw this.h9_1;
|
|
@@ -883,33 +884,33 @@
|
|
|
883
884
|
}
|
|
884
885
|
while (true);
|
|
885
886
|
};
|
|
886
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
887
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
888
|
-
i.
|
|
889
|
-
i.
|
|
887
|
+
protoOf(GameServer$fromClientEvent$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
888
|
+
var i = new GameServer$fromClientEvent$slambda(this.i9n_1, completion);
|
|
889
|
+
i.j9n_1 = $this$dispatchAsync;
|
|
890
|
+
i.k9n_1 = store;
|
|
890
891
|
return i;
|
|
891
892
|
};
|
|
892
893
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
893
894
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
894
895
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
895
|
-
return i.
|
|
896
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
896
897
|
};
|
|
897
898
|
l.$arity = 2;
|
|
898
899
|
return l;
|
|
899
900
|
}
|
|
900
901
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
901
|
-
this.
|
|
902
|
+
this.v9n_1 = $playerId;
|
|
902
903
|
CoroutineImpl.call(this, resultContinuation);
|
|
903
904
|
}
|
|
904
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
905
|
-
var tmp = this.
|
|
905
|
+
protoOf(GameServer$playerLostConnection$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
906
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
906
907
|
tmp.g9_1 = Unit_instance;
|
|
907
908
|
tmp.h9_1 = null;
|
|
908
909
|
return tmp.m9();
|
|
909
910
|
};
|
|
910
911
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
911
912
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
912
|
-
return this.
|
|
913
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
913
914
|
};
|
|
914
915
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
915
916
|
var suspendResult = this.g9_1;
|
|
@@ -918,12 +919,12 @@
|
|
|
918
919
|
var tmp = this.e9_1;
|
|
919
920
|
if (tmp === 0) {
|
|
920
921
|
this.f9_1 = 1;
|
|
921
|
-
if (!get_isCreated(this.
|
|
922
|
+
if (!get_isCreated(this.x9n_1.state)) {
|
|
922
923
|
return Unit_instance;
|
|
923
924
|
}
|
|
924
|
-
var tmp_0 = this.
|
|
925
|
+
var tmp_0 = this.x9n_1.dispatch;
|
|
925
926
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
926
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
927
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.v9n_1));
|
|
927
928
|
return Unit_instance;
|
|
928
929
|
} else if (tmp === 1) {
|
|
929
930
|
throw this.h9_1;
|
|
@@ -934,33 +935,33 @@
|
|
|
934
935
|
}
|
|
935
936
|
while (true);
|
|
936
937
|
};
|
|
937
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
938
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
939
|
-
i.
|
|
940
|
-
i.
|
|
938
|
+
protoOf(GameServer$playerLostConnection$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
939
|
+
var i = new GameServer$playerLostConnection$slambda(this.v9n_1, completion);
|
|
940
|
+
i.w9n_1 = $this$dispatchAsync;
|
|
941
|
+
i.x9n_1 = store;
|
|
941
942
|
return i;
|
|
942
943
|
};
|
|
943
944
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
944
945
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
945
946
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
946
|
-
return i.
|
|
947
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
947
948
|
};
|
|
948
949
|
l.$arity = 2;
|
|
949
950
|
return l;
|
|
950
951
|
}
|
|
951
952
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
952
|
-
this.
|
|
953
|
+
this.g9o_1 = $playerId;
|
|
953
954
|
CoroutineImpl.call(this, resultContinuation);
|
|
954
955
|
}
|
|
955
|
-
protoOf(GameServer$playerLive$slambda).
|
|
956
|
-
var tmp = this.
|
|
956
|
+
protoOf(GameServer$playerLive$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
957
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
957
958
|
tmp.g9_1 = Unit_instance;
|
|
958
959
|
tmp.h9_1 = null;
|
|
959
960
|
return tmp.m9();
|
|
960
961
|
};
|
|
961
962
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
962
963
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
963
|
-
return this.
|
|
964
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
964
965
|
};
|
|
965
966
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
966
967
|
var suspendResult = this.g9_1;
|
|
@@ -969,9 +970,9 @@
|
|
|
969
970
|
var tmp = this.e9_1;
|
|
970
971
|
if (tmp === 0) {
|
|
971
972
|
this.f9_1 = 1;
|
|
972
|
-
var tmp_0 = this.
|
|
973
|
+
var tmp_0 = this.i9o_1.dispatch;
|
|
973
974
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
974
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
975
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.g9o_1));
|
|
975
976
|
return Unit_instance;
|
|
976
977
|
} else if (tmp === 1) {
|
|
977
978
|
throw this.h9_1;
|
|
@@ -982,33 +983,33 @@
|
|
|
982
983
|
}
|
|
983
984
|
while (true);
|
|
984
985
|
};
|
|
985
|
-
protoOf(GameServer$playerLive$slambda).
|
|
986
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
987
|
-
i.
|
|
988
|
-
i.
|
|
986
|
+
protoOf(GameServer$playerLive$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
987
|
+
var i = new GameServer$playerLive$slambda(this.g9o_1, completion);
|
|
988
|
+
i.h9o_1 = $this$dispatchAsync;
|
|
989
|
+
i.i9o_1 = store;
|
|
989
990
|
return i;
|
|
990
991
|
};
|
|
991
992
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
992
993
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
993
994
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
994
|
-
return i.
|
|
995
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
995
996
|
};
|
|
996
997
|
l.$arity = 2;
|
|
997
998
|
return l;
|
|
998
999
|
}
|
|
999
1000
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
1000
|
-
this.
|
|
1001
|
+
this.r9o_1 = $playerId;
|
|
1001
1002
|
CoroutineImpl.call(this, resultContinuation);
|
|
1002
1003
|
}
|
|
1003
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1004
|
-
var tmp = this.
|
|
1004
|
+
protoOf(GameServer$playerLeft$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1005
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1005
1006
|
tmp.g9_1 = Unit_instance;
|
|
1006
1007
|
tmp.h9_1 = null;
|
|
1007
1008
|
return tmp.m9();
|
|
1008
1009
|
};
|
|
1009
1010
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
1010
1011
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1011
|
-
return this.
|
|
1012
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1012
1013
|
};
|
|
1013
1014
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
1014
1015
|
var suspendResult = this.g9_1;
|
|
@@ -1017,9 +1018,9 @@
|
|
|
1017
1018
|
var tmp = this.e9_1;
|
|
1018
1019
|
if (tmp === 0) {
|
|
1019
1020
|
this.f9_1 = 1;
|
|
1020
|
-
var tmp_0 = this.
|
|
1021
|
+
var tmp_0 = this.t9o_1.dispatch;
|
|
1021
1022
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
1022
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1023
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.r9o_1));
|
|
1023
1024
|
return Unit_instance;
|
|
1024
1025
|
} else if (tmp === 1) {
|
|
1025
1026
|
throw this.h9_1;
|
|
@@ -1030,39 +1031,39 @@
|
|
|
1030
1031
|
}
|
|
1031
1032
|
while (true);
|
|
1032
1033
|
};
|
|
1033
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1034
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
1035
|
-
i.
|
|
1036
|
-
i.
|
|
1034
|
+
protoOf(GameServer$playerLeft$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1035
|
+
var i = new GameServer$playerLeft$slambda(this.r9o_1, completion);
|
|
1036
|
+
i.s9o_1 = $this$dispatchAsync;
|
|
1037
|
+
i.t9o_1 = store;
|
|
1037
1038
|
return i;
|
|
1038
1039
|
};
|
|
1039
1040
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
1040
1041
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
1041
1042
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1042
|
-
return i.
|
|
1043
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1043
1044
|
};
|
|
1044
1045
|
l.$arity = 2;
|
|
1045
1046
|
return l;
|
|
1046
1047
|
}
|
|
1047
1048
|
function GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1050
|
-
this.
|
|
1051
|
-
this.
|
|
1052
|
-
this.
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1049
|
+
this.c9p_1 = $usersArray;
|
|
1050
|
+
this.d9p_1 = $gameCreatorId;
|
|
1051
|
+
this.e9p_1 = $config;
|
|
1052
|
+
this.f9p_1 = $transition;
|
|
1053
|
+
this.g9p_1 = this$0;
|
|
1054
|
+
this.h9p_1 = $spectators;
|
|
1055
|
+
this.i9p_1 = $roomId;
|
|
1055
1056
|
CoroutineImpl.call(this, resultContinuation);
|
|
1056
1057
|
}
|
|
1057
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1058
|
-
var tmp = this.
|
|
1058
|
+
protoOf(GameServer$roomOnCreate$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1059
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1059
1060
|
tmp.g9_1 = Unit_instance;
|
|
1060
1061
|
tmp.h9_1 = null;
|
|
1061
1062
|
return tmp.m9();
|
|
1062
1063
|
};
|
|
1063
1064
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
1064
1065
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1065
|
-
return this.
|
|
1066
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1066
1067
|
};
|
|
1067
1068
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
1068
1069
|
var suspendResult = this.g9_1;
|
|
@@ -1071,29 +1072,29 @@
|
|
|
1071
1072
|
var tmp = this.e9_1;
|
|
1072
1073
|
if (tmp === 0) {
|
|
1073
1074
|
this.f9_1 = 1;
|
|
1074
|
-
var users = toList(this.
|
|
1075
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
1075
|
+
var users = toList(this.c9p_1);
|
|
1076
|
+
var gameCreatorUser = getPlayer(users, this.d9p_1);
|
|
1076
1077
|
var tmp_0;
|
|
1077
|
-
if (this.
|
|
1078
|
-
tmp_0 = sortWithItem(_get_random__h29cgo(this.
|
|
1078
|
+
if (this.e9p_1.mode.shufflePlayers && this.f9p_1 == null) {
|
|
1079
|
+
tmp_0 = sortWithItem(_get_random__h29cgo(this.g9p_1).h5w(toMutableList(users)), gameCreatorUser);
|
|
1079
1080
|
} else {
|
|
1080
|
-
var tmp0_safe_receiver = this.
|
|
1081
|
+
var tmp0_safe_receiver = this.f9p_1;
|
|
1081
1082
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
1082
1083
|
var tmp_1;
|
|
1083
|
-
if (!(previousPlayers == null) && this.
|
|
1084
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
1084
|
+
if (!(previousPlayers == null) && this.e9p_1.playersMode.isTeamGame) {
|
|
1085
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.g9p_1);
|
|
1085
1086
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
1086
1087
|
var tmp0_iterator = previousPlayers.j();
|
|
1087
1088
|
while (tmp0_iterator.k()) {
|
|
1088
1089
|
var item = tmp0_iterator.l();
|
|
1089
1090
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
1090
1091
|
}
|
|
1091
|
-
var previousTeams = tmp_2.
|
|
1092
|
+
var previousTeams = tmp_2.j8s(destination);
|
|
1092
1093
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1093
1094
|
var tmp0_iterator_0 = users.j();
|
|
1094
1095
|
while (tmp0_iterator_0.k()) {
|
|
1095
1096
|
var element = tmp0_iterator_0.l();
|
|
1096
|
-
if (!previousPlayers.s1(element.
|
|
1097
|
+
if (!previousPlayers.s1(element.w6a_1)) {
|
|
1097
1098
|
destination_0.e(element);
|
|
1098
1099
|
}
|
|
1099
1100
|
}
|
|
@@ -1112,17 +1113,17 @@
|
|
|
1112
1113
|
destination_1.e(destination_2);
|
|
1113
1114
|
}
|
|
1114
1115
|
var updatedTeams = destination_1;
|
|
1115
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
1116
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.g9p_1).n8s(updatedTeams);
|
|
1116
1117
|
} else {
|
|
1117
1118
|
tmp_1 = users;
|
|
1118
1119
|
}
|
|
1119
1120
|
tmp_0 = tmp_1;
|
|
1120
1121
|
}
|
|
1121
1122
|
var updatedUsers = tmp_0;
|
|
1122
|
-
var tmp_3 = this.
|
|
1123
|
+
var tmp_3 = this.k9p_1.dispatch;
|
|
1123
1124
|
var tmp1_version = GameEngineConfig_instance.version;
|
|
1124
|
-
var tmp2_spectators = toList(this.
|
|
1125
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
1125
|
+
var tmp2_spectators = toList(this.h9p_1);
|
|
1126
|
+
tmp_3(new StartGameMechanicAction(this.e9p_1, this.i9p_1, tmp1_version, this.d9p_1, updatedUsers, VOID, tmp2_spectators));
|
|
1126
1127
|
return Unit_instance;
|
|
1127
1128
|
} else if (tmp === 1) {
|
|
1128
1129
|
throw this.h9_1;
|
|
@@ -1133,33 +1134,33 @@
|
|
|
1133
1134
|
}
|
|
1134
1135
|
while (true);
|
|
1135
1136
|
};
|
|
1136
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1137
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
1138
|
-
i.
|
|
1139
|
-
i.
|
|
1137
|
+
protoOf(GameServer$roomOnCreate$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1138
|
+
var i = new GameServer$roomOnCreate$slambda(this.c9p_1, this.d9p_1, this.e9p_1, this.f9p_1, this.g9p_1, this.h9p_1, this.i9p_1, completion);
|
|
1139
|
+
i.j9p_1 = $this$dispatchAsync;
|
|
1140
|
+
i.k9p_1 = store;
|
|
1140
1141
|
return i;
|
|
1141
1142
|
};
|
|
1142
1143
|
function GameServer$roomOnCreate$slambda_0($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
1143
1144
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation);
|
|
1144
1145
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1145
|
-
return i.
|
|
1146
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1146
1147
|
};
|
|
1147
1148
|
l.$arity = 2;
|
|
1148
1149
|
return l;
|
|
1149
1150
|
}
|
|
1150
1151
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
1151
|
-
this.
|
|
1152
|
+
this.t9p_1 = $state;
|
|
1152
1153
|
CoroutineImpl.call(this, resultContinuation);
|
|
1153
1154
|
}
|
|
1154
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1155
|
-
var tmp = this.
|
|
1155
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1156
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1156
1157
|
tmp.g9_1 = Unit_instance;
|
|
1157
1158
|
tmp.h9_1 = null;
|
|
1158
1159
|
return tmp.m9();
|
|
1159
1160
|
};
|
|
1160
1161
|
protoOf(GameServer$roomOnContinueFromState$slambda).x9 = function (p1, p2, $completion) {
|
|
1161
1162
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1162
|
-
return this.
|
|
1163
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1163
1164
|
};
|
|
1164
1165
|
protoOf(GameServer$roomOnContinueFromState$slambda).m9 = function () {
|
|
1165
1166
|
var suspendResult = this.g9_1;
|
|
@@ -1168,9 +1169,9 @@
|
|
|
1168
1169
|
var tmp = this.e9_1;
|
|
1169
1170
|
if (tmp === 0) {
|
|
1170
1171
|
this.f9_1 = 1;
|
|
1171
|
-
var tmp_0 = this.
|
|
1172
|
-
var tmp0_reason =
|
|
1173
|
-
var tmp1_table = this.
|
|
1172
|
+
var tmp_0 = this.v9p_1.dispatch;
|
|
1173
|
+
var tmp0_reason = new RestartRoundReason(null);
|
|
1174
|
+
var tmp1_table = this.t9p_1.table;
|
|
1174
1175
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1175
1176
|
return Unit_instance;
|
|
1176
1177
|
} else if (tmp === 1) {
|
|
@@ -1182,33 +1183,33 @@
|
|
|
1182
1183
|
}
|
|
1183
1184
|
while (true);
|
|
1184
1185
|
};
|
|
1185
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1186
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
1187
|
-
i.
|
|
1188
|
-
i.
|
|
1186
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1187
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.t9p_1, completion);
|
|
1188
|
+
i.u9p_1 = $this$dispatchAsync;
|
|
1189
|
+
i.v9p_1 = store;
|
|
1189
1190
|
return i;
|
|
1190
1191
|
};
|
|
1191
1192
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
1192
1193
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
1193
1194
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1194
|
-
return i.
|
|
1195
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1195
1196
|
};
|
|
1196
1197
|
l.$arity = 2;
|
|
1197
1198
|
return l;
|
|
1198
1199
|
}
|
|
1199
1200
|
function GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation) {
|
|
1200
|
-
this.
|
|
1201
|
+
this.e9q_1 = $state;
|
|
1201
1202
|
CoroutineImpl.call(this, resultContinuation);
|
|
1202
1203
|
}
|
|
1203
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1204
|
-
var tmp = this.
|
|
1204
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1205
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1205
1206
|
tmp.g9_1 = Unit_instance;
|
|
1206
1207
|
tmp.h9_1 = null;
|
|
1207
1208
|
return tmp.m9();
|
|
1208
1209
|
};
|
|
1209
1210
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).x9 = function (p1, p2, $completion) {
|
|
1210
1211
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1211
|
-
return this.
|
|
1212
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1212
1213
|
};
|
|
1213
1214
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).m9 = function () {
|
|
1214
1215
|
var suspendResult = this.g9_1;
|
|
@@ -1217,10 +1218,10 @@
|
|
|
1217
1218
|
var tmp = this.e9_1;
|
|
1218
1219
|
if (tmp === 0) {
|
|
1219
1220
|
this.f9_1 = 1;
|
|
1220
|
-
var tmp0_iterator = this.
|
|
1221
|
+
var tmp0_iterator = this.e9q_1.actions.j();
|
|
1221
1222
|
while (tmp0_iterator.k()) {
|
|
1222
1223
|
var element = tmp0_iterator.l();
|
|
1223
|
-
this.
|
|
1224
|
+
this.g9q_1.dispatch(element);
|
|
1224
1225
|
}
|
|
1225
1226
|
return Unit_instance;
|
|
1226
1227
|
} else if (tmp === 1) {
|
|
@@ -1232,35 +1233,35 @@
|
|
|
1232
1233
|
}
|
|
1233
1234
|
while (true);
|
|
1234
1235
|
};
|
|
1235
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1236
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
1237
|
-
i.
|
|
1238
|
-
i.
|
|
1236
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1237
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.e9q_1, completion);
|
|
1238
|
+
i.f9q_1 = $this$dispatchAsync;
|
|
1239
|
+
i.g9q_1 = store;
|
|
1239
1240
|
return i;
|
|
1240
1241
|
};
|
|
1241
1242
|
function GameServer$roomOnContinueFromState$slambda_2($state, resultContinuation) {
|
|
1242
1243
|
var i = new GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation);
|
|
1243
1244
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1244
|
-
return i.
|
|
1245
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1245
1246
|
};
|
|
1246
1247
|
l.$arity = 2;
|
|
1247
1248
|
return l;
|
|
1248
1249
|
}
|
|
1249
|
-
function GameServer$roomOnContinueFromRound$slambda($roomId, this$0,
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1250
|
+
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
1251
|
+
this.p9q_1 = $tableLite;
|
|
1252
|
+
this.q9q_1 = $roomId;
|
|
1253
|
+
this.r9q_1 = this$0;
|
|
1253
1254
|
CoroutineImpl.call(this, resultContinuation);
|
|
1254
1255
|
}
|
|
1255
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1256
|
-
var tmp = this.
|
|
1256
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1257
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1257
1258
|
tmp.g9_1 = Unit_instance;
|
|
1258
1259
|
tmp.h9_1 = null;
|
|
1259
1260
|
return tmp.m9();
|
|
1260
1261
|
};
|
|
1261
1262
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
1262
1263
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1263
|
-
return this.
|
|
1264
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1264
1265
|
};
|
|
1265
1266
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
1266
1267
|
var suspendResult = this.g9_1;
|
|
@@ -1269,9 +1270,9 @@
|
|
|
1269
1270
|
var tmp = this.e9_1;
|
|
1270
1271
|
if (tmp === 0) {
|
|
1271
1272
|
this.f9_1 = 1;
|
|
1272
|
-
var tmp_0 = this.
|
|
1273
|
-
var tmp0_reason =
|
|
1274
|
-
var tmp1_table = Companion_instance.restartRound(this.
|
|
1273
|
+
var tmp_0 = this.t9q_1.dispatch;
|
|
1274
|
+
var tmp0_reason = new RestartRoundReason(this.p9q_1.gameInfo.round.roundNumber);
|
|
1275
|
+
var tmp1_table = Companion_instance.restartRound(this.q9q_1, _get_idsProvider__fnfajc(this.r9q_1).u6h(), GameEngineConfig_instance.version, this.p9q_1);
|
|
1275
1276
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1276
1277
|
return Unit_instance;
|
|
1277
1278
|
} else if (tmp === 1) {
|
|
@@ -1283,16 +1284,16 @@
|
|
|
1283
1284
|
}
|
|
1284
1285
|
while (true);
|
|
1285
1286
|
};
|
|
1286
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1287
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
1288
|
-
i.
|
|
1289
|
-
i.
|
|
1287
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1288
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.p9q_1, this.q9q_1, this.r9q_1, completion);
|
|
1289
|
+
i.s9q_1 = $this$dispatchAsync;
|
|
1290
|
+
i.t9q_1 = store;
|
|
1290
1291
|
return i;
|
|
1291
1292
|
};
|
|
1292
|
-
function GameServer$roomOnContinueFromRound$slambda_0($roomId, this$0,
|
|
1293
|
-
var i = new GameServer$roomOnContinueFromRound$slambda($roomId, this$0,
|
|
1293
|
+
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
1294
|
+
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
1294
1295
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1295
|
-
return i.
|
|
1296
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1296
1297
|
};
|
|
1297
1298
|
l.$arity = 2;
|
|
1298
1299
|
return l;
|
|
@@ -1300,15 +1301,15 @@
|
|
|
1300
1301
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1301
1302
|
CoroutineImpl.call(this, resultContinuation);
|
|
1302
1303
|
}
|
|
1303
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1304
|
-
var tmp = this.
|
|
1304
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1305
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1305
1306
|
tmp.g9_1 = Unit_instance;
|
|
1306
1307
|
tmp.h9_1 = null;
|
|
1307
1308
|
return tmp.m9();
|
|
1308
1309
|
};
|
|
1309
1310
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).x9 = function (p1, p2, $completion) {
|
|
1310
1311
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1311
|
-
return this.
|
|
1312
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1312
1313
|
};
|
|
1313
1314
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).m9 = function () {
|
|
1314
1315
|
var suspendResult = this.g9_1;
|
|
@@ -1317,7 +1318,7 @@
|
|
|
1317
1318
|
var tmp = this.e9_1;
|
|
1318
1319
|
if (tmp === 0) {
|
|
1319
1320
|
this.f9_1 = 1;
|
|
1320
|
-
this.
|
|
1321
|
+
this.d9r_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1321
1322
|
return Unit_instance;
|
|
1322
1323
|
} else if (tmp === 1) {
|
|
1323
1324
|
throw this.h9_1;
|
|
@@ -1328,33 +1329,33 @@
|
|
|
1328
1329
|
}
|
|
1329
1330
|
while (true);
|
|
1330
1331
|
};
|
|
1331
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1332
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1332
1333
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1333
|
-
i.
|
|
1334
|
-
i.
|
|
1334
|
+
i.c9r_1 = $this$dispatchAsync;
|
|
1335
|
+
i.d9r_1 = store;
|
|
1335
1336
|
return i;
|
|
1336
1337
|
};
|
|
1337
1338
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1338
1339
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1339
1340
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1340
|
-
return i.
|
|
1341
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1341
1342
|
};
|
|
1342
1343
|
l.$arity = 2;
|
|
1343
1344
|
return l;
|
|
1344
1345
|
}
|
|
1345
1346
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1346
|
-
this.
|
|
1347
|
+
this.m9r_1 = $spectators;
|
|
1347
1348
|
CoroutineImpl.call(this, resultContinuation);
|
|
1348
1349
|
}
|
|
1349
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1350
|
-
var tmp = this.
|
|
1350
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1351
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1351
1352
|
tmp.g9_1 = Unit_instance;
|
|
1352
1353
|
tmp.h9_1 = null;
|
|
1353
1354
|
return tmp.m9();
|
|
1354
1355
|
};
|
|
1355
1356
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1356
1357
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1357
|
-
return this.
|
|
1358
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1358
1359
|
};
|
|
1359
1360
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
1360
1361
|
var suspendResult = this.g9_1;
|
|
@@ -1363,7 +1364,7 @@
|
|
|
1363
1364
|
var tmp = this.e9_1;
|
|
1364
1365
|
if (tmp === 0) {
|
|
1365
1366
|
this.f9_1 = 1;
|
|
1366
|
-
this.
|
|
1367
|
+
this.o9r_1.dispatch(new AddSpectatorsAction(toList(this.m9r_1)));
|
|
1367
1368
|
return Unit_instance;
|
|
1368
1369
|
} else if (tmp === 1) {
|
|
1369
1370
|
throw this.h9_1;
|
|
@@ -1374,33 +1375,33 @@
|
|
|
1374
1375
|
}
|
|
1375
1376
|
while (true);
|
|
1376
1377
|
};
|
|
1377
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1378
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1379
|
-
i.
|
|
1380
|
-
i.
|
|
1378
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1379
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.m9r_1, completion);
|
|
1380
|
+
i.n9r_1 = $this$dispatchAsync;
|
|
1381
|
+
i.o9r_1 = store;
|
|
1381
1382
|
return i;
|
|
1382
1383
|
};
|
|
1383
1384
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1384
1385
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1385
1386
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1386
|
-
return i.
|
|
1387
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1387
1388
|
};
|
|
1388
1389
|
l.$arity = 2;
|
|
1389
1390
|
return l;
|
|
1390
1391
|
}
|
|
1391
1392
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1392
|
-
this.
|
|
1393
|
+
this.x9r_1 = $spectators;
|
|
1393
1394
|
CoroutineImpl.call(this, resultContinuation);
|
|
1394
1395
|
}
|
|
1395
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1396
|
-
var tmp = this.
|
|
1396
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1397
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1397
1398
|
tmp.g9_1 = Unit_instance;
|
|
1398
1399
|
tmp.h9_1 = null;
|
|
1399
1400
|
return tmp.m9();
|
|
1400
1401
|
};
|
|
1401
1402
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1402
1403
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1403
|
-
return this.
|
|
1404
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1404
1405
|
};
|
|
1405
1406
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1406
1407
|
var suspendResult = this.g9_1;
|
|
@@ -1409,7 +1410,7 @@
|
|
|
1409
1410
|
var tmp = this.e9_1;
|
|
1410
1411
|
if (tmp === 0) {
|
|
1411
1412
|
this.f9_1 = 1;
|
|
1412
|
-
this.
|
|
1413
|
+
this.z9r_1.dispatch(new RemoveSpectatorsAction(toList(this.x9r_1)));
|
|
1413
1414
|
return Unit_instance;
|
|
1414
1415
|
} else if (tmp === 1) {
|
|
1415
1416
|
throw this.h9_1;
|
|
@@ -1420,34 +1421,34 @@
|
|
|
1420
1421
|
}
|
|
1421
1422
|
while (true);
|
|
1422
1423
|
};
|
|
1423
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1424
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1425
|
-
i.
|
|
1426
|
-
i.
|
|
1424
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1425
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.x9r_1, completion);
|
|
1426
|
+
i.y9r_1 = $this$dispatchAsync;
|
|
1427
|
+
i.z9r_1 = store;
|
|
1427
1428
|
return i;
|
|
1428
1429
|
};
|
|
1429
1430
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1430
1431
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1431
1432
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1432
|
-
return i.
|
|
1433
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1433
1434
|
};
|
|
1434
1435
|
l.$arity = 2;
|
|
1435
1436
|
return l;
|
|
1436
1437
|
}
|
|
1437
1438
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1439
|
+
this.i9s_1 = $playerId;
|
|
1440
|
+
this.j9s_1 = this$0;
|
|
1440
1441
|
CoroutineImpl.call(this, resultContinuation);
|
|
1441
1442
|
}
|
|
1442
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1443
|
-
var tmp = this.
|
|
1443
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1444
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1444
1445
|
tmp.g9_1 = Unit_instance;
|
|
1445
1446
|
tmp.h9_1 = null;
|
|
1446
1447
|
return tmp.m9();
|
|
1447
1448
|
};
|
|
1448
1449
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1449
1450
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1450
|
-
return this.
|
|
1451
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1451
1452
|
};
|
|
1452
1453
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1453
1454
|
var suspendResult = this.g9_1;
|
|
@@ -1456,14 +1457,14 @@
|
|
|
1456
1457
|
var tmp = this.e9_1;
|
|
1457
1458
|
if (tmp === 0) {
|
|
1458
1459
|
this.f9_1 = 1;
|
|
1459
|
-
var table = this.
|
|
1460
|
-
var player = getPlayer(table.players, this.
|
|
1461
|
-
if (player.
|
|
1462
|
-
this.
|
|
1460
|
+
var table = this.l9s_1.state.o6r();
|
|
1461
|
+
var player = getPlayer(table.players, this.i9s_1);
|
|
1462
|
+
if (player.h6x_1.j6d().a6c_1.isLive) {
|
|
1463
|
+
this.l9s_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.j9s_1).e8z(player, table));
|
|
1463
1464
|
} else {
|
|
1464
|
-
var tmp_0 = this.
|
|
1465
|
+
var tmp_0 = this.l9s_1.dispatch;
|
|
1465
1466
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1466
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1467
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.i9s_1));
|
|
1467
1468
|
}
|
|
1468
1469
|
return Unit_instance;
|
|
1469
1470
|
} else if (tmp === 1) {
|
|
@@ -1475,34 +1476,34 @@
|
|
|
1475
1476
|
}
|
|
1476
1477
|
while (true);
|
|
1477
1478
|
};
|
|
1478
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1479
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1480
|
-
i.
|
|
1481
|
-
i.
|
|
1479
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1480
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.i9s_1, this.j9s_1, completion);
|
|
1481
|
+
i.k9s_1 = $this$dispatchAsync;
|
|
1482
|
+
i.l9s_1 = store;
|
|
1482
1483
|
return i;
|
|
1483
1484
|
};
|
|
1484
1485
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1485
1486
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1486
1487
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1487
|
-
return i.
|
|
1488
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1488
1489
|
};
|
|
1489
1490
|
l.$arity = 2;
|
|
1490
1491
|
return l;
|
|
1491
1492
|
}
|
|
1492
1493
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1494
|
+
this.u9s_1 = this$0;
|
|
1495
|
+
this.v9s_1 = $newRid;
|
|
1495
1496
|
CoroutineImpl.call(this, resultContinuation);
|
|
1496
1497
|
}
|
|
1497
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1498
|
-
var tmp = this.
|
|
1498
|
+
protoOf(GameServer$roomOnDelete$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1499
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1499
1500
|
tmp.g9_1 = Unit_instance;
|
|
1500
1501
|
tmp.h9_1 = null;
|
|
1501
1502
|
return tmp.m9();
|
|
1502
1503
|
};
|
|
1503
1504
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1504
1505
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1505
|
-
return this.
|
|
1506
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1506
1507
|
};
|
|
1507
1508
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1508
1509
|
var suspendResult = this.g9_1;
|
|
@@ -1511,19 +1512,19 @@
|
|
|
1511
1512
|
var tmp = this.e9_1;
|
|
1512
1513
|
if (tmp === 0) {
|
|
1513
1514
|
this.f9_1 = 1;
|
|
1514
|
-
var it = this.
|
|
1515
|
+
var it = this.u9s_1.g6b().p6q_1;
|
|
1515
1516
|
var tmp_0;
|
|
1516
1517
|
if (it == null) {
|
|
1517
|
-
_get_logger__rkp4sl(this.
|
|
1518
|
+
_get_logger__rkp4sl(this.u9s_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1518
1519
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1519
1520
|
} else {
|
|
1520
1521
|
tmp_0 = it;
|
|
1521
1522
|
}
|
|
1522
1523
|
var terminationState = tmp_0;
|
|
1523
|
-
var gameTransition = terminationState.
|
|
1524
|
+
var gameTransition = terminationState.l92_1;
|
|
1524
1525
|
var tmp_1;
|
|
1525
1526
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
1526
|
-
var value = this.
|
|
1527
|
+
var value = this.v9s_1;
|
|
1527
1528
|
var tmp$ret$0 = Unit_instance;
|
|
1528
1529
|
l$ret$1: do {
|
|
1529
1530
|
if (value == null) {
|
|
@@ -1540,9 +1541,9 @@
|
|
|
1540
1541
|
tmp_1 = gameTransition;
|
|
1541
1542
|
}
|
|
1542
1543
|
var transition = tmp_1;
|
|
1543
|
-
var tmp_2 = this.
|
|
1544
|
-
var tmp0_reason = terminationState.
|
|
1545
|
-
var tmp1_isGameFinished = this.
|
|
1544
|
+
var tmp_2 = this.x9s_1.dispatch;
|
|
1545
|
+
var tmp0_reason = terminationState.k92_1;
|
|
1546
|
+
var tmp1_isGameFinished = this.u9s_1.g6b().o6r().isGameFinished;
|
|
1546
1547
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
1547
1548
|
return Unit_instance;
|
|
1548
1549
|
} else if (tmp === 1) {
|
|
@@ -1554,33 +1555,33 @@
|
|
|
1554
1555
|
}
|
|
1555
1556
|
while (true);
|
|
1556
1557
|
};
|
|
1557
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1558
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1559
|
-
i.
|
|
1560
|
-
i.
|
|
1558
|
+
protoOf(GameServer$roomOnDelete$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1559
|
+
var i = new GameServer$roomOnDelete$slambda(this.u9s_1, this.v9s_1, completion);
|
|
1560
|
+
i.w9s_1 = $this$dispatchAsync;
|
|
1561
|
+
i.x9s_1 = store;
|
|
1561
1562
|
return i;
|
|
1562
1563
|
};
|
|
1563
1564
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1564
1565
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1565
1566
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1566
|
-
return i.
|
|
1567
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1567
1568
|
};
|
|
1568
1569
|
l.$arity = 2;
|
|
1569
1570
|
return l;
|
|
1570
1571
|
}
|
|
1571
1572
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1572
|
-
this.
|
|
1573
|
+
this.g9t_1 = $enabled;
|
|
1573
1574
|
CoroutineImpl.call(this, resultContinuation);
|
|
1574
1575
|
}
|
|
1575
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1576
|
-
var tmp = this.
|
|
1576
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1577
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1577
1578
|
tmp.g9_1 = Unit_instance;
|
|
1578
1579
|
tmp.h9_1 = null;
|
|
1579
1580
|
return tmp.m9();
|
|
1580
1581
|
};
|
|
1581
1582
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1582
1583
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1583
|
-
return this.
|
|
1584
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1584
1585
|
};
|
|
1585
1586
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1586
1587
|
var suspendResult = this.g9_1;
|
|
@@ -1589,7 +1590,7 @@
|
|
|
1589
1590
|
var tmp = this.e9_1;
|
|
1590
1591
|
if (tmp === 0) {
|
|
1591
1592
|
this.f9_1 = 1;
|
|
1592
|
-
this.
|
|
1593
|
+
this.i9t_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.i9t_1.state).j9t_1.m9t(VOID, this.g9t_1)));
|
|
1593
1594
|
return Unit_instance;
|
|
1594
1595
|
} else if (tmp === 1) {
|
|
1595
1596
|
throw this.h9_1;
|
|
@@ -1600,35 +1601,35 @@
|
|
|
1600
1601
|
}
|
|
1601
1602
|
while (true);
|
|
1602
1603
|
};
|
|
1603
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1604
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1605
|
-
i.
|
|
1606
|
-
i.
|
|
1604
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1605
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.g9t_1, completion);
|
|
1606
|
+
i.h9t_1 = $this$dispatchAsync;
|
|
1607
|
+
i.i9t_1 = store;
|
|
1607
1608
|
return i;
|
|
1608
1609
|
};
|
|
1609
1610
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1610
1611
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1611
1612
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1612
|
-
return i.
|
|
1613
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1613
1614
|
};
|
|
1614
1615
|
l.$arity = 2;
|
|
1615
1616
|
return l;
|
|
1616
1617
|
}
|
|
1617
1618
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1619
|
+
this.v9t_1 = $reason;
|
|
1620
|
+
this.w9t_1 = this$0;
|
|
1621
|
+
this.x9t_1 = $roomId;
|
|
1621
1622
|
CoroutineImpl.call(this, resultContinuation);
|
|
1622
1623
|
}
|
|
1623
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1624
|
-
var tmp = this.
|
|
1624
|
+
protoOf(GameServer$shutdown$slambda).l9n = function ($this$dispatchAsync, store, $completion) {
|
|
1625
|
+
var tmp = this.m9n($this$dispatchAsync, store, $completion);
|
|
1625
1626
|
tmp.g9_1 = Unit_instance;
|
|
1626
1627
|
tmp.h9_1 = null;
|
|
1627
1628
|
return tmp.m9();
|
|
1628
1629
|
};
|
|
1629
1630
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1630
1631
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1631
|
-
return this.
|
|
1632
|
+
return this.l9n(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1632
1633
|
};
|
|
1633
1634
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1634
1635
|
var suspendResult = this.g9_1;
|
|
@@ -1637,11 +1638,11 @@
|
|
|
1637
1638
|
var tmp = this.e9_1;
|
|
1638
1639
|
if (tmp === 0) {
|
|
1639
1640
|
this.f9_1 = 1;
|
|
1640
|
-
var state = this.
|
|
1641
|
-
if (state.
|
|
1642
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1641
|
+
var state = this.z9t_1.store.state;
|
|
1642
|
+
if (state.p6r()) {
|
|
1643
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.v9t_1, get_serverShutdownReasonMapping());
|
|
1643
1644
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1644
|
-
var tmp_0 = this.
|
|
1645
|
+
var tmp_0 = this.z9t_1.dispatch;
|
|
1645
1646
|
var tmp_1 = Companion_instance_0;
|
|
1646
1647
|
var tmp_2;
|
|
1647
1648
|
switch (shutdownReason.n2_1) {
|
|
@@ -1655,10 +1656,10 @@
|
|
|
1655
1656
|
noWhenBranchMatchedException();
|
|
1656
1657
|
break;
|
|
1657
1658
|
}
|
|
1658
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1659
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.w9t_1.table.isGameFinished, this.w9t_1.table));
|
|
1659
1660
|
} else {
|
|
1660
|
-
_get_logger__rkp4sl(this.
|
|
1661
|
-
this.
|
|
1661
|
+
_get_logger__rkp4sl(this.w9t_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.x9t_1);
|
|
1662
|
+
this.z9t_1.dispatch(new ClearAction());
|
|
1662
1663
|
}
|
|
1663
1664
|
return Unit_instance;
|
|
1664
1665
|
} else if (tmp === 1) {
|
|
@@ -1670,22 +1671,22 @@
|
|
|
1670
1671
|
}
|
|
1671
1672
|
while (true);
|
|
1672
1673
|
};
|
|
1673
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1674
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1675
|
-
i.
|
|
1676
|
-
i.
|
|
1674
|
+
protoOf(GameServer$shutdown$slambda).m9n = function ($this$dispatchAsync, store, completion) {
|
|
1675
|
+
var i = new GameServer$shutdown$slambda(this.v9t_1, this.w9t_1, this.x9t_1, completion);
|
|
1676
|
+
i.y9t_1 = $this$dispatchAsync;
|
|
1677
|
+
i.z9t_1 = store;
|
|
1677
1678
|
return i;
|
|
1678
1679
|
};
|
|
1679
1680
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1680
1681
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1681
1682
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1682
|
-
return i.
|
|
1683
|
+
return i.l9n($this$dispatchAsync, store, $completion);
|
|
1683
1684
|
};
|
|
1684
1685
|
l.$arity = 2;
|
|
1685
1686
|
return l;
|
|
1686
1687
|
}
|
|
1687
1688
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1688
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_11.
|
|
1689
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_11.a9u()) : preloadedState;
|
|
1689
1690
|
var tmp;
|
|
1690
1691
|
if (externalReducers === VOID) {
|
|
1691
1692
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1708,119 +1709,120 @@
|
|
|
1708
1709
|
// Inline function 'org.kodein.type.generic' call
|
|
1709
1710
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1710
1711
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1711
|
-
tmp_1.
|
|
1712
|
+
tmp_1.f9l_1 = Instance(di, tmp$ret$2, null).t63(this, logger$factory());
|
|
1712
1713
|
var tmp_3 = this;
|
|
1713
1714
|
// Inline function 'org.kodein.di.instance' call
|
|
1714
1715
|
// Inline function 'org.kodein.type.generic' call
|
|
1715
1716
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1716
1717
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1717
|
-
tmp_3.
|
|
1718
|
+
tmp_3.g9l_1 = Instance(di, tmp$ret$4, null).t63(this, toClientEventsObserver$factory());
|
|
1718
1719
|
var tmp_5 = this;
|
|
1719
1720
|
// Inline function 'org.kodein.di.instance' call
|
|
1720
1721
|
// Inline function 'org.kodein.type.generic' call
|
|
1721
1722
|
var tmp_6 = typeToken(createKType(getKClass(MechanicEventsObserver), arrayOf([]), false));
|
|
1722
1723
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1723
|
-
tmp_5.
|
|
1724
|
+
tmp_5.h9l_1 = Instance(di, tmp$ret$6, null).t63(this, mechanicEventsObserver$factory());
|
|
1724
1725
|
var tmp_7 = this;
|
|
1725
1726
|
// Inline function 'org.kodein.di.instance' call
|
|
1726
1727
|
// Inline function 'org.kodein.type.generic' call
|
|
1727
1728
|
var tmp_8 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1728
1729
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1729
|
-
tmp_7.
|
|
1730
|
+
tmp_7.i9l_1 = Instance(di, tmp$ret$8, null).t63(this, playerConnectionInteractor$factory());
|
|
1730
1731
|
var tmp_9 = this;
|
|
1731
1732
|
// Inline function 'org.kodein.di.instance' call
|
|
1732
1733
|
// Inline function 'org.kodein.type.generic' call
|
|
1733
1734
|
var tmp_10 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
1734
1735
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1735
|
-
tmp_9.
|
|
1736
|
+
tmp_9.j9l_1 = Instance(di, tmp$ret$10, null).t63(this, teamsLogicProvider$factory());
|
|
1736
1737
|
var tmp_11 = this;
|
|
1737
|
-
tmp_11.
|
|
1738
|
+
tmp_11.k9l_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1738
1739
|
var tmp_12 = this;
|
|
1739
1740
|
// Inline function 'org.kodein.di.instance' call
|
|
1740
1741
|
// Inline function 'org.kodein.type.generic' call
|
|
1741
1742
|
var tmp_13 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
1742
1743
|
var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
1743
|
-
tmp_12.
|
|
1744
|
+
tmp_12.l9l_1 = Instance(di, tmp$ret$12, null).t63(this, idsProvider$factory());
|
|
1744
1745
|
var tmp_14 = this;
|
|
1745
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1746
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1747
|
-
tmp_14.
|
|
1746
|
+
var tmp0_externalMiddlewares = plus(storeContract.h95(), externalMiddlewares);
|
|
1747
|
+
var tmp1_externalReducers = plus(storeContract.g95(), externalReducers);
|
|
1748
|
+
tmp_14.m9l_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1748
1749
|
}
|
|
1749
|
-
protoOf(GameServer).
|
|
1750
|
-
return this.
|
|
1750
|
+
protoOf(GameServer).b6q = function () {
|
|
1751
|
+
return this.m9l_1;
|
|
1751
1752
|
};
|
|
1752
1753
|
protoOf(GameServer).d5l = function () {
|
|
1753
|
-
return this.
|
|
1754
|
+
return this.g6b().o6r().id;
|
|
1754
1755
|
};
|
|
1755
|
-
protoOf(GameServer).
|
|
1756
|
-
return this.
|
|
1756
|
+
protoOf(GameServer).o6r = function () {
|
|
1757
|
+
return this.g6b().o6r();
|
|
1757
1758
|
};
|
|
1758
|
-
protoOf(GameServer).
|
|
1759
|
-
return this.
|
|
1759
|
+
protoOf(GameServer).p6r = function () {
|
|
1760
|
+
return this.g6b().p6r();
|
|
1760
1761
|
};
|
|
1761
|
-
protoOf(GameServer).
|
|
1762
|
-
return this.
|
|
1762
|
+
protoOf(GameServer).q6r = function () {
|
|
1763
|
+
return this.g6b().o6q_1;
|
|
1763
1764
|
};
|
|
1764
1765
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
1765
|
-
var tmp = this.
|
|
1766
|
-
tmp.
|
|
1766
|
+
var tmp = this.z6p();
|
|
1767
|
+
tmp.r6g(VOID, GameServer$subscribeToClientAction$slambda_0(this, subscriber, null));
|
|
1767
1768
|
};
|
|
1768
1769
|
protoOf(GameServer).subscribeServerStateUpdate = function (subscriber) {
|
|
1769
|
-
var tmp = this.
|
|
1770
|
-
tmp.
|
|
1770
|
+
var tmp = this.z6p();
|
|
1771
|
+
tmp.r6g(VOID, GameServer$subscribeServerStateUpdate$slambda_0(this, subscriber, null));
|
|
1771
1772
|
};
|
|
1772
1773
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
1773
|
-
var tmp = this.
|
|
1774
|
-
tmp.
|
|
1774
|
+
var tmp = this.z6p();
|
|
1775
|
+
tmp.r6g(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
1775
1776
|
};
|
|
1776
1777
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1777
1778
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1778
|
-
this.
|
|
1779
|
+
this.m9l_1.n6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1779
1780
|
};
|
|
1780
1781
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1781
1782
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1782
|
-
this.
|
|
1783
|
+
this.m9l_1.n6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1783
1784
|
};
|
|
1784
1785
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1785
1786
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1786
|
-
this.
|
|
1787
|
+
this.m9l_1.n6r(GameServer$playerLive$slambda_0(playerId, null));
|
|
1787
1788
|
};
|
|
1788
1789
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1789
1790
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1790
|
-
this.
|
|
1791
|
+
this.m9l_1.n6r(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1791
1792
|
};
|
|
1792
|
-
protoOf(GameServer).
|
|
1793
|
-
this.
|
|
1793
|
+
protoOf(GameServer).b9u = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1794
|
+
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
1795
|
+
this.m9l_1.n6r(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1794
1796
|
};
|
|
1795
1797
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
+
this.m9l_1.n6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
1799
|
+
this.m9l_1.n6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
1798
1800
|
};
|
|
1799
1801
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1800
|
-
this.
|
|
1801
|
-
this.
|
|
1802
|
+
this.m9l_1.n6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
1803
|
+
this.m9l_1.n6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
1802
1804
|
};
|
|
1803
1805
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1804
|
-
this.
|
|
1806
|
+
this.m9l_1.n6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1805
1807
|
};
|
|
1806
1808
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1807
|
-
this.
|
|
1809
|
+
this.m9l_1.n6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1808
1810
|
};
|
|
1809
1811
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1810
1812
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1811
|
-
this.
|
|
1813
|
+
this.m9l_1.n6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1812
1814
|
};
|
|
1813
|
-
protoOf(GameServer).
|
|
1815
|
+
protoOf(GameServer).c9u = function (newRid) {
|
|
1814
1816
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
1815
|
-
this.
|
|
1817
|
+
this.m9l_1.n6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1816
1818
|
};
|
|
1817
1819
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1818
1820
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
1819
|
-
this.
|
|
1821
|
+
this.m9l_1.n6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1820
1822
|
};
|
|
1821
|
-
protoOf(GameServer).
|
|
1823
|
+
protoOf(GameServer).d9u = function (reason, roomId) {
|
|
1822
1824
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
1823
|
-
this.
|
|
1825
|
+
this.m9l_1.n6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1824
1826
|
};
|
|
1825
1827
|
protoOf(GameServer).clear = function () {
|
|
1826
1828
|
return this.a2();
|
|
@@ -1925,24 +1927,32 @@
|
|
|
1925
1927
|
}
|
|
1926
1928
|
function Companion_0() {
|
|
1927
1929
|
}
|
|
1928
|
-
protoOf(Companion_0).
|
|
1929
|
-
return new ServerConfig(true);
|
|
1930
|
+
protoOf(Companion_0).e9u = function (fromRound) {
|
|
1931
|
+
return new ServerConfig(fromRound, true);
|
|
1930
1932
|
};
|
|
1931
1933
|
var Companion_instance_8;
|
|
1932
1934
|
function Companion_getInstance_1() {
|
|
1933
1935
|
return Companion_instance_8;
|
|
1934
1936
|
}
|
|
1935
|
-
function ServerConfig(canStartNewGame) {
|
|
1936
|
-
this.
|
|
1937
|
+
function ServerConfig(fromRound, canStartNewGame) {
|
|
1938
|
+
this.k9t_1 = fromRound;
|
|
1939
|
+
this.l9t_1 = canStartNewGame;
|
|
1937
1940
|
}
|
|
1938
|
-
protoOf(ServerConfig).
|
|
1939
|
-
return new ServerConfig(canStartNewGame);
|
|
1941
|
+
protoOf(ServerConfig).f9u = function (fromRound, canStartNewGame) {
|
|
1942
|
+
return new ServerConfig(fromRound, canStartNewGame);
|
|
1943
|
+
};
|
|
1944
|
+
protoOf(ServerConfig).m9t = function (fromRound, canStartNewGame, $super) {
|
|
1945
|
+
fromRound = fromRound === VOID ? this.k9t_1 : fromRound;
|
|
1946
|
+
canStartNewGame = canStartNewGame === VOID ? this.l9t_1 : canStartNewGame;
|
|
1947
|
+
return $super === VOID ? this.f9u(fromRound, canStartNewGame) : $super.f9u.call(this, fromRound, canStartNewGame);
|
|
1940
1948
|
};
|
|
1941
1949
|
protoOf(ServerConfig).toString = function () {
|
|
1942
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1950
|
+
return 'ServerConfig(fromRound=' + this.k9t_1 + ', canStartNewGame=' + this.l9t_1 + ')';
|
|
1943
1951
|
};
|
|
1944
1952
|
protoOf(ServerConfig).hashCode = function () {
|
|
1945
|
-
|
|
1953
|
+
var result = this.k9t_1 == null ? 0 : this.k9t_1;
|
|
1954
|
+
result = imul(result, 31) + getBooleanHashCode(this.l9t_1) | 0;
|
|
1955
|
+
return result;
|
|
1946
1956
|
};
|
|
1947
1957
|
protoOf(ServerConfig).equals = function (other) {
|
|
1948
1958
|
if (this === other)
|
|
@@ -1950,7 +1960,9 @@
|
|
|
1950
1960
|
if (!(other instanceof ServerConfig))
|
|
1951
1961
|
return false;
|
|
1952
1962
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1953
|
-
if (!(this.
|
|
1963
|
+
if (!(this.k9t_1 == tmp0_other_with_cast.k9t_1))
|
|
1964
|
+
return false;
|
|
1965
|
+
if (!(this.l9t_1 === tmp0_other_with_cast.l9t_1))
|
|
1954
1966
|
return false;
|
|
1955
1967
|
return true;
|
|
1956
1968
|
};
|
|
@@ -1959,18 +1971,18 @@
|
|
|
1959
1971
|
function TableStateUpdate(table) {
|
|
1960
1972
|
this.table = table;
|
|
1961
1973
|
}
|
|
1962
|
-
protoOf(TableStateUpdate).
|
|
1974
|
+
protoOf(TableStateUpdate).o6r = function () {
|
|
1963
1975
|
return this.table;
|
|
1964
1976
|
};
|
|
1965
1977
|
protoOf(TableStateUpdate).pe = function () {
|
|
1966
1978
|
return this.table;
|
|
1967
1979
|
};
|
|
1968
|
-
protoOf(TableStateUpdate).
|
|
1980
|
+
protoOf(TableStateUpdate).g9u = function (table) {
|
|
1969
1981
|
return new TableStateUpdate(table);
|
|
1970
1982
|
};
|
|
1971
1983
|
protoOf(TableStateUpdate).copy = function (table, $super) {
|
|
1972
1984
|
table = table === VOID ? this.table : table;
|
|
1973
|
-
return this.
|
|
1985
|
+
return this.g9u(table);
|
|
1974
1986
|
};
|
|
1975
1987
|
protoOf(TableStateUpdate).toString = function () {
|
|
1976
1988
|
return 'TableStateUpdate(table=' + this.table.toString() + ')';
|
|
@@ -1991,18 +2003,18 @@
|
|
|
1991
2003
|
function ActionsStateUpdate(actions) {
|
|
1992
2004
|
this.actions = actions;
|
|
1993
2005
|
}
|
|
1994
|
-
protoOf(ActionsStateUpdate).
|
|
2006
|
+
protoOf(ActionsStateUpdate).d8l = function () {
|
|
1995
2007
|
return this.actions;
|
|
1996
2008
|
};
|
|
1997
2009
|
protoOf(ActionsStateUpdate).pe = function () {
|
|
1998
2010
|
return this.actions;
|
|
1999
2011
|
};
|
|
2000
|
-
protoOf(ActionsStateUpdate).
|
|
2012
|
+
protoOf(ActionsStateUpdate).h9u = function (actions) {
|
|
2001
2013
|
return new ActionsStateUpdate(actions);
|
|
2002
2014
|
};
|
|
2003
2015
|
protoOf(ActionsStateUpdate).copy = function (actions, $super) {
|
|
2004
2016
|
actions = actions === VOID ? this.actions : actions;
|
|
2005
|
-
return this.
|
|
2017
|
+
return this.h9u(actions);
|
|
2006
2018
|
};
|
|
2007
2019
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
2008
2020
|
return 'ActionsStateUpdate(actions=' + toString(this.actions) + ')';
|
|
@@ -2266,7 +2278,7 @@
|
|
|
2266
2278
|
function MechanicEventsObserver() {
|
|
2267
2279
|
}
|
|
2268
2280
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2269
|
-
this.
|
|
2281
|
+
this.r9u_1 = $$this$unsafeFlow;
|
|
2270
2282
|
CoroutineImpl.call(this, resultContinuation);
|
|
2271
2283
|
}
|
|
2272
2284
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2287,12 +2299,12 @@
|
|
|
2287
2299
|
case 0:
|
|
2288
2300
|
this.f9_1 = 2;
|
|
2289
2301
|
var tmp_0 = this;
|
|
2290
|
-
tmp_0.
|
|
2302
|
+
tmp_0.t9u_1 = this.r9u_1;
|
|
2291
2303
|
var tmp_1 = this;
|
|
2292
|
-
tmp_1.
|
|
2304
|
+
tmp_1.u9u_1 = this.s9u_1;
|
|
2293
2305
|
this.e9_1 = 1;
|
|
2294
|
-
var it = this.
|
|
2295
|
-
suspendResult = this.
|
|
2306
|
+
var it = this.u9u_1;
|
|
2307
|
+
suspendResult = this.t9u_1.p18(new ActionsStateUpdate(it), this);
|
|
2296
2308
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2297
2309
|
return suspendResult;
|
|
2298
2310
|
}
|
|
@@ -2315,8 +2327,8 @@
|
|
|
2315
2327
|
while (true);
|
|
2316
2328
|
};
|
|
2317
2329
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda).j1i = function (value, completion) {
|
|
2318
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda(this.
|
|
2319
|
-
i.
|
|
2330
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda(this.r9u_1, completion);
|
|
2331
|
+
i.s9u_1 = value;
|
|
2320
2332
|
return i;
|
|
2321
2333
|
};
|
|
2322
2334
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2329,8 +2341,8 @@
|
|
|
2329
2341
|
}
|
|
2330
2342
|
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
2331
2343
|
CoroutineImpl.call(this, resultContinuation);
|
|
2332
|
-
this.
|
|
2333
|
-
this.
|
|
2344
|
+
this.d9v_1 = _this__u8e3s4;
|
|
2345
|
+
this.e9v_1 = collector;
|
|
2334
2346
|
}
|
|
2335
2347
|
protoOf($collectCOROUTINE$0).m9 = function () {
|
|
2336
2348
|
var suspendResult = this.g9_1;
|
|
@@ -2341,10 +2353,10 @@
|
|
|
2341
2353
|
case 0:
|
|
2342
2354
|
this.f9_1 = 2;
|
|
2343
2355
|
var tmp_0 = this;
|
|
2344
|
-
tmp_0.
|
|
2356
|
+
tmp_0.f9v_1 = this.e9v_1;
|
|
2345
2357
|
this.e9_1 = 1;
|
|
2346
|
-
var tmp_1 = MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0(this.
|
|
2347
|
-
suspendResult = this.
|
|
2358
|
+
var tmp_1 = MechanicEventsObserverImpl$observeUpdates$slambda$slambda$o$collect$slambda_0(this.f9v_1, null);
|
|
2359
|
+
suspendResult = this.d9v_1.g9v_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this);
|
|
2348
2360
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2349
2361
|
return suspendResult;
|
|
2350
2362
|
}
|
|
@@ -2367,7 +2379,7 @@
|
|
|
2367
2379
|
while (true);
|
|
2368
2380
|
};
|
|
2369
2381
|
function _no_name_provided__qut3iv($this) {
|
|
2370
|
-
this.
|
|
2382
|
+
this.g9v_1 = $this;
|
|
2371
2383
|
}
|
|
2372
2384
|
protoOf(_no_name_provided__qut3iv).q18 = function (collector, $completion) {
|
|
2373
2385
|
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
@@ -2379,18 +2391,18 @@
|
|
|
2379
2391
|
return this.q18(collector, $completion);
|
|
2380
2392
|
};
|
|
2381
2393
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda($table, this$0, resultContinuation) {
|
|
2382
|
-
this.
|
|
2383
|
-
this.
|
|
2394
|
+
this.p9v_1 = $table;
|
|
2395
|
+
this.q9v_1 = this$0;
|
|
2384
2396
|
CoroutineImpl.call(this, resultContinuation);
|
|
2385
2397
|
}
|
|
2386
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).
|
|
2387
|
-
var tmp = this.
|
|
2398
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).s9v = function ($this$flow, $completion) {
|
|
2399
|
+
var tmp = this.t9v($this$flow, $completion);
|
|
2388
2400
|
tmp.g9_1 = Unit_instance;
|
|
2389
2401
|
tmp.h9_1 = null;
|
|
2390
2402
|
return tmp.m9();
|
|
2391
2403
|
};
|
|
2392
2404
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).w9 = function (p1, $completion) {
|
|
2393
|
-
return this.
|
|
2405
|
+
return this.s9v((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2394
2406
|
};
|
|
2395
2407
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).m9 = function () {
|
|
2396
2408
|
var suspendResult = this.g9_1;
|
|
@@ -2401,7 +2413,7 @@
|
|
|
2401
2413
|
case 0:
|
|
2402
2414
|
this.f9_1 = 3;
|
|
2403
2415
|
this.e9_1 = 1;
|
|
2404
|
-
suspendResult = this.
|
|
2416
|
+
suspendResult = this.r9v_1.p18(new TableStateUpdate(this.p9v_1), this);
|
|
2405
2417
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2406
2418
|
return suspendResult;
|
|
2407
2419
|
}
|
|
@@ -2409,8 +2421,8 @@
|
|
|
2409
2421
|
continue $sm;
|
|
2410
2422
|
case 1:
|
|
2411
2423
|
this.e9_1 = 2;
|
|
2412
|
-
var this_0 = windowedByInterval(this.
|
|
2413
|
-
suspendResult = emitAll(this.
|
|
2424
|
+
var this_0 = windowedByInterval(this.q9v_1.u9v_1, new Long(1000, 0));
|
|
2425
|
+
suspendResult = emitAll(this.r9v_1, new _no_name_provided__qut3iv(this_0), this);
|
|
2414
2426
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2415
2427
|
return suspendResult;
|
|
2416
2428
|
}
|
|
@@ -2432,21 +2444,21 @@
|
|
|
2432
2444
|
}
|
|
2433
2445
|
while (true);
|
|
2434
2446
|
};
|
|
2435
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).
|
|
2436
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda(this.
|
|
2437
|
-
i.
|
|
2447
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda$slambda).t9v = function ($this$flow, completion) {
|
|
2448
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda(this.p9v_1, this.q9v_1, completion);
|
|
2449
|
+
i.r9v_1 = $this$flow;
|
|
2438
2450
|
return i;
|
|
2439
2451
|
};
|
|
2440
2452
|
function MechanicEventsObserverImpl$observeUpdates$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
2441
2453
|
var i = new MechanicEventsObserverImpl$observeUpdates$slambda$slambda($table, this$0, resultContinuation);
|
|
2442
2454
|
var l = function ($this$flow, $completion) {
|
|
2443
|
-
return i.
|
|
2455
|
+
return i.s9v($this$flow, $completion);
|
|
2444
2456
|
};
|
|
2445
2457
|
l.$arity = 1;
|
|
2446
2458
|
return l;
|
|
2447
2459
|
}
|
|
2448
2460
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2449
|
-
this.
|
|
2461
|
+
this.d9w_1 = $$this$unsafeFlow;
|
|
2450
2462
|
CoroutineImpl.call(this, resultContinuation);
|
|
2451
2463
|
}
|
|
2452
2464
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2467,12 +2479,12 @@
|
|
|
2467
2479
|
case 0:
|
|
2468
2480
|
this.f9_1 = 2;
|
|
2469
2481
|
var tmp_0 = this;
|
|
2470
|
-
tmp_0.
|
|
2482
|
+
tmp_0.f9w_1 = this.d9w_1;
|
|
2471
2483
|
var tmp_1 = this;
|
|
2472
|
-
tmp_1.
|
|
2484
|
+
tmp_1.g9w_1 = this.e9w_1;
|
|
2473
2485
|
this.e9_1 = 1;
|
|
2474
|
-
var state = this.
|
|
2475
|
-
suspendResult = this.
|
|
2486
|
+
var state = this.g9w_1;
|
|
2487
|
+
suspendResult = this.f9w_1.p18(state.o6r().gameInfo.roundNumberTotal, this);
|
|
2476
2488
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2477
2489
|
return suspendResult;
|
|
2478
2490
|
}
|
|
@@ -2495,8 +2507,8 @@
|
|
|
2495
2507
|
while (true);
|
|
2496
2508
|
};
|
|
2497
2509
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda).j1i = function (value, completion) {
|
|
2498
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
2499
|
-
i.
|
|
2510
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda(this.d9w_1, completion);
|
|
2511
|
+
i.e9w_1 = value;
|
|
2500
2512
|
return i;
|
|
2501
2513
|
};
|
|
2502
2514
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2509,8 +2521,8 @@
|
|
|
2509
2521
|
}
|
|
2510
2522
|
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
2511
2523
|
CoroutineImpl.call(this, resultContinuation);
|
|
2512
|
-
this.
|
|
2513
|
-
this.
|
|
2524
|
+
this.p9w_1 = _this__u8e3s4;
|
|
2525
|
+
this.q9w_1 = collector;
|
|
2514
2526
|
}
|
|
2515
2527
|
protoOf($collectCOROUTINE$1).m9 = function () {
|
|
2516
2528
|
var suspendResult = this.g9_1;
|
|
@@ -2521,10 +2533,10 @@
|
|
|
2521
2533
|
case 0:
|
|
2522
2534
|
this.f9_1 = 2;
|
|
2523
2535
|
var tmp_0 = this;
|
|
2524
|
-
tmp_0.
|
|
2536
|
+
tmp_0.r9w_1 = this.q9w_1;
|
|
2525
2537
|
this.e9_1 = 1;
|
|
2526
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.
|
|
2527
|
-
suspendResult = this.
|
|
2538
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$o$collect$slambda_0(this.r9w_1, null);
|
|
2539
|
+
suspendResult = this.p9w_1.s9w_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2528
2540
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2529
2541
|
return suspendResult;
|
|
2530
2542
|
}
|
|
@@ -2547,7 +2559,7 @@
|
|
|
2547
2559
|
while (true);
|
|
2548
2560
|
};
|
|
2549
2561
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
2550
|
-
this.
|
|
2562
|
+
this.b9x_1 = $$this$unsafeFlow;
|
|
2551
2563
|
CoroutineImpl.call(this, resultContinuation);
|
|
2552
2564
|
}
|
|
2553
2565
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).i1i = function (value, $completion) {
|
|
@@ -2571,33 +2583,33 @@
|
|
|
2571
2583
|
continue $sm;
|
|
2572
2584
|
case 1:
|
|
2573
2585
|
var tmp_0 = this;
|
|
2574
|
-
tmp_0.
|
|
2586
|
+
tmp_0.e9x_1 = this.b9x_1;
|
|
2575
2587
|
var tmp_1 = this;
|
|
2576
|
-
tmp_1.
|
|
2588
|
+
tmp_1.f9x_1 = this.c9x_1;
|
|
2577
2589
|
var tmp_2 = this;
|
|
2578
|
-
tmp_2.
|
|
2579
|
-
if (this.
|
|
2580
|
-
this.
|
|
2590
|
+
tmp_2.g9x_1 = this.f9x_1.m6q_1;
|
|
2591
|
+
if (this.g9x_1 == null) {
|
|
2592
|
+
this.d9x_1 = Unit_instance;
|
|
2581
2593
|
this.e9_1 = 4;
|
|
2582
2594
|
var tmp_3 = this;
|
|
2583
2595
|
continue $sm;
|
|
2584
2596
|
} else {
|
|
2585
|
-
this.
|
|
2597
|
+
this.h9x_1 = this.g9x_1;
|
|
2586
2598
|
this.e9_1 = 2;
|
|
2587
2599
|
continue $sm;
|
|
2588
2600
|
}
|
|
2589
2601
|
|
|
2590
2602
|
case 2:
|
|
2591
|
-
this.
|
|
2603
|
+
this.i9x_1 = this.h9x_1;
|
|
2592
2604
|
this.e9_1 = 3;
|
|
2593
|
-
suspendResult = this.
|
|
2605
|
+
suspendResult = this.e9x_1.p18(this.i9x_1, this);
|
|
2594
2606
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2595
2607
|
return suspendResult;
|
|
2596
2608
|
}
|
|
2597
2609
|
|
|
2598
2610
|
continue $sm;
|
|
2599
2611
|
case 3:
|
|
2600
|
-
this.
|
|
2612
|
+
this.d9x_1 = suspendResult;
|
|
2601
2613
|
if (false) {
|
|
2602
2614
|
this.e9_1 = 1;
|
|
2603
2615
|
continue $sm;
|
|
@@ -2622,8 +2634,8 @@
|
|
|
2622
2634
|
while (true);
|
|
2623
2635
|
};
|
|
2624
2636
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda).j1i = function (value, completion) {
|
|
2625
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.
|
|
2626
|
-
i.
|
|
2637
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.b9x_1, completion);
|
|
2638
|
+
i.c9x_1 = value;
|
|
2627
2639
|
return i;
|
|
2628
2640
|
};
|
|
2629
2641
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -2636,8 +2648,8 @@
|
|
|
2636
2648
|
}
|
|
2637
2649
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
2638
2650
|
CoroutineImpl.call(this, resultContinuation);
|
|
2639
|
-
this.
|
|
2640
|
-
this.
|
|
2651
|
+
this.r9x_1 = _this__u8e3s4;
|
|
2652
|
+
this.s9x_1 = collector;
|
|
2641
2653
|
}
|
|
2642
2654
|
protoOf($collectCOROUTINE$2).m9 = function () {
|
|
2643
2655
|
var suspendResult = this.g9_1;
|
|
@@ -2648,10 +2660,10 @@
|
|
|
2648
2660
|
case 0:
|
|
2649
2661
|
this.f9_1 = 2;
|
|
2650
2662
|
var tmp_0 = this;
|
|
2651
|
-
tmp_0.
|
|
2663
|
+
tmp_0.t9x_1 = this.s9x_1;
|
|
2652
2664
|
this.e9_1 = 1;
|
|
2653
|
-
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.
|
|
2654
|
-
suspendResult = this.
|
|
2665
|
+
var tmp_1 = MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.t9x_1, null);
|
|
2666
|
+
suspendResult = this.r9x_1.u9x_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this);
|
|
2655
2667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2656
2668
|
return suspendResult;
|
|
2657
2669
|
}
|
|
@@ -2674,7 +2686,7 @@
|
|
|
2674
2686
|
while (true);
|
|
2675
2687
|
};
|
|
2676
2688
|
function _no_name_provided__qut3iv_0($this) {
|
|
2677
|
-
this.
|
|
2689
|
+
this.u9x_1 = $this;
|
|
2678
2690
|
}
|
|
2679
2691
|
protoOf(_no_name_provided__qut3iv_0).q18 = function (collector, $completion) {
|
|
2680
2692
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
@@ -2695,20 +2707,20 @@
|
|
|
2695
2707
|
return transformLatest(this_0, MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0(observeState, null));
|
|
2696
2708
|
}
|
|
2697
2709
|
function Companion_1() {
|
|
2698
|
-
this.
|
|
2710
|
+
this.v9x_1 = 1000;
|
|
2699
2711
|
}
|
|
2700
2712
|
var Companion_instance_9;
|
|
2701
2713
|
function Companion_getInstance_2() {
|
|
2702
2714
|
return Companion_instance_9;
|
|
2703
2715
|
}
|
|
2704
2716
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
2705
|
-
this.
|
|
2717
|
+
this.w9x_1 = function_0;
|
|
2706
2718
|
}
|
|
2707
2719
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).p18 = function (value, $completion) {
|
|
2708
|
-
return this.
|
|
2720
|
+
return this.w9x_1(value, $completion);
|
|
2709
2721
|
};
|
|
2710
2722
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).o3 = function () {
|
|
2711
|
-
return this.
|
|
2723
|
+
return this.w9x_1;
|
|
2712
2724
|
};
|
|
2713
2725
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
2714
2726
|
var tmp;
|
|
@@ -2729,13 +2741,13 @@
|
|
|
2729
2741
|
return hashCode(this.o3());
|
|
2730
2742
|
};
|
|
2731
2743
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) {
|
|
2732
|
-
this.
|
|
2744
|
+
this.x9x_1 = function_0;
|
|
2733
2745
|
}
|
|
2734
2746
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).p18 = function (value, $completion) {
|
|
2735
|
-
return this.
|
|
2747
|
+
return this.x9x_1(value, $completion);
|
|
2736
2748
|
};
|
|
2737
2749
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).o3 = function () {
|
|
2738
|
-
return this.
|
|
2750
|
+
return this.x9x_1;
|
|
2739
2751
|
};
|
|
2740
2752
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).equals = function (other) {
|
|
2741
2753
|
var tmp;
|
|
@@ -2756,18 +2768,18 @@
|
|
|
2756
2768
|
return hashCode(this.o3());
|
|
2757
2769
|
};
|
|
2758
2770
|
function MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation) {
|
|
2759
|
-
this.
|
|
2771
|
+
this.g9y_1 = this$0;
|
|
2760
2772
|
CoroutineImpl.call(this, resultContinuation);
|
|
2761
2773
|
}
|
|
2762
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2763
|
-
var tmp = this.
|
|
2774
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).j9y = function ($this$transformLatest, it, $completion) {
|
|
2775
|
+
var tmp = this.k9y($this$transformLatest, it, $completion);
|
|
2764
2776
|
tmp.g9_1 = Unit_instance;
|
|
2765
2777
|
tmp.h9_1 = null;
|
|
2766
2778
|
return tmp.m9();
|
|
2767
2779
|
};
|
|
2768
2780
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).x9 = function (p1, p2, $completion) {
|
|
2769
2781
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2770
|
-
return this.
|
|
2782
|
+
return this.j9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2771
2783
|
};
|
|
2772
2784
|
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).m9 = function () {
|
|
2773
2785
|
var suspendResult = this.g9_1;
|
|
@@ -2778,8 +2790,8 @@
|
|
|
2778
2790
|
case 0:
|
|
2779
2791
|
this.f9_1 = 2;
|
|
2780
2792
|
this.e9_1 = 1;
|
|
2781
|
-
var table = this.
|
|
2782
|
-
suspendResult = emitAll(this.
|
|
2793
|
+
var table = this.i9y_1;
|
|
2794
|
+
suspendResult = emitAll(this.h9y_1, flow(MechanicEventsObserverImpl$observeUpdates$slambda$slambda_0(table, this.g9y_1, null)), this);
|
|
2783
2795
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2784
2796
|
return suspendResult;
|
|
2785
2797
|
}
|
|
@@ -2801,22 +2813,22 @@
|
|
|
2801
2813
|
}
|
|
2802
2814
|
while (true);
|
|
2803
2815
|
};
|
|
2804
|
-
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).
|
|
2805
|
-
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.
|
|
2806
|
-
i.
|
|
2807
|
-
i.
|
|
2816
|
+
protoOf(MechanicEventsObserverImpl$observeUpdates$slambda).k9y = function ($this$transformLatest, it, completion) {
|
|
2817
|
+
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this.g9y_1, completion);
|
|
2818
|
+
i.h9y_1 = $this$transformLatest;
|
|
2819
|
+
i.i9y_1 = it;
|
|
2808
2820
|
return i;
|
|
2809
2821
|
};
|
|
2810
2822
|
function MechanicEventsObserverImpl$observeUpdates$slambda_0(this$0, resultContinuation) {
|
|
2811
2823
|
var i = new MechanicEventsObserverImpl$observeUpdates$slambda(this$0, resultContinuation);
|
|
2812
2824
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2813
|
-
return i.
|
|
2825
|
+
return i.j9y($this$transformLatest, it, $completion);
|
|
2814
2826
|
};
|
|
2815
2827
|
l.$arity = 2;
|
|
2816
2828
|
return l;
|
|
2817
2829
|
}
|
|
2818
2830
|
function _no_name_provided__qut3iv_1($this) {
|
|
2819
|
-
this.
|
|
2831
|
+
this.s9w_1 = $this;
|
|
2820
2832
|
}
|
|
2821
2833
|
protoOf(_no_name_provided__qut3iv_1).q18 = function (collector, $completion) {
|
|
2822
2834
|
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
@@ -2828,18 +2840,18 @@
|
|
|
2828
2840
|
return this.q18(collector, $completion);
|
|
2829
2841
|
};
|
|
2830
2842
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda($observeState, resultContinuation) {
|
|
2831
|
-
this.
|
|
2843
|
+
this.t9y_1 = $observeState;
|
|
2832
2844
|
CoroutineImpl.call(this, resultContinuation);
|
|
2833
2845
|
}
|
|
2834
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2835
|
-
var tmp = this.
|
|
2846
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).j9y = function ($this$transformLatest, it, $completion) {
|
|
2847
|
+
var tmp = this.k9y($this$transformLatest, it, $completion);
|
|
2836
2848
|
tmp.g9_1 = Unit_instance;
|
|
2837
2849
|
tmp.h9_1 = null;
|
|
2838
2850
|
return tmp.m9();
|
|
2839
2851
|
};
|
|
2840
2852
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).x9 = function (p1, p2, $completion) {
|
|
2841
2853
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
2842
|
-
return this.
|
|
2854
|
+
return this.j9y(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
2843
2855
|
};
|
|
2844
2856
|
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).m9 = function () {
|
|
2845
2857
|
var suspendResult = this.g9_1;
|
|
@@ -2850,9 +2862,9 @@
|
|
|
2850
2862
|
case 0:
|
|
2851
2863
|
this.f9_1 = 2;
|
|
2852
2864
|
this.e9_1 = 1;
|
|
2853
|
-
this.
|
|
2854
|
-
var this_0 = this.
|
|
2855
|
-
suspendResult = emitAll(this.
|
|
2865
|
+
this.v9y_1;
|
|
2866
|
+
var this_0 = this.t9y_1;
|
|
2867
|
+
suspendResult = emitAll(this.u9y_1, new _no_name_provided__qut3iv_0(this_0), this);
|
|
2856
2868
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2857
2869
|
return suspendResult;
|
|
2858
2870
|
}
|
|
@@ -2874,27 +2886,27 @@
|
|
|
2874
2886
|
}
|
|
2875
2887
|
while (true);
|
|
2876
2888
|
};
|
|
2877
|
-
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).
|
|
2878
|
-
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.
|
|
2879
|
-
i.
|
|
2880
|
-
i.
|
|
2889
|
+
protoOf(MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda).k9y = function ($this$transformLatest, it, completion) {
|
|
2890
|
+
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda(this.t9y_1, completion);
|
|
2891
|
+
i.u9y_1 = $this$transformLatest;
|
|
2892
|
+
i.v9y_1 = it;
|
|
2881
2893
|
return i;
|
|
2882
2894
|
};
|
|
2883
2895
|
function MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda_0($observeState, resultContinuation) {
|
|
2884
2896
|
var i = new MechanicEventsObserverImpl$observeTableWhenRoundChanges$slambda($observeState, resultContinuation);
|
|
2885
2897
|
var l = function ($this$transformLatest, it, $completion) {
|
|
2886
|
-
return i.
|
|
2898
|
+
return i.j9y($this$transformLatest, it, $completion);
|
|
2887
2899
|
};
|
|
2888
2900
|
l.$arity = 2;
|
|
2889
2901
|
return l;
|
|
2890
2902
|
}
|
|
2891
2903
|
function MechanicEventsObserverImpl() {
|
|
2892
|
-
this.
|
|
2904
|
+
this.u9v_1 = MutableSharedFlow();
|
|
2893
2905
|
}
|
|
2894
|
-
protoOf(MechanicEventsObserverImpl).
|
|
2895
|
-
return this.
|
|
2906
|
+
protoOf(MechanicEventsObserverImpl).i9u = function (event, $completion) {
|
|
2907
|
+
return this.u9v_1.p18(event, $completion);
|
|
2896
2908
|
};
|
|
2897
|
-
protoOf(MechanicEventsObserverImpl).
|
|
2909
|
+
protoOf(MechanicEventsObserverImpl).o9m = function (observeState) {
|
|
2898
2910
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
2899
2911
|
var this_0 = observeTableWhenRoundChanges(this, observeState);
|
|
2900
2912
|
return transformLatest(this_0, MechanicEventsObserverImpl$observeUpdates$slambda_0(this, null));
|
|
@@ -2902,18 +2914,18 @@
|
|
|
2902
2914
|
function ToClientEventsObserver() {
|
|
2903
2915
|
}
|
|
2904
2916
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2905
|
-
this.
|
|
2906
|
-
this.
|
|
2917
|
+
this.f9z_1 = this$0;
|
|
2918
|
+
this.g9z_1 = $actions;
|
|
2907
2919
|
CoroutineImpl.call(this, resultContinuation);
|
|
2908
2920
|
}
|
|
2909
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2910
|
-
var tmp = this.
|
|
2921
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).n9z = function ($this$flow, $completion) {
|
|
2922
|
+
var tmp = this.o9z($this$flow, $completion);
|
|
2911
2923
|
tmp.g9_1 = Unit_instance;
|
|
2912
2924
|
tmp.h9_1 = null;
|
|
2913
2925
|
return tmp.m9();
|
|
2914
2926
|
};
|
|
2915
2927
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
2916
|
-
return this.
|
|
2928
|
+
return this.n9z((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2917
2929
|
};
|
|
2918
2930
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).m9 = function () {
|
|
2919
2931
|
var suspendResult = this.g9_1;
|
|
@@ -2924,23 +2936,23 @@
|
|
|
2924
2936
|
case 0:
|
|
2925
2937
|
this.f9_1 = 4;
|
|
2926
2938
|
var tmp_0 = this;
|
|
2927
|
-
tmp_0.
|
|
2939
|
+
tmp_0.i9z_1 = this.f9z_1.t9z_1;
|
|
2928
2940
|
var tmp_1 = this;
|
|
2929
|
-
tmp_1.
|
|
2930
|
-
this.
|
|
2941
|
+
tmp_1.j9z_1 = transformToEmits(this.f9z_1, this.g9z_1);
|
|
2942
|
+
this.k9z_1 = this.j9z_1.j();
|
|
2931
2943
|
this.e9_1 = 1;
|
|
2932
2944
|
continue $sm;
|
|
2933
2945
|
case 1:
|
|
2934
|
-
if (!this.
|
|
2946
|
+
if (!this.k9z_1.k()) {
|
|
2935
2947
|
this.e9_1 = 3;
|
|
2936
2948
|
continue $sm;
|
|
2937
2949
|
}
|
|
2938
2950
|
|
|
2939
|
-
this.
|
|
2951
|
+
this.l9z_1 = this.k9z_1.l();
|
|
2940
2952
|
var tmp_2 = this;
|
|
2941
|
-
tmp_2.
|
|
2953
|
+
tmp_2.m9z_1 = this.l9z_1;
|
|
2942
2954
|
this.e9_1 = 2;
|
|
2943
|
-
suspendResult = this.
|
|
2955
|
+
suspendResult = this.h9z_1.p18(this.m9z_1, this);
|
|
2944
2956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2945
2957
|
return suspendResult;
|
|
2946
2958
|
}
|
|
@@ -2951,10 +2963,10 @@
|
|
|
2951
2963
|
continue $sm;
|
|
2952
2964
|
case 3:
|
|
2953
2965
|
l$ret$1: do {
|
|
2954
|
-
var this_0 = this.
|
|
2966
|
+
var this_0 = this.f9z_1.s9z_1;
|
|
2955
2967
|
while (true) {
|
|
2956
2968
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2957
|
-
var upd = cur - this.
|
|
2969
|
+
var upd = cur - this.g9z_1.m() | 0;
|
|
2958
2970
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2959
2971
|
break l$ret$1;
|
|
2960
2972
|
}
|
|
@@ -2976,15 +2988,15 @@
|
|
|
2976
2988
|
}
|
|
2977
2989
|
while (true);
|
|
2978
2990
|
};
|
|
2979
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2980
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2981
|
-
i.
|
|
2991
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).o9z = function ($this$flow, completion) {
|
|
2992
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.f9z_1, this.g9z_1, completion);
|
|
2993
|
+
i.h9z_1 = $this$flow;
|
|
2982
2994
|
return i;
|
|
2983
2995
|
};
|
|
2984
2996
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2985
2997
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2986
2998
|
var l = function ($this$flow, $completion) {
|
|
2987
|
-
return i.
|
|
2999
|
+
return i.n9z($this$flow, $completion);
|
|
2988
3000
|
};
|
|
2989
3001
|
l.$arity = 1;
|
|
2990
3002
|
return l;
|
|
@@ -3057,29 +3069,29 @@
|
|
|
3057
3069
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
3058
3070
|
}
|
|
3059
3071
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3060
|
-
var tmp = $this.
|
|
3072
|
+
var tmp = $this.r9z_1.u6h();
|
|
3061
3073
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3062
|
-
var this_0 = _this__u8e3s4.
|
|
3074
|
+
var this_0 = _this__u8e3s4.w9z_1;
|
|
3063
3075
|
var tmp_0 = copyToArray(this_0);
|
|
3064
3076
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3065
|
-
var this_1 = _this__u8e3s4.
|
|
3077
|
+
var this_1 = _this__u8e3s4.x9z_1;
|
|
3066
3078
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3067
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3079
|
+
return new ActionDeliveryPayload(_this__u8e3s4.v9z_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.y9z_1);
|
|
3068
3080
|
}
|
|
3069
3081
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3070
|
-
this.
|
|
3071
|
-
this.
|
|
3072
|
-
this.
|
|
3073
|
-
this.
|
|
3082
|
+
this.v9z_1 = tableId;
|
|
3083
|
+
this.w9z_1 = includePlayers;
|
|
3084
|
+
this.x9z_1 = excludePlayers;
|
|
3085
|
+
this.y9z_1 = deliveryType;
|
|
3074
3086
|
}
|
|
3075
3087
|
protoOf(GroupKey).toString = function () {
|
|
3076
|
-
return 'GroupKey(tableId=' + this.
|
|
3088
|
+
return 'GroupKey(tableId=' + this.v9z_1 + ', includePlayers=' + toString(this.w9z_1) + ', excludePlayers=' + toString(this.x9z_1) + ', deliveryType=' + this.y9z_1.toString() + ')';
|
|
3077
3089
|
};
|
|
3078
3090
|
protoOf(GroupKey).hashCode = function () {
|
|
3079
|
-
var result = getStringHashCode(this.
|
|
3080
|
-
result = imul(result, 31) + hashCode(this.
|
|
3081
|
-
result = imul(result, 31) + hashCode(this.
|
|
3082
|
-
result = imul(result, 31) + this.
|
|
3091
|
+
var result = getStringHashCode(this.v9z_1);
|
|
3092
|
+
result = imul(result, 31) + hashCode(this.w9z_1) | 0;
|
|
3093
|
+
result = imul(result, 31) + hashCode(this.x9z_1) | 0;
|
|
3094
|
+
result = imul(result, 31) + this.y9z_1.hashCode() | 0;
|
|
3083
3095
|
return result;
|
|
3084
3096
|
};
|
|
3085
3097
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3088,35 +3100,35 @@
|
|
|
3088
3100
|
if (!(other instanceof GroupKey))
|
|
3089
3101
|
return false;
|
|
3090
3102
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3091
|
-
if (!(this.
|
|
3103
|
+
if (!(this.v9z_1 === tmp0_other_with_cast.v9z_1))
|
|
3092
3104
|
return false;
|
|
3093
|
-
if (!equals(this.
|
|
3105
|
+
if (!equals(this.w9z_1, tmp0_other_with_cast.w9z_1))
|
|
3094
3106
|
return false;
|
|
3095
|
-
if (!equals(this.
|
|
3107
|
+
if (!equals(this.x9z_1, tmp0_other_with_cast.x9z_1))
|
|
3096
3108
|
return false;
|
|
3097
|
-
if (!this.
|
|
3109
|
+
if (!this.y9z_1.equals(tmp0_other_with_cast.y9z_1))
|
|
3098
3110
|
return false;
|
|
3099
3111
|
return true;
|
|
3100
3112
|
};
|
|
3101
3113
|
function Companion_2() {
|
|
3102
|
-
this.
|
|
3114
|
+
this.z9z_1 = 6;
|
|
3103
3115
|
}
|
|
3104
3116
|
var Companion_instance_10;
|
|
3105
3117
|
function Companion_getInstance_3() {
|
|
3106
3118
|
return Companion_instance_10;
|
|
3107
3119
|
}
|
|
3108
3120
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3109
|
-
this.
|
|
3121
|
+
this.ia0_1 = this$0;
|
|
3110
3122
|
CoroutineImpl.call(this, resultContinuation);
|
|
3111
3123
|
}
|
|
3112
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3113
|
-
var tmp = this.
|
|
3124
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ka0 = function (actions, $completion) {
|
|
3125
|
+
var tmp = this.la0(actions, $completion);
|
|
3114
3126
|
tmp.g9_1 = Unit_instance;
|
|
3115
3127
|
tmp.h9_1 = null;
|
|
3116
3128
|
return tmp.m9();
|
|
3117
3129
|
};
|
|
3118
3130
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).w9 = function (p1, $completion) {
|
|
3119
|
-
return this.
|
|
3131
|
+
return this.ka0((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3120
3132
|
};
|
|
3121
3133
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).m9 = function () {
|
|
3122
3134
|
var suspendResult = this.g9_1;
|
|
@@ -3125,7 +3137,7 @@
|
|
|
3125
3137
|
var tmp = this.e9_1;
|
|
3126
3138
|
if (tmp === 0) {
|
|
3127
3139
|
this.f9_1 = 1;
|
|
3128
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3140
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.ia0_1, this.ja0_1, null));
|
|
3129
3141
|
} else if (tmp === 1) {
|
|
3130
3142
|
throw this.h9_1;
|
|
3131
3143
|
}
|
|
@@ -3135,23 +3147,23 @@
|
|
|
3135
3147
|
}
|
|
3136
3148
|
while (true);
|
|
3137
3149
|
};
|
|
3138
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3139
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3140
|
-
i.
|
|
3150
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).la0 = function (actions, completion) {
|
|
3151
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.ia0_1, completion);
|
|
3152
|
+
i.ja0_1 = actions;
|
|
3141
3153
|
return i;
|
|
3142
3154
|
};
|
|
3143
3155
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3144
3156
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3145
3157
|
var l = function (actions, $completion) {
|
|
3146
|
-
return i.
|
|
3158
|
+
return i.ka0(actions, $completion);
|
|
3147
3159
|
};
|
|
3148
3160
|
l.$arity = 1;
|
|
3149
3161
|
return l;
|
|
3150
3162
|
}
|
|
3151
3163
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3152
3164
|
CoroutineImpl.call(this, resultContinuation);
|
|
3153
|
-
this.
|
|
3154
|
-
this.
|
|
3165
|
+
this.ua0_1 = _this__u8e3s4;
|
|
3166
|
+
this.va0_1 = fromEvent;
|
|
3155
3167
|
}
|
|
3156
3168
|
protoOf($sentEventCOROUTINE$3).m9 = function () {
|
|
3157
3169
|
var suspendResult = this.g9_1;
|
|
@@ -3162,9 +3174,9 @@
|
|
|
3162
3174
|
case 0:
|
|
3163
3175
|
this.f9_1 = 2;
|
|
3164
3176
|
var tmp_0 = this;
|
|
3165
|
-
tmp_0.
|
|
3177
|
+
tmp_0.wa0_1 = this.ua0_1.t9z_1;
|
|
3166
3178
|
l$ret$1: do {
|
|
3167
|
-
var this_0 = this.
|
|
3179
|
+
var this_0 = this.ua0_1.s9z_1;
|
|
3168
3180
|
while (true) {
|
|
3169
3181
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3170
3182
|
var upd = cur + 1 | 0;
|
|
@@ -3175,7 +3187,7 @@
|
|
|
3175
3187
|
}
|
|
3176
3188
|
while (false);
|
|
3177
3189
|
this.e9_1 = 1;
|
|
3178
|
-
suspendResult = this.
|
|
3190
|
+
suspendResult = this.ua0_1.u9z_1.p18(this.va0_1, this);
|
|
3179
3191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3180
3192
|
return suspendResult;
|
|
3181
3193
|
}
|
|
@@ -3199,7 +3211,7 @@
|
|
|
3199
3211
|
};
|
|
3200
3212
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3201
3213
|
CoroutineImpl.call(this, resultContinuation);
|
|
3202
|
-
this.
|
|
3214
|
+
this.fa1_1 = _this__u8e3s4;
|
|
3203
3215
|
}
|
|
3204
3216
|
protoOf($waitForCOROUTINE$4).m9 = function () {
|
|
3205
3217
|
var suspendResult = this.g9_1;
|
|
@@ -3210,12 +3222,12 @@
|
|
|
3210
3222
|
case 0:
|
|
3211
3223
|
this.f9_1 = 5;
|
|
3212
3224
|
var tmp_0 = this;
|
|
3213
|
-
tmp_0.
|
|
3214
|
-
this.
|
|
3225
|
+
tmp_0.ga1_1 = this.fa1_1.t9z_1;
|
|
3226
|
+
this.ha1_1 = 0;
|
|
3215
3227
|
this.e9_1 = 1;
|
|
3216
3228
|
continue $sm;
|
|
3217
3229
|
case 1:
|
|
3218
|
-
if (!!(this.
|
|
3230
|
+
if (!!(this.fa1_1.s9z_1.kotlinx$atomicfu$value === 0)) {
|
|
3219
3231
|
this.e9_1 = 4;
|
|
3220
3232
|
continue $sm;
|
|
3221
3233
|
}
|
|
@@ -3228,9 +3240,9 @@
|
|
|
3228
3240
|
|
|
3229
3241
|
continue $sm;
|
|
3230
3242
|
case 2:
|
|
3231
|
-
this.
|
|
3232
|
-
if (this.
|
|
3233
|
-
this.
|
|
3243
|
+
this.ha1_1 = this.ha1_1 + 1 | 0;
|
|
3244
|
+
if (this.ha1_1 > 6) {
|
|
3245
|
+
this.fa1_1.q9z_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.fa1_1.s9z_1.kotlinx$atomicfu$value);
|
|
3234
3246
|
this.e9_1 = 4;
|
|
3235
3247
|
continue $sm;
|
|
3236
3248
|
} else {
|
|
@@ -3258,42 +3270,42 @@
|
|
|
3258
3270
|
while (true);
|
|
3259
3271
|
};
|
|
3260
3272
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3261
|
-
this.
|
|
3262
|
-
this.
|
|
3263
|
-
this.
|
|
3264
|
-
this.
|
|
3273
|
+
this.p9z_1 = serverReduxConfig;
|
|
3274
|
+
this.q9z_1 = logger;
|
|
3275
|
+
this.r9z_1 = idsProvider;
|
|
3276
|
+
this.s9z_1 = atomic$ref$1(0);
|
|
3265
3277
|
var tmp = this;
|
|
3266
3278
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3267
|
-
tmp.
|
|
3268
|
-
this.
|
|
3279
|
+
tmp.t9z_1 = get_atomicfu$reentrantLock();
|
|
3280
|
+
this.u9z_1 = MutableSharedFlow();
|
|
3269
3281
|
}
|
|
3270
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3282
|
+
protoOf(ToClientEventsObserverImpl).w9y = function (fromEvent, $completion) {
|
|
3271
3283
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3272
3284
|
tmp.g9_1 = Unit_instance;
|
|
3273
3285
|
tmp.h9_1 = null;
|
|
3274
3286
|
return tmp.m9();
|
|
3275
3287
|
};
|
|
3276
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3288
|
+
protoOf(ToClientEventsObserverImpl).c9c = function ($completion) {
|
|
3277
3289
|
var tmp = new $waitForCOROUTINE$4(this, $completion);
|
|
3278
3290
|
tmp.g9_1 = Unit_instance;
|
|
3279
3291
|
tmp.h9_1 = null;
|
|
3280
3292
|
return tmp.m9();
|
|
3281
3293
|
};
|
|
3282
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3283
|
-
if (!this.
|
|
3284
|
-
return this.
|
|
3294
|
+
protoOf(ToClientEventsObserverImpl).c9m = function () {
|
|
3295
|
+
if (!this.p9z_1.enabledCombinedEvents) {
|
|
3296
|
+
return this.u9z_1;
|
|
3285
3297
|
}
|
|
3286
|
-
var tmp = windowedByInterval(this.
|
|
3298
|
+
var tmp = windowedByInterval(this.u9z_1, toLong(this.p9z_1.combinedEventsPeriod));
|
|
3287
3299
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3288
3300
|
};
|
|
3289
3301
|
function UpdateServerConfigAction(serverConfig) {
|
|
3290
|
-
this.
|
|
3302
|
+
this.ia1_1 = serverConfig;
|
|
3291
3303
|
}
|
|
3292
3304
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3293
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3305
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.ia1_1.toString() + ')';
|
|
3294
3306
|
};
|
|
3295
3307
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3296
|
-
return this.
|
|
3308
|
+
return this.ia1_1.hashCode();
|
|
3297
3309
|
};
|
|
3298
3310
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3299
3311
|
if (this === other)
|
|
@@ -3301,20 +3313,20 @@
|
|
|
3301
3313
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3302
3314
|
return false;
|
|
3303
3315
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3304
|
-
if (!this.
|
|
3316
|
+
if (!this.ia1_1.equals(tmp0_other_with_cast.ia1_1))
|
|
3305
3317
|
return false;
|
|
3306
3318
|
return true;
|
|
3307
3319
|
};
|
|
3308
3320
|
function SpectatorsAction() {
|
|
3309
3321
|
}
|
|
3310
3322
|
function AddSpectatorsAction(spectators) {
|
|
3311
|
-
this.
|
|
3323
|
+
this.ja1_1 = spectators;
|
|
3312
3324
|
}
|
|
3313
3325
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3314
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
3326
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.ja1_1) + ')';
|
|
3315
3327
|
};
|
|
3316
3328
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3317
|
-
return hashCode(this.
|
|
3329
|
+
return hashCode(this.ja1_1);
|
|
3318
3330
|
};
|
|
3319
3331
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3320
3332
|
if (this === other)
|
|
@@ -3322,18 +3334,18 @@
|
|
|
3322
3334
|
if (!(other instanceof AddSpectatorsAction))
|
|
3323
3335
|
return false;
|
|
3324
3336
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3325
|
-
if (!equals(this.
|
|
3337
|
+
if (!equals(this.ja1_1, tmp0_other_with_cast.ja1_1))
|
|
3326
3338
|
return false;
|
|
3327
3339
|
return true;
|
|
3328
3340
|
};
|
|
3329
3341
|
function RemoveSpectatorsAction(spectators) {
|
|
3330
|
-
this.
|
|
3342
|
+
this.ka1_1 = spectators;
|
|
3331
3343
|
}
|
|
3332
3344
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3333
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
3345
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.ka1_1) + ')';
|
|
3334
3346
|
};
|
|
3335
3347
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3336
|
-
return hashCode(this.
|
|
3348
|
+
return hashCode(this.ka1_1);
|
|
3337
3349
|
};
|
|
3338
3350
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3339
3351
|
if (this === other)
|
|
@@ -3341,78 +3353,78 @@
|
|
|
3341
3353
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3342
3354
|
return false;
|
|
3343
3355
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3344
|
-
if (!equals(this.
|
|
3356
|
+
if (!equals(this.ka1_1, tmp0_other_with_cast.ka1_1))
|
|
3345
3357
|
return false;
|
|
3346
3358
|
return true;
|
|
3347
3359
|
};
|
|
3348
3360
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3349
3361
|
// Inline function 'kotlin.getValue' call
|
|
3350
|
-
var this_0 = $this.
|
|
3362
|
+
var this_0 = $this.qa1_1;
|
|
3351
3363
|
asyncProvider$factory_0();
|
|
3352
3364
|
return this_0.u();
|
|
3353
3365
|
}
|
|
3354
3366
|
function _get_logger__rkp4sl_0($this) {
|
|
3355
3367
|
// Inline function 'kotlin.getValue' call
|
|
3356
|
-
var this_0 = $this.
|
|
3368
|
+
var this_0 = $this.ra1_1;
|
|
3357
3369
|
logger$factory_2();
|
|
3358
3370
|
return this_0.u();
|
|
3359
3371
|
}
|
|
3360
3372
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3361
3373
|
// Inline function 'kotlin.getValue' call
|
|
3362
|
-
var this_0 = $this.
|
|
3374
|
+
var this_0 = $this.sa1_1;
|
|
3363
3375
|
playerConnectionInteractor$factory_2();
|
|
3364
3376
|
return this_0.u();
|
|
3365
3377
|
}
|
|
3366
3378
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3367
3379
|
// Inline function 'kotlin.getValue' call
|
|
3368
|
-
var this_0 = $this.
|
|
3380
|
+
var this_0 = $this.ta1_1;
|
|
3369
3381
|
lastCardInteractor$factory_0();
|
|
3370
3382
|
return this_0.u();
|
|
3371
3383
|
}
|
|
3372
3384
|
function _get_serverConfig__rk2g06($this) {
|
|
3373
3385
|
// Inline function 'kotlin.getValue' call
|
|
3374
|
-
var this_0 = $this.
|
|
3386
|
+
var this_0 = $this.ua1_1;
|
|
3375
3387
|
serverConfig$factory_0();
|
|
3376
3388
|
return this_0.u();
|
|
3377
3389
|
}
|
|
3378
3390
|
function _get_logicConfig__52ww9d($this) {
|
|
3379
3391
|
// Inline function 'kotlin.getValue' call
|
|
3380
|
-
var this_0 = $this.
|
|
3392
|
+
var this_0 = $this.va1_1;
|
|
3381
3393
|
logicConfig$factory_0();
|
|
3382
3394
|
return this_0.u();
|
|
3383
3395
|
}
|
|
3384
3396
|
function _get_idsProvider__fnfajc_0($this) {
|
|
3385
3397
|
// Inline function 'kotlin.getValue' call
|
|
3386
|
-
var this_0 = $this.
|
|
3398
|
+
var this_0 = $this.wa1_1;
|
|
3387
3399
|
idsProvider$factory_2();
|
|
3388
3400
|
return this_0.u();
|
|
3389
3401
|
}
|
|
3390
3402
|
function _get_botConfig__cpaxzc($this) {
|
|
3391
3403
|
// Inline function 'kotlin.getValue' call
|
|
3392
|
-
var this_0 = $this.
|
|
3404
|
+
var this_0 = $this.xa1_1;
|
|
3393
3405
|
botConfig$factory_0();
|
|
3394
3406
|
return this_0.u();
|
|
3395
3407
|
}
|
|
3396
3408
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3397
3409
|
// Inline function 'kotlin.getValue' call
|
|
3398
|
-
var this_0 = $this.
|
|
3410
|
+
var this_0 = $this.ya1_1;
|
|
3399
3411
|
scenePositionProvider$factory_0();
|
|
3400
3412
|
return this_0.u();
|
|
3401
3413
|
}
|
|
3402
3414
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3403
3415
|
// Inline function 'kotlin.getValue' call
|
|
3404
|
-
var this_0 = $this.
|
|
3416
|
+
var this_0 = $this.za1_1;
|
|
3405
3417
|
toClientEventsObserver$factory_2();
|
|
3406
3418
|
return this_0.u();
|
|
3407
3419
|
}
|
|
3408
3420
|
function _get_mechanicEventsObserver__ll1b9k_0($this) {
|
|
3409
3421
|
// Inline function 'kotlin.getValue' call
|
|
3410
|
-
var this_0 = $this.
|
|
3422
|
+
var this_0 = $this.aa2_1;
|
|
3411
3423
|
mechanicEventsObserver$factory_2();
|
|
3412
3424
|
return this_0.u();
|
|
3413
3425
|
}
|
|
3414
3426
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
3415
|
-
return !player.
|
|
3427
|
+
return !player.p6c();
|
|
3416
3428
|
}
|
|
3417
3429
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
3418
3430
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -3420,83 +3432,83 @@
|
|
|
3420
3432
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3421
3433
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3422
3434
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3423
|
-
this.
|
|
3424
|
-
this.
|
|
3425
|
-
this.
|
|
3426
|
-
this.
|
|
3427
|
-
this.
|
|
3435
|
+
this.la1_1 = validationStoreContract;
|
|
3436
|
+
this.ma1_1 = timersStoreContract;
|
|
3437
|
+
this.na1_1 = botGameStoreContract;
|
|
3438
|
+
this.oa1_1 = gameMechanicStoreContract;
|
|
3439
|
+
this.pa1_1 = fileLoggerStoreContract;
|
|
3428
3440
|
var tmp = this;
|
|
3429
3441
|
// Inline function 'org.kodein.di.instance' call
|
|
3430
3442
|
// Inline function 'org.kodein.type.generic' call
|
|
3431
3443
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3432
3444
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3433
|
-
tmp.
|
|
3445
|
+
tmp.qa1_1 = Instance(di, tmp$ret$0, null).t63(this, asyncProvider$factory());
|
|
3434
3446
|
var tmp_1 = this;
|
|
3435
3447
|
// Inline function 'org.kodein.di.instance' call
|
|
3436
3448
|
// Inline function 'org.kodein.type.generic' call
|
|
3437
3449
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3438
3450
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3439
|
-
tmp_1.
|
|
3451
|
+
tmp_1.ra1_1 = Instance(di, tmp$ret$2, null).t63(this, logger$factory_1());
|
|
3440
3452
|
var tmp_3 = this;
|
|
3441
3453
|
// Inline function 'org.kodein.di.instance' call
|
|
3442
3454
|
// Inline function 'org.kodein.type.generic' call
|
|
3443
3455
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3444
3456
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3445
|
-
tmp_3.
|
|
3457
|
+
tmp_3.sa1_1 = Instance(di, tmp$ret$4, null).t63(this, playerConnectionInteractor$factory_1());
|
|
3446
3458
|
var tmp_5 = this;
|
|
3447
3459
|
// Inline function 'org.kodein.di.instance' call
|
|
3448
3460
|
// Inline function 'org.kodein.type.generic' call
|
|
3449
3461
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3450
3462
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3451
|
-
tmp_5.
|
|
3463
|
+
tmp_5.ta1_1 = Instance(di, tmp$ret$6, null).t63(this, lastCardInteractor$factory());
|
|
3452
3464
|
var tmp_7 = this;
|
|
3453
3465
|
// Inline function 'org.kodein.di.instance' call
|
|
3454
3466
|
// Inline function 'org.kodein.type.generic' call
|
|
3455
3467
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3456
3468
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3457
|
-
tmp_7.
|
|
3469
|
+
tmp_7.ua1_1 = Instance(di, tmp$ret$8, null).t63(this, serverConfig$factory());
|
|
3458
3470
|
var tmp_9 = this;
|
|
3459
3471
|
// Inline function 'org.kodein.di.instance' call
|
|
3460
3472
|
// Inline function 'org.kodein.type.generic' call
|
|
3461
3473
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3462
3474
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3463
|
-
tmp_9.
|
|
3475
|
+
tmp_9.va1_1 = Instance(di, tmp$ret$10, null).t63(this, logicConfig$factory());
|
|
3464
3476
|
var tmp_11 = this;
|
|
3465
3477
|
// Inline function 'org.kodein.di.instance' call
|
|
3466
3478
|
// Inline function 'org.kodein.type.generic' call
|
|
3467
3479
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3468
3480
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3469
|
-
tmp_11.
|
|
3481
|
+
tmp_11.wa1_1 = Instance(di, tmp$ret$12, null).t63(this, idsProvider$factory_1());
|
|
3470
3482
|
var tmp_13 = this;
|
|
3471
3483
|
// Inline function 'org.kodein.di.instance' call
|
|
3472
3484
|
// Inline function 'org.kodein.type.generic' call
|
|
3473
3485
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3474
3486
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3475
|
-
tmp_13.
|
|
3487
|
+
tmp_13.xa1_1 = Instance(di, tmp$ret$14, null).t63(this, botConfig$factory());
|
|
3476
3488
|
var tmp_15 = this;
|
|
3477
3489
|
// Inline function 'org.kodein.di.instance' call
|
|
3478
3490
|
// Inline function 'org.kodein.type.generic' call
|
|
3479
3491
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3480
3492
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3481
|
-
tmp_15.
|
|
3493
|
+
tmp_15.ya1_1 = Instance(di, tmp$ret$16, null).t63(this, scenePositionProvider$factory());
|
|
3482
3494
|
var tmp_17 = this;
|
|
3483
3495
|
// Inline function 'org.kodein.di.instance' call
|
|
3484
3496
|
// Inline function 'org.kodein.type.generic' call
|
|
3485
3497
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3486
3498
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3487
|
-
tmp_17.
|
|
3499
|
+
tmp_17.za1_1 = Instance(di, tmp$ret$18, null).t63(this, toClientEventsObserver$factory_1());
|
|
3488
3500
|
var tmp_19 = this;
|
|
3489
3501
|
// Inline function 'org.kodein.di.instance' call
|
|
3490
3502
|
// Inline function 'org.kodein.type.generic' call
|
|
3491
3503
|
var tmp_20 = typeToken(createKType(getKClass(MechanicEventsObserver), arrayOf([]), false));
|
|
3492
3504
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3493
|
-
tmp_19.
|
|
3505
|
+
tmp_19.aa2_1 = Instance(di, tmp$ret$20, null).t63(this, mechanicEventsObserver$factory_1());
|
|
3494
3506
|
}
|
|
3495
|
-
protoOf(ServerGameStoreContract).
|
|
3496
|
-
return plus(plus(plus(plus(plus(this.
|
|
3507
|
+
protoOf(ServerGameStoreContract).g95 = function () {
|
|
3508
|
+
return plus(plus(plus(plus(plus(this.la1_1.g95(), this.ma1_1.g95()), this.na1_1.g95()), this.oa1_1.g95()), this.pa1_1.g95()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3497
3509
|
};
|
|
3498
|
-
protoOf(ServerGameStoreContract).
|
|
3499
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
3510
|
+
protoOf(ServerGameStoreContract).h95 = function () {
|
|
3511
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.la1_1.h95(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.ma1_1.h95()), this.na1_1.h95()), this.oa1_1.h95()), this.pa1_1.h95()), 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_0(this))).z96(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3500
3512
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3501
3513
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3502
3514
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3628,28 +3640,28 @@
|
|
|
3628
3640
|
}
|
|
3629
3641
|
function _no_name_provided__qut3iv_2() {
|
|
3630
3642
|
}
|
|
3631
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3643
|
+
protoOf(_no_name_provided__qut3iv_2).r6j = function (action) {
|
|
3632
3644
|
return action instanceof RoundEndedAction;
|
|
3633
3645
|
};
|
|
3634
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3646
|
+
protoOf(_no_name_provided__qut3iv_2).i6l = function (store, next, action) {
|
|
3635
3647
|
// Inline function 'games.jass.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
3636
3648
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
3637
3649
|
next(action_0);
|
|
3638
3650
|
var state = store.state;
|
|
3639
|
-
if (!get_serverStatePayload_0(state).
|
|
3640
|
-
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.
|
|
3651
|
+
if (!get_serverStatePayload_0(state).j9t_1.l9t_1 && action_0.isGameFinished) {
|
|
3652
|
+
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.m6q_1));
|
|
3641
3653
|
}
|
|
3642
3654
|
};
|
|
3643
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3644
|
-
return this.
|
|
3655
|
+
protoOf(_no_name_provided__qut3iv_2).q6j = function (store, next, action) {
|
|
3656
|
+
return this.i6l(store, next, action);
|
|
3645
3657
|
};
|
|
3646
3658
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3647
|
-
this.
|
|
3659
|
+
this.da2_1 = this$0;
|
|
3648
3660
|
}
|
|
3649
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3661
|
+
protoOf(_no_name_provided__qut3iv_3).r6j = function (action) {
|
|
3650
3662
|
return action instanceof MechanicAction;
|
|
3651
3663
|
};
|
|
3652
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3664
|
+
protoOf(_no_name_provided__qut3iv_3).i6l = function (store, next, action) {
|
|
3653
3665
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>' call
|
|
3654
3666
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
3655
3667
|
var state = store.state;
|
|
@@ -3658,18 +3670,18 @@
|
|
|
3658
3670
|
var tmp;
|
|
3659
3671
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3660
3672
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3661
|
-
var this_0 = this.
|
|
3662
|
-
var tableId = action_0.
|
|
3663
|
-
var gameCreatorPlayerId = action_0.
|
|
3673
|
+
var this_0 = this.da2_1;
|
|
3674
|
+
var tableId = action_0.v7z_1;
|
|
3675
|
+
var gameCreatorPlayerId = action_0.x7z_1;
|
|
3664
3676
|
// Inline function 'kotlin.collections.map' call
|
|
3665
|
-
var this_1 = action_0.
|
|
3677
|
+
var this_1 = action_0.y7z_1;
|
|
3666
3678
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3667
3679
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3668
3680
|
var tmp0_iterator = this_1.j();
|
|
3669
3681
|
while (tmp0_iterator.k()) {
|
|
3670
3682
|
var item = tmp0_iterator.l();
|
|
3671
3683
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3672
|
-
var tmp$ret$0 = to(item.
|
|
3684
|
+
var tmp$ret$0 = to(item.w6a_1, PlayerConnectionState_LIVE_getInstance());
|
|
3673
3685
|
destination.e(tmp$ret$0);
|
|
3674
3686
|
}
|
|
3675
3687
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3703,7 +3715,7 @@
|
|
|
3703
3715
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3704
3716
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3705
3717
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3706
|
-
var tmp0_aid = this_0.
|
|
3718
|
+
var tmp0_aid = this_0.ca2_1.u6h();
|
|
3707
3719
|
// Inline function 'kotlin.collections.map' call
|
|
3708
3720
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3709
3721
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3728,17 +3740,17 @@
|
|
|
3728
3740
|
} else {
|
|
3729
3741
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3730
3742
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3731
|
-
var this_2 = this.
|
|
3732
|
-
var table = state.
|
|
3743
|
+
var this_2 = this.da2_1;
|
|
3744
|
+
var table = state.o6r();
|
|
3733
3745
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3734
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3746
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.ca2_1.u6h(), table.id, null);
|
|
3735
3747
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3736
3748
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3737
3749
|
} else {
|
|
3738
3750
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3739
3751
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3740
|
-
var this_3 = this.
|
|
3741
|
-
var tableId_0 = action_0.
|
|
3752
|
+
var this_3 = this.da2_1;
|
|
3753
|
+
var tableId_0 = action_0.b80_1.id;
|
|
3742
3754
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3743
3755
|
// Inline function 'kotlin.collections.map' call
|
|
3744
3756
|
var this_4 = action_0.users;
|
|
@@ -3748,7 +3760,7 @@
|
|
|
3748
3760
|
while (tmp0_iterator_4.k()) {
|
|
3749
3761
|
var item_2 = tmp0_iterator_4.l();
|
|
3750
3762
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3751
|
-
var tmp$ret$20 = to(item_2.
|
|
3763
|
+
var tmp$ret$20 = to(item_2.w6a_1, PlayerConnectionState_LIVE_getInstance());
|
|
3752
3764
|
destination_4.e(tmp$ret$20);
|
|
3753
3765
|
}
|
|
3754
3766
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3782,7 +3794,7 @@
|
|
|
3782
3794
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3783
3795
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3784
3796
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3785
|
-
var tmp0_aid_0 = this_3.
|
|
3797
|
+
var tmp0_aid_0 = this_3.ca2_1.u6h();
|
|
3786
3798
|
// Inline function 'kotlin.collections.map' call
|
|
3787
3799
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3788
3800
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3807,44 +3819,44 @@
|
|
|
3807
3819
|
} else {
|
|
3808
3820
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3809
3821
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3810
|
-
var this_5 = this.
|
|
3811
|
-
var table_0 = state.
|
|
3822
|
+
var this_5 = this.da2_1;
|
|
3823
|
+
var table_0 = state.o6r();
|
|
3812
3824
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3813
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3825
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.ca2_1.u6h(), table_0.id, null);
|
|
3814
3826
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3815
3827
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3816
3828
|
} else {
|
|
3817
3829
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3818
3830
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3819
|
-
var this_6 = this.
|
|
3820
|
-
var table_1 = state.
|
|
3831
|
+
var this_6 = this.da2_1;
|
|
3832
|
+
var table_1 = state.o6r();
|
|
3821
3833
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3822
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3834
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.ca2_1.u6h(), table_1.id, null);
|
|
3823
3835
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3824
3836
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3825
3837
|
} else {
|
|
3826
3838
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3827
3839
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3828
|
-
var this_7 = this.
|
|
3829
|
-
var table_2 = state.
|
|
3840
|
+
var this_7 = this.da2_1;
|
|
3841
|
+
var table_2 = state.o6r();
|
|
3830
3842
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3831
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3843
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.ca2_1.u6h(), table_2.id, null);
|
|
3832
3844
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3833
3845
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3834
3846
|
} else {
|
|
3835
3847
|
if (action_0 instanceof ErrorAction) {
|
|
3836
3848
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3837
|
-
var this_8 = this.
|
|
3838
|
-
var table_3 = state.
|
|
3849
|
+
var this_8 = this.da2_1;
|
|
3850
|
+
var table_3 = state.o6r();
|
|
3839
3851
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3840
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3852
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.ca2_1.u6h(), table_3.id, null);
|
|
3841
3853
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3842
3854
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3843
3855
|
} else {
|
|
3844
3856
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3845
3857
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3846
|
-
var this_9 = this.
|
|
3847
|
-
var table_4 = state.
|
|
3858
|
+
var this_9 = this.da2_1;
|
|
3859
|
+
var table_4 = state.o6r();
|
|
3848
3860
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3849
3861
|
var tableId_1 = table_4.id;
|
|
3850
3862
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -3880,7 +3892,7 @@
|
|
|
3880
3892
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3881
3893
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3882
3894
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3883
|
-
var tmp0_aid_1 = this_9.
|
|
3895
|
+
var tmp0_aid_1 = this_9.ca2_1.u6h();
|
|
3884
3896
|
// Inline function 'kotlin.collections.map' call
|
|
3885
3897
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3886
3898
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3905,8 +3917,8 @@
|
|
|
3905
3917
|
} else {
|
|
3906
3918
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3907
3919
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3908
|
-
var this_10 = this.
|
|
3909
|
-
var table_5 = state.
|
|
3920
|
+
var this_10 = this.da2_1;
|
|
3921
|
+
var table_5 = state.o6r();
|
|
3910
3922
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3911
3923
|
var tableId_2 = table_5.id;
|
|
3912
3924
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -3942,7 +3954,7 @@
|
|
|
3942
3954
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3943
3955
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3944
3956
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3945
|
-
var tmp0_aid_2 = this_10.
|
|
3957
|
+
var tmp0_aid_2 = this_10.ca2_1.u6h();
|
|
3946
3958
|
// Inline function 'kotlin.collections.map' call
|
|
3947
3959
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3948
3960
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -3967,8 +3979,8 @@
|
|
|
3967
3979
|
} else {
|
|
3968
3980
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
3969
3981
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3970
|
-
var this_11 = this.
|
|
3971
|
-
var table_6 = state.
|
|
3982
|
+
var this_11 = this.da2_1;
|
|
3983
|
+
var table_6 = state.o6r();
|
|
3972
3984
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3973
3985
|
var tableId_3 = table_6.id;
|
|
3974
3986
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -4004,7 +4016,7 @@
|
|
|
4004
4016
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4005
4017
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
4006
4018
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4007
|
-
var tmp0_aid_3 = this_11.
|
|
4019
|
+
var tmp0_aid_3 = this_11.ca2_1.u6h();
|
|
4008
4020
|
// Inline function 'kotlin.collections.map' call
|
|
4009
4021
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4010
4022
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -4017,7 +4029,7 @@
|
|
|
4017
4029
|
}
|
|
4018
4030
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
4019
4031
|
var tmp_0;
|
|
4020
|
-
if (this.
|
|
4032
|
+
if (this.da2_1.ba2_1.supportBackwardActions && getPlayer(state.o6r().players, sendToPlayer_8.d7e_1).j6x_1.n6x_1) {
|
|
4021
4033
|
tmp_0 = null;
|
|
4022
4034
|
} else {
|
|
4023
4035
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -4035,79 +4047,79 @@
|
|
|
4035
4047
|
} else {
|
|
4036
4048
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
4037
4049
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4038
|
-
var this_12 = this.
|
|
4039
|
-
var table_7 = state.
|
|
4040
|
-
var exceptPlayerId = this.
|
|
4050
|
+
var this_12 = this.da2_1;
|
|
4051
|
+
var table_7 = state.o6r();
|
|
4052
|
+
var exceptPlayerId = this.da2_1.ba2_1.supportBackwardActions ? action_0.b81_1 : null;
|
|
4041
4053
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4042
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
4054
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.ca2_1.u6h(), table_7.id, exceptPlayerId);
|
|
4043
4055
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
4044
4056
|
tmp = listOfNotNull(tmp$ret$94);
|
|
4045
4057
|
} else {
|
|
4046
4058
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
4047
4059
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4048
|
-
var this_13 = this.
|
|
4049
|
-
var table_8 = state.
|
|
4050
|
-
var exceptPlayerId_0 = this.
|
|
4060
|
+
var this_13 = this.da2_1;
|
|
4061
|
+
var table_8 = state.o6r();
|
|
4062
|
+
var exceptPlayerId_0 = this.da2_1.ba2_1.supportBackwardActions ? action_0.f81_1 : null;
|
|
4051
4063
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4052
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4064
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.ca2_1.u6h(), table_8.id, exceptPlayerId_0);
|
|
4053
4065
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
4054
4066
|
tmp = listOfNotNull(tmp$ret$96);
|
|
4055
4067
|
} else {
|
|
4056
4068
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
4057
4069
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4058
|
-
var this_14 = this.
|
|
4059
|
-
var table_9 = state.
|
|
4070
|
+
var this_14 = this.da2_1;
|
|
4071
|
+
var table_9 = state.o6r();
|
|
4060
4072
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4061
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4073
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.ca2_1.u6h(), table_9.id, null);
|
|
4062
4074
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4063
4075
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4064
4076
|
} else {
|
|
4065
4077
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4066
4078
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4067
|
-
var this_15 = this.
|
|
4068
|
-
var table_10 = state.
|
|
4069
|
-
var exceptPlayerId_1 = this.
|
|
4079
|
+
var this_15 = this.da2_1;
|
|
4080
|
+
var table_10 = state.o6r();
|
|
4081
|
+
var exceptPlayerId_1 = this.da2_1.ba2_1.supportBackwardActions ? action_0.m81_1 : null;
|
|
4070
4082
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4071
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4083
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.ca2_1.u6h(), table_10.id, exceptPlayerId_1);
|
|
4072
4084
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4073
4085
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4074
4086
|
} else {
|
|
4075
4087
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4076
4088
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4077
|
-
var this_16 = this.
|
|
4078
|
-
var table_11 = state.
|
|
4079
|
-
var exceptPlayerId_2 = this.
|
|
4089
|
+
var this_16 = this.da2_1;
|
|
4090
|
+
var table_11 = state.o6r();
|
|
4091
|
+
var exceptPlayerId_2 = this.da2_1.ba2_1.supportBackwardActions ? action_0.q81_1 : null;
|
|
4080
4092
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4081
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4093
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.ca2_1.u6h(), table_11.id, exceptPlayerId_2);
|
|
4082
4094
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4083
4095
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4084
4096
|
} else {
|
|
4085
4097
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4086
4098
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4087
|
-
var this_17 = this.
|
|
4088
|
-
var table_12 = state.
|
|
4099
|
+
var this_17 = this.da2_1;
|
|
4100
|
+
var table_12 = state.o6r();
|
|
4089
4101
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4090
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4102
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.ca2_1.u6h(), table_12.id, null);
|
|
4091
4103
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4092
4104
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4093
4105
|
} else {
|
|
4094
4106
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4095
4107
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4096
|
-
var this_18 = this.
|
|
4097
|
-
var table_13 = state.
|
|
4108
|
+
var this_18 = this.da2_1;
|
|
4109
|
+
var table_13 = state.o6r();
|
|
4098
4110
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4099
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4111
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.ca2_1.u6h(), table_13.id, null);
|
|
4100
4112
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4101
4113
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4102
4114
|
} else {
|
|
4103
4115
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4104
|
-
var message = action_0.
|
|
4116
|
+
var message = action_0.y81_1;
|
|
4105
4117
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4106
|
-
var this_19 = this.
|
|
4107
|
-
var table_14 = state.
|
|
4118
|
+
var this_19 = this.da2_1;
|
|
4119
|
+
var table_14 = state.o6r();
|
|
4108
4120
|
var tmp_1;
|
|
4109
4121
|
var tmp_2;
|
|
4110
|
-
if (this.
|
|
4122
|
+
if (this.da2_1.ba2_1.supportBackwardActions) {
|
|
4111
4123
|
tmp_2 = isInterface(message, UserMessage);
|
|
4112
4124
|
} else {
|
|
4113
4125
|
tmp_2 = false;
|
|
@@ -4119,17 +4131,17 @@
|
|
|
4119
4131
|
}
|
|
4120
4132
|
var exceptPlayerId_3 = tmp_1;
|
|
4121
4133
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4122
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4134
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.ca2_1.u6h(), table_14.id, exceptPlayerId_3);
|
|
4123
4135
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4124
4136
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4125
4137
|
} else {
|
|
4126
4138
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4127
4139
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4128
|
-
var this_20 = this.
|
|
4129
|
-
var table_15 = state.
|
|
4140
|
+
var this_20 = this.da2_1;
|
|
4141
|
+
var table_15 = state.o6r();
|
|
4130
4142
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4131
4143
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4132
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4144
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.ca2_1.u6h(), table_15.id, exceptPlayerId_4);
|
|
4133
4145
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4134
4146
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4135
4147
|
} else {
|
|
@@ -4163,14 +4175,14 @@
|
|
|
4163
4175
|
}
|
|
4164
4176
|
next(action_0);
|
|
4165
4177
|
};
|
|
4166
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
4167
|
-
return this.
|
|
4178
|
+
protoOf(_no_name_provided__qut3iv_3).q6j = function (store, next, action) {
|
|
4179
|
+
return this.i6l(store, next, action);
|
|
4168
4180
|
};
|
|
4169
4181
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4170
|
-
this.
|
|
4171
|
-
this.
|
|
4182
|
+
this.ba2_1 = logicConfig;
|
|
4183
|
+
this.ca2_1 = idsProvider;
|
|
4172
4184
|
}
|
|
4173
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
4185
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).z96 = function () {
|
|
4174
4186
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
4175
4187
|
return new _no_name_provided__qut3iv_3(this);
|
|
4176
4188
|
};
|
|
@@ -4179,8 +4191,8 @@
|
|
|
4179
4191
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4180
4192
|
}
|
|
4181
4193
|
function sendMechanicEventsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4182
|
-
this.
|
|
4183
|
-
this.
|
|
4194
|
+
this.ma2_1 = $provider;
|
|
4195
|
+
this.na2_1 = $action;
|
|
4184
4196
|
CoroutineImpl.call(this, resultContinuation);
|
|
4185
4197
|
}
|
|
4186
4198
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4201,7 +4213,7 @@
|
|
|
4201
4213
|
case 0:
|
|
4202
4214
|
this.f9_1 = 2;
|
|
4203
4215
|
this.e9_1 = 1;
|
|
4204
|
-
suspendResult = this.
|
|
4216
|
+
suspendResult = this.ma2_1.i9u(this.na2_1, this);
|
|
4205
4217
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4206
4218
|
return suspendResult;
|
|
4207
4219
|
}
|
|
@@ -4224,8 +4236,8 @@
|
|
|
4224
4236
|
while (true);
|
|
4225
4237
|
};
|
|
4226
4238
|
protoOf(sendMechanicEventsMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4227
|
-
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.
|
|
4228
|
-
i.
|
|
4239
|
+
var i = new sendMechanicEventsMiddleware$o$handle$slambda(this.ma2_1, this.na2_1, completion);
|
|
4240
|
+
i.oa2_1 = $this$launchDefault;
|
|
4229
4241
|
return i;
|
|
4230
4242
|
};
|
|
4231
4243
|
function sendMechanicEventsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4237,28 +4249,28 @@
|
|
|
4237
4249
|
return l;
|
|
4238
4250
|
}
|
|
4239
4251
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4240
|
-
this.
|
|
4241
|
-
this.
|
|
4252
|
+
this.pa2_1 = $asyncProvider;
|
|
4253
|
+
this.qa2_1 = $provider;
|
|
4242
4254
|
}
|
|
4243
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4255
|
+
protoOf(_no_name_provided__qut3iv_4).r6j = function (action) {
|
|
4244
4256
|
return action instanceof MechanicAction;
|
|
4245
4257
|
};
|
|
4246
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4258
|
+
protoOf(_no_name_provided__qut3iv_4).i6l = function (store, next, action) {
|
|
4247
4259
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendMechanicEventsMiddleware.<anonymous>' call
|
|
4248
4260
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
4249
|
-
this.
|
|
4261
|
+
this.pa2_1.r6g(VOID, sendMechanicEventsMiddleware$o$handle$slambda_0(this.qa2_1, action_0, null));
|
|
4250
4262
|
next(action_0);
|
|
4251
4263
|
};
|
|
4252
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4253
|
-
return this.
|
|
4264
|
+
protoOf(_no_name_provided__qut3iv_4).q6j = function (store, next, action) {
|
|
4265
|
+
return this.i6l(store, next, action);
|
|
4254
4266
|
};
|
|
4255
4267
|
function sendToClientActionMiddleware(asyncProvider, provider) {
|
|
4256
4268
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
4257
4269
|
return new _no_name_provided__qut3iv_5(asyncProvider, provider);
|
|
4258
4270
|
}
|
|
4259
4271
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4260
|
-
this.
|
|
4261
|
-
this.
|
|
4272
|
+
this.za2_1 = $provider;
|
|
4273
|
+
this.aa3_1 = $action;
|
|
4262
4274
|
CoroutineImpl.call(this, resultContinuation);
|
|
4263
4275
|
}
|
|
4264
4276
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).k1e = function ($this$launchDefault, $completion) {
|
|
@@ -4279,7 +4291,7 @@
|
|
|
4279
4291
|
case 0:
|
|
4280
4292
|
this.f9_1 = 2;
|
|
4281
4293
|
this.e9_1 = 1;
|
|
4282
|
-
suspendResult = this.
|
|
4294
|
+
suspendResult = this.za2_1.w9y(this.aa3_1, this);
|
|
4283
4295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4284
4296
|
return suspendResult;
|
|
4285
4297
|
}
|
|
@@ -4302,8 +4314,8 @@
|
|
|
4302
4314
|
while (true);
|
|
4303
4315
|
};
|
|
4304
4316
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).l1e = function ($this$launchDefault, completion) {
|
|
4305
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4306
|
-
i.
|
|
4317
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.za2_1, this.aa3_1, completion);
|
|
4318
|
+
i.ba3_1 = $this$launchDefault;
|
|
4307
4319
|
return i;
|
|
4308
4320
|
};
|
|
4309
4321
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4315,20 +4327,20 @@
|
|
|
4315
4327
|
return l;
|
|
4316
4328
|
}
|
|
4317
4329
|
function _no_name_provided__qut3iv_5($asyncProvider, $provider) {
|
|
4318
|
-
this.
|
|
4319
|
-
this.
|
|
4330
|
+
this.ca3_1 = $asyncProvider;
|
|
4331
|
+
this.da3_1 = $provider;
|
|
4320
4332
|
}
|
|
4321
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4333
|
+
protoOf(_no_name_provided__qut3iv_5).r6j = function (action) {
|
|
4322
4334
|
return action instanceof ToClientAction;
|
|
4323
4335
|
};
|
|
4324
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4336
|
+
protoOf(_no_name_provided__qut3iv_5).i6l = function (store, next, action) {
|
|
4325
4337
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4326
4338
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4327
|
-
this.
|
|
4339
|
+
this.ca3_1.r6g(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.da3_1, action_0, null));
|
|
4328
4340
|
next(action_0);
|
|
4329
4341
|
};
|
|
4330
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4331
|
-
return this.
|
|
4342
|
+
protoOf(_no_name_provided__qut3iv_5).q6j = function (store, next, action) {
|
|
4343
|
+
return this.i6l(store, next, action);
|
|
4332
4344
|
};
|
|
4333
4345
|
function serverConfigReducer() {
|
|
4334
4346
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -4336,92 +4348,96 @@
|
|
|
4336
4348
|
}
|
|
4337
4349
|
function _no_name_provided__qut3iv_6() {
|
|
4338
4350
|
}
|
|
4339
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4351
|
+
protoOf(_no_name_provided__qut3iv_6).r6j = function (action) {
|
|
4340
4352
|
return action instanceof UpdateServerConfigAction;
|
|
4341
4353
|
};
|
|
4342
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4354
|
+
protoOf(_no_name_provided__qut3iv_6).u9d = function (state, action) {
|
|
4343
4355
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4344
4356
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4345
|
-
return state.
|
|
4357
|
+
return state.j92(VOID, get_serverStatePayload_0(state).ea3(action_0.ia1_1));
|
|
4346
4358
|
};
|
|
4347
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4348
|
-
return this.
|
|
4359
|
+
protoOf(_no_name_provided__qut3iv_6).j6l = function (state, action) {
|
|
4360
|
+
return this.u9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4349
4361
|
};
|
|
4350
4362
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
4351
4363
|
return function (it) {
|
|
4352
4364
|
var tmp = Companion_instance_1;
|
|
4353
4365
|
var tmp_0;
|
|
4354
4366
|
if (it.isBot) {
|
|
4355
|
-
tmp_0 = Companion_instance_2.
|
|
4367
|
+
tmp_0 = Companion_instance_2.y6b(PlayerConnectionState_LEFT_getInstance());
|
|
4356
4368
|
} else {
|
|
4357
4369
|
var tmp_1 = Companion_instance_2;
|
|
4358
4370
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
4359
4371
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4360
4372
|
Companion_getInstance();
|
|
4361
|
-
var this_0 = $action.
|
|
4373
|
+
var this_0 = $action.u7z_1.timeoutTimeMillis;
|
|
4362
4374
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4363
|
-
tmp_0 = tmp_1.
|
|
4375
|
+
tmp_0 = tmp_1.x6b(tmp_2, tmp$ret$0);
|
|
4364
4376
|
}
|
|
4365
|
-
return tmp.
|
|
4377
|
+
return tmp.f6d(tmp_0);
|
|
4366
4378
|
};
|
|
4367
4379
|
}
|
|
4368
4380
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4369
4381
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4370
|
-
this.
|
|
4382
|
+
this.ha3_1 = logger;
|
|
4371
4383
|
}
|
|
4372
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4373
|
-
var serverState = get_serverStatePayloadOrNull(state.
|
|
4384
|
+
protoOf(ServerMechanicLifecycleReducer).g9f = function (state, action) {
|
|
4385
|
+
var serverState = get_serverStatePayloadOrNull(state.n6q_1);
|
|
4374
4386
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4375
|
-
var tmp0_$this = this.
|
|
4376
|
-
var tmp1_tableId = action.
|
|
4377
|
-
var tmp2_gameId = action.
|
|
4378
|
-
var tmp3_version = action.
|
|
4379
|
-
var tmp4_config = action.
|
|
4380
|
-
var tmp5_users = action.
|
|
4387
|
+
var tmp0_$this = this.h9f_1;
|
|
4388
|
+
var tmp1_tableId = action.v7z_1;
|
|
4389
|
+
var tmp2_gameId = action.v7z_1;
|
|
4390
|
+
var tmp3_version = action.w7z_1;
|
|
4391
|
+
var tmp4_config = action.u7z_1;
|
|
4392
|
+
var tmp5_users = action.y7z_1;
|
|
4381
4393
|
var tmp6_spectators = action.spectators;
|
|
4382
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
4383
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
4394
|
+
var tmp7_gameCreatorPlayerId = action.x7z_1;
|
|
4395
|
+
var tmp9_tableOrNull = tmp0_$this.m9g(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
4384
4396
|
var tmp;
|
|
4385
4397
|
if (serverState == null) {
|
|
4386
|
-
this.
|
|
4387
|
-
tmp = Companion_instance_11.
|
|
4398
|
+
this.ha3_1.w(VOID, 'ServerPayload is not onStart');
|
|
4399
|
+
tmp = Companion_instance_11.a9u();
|
|
4388
4400
|
} else {
|
|
4389
4401
|
tmp = serverState;
|
|
4390
4402
|
}
|
|
4391
4403
|
var tmp10_payload = tmp;
|
|
4392
|
-
return state.
|
|
4393
|
-
};
|
|
4394
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4395
|
-
var
|
|
4396
|
-
var
|
|
4397
|
-
var
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4404
|
+
return state.j92(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4405
|
+
};
|
|
4406
|
+
protoOf(ServerMechanicLifecycleReducer).e9f = function (state, action) {
|
|
4407
|
+
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4408
|
+
var tmp2_tableOrNull = action.b80_1;
|
|
4409
|
+
var tmp = Companion_instance_11;
|
|
4410
|
+
var tmp_0 = get_serverStatePayload_0(state).j9t_1;
|
|
4411
|
+
var tmp_1 = action.c80_1;
|
|
4412
|
+
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
4413
|
+
var tmp3_payload = tmp.ia3(tmp_0.m9t(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o69_1));
|
|
4414
|
+
return state.j92(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
4415
|
+
};
|
|
4416
|
+
protoOf(ServerMechanicLifecycleReducer).f9f = function (state, action) {
|
|
4417
|
+
this.i9f_1.g5r(action.previousGameId);
|
|
4402
4418
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4403
|
-
var tmp1_tableOrNull = this.
|
|
4404
|
-
return state.
|
|
4419
|
+
var tmp1_tableOrNull = this.h9f_1.n9g(state.o6r(), action.gameId);
|
|
4420
|
+
return state.j92(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
4405
4421
|
};
|
|
4406
4422
|
function spectatorsReducer(logger) {
|
|
4407
4423
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
4408
4424
|
return new _no_name_provided__qut3iv_7(logger);
|
|
4409
4425
|
}
|
|
4410
4426
|
function _no_name_provided__qut3iv_7($logger) {
|
|
4411
|
-
this.
|
|
4427
|
+
this.ja3_1 = $logger;
|
|
4412
4428
|
}
|
|
4413
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4429
|
+
protoOf(_no_name_provided__qut3iv_7).r6j = function (action) {
|
|
4414
4430
|
return isInterface(action, SpectatorsAction);
|
|
4415
4431
|
};
|
|
4416
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4432
|
+
protoOf(_no_name_provided__qut3iv_7).u9d = function (state, action) {
|
|
4417
4433
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
4418
4434
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
4419
|
-
var table = state.
|
|
4435
|
+
var table = state.o6r();
|
|
4420
4436
|
var tmp;
|
|
4421
4437
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4422
4438
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4423
4439
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4424
|
-
var this_0 = action_0.
|
|
4440
|
+
var this_0 = action_0.ja1_1;
|
|
4425
4441
|
var destination = ArrayList_init_$Create$_0();
|
|
4426
4442
|
// Inline function 'kotlin.collections.forEach' call
|
|
4427
4443
|
var tmp0_iterator = this_0.j();
|
|
@@ -4429,7 +4445,7 @@
|
|
|
4429
4445
|
var element = tmp0_iterator.l();
|
|
4430
4446
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4431
4447
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
4432
|
-
var tmp0_safe_receiver = singleOrNull(filterByPlayerId(table.spectators, element.
|
|
4448
|
+
var tmp0_safe_receiver = singleOrNull(filterByPlayerId(table.spectators, element.w6a_1));
|
|
4433
4449
|
if (tmp0_safe_receiver == null)
|
|
4434
4450
|
null;
|
|
4435
4451
|
else {
|
|
@@ -4443,10 +4459,10 @@
|
|
|
4443
4459
|
var tmp_0;
|
|
4444
4460
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4445
4461
|
if (!sameSpectators.p()) {
|
|
4446
|
-
this.
|
|
4462
|
+
this.ja3_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4447
4463
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4448
4464
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4449
|
-
var this_1 = action_0.
|
|
4465
|
+
var this_1 = action_0.ja1_1;
|
|
4450
4466
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4451
4467
|
var tmp0_iterator_0 = this_1.j();
|
|
4452
4468
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4469,7 +4485,7 @@
|
|
|
4469
4485
|
while (tmp0_iterator_1.k()) {
|
|
4470
4486
|
var element_1 = tmp0_iterator_1.l();
|
|
4471
4487
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4472
|
-
if (element_0.
|
|
4488
|
+
if (element_0.w6a_1 === element_1.playerId) {
|
|
4473
4489
|
tmp$ret$5 = true;
|
|
4474
4490
|
break $l$block_0;
|
|
4475
4491
|
}
|
|
@@ -4482,7 +4498,7 @@
|
|
|
4482
4498
|
}
|
|
4483
4499
|
tmp_0 = destination_0;
|
|
4484
4500
|
} else {
|
|
4485
|
-
tmp_0 = action_0.
|
|
4501
|
+
tmp_0 = action_0.ja1_1;
|
|
4486
4502
|
}
|
|
4487
4503
|
var this_2 = tmp_0;
|
|
4488
4504
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4495,12 +4511,12 @@
|
|
|
4495
4511
|
destination_1.e(tmp$ret$10);
|
|
4496
4512
|
}
|
|
4497
4513
|
var spectatorsToAdd = toSet(destination_1);
|
|
4498
|
-
tmp = state.
|
|
4514
|
+
tmp = state.j92(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
4499
4515
|
} else {
|
|
4500
4516
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4501
4517
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4502
4518
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4503
|
-
var this_3 = action_0.
|
|
4519
|
+
var this_3 = action_0.ka1_1;
|
|
4504
4520
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4505
4521
|
// Inline function 'kotlin.collections.forEach' call
|
|
4506
4522
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4508,7 +4524,7 @@
|
|
|
4508
4524
|
var element_2 = tmp0_iterator_3.l();
|
|
4509
4525
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4510
4526
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
4511
|
-
var tmp0_safe_receiver_0 = singleOrNull(filterByPlayerId(table.spectators, element_2.
|
|
4527
|
+
var tmp0_safe_receiver_0 = singleOrNull(filterByPlayerId(table.spectators, element_2.w6a_1));
|
|
4512
4528
|
if (tmp0_safe_receiver_0 == null)
|
|
4513
4529
|
null;
|
|
4514
4530
|
else {
|
|
@@ -4521,10 +4537,10 @@
|
|
|
4521
4537
|
var tmp_2;
|
|
4522
4538
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4523
4539
|
if (!sameSpectators_0.p()) {
|
|
4524
|
-
this.
|
|
4540
|
+
this.ja3_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4525
4541
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4526
4542
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4527
|
-
var this_4 = action_0.
|
|
4543
|
+
var this_4 = action_0.ka1_1;
|
|
4528
4544
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4529
4545
|
var tmp0_iterator_4 = this_4.j();
|
|
4530
4546
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4547,7 +4563,7 @@
|
|
|
4547
4563
|
while (tmp0_iterator_5.k()) {
|
|
4548
4564
|
var element_4 = tmp0_iterator_5.l();
|
|
4549
4565
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4550
|
-
if (element_3.
|
|
4566
|
+
if (element_3.w6a_1 === element_4.playerId) {
|
|
4551
4567
|
tmp$ret$18 = true;
|
|
4552
4568
|
break $l$block_2;
|
|
4553
4569
|
}
|
|
@@ -4560,7 +4576,7 @@
|
|
|
4560
4576
|
}
|
|
4561
4577
|
tmp_2 = destination_3;
|
|
4562
4578
|
} else {
|
|
4563
|
-
tmp_2 = action_0.
|
|
4579
|
+
tmp_2 = action_0.ka1_1;
|
|
4564
4580
|
}
|
|
4565
4581
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4566
4582
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4588,7 +4604,7 @@
|
|
|
4588
4604
|
while (tmp0_iterator_7.k()) {
|
|
4589
4605
|
var element_6 = tmp0_iterator_7.l();
|
|
4590
4606
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
4591
|
-
if (element_5.playerId === element_6.
|
|
4607
|
+
if (element_5.playerId === element_6.w6a_1) {
|
|
4592
4608
|
tmp$ret$23 = true;
|
|
4593
4609
|
break $l$block_4;
|
|
4594
4610
|
}
|
|
@@ -4599,40 +4615,40 @@
|
|
|
4599
4615
|
destination_4.e(element_5);
|
|
4600
4616
|
}
|
|
4601
4617
|
}
|
|
4602
|
-
tmp = state.
|
|
4618
|
+
tmp = state.j92(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
4603
4619
|
} else {
|
|
4604
4620
|
noWhenBranchMatchedException();
|
|
4605
4621
|
}
|
|
4606
4622
|
}
|
|
4607
4623
|
return tmp;
|
|
4608
4624
|
};
|
|
4609
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4610
|
-
return this.
|
|
4625
|
+
protoOf(_no_name_provided__qut3iv_7).j6l = function (state, action) {
|
|
4626
|
+
return this.u9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4611
4627
|
};
|
|
4612
4628
|
function Companion_3() {
|
|
4613
4629
|
}
|
|
4614
|
-
protoOf(Companion_3).
|
|
4630
|
+
protoOf(Companion_3).ia3 = function (config) {
|
|
4615
4631
|
return new ServerStatePayload(config);
|
|
4616
4632
|
};
|
|
4617
|
-
protoOf(Companion_3).
|
|
4618
|
-
config = config === VOID ? Companion_instance_8.
|
|
4619
|
-
return $super === VOID ? this.
|
|
4633
|
+
protoOf(Companion_3).a9u = function (config, $super) {
|
|
4634
|
+
config = config === VOID ? Companion_instance_8.e9u(null) : config;
|
|
4635
|
+
return $super === VOID ? this.ia3(config) : $super.ia3.call(this, config);
|
|
4620
4636
|
};
|
|
4621
4637
|
var Companion_instance_11;
|
|
4622
4638
|
function Companion_getInstance_4() {
|
|
4623
4639
|
return Companion_instance_11;
|
|
4624
4640
|
}
|
|
4625
4641
|
function ServerStatePayload(config) {
|
|
4626
|
-
this.
|
|
4642
|
+
this.j9t_1 = config;
|
|
4627
4643
|
}
|
|
4628
|
-
protoOf(ServerStatePayload).
|
|
4644
|
+
protoOf(ServerStatePayload).ea3 = function (config) {
|
|
4629
4645
|
return new ServerStatePayload(config);
|
|
4630
4646
|
};
|
|
4631
4647
|
protoOf(ServerStatePayload).toString = function () {
|
|
4632
|
-
return 'ServerStatePayload(config=' + this.
|
|
4648
|
+
return 'ServerStatePayload(config=' + this.j9t_1.toString() + ')';
|
|
4633
4649
|
};
|
|
4634
4650
|
protoOf(ServerStatePayload).hashCode = function () {
|
|
4635
|
-
return this.
|
|
4651
|
+
return this.j9t_1.hashCode();
|
|
4636
4652
|
};
|
|
4637
4653
|
protoOf(ServerStatePayload).equals = function (other) {
|
|
4638
4654
|
if (this === other)
|
|
@@ -4640,7 +4656,7 @@
|
|
|
4640
4656
|
if (!(other instanceof ServerStatePayload))
|
|
4641
4657
|
return false;
|
|
4642
4658
|
var tmp0_other_with_cast = other instanceof ServerStatePayload ? other : THROW_CCE();
|
|
4643
|
-
if (!this.
|
|
4659
|
+
if (!this.j9t_1.equals(tmp0_other_with_cast.j9t_1))
|
|
4644
4660
|
return false;
|
|
4645
4661
|
return true;
|
|
4646
4662
|
};
|
|
@@ -4652,7 +4668,7 @@
|
|
|
4652
4668
|
}
|
|
4653
4669
|
function get_serverStatePayload_0(_this__u8e3s4) {
|
|
4654
4670
|
// Inline function 'kotlin.requireNotNull' call
|
|
4655
|
-
var value = _this__u8e3s4.
|
|
4671
|
+
var value = _this__u8e3s4.n6q_1;
|
|
4656
4672
|
// Inline function 'kotlin.contracts.contract' call
|
|
4657
4673
|
var tmp$ret$1;
|
|
4658
4674
|
$l$block: {
|
|
@@ -4678,13 +4694,13 @@
|
|
|
4678
4694
|
}
|
|
4679
4695
|
function _get_controllerLogger__nbd727($this) {
|
|
4680
4696
|
// Inline function 'kotlin.getValue' call
|
|
4681
|
-
var this_0 = $this.
|
|
4697
|
+
var this_0 = $this.sa3_1;
|
|
4682
4698
|
controllerLogger$factory();
|
|
4683
4699
|
return this_0.u();
|
|
4684
4700
|
}
|
|
4685
4701
|
function _get_di__ndbzja($this) {
|
|
4686
4702
|
// Inline function 'kotlin.getValue' call
|
|
4687
|
-
var this_0 = $this.
|
|
4703
|
+
var this_0 = $this.ta3_1;
|
|
4688
4704
|
di$factory();
|
|
4689
4705
|
return this_0.u();
|
|
4690
4706
|
}
|
|
@@ -4695,13 +4711,13 @@
|
|
|
4695
4711
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
4696
4712
|
return function () {
|
|
4697
4713
|
var tmp;
|
|
4698
|
-
if (this$0.
|
|
4714
|
+
if (this$0.qa3_1 == null) {
|
|
4699
4715
|
tmp = null;
|
|
4700
4716
|
} else {
|
|
4701
4717
|
// Inline function 'kotlin.let' call
|
|
4702
4718
|
// Inline function 'kotlin.contracts.contract' call
|
|
4703
4719
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
4704
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4720
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.qa3_1)]));
|
|
4705
4721
|
}
|
|
4706
4722
|
var tmp1_elvis_lhs = tmp;
|
|
4707
4723
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4729,7 +4745,7 @@
|
|
|
4729
4745
|
tmp_0.w61(tmp$ret$3);
|
|
4730
4746
|
$this$DI.a5y(jsonModule());
|
|
4731
4747
|
$this$DI.a5y(serverHelpersModule());
|
|
4732
|
-
$this$DI.a5y(randomOrgModule(this$0.
|
|
4748
|
+
$this$DI.a5y(randomOrgModule(this$0.ra3_1));
|
|
4733
4749
|
return Unit_instance;
|
|
4734
4750
|
};
|
|
4735
4751
|
}
|
|
@@ -4740,16 +4756,16 @@
|
|
|
4740
4756
|
};
|
|
4741
4757
|
}
|
|
4742
4758
|
function _no_name_provided__qut3iv_8($item) {
|
|
4743
|
-
this.
|
|
4759
|
+
this.za3_1 = $item;
|
|
4744
4760
|
}
|
|
4745
|
-
protoOf(_no_name_provided__qut3iv_8).
|
|
4761
|
+
protoOf(_no_name_provided__qut3iv_8).r6j = function (action) {
|
|
4746
4762
|
return isInterface(action, Action);
|
|
4747
4763
|
};
|
|
4748
|
-
protoOf(_no_name_provided__qut3iv_8).
|
|
4749
|
-
return this.
|
|
4764
|
+
protoOf(_no_name_provided__qut3iv_8).u9d = function (state, action) {
|
|
4765
|
+
return this.za3_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4750
4766
|
};
|
|
4751
|
-
protoOf(_no_name_provided__qut3iv_8).
|
|
4752
|
-
return this.
|
|
4767
|
+
protoOf(_no_name_provided__qut3iv_8).j6l = function (state, action) {
|
|
4768
|
+
return this.u9d((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4753
4769
|
};
|
|
4754
4770
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4755
4771
|
return function ($this$singleton) {
|
|
@@ -4806,10 +4822,10 @@
|
|
|
4806
4822
|
}
|
|
4807
4823
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4808
4824
|
return function (it) {
|
|
4809
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4825
|
+
var tmp0_elvis_lhs = Companion_instance_4.p9i(it);
|
|
4810
4826
|
var tmp;
|
|
4811
4827
|
if (tmp0_elvis_lhs == null) {
|
|
4812
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4828
|
+
var tmp1_safe_receiver = $gameServer.g6b().m6q_1;
|
|
4813
4829
|
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
4814
4830
|
} else {
|
|
4815
4831
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4819,10 +4835,10 @@
|
|
|
4819
4835
|
}
|
|
4820
4836
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4821
4837
|
return function (it) {
|
|
4822
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4838
|
+
var tmp0_elvis_lhs = Companion_instance_5.a9h(it);
|
|
4823
4839
|
var tmp;
|
|
4824
4840
|
if (tmp0_elvis_lhs == null) {
|
|
4825
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4841
|
+
var tmp1_safe_receiver = $gameServer.g6b().m6q_1;
|
|
4826
4842
|
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
4827
4843
|
} else {
|
|
4828
4844
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4841,7 +4857,7 @@
|
|
|
4841
4857
|
// Inline function 'kotlin.contracts.contract' call
|
|
4842
4858
|
$this$DI.a5y(tmp0_safe_receiver);
|
|
4843
4859
|
}
|
|
4844
|
-
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.
|
|
4860
|
+
$this$DI.a5y(dealerModule(this$0.randomPoolProvider, this$0.ra3_1));
|
|
4845
4861
|
$this$DI.a5y(coreModule($coreConfig));
|
|
4846
4862
|
$this$DI.a5y(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4847
4863
|
return Unit_instance;
|
|
@@ -4850,76 +4866,76 @@
|
|
|
4850
4866
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4851
4867
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4852
4868
|
production = production === VOID ? true : production;
|
|
4853
|
-
this.
|
|
4854
|
-
this.
|
|
4855
|
-
AppEnvironment_getInstance().
|
|
4869
|
+
this.qa3_1 = loggerCallback;
|
|
4870
|
+
this.ra3_1 = randomOrgConfig;
|
|
4871
|
+
AppEnvironment_getInstance().u6p(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4856
4872
|
var tmp = this;
|
|
4857
|
-
tmp.
|
|
4873
|
+
tmp.sa3_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4858
4874
|
var tmp_0 = this;
|
|
4859
|
-
tmp_0.
|
|
4875
|
+
tmp_0.ta3_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4860
4876
|
var tmp_1 = this;
|
|
4861
4877
|
// Inline function 'org.kodein.di.instance' call
|
|
4862
4878
|
var this_0 = _get_di__ndbzja(this);
|
|
4863
4879
|
// Inline function 'org.kodein.type.generic' call
|
|
4864
4880
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4865
4881
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4866
|
-
tmp_1.
|
|
4882
|
+
tmp_1.ua3_1 = Instance(this_0, tmp$ret$0, null).t63(this, parser$factory());
|
|
4867
4883
|
var tmp_3 = this;
|
|
4868
4884
|
// Inline function 'org.kodein.di.instance' call
|
|
4869
4885
|
var this_1 = _get_di__ndbzja(this);
|
|
4870
4886
|
// Inline function 'org.kodein.type.generic' call
|
|
4871
4887
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4872
4888
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4873
|
-
tmp_3.
|
|
4889
|
+
tmp_3.va3_1 = Instance(this_1, tmp$ret$2, null).t63(this, helper$factory());
|
|
4874
4890
|
var tmp_5 = this;
|
|
4875
4891
|
// Inline function 'org.kodein.di.instance' call
|
|
4876
4892
|
var this_2 = _get_di__ndbzja(this);
|
|
4877
4893
|
// Inline function 'org.kodein.type.generic' call
|
|
4878
4894
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4879
4895
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4880
|
-
tmp_5.
|
|
4896
|
+
tmp_5.wa3_1 = Instance(this_2, tmp$ret$4, null).t63(this, resources$factory());
|
|
4881
4897
|
var tmp_7 = this;
|
|
4882
4898
|
// Inline function 'org.kodein.di.instance' call
|
|
4883
4899
|
var this_3 = _get_di__ndbzja(this);
|
|
4884
4900
|
// Inline function 'org.kodein.type.generic' call
|
|
4885
4901
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4886
4902
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4887
|
-
tmp_7.
|
|
4903
|
+
tmp_7.xa3_1 = Instance(this_3, tmp$ret$6, null).t63(this, test$factory());
|
|
4888
4904
|
var tmp_9 = this;
|
|
4889
4905
|
// Inline function 'org.kodein.di.instance' call
|
|
4890
4906
|
var this_4 = _get_di__ndbzja(this);
|
|
4891
4907
|
// Inline function 'org.kodein.type.generic' call
|
|
4892
4908
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4893
4909
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4894
|
-
tmp_9.
|
|
4910
|
+
tmp_9.ya3_1 = Instance(this_4, tmp$ret$8, null).t63(this, randomPoolProvider$factory());
|
|
4895
4911
|
}
|
|
4896
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4912
|
+
protoOf(GameServerEngineControllerImpl).ka3 = function () {
|
|
4897
4913
|
// Inline function 'kotlin.getValue' call
|
|
4898
|
-
var this_0 = this.
|
|
4914
|
+
var this_0 = this.ua3_1;
|
|
4899
4915
|
parser$factory_0();
|
|
4900
4916
|
return this_0.u();
|
|
4901
4917
|
};
|
|
4902
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4918
|
+
protoOf(GameServerEngineControllerImpl).ma3 = function () {
|
|
4903
4919
|
// Inline function 'kotlin.getValue' call
|
|
4904
|
-
var this_0 = this.
|
|
4920
|
+
var this_0 = this.va3_1;
|
|
4905
4921
|
helper$factory_0();
|
|
4906
4922
|
return this_0.u();
|
|
4907
4923
|
};
|
|
4908
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4924
|
+
protoOf(GameServerEngineControllerImpl).na3 = function () {
|
|
4909
4925
|
// Inline function 'kotlin.getValue' call
|
|
4910
|
-
var this_0 = this.
|
|
4926
|
+
var this_0 = this.wa3_1;
|
|
4911
4927
|
resources$factory_0();
|
|
4912
4928
|
return this_0.u();
|
|
4913
4929
|
};
|
|
4914
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4930
|
+
protoOf(GameServerEngineControllerImpl).la3 = function () {
|
|
4915
4931
|
// Inline function 'kotlin.getValue' call
|
|
4916
|
-
var this_0 = this.
|
|
4932
|
+
var this_0 = this.xa3_1;
|
|
4917
4933
|
test$factory_0();
|
|
4918
4934
|
return this_0.u();
|
|
4919
4935
|
};
|
|
4920
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4936
|
+
protoOf(GameServerEngineControllerImpl).oa3 = function () {
|
|
4921
4937
|
// Inline function 'kotlin.getValue' call
|
|
4922
|
-
var this_0 = this.
|
|
4938
|
+
var this_0 = this.ya3_1;
|
|
4923
4939
|
randomPoolProvider$factory_0();
|
|
4924
4940
|
return this_0.u();
|
|
4925
4941
|
};
|
|
@@ -4929,7 +4945,7 @@
|
|
|
4929
4945
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4930
4946
|
return this.createGameEngineWithLogic();
|
|
4931
4947
|
};
|
|
4932
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4948
|
+
protoOf(GameServerEngineControllerImpl).pa3 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4933
4949
|
var combinedLogger = Companion_instance_6.qm();
|
|
4934
4950
|
var tmp;
|
|
4935
4951
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4939,8 +4955,8 @@
|
|
|
4939
4955
|
}
|
|
4940
4956
|
var fileLoggerOutput = tmp;
|
|
4941
4957
|
var tmp_0;
|
|
4942
|
-
if (!(this.
|
|
4943
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4958
|
+
if (!(this.qa3_1 == null)) {
|
|
4959
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.qa3_1));
|
|
4944
4960
|
} else {
|
|
4945
4961
|
tmp_0 = null;
|
|
4946
4962
|
}
|
|
@@ -4983,12 +4999,12 @@
|
|
|
4983
4999
|
var gameServer = tmp_1.k5z(tmp$ret$7, null);
|
|
4984
5000
|
if (!(fileLoggerOutput == null)) {
|
|
4985
5001
|
var tmp_3 = fileLoggerOutput;
|
|
4986
|
-
tmp_3.
|
|
5002
|
+
tmp_3.e9i_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4987
5003
|
combinedLogger.sm(fileLoggerOutput);
|
|
4988
5004
|
}
|
|
4989
5005
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4990
5006
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4991
|
-
tmp_4.
|
|
5007
|
+
tmp_4.c9h_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4992
5008
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
4993
5009
|
}
|
|
4994
5010
|
return gameServer;
|
|
@@ -5057,13 +5073,13 @@
|
|
|
5057
5073
|
}
|
|
5058
5074
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
5059
5075
|
// Inline function 'kotlin.getValue' call
|
|
5060
|
-
var this_0 = $this.
|
|
5076
|
+
var this_0 = $this.ca4_1;
|
|
5061
5077
|
playerAnswerInteractor$factory_0();
|
|
5062
5078
|
return this_0.u();
|
|
5063
5079
|
}
|
|
5064
5080
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5065
5081
|
return function ($this$singleton) {
|
|
5066
|
-
return this$0.
|
|
5082
|
+
return this$0.aa4_1;
|
|
5067
5083
|
};
|
|
5068
5084
|
}
|
|
5069
5085
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5092,20 +5108,20 @@
|
|
|
5092
5108
|
return emptyMap();
|
|
5093
5109
|
}
|
|
5094
5110
|
function TestHelperImpl(logger) {
|
|
5095
|
-
this.
|
|
5111
|
+
this.aa4_1 = logger;
|
|
5096
5112
|
var tmp = this;
|
|
5097
5113
|
var tmp_0 = Companion_instance_3;
|
|
5098
|
-
tmp.
|
|
5114
|
+
tmp.ba4_1 = tmp_0.h5y(VOID, TestHelperImpl$di$lambda(this));
|
|
5099
5115
|
var tmp_1 = this;
|
|
5100
5116
|
// Inline function 'org.kodein.di.instance' call
|
|
5101
|
-
var this_0 = this.
|
|
5117
|
+
var this_0 = this.ba4_1;
|
|
5102
5118
|
// Inline function 'org.kodein.type.generic' call
|
|
5103
5119
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5104
5120
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5105
|
-
tmp_1.
|
|
5121
|
+
tmp_1.ca4_1 = Instance(this_0, tmp$ret$0, null).t63(this, playerAnswerInteractor$factory());
|
|
5106
5122
|
}
|
|
5107
5123
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5108
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
5124
|
+
return _get_playerAnswerInteractor__msggz1(this).f8t(playerId, table, botConfig);
|
|
5109
5125
|
};
|
|
5110
5126
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
5111
5127
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -5113,7 +5129,7 @@
|
|
|
5113
5129
|
var tmp$ret$0;
|
|
5114
5130
|
$l$block_0: {
|
|
5115
5131
|
// Inline function 'kotlin.collections.any' call
|
|
5116
|
-
var this_0 = mechanicAction.
|
|
5132
|
+
var this_0 = mechanicAction.m94();
|
|
5117
5133
|
var tmp;
|
|
5118
5134
|
if (isInterface(this_0, Collection)) {
|
|
5119
5135
|
tmp = this_0.p();
|
|
@@ -5146,7 +5162,7 @@
|
|
|
5146
5162
|
var tmp$ret$0;
|
|
5147
5163
|
$l$block_0: {
|
|
5148
5164
|
// Inline function 'kotlin.collections.any' call
|
|
5149
|
-
var this_0 = action.
|
|
5165
|
+
var this_0 = action.m94();
|
|
5150
5166
|
var tmp;
|
|
5151
5167
|
if (isInterface(this_0, Collection)) {
|
|
5152
5168
|
tmp = this_0.p();
|
|
@@ -5218,7 +5234,7 @@
|
|
|
5218
5234
|
}
|
|
5219
5235
|
//region block: post-declaration
|
|
5220
5236
|
defineProp(protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1), 'playerId', function () {
|
|
5221
|
-
return this.
|
|
5237
|
+
return this.h6a();
|
|
5222
5238
|
});
|
|
5223
5239
|
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
5224
5240
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
@@ -5227,41 +5243,41 @@
|
|
|
5227
5243
|
return this.d5l();
|
|
5228
5244
|
});
|
|
5229
5245
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
5230
|
-
return this.
|
|
5246
|
+
return this.o6r();
|
|
5231
5247
|
});
|
|
5232
5248
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
5233
|
-
return this.
|
|
5249
|
+
return this.p6r();
|
|
5234
5250
|
});
|
|
5235
5251
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
5236
|
-
return this.
|
|
5252
|
+
return this.q6r();
|
|
5237
5253
|
});
|
|
5238
|
-
protoOf(UpdateServerConfigAction).
|
|
5254
|
+
protoOf(UpdateServerConfigAction).i6j = get_actionTag;
|
|
5239
5255
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
5240
|
-
return this.
|
|
5256
|
+
return this.i6j();
|
|
5241
5257
|
});
|
|
5242
|
-
protoOf(AddSpectatorsAction).
|
|
5258
|
+
protoOf(AddSpectatorsAction).i6j = get_actionTag;
|
|
5243
5259
|
defineProp(protoOf(AddSpectatorsAction), 'actionTag', function () {
|
|
5244
|
-
return this.
|
|
5260
|
+
return this.i6j();
|
|
5245
5261
|
});
|
|
5246
|
-
protoOf(RemoveSpectatorsAction).
|
|
5262
|
+
protoOf(RemoveSpectatorsAction).i6j = get_actionTag;
|
|
5247
5263
|
defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
|
|
5248
|
-
return this.
|
|
5264
|
+
return this.i6j();
|
|
5249
5265
|
});
|
|
5250
5266
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5251
5267
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5252
|
-
return this.
|
|
5268
|
+
return this.ka3();
|
|
5253
5269
|
});
|
|
5254
5270
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5255
|
-
return this.
|
|
5271
|
+
return this.ma3();
|
|
5256
5272
|
});
|
|
5257
5273
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5258
|
-
return this.
|
|
5274
|
+
return this.na3();
|
|
5259
5275
|
});
|
|
5260
5276
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5261
|
-
return this.
|
|
5277
|
+
return this.la3();
|
|
5262
5278
|
});
|
|
5263
5279
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5264
|
-
return this.
|
|
5280
|
+
return this.oa3();
|
|
5265
5281
|
});
|
|
5266
5282
|
//endregion
|
|
5267
5283
|
//region block: init
|