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