raspberry_games_server_game_logic 1.8.324 → 1.8.325
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 +37 -27
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +7044 -7105
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +12 -7
- package/Logic_Debertz-game_server.js +699 -688
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
80
80
|
var toList = kotlin_kotlin.$_$.v9;
|
|
81
81
|
var toString = kotlin_kotlin.$_$.ad;
|
|
82
|
-
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
82
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.h4;
|
|
83
83
|
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v3;
|
|
84
84
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
|
|
85
85
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t6;
|
|
@@ -89,13 +89,13 @@
|
|
|
89
89
|
var firstOrNull = kotlin_kotlin.$_$.s7;
|
|
90
90
|
var toMutableList = kotlin_kotlin.$_$.y9;
|
|
91
91
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
92
|
-
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
92
|
+
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.v4;
|
|
93
93
|
var get_versionOrDefault = kotlin_io_raspberryapps_game_engine_core.$_$.k3;
|
|
94
94
|
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
|
|
95
95
|
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
|
|
96
96
|
var RestartRoundReason = kotlin_io_raspberryapps_game_engine_core.$_$.l1;
|
|
97
97
|
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
|
|
98
|
-
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
98
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.g4;
|
|
99
99
|
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
|
|
100
100
|
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t3;
|
|
101
101
|
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
|
|
@@ -184,6 +184,8 @@
|
|
|
184
184
|
var prefetchRandomOrgPoolMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.d3;
|
|
185
185
|
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.g3;
|
|
186
186
|
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x1;
|
|
187
|
+
var Reason_REVENGED_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
|
|
188
|
+
var RoomMode_REVENGE_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
187
189
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
188
190
|
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e2;
|
|
189
191
|
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
|
|
@@ -207,7 +209,7 @@
|
|
|
207
209
|
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.v1;
|
|
208
210
|
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j2;
|
|
209
211
|
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
|
|
210
|
-
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
212
|
+
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.f4;
|
|
211
213
|
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.t1;
|
|
212
214
|
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r2;
|
|
213
215
|
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.q1;
|
|
@@ -226,13 +228,13 @@
|
|
|
226
228
|
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p2;
|
|
227
229
|
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.f1;
|
|
228
230
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
229
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
230
|
-
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
231
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.k4;
|
|
232
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.i4;
|
|
231
233
|
var Companion_getInstance = kotlin_kotlin.$_$.h5;
|
|
232
234
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
233
235
|
var toDuration = kotlin_kotlin.$_$.bg;
|
|
234
236
|
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.m3;
|
|
235
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
237
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.e4;
|
|
236
238
|
var singleOrNull = kotlin_kotlin.$_$.j9;
|
|
237
239
|
var Collection = kotlin_kotlin.$_$.s5;
|
|
238
240
|
var toSet = kotlin_kotlin.$_$.ba;
|
|
@@ -250,15 +252,15 @@
|
|
|
250
252
|
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
|
|
251
253
|
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
252
254
|
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
253
|
-
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
254
|
-
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
255
|
+
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.j4;
|
|
256
|
+
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.i4;
|
|
255
257
|
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
|
|
256
258
|
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
|
|
257
259
|
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.h3;
|
|
258
260
|
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.g3;
|
|
259
|
-
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
260
|
-
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
261
|
-
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
261
|
+
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.x4;
|
|
262
|
+
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.g4;
|
|
263
|
+
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.h4;
|
|
262
264
|
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
263
265
|
var GameHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
264
266
|
var GameResources = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
@@ -326,15 +328,15 @@
|
|
|
326
328
|
tmp = spectators;
|
|
327
329
|
}
|
|
328
330
|
spectators = tmp;
|
|
329
|
-
return this.
|
|
331
|
+
return this.w9w(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
330
332
|
}
|
|
331
333
|
function roomOnDelete(newRid, $super) {
|
|
332
334
|
newRid = newRid === VOID ? null : newRid;
|
|
333
|
-
return this.
|
|
335
|
+
return this.x9w(newRid);
|
|
334
336
|
}
|
|
335
337
|
function shutdown(reason, roomId, $super) {
|
|
336
338
|
roomId = roomId === VOID ? null : roomId;
|
|
337
|
-
return this.
|
|
339
|
+
return this.y9w(reason, roomId);
|
|
338
340
|
}
|
|
339
341
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
340
342
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -388,7 +390,7 @@
|
|
|
388
390
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
389
391
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
390
392
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
391
|
-
return this.
|
|
393
|
+
return this.oa1(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
392
394
|
}
|
|
393
395
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
394
396
|
initMetadataForClass(_no_name_provided__qut3iv_7, VOID, VOID, VOID, [Reducer]);
|
|
@@ -399,17 +401,17 @@
|
|
|
399
401
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
400
402
|
//endregion
|
|
401
403
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
402
|
-
this.
|
|
404
|
+
this.p9i_1 = $subscriber;
|
|
403
405
|
CoroutineImpl.call(this, resultContinuation);
|
|
404
406
|
}
|
|
405
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
406
|
-
var tmp = this.
|
|
407
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).r9i = function (it, $completion) {
|
|
408
|
+
var tmp = this.s9i(it, $completion);
|
|
407
409
|
tmp.l9_1 = Unit_instance;
|
|
408
410
|
tmp.m9_1 = null;
|
|
409
411
|
return tmp.r9();
|
|
410
412
|
};
|
|
411
413
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).ba = function (p1, $completion) {
|
|
412
|
-
return this.
|
|
414
|
+
return this.r9i(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
413
415
|
};
|
|
414
416
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).r9 = function () {
|
|
415
417
|
var suspendResult = this.l9_1;
|
|
@@ -418,7 +420,7 @@
|
|
|
418
420
|
var tmp = this.j9_1;
|
|
419
421
|
if (tmp === 0) {
|
|
420
422
|
this.k9_1 = 1;
|
|
421
|
-
this.
|
|
423
|
+
this.p9i_1(this.q9i_1);
|
|
422
424
|
return Unit_instance;
|
|
423
425
|
} else if (tmp === 1) {
|
|
424
426
|
throw this.m9_1;
|
|
@@ -429,21 +431,21 @@
|
|
|
429
431
|
}
|
|
430
432
|
while (true);
|
|
431
433
|
};
|
|
432
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
433
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
434
|
-
i.
|
|
434
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).s9i = function (it, completion) {
|
|
435
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.p9i_1, completion);
|
|
436
|
+
i.q9i_1 = it;
|
|
435
437
|
return i;
|
|
436
438
|
};
|
|
437
439
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
438
440
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
439
441
|
var l = function (it, $completion) {
|
|
440
|
-
return i.
|
|
442
|
+
return i.r9i(it, $completion);
|
|
441
443
|
};
|
|
442
444
|
l.$arity = 1;
|
|
443
445
|
return l;
|
|
444
446
|
}
|
|
445
447
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
446
|
-
this.
|
|
448
|
+
this.b9j_1 = $$this$unsafeFlow;
|
|
447
449
|
CoroutineImpl.call(this, resultContinuation);
|
|
448
450
|
}
|
|
449
451
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda).k1i = function (value, $completion) {
|
|
@@ -464,12 +466,12 @@
|
|
|
464
466
|
case 0:
|
|
465
467
|
this.k9_1 = 2;
|
|
466
468
|
var tmp_0 = this;
|
|
467
|
-
tmp_0.
|
|
469
|
+
tmp_0.d9j_1 = this.b9j_1;
|
|
468
470
|
var tmp_1 = this;
|
|
469
|
-
tmp_1.
|
|
471
|
+
tmp_1.e9j_1 = this.c9j_1;
|
|
470
472
|
this.j9_1 = 1;
|
|
471
|
-
var it = this.
|
|
472
|
-
suspendResult = this.
|
|
473
|
+
var it = this.e9j_1;
|
|
474
|
+
suspendResult = this.d9j_1.r18(new ActionsStateUpdate(it), this);
|
|
473
475
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
474
476
|
return suspendResult;
|
|
475
477
|
}
|
|
@@ -492,8 +494,8 @@
|
|
|
492
494
|
while (true);
|
|
493
495
|
};
|
|
494
496
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda).l1i = function (value, completion) {
|
|
495
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda(this.
|
|
496
|
-
i.
|
|
497
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda(this.b9j_1, completion);
|
|
498
|
+
i.c9j_1 = value;
|
|
497
499
|
return i;
|
|
498
500
|
};
|
|
499
501
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -506,8 +508,8 @@
|
|
|
506
508
|
}
|
|
507
509
|
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
508
510
|
CoroutineImpl.call(this, resultContinuation);
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
+
this.n9j_1 = _this__u8e3s4;
|
|
512
|
+
this.o9j_1 = collector;
|
|
511
513
|
}
|
|
512
514
|
protoOf($collectCOROUTINE$0).r9 = function () {
|
|
513
515
|
var suspendResult = this.l9_1;
|
|
@@ -518,10 +520,10 @@
|
|
|
518
520
|
case 0:
|
|
519
521
|
this.k9_1 = 2;
|
|
520
522
|
var tmp_0 = this;
|
|
521
|
-
tmp_0.
|
|
523
|
+
tmp_0.p9j_1 = this.o9j_1;
|
|
522
524
|
this.j9_1 = 1;
|
|
523
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0(this.
|
|
524
|
-
suspendResult = this.
|
|
525
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda$slambda$o$collect$slambda_0(this.p9j_1, null);
|
|
526
|
+
suspendResult = this.n9j_1.q9j_1.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
525
527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
526
528
|
return suspendResult;
|
|
527
529
|
}
|
|
@@ -544,7 +546,7 @@
|
|
|
544
546
|
while (true);
|
|
545
547
|
};
|
|
546
548
|
function _no_name_provided__qut3iv($this) {
|
|
547
|
-
this.
|
|
549
|
+
this.q9j_1 = $this;
|
|
548
550
|
}
|
|
549
551
|
protoOf(_no_name_provided__qut3iv).s18 = function (collector, $completion) {
|
|
550
552
|
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
@@ -556,18 +558,18 @@
|
|
|
556
558
|
return this.s18(collector, $completion);
|
|
557
559
|
};
|
|
558
560
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda($table, this$0, resultContinuation) {
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
+
this.z9j_1 = $table;
|
|
562
|
+
this.a9k_1 = this$0;
|
|
561
563
|
CoroutineImpl.call(this, resultContinuation);
|
|
562
564
|
}
|
|
563
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).
|
|
564
|
-
var tmp = this.
|
|
565
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).c9k = function ($this$flow, $completion) {
|
|
566
|
+
var tmp = this.d9k($this$flow, $completion);
|
|
565
567
|
tmp.l9_1 = Unit_instance;
|
|
566
568
|
tmp.m9_1 = null;
|
|
567
569
|
return tmp.r9();
|
|
568
570
|
};
|
|
569
571
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).ba = function (p1, $completion) {
|
|
570
|
-
return this.
|
|
572
|
+
return this.c9k((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
571
573
|
};
|
|
572
574
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).r9 = function () {
|
|
573
575
|
var suspendResult = this.l9_1;
|
|
@@ -578,7 +580,7 @@
|
|
|
578
580
|
case 0:
|
|
579
581
|
this.k9_1 = 3;
|
|
580
582
|
this.j9_1 = 1;
|
|
581
|
-
suspendResult = this.
|
|
583
|
+
suspendResult = this.b9k_1.r18(new TableStateUpdate(this.z9j_1), this);
|
|
582
584
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
583
585
|
return suspendResult;
|
|
584
586
|
}
|
|
@@ -586,8 +588,8 @@
|
|
|
586
588
|
continue $sm;
|
|
587
589
|
case 1:
|
|
588
590
|
this.j9_1 = 2;
|
|
589
|
-
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.
|
|
590
|
-
suspendResult = emitAll(this.
|
|
591
|
+
var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.a9k_1).u8m(), new Long(3000, 0));
|
|
592
|
+
suspendResult = emitAll(this.b9k_1, new _no_name_provided__qut3iv(this_0), this);
|
|
591
593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
592
594
|
return suspendResult;
|
|
593
595
|
}
|
|
@@ -609,32 +611,32 @@
|
|
|
609
611
|
}
|
|
610
612
|
while (true);
|
|
611
613
|
};
|
|
612
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).
|
|
613
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda(this.
|
|
614
|
-
i.
|
|
614
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda).d9k = function ($this$flow, completion) {
|
|
615
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda(this.z9j_1, this.a9k_1, completion);
|
|
616
|
+
i.b9k_1 = $this$flow;
|
|
615
617
|
return i;
|
|
616
618
|
};
|
|
617
619
|
function GameServer$subscribeServerStateUpdate$slambda$slambda$slambda_0($table, this$0, resultContinuation) {
|
|
618
620
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda$slambda($table, this$0, resultContinuation);
|
|
619
621
|
var l = function ($this$flow, $completion) {
|
|
620
|
-
return i.
|
|
622
|
+
return i.c9k($this$flow, $completion);
|
|
621
623
|
};
|
|
622
624
|
l.$arity = 1;
|
|
623
625
|
return l;
|
|
624
626
|
}
|
|
625
627
|
function GameServer$subscribeServerStateUpdate$slambda$slambda(this$0, resultContinuation) {
|
|
626
|
-
this.
|
|
628
|
+
this.m9k_1 = this$0;
|
|
627
629
|
CoroutineImpl.call(this, resultContinuation);
|
|
628
630
|
}
|
|
629
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
630
|
-
var tmp = this.
|
|
631
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).p9k = function ($this$transformLatest, it, $completion) {
|
|
632
|
+
var tmp = this.q9k($this$transformLatest, it, $completion);
|
|
631
633
|
tmp.l9_1 = Unit_instance;
|
|
632
634
|
tmp.m9_1 = null;
|
|
633
635
|
return tmp.r9();
|
|
634
636
|
};
|
|
635
637
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).ca = function (p1, p2, $completion) {
|
|
636
638
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
637
|
-
return this.
|
|
639
|
+
return this.p9k(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
638
640
|
};
|
|
639
641
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).r9 = function () {
|
|
640
642
|
var suspendResult = this.l9_1;
|
|
@@ -645,8 +647,8 @@
|
|
|
645
647
|
case 0:
|
|
646
648
|
this.k9_1 = 2;
|
|
647
649
|
this.j9_1 = 1;
|
|
648
|
-
var table = this.
|
|
649
|
-
suspendResult = emitAll(this.
|
|
650
|
+
var table = this.o9k_1;
|
|
651
|
+
suspendResult = emitAll(this.n9k_1, flow(GameServer$subscribeServerStateUpdate$slambda$slambda$slambda_0(table, this.m9k_1, null)), this);
|
|
650
652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
651
653
|
return suspendResult;
|
|
652
654
|
}
|
|
@@ -668,32 +670,32 @@
|
|
|
668
670
|
}
|
|
669
671
|
while (true);
|
|
670
672
|
};
|
|
671
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).
|
|
672
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.
|
|
673
|
-
i.
|
|
674
|
-
i.
|
|
673
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda).q9k = function ($this$transformLatest, it, completion) {
|
|
674
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this.m9k_1, completion);
|
|
675
|
+
i.n9k_1 = $this$transformLatest;
|
|
676
|
+
i.o9k_1 = it;
|
|
675
677
|
return i;
|
|
676
678
|
};
|
|
677
679
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_0(this$0, resultContinuation) {
|
|
678
680
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda(this$0, resultContinuation);
|
|
679
681
|
var l = function ($this$transformLatest, it, $completion) {
|
|
680
|
-
return i.
|
|
682
|
+
return i.p9k($this$transformLatest, it, $completion);
|
|
681
683
|
};
|
|
682
684
|
l.$arity = 2;
|
|
683
685
|
return l;
|
|
684
686
|
}
|
|
685
687
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_1($subscriber, resultContinuation) {
|
|
686
|
-
this.
|
|
688
|
+
this.z9k_1 = $subscriber;
|
|
687
689
|
CoroutineImpl.call(this, resultContinuation);
|
|
688
690
|
}
|
|
689
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).
|
|
690
|
-
var tmp = this.
|
|
691
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).b9l = function (it, $completion) {
|
|
692
|
+
var tmp = this.c9l(it, $completion);
|
|
691
693
|
tmp.l9_1 = Unit_instance;
|
|
692
694
|
tmp.m9_1 = null;
|
|
693
695
|
return tmp.r9();
|
|
694
696
|
};
|
|
695
697
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).ba = function (p1, $completion) {
|
|
696
|
-
return this.
|
|
698
|
+
return this.b9l((!(p1 == null) ? isInterface(p1, ServerStateUpdate) : false) ? p1 : THROW_CCE(), $completion);
|
|
697
699
|
};
|
|
698
700
|
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).r9 = function () {
|
|
699
701
|
var suspendResult = this.l9_1;
|
|
@@ -702,7 +704,7 @@
|
|
|
702
704
|
var tmp = this.j9_1;
|
|
703
705
|
if (tmp === 0) {
|
|
704
706
|
this.k9_1 = 1;
|
|
705
|
-
this.
|
|
707
|
+
this.z9k_1(this.a9l_1);
|
|
706
708
|
return Unit_instance;
|
|
707
709
|
} else if (tmp === 1) {
|
|
708
710
|
throw this.m9_1;
|
|
@@ -713,21 +715,21 @@
|
|
|
713
715
|
}
|
|
714
716
|
while (true);
|
|
715
717
|
};
|
|
716
|
-
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).
|
|
717
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1(this.
|
|
718
|
-
i.
|
|
718
|
+
protoOf(GameServer$subscribeServerStateUpdate$slambda$slambda_1).c9l = function (it, completion) {
|
|
719
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1(this.z9k_1, completion);
|
|
720
|
+
i.a9l_1 = it;
|
|
719
721
|
return i;
|
|
720
722
|
};
|
|
721
723
|
function GameServer$subscribeServerStateUpdate$slambda$slambda_2($subscriber, resultContinuation) {
|
|
722
724
|
var i = new GameServer$subscribeServerStateUpdate$slambda$slambda_1($subscriber, resultContinuation);
|
|
723
725
|
var l = function (it, $completion) {
|
|
724
|
-
return i.
|
|
726
|
+
return i.b9l(it, $completion);
|
|
725
727
|
};
|
|
726
728
|
l.$arity = 1;
|
|
727
729
|
return l;
|
|
728
730
|
}
|
|
729
731
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
730
|
-
this.
|
|
732
|
+
this.l9l_1 = $$this$unsafeFlow;
|
|
731
733
|
CoroutineImpl.call(this, resultContinuation);
|
|
732
734
|
}
|
|
733
735
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).k1i = function (value, $completion) {
|
|
@@ -748,12 +750,12 @@
|
|
|
748
750
|
case 0:
|
|
749
751
|
this.k9_1 = 2;
|
|
750
752
|
var tmp_0 = this;
|
|
751
|
-
tmp_0.
|
|
753
|
+
tmp_0.n9l_1 = this.l9l_1;
|
|
752
754
|
var tmp_1 = this;
|
|
753
|
-
tmp_1.
|
|
755
|
+
tmp_1.o9l_1 = this.m9l_1;
|
|
754
756
|
this.j9_1 = 1;
|
|
755
|
-
var state = this.
|
|
756
|
-
suspendResult = this.
|
|
757
|
+
var state = this.o9l_1;
|
|
758
|
+
suspendResult = this.n9l_1.r18(state.s6r().gameInfo.roundNumberTotal, this);
|
|
757
759
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
758
760
|
return suspendResult;
|
|
759
761
|
}
|
|
@@ -776,8 +778,8 @@
|
|
|
776
778
|
while (true);
|
|
777
779
|
};
|
|
778
780
|
protoOf(GameServer$observeTableWhenRoundChanges$o$collect$slambda).l1i = function (value, completion) {
|
|
779
|
-
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.
|
|
780
|
-
i.
|
|
781
|
+
var i = new GameServer$observeTableWhenRoundChanges$o$collect$slambda(this.l9l_1, completion);
|
|
782
|
+
i.m9l_1 = value;
|
|
781
783
|
return i;
|
|
782
784
|
};
|
|
783
785
|
function GameServer$observeTableWhenRoundChanges$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -790,8 +792,8 @@
|
|
|
790
792
|
}
|
|
791
793
|
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
792
794
|
CoroutineImpl.call(this, resultContinuation);
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
795
|
+
this.x9l_1 = _this__u8e3s4;
|
|
796
|
+
this.y9l_1 = collector;
|
|
795
797
|
}
|
|
796
798
|
protoOf($collectCOROUTINE$1).r9 = function () {
|
|
797
799
|
var suspendResult = this.l9_1;
|
|
@@ -802,10 +804,10 @@
|
|
|
802
804
|
case 0:
|
|
803
805
|
this.k9_1 = 2;
|
|
804
806
|
var tmp_0 = this;
|
|
805
|
-
tmp_0.
|
|
807
|
+
tmp_0.z9l_1 = this.y9l_1;
|
|
806
808
|
this.j9_1 = 1;
|
|
807
|
-
var tmp_1 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0(this.
|
|
808
|
-
suspendResult = this.
|
|
809
|
+
var tmp_1 = GameServer$observeTableWhenRoundChanges$o$collect$slambda_0(this.z9l_1, null);
|
|
810
|
+
suspendResult = this.x9l_1.a9m_1.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
809
811
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
810
812
|
return suspendResult;
|
|
811
813
|
}
|
|
@@ -828,7 +830,7 @@
|
|
|
828
830
|
while (true);
|
|
829
831
|
};
|
|
830
832
|
function GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) {
|
|
831
|
-
this.
|
|
833
|
+
this.j9m_1 = $$this$unsafeFlow;
|
|
832
834
|
CoroutineImpl.call(this, resultContinuation);
|
|
833
835
|
}
|
|
834
836
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda).k1i = function (value, $completion) {
|
|
@@ -852,33 +854,33 @@
|
|
|
852
854
|
continue $sm;
|
|
853
855
|
case 1:
|
|
854
856
|
var tmp_0 = this;
|
|
855
|
-
tmp_0.
|
|
857
|
+
tmp_0.m9m_1 = this.j9m_1;
|
|
856
858
|
var tmp_1 = this;
|
|
857
|
-
tmp_1.
|
|
859
|
+
tmp_1.n9m_1 = this.k9m_1;
|
|
858
860
|
var tmp_2 = this;
|
|
859
|
-
tmp_2.
|
|
860
|
-
if (this.
|
|
861
|
-
this.
|
|
861
|
+
tmp_2.o9m_1 = this.n9m_1.b6r_1;
|
|
862
|
+
if (this.o9m_1 == null) {
|
|
863
|
+
this.l9m_1 = Unit_instance;
|
|
862
864
|
this.j9_1 = 4;
|
|
863
865
|
var tmp_3 = this;
|
|
864
866
|
continue $sm;
|
|
865
867
|
} else {
|
|
866
|
-
this.
|
|
868
|
+
this.p9m_1 = this.o9m_1;
|
|
867
869
|
this.j9_1 = 2;
|
|
868
870
|
continue $sm;
|
|
869
871
|
}
|
|
870
872
|
|
|
871
873
|
case 2:
|
|
872
|
-
this.
|
|
874
|
+
this.q9m_1 = this.p9m_1;
|
|
873
875
|
this.j9_1 = 3;
|
|
874
|
-
suspendResult = this.
|
|
876
|
+
suspendResult = this.m9m_1.r18(this.q9m_1, this);
|
|
875
877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
876
878
|
return suspendResult;
|
|
877
879
|
}
|
|
878
880
|
|
|
879
881
|
continue $sm;
|
|
880
882
|
case 3:
|
|
881
|
-
this.
|
|
883
|
+
this.l9m_1 = suspendResult;
|
|
882
884
|
if (false) {
|
|
883
885
|
this.j9_1 = 1;
|
|
884
886
|
continue $sm;
|
|
@@ -903,8 +905,8 @@
|
|
|
903
905
|
while (true);
|
|
904
906
|
};
|
|
905
907
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda).l1i = function (value, completion) {
|
|
906
|
-
var i = new GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.
|
|
907
|
-
i.
|
|
908
|
+
var i = new GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda(this.j9m_1, completion);
|
|
909
|
+
i.k9m_1 = value;
|
|
908
910
|
return i;
|
|
909
911
|
};
|
|
910
912
|
function GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) {
|
|
@@ -917,8 +919,8 @@
|
|
|
917
919
|
}
|
|
918
920
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
919
921
|
CoroutineImpl.call(this, resultContinuation);
|
|
920
|
-
this.
|
|
921
|
-
this.
|
|
922
|
+
this.z9m_1 = _this__u8e3s4;
|
|
923
|
+
this.a9n_1 = collector;
|
|
922
924
|
}
|
|
923
925
|
protoOf($collectCOROUTINE$2).r9 = function () {
|
|
924
926
|
var suspendResult = this.l9_1;
|
|
@@ -929,10 +931,10 @@
|
|
|
929
931
|
case 0:
|
|
930
932
|
this.k9_1 = 2;
|
|
931
933
|
var tmp_0 = this;
|
|
932
|
-
tmp_0.
|
|
934
|
+
tmp_0.b9n_1 = this.a9n_1;
|
|
933
935
|
this.j9_1 = 1;
|
|
934
|
-
var tmp_1 = GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.
|
|
935
|
-
suspendResult = this.
|
|
936
|
+
var tmp_1 = GameServer$observeTableWhenRoundChanges$slambda$o$collect$slambda_0(this.b9n_1, null);
|
|
937
|
+
suspendResult = this.z9m_1.c9n_1.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
936
938
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
937
939
|
return suspendResult;
|
|
938
940
|
}
|
|
@@ -955,7 +957,7 @@
|
|
|
955
957
|
while (true);
|
|
956
958
|
};
|
|
957
959
|
function _no_name_provided__qut3iv_0($this) {
|
|
958
|
-
this.
|
|
960
|
+
this.c9n_1 = $this;
|
|
959
961
|
}
|
|
960
962
|
protoOf(_no_name_provided__qut3iv_0).s18 = function (collector, $completion) {
|
|
961
963
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
@@ -967,17 +969,17 @@
|
|
|
967
969
|
return this.s18(collector, $completion);
|
|
968
970
|
};
|
|
969
971
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
970
|
-
this.
|
|
972
|
+
this.l9n_1 = $subscriber;
|
|
971
973
|
CoroutineImpl.call(this, resultContinuation);
|
|
972
974
|
}
|
|
973
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
974
|
-
var tmp = this.
|
|
975
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).n9n = function (it, $completion) {
|
|
976
|
+
var tmp = this.o9n(it, $completion);
|
|
975
977
|
tmp.l9_1 = Unit_instance;
|
|
976
978
|
tmp.m9_1 = null;
|
|
977
979
|
return tmp.r9();
|
|
978
980
|
};
|
|
979
981
|
protoOf(GameServer$subscribeWith$slambda$slambda).ba = function (p1, $completion) {
|
|
980
|
-
return this.
|
|
982
|
+
return this.n9n(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
981
983
|
};
|
|
982
984
|
protoOf(GameServer$subscribeWith$slambda$slambda).r9 = function () {
|
|
983
985
|
var suspendResult = this.l9_1;
|
|
@@ -986,7 +988,7 @@
|
|
|
986
988
|
var tmp = this.j9_1;
|
|
987
989
|
if (tmp === 0) {
|
|
988
990
|
this.k9_1 = 1;
|
|
989
|
-
this.
|
|
991
|
+
this.l9n_1(this.m9n_1);
|
|
990
992
|
return Unit_instance;
|
|
991
993
|
} else if (tmp === 1) {
|
|
992
994
|
throw this.m9_1;
|
|
@@ -997,64 +999,64 @@
|
|
|
997
999
|
}
|
|
998
1000
|
while (true);
|
|
999
1001
|
};
|
|
1000
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
1001
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
1002
|
-
i.
|
|
1002
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).o9n = function (it, completion) {
|
|
1003
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.l9n_1, completion);
|
|
1004
|
+
i.m9n_1 = it;
|
|
1003
1005
|
return i;
|
|
1004
1006
|
};
|
|
1005
1007
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
1006
1008
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
1007
1009
|
var l = function (it, $completion) {
|
|
1008
|
-
return i.
|
|
1010
|
+
return i.n9n(it, $completion);
|
|
1009
1011
|
};
|
|
1010
1012
|
l.$arity = 1;
|
|
1011
1013
|
return l;
|
|
1012
1014
|
}
|
|
1013
1015
|
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($playerId) {
|
|
1014
|
-
this.
|
|
1016
|
+
this.p9n_1 = $playerId;
|
|
1015
1017
|
}
|
|
1016
1018
|
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).w6a = function () {
|
|
1017
|
-
return this.
|
|
1019
|
+
return this.p9n_1;
|
|
1018
1020
|
};
|
|
1019
1021
|
function _get_logger__rkp4sl($this) {
|
|
1020
1022
|
// Inline function 'kotlin.getValue' call
|
|
1021
|
-
var this_0 = $this.
|
|
1023
|
+
var this_0 = $this.s9n_1;
|
|
1022
1024
|
logger$factory_0();
|
|
1023
1025
|
return this_0.u();
|
|
1024
1026
|
}
|
|
1025
1027
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
1026
1028
|
// Inline function 'kotlin.getValue' call
|
|
1027
|
-
var this_0 = $this.
|
|
1029
|
+
var this_0 = $this.t9n_1;
|
|
1028
1030
|
toClientEventsObserver$factory_0();
|
|
1029
1031
|
return this_0.u();
|
|
1030
1032
|
}
|
|
1031
1033
|
function _get_fromClientEventsObserver__a7vzd3($this) {
|
|
1032
1034
|
// Inline function 'kotlin.getValue' call
|
|
1033
|
-
var this_0 = $this.
|
|
1035
|
+
var this_0 = $this.u9n_1;
|
|
1034
1036
|
fromClientEventsObserver$factory_0();
|
|
1035
1037
|
return this_0.u();
|
|
1036
1038
|
}
|
|
1037
1039
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
1038
1040
|
// Inline function 'kotlin.getValue' call
|
|
1039
|
-
var this_0 = $this.
|
|
1041
|
+
var this_0 = $this.v9n_1;
|
|
1040
1042
|
playerConnectionInteractor$factory_0();
|
|
1041
1043
|
return this_0.u();
|
|
1042
1044
|
}
|
|
1043
1045
|
function _get_teamsLogicProvider__u10pm6($this) {
|
|
1044
1046
|
// Inline function 'kotlin.getValue' call
|
|
1045
|
-
var this_0 = $this.
|
|
1047
|
+
var this_0 = $this.w9n_1;
|
|
1046
1048
|
teamsLogicProvider$factory_0();
|
|
1047
1049
|
return this_0.u();
|
|
1048
1050
|
}
|
|
1049
1051
|
function _get_random__h29cgo($this) {
|
|
1050
1052
|
// Inline function 'kotlin.getValue' call
|
|
1051
|
-
var this_0 = $this.
|
|
1053
|
+
var this_0 = $this.x9n_1;
|
|
1052
1054
|
random$factory();
|
|
1053
1055
|
return this_0.u();
|
|
1054
1056
|
}
|
|
1055
1057
|
function _get_idsProvider__fnfajc($this) {
|
|
1056
1058
|
// Inline function 'kotlin.getValue' call
|
|
1057
|
-
var this_0 = $this.
|
|
1059
|
+
var this_0 = $this.y9n_1;
|
|
1058
1060
|
idsProvider$factory_0();
|
|
1059
1061
|
return this_0.u();
|
|
1060
1062
|
}
|
|
@@ -1068,20 +1070,20 @@
|
|
|
1068
1070
|
return transformLatest(this_0, GameServer$observeTableWhenRoundChanges$slambda_0(observeState, null));
|
|
1069
1071
|
}
|
|
1070
1072
|
function Companion() {
|
|
1071
|
-
this.
|
|
1073
|
+
this.a9o_1 = 'GameEngine_API';
|
|
1072
1074
|
}
|
|
1073
1075
|
var Companion_instance_7;
|
|
1074
1076
|
function Companion_getInstance_0() {
|
|
1075
1077
|
return Companion_instance_7;
|
|
1076
1078
|
}
|
|
1077
1079
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1078
|
-
this.
|
|
1080
|
+
this.b9o_1 = function_0;
|
|
1079
1081
|
}
|
|
1080
1082
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).r18 = function (value, $completion) {
|
|
1081
|
-
return this.
|
|
1083
|
+
return this.b9o_1(value, $completion);
|
|
1082
1084
|
};
|
|
1083
1085
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t3 = function () {
|
|
1084
|
-
return this.
|
|
1086
|
+
return this.b9o_1;
|
|
1085
1087
|
};
|
|
1086
1088
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1087
1089
|
var tmp;
|
|
@@ -1102,13 +1104,13 @@
|
|
|
1102
1104
|
return hashCode(this.t3());
|
|
1103
1105
|
};
|
|
1104
1106
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
1105
|
-
this.
|
|
1107
|
+
this.c9o_1 = function_0;
|
|
1106
1108
|
}
|
|
1107
1109
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).r18 = function (value, $completion) {
|
|
1108
|
-
return this.
|
|
1110
|
+
return this.c9o_1(value, $completion);
|
|
1109
1111
|
};
|
|
1110
1112
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).t3 = function () {
|
|
1111
|
-
return this.
|
|
1113
|
+
return this.c9o_1;
|
|
1112
1114
|
};
|
|
1113
1115
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
1114
1116
|
var tmp;
|
|
@@ -1129,13 +1131,13 @@
|
|
|
1129
1131
|
return hashCode(this.t3());
|
|
1130
1132
|
};
|
|
1131
1133
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
1132
|
-
this.
|
|
1134
|
+
this.d9o_1 = function_0;
|
|
1133
1135
|
}
|
|
1134
1136
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).r18 = function (value, $completion) {
|
|
1135
|
-
return this.
|
|
1137
|
+
return this.d9o_1(value, $completion);
|
|
1136
1138
|
};
|
|
1137
1139
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).t3 = function () {
|
|
1138
|
-
return this.
|
|
1140
|
+
return this.d9o_1;
|
|
1139
1141
|
};
|
|
1140
1142
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).equals = function (other) {
|
|
1141
1143
|
var tmp;
|
|
@@ -1156,13 +1158,13 @@
|
|
|
1156
1158
|
return hashCode(this.t3());
|
|
1157
1159
|
};
|
|
1158
1160
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) {
|
|
1159
|
-
this.
|
|
1161
|
+
this.e9o_1 = function_0;
|
|
1160
1162
|
}
|
|
1161
1163
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).r18 = function (value, $completion) {
|
|
1162
|
-
return this.
|
|
1164
|
+
return this.e9o_1(value, $completion);
|
|
1163
1165
|
};
|
|
1164
1166
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).t3 = function () {
|
|
1165
|
-
return this.
|
|
1167
|
+
return this.e9o_1;
|
|
1166
1168
|
};
|
|
1167
1169
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).equals = function (other) {
|
|
1168
1170
|
var tmp;
|
|
@@ -1188,8 +1190,8 @@
|
|
|
1188
1190
|
};
|
|
1189
1191
|
}
|
|
1190
1192
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
+
this.n9o_1 = this$0;
|
|
1194
|
+
this.o9o_1 = $subscriber;
|
|
1193
1195
|
CoroutineImpl.call(this, resultContinuation);
|
|
1194
1196
|
}
|
|
1195
1197
|
protoOf(GameServer$subscribeToClientAction$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -1210,8 +1212,8 @@
|
|
|
1210
1212
|
case 0:
|
|
1211
1213
|
this.k9_1 = 2;
|
|
1212
1214
|
this.j9_1 = 1;
|
|
1213
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
1214
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
1215
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.n9o_1).q9o();
|
|
1216
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.o9o_1, null);
|
|
1215
1217
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
1216
1218
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1217
1219
|
return suspendResult;
|
|
@@ -1235,8 +1237,8 @@
|
|
|
1235
1237
|
while (true);
|
|
1236
1238
|
};
|
|
1237
1239
|
protoOf(GameServer$subscribeToClientAction$slambda).n1e = function ($this$launchDefault, completion) {
|
|
1238
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
1239
|
-
i.
|
|
1240
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.n9o_1, this.o9o_1, completion);
|
|
1241
|
+
i.p9o_1 = $this$launchDefault;
|
|
1240
1242
|
return i;
|
|
1241
1243
|
};
|
|
1242
1244
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1248,8 +1250,8 @@
|
|
|
1248
1250
|
return l;
|
|
1249
1251
|
}
|
|
1250
1252
|
function GameServer$subscribeServerStateUpdate$slambda(this$0, $subscriber, resultContinuation) {
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1253
|
+
this.z9o_1 = this$0;
|
|
1254
|
+
this.a9p_1 = $subscriber;
|
|
1253
1255
|
CoroutineImpl.call(this, resultContinuation);
|
|
1254
1256
|
}
|
|
1255
1257
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -1270,9 +1272,9 @@
|
|
|
1270
1272
|
case 0:
|
|
1271
1273
|
this.k9_1 = 2;
|
|
1272
1274
|
this.j9_1 = 1;
|
|
1273
|
-
var this_0 = observeTableWhenRoundChanges(this.
|
|
1274
|
-
var tmp_0 = transformLatest(this_0, GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.
|
|
1275
|
-
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_2(this.
|
|
1275
|
+
var this_0 = observeTableWhenRoundChanges(this.z9o_1, this.z9o_1.a6r());
|
|
1276
|
+
var tmp_0 = transformLatest(this_0, GameServer$subscribeServerStateUpdate$slambda$slambda_0(this.z9o_1, null));
|
|
1277
|
+
var tmp_1 = GameServer$subscribeServerStateUpdate$slambda$slambda_2(this.a9p_1, null);
|
|
1276
1278
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
1277
1279
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1278
1280
|
return suspendResult;
|
|
@@ -1296,8 +1298,8 @@
|
|
|
1296
1298
|
while (true);
|
|
1297
1299
|
};
|
|
1298
1300
|
protoOf(GameServer$subscribeServerStateUpdate$slambda).n1e = function ($this$launchDefault, completion) {
|
|
1299
|
-
var i = new GameServer$subscribeServerStateUpdate$slambda(this.
|
|
1300
|
-
i.
|
|
1301
|
+
var i = new GameServer$subscribeServerStateUpdate$slambda(this.z9o_1, this.a9p_1, completion);
|
|
1302
|
+
i.b9p_1 = $this$launchDefault;
|
|
1301
1303
|
return i;
|
|
1302
1304
|
};
|
|
1303
1305
|
function GameServer$subscribeServerStateUpdate$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1309,7 +1311,7 @@
|
|
|
1309
1311
|
return l;
|
|
1310
1312
|
}
|
|
1311
1313
|
function _no_name_provided__qut3iv_1($this) {
|
|
1312
|
-
this.
|
|
1314
|
+
this.a9m_1 = $this;
|
|
1313
1315
|
}
|
|
1314
1316
|
protoOf(_no_name_provided__qut3iv_1).s18 = function (collector, $completion) {
|
|
1315
1317
|
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
@@ -1321,18 +1323,18 @@
|
|
|
1321
1323
|
return this.s18(collector, $completion);
|
|
1322
1324
|
};
|
|
1323
1325
|
function GameServer$observeTableWhenRoundChanges$slambda($observeState, resultContinuation) {
|
|
1324
|
-
this.
|
|
1326
|
+
this.k9p_1 = $observeState;
|
|
1325
1327
|
CoroutineImpl.call(this, resultContinuation);
|
|
1326
1328
|
}
|
|
1327
|
-
protoOf(GameServer$observeTableWhenRoundChanges$slambda).
|
|
1328
|
-
var tmp = this.
|
|
1329
|
+
protoOf(GameServer$observeTableWhenRoundChanges$slambda).p9k = function ($this$transformLatest, it, $completion) {
|
|
1330
|
+
var tmp = this.q9k($this$transformLatest, it, $completion);
|
|
1329
1331
|
tmp.l9_1 = Unit_instance;
|
|
1330
1332
|
tmp.m9_1 = null;
|
|
1331
1333
|
return tmp.r9();
|
|
1332
1334
|
};
|
|
1333
1335
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda).ca = function (p1, p2, $completion) {
|
|
1334
1336
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
1335
|
-
return this.
|
|
1337
|
+
return this.p9k(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
|
|
1336
1338
|
};
|
|
1337
1339
|
protoOf(GameServer$observeTableWhenRoundChanges$slambda).r9 = function () {
|
|
1338
1340
|
var suspendResult = this.l9_1;
|
|
@@ -1343,9 +1345,9 @@
|
|
|
1343
1345
|
case 0:
|
|
1344
1346
|
this.k9_1 = 2;
|
|
1345
1347
|
this.j9_1 = 1;
|
|
1346
|
-
this.
|
|
1347
|
-
var this_0 = this.
|
|
1348
|
-
suspendResult = emitAll(this.
|
|
1348
|
+
this.m9p_1;
|
|
1349
|
+
var this_0 = this.k9p_1;
|
|
1350
|
+
suspendResult = emitAll(this.l9p_1, new _no_name_provided__qut3iv_0(this_0), this);
|
|
1349
1351
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1350
1352
|
return suspendResult;
|
|
1351
1353
|
}
|
|
@@ -1367,23 +1369,23 @@
|
|
|
1367
1369
|
}
|
|
1368
1370
|
while (true);
|
|
1369
1371
|
};
|
|
1370
|
-
protoOf(GameServer$observeTableWhenRoundChanges$slambda).
|
|
1371
|
-
var i = new GameServer$observeTableWhenRoundChanges$slambda(this.
|
|
1372
|
-
i.
|
|
1373
|
-
i.
|
|
1372
|
+
protoOf(GameServer$observeTableWhenRoundChanges$slambda).q9k = function ($this$transformLatest, it, completion) {
|
|
1373
|
+
var i = new GameServer$observeTableWhenRoundChanges$slambda(this.k9p_1, completion);
|
|
1374
|
+
i.l9p_1 = $this$transformLatest;
|
|
1375
|
+
i.m9p_1 = it;
|
|
1374
1376
|
return i;
|
|
1375
1377
|
};
|
|
1376
1378
|
function GameServer$observeTableWhenRoundChanges$slambda_0($observeState, resultContinuation) {
|
|
1377
1379
|
var i = new GameServer$observeTableWhenRoundChanges$slambda($observeState, resultContinuation);
|
|
1378
1380
|
var l = function ($this$transformLatest, it, $completion) {
|
|
1379
|
-
return i.
|
|
1381
|
+
return i.p9k($this$transformLatest, it, $completion);
|
|
1380
1382
|
};
|
|
1381
1383
|
l.$arity = 2;
|
|
1382
1384
|
return l;
|
|
1383
1385
|
}
|
|
1384
1386
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
+
this.v9p_1 = this$0;
|
|
1388
|
+
this.w9p_1 = $subscriber;
|
|
1387
1389
|
CoroutineImpl.call(this, resultContinuation);
|
|
1388
1390
|
}
|
|
1389
1391
|
protoOf(GameServer$subscribeWith$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -1404,8 +1406,8 @@
|
|
|
1404
1406
|
case 0:
|
|
1405
1407
|
this.k9_1 = 2;
|
|
1406
1408
|
this.j9_1 = 1;
|
|
1407
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
1408
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
1409
|
+
var tmp_0 = distinctUntilChanged(this.v9p_1.a6r());
|
|
1410
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.w9p_1, null);
|
|
1409
1411
|
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this);
|
|
1410
1412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1411
1413
|
return suspendResult;
|
|
@@ -1429,8 +1431,8 @@
|
|
|
1429
1431
|
while (true);
|
|
1430
1432
|
};
|
|
1431
1433
|
protoOf(GameServer$subscribeWith$slambda).n1e = function ($this$launchDefault, completion) {
|
|
1432
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
1433
|
-
i.
|
|
1434
|
+
var i = new GameServer$subscribeWith$slambda(this.v9p_1, this.w9p_1, completion);
|
|
1435
|
+
i.x9p_1 = $this$launchDefault;
|
|
1434
1436
|
return i;
|
|
1435
1437
|
};
|
|
1436
1438
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -1442,18 +1444,18 @@
|
|
|
1442
1444
|
return l;
|
|
1443
1445
|
}
|
|
1444
1446
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
1445
|
-
this.
|
|
1447
|
+
this.g9q_1 = $action;
|
|
1446
1448
|
CoroutineImpl.call(this, resultContinuation);
|
|
1447
1449
|
}
|
|
1448
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1449
|
-
var tmp = this.
|
|
1450
|
+
protoOf(GameServer$fromClientEvent$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1451
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1450
1452
|
tmp.l9_1 = Unit_instance;
|
|
1451
1453
|
tmp.m9_1 = null;
|
|
1452
1454
|
return tmp.r9();
|
|
1453
1455
|
};
|
|
1454
1456
|
protoOf(GameServer$fromClientEvent$slambda).ca = function (p1, p2, $completion) {
|
|
1455
1457
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1456
|
-
return this.
|
|
1458
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1457
1459
|
};
|
|
1458
1460
|
protoOf(GameServer$fromClientEvent$slambda).r9 = function () {
|
|
1459
1461
|
var suspendResult = this.l9_1;
|
|
@@ -1462,11 +1464,11 @@
|
|
|
1462
1464
|
var tmp = this.j9_1;
|
|
1463
1465
|
if (tmp === 0) {
|
|
1464
1466
|
this.k9_1 = 1;
|
|
1465
|
-
if (this.
|
|
1466
|
-
if (!get_isCreated(this.
|
|
1467
|
+
if (this.g9q_1 instanceof PlayerReadyFromClientAction)
|
|
1468
|
+
if (!get_isCreated(this.i9q_1.state)) {
|
|
1467
1469
|
return Unit_instance;
|
|
1468
1470
|
}
|
|
1469
|
-
this.
|
|
1471
|
+
this.i9q_1.dispatch(this.g9q_1);
|
|
1470
1472
|
return Unit_instance;
|
|
1471
1473
|
} else if (tmp === 1) {
|
|
1472
1474
|
throw this.m9_1;
|
|
@@ -1477,33 +1479,33 @@
|
|
|
1477
1479
|
}
|
|
1478
1480
|
while (true);
|
|
1479
1481
|
};
|
|
1480
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
1481
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
1482
|
-
i.
|
|
1483
|
-
i.
|
|
1482
|
+
protoOf(GameServer$fromClientEvent$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1483
|
+
var i = new GameServer$fromClientEvent$slambda(this.g9q_1, completion);
|
|
1484
|
+
i.h9q_1 = $this$dispatchAsync;
|
|
1485
|
+
i.i9q_1 = store;
|
|
1484
1486
|
return i;
|
|
1485
1487
|
};
|
|
1486
1488
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
1487
1489
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
1488
1490
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1489
|
-
return i.
|
|
1491
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1490
1492
|
};
|
|
1491
1493
|
l.$arity = 2;
|
|
1492
1494
|
return l;
|
|
1493
1495
|
}
|
|
1494
1496
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
1495
|
-
this.
|
|
1497
|
+
this.t9q_1 = $playerId;
|
|
1496
1498
|
CoroutineImpl.call(this, resultContinuation);
|
|
1497
1499
|
}
|
|
1498
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
1499
|
-
var tmp = this.
|
|
1500
|
+
protoOf(GameServer$playerLostConnection$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1501
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1500
1502
|
tmp.l9_1 = Unit_instance;
|
|
1501
1503
|
tmp.m9_1 = null;
|
|
1502
1504
|
return tmp.r9();
|
|
1503
1505
|
};
|
|
1504
1506
|
protoOf(GameServer$playerLostConnection$slambda).ca = function (p1, p2, $completion) {
|
|
1505
1507
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1506
|
-
return this.
|
|
1508
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1507
1509
|
};
|
|
1508
1510
|
protoOf(GameServer$playerLostConnection$slambda).r9 = function () {
|
|
1509
1511
|
var suspendResult = this.l9_1;
|
|
@@ -1512,12 +1514,12 @@
|
|
|
1512
1514
|
var tmp = this.j9_1;
|
|
1513
1515
|
if (tmp === 0) {
|
|
1514
1516
|
this.k9_1 = 1;
|
|
1515
|
-
if (!get_isCreated(this.
|
|
1517
|
+
if (!get_isCreated(this.v9q_1.state)) {
|
|
1516
1518
|
return Unit_instance;
|
|
1517
1519
|
}
|
|
1518
|
-
var tmp_0 = this.
|
|
1520
|
+
var tmp_0 = this.v9q_1.dispatch;
|
|
1519
1521
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
1520
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1522
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.t9q_1));
|
|
1521
1523
|
return Unit_instance;
|
|
1522
1524
|
} else if (tmp === 1) {
|
|
1523
1525
|
throw this.m9_1;
|
|
@@ -1528,34 +1530,34 @@
|
|
|
1528
1530
|
}
|
|
1529
1531
|
while (true);
|
|
1530
1532
|
};
|
|
1531
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
1532
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
1533
|
-
i.
|
|
1534
|
-
i.
|
|
1533
|
+
protoOf(GameServer$playerLostConnection$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1534
|
+
var i = new GameServer$playerLostConnection$slambda(this.t9q_1, completion);
|
|
1535
|
+
i.u9q_1 = $this$dispatchAsync;
|
|
1536
|
+
i.v9q_1 = store;
|
|
1535
1537
|
return i;
|
|
1536
1538
|
};
|
|
1537
1539
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
1538
1540
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
1539
1541
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1540
|
-
return i.
|
|
1542
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1541
1543
|
};
|
|
1542
1544
|
l.$arity = 2;
|
|
1543
1545
|
return l;
|
|
1544
1546
|
}
|
|
1545
1547
|
function GameServer$playerLive$slambda(this$0, $playerId, resultContinuation) {
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1548
|
+
this.e9r_1 = this$0;
|
|
1549
|
+
this.f9r_1 = $playerId;
|
|
1548
1550
|
CoroutineImpl.call(this, resultContinuation);
|
|
1549
1551
|
}
|
|
1550
|
-
protoOf(GameServer$playerLive$slambda).
|
|
1551
|
-
var tmp = this.
|
|
1552
|
+
protoOf(GameServer$playerLive$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1553
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1552
1554
|
tmp.l9_1 = Unit_instance;
|
|
1553
1555
|
tmp.m9_1 = null;
|
|
1554
1556
|
return tmp.r9();
|
|
1555
1557
|
};
|
|
1556
1558
|
protoOf(GameServer$playerLive$slambda).ca = function (p1, p2, $completion) {
|
|
1557
1559
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1558
|
-
return this.
|
|
1560
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1559
1561
|
};
|
|
1560
1562
|
protoOf(GameServer$playerLive$slambda).r9 = function () {
|
|
1561
1563
|
var suspendResult = this.l9_1;
|
|
@@ -1564,16 +1566,16 @@
|
|
|
1564
1566
|
var tmp = this.j9_1;
|
|
1565
1567
|
if (tmp === 0) {
|
|
1566
1568
|
this.k9_1 = 1;
|
|
1567
|
-
if (get_isFinished(this.
|
|
1569
|
+
if (get_isFinished(this.h9r_1.state) || get_isFinishing(this.h9r_1.state)) {
|
|
1568
1570
|
return Unit_instance;
|
|
1569
1571
|
}
|
|
1570
|
-
if (!get_isCreated(this.
|
|
1571
|
-
_get_logger__rkp4sl(this.
|
|
1572
|
+
if (!get_isCreated(this.h9r_1.state) || !this.e9r_1.v6b().t6r()) {
|
|
1573
|
+
_get_logger__rkp4sl(this.e9r_1).w('GameEngine_API', 'playerLive: ' + this.f9r_1 + ' before game is created');
|
|
1572
1574
|
return Unit_instance;
|
|
1573
1575
|
}
|
|
1574
|
-
var tmp_0 = this.
|
|
1576
|
+
var tmp_0 = this.h9r_1.dispatch;
|
|
1575
1577
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1576
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1578
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.f9r_1));
|
|
1577
1579
|
return Unit_instance;
|
|
1578
1580
|
} else if (tmp === 1) {
|
|
1579
1581
|
throw this.m9_1;
|
|
@@ -1584,34 +1586,34 @@
|
|
|
1584
1586
|
}
|
|
1585
1587
|
while (true);
|
|
1586
1588
|
};
|
|
1587
|
-
protoOf(GameServer$playerLive$slambda).
|
|
1588
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
1589
|
-
i.
|
|
1590
|
-
i.
|
|
1589
|
+
protoOf(GameServer$playerLive$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1590
|
+
var i = new GameServer$playerLive$slambda(this.e9r_1, this.f9r_1, completion);
|
|
1591
|
+
i.g9r_1 = $this$dispatchAsync;
|
|
1592
|
+
i.h9r_1 = store;
|
|
1591
1593
|
return i;
|
|
1592
1594
|
};
|
|
1593
1595
|
function GameServer$playerLive$slambda_0(this$0, $playerId, resultContinuation) {
|
|
1594
1596
|
var i = new GameServer$playerLive$slambda(this$0, $playerId, resultContinuation);
|
|
1595
1597
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1596
|
-
return i.
|
|
1598
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1597
1599
|
};
|
|
1598
1600
|
l.$arity = 2;
|
|
1599
1601
|
return l;
|
|
1600
1602
|
}
|
|
1601
1603
|
function GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation) {
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
+
this.q9r_1 = this$0;
|
|
1605
|
+
this.r9r_1 = $playerId;
|
|
1604
1606
|
CoroutineImpl.call(this, resultContinuation);
|
|
1605
1607
|
}
|
|
1606
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1607
|
-
var tmp = this.
|
|
1608
|
+
protoOf(GameServer$playerLeft$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1609
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1608
1610
|
tmp.l9_1 = Unit_instance;
|
|
1609
1611
|
tmp.m9_1 = null;
|
|
1610
1612
|
return tmp.r9();
|
|
1611
1613
|
};
|
|
1612
1614
|
protoOf(GameServer$playerLeft$slambda).ca = function (p1, p2, $completion) {
|
|
1613
1615
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1614
|
-
return this.
|
|
1616
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1615
1617
|
};
|
|
1616
1618
|
protoOf(GameServer$playerLeft$slambda).r9 = function () {
|
|
1617
1619
|
var suspendResult = this.l9_1;
|
|
@@ -1620,16 +1622,16 @@
|
|
|
1620
1622
|
var tmp = this.j9_1;
|
|
1621
1623
|
if (tmp === 0) {
|
|
1622
1624
|
this.k9_1 = 1;
|
|
1623
|
-
if (get_isFinished(this.
|
|
1625
|
+
if (get_isFinished(this.t9r_1.state) || get_isFinishing(this.t9r_1.state)) {
|
|
1624
1626
|
return Unit_instance;
|
|
1625
1627
|
}
|
|
1626
|
-
if (!get_isCreated(this.
|
|
1627
|
-
_get_logger__rkp4sl(this.
|
|
1628
|
+
if (!get_isCreated(this.t9r_1.state) || !this.q9r_1.v6b().t6r()) {
|
|
1629
|
+
_get_logger__rkp4sl(this.q9r_1).w('GameEngine_API', 'playerLeft: ' + this.r9r_1 + ' before game is created');
|
|
1628
1630
|
return Unit_instance;
|
|
1629
1631
|
}
|
|
1630
|
-
var tmp_0 = this.
|
|
1632
|
+
var tmp_0 = this.t9r_1.dispatch;
|
|
1631
1633
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
1632
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1634
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.r9r_1));
|
|
1633
1635
|
return Unit_instance;
|
|
1634
1636
|
} else if (tmp === 1) {
|
|
1635
1637
|
throw this.m9_1;
|
|
@@ -1640,39 +1642,39 @@
|
|
|
1640
1642
|
}
|
|
1641
1643
|
while (true);
|
|
1642
1644
|
};
|
|
1643
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
1644
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
1645
|
-
i.
|
|
1646
|
-
i.
|
|
1645
|
+
protoOf(GameServer$playerLeft$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1646
|
+
var i = new GameServer$playerLeft$slambda(this.q9r_1, this.r9r_1, completion);
|
|
1647
|
+
i.s9r_1 = $this$dispatchAsync;
|
|
1648
|
+
i.t9r_1 = store;
|
|
1647
1649
|
return i;
|
|
1648
1650
|
};
|
|
1649
1651
|
function GameServer$playerLeft$slambda_0(this$0, $playerId, resultContinuation) {
|
|
1650
1652
|
var i = new GameServer$playerLeft$slambda(this$0, $playerId, resultContinuation);
|
|
1651
1653
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1652
|
-
return i.
|
|
1654
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1653
1655
|
};
|
|
1654
1656
|
l.$arity = 2;
|
|
1655
1657
|
return l;
|
|
1656
1658
|
}
|
|
1657
1659
|
function GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1660
|
+
this.c9s_1 = $usersArray;
|
|
1661
|
+
this.d9s_1 = $config;
|
|
1662
|
+
this.e9s_1 = this$0;
|
|
1663
|
+
this.f9s_1 = $roomId;
|
|
1664
|
+
this.g9s_1 = $transition;
|
|
1665
|
+
this.h9s_1 = $gameCreatorId;
|
|
1666
|
+
this.i9s_1 = $spectators;
|
|
1665
1667
|
CoroutineImpl.call(this, resultContinuation);
|
|
1666
1668
|
}
|
|
1667
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1668
|
-
var tmp = this.
|
|
1669
|
+
protoOf(GameServer$roomOnCreate$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1670
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1669
1671
|
tmp.l9_1 = Unit_instance;
|
|
1670
1672
|
tmp.m9_1 = null;
|
|
1671
1673
|
return tmp.r9();
|
|
1672
1674
|
};
|
|
1673
1675
|
protoOf(GameServer$roomOnCreate$slambda).ca = function (p1, p2, $completion) {
|
|
1674
1676
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1675
|
-
return this.
|
|
1677
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1676
1678
|
};
|
|
1677
1679
|
protoOf(GameServer$roomOnCreate$slambda).r9 = function () {
|
|
1678
1680
|
var suspendResult = this.l9_1;
|
|
@@ -1681,28 +1683,28 @@
|
|
|
1681
1683
|
var tmp = this.j9_1;
|
|
1682
1684
|
if (tmp === 0) {
|
|
1683
1685
|
this.k9_1 = 1;
|
|
1684
|
-
var users = toList(this.
|
|
1685
|
-
if (!(this.
|
|
1686
|
-
_get_logger__rkp4sl(this.
|
|
1687
|
-
this.
|
|
1686
|
+
var users = toList(this.c9s_1);
|
|
1687
|
+
if (!(this.d9s_1.playersMode.count === users.m())) {
|
|
1688
|
+
_get_logger__rkp4sl(this.e9s_1).w('GameEngine_API', 'roomOnCreate: wrong player count for game ' + this.f9s_1 + ', config = ' + this.d9s_1.toString() + ', users = ' + toString(users));
|
|
1689
|
+
this.k9s_1.dispatch(Companion_instance.fromTableWithAnalytics(new GameErrorReason(Reason_SERVER_ERROR_getInstance()), this.e9s_1.table.isGameFinished, this.e9s_1.table));
|
|
1688
1690
|
return Unit_instance;
|
|
1689
1691
|
}
|
|
1690
1692
|
var tmp_0;
|
|
1691
|
-
if (this.
|
|
1692
|
-
tmp_0 = _get_random__h29cgo(this.
|
|
1693
|
+
if (this.d9s_1.mode.shufflePlayers && this.g9s_1 == null) {
|
|
1694
|
+
tmp_0 = _get_random__h29cgo(this.e9s_1).r5w(toMutableList(users));
|
|
1693
1695
|
} else {
|
|
1694
|
-
var tmp0_safe_receiver = this.
|
|
1696
|
+
var tmp0_safe_receiver = this.g9s_1;
|
|
1695
1697
|
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
1696
1698
|
var tmp_1;
|
|
1697
|
-
if (!(previousPlayers == null) && this.
|
|
1698
|
-
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.
|
|
1699
|
+
if (!(previousPlayers == null) && this.d9s_1.playersMode.isTeamGame) {
|
|
1700
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.e9s_1);
|
|
1699
1701
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
1700
1702
|
var tmp0_iterator = previousPlayers.j();
|
|
1701
1703
|
while (tmp0_iterator.k()) {
|
|
1702
1704
|
var item = tmp0_iterator.l();
|
|
1703
1705
|
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
1704
1706
|
}
|
|
1705
|
-
var previousTeams = tmp_2.
|
|
1707
|
+
var previousTeams = tmp_2.l8m(destination);
|
|
1706
1708
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1707
1709
|
var tmp0_iterator_0 = users.j();
|
|
1708
1710
|
while (tmp0_iterator_0.k()) {
|
|
@@ -1726,19 +1728,19 @@
|
|
|
1726
1728
|
destination_1.e(destination_2);
|
|
1727
1729
|
}
|
|
1728
1730
|
var updatedTeams = destination_1;
|
|
1729
|
-
tmp_1 = _get_teamsLogicProvider__u10pm6(this.
|
|
1731
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9s_1).p8m(updatedTeams);
|
|
1730
1732
|
} else {
|
|
1731
1733
|
tmp_1 = users;
|
|
1732
1734
|
}
|
|
1733
1735
|
tmp_0 = tmp_1;
|
|
1734
1736
|
}
|
|
1735
1737
|
var updatedUsers = tmp_0;
|
|
1736
|
-
var gameCreatorUser = getPlayer(users, this.
|
|
1737
|
-
var tmp_3 = this.
|
|
1738
|
+
var gameCreatorUser = getPlayer(users, this.h9s_1);
|
|
1739
|
+
var tmp_3 = this.k9s_1.dispatch;
|
|
1738
1740
|
var tmp1_version = get_versionOrDefault(GameEngineConfig_instance);
|
|
1739
1741
|
var tmp2_users = sortWithItem(updatedUsers, gameCreatorUser);
|
|
1740
|
-
var tmp3_spectators = toList(this.
|
|
1741
|
-
tmp_3(new StartGameMechanicAction(this.
|
|
1742
|
+
var tmp3_spectators = toList(this.i9s_1);
|
|
1743
|
+
tmp_3(new StartGameMechanicAction(this.d9s_1, this.f9s_1, tmp1_version, this.h9s_1, tmp2_users, VOID, tmp3_spectators));
|
|
1742
1744
|
return Unit_instance;
|
|
1743
1745
|
} else if (tmp === 1) {
|
|
1744
1746
|
throw this.m9_1;
|
|
@@ -1749,33 +1751,33 @@
|
|
|
1749
1751
|
}
|
|
1750
1752
|
while (true);
|
|
1751
1753
|
};
|
|
1752
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
1753
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
1754
|
-
i.
|
|
1755
|
-
i.
|
|
1754
|
+
protoOf(GameServer$roomOnCreate$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1755
|
+
var i = new GameServer$roomOnCreate$slambda(this.c9s_1, this.d9s_1, this.e9s_1, this.f9s_1, this.g9s_1, this.h9s_1, this.i9s_1, completion);
|
|
1756
|
+
i.j9s_1 = $this$dispatchAsync;
|
|
1757
|
+
i.k9s_1 = store;
|
|
1756
1758
|
return i;
|
|
1757
1759
|
};
|
|
1758
1760
|
function GameServer$roomOnCreate$slambda_0($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation) {
|
|
1759
1761
|
var i = new GameServer$roomOnCreate$slambda($usersArray, $config, this$0, $roomId, $transition, $gameCreatorId, $spectators, resultContinuation);
|
|
1760
1762
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1761
|
-
return i.
|
|
1763
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1762
1764
|
};
|
|
1763
1765
|
l.$arity = 2;
|
|
1764
1766
|
return l;
|
|
1765
1767
|
}
|
|
1766
1768
|
function GameServer$roomOnContinueFromState$slambda($state, resultContinuation) {
|
|
1767
|
-
this.
|
|
1769
|
+
this.t9s_1 = $state;
|
|
1768
1770
|
CoroutineImpl.call(this, resultContinuation);
|
|
1769
1771
|
}
|
|
1770
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1771
|
-
var tmp = this.
|
|
1772
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1773
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1772
1774
|
tmp.l9_1 = Unit_instance;
|
|
1773
1775
|
tmp.m9_1 = null;
|
|
1774
1776
|
return tmp.r9();
|
|
1775
1777
|
};
|
|
1776
1778
|
protoOf(GameServer$roomOnContinueFromState$slambda).ca = function (p1, p2, $completion) {
|
|
1777
1779
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1778
|
-
return this.
|
|
1780
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1779
1781
|
};
|
|
1780
1782
|
protoOf(GameServer$roomOnContinueFromState$slambda).r9 = function () {
|
|
1781
1783
|
var suspendResult = this.l9_1;
|
|
@@ -1784,9 +1786,9 @@
|
|
|
1784
1786
|
var tmp = this.j9_1;
|
|
1785
1787
|
if (tmp === 0) {
|
|
1786
1788
|
this.k9_1 = 1;
|
|
1787
|
-
var tmp_0 = this.
|
|
1789
|
+
var tmp_0 = this.v9s_1.dispatch;
|
|
1788
1790
|
var tmp0_reason = new RestartRoundReason(null);
|
|
1789
|
-
var tmp1_table = this.
|
|
1791
|
+
var tmp1_table = this.t9s_1.table;
|
|
1790
1792
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1791
1793
|
return Unit_instance;
|
|
1792
1794
|
} else if (tmp === 1) {
|
|
@@ -1798,33 +1800,33 @@
|
|
|
1798
1800
|
}
|
|
1799
1801
|
while (true);
|
|
1800
1802
|
};
|
|
1801
|
-
protoOf(GameServer$roomOnContinueFromState$slambda).
|
|
1802
|
-
var i = new GameServer$roomOnContinueFromState$slambda(this.
|
|
1803
|
-
i.
|
|
1804
|
-
i.
|
|
1803
|
+
protoOf(GameServer$roomOnContinueFromState$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1804
|
+
var i = new GameServer$roomOnContinueFromState$slambda(this.t9s_1, completion);
|
|
1805
|
+
i.u9s_1 = $this$dispatchAsync;
|
|
1806
|
+
i.v9s_1 = store;
|
|
1805
1807
|
return i;
|
|
1806
1808
|
};
|
|
1807
1809
|
function GameServer$roomOnContinueFromState$slambda_0($state, resultContinuation) {
|
|
1808
1810
|
var i = new GameServer$roomOnContinueFromState$slambda($state, resultContinuation);
|
|
1809
1811
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1810
|
-
return i.
|
|
1812
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1811
1813
|
};
|
|
1812
1814
|
l.$arity = 2;
|
|
1813
1815
|
return l;
|
|
1814
1816
|
}
|
|
1815
1817
|
function GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation) {
|
|
1816
|
-
this.
|
|
1818
|
+
this.e9t_1 = $state;
|
|
1817
1819
|
CoroutineImpl.call(this, resultContinuation);
|
|
1818
1820
|
}
|
|
1819
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1820
|
-
var tmp = this.
|
|
1821
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1822
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1821
1823
|
tmp.l9_1 = Unit_instance;
|
|
1822
1824
|
tmp.m9_1 = null;
|
|
1823
1825
|
return tmp.r9();
|
|
1824
1826
|
};
|
|
1825
1827
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).ca = function (p1, p2, $completion) {
|
|
1826
1828
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1827
|
-
return this.
|
|
1829
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1828
1830
|
};
|
|
1829
1831
|
protoOf(GameServer$roomOnContinueFromState$slambda_1).r9 = function () {
|
|
1830
1832
|
var suspendResult = this.l9_1;
|
|
@@ -1833,10 +1835,10 @@
|
|
|
1833
1835
|
var tmp = this.j9_1;
|
|
1834
1836
|
if (tmp === 0) {
|
|
1835
1837
|
this.k9_1 = 1;
|
|
1836
|
-
var tmp0_iterator = this.
|
|
1838
|
+
var tmp0_iterator = this.e9t_1.actions.j();
|
|
1837
1839
|
while (tmp0_iterator.k()) {
|
|
1838
1840
|
var element = tmp0_iterator.l();
|
|
1839
|
-
this.
|
|
1841
|
+
this.g9t_1.dispatch(element);
|
|
1840
1842
|
}
|
|
1841
1843
|
return Unit_instance;
|
|
1842
1844
|
} else if (tmp === 1) {
|
|
@@ -1848,35 +1850,35 @@
|
|
|
1848
1850
|
}
|
|
1849
1851
|
while (true);
|
|
1850
1852
|
};
|
|
1851
|
-
protoOf(GameServer$roomOnContinueFromState$slambda_1).
|
|
1852
|
-
var i = new GameServer$roomOnContinueFromState$slambda_1(this.
|
|
1853
|
-
i.
|
|
1854
|
-
i.
|
|
1853
|
+
protoOf(GameServer$roomOnContinueFromState$slambda_1).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1854
|
+
var i = new GameServer$roomOnContinueFromState$slambda_1(this.e9t_1, completion);
|
|
1855
|
+
i.f9t_1 = $this$dispatchAsync;
|
|
1856
|
+
i.g9t_1 = store;
|
|
1855
1857
|
return i;
|
|
1856
1858
|
};
|
|
1857
1859
|
function GameServer$roomOnContinueFromState$slambda_2($state, resultContinuation) {
|
|
1858
1860
|
var i = new GameServer$roomOnContinueFromState$slambda_1($state, resultContinuation);
|
|
1859
1861
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1860
|
-
return i.
|
|
1862
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1861
1863
|
};
|
|
1862
1864
|
l.$arity = 2;
|
|
1863
1865
|
return l;
|
|
1864
1866
|
}
|
|
1865
1867
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation) {
|
|
1866
|
-
this.
|
|
1867
|
-
this.
|
|
1868
|
-
this.
|
|
1868
|
+
this.p9t_1 = $tableLite;
|
|
1869
|
+
this.q9t_1 = $roomId;
|
|
1870
|
+
this.r9t_1 = this$0;
|
|
1869
1871
|
CoroutineImpl.call(this, resultContinuation);
|
|
1870
1872
|
}
|
|
1871
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1872
|
-
var tmp = this.
|
|
1873
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1874
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1873
1875
|
tmp.l9_1 = Unit_instance;
|
|
1874
1876
|
tmp.m9_1 = null;
|
|
1875
1877
|
return tmp.r9();
|
|
1876
1878
|
};
|
|
1877
1879
|
protoOf(GameServer$roomOnContinueFromRound$slambda).ca = function (p1, p2, $completion) {
|
|
1878
1880
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1879
|
-
return this.
|
|
1881
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1880
1882
|
};
|
|
1881
1883
|
protoOf(GameServer$roomOnContinueFromRound$slambda).r9 = function () {
|
|
1882
1884
|
var suspendResult = this.l9_1;
|
|
@@ -1885,9 +1887,9 @@
|
|
|
1885
1887
|
var tmp = this.j9_1;
|
|
1886
1888
|
if (tmp === 0) {
|
|
1887
1889
|
this.k9_1 = 1;
|
|
1888
|
-
var tmp_0 = this.
|
|
1889
|
-
var tmp0_reason = new RestartRoundReason(this.
|
|
1890
|
-
var tmp1_table = Companion_instance_0.restartRound(this.
|
|
1890
|
+
var tmp_0 = this.t9t_1.dispatch;
|
|
1891
|
+
var tmp0_reason = new RestartRoundReason(this.p9t_1.gameInfo.round.roundNumber);
|
|
1892
|
+
var tmp1_table = Companion_instance_0.restartRound(this.q9t_1, _get_idsProvider__fnfajc(this.r9t_1).k6i(), get_versionOrDefault(GameEngineConfig_instance), this.p9t_1);
|
|
1891
1893
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
1892
1894
|
return Unit_instance;
|
|
1893
1895
|
} else if (tmp === 1) {
|
|
@@ -1899,16 +1901,16 @@
|
|
|
1899
1901
|
}
|
|
1900
1902
|
while (true);
|
|
1901
1903
|
};
|
|
1902
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
1903
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
1904
|
-
i.
|
|
1905
|
-
i.
|
|
1904
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1905
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.p9t_1, this.q9t_1, this.r9t_1, completion);
|
|
1906
|
+
i.s9t_1 = $this$dispatchAsync;
|
|
1907
|
+
i.t9t_1 = store;
|
|
1906
1908
|
return i;
|
|
1907
1909
|
};
|
|
1908
1910
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, $roomId, this$0, resultContinuation) {
|
|
1909
1911
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, $roomId, this$0, resultContinuation);
|
|
1910
1912
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1911
|
-
return i.
|
|
1913
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1912
1914
|
};
|
|
1913
1915
|
l.$arity = 2;
|
|
1914
1916
|
return l;
|
|
@@ -1916,15 +1918,15 @@
|
|
|
1916
1918
|
function GameServer$roomOnContinueFromRound$slambda_1(resultContinuation) {
|
|
1917
1919
|
CoroutineImpl.call(this, resultContinuation);
|
|
1918
1920
|
}
|
|
1919
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1920
|
-
var tmp = this.
|
|
1921
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1922
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1921
1923
|
tmp.l9_1 = Unit_instance;
|
|
1922
1924
|
tmp.m9_1 = null;
|
|
1923
1925
|
return tmp.r9();
|
|
1924
1926
|
};
|
|
1925
1927
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).ca = function (p1, p2, $completion) {
|
|
1926
1928
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1927
|
-
return this.
|
|
1929
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1928
1930
|
};
|
|
1929
1931
|
protoOf(GameServer$roomOnContinueFromRound$slambda_1).r9 = function () {
|
|
1930
1932
|
var suspendResult = this.l9_1;
|
|
@@ -1933,7 +1935,7 @@
|
|
|
1933
1935
|
var tmp = this.j9_1;
|
|
1934
1936
|
if (tmp === 0) {
|
|
1935
1937
|
this.k9_1 = 1;
|
|
1936
|
-
this.
|
|
1938
|
+
this.d9u_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
1937
1939
|
return Unit_instance;
|
|
1938
1940
|
} else if (tmp === 1) {
|
|
1939
1941
|
throw this.m9_1;
|
|
@@ -1944,33 +1946,33 @@
|
|
|
1944
1946
|
}
|
|
1945
1947
|
while (true);
|
|
1946
1948
|
};
|
|
1947
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda_1).
|
|
1949
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda_1).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1948
1950
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(completion);
|
|
1949
|
-
i.
|
|
1950
|
-
i.
|
|
1951
|
+
i.c9u_1 = $this$dispatchAsync;
|
|
1952
|
+
i.d9u_1 = store;
|
|
1951
1953
|
return i;
|
|
1952
1954
|
};
|
|
1953
1955
|
function GameServer$roomOnContinueFromRound$slambda_2(resultContinuation) {
|
|
1954
1956
|
var i = new GameServer$roomOnContinueFromRound$slambda_1(resultContinuation);
|
|
1955
1957
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1956
|
-
return i.
|
|
1958
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
1957
1959
|
};
|
|
1958
1960
|
l.$arity = 2;
|
|
1959
1961
|
return l;
|
|
1960
1962
|
}
|
|
1961
1963
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1962
|
-
this.
|
|
1964
|
+
this.m9u_1 = $spectators;
|
|
1963
1965
|
CoroutineImpl.call(this, resultContinuation);
|
|
1964
1966
|
}
|
|
1965
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1966
|
-
var tmp = this.
|
|
1967
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
1968
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
1967
1969
|
tmp.l9_1 = Unit_instance;
|
|
1968
1970
|
tmp.m9_1 = null;
|
|
1969
1971
|
return tmp.r9();
|
|
1970
1972
|
};
|
|
1971
1973
|
protoOf(GameServer$addSpectatorsToRoom$slambda).ca = function (p1, p2, $completion) {
|
|
1972
1974
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1973
|
-
return this.
|
|
1975
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1974
1976
|
};
|
|
1975
1977
|
protoOf(GameServer$addSpectatorsToRoom$slambda).r9 = function () {
|
|
1976
1978
|
var suspendResult = this.l9_1;
|
|
@@ -1979,7 +1981,7 @@
|
|
|
1979
1981
|
var tmp = this.j9_1;
|
|
1980
1982
|
if (tmp === 0) {
|
|
1981
1983
|
this.k9_1 = 1;
|
|
1982
|
-
this.
|
|
1984
|
+
this.o9u_1.dispatch(new AddSpectatorsAction(toList(this.m9u_1)));
|
|
1983
1985
|
return Unit_instance;
|
|
1984
1986
|
} else if (tmp === 1) {
|
|
1985
1987
|
throw this.m9_1;
|
|
@@ -1990,33 +1992,33 @@
|
|
|
1990
1992
|
}
|
|
1991
1993
|
while (true);
|
|
1992
1994
|
};
|
|
1993
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1994
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1995
|
-
i.
|
|
1996
|
-
i.
|
|
1995
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
1996
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.m9u_1, completion);
|
|
1997
|
+
i.n9u_1 = $this$dispatchAsync;
|
|
1998
|
+
i.o9u_1 = store;
|
|
1997
1999
|
return i;
|
|
1998
2000
|
};
|
|
1999
2001
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
2000
2002
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
2001
2003
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2002
|
-
return i.
|
|
2004
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
2003
2005
|
};
|
|
2004
2006
|
l.$arity = 2;
|
|
2005
2007
|
return l;
|
|
2006
2008
|
}
|
|
2007
2009
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
2008
|
-
this.
|
|
2010
|
+
this.x9u_1 = $spectators;
|
|
2009
2011
|
CoroutineImpl.call(this, resultContinuation);
|
|
2010
2012
|
}
|
|
2011
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2012
|
-
var tmp = this.
|
|
2013
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
2014
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
2013
2015
|
tmp.l9_1 = Unit_instance;
|
|
2014
2016
|
tmp.m9_1 = null;
|
|
2015
2017
|
return tmp.r9();
|
|
2016
2018
|
};
|
|
2017
2019
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).ca = function (p1, p2, $completion) {
|
|
2018
2020
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2019
|
-
return this.
|
|
2021
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2020
2022
|
};
|
|
2021
2023
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).r9 = function () {
|
|
2022
2024
|
var suspendResult = this.l9_1;
|
|
@@ -2025,7 +2027,7 @@
|
|
|
2025
2027
|
var tmp = this.j9_1;
|
|
2026
2028
|
if (tmp === 0) {
|
|
2027
2029
|
this.k9_1 = 1;
|
|
2028
|
-
this.
|
|
2030
|
+
this.z9u_1.dispatch(new RemoveSpectatorsAction(toList(this.x9u_1)));
|
|
2029
2031
|
return Unit_instance;
|
|
2030
2032
|
} else if (tmp === 1) {
|
|
2031
2033
|
throw this.m9_1;
|
|
@@ -2036,34 +2038,34 @@
|
|
|
2036
2038
|
}
|
|
2037
2039
|
while (true);
|
|
2038
2040
|
};
|
|
2039
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
2040
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
2041
|
-
i.
|
|
2042
|
-
i.
|
|
2041
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
2042
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.x9u_1, completion);
|
|
2043
|
+
i.y9u_1 = $this$dispatchAsync;
|
|
2044
|
+
i.z9u_1 = store;
|
|
2043
2045
|
return i;
|
|
2044
2046
|
};
|
|
2045
2047
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
2046
2048
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
2047
2049
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2048
|
-
return i.
|
|
2050
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
2049
2051
|
};
|
|
2050
2052
|
l.$arity = 2;
|
|
2051
2053
|
return l;
|
|
2052
2054
|
}
|
|
2053
2055
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
2054
|
-
this.
|
|
2055
|
-
this.
|
|
2056
|
+
this.i9v_1 = $playerId;
|
|
2057
|
+
this.j9v_1 = this$0;
|
|
2056
2058
|
CoroutineImpl.call(this, resultContinuation);
|
|
2057
2059
|
}
|
|
2058
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2059
|
-
var tmp = this.
|
|
2060
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
2061
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
2060
2062
|
tmp.l9_1 = Unit_instance;
|
|
2061
2063
|
tmp.m9_1 = null;
|
|
2062
2064
|
return tmp.r9();
|
|
2063
2065
|
};
|
|
2064
2066
|
protoOf(GameServer$roomRefreshPlayerState$slambda).ca = function (p1, p2, $completion) {
|
|
2065
2067
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2066
|
-
return this.
|
|
2068
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2067
2069
|
};
|
|
2068
2070
|
protoOf(GameServer$roomRefreshPlayerState$slambda).r9 = function () {
|
|
2069
2071
|
var suspendResult = this.l9_1;
|
|
@@ -2072,14 +2074,14 @@
|
|
|
2072
2074
|
var tmp = this.j9_1;
|
|
2073
2075
|
if (tmp === 0) {
|
|
2074
2076
|
this.k9_1 = 1;
|
|
2075
|
-
var table = this.
|
|
2076
|
-
var player = getPlayer(table.players, this.
|
|
2077
|
+
var table = this.l9v_1.state.s6r();
|
|
2078
|
+
var player = getPlayer(table.players, this.i9v_1);
|
|
2077
2079
|
if (player.n6x_1.y6d().p6c_1.isLive) {
|
|
2078
|
-
this.
|
|
2080
|
+
this.l9v_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.j9v_1).j8t(player, table));
|
|
2079
2081
|
} else {
|
|
2080
|
-
var tmp_0 = this.
|
|
2082
|
+
var tmp_0 = this.l9v_1.dispatch;
|
|
2081
2083
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
2082
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
2084
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.i9v_1));
|
|
2083
2085
|
}
|
|
2084
2086
|
return Unit_instance;
|
|
2085
2087
|
} else if (tmp === 1) {
|
|
@@ -2091,34 +2093,34 @@
|
|
|
2091
2093
|
}
|
|
2092
2094
|
while (true);
|
|
2093
2095
|
};
|
|
2094
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
2095
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
2096
|
-
i.
|
|
2097
|
-
i.
|
|
2096
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
2097
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.i9v_1, this.j9v_1, completion);
|
|
2098
|
+
i.k9v_1 = $this$dispatchAsync;
|
|
2099
|
+
i.l9v_1 = store;
|
|
2098
2100
|
return i;
|
|
2099
2101
|
};
|
|
2100
2102
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
2101
2103
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
2102
2104
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2103
|
-
return i.
|
|
2105
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
2104
2106
|
};
|
|
2105
2107
|
l.$arity = 2;
|
|
2106
2108
|
return l;
|
|
2107
2109
|
}
|
|
2108
2110
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
2109
|
-
this.
|
|
2110
|
-
this.
|
|
2111
|
+
this.u9v_1 = this$0;
|
|
2112
|
+
this.v9v_1 = $newRid;
|
|
2111
2113
|
CoroutineImpl.call(this, resultContinuation);
|
|
2112
2114
|
}
|
|
2113
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2114
|
-
var tmp = this.
|
|
2115
|
+
protoOf(GameServer$roomOnDelete$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
2116
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
2115
2117
|
tmp.l9_1 = Unit_instance;
|
|
2116
2118
|
tmp.m9_1 = null;
|
|
2117
2119
|
return tmp.r9();
|
|
2118
2120
|
};
|
|
2119
2121
|
protoOf(GameServer$roomOnDelete$slambda).ca = function (p1, p2, $completion) {
|
|
2120
2122
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2121
|
-
return this.
|
|
2123
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2122
2124
|
};
|
|
2123
2125
|
protoOf(GameServer$roomOnDelete$slambda).r9 = function () {
|
|
2124
2126
|
var suspendResult = this.l9_1;
|
|
@@ -2127,27 +2129,27 @@
|
|
|
2127
2129
|
var tmp = this.j9_1;
|
|
2128
2130
|
if (tmp === 0) {
|
|
2129
2131
|
this.k9_1 = 1;
|
|
2130
|
-
var it = this.
|
|
2132
|
+
var it = this.u9v_1.v6b().e6r_1;
|
|
2131
2133
|
var tmp_0;
|
|
2132
2134
|
if (it == null) {
|
|
2133
|
-
_get_logger__rkp4sl(this.
|
|
2135
|
+
_get_logger__rkp4sl(this.u9v_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
2134
2136
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
2135
2137
|
} else {
|
|
2136
2138
|
tmp_0 = it;
|
|
2137
2139
|
}
|
|
2138
2140
|
var terminationState = tmp_0;
|
|
2139
|
-
var gameTransition = terminationState.
|
|
2141
|
+
var gameTransition = terminationState.n8x_1;
|
|
2140
2142
|
var tmp_1;
|
|
2141
2143
|
if (gameTransition instanceof GameToRoomTransition) {
|
|
2142
|
-
var tmp0_elvis_lhs = this.
|
|
2144
|
+
var tmp0_elvis_lhs = this.v9v_1;
|
|
2143
2145
|
tmp_1 = gameTransition.copy(tmp0_elvis_lhs == null ? gameTransition.roomId : tmp0_elvis_lhs);
|
|
2144
2146
|
} else {
|
|
2145
2147
|
tmp_1 = gameTransition;
|
|
2146
2148
|
}
|
|
2147
2149
|
var transition = tmp_1;
|
|
2148
|
-
var tmp_2 = this.
|
|
2149
|
-
var tmp0_reason = terminationState.
|
|
2150
|
-
var tmp1_isGameFinished = this.
|
|
2150
|
+
var tmp_2 = this.x9v_1.dispatch;
|
|
2151
|
+
var tmp0_reason = terminationState.m8x_1;
|
|
2152
|
+
var tmp1_isGameFinished = this.u9v_1.v6b().s6r().isGameFinished;
|
|
2151
2153
|
tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
|
|
2152
2154
|
return Unit_instance;
|
|
2153
2155
|
} else if (tmp === 1) {
|
|
@@ -2159,33 +2161,33 @@
|
|
|
2159
2161
|
}
|
|
2160
2162
|
while (true);
|
|
2161
2163
|
};
|
|
2162
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
2163
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
2164
|
-
i.
|
|
2165
|
-
i.
|
|
2164
|
+
protoOf(GameServer$roomOnDelete$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
2165
|
+
var i = new GameServer$roomOnDelete$slambda(this.u9v_1, this.v9v_1, completion);
|
|
2166
|
+
i.w9v_1 = $this$dispatchAsync;
|
|
2167
|
+
i.x9v_1 = store;
|
|
2166
2168
|
return i;
|
|
2167
2169
|
};
|
|
2168
2170
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
2169
2171
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
2170
2172
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2171
|
-
return i.
|
|
2173
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
2172
2174
|
};
|
|
2173
2175
|
l.$arity = 2;
|
|
2174
2176
|
return l;
|
|
2175
2177
|
}
|
|
2176
2178
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
2177
|
-
this.
|
|
2179
|
+
this.g9w_1 = $enabled;
|
|
2178
2180
|
CoroutineImpl.call(this, resultContinuation);
|
|
2179
2181
|
}
|
|
2180
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2181
|
-
var tmp = this.
|
|
2182
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
2183
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
2182
2184
|
tmp.l9_1 = Unit_instance;
|
|
2183
2185
|
tmp.m9_1 = null;
|
|
2184
2186
|
return tmp.r9();
|
|
2185
2187
|
};
|
|
2186
2188
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).ca = function (p1, p2, $completion) {
|
|
2187
2189
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2188
|
-
return this.
|
|
2190
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2189
2191
|
};
|
|
2190
2192
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).r9 = function () {
|
|
2191
2193
|
var suspendResult = this.l9_1;
|
|
@@ -2194,7 +2196,7 @@
|
|
|
2194
2196
|
var tmp = this.j9_1;
|
|
2195
2197
|
if (tmp === 0) {
|
|
2196
2198
|
this.k9_1 = 1;
|
|
2197
|
-
this.
|
|
2199
|
+
this.i9w_1.dispatch(new UpdateServerConfigAction(get_serverStatePayload_0(this.i9w_1.state).config.copy(VOID, this.g9w_1)));
|
|
2198
2200
|
return Unit_instance;
|
|
2199
2201
|
} else if (tmp === 1) {
|
|
2200
2202
|
throw this.m9_1;
|
|
@@ -2205,35 +2207,35 @@
|
|
|
2205
2207
|
}
|
|
2206
2208
|
while (true);
|
|
2207
2209
|
};
|
|
2208
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
2209
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
2210
|
-
i.
|
|
2211
|
-
i.
|
|
2210
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
2211
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.g9w_1, completion);
|
|
2212
|
+
i.h9w_1 = $this$dispatchAsync;
|
|
2213
|
+
i.i9w_1 = store;
|
|
2212
2214
|
return i;
|
|
2213
2215
|
};
|
|
2214
2216
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
2215
2217
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
2216
2218
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2217
|
-
return i.
|
|
2219
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
2218
2220
|
};
|
|
2219
2221
|
l.$arity = 2;
|
|
2220
2222
|
return l;
|
|
2221
2223
|
}
|
|
2222
2224
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2225
|
+
this.r9w_1 = $reason;
|
|
2226
|
+
this.s9w_1 = this$0;
|
|
2227
|
+
this.t9w_1 = $roomId;
|
|
2226
2228
|
CoroutineImpl.call(this, resultContinuation);
|
|
2227
2229
|
}
|
|
2228
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2229
|
-
var tmp = this.
|
|
2230
|
+
protoOf(GameServer$shutdown$slambda).j9q = function ($this$dispatchAsync, store, $completion) {
|
|
2231
|
+
var tmp = this.k9q($this$dispatchAsync, store, $completion);
|
|
2230
2232
|
tmp.l9_1 = Unit_instance;
|
|
2231
2233
|
tmp.m9_1 = null;
|
|
2232
2234
|
return tmp.r9();
|
|
2233
2235
|
};
|
|
2234
2236
|
protoOf(GameServer$shutdown$slambda).ca = function (p1, p2, $completion) {
|
|
2235
2237
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
2236
|
-
return this.
|
|
2238
|
+
return this.j9q(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
2237
2239
|
};
|
|
2238
2240
|
protoOf(GameServer$shutdown$slambda).r9 = function () {
|
|
2239
2241
|
var suspendResult = this.l9_1;
|
|
@@ -2242,11 +2244,11 @@
|
|
|
2242
2244
|
var tmp = this.j9_1;
|
|
2243
2245
|
if (tmp === 0) {
|
|
2244
2246
|
this.k9_1 = 1;
|
|
2245
|
-
var state = this.
|
|
2247
|
+
var state = this.v9w_1.store.state;
|
|
2246
2248
|
if (state.t6r()) {
|
|
2247
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
2249
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.r9w_1, get_serverShutdownReasonMapping());
|
|
2248
2250
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
2249
|
-
var tmp_0 = this.
|
|
2251
|
+
var tmp_0 = this.v9w_1.dispatch;
|
|
2250
2252
|
var tmp_1 = Companion_instance;
|
|
2251
2253
|
var tmp_2;
|
|
2252
2254
|
switch (shutdownReason.r2_1) {
|
|
@@ -2260,10 +2262,10 @@
|
|
|
2260
2262
|
noWhenBranchMatchedException();
|
|
2261
2263
|
break;
|
|
2262
2264
|
}
|
|
2263
|
-
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.
|
|
2265
|
+
tmp_0(tmp_1.fromTableWithAnalytics(tmp_2, this.s9w_1.table.isGameFinished, this.s9w_1.table));
|
|
2264
2266
|
} else {
|
|
2265
|
-
_get_logger__rkp4sl(this.
|
|
2266
|
-
this.
|
|
2267
|
+
_get_logger__rkp4sl(this.s9w_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.t9w_1);
|
|
2268
|
+
this.v9w_1.dispatch(new ClearAction());
|
|
2267
2269
|
}
|
|
2268
2270
|
return Unit_instance;
|
|
2269
2271
|
} else if (tmp === 1) {
|
|
@@ -2275,16 +2277,16 @@
|
|
|
2275
2277
|
}
|
|
2276
2278
|
while (true);
|
|
2277
2279
|
};
|
|
2278
|
-
protoOf(GameServer$shutdown$slambda).
|
|
2279
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
2280
|
-
i.
|
|
2281
|
-
i.
|
|
2280
|
+
protoOf(GameServer$shutdown$slambda).k9q = function ($this$dispatchAsync, store, completion) {
|
|
2281
|
+
var i = new GameServer$shutdown$slambda(this.r9w_1, this.s9w_1, this.t9w_1, completion);
|
|
2282
|
+
i.u9w_1 = $this$dispatchAsync;
|
|
2283
|
+
i.v9w_1 = store;
|
|
2282
2284
|
return i;
|
|
2283
2285
|
};
|
|
2284
2286
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
2285
2287
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
2286
2288
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
2287
|
-
return i.
|
|
2289
|
+
return i.j9q($this$dispatchAsync, store, $completion);
|
|
2288
2290
|
};
|
|
2289
2291
|
l.$arity = 2;
|
|
2290
2292
|
return l;
|
|
@@ -2313,46 +2315,46 @@
|
|
|
2313
2315
|
// Inline function 'org.kodein.type.generic' call
|
|
2314
2316
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2315
2317
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2316
|
-
tmp_1.
|
|
2318
|
+
tmp_1.s9n_1 = Instance(di, tmp$ret$2, null).d64(this, logger$factory());
|
|
2317
2319
|
var tmp_3 = this;
|
|
2318
2320
|
// Inline function 'org.kodein.di.instance' call
|
|
2319
2321
|
// Inline function 'org.kodein.type.generic' call
|
|
2320
2322
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2321
2323
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2322
|
-
tmp_3.
|
|
2324
|
+
tmp_3.t9n_1 = Instance(di, tmp$ret$4, null).d64(this, toClientEventsObserver$factory());
|
|
2323
2325
|
var tmp_5 = this;
|
|
2324
2326
|
// Inline function 'org.kodein.di.instance' call
|
|
2325
2327
|
// Inline function 'org.kodein.type.generic' call
|
|
2326
2328
|
var tmp_6 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
2327
2329
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2328
|
-
tmp_5.
|
|
2330
|
+
tmp_5.u9n_1 = Instance(di, tmp$ret$6, null).d64(this, fromClientEventsObserver$factory());
|
|
2329
2331
|
var tmp_7 = this;
|
|
2330
2332
|
// Inline function 'org.kodein.di.instance' call
|
|
2331
2333
|
// Inline function 'org.kodein.type.generic' call
|
|
2332
2334
|
var tmp_8 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2333
2335
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2334
|
-
tmp_7.
|
|
2336
|
+
tmp_7.v9n_1 = Instance(di, tmp$ret$8, null).d64(this, playerConnectionInteractor$factory());
|
|
2335
2337
|
var tmp_9 = this;
|
|
2336
2338
|
// Inline function 'org.kodein.di.instance' call
|
|
2337
2339
|
// Inline function 'org.kodein.type.generic' call
|
|
2338
2340
|
var tmp_10 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
2339
2341
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2340
|
-
tmp_9.
|
|
2342
|
+
tmp_9.w9n_1 = Instance(di, tmp$ret$10, null).d64(this, teamsLogicProvider$factory());
|
|
2341
2343
|
var tmp_11 = this;
|
|
2342
|
-
tmp_11.
|
|
2344
|
+
tmp_11.x9n_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
2343
2345
|
var tmp_12 = this;
|
|
2344
2346
|
// Inline function 'org.kodein.di.instance' call
|
|
2345
2347
|
// Inline function 'org.kodein.type.generic' call
|
|
2346
2348
|
var tmp_13 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2347
2349
|
var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE();
|
|
2348
|
-
tmp_12.
|
|
2350
|
+
tmp_12.y9n_1 = Instance(di, tmp$ret$12, null).d64(this, idsProvider$factory());
|
|
2349
2351
|
var tmp_14 = this;
|
|
2350
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
2351
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
2352
|
-
tmp_14.
|
|
2352
|
+
var tmp0_externalMiddlewares = plus(storeContract.y91(), externalMiddlewares);
|
|
2353
|
+
var tmp1_externalReducers = plus(storeContract.x91(), externalReducers);
|
|
2354
|
+
tmp_14.z9n_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
2353
2355
|
}
|
|
2354
2356
|
protoOf(GameServer).r6q = function () {
|
|
2355
|
-
return this.
|
|
2357
|
+
return this.z9n_1;
|
|
2356
2358
|
};
|
|
2357
2359
|
protoOf(GameServer).g5l = function () {
|
|
2358
2360
|
return this.v6b().s6r().id;
|
|
@@ -2380,55 +2382,55 @@
|
|
|
2380
2382
|
};
|
|
2381
2383
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
2382
2384
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
2383
|
-
this.
|
|
2385
|
+
this.z9n_1.r6r(GameServer$fromClientEvent$slambda_0(action, null));
|
|
2384
2386
|
};
|
|
2385
2387
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
2386
2388
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
2387
|
-
this.
|
|
2389
|
+
this.z9n_1.r6r(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
2388
2390
|
};
|
|
2389
2391
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
2390
2392
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
2391
|
-
this.
|
|
2393
|
+
this.z9n_1.r6r(GameServer$playerLive$slambda_0(this, playerId, null));
|
|
2392
2394
|
};
|
|
2393
2395
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
2394
2396
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
2395
|
-
this.
|
|
2397
|
+
this.z9n_1.r6r(GameServer$playerLeft$slambda_0(this, playerId, null));
|
|
2396
2398
|
};
|
|
2397
|
-
protoOf(GameServer).
|
|
2399
|
+
protoOf(GameServer).w9w = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
2398
2400
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnCreate: ' + roomId + ', gameCreatorId = ' + gameCreatorId + ', transition = ' + toString_0(transition));
|
|
2399
|
-
this.
|
|
2401
|
+
this.z9n_1.r6r(GameServer$roomOnCreate$slambda_0(usersArray, config, this, roomId, transition, gameCreatorId, spectators, null));
|
|
2400
2402
|
};
|
|
2401
2403
|
protoOf(GameServer).roomOnContinueFromState = function (roomId, state) {
|
|
2402
2404
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromState: ' + roomId);
|
|
2403
|
-
this.
|
|
2404
|
-
this.
|
|
2405
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromState$slambda_0(state, null));
|
|
2406
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromState$slambda_2(state, null));
|
|
2405
2407
|
};
|
|
2406
2408
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
2407
2409
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnContinueFromRound: ' + roomId + ', round = ' + tableLite.gameInfo.round.roundNumber);
|
|
2408
|
-
this.
|
|
2409
|
-
this.
|
|
2410
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromRound$slambda_0(tableLite, roomId, this, null));
|
|
2411
|
+
this.z9n_1.r6r(GameServer$roomOnContinueFromRound$slambda_2(null));
|
|
2410
2412
|
};
|
|
2411
2413
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
2412
|
-
this.
|
|
2414
|
+
this.z9n_1.r6r(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
2413
2415
|
};
|
|
2414
2416
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
2415
|
-
this.
|
|
2417
|
+
this.z9n_1.r6r(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
2416
2418
|
};
|
|
2417
2419
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
2418
2420
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
2419
|
-
this.
|
|
2421
|
+
this.z9n_1.r6r(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
2420
2422
|
};
|
|
2421
|
-
protoOf(GameServer).
|
|
2423
|
+
protoOf(GameServer).x9w = function (newRid) {
|
|
2422
2424
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomOnDelete: ' + newRid);
|
|
2423
|
-
this.
|
|
2425
|
+
this.z9n_1.r6r(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
2424
2426
|
};
|
|
2425
2427
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
2426
2428
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'setCanStartNewGameEnabled: ' + enabled);
|
|
2427
|
-
this.
|
|
2429
|
+
this.z9n_1.r6r(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
2428
2430
|
};
|
|
2429
|
-
protoOf(GameServer).
|
|
2431
|
+
protoOf(GameServer).y9w = function (reason, roomId) {
|
|
2430
2432
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'shutdown: ' + reason + ', ' + roomId);
|
|
2431
|
-
this.
|
|
2433
|
+
this.z9n_1.r6r(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
2432
2434
|
};
|
|
2433
2435
|
protoOf(GameServer).clear = function () {
|
|
2434
2436
|
return this.d2();
|
|
@@ -2544,10 +2546,10 @@
|
|
|
2544
2546
|
this.fromRound = fromRound;
|
|
2545
2547
|
this.canStartNewGame = canStartNewGame;
|
|
2546
2548
|
}
|
|
2547
|
-
protoOf(ServerConfig).
|
|
2549
|
+
protoOf(ServerConfig).z9w = function () {
|
|
2548
2550
|
return this.fromRound;
|
|
2549
2551
|
};
|
|
2550
|
-
protoOf(ServerConfig).
|
|
2552
|
+
protoOf(ServerConfig).a9x = function () {
|
|
2551
2553
|
return this.canStartNewGame;
|
|
2552
2554
|
};
|
|
2553
2555
|
protoOf(ServerConfig).ue = function () {
|
|
@@ -2556,13 +2558,13 @@
|
|
|
2556
2558
|
protoOf(ServerConfig).ve = function () {
|
|
2557
2559
|
return this.canStartNewGame;
|
|
2558
2560
|
};
|
|
2559
|
-
protoOf(ServerConfig).
|
|
2561
|
+
protoOf(ServerConfig).b9x = function (fromRound, canStartNewGame) {
|
|
2560
2562
|
return new ServerConfig(fromRound, canStartNewGame);
|
|
2561
2563
|
};
|
|
2562
2564
|
protoOf(ServerConfig).copy = function (fromRound, canStartNewGame, $super) {
|
|
2563
2565
|
fromRound = fromRound === VOID ? this.fromRound : fromRound;
|
|
2564
2566
|
canStartNewGame = canStartNewGame === VOID ? this.canStartNewGame : canStartNewGame;
|
|
2565
|
-
return this.
|
|
2567
|
+
return this.b9x(fromRound, canStartNewGame);
|
|
2566
2568
|
};
|
|
2567
2569
|
protoOf(ServerConfig).toString = function () {
|
|
2568
2570
|
return 'ServerConfig(fromRound=' + this.fromRound + ', canStartNewGame=' + this.canStartNewGame + ')';
|
|
@@ -2595,12 +2597,12 @@
|
|
|
2595
2597
|
protoOf(TableStateUpdate).ue = function () {
|
|
2596
2598
|
return this.table;
|
|
2597
2599
|
};
|
|
2598
|
-
protoOf(TableStateUpdate).
|
|
2600
|
+
protoOf(TableStateUpdate).c9x = function (table) {
|
|
2599
2601
|
return new TableStateUpdate(table);
|
|
2600
2602
|
};
|
|
2601
2603
|
protoOf(TableStateUpdate).copy = function (table, $super) {
|
|
2602
2604
|
table = table === VOID ? this.table : table;
|
|
2603
|
-
return this.
|
|
2605
|
+
return this.c9x(table);
|
|
2604
2606
|
};
|
|
2605
2607
|
protoOf(TableStateUpdate).toString = function () {
|
|
2606
2608
|
return 'TableStateUpdate(table=' + this.table.toString() + ')';
|
|
@@ -2621,18 +2623,18 @@
|
|
|
2621
2623
|
function ActionsStateUpdate(actions) {
|
|
2622
2624
|
this.actions = actions;
|
|
2623
2625
|
}
|
|
2624
|
-
protoOf(ActionsStateUpdate).
|
|
2626
|
+
protoOf(ActionsStateUpdate).d8f = function () {
|
|
2625
2627
|
return this.actions;
|
|
2626
2628
|
};
|
|
2627
2629
|
protoOf(ActionsStateUpdate).ue = function () {
|
|
2628
2630
|
return this.actions;
|
|
2629
2631
|
};
|
|
2630
|
-
protoOf(ActionsStateUpdate).
|
|
2632
|
+
protoOf(ActionsStateUpdate).d9x = function (actions) {
|
|
2631
2633
|
return new ActionsStateUpdate(actions);
|
|
2632
2634
|
};
|
|
2633
2635
|
protoOf(ActionsStateUpdate).copy = function (actions, $super) {
|
|
2634
2636
|
actions = actions === VOID ? this.actions : actions;
|
|
2635
|
-
return this.
|
|
2637
|
+
return this.d9x(actions);
|
|
2636
2638
|
};
|
|
2637
2639
|
protoOf(ActionsStateUpdate).toString = function () {
|
|
2638
2640
|
return 'ActionsStateUpdate(actions=' + toString(this.actions) + ')';
|
|
@@ -2878,18 +2880,18 @@
|
|
|
2878
2880
|
function ToClientEventsObserver() {
|
|
2879
2881
|
}
|
|
2880
2882
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
2881
|
-
this.
|
|
2882
|
-
this.
|
|
2883
|
+
this.n9x_1 = this$0;
|
|
2884
|
+
this.o9x_1 = $actions;
|
|
2883
2885
|
CoroutineImpl.call(this, resultContinuation);
|
|
2884
2886
|
}
|
|
2885
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2886
|
-
var tmp = this.
|
|
2887
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).v9x = function ($this$flow, $completion) {
|
|
2888
|
+
var tmp = this.w9x($this$flow, $completion);
|
|
2887
2889
|
tmp.l9_1 = Unit_instance;
|
|
2888
2890
|
tmp.m9_1 = null;
|
|
2889
2891
|
return tmp.r9();
|
|
2890
2892
|
};
|
|
2891
2893
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).ba = function (p1, $completion) {
|
|
2892
|
-
return this.
|
|
2894
|
+
return this.v9x((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
2893
2895
|
};
|
|
2894
2896
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).r9 = function () {
|
|
2895
2897
|
var suspendResult = this.l9_1;
|
|
@@ -2900,23 +2902,23 @@
|
|
|
2900
2902
|
case 0:
|
|
2901
2903
|
this.k9_1 = 4;
|
|
2902
2904
|
var tmp_0 = this;
|
|
2903
|
-
tmp_0.
|
|
2905
|
+
tmp_0.q9x_1 = this.n9x_1.b9y_1;
|
|
2904
2906
|
var tmp_1 = this;
|
|
2905
|
-
tmp_1.
|
|
2906
|
-
this.
|
|
2907
|
+
tmp_1.r9x_1 = transformToEmits(this.n9x_1, this.o9x_1);
|
|
2908
|
+
this.s9x_1 = this.r9x_1.j();
|
|
2907
2909
|
this.j9_1 = 1;
|
|
2908
2910
|
continue $sm;
|
|
2909
2911
|
case 1:
|
|
2910
|
-
if (!this.
|
|
2912
|
+
if (!this.s9x_1.k()) {
|
|
2911
2913
|
this.j9_1 = 3;
|
|
2912
2914
|
continue $sm;
|
|
2913
2915
|
}
|
|
2914
2916
|
|
|
2915
|
-
this.
|
|
2917
|
+
this.t9x_1 = this.s9x_1.l();
|
|
2916
2918
|
var tmp_2 = this;
|
|
2917
|
-
tmp_2.
|
|
2919
|
+
tmp_2.u9x_1 = this.t9x_1;
|
|
2918
2920
|
this.j9_1 = 2;
|
|
2919
|
-
suspendResult = this.
|
|
2921
|
+
suspendResult = this.p9x_1.r18(this.u9x_1, this);
|
|
2920
2922
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2921
2923
|
return suspendResult;
|
|
2922
2924
|
}
|
|
@@ -2927,10 +2929,10 @@
|
|
|
2927
2929
|
continue $sm;
|
|
2928
2930
|
case 3:
|
|
2929
2931
|
l$ret$1: do {
|
|
2930
|
-
var this_0 = this.
|
|
2932
|
+
var this_0 = this.n9x_1.a9y_1;
|
|
2931
2933
|
while (true) {
|
|
2932
2934
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2933
|
-
var upd = cur - this.
|
|
2935
|
+
var upd = cur - this.o9x_1.m() | 0;
|
|
2934
2936
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
2935
2937
|
break l$ret$1;
|
|
2936
2938
|
}
|
|
@@ -2952,15 +2954,15 @@
|
|
|
2952
2954
|
}
|
|
2953
2955
|
while (true);
|
|
2954
2956
|
};
|
|
2955
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).
|
|
2956
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.
|
|
2957
|
-
i.
|
|
2957
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda$slambda).w9x = function ($this$flow, completion) {
|
|
2958
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this.n9x_1, this.o9x_1, completion);
|
|
2959
|
+
i.p9x_1 = $this$flow;
|
|
2958
2960
|
return i;
|
|
2959
2961
|
};
|
|
2960
2962
|
function ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
2961
2963
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
2962
2964
|
var l = function ($this$flow, $completion) {
|
|
2963
|
-
return i.
|
|
2965
|
+
return i.v9x($this$flow, $completion);
|
|
2964
2966
|
};
|
|
2965
2967
|
l.$arity = 1;
|
|
2966
2968
|
return l;
|
|
@@ -3033,29 +3035,29 @@
|
|
|
3033
3035
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
3034
3036
|
}
|
|
3035
3037
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
3036
|
-
var tmp = $this.
|
|
3038
|
+
var tmp = $this.z9x_1.k6i();
|
|
3037
3039
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3038
|
-
var this_0 = _this__u8e3s4.
|
|
3040
|
+
var this_0 = _this__u8e3s4.e9y_1;
|
|
3039
3041
|
var tmp_0 = copyToArray(this_0);
|
|
3040
3042
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3041
|
-
var this_1 = _this__u8e3s4.
|
|
3043
|
+
var this_1 = _this__u8e3s4.f9y_1;
|
|
3042
3044
|
var tmp$ret$1 = copyToArray(this_1);
|
|
3043
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
3045
|
+
return new ActionDeliveryPayload(_this__u8e3s4.d9y_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.g9y_1);
|
|
3044
3046
|
}
|
|
3045
3047
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
3046
|
-
this.
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3049
|
-
this.
|
|
3048
|
+
this.d9y_1 = tableId;
|
|
3049
|
+
this.e9y_1 = includePlayers;
|
|
3050
|
+
this.f9y_1 = excludePlayers;
|
|
3051
|
+
this.g9y_1 = deliveryType;
|
|
3050
3052
|
}
|
|
3051
3053
|
protoOf(GroupKey).toString = function () {
|
|
3052
|
-
return 'GroupKey(tableId=' + this.
|
|
3054
|
+
return 'GroupKey(tableId=' + this.d9y_1 + ', includePlayers=' + toString(this.e9y_1) + ', excludePlayers=' + toString(this.f9y_1) + ', deliveryType=' + this.g9y_1.toString() + ')';
|
|
3053
3055
|
};
|
|
3054
3056
|
protoOf(GroupKey).hashCode = function () {
|
|
3055
|
-
var result = getStringHashCode(this.
|
|
3056
|
-
result = imul(result, 31) + hashCode(this.
|
|
3057
|
-
result = imul(result, 31) + hashCode(this.
|
|
3058
|
-
result = imul(result, 31) + this.
|
|
3057
|
+
var result = getStringHashCode(this.d9y_1);
|
|
3058
|
+
result = imul(result, 31) + hashCode(this.e9y_1) | 0;
|
|
3059
|
+
result = imul(result, 31) + hashCode(this.f9y_1) | 0;
|
|
3060
|
+
result = imul(result, 31) + this.g9y_1.hashCode() | 0;
|
|
3059
3061
|
return result;
|
|
3060
3062
|
};
|
|
3061
3063
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -3064,35 +3066,35 @@
|
|
|
3064
3066
|
if (!(other instanceof GroupKey))
|
|
3065
3067
|
return false;
|
|
3066
3068
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
3067
|
-
if (!(this.
|
|
3069
|
+
if (!(this.d9y_1 === tmp0_other_with_cast.d9y_1))
|
|
3068
3070
|
return false;
|
|
3069
|
-
if (!equals(this.
|
|
3071
|
+
if (!equals(this.e9y_1, tmp0_other_with_cast.e9y_1))
|
|
3070
3072
|
return false;
|
|
3071
|
-
if (!equals(this.
|
|
3073
|
+
if (!equals(this.f9y_1, tmp0_other_with_cast.f9y_1))
|
|
3072
3074
|
return false;
|
|
3073
|
-
if (!this.
|
|
3075
|
+
if (!this.g9y_1.equals(tmp0_other_with_cast.g9y_1))
|
|
3074
3076
|
return false;
|
|
3075
3077
|
return true;
|
|
3076
3078
|
};
|
|
3077
3079
|
function Companion_1() {
|
|
3078
|
-
this.
|
|
3080
|
+
this.h9y_1 = 6;
|
|
3079
3081
|
}
|
|
3080
3082
|
var Companion_instance_9;
|
|
3081
3083
|
function Companion_getInstance_2() {
|
|
3082
3084
|
return Companion_instance_9;
|
|
3083
3085
|
}
|
|
3084
3086
|
function ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation) {
|
|
3085
|
-
this.
|
|
3087
|
+
this.q9y_1 = this$0;
|
|
3086
3088
|
CoroutineImpl.call(this, resultContinuation);
|
|
3087
3089
|
}
|
|
3088
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3089
|
-
var tmp = this.
|
|
3090
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).s9y = function (actions, $completion) {
|
|
3091
|
+
var tmp = this.t9y(actions, $completion);
|
|
3090
3092
|
tmp.l9_1 = Unit_instance;
|
|
3091
3093
|
tmp.m9_1 = null;
|
|
3092
3094
|
return tmp.r9();
|
|
3093
3095
|
};
|
|
3094
3096
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).ba = function (p1, $completion) {
|
|
3095
|
-
return this.
|
|
3097
|
+
return this.s9y((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
3096
3098
|
};
|
|
3097
3099
|
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).r9 = function () {
|
|
3098
3100
|
var suspendResult = this.l9_1;
|
|
@@ -3101,7 +3103,7 @@
|
|
|
3101
3103
|
var tmp = this.j9_1;
|
|
3102
3104
|
if (tmp === 0) {
|
|
3103
3105
|
this.k9_1 = 1;
|
|
3104
|
-
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.
|
|
3106
|
+
return flow(ToClientEventsObserverImpl$observeEvents$slambda$slambda_0(this.q9y_1, this.r9y_1, null));
|
|
3105
3107
|
} else if (tmp === 1) {
|
|
3106
3108
|
throw this.m9_1;
|
|
3107
3109
|
}
|
|
@@ -3111,23 +3113,23 @@
|
|
|
3111
3113
|
}
|
|
3112
3114
|
while (true);
|
|
3113
3115
|
};
|
|
3114
|
-
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).
|
|
3115
|
-
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.
|
|
3116
|
-
i.
|
|
3116
|
+
protoOf(ToClientEventsObserverImpl$observeEvents$slambda).t9y = function (actions, completion) {
|
|
3117
|
+
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this.q9y_1, completion);
|
|
3118
|
+
i.r9y_1 = actions;
|
|
3117
3119
|
return i;
|
|
3118
3120
|
};
|
|
3119
3121
|
function ToClientEventsObserverImpl$observeEvents$slambda_0(this$0, resultContinuation) {
|
|
3120
3122
|
var i = new ToClientEventsObserverImpl$observeEvents$slambda(this$0, resultContinuation);
|
|
3121
3123
|
var l = function (actions, $completion) {
|
|
3122
|
-
return i.
|
|
3124
|
+
return i.s9y(actions, $completion);
|
|
3123
3125
|
};
|
|
3124
3126
|
l.$arity = 1;
|
|
3125
3127
|
return l;
|
|
3126
3128
|
}
|
|
3127
3129
|
function $sentEventCOROUTINE$3(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
3128
3130
|
CoroutineImpl.call(this, resultContinuation);
|
|
3129
|
-
this.
|
|
3130
|
-
this.
|
|
3131
|
+
this.c9z_1 = _this__u8e3s4;
|
|
3132
|
+
this.d9z_1 = fromEvent;
|
|
3131
3133
|
}
|
|
3132
3134
|
protoOf($sentEventCOROUTINE$3).r9 = function () {
|
|
3133
3135
|
var suspendResult = this.l9_1;
|
|
@@ -3138,9 +3140,9 @@
|
|
|
3138
3140
|
case 0:
|
|
3139
3141
|
this.k9_1 = 2;
|
|
3140
3142
|
var tmp_0 = this;
|
|
3141
|
-
tmp_0.
|
|
3143
|
+
tmp_0.e9z_1 = this.c9z_1.b9y_1;
|
|
3142
3144
|
l$ret$1: do {
|
|
3143
|
-
var this_0 = this.
|
|
3145
|
+
var this_0 = this.c9z_1.a9y_1;
|
|
3144
3146
|
while (true) {
|
|
3145
3147
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
3146
3148
|
var upd = cur + 1 | 0;
|
|
@@ -3151,7 +3153,7 @@
|
|
|
3151
3153
|
}
|
|
3152
3154
|
while (false);
|
|
3153
3155
|
this.j9_1 = 1;
|
|
3154
|
-
suspendResult = this.
|
|
3156
|
+
suspendResult = this.c9z_1.c9y_1.r18(this.d9z_1, this);
|
|
3155
3157
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3156
3158
|
return suspendResult;
|
|
3157
3159
|
}
|
|
@@ -3175,7 +3177,7 @@
|
|
|
3175
3177
|
};
|
|
3176
3178
|
function $waitForCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
3177
3179
|
CoroutineImpl.call(this, resultContinuation);
|
|
3178
|
-
this.
|
|
3180
|
+
this.n9z_1 = _this__u8e3s4;
|
|
3179
3181
|
}
|
|
3180
3182
|
protoOf($waitForCOROUTINE$4).r9 = function () {
|
|
3181
3183
|
var suspendResult = this.l9_1;
|
|
@@ -3186,12 +3188,12 @@
|
|
|
3186
3188
|
case 0:
|
|
3187
3189
|
this.k9_1 = 5;
|
|
3188
3190
|
var tmp_0 = this;
|
|
3189
|
-
tmp_0.
|
|
3190
|
-
this.
|
|
3191
|
+
tmp_0.o9z_1 = this.n9z_1.b9y_1;
|
|
3192
|
+
this.p9z_1 = 0;
|
|
3191
3193
|
this.j9_1 = 1;
|
|
3192
3194
|
continue $sm;
|
|
3193
3195
|
case 1:
|
|
3194
|
-
if (!!(this.
|
|
3196
|
+
if (!!(this.n9z_1.a9y_1.kotlinx$atomicfu$value === 0)) {
|
|
3195
3197
|
this.j9_1 = 4;
|
|
3196
3198
|
continue $sm;
|
|
3197
3199
|
}
|
|
@@ -3204,9 +3206,9 @@
|
|
|
3204
3206
|
|
|
3205
3207
|
continue $sm;
|
|
3206
3208
|
case 2:
|
|
3207
|
-
this.
|
|
3208
|
-
if (this.
|
|
3209
|
-
this.
|
|
3209
|
+
this.p9z_1 = this.p9z_1 + 1 | 0;
|
|
3210
|
+
if (this.p9z_1 > 6) {
|
|
3211
|
+
this.n9z_1.y9x_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.n9z_1.a9y_1.kotlinx$atomicfu$value);
|
|
3210
3212
|
this.j9_1 = 4;
|
|
3211
3213
|
continue $sm;
|
|
3212
3214
|
} else {
|
|
@@ -3234,42 +3236,42 @@
|
|
|
3234
3236
|
while (true);
|
|
3235
3237
|
};
|
|
3236
3238
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
3237
|
-
this.
|
|
3238
|
-
this.
|
|
3239
|
-
this.
|
|
3240
|
-
this.
|
|
3239
|
+
this.x9x_1 = serverReduxConfig;
|
|
3240
|
+
this.y9x_1 = logger;
|
|
3241
|
+
this.z9x_1 = idsProvider;
|
|
3242
|
+
this.a9y_1 = atomic$ref$1(0);
|
|
3241
3243
|
var tmp = this;
|
|
3242
3244
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
3243
|
-
tmp.
|
|
3244
|
-
this.
|
|
3245
|
+
tmp.b9y_1 = get_atomicfu$reentrantLock();
|
|
3246
|
+
this.c9y_1 = MutableSharedFlow();
|
|
3245
3247
|
}
|
|
3246
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3248
|
+
protoOf(ToClientEventsObserverImpl).e9x = function (fromEvent, $completion) {
|
|
3247
3249
|
var tmp = new $sentEventCOROUTINE$3(this, fromEvent, $completion);
|
|
3248
3250
|
tmp.l9_1 = Unit_instance;
|
|
3249
3251
|
tmp.m9_1 = null;
|
|
3250
3252
|
return tmp.r9();
|
|
3251
3253
|
};
|
|
3252
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3254
|
+
protoOf(ToClientEventsObserverImpl).n9a = function ($completion) {
|
|
3253
3255
|
var tmp = new $waitForCOROUTINE$4(this, $completion);
|
|
3254
3256
|
tmp.l9_1 = Unit_instance;
|
|
3255
3257
|
tmp.m9_1 = null;
|
|
3256
3258
|
return tmp.r9();
|
|
3257
3259
|
};
|
|
3258
|
-
protoOf(ToClientEventsObserverImpl).
|
|
3259
|
-
if (!this.
|
|
3260
|
-
return this.
|
|
3260
|
+
protoOf(ToClientEventsObserverImpl).q9o = function () {
|
|
3261
|
+
if (!this.x9x_1.enabledCombinedEvents) {
|
|
3262
|
+
return this.c9y_1;
|
|
3261
3263
|
}
|
|
3262
|
-
var tmp = windowedByInterval(this.
|
|
3264
|
+
var tmp = windowedByInterval(this.c9y_1, toLong(this.x9x_1.combinedEventsPeriod));
|
|
3263
3265
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeEvents$slambda_0(this, null));
|
|
3264
3266
|
};
|
|
3265
3267
|
function UpdateServerConfigAction(serverConfig) {
|
|
3266
|
-
this.
|
|
3268
|
+
this.q9z_1 = serverConfig;
|
|
3267
3269
|
}
|
|
3268
3270
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
3269
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
3271
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.q9z_1.toString() + ')';
|
|
3270
3272
|
};
|
|
3271
3273
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
3272
|
-
return this.
|
|
3274
|
+
return this.q9z_1.hashCode();
|
|
3273
3275
|
};
|
|
3274
3276
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
3275
3277
|
if (this === other)
|
|
@@ -3277,20 +3279,20 @@
|
|
|
3277
3279
|
if (!(other instanceof UpdateServerConfigAction))
|
|
3278
3280
|
return false;
|
|
3279
3281
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
3280
|
-
if (!this.
|
|
3282
|
+
if (!this.q9z_1.equals(tmp0_other_with_cast.q9z_1))
|
|
3281
3283
|
return false;
|
|
3282
3284
|
return true;
|
|
3283
3285
|
};
|
|
3284
3286
|
function SpectatorsAction() {
|
|
3285
3287
|
}
|
|
3286
3288
|
function AddSpectatorsAction(spectators) {
|
|
3287
|
-
this.
|
|
3289
|
+
this.r9z_1 = spectators;
|
|
3288
3290
|
}
|
|
3289
3291
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
3290
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
3292
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.r9z_1) + ')';
|
|
3291
3293
|
};
|
|
3292
3294
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
3293
|
-
return hashCode(this.
|
|
3295
|
+
return hashCode(this.r9z_1);
|
|
3294
3296
|
};
|
|
3295
3297
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
3296
3298
|
if (this === other)
|
|
@@ -3298,18 +3300,18 @@
|
|
|
3298
3300
|
if (!(other instanceof AddSpectatorsAction))
|
|
3299
3301
|
return false;
|
|
3300
3302
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
3301
|
-
if (!equals(this.
|
|
3303
|
+
if (!equals(this.r9z_1, tmp0_other_with_cast.r9z_1))
|
|
3302
3304
|
return false;
|
|
3303
3305
|
return true;
|
|
3304
3306
|
};
|
|
3305
3307
|
function RemoveSpectatorsAction(spectators) {
|
|
3306
|
-
this.
|
|
3308
|
+
this.s9z_1 = spectators;
|
|
3307
3309
|
}
|
|
3308
3310
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
3309
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
3311
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.s9z_1) + ')';
|
|
3310
3312
|
};
|
|
3311
3313
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
3312
|
-
return hashCode(this.
|
|
3314
|
+
return hashCode(this.s9z_1);
|
|
3313
3315
|
};
|
|
3314
3316
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
3315
3317
|
if (this === other)
|
|
@@ -3317,91 +3319,91 @@
|
|
|
3317
3319
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
3318
3320
|
return false;
|
|
3319
3321
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
3320
|
-
if (!equals(this.
|
|
3322
|
+
if (!equals(this.s9z_1, tmp0_other_with_cast.s9z_1))
|
|
3321
3323
|
return false;
|
|
3322
3324
|
return true;
|
|
3323
3325
|
};
|
|
3324
3326
|
function _get_asyncProvider__jbpyhw($this) {
|
|
3325
3327
|
// Inline function 'kotlin.getValue' call
|
|
3326
|
-
var this_0 = $this.
|
|
3328
|
+
var this_0 = $this.y9z_1;
|
|
3327
3329
|
asyncProvider$factory_0();
|
|
3328
3330
|
return this_0.u();
|
|
3329
3331
|
}
|
|
3330
3332
|
function _get_logger__rkp4sl_0($this) {
|
|
3331
3333
|
// Inline function 'kotlin.getValue' call
|
|
3332
|
-
var this_0 = $this.
|
|
3334
|
+
var this_0 = $this.z9z_1;
|
|
3333
3335
|
logger$factory_2();
|
|
3334
3336
|
return this_0.u();
|
|
3335
3337
|
}
|
|
3336
3338
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
3337
3339
|
// Inline function 'kotlin.getValue' call
|
|
3338
|
-
var this_0 = $this.
|
|
3340
|
+
var this_0 = $this.aa0_1;
|
|
3339
3341
|
playerConnectionInteractor$factory_2();
|
|
3340
3342
|
return this_0.u();
|
|
3341
3343
|
}
|
|
3342
3344
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
3343
3345
|
// Inline function 'kotlin.getValue' call
|
|
3344
|
-
var this_0 = $this.
|
|
3346
|
+
var this_0 = $this.ba0_1;
|
|
3345
3347
|
lastCardInteractor$factory_0();
|
|
3346
3348
|
return this_0.u();
|
|
3347
3349
|
}
|
|
3348
3350
|
function _get_serverConfig__rk2g06($this) {
|
|
3349
3351
|
// Inline function 'kotlin.getValue' call
|
|
3350
|
-
var this_0 = $this.
|
|
3352
|
+
var this_0 = $this.ca0_1;
|
|
3351
3353
|
serverConfig$factory_0();
|
|
3352
3354
|
return this_0.u();
|
|
3353
3355
|
}
|
|
3354
3356
|
function _get_logicConfig__52ww9d($this) {
|
|
3355
3357
|
// Inline function 'kotlin.getValue' call
|
|
3356
|
-
var this_0 = $this.
|
|
3358
|
+
var this_0 = $this.da0_1;
|
|
3357
3359
|
logicConfig$factory_0();
|
|
3358
3360
|
return this_0.u();
|
|
3359
3361
|
}
|
|
3360
3362
|
function _get_idsProvider__fnfajc_0($this) {
|
|
3361
3363
|
// Inline function 'kotlin.getValue' call
|
|
3362
|
-
var this_0 = $this.
|
|
3364
|
+
var this_0 = $this.ea0_1;
|
|
3363
3365
|
idsProvider$factory_2();
|
|
3364
3366
|
return this_0.u();
|
|
3365
3367
|
}
|
|
3366
3368
|
function _get_botConfig__cpaxzc($this) {
|
|
3367
3369
|
// Inline function 'kotlin.getValue' call
|
|
3368
|
-
var this_0 = $this.
|
|
3370
|
+
var this_0 = $this.fa0_1;
|
|
3369
3371
|
botConfig$factory_0();
|
|
3370
3372
|
return this_0.u();
|
|
3371
3373
|
}
|
|
3372
3374
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
3373
3375
|
// Inline function 'kotlin.getValue' call
|
|
3374
|
-
var this_0 = $this.
|
|
3376
|
+
var this_0 = $this.ga0_1;
|
|
3375
3377
|
scenePositionProvider$factory_0();
|
|
3376
3378
|
return this_0.u();
|
|
3377
3379
|
}
|
|
3378
3380
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
3379
3381
|
// Inline function 'kotlin.getValue' call
|
|
3380
|
-
var this_0 = $this.
|
|
3382
|
+
var this_0 = $this.ha0_1;
|
|
3381
3383
|
toClientEventsObserver$factory_2();
|
|
3382
3384
|
return this_0.u();
|
|
3383
3385
|
}
|
|
3384
3386
|
function _get_fromClientEventsObserver__a7vzd3_0($this) {
|
|
3385
3387
|
// Inline function 'kotlin.getValue' call
|
|
3386
|
-
var this_0 = $this.
|
|
3388
|
+
var this_0 = $this.ia0_1;
|
|
3387
3389
|
fromClientEventsObserver$factory_2();
|
|
3388
3390
|
return this_0.u();
|
|
3389
3391
|
}
|
|
3390
3392
|
function _get_dealerConfig__183ci8($this) {
|
|
3391
3393
|
// Inline function 'kotlin.getValue' call
|
|
3392
|
-
var this_0 = $this.
|
|
3394
|
+
var this_0 = $this.ja0_1;
|
|
3393
3395
|
dealerConfig$factory_0();
|
|
3394
3396
|
return this_0.u();
|
|
3395
3397
|
}
|
|
3396
3398
|
function _get_poolProvider__tqti6a($this) {
|
|
3397
3399
|
// Inline function 'kotlin.getValue' call
|
|
3398
|
-
var this_0 = $this.
|
|
3400
|
+
var this_0 = $this.ka0_1;
|
|
3399
3401
|
poolProvider$factory_0();
|
|
3400
3402
|
return this_0.u();
|
|
3401
3403
|
}
|
|
3402
3404
|
function _get_cardsDealerProvider__bekjpg($this) {
|
|
3403
3405
|
// Inline function 'kotlin.getValue' call
|
|
3404
|
-
var this_0 = $this.
|
|
3406
|
+
var this_0 = $this.la0_1;
|
|
3405
3407
|
cardsDealerProvider$factory_0();
|
|
3406
3408
|
return this_0.u();
|
|
3407
3409
|
}
|
|
@@ -3414,101 +3416,101 @@
|
|
|
3414
3416
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
3415
3417
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
3416
3418
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
3417
|
-
this.
|
|
3418
|
-
this.
|
|
3419
|
-
this.
|
|
3420
|
-
this.
|
|
3421
|
-
this.
|
|
3419
|
+
this.t9z_1 = validationStoreContract;
|
|
3420
|
+
this.u9z_1 = timersStoreContract;
|
|
3421
|
+
this.v9z_1 = botGameStoreContract;
|
|
3422
|
+
this.w9z_1 = gameMechanicStoreContract;
|
|
3423
|
+
this.x9z_1 = fileLoggerStoreContract;
|
|
3422
3424
|
var tmp = this;
|
|
3423
3425
|
// Inline function 'org.kodein.di.instance' call
|
|
3424
3426
|
// Inline function 'org.kodein.type.generic' call
|
|
3425
3427
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
3426
3428
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
3427
|
-
tmp.
|
|
3429
|
+
tmp.y9z_1 = Instance(di, tmp$ret$0, null).d64(this, asyncProvider$factory());
|
|
3428
3430
|
var tmp_1 = this;
|
|
3429
3431
|
// Inline function 'org.kodein.di.instance' call
|
|
3430
3432
|
// Inline function 'org.kodein.type.generic' call
|
|
3431
3433
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3432
3434
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3433
|
-
tmp_1.
|
|
3435
|
+
tmp_1.z9z_1 = Instance(di, tmp$ret$2, null).d64(this, logger$factory_1());
|
|
3434
3436
|
var tmp_3 = this;
|
|
3435
3437
|
// Inline function 'org.kodein.di.instance' call
|
|
3436
3438
|
// Inline function 'org.kodein.type.generic' call
|
|
3437
3439
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
3438
3440
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3439
|
-
tmp_3.
|
|
3441
|
+
tmp_3.aa0_1 = Instance(di, tmp$ret$4, null).d64(this, playerConnectionInteractor$factory_1());
|
|
3440
3442
|
var tmp_5 = this;
|
|
3441
3443
|
// Inline function 'org.kodein.di.instance' call
|
|
3442
3444
|
// Inline function 'org.kodein.type.generic' call
|
|
3443
3445
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
3444
3446
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3445
|
-
tmp_5.
|
|
3447
|
+
tmp_5.ba0_1 = Instance(di, tmp$ret$6, null).d64(this, lastCardInteractor$factory());
|
|
3446
3448
|
var tmp_7 = this;
|
|
3447
3449
|
// Inline function 'org.kodein.di.instance' call
|
|
3448
3450
|
// Inline function 'org.kodein.type.generic' call
|
|
3449
3451
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
3450
3452
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3451
|
-
tmp_7.
|
|
3453
|
+
tmp_7.ca0_1 = Instance(di, tmp$ret$8, null).d64(this, serverConfig$factory());
|
|
3452
3454
|
var tmp_9 = this;
|
|
3453
3455
|
// Inline function 'org.kodein.di.instance' call
|
|
3454
3456
|
// Inline function 'org.kodein.type.generic' call
|
|
3455
3457
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
3456
3458
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3457
|
-
tmp_9.
|
|
3459
|
+
tmp_9.da0_1 = Instance(di, tmp$ret$10, null).d64(this, logicConfig$factory());
|
|
3458
3460
|
var tmp_11 = this;
|
|
3459
3461
|
// Inline function 'org.kodein.di.instance' call
|
|
3460
3462
|
// Inline function 'org.kodein.type.generic' call
|
|
3461
3463
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
3462
3464
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
3463
|
-
tmp_11.
|
|
3465
|
+
tmp_11.ea0_1 = Instance(di, tmp$ret$12, null).d64(this, idsProvider$factory_1());
|
|
3464
3466
|
var tmp_13 = this;
|
|
3465
3467
|
// Inline function 'org.kodein.di.instance' call
|
|
3466
3468
|
// Inline function 'org.kodein.type.generic' call
|
|
3467
3469
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
3468
3470
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
3469
|
-
tmp_13.
|
|
3471
|
+
tmp_13.fa0_1 = Instance(di, tmp$ret$14, null).d64(this, botConfig$factory());
|
|
3470
3472
|
var tmp_15 = this;
|
|
3471
3473
|
// Inline function 'org.kodein.di.instance' call
|
|
3472
3474
|
// Inline function 'org.kodein.type.generic' call
|
|
3473
3475
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
3474
3476
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
3475
|
-
tmp_15.
|
|
3477
|
+
tmp_15.ga0_1 = Instance(di, tmp$ret$16, null).d64(this, scenePositionProvider$factory());
|
|
3476
3478
|
var tmp_17 = this;
|
|
3477
3479
|
// Inline function 'org.kodein.di.instance' call
|
|
3478
3480
|
// Inline function 'org.kodein.type.generic' call
|
|
3479
3481
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
3480
3482
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
3481
|
-
tmp_17.
|
|
3483
|
+
tmp_17.ha0_1 = Instance(di, tmp$ret$18, null).d64(this, toClientEventsObserver$factory_1());
|
|
3482
3484
|
var tmp_19 = this;
|
|
3483
3485
|
// Inline function 'org.kodein.di.instance' call
|
|
3484
3486
|
// Inline function 'org.kodein.type.generic' call
|
|
3485
3487
|
var tmp_20 = typeToken(createKType(getKClass(FromClientEventsObserver), arrayOf([]), false));
|
|
3486
3488
|
var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
3487
|
-
tmp_19.
|
|
3489
|
+
tmp_19.ia0_1 = Instance(di, tmp$ret$20, null).d64(this, fromClientEventsObserver$factory_1());
|
|
3488
3490
|
var tmp_21 = this;
|
|
3489
3491
|
// Inline function 'org.kodein.di.instance' call
|
|
3490
3492
|
// Inline function 'org.kodein.type.generic' call
|
|
3491
3493
|
var tmp_22 = typeToken(createKType(getKClass(DealerConfig), arrayOf([]), false));
|
|
3492
3494
|
var tmp$ret$22 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
3493
|
-
tmp_21.
|
|
3495
|
+
tmp_21.ja0_1 = Instance(di, tmp$ret$22, null).d64(this, dealerConfig$factory());
|
|
3494
3496
|
var tmp_23 = this;
|
|
3495
3497
|
// Inline function 'org.kodein.di.instance' call
|
|
3496
3498
|
// Inline function 'org.kodein.type.generic' call
|
|
3497
3499
|
var tmp_24 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3498
3500
|
var tmp$ret$24 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE();
|
|
3499
|
-
tmp_23.
|
|
3501
|
+
tmp_23.ka0_1 = Instance(di, tmp$ret$24, null).d64(this, poolProvider$factory());
|
|
3500
3502
|
var tmp_25 = this;
|
|
3501
3503
|
// Inline function 'org.kodein.di.instance' call
|
|
3502
3504
|
// Inline function 'org.kodein.type.generic' call
|
|
3503
3505
|
var tmp_26 = typeToken(createKType(getKClass(CardsDealerProvider), arrayOf([]), false));
|
|
3504
3506
|
var tmp$ret$26 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE();
|
|
3505
|
-
tmp_25.
|
|
3507
|
+
tmp_25.la0_1 = Instance(di, tmp$ret$26, null).d64(this, cardsDealerProvider$factory());
|
|
3506
3508
|
}
|
|
3507
|
-
protoOf(ServerGameStoreContract).
|
|
3508
|
-
return plus(plus(plus(plus(plus(this.
|
|
3509
|
+
protoOf(ServerGameStoreContract).x91 = function () {
|
|
3510
|
+
return plus(plus(plus(plus(plus(this.t9z_1.x91(), this.w9z_1.x91()), this.u9z_1.x91()), this.v9z_1.x91()), this.x9z_1.x91()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
3509
3511
|
};
|
|
3510
|
-
protoOf(ServerGameStoreContract).
|
|
3511
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
3512
|
+
protoOf(ServerGameStoreContract).y91 = function () {
|
|
3513
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.t9z_1.y91(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.w9z_1.y91()), this.u9z_1.y91()), this.v9z_1.y91()), this.x9z_1.y91()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([sendFromClientEventsMiddleware(_get_asyncProvider__jbpyhw(this), _get_fromClientEventsObserver__a7vzd3_0(this)), sendToClientActionMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc_0(this))).d94(), finishingGameWhenCantStartNewMiddleware()]));
|
|
3512
3514
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
3513
3515
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
3514
3516
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -3679,19 +3681,28 @@
|
|
|
3679
3681
|
return action instanceof RoundEndedAction;
|
|
3680
3682
|
};
|
|
3681
3683
|
protoOf(_no_name_provided__qut3iv_2).y6l = function (store, next, action) {
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3684
|
+
$l$block_0: {
|
|
3685
|
+
// Inline function 'games.jass.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
3686
|
+
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
3687
|
+
next(action_0);
|
|
3688
|
+
var state = store.state;
|
|
3689
|
+
if (action_0.isGameFinished) {
|
|
3690
|
+
if (!get_serverStatePayload_0(state).config.canStartNewGame) {
|
|
3691
|
+
store.dispatch(Companion_instance.fromTableWithAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.b6r_1));
|
|
3692
|
+
break $l$block_0;
|
|
3693
|
+
}
|
|
3694
|
+
if (state.s6r().config.mode.equals(RoomMode_REVENGE_getInstance())) {
|
|
3695
|
+
store.dispatch(Companion_instance.fromTableWithAnalytics(new GameFinishedReason(Reason_REVENGED_getInstance()), true, state.b6r_1));
|
|
3696
|
+
break $l$block_0;
|
|
3697
|
+
}
|
|
3698
|
+
}
|
|
3688
3699
|
}
|
|
3689
3700
|
};
|
|
3690
3701
|
protoOf(_no_name_provided__qut3iv_2).g6k = function (store, next, action) {
|
|
3691
3702
|
return this.y6l(store, next, action);
|
|
3692
3703
|
};
|
|
3693
3704
|
function _no_name_provided__qut3iv_3(this$0) {
|
|
3694
|
-
this.
|
|
3705
|
+
this.oa0_1 = this$0;
|
|
3695
3706
|
}
|
|
3696
3707
|
protoOf(_no_name_provided__qut3iv_3).h6k = function (action) {
|
|
3697
3708
|
return action instanceof MechanicAction;
|
|
@@ -3705,11 +3716,11 @@
|
|
|
3705
3716
|
var tmp;
|
|
3706
3717
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
3707
3718
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3708
|
-
var this_0 = this.
|
|
3709
|
-
var tableId = action_0.
|
|
3710
|
-
var gameCreatorPlayerId = action_0.
|
|
3719
|
+
var this_0 = this.oa0_1;
|
|
3720
|
+
var tableId = action_0.k8y_1;
|
|
3721
|
+
var gameCreatorPlayerId = action_0.m8y_1;
|
|
3711
3722
|
// Inline function 'kotlin.collections.map' call
|
|
3712
|
-
var this_1 = action_0.
|
|
3723
|
+
var this_1 = action_0.n8y_1;
|
|
3713
3724
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3714
3725
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
3715
3726
|
var tmp0_iterator = this_1.j();
|
|
@@ -3750,7 +3761,7 @@
|
|
|
3750
3761
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3751
3762
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3752
3763
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3753
|
-
var tmp0_aid = this_0.
|
|
3764
|
+
var tmp0_aid = this_0.na0_1.k6i();
|
|
3754
3765
|
// Inline function 'kotlin.collections.map' call
|
|
3755
3766
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3756
3767
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
@@ -3775,17 +3786,17 @@
|
|
|
3775
3786
|
} else {
|
|
3776
3787
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
3777
3788
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3778
|
-
var this_2 = this.
|
|
3789
|
+
var this_2 = this.oa0_1;
|
|
3779
3790
|
var table = state.s6r();
|
|
3780
3791
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3781
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
3792
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.na0_1.k6i(), table.id, null);
|
|
3782
3793
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
3783
3794
|
tmp = listOfNotNull(tmp$ret$18);
|
|
3784
3795
|
} else {
|
|
3785
3796
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
3786
3797
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3787
|
-
var this_3 = this.
|
|
3788
|
-
var tableId_0 = action_0.
|
|
3798
|
+
var this_3 = this.oa0_1;
|
|
3799
|
+
var tableId_0 = action_0.q8y_1.id;
|
|
3789
3800
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
3790
3801
|
// Inline function 'kotlin.collections.map' call
|
|
3791
3802
|
var this_4 = action_0.users;
|
|
@@ -3829,7 +3840,7 @@
|
|
|
3829
3840
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3830
3841
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3831
3842
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3832
|
-
var tmp0_aid_0 = this_3.
|
|
3843
|
+
var tmp0_aid_0 = this_3.na0_1.k6i();
|
|
3833
3844
|
// Inline function 'kotlin.collections.map' call
|
|
3834
3845
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3835
3846
|
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
@@ -3854,43 +3865,43 @@
|
|
|
3854
3865
|
} else {
|
|
3855
3866
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
3856
3867
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3857
|
-
var this_5 = this.
|
|
3868
|
+
var this_5 = this.oa0_1;
|
|
3858
3869
|
var table_0 = state.s6r();
|
|
3859
3870
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3860
|
-
var sendToPlayer_2 = new RoomActionPayload(this_5.
|
|
3871
|
+
var sendToPlayer_2 = new RoomActionPayload(this_5.na0_1.k6i(), table_0.id, null);
|
|
3861
3872
|
var tmp$ret$38 = mapToClient_14(action_0, sendToPlayer_2);
|
|
3862
3873
|
tmp = listOfNotNull(tmp$ret$38);
|
|
3863
3874
|
} else {
|
|
3864
3875
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
3865
3876
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3866
|
-
var this_6 = this.
|
|
3877
|
+
var this_6 = this.oa0_1;
|
|
3867
3878
|
var table_1 = state.s6r();
|
|
3868
3879
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3869
|
-
var sendToPlayer_3 = new RoomActionPayload(this_6.
|
|
3880
|
+
var sendToPlayer_3 = new RoomActionPayload(this_6.na0_1.k6i(), table_1.id, null);
|
|
3870
3881
|
var tmp$ret$40 = mapToClient_13(action_0, sendToPlayer_3);
|
|
3871
3882
|
tmp = listOfNotNull(tmp$ret$40);
|
|
3872
3883
|
} else {
|
|
3873
3884
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
3874
3885
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3875
|
-
var this_7 = this.
|
|
3886
|
+
var this_7 = this.oa0_1;
|
|
3876
3887
|
var table_2 = state.s6r();
|
|
3877
3888
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3878
|
-
var sendToPlayer_4 = new RoomActionPayload(this_7.
|
|
3889
|
+
var sendToPlayer_4 = new RoomActionPayload(this_7.na0_1.k6i(), table_2.id, null);
|
|
3879
3890
|
var tmp$ret$42 = mapToClient_12(action_0, sendToPlayer_4);
|
|
3880
3891
|
tmp = listOfNotNull(tmp$ret$42);
|
|
3881
3892
|
} else {
|
|
3882
3893
|
if (action_0 instanceof ErrorAction) {
|
|
3883
3894
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
3884
|
-
var this_8 = this.
|
|
3895
|
+
var this_8 = this.oa0_1;
|
|
3885
3896
|
var table_3 = state.s6r();
|
|
3886
3897
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3887
|
-
var sendToPlayer_5 = new RoomActionPayload(this_8.
|
|
3898
|
+
var sendToPlayer_5 = new RoomActionPayload(this_8.na0_1.k6i(), table_3.id, null);
|
|
3888
3899
|
var tmp$ret$44 = mapToClient_11(action_0, sendToPlayer_5);
|
|
3889
3900
|
tmp = listOfNotNull(tmp$ret$44);
|
|
3890
3901
|
} else {
|
|
3891
3902
|
if (action_0 instanceof SceneMechanicAction) {
|
|
3892
3903
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3893
|
-
var this_9 = this.
|
|
3904
|
+
var this_9 = this.oa0_1;
|
|
3894
3905
|
var table_4 = state.s6r();
|
|
3895
3906
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3896
3907
|
var tableId_1 = table_4.id;
|
|
@@ -3927,7 +3938,7 @@
|
|
|
3927
3938
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3928
3939
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3929
3940
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3930
|
-
var tmp0_aid_1 = this_9.
|
|
3941
|
+
var tmp0_aid_1 = this_9.na0_1.k6i();
|
|
3931
3942
|
// Inline function 'kotlin.collections.map' call
|
|
3932
3943
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3933
3944
|
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
@@ -3952,7 +3963,7 @@
|
|
|
3952
3963
|
} else {
|
|
3953
3964
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
3954
3965
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
3955
|
-
var this_10 = this.
|
|
3966
|
+
var this_10 = this.oa0_1;
|
|
3956
3967
|
var table_5 = state.s6r();
|
|
3957
3968
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
3958
3969
|
var tableId_2 = table_5.id;
|
|
@@ -3989,7 +4000,7 @@
|
|
|
3989
4000
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3990
4001
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
3991
4002
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
3992
|
-
var tmp0_aid_2 = this_10.
|
|
4003
|
+
var tmp0_aid_2 = this_10.na0_1.k6i();
|
|
3993
4004
|
// Inline function 'kotlin.collections.map' call
|
|
3994
4005
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3995
4006
|
var destination_16 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
@@ -4014,7 +4025,7 @@
|
|
|
4014
4025
|
} else {
|
|
4015
4026
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
4016
4027
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
4017
|
-
var this_11 = this.
|
|
4028
|
+
var this_11 = this.oa0_1;
|
|
4018
4029
|
var table_6 = state.s6r();
|
|
4019
4030
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
4020
4031
|
var tableId_3 = table_6.id;
|
|
@@ -4051,7 +4062,7 @@
|
|
|
4051
4062
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
4052
4063
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
4053
4064
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4054
|
-
var tmp0_aid_3 = this_11.
|
|
4065
|
+
var tmp0_aid_3 = this_11.na0_1.k6i();
|
|
4055
4066
|
// Inline function 'kotlin.collections.map' call
|
|
4056
4067
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4057
4068
|
var destination_20 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
@@ -4064,7 +4075,7 @@
|
|
|
4064
4075
|
}
|
|
4065
4076
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_20);
|
|
4066
4077
|
var tmp_0;
|
|
4067
|
-
if (this.
|
|
4078
|
+
if (this.oa0_1.ma0_1.supportBackwardActions && getPlayer(state.s6r().players, sendToPlayer_8.n7e_1).p6x_1.t6x_1) {
|
|
4068
4079
|
tmp_0 = null;
|
|
4069
4080
|
} else {
|
|
4070
4081
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -4082,79 +4093,79 @@
|
|
|
4082
4093
|
} else {
|
|
4083
4094
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
4084
4095
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4085
|
-
var this_12 = this.
|
|
4096
|
+
var this_12 = this.oa0_1;
|
|
4086
4097
|
var table_7 = state.s6r();
|
|
4087
|
-
var exceptPlayerId = this.
|
|
4098
|
+
var exceptPlayerId = this.oa0_1.ma0_1.supportBackwardActions ? action_0.k8z_1 : null;
|
|
4088
4099
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4089
|
-
var sendToPlayer_9 = new RoomActionPayload(this_12.
|
|
4100
|
+
var sendToPlayer_9 = new RoomActionPayload(this_12.na0_1.k6i(), table_7.id, exceptPlayerId);
|
|
4090
4101
|
var tmp$ret$94 = mapToClient_7(action_0, sendToPlayer_9);
|
|
4091
4102
|
tmp = listOfNotNull(tmp$ret$94);
|
|
4092
4103
|
} else {
|
|
4093
4104
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
4094
4105
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4095
|
-
var this_13 = this.
|
|
4106
|
+
var this_13 = this.oa0_1;
|
|
4096
4107
|
var table_8 = state.s6r();
|
|
4097
|
-
var exceptPlayerId_0 = this.
|
|
4108
|
+
var exceptPlayerId_0 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.g8u_1 : null;
|
|
4098
4109
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4099
|
-
var sendToPlayer_10 = new RoomActionPayload(this_13.
|
|
4110
|
+
var sendToPlayer_10 = new RoomActionPayload(this_13.na0_1.k6i(), table_8.id, exceptPlayerId_0);
|
|
4100
4111
|
var tmp$ret$96 = mapToClient_6(action_0, sendToPlayer_10);
|
|
4101
4112
|
tmp = listOfNotNull(tmp$ret$96);
|
|
4102
4113
|
} else {
|
|
4103
4114
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
4104
4115
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4105
|
-
var this_14 = this.
|
|
4116
|
+
var this_14 = this.oa0_1;
|
|
4106
4117
|
var table_9 = state.s6r();
|
|
4107
4118
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4108
|
-
var sendToPlayer_11 = new RoomActionPayload(this_14.
|
|
4119
|
+
var sendToPlayer_11 = new RoomActionPayload(this_14.na0_1.k6i(), table_9.id, null);
|
|
4109
4120
|
var tmp$ret$98 = mapToClient_5(action_0, sendToPlayer_11);
|
|
4110
4121
|
tmp = listOfNotNull(tmp$ret$98);
|
|
4111
4122
|
} else {
|
|
4112
4123
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
4113
4124
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4114
|
-
var this_15 = this.
|
|
4125
|
+
var this_15 = this.oa0_1;
|
|
4115
4126
|
var table_10 = state.s6r();
|
|
4116
|
-
var exceptPlayerId_1 = this.
|
|
4127
|
+
var exceptPlayerId_1 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.q8z_1 : null;
|
|
4117
4128
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4118
|
-
var sendToPlayer_12 = new RoomActionPayload(this_15.
|
|
4129
|
+
var sendToPlayer_12 = new RoomActionPayload(this_15.na0_1.k6i(), table_10.id, exceptPlayerId_1);
|
|
4119
4130
|
var tmp$ret$100 = mapToClient_4(action_0, sendToPlayer_12);
|
|
4120
4131
|
tmp = listOfNotNull(tmp$ret$100);
|
|
4121
4132
|
} else {
|
|
4122
4133
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
4123
4134
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4124
|
-
var this_16 = this.
|
|
4135
|
+
var this_16 = this.oa0_1;
|
|
4125
4136
|
var table_11 = state.s6r();
|
|
4126
|
-
var exceptPlayerId_2 = this.
|
|
4137
|
+
var exceptPlayerId_2 = this.oa0_1.ma0_1.supportBackwardActions ? action_0.l8u_1 : null;
|
|
4127
4138
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4128
|
-
var sendToPlayer_13 = new RoomActionPayload(this_16.
|
|
4139
|
+
var sendToPlayer_13 = new RoomActionPayload(this_16.na0_1.k6i(), table_11.id, exceptPlayerId_2);
|
|
4129
4140
|
var tmp$ret$102 = mapToClient_3(action_0, sendToPlayer_13);
|
|
4130
4141
|
tmp = listOfNotNull(tmp$ret$102);
|
|
4131
4142
|
} else {
|
|
4132
4143
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
4133
4144
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4134
|
-
var this_17 = this.
|
|
4145
|
+
var this_17 = this.oa0_1;
|
|
4135
4146
|
var table_12 = state.s6r();
|
|
4136
4147
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4137
|
-
var sendToPlayer_14 = new RoomActionPayload(this_17.
|
|
4148
|
+
var sendToPlayer_14 = new RoomActionPayload(this_17.na0_1.k6i(), table_12.id, null);
|
|
4138
4149
|
var tmp$ret$104 = mapToClient_2(action_0, sendToPlayer_14);
|
|
4139
4150
|
tmp = listOfNotNull(tmp$ret$104);
|
|
4140
4151
|
} else {
|
|
4141
4152
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
4142
4153
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4143
|
-
var this_18 = this.
|
|
4154
|
+
var this_18 = this.oa0_1;
|
|
4144
4155
|
var table_13 = state.s6r();
|
|
4145
4156
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4146
|
-
var sendToPlayer_15 = new RoomActionPayload(this_18.
|
|
4157
|
+
var sendToPlayer_15 = new RoomActionPayload(this_18.na0_1.k6i(), table_13.id, null);
|
|
4147
4158
|
var tmp$ret$106 = mapToClient_1(action_0, sendToPlayer_15);
|
|
4148
4159
|
tmp = listOfNotNull(tmp$ret$106);
|
|
4149
4160
|
} else {
|
|
4150
4161
|
if (action_0 instanceof MessageMechanicAction) {
|
|
4151
|
-
var message = action_0.
|
|
4162
|
+
var message = action_0.u8z_1;
|
|
4152
4163
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4153
|
-
var this_19 = this.
|
|
4164
|
+
var this_19 = this.oa0_1;
|
|
4154
4165
|
var table_14 = state.s6r();
|
|
4155
4166
|
var tmp_1;
|
|
4156
4167
|
var tmp_2;
|
|
4157
|
-
if (this.
|
|
4168
|
+
if (this.oa0_1.ma0_1.supportBackwardActions) {
|
|
4158
4169
|
tmp_2 = isInterface(message, UserMessage);
|
|
4159
4170
|
} else {
|
|
4160
4171
|
tmp_2 = false;
|
|
@@ -4166,17 +4177,17 @@
|
|
|
4166
4177
|
}
|
|
4167
4178
|
var exceptPlayerId_3 = tmp_1;
|
|
4168
4179
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4169
|
-
var sendToPlayer_16 = new RoomActionPayload(this_19.
|
|
4180
|
+
var sendToPlayer_16 = new RoomActionPayload(this_19.na0_1.k6i(), table_14.id, exceptPlayerId_3);
|
|
4170
4181
|
var tmp$ret$108 = mapToClient_0(action_0, sendToPlayer_16);
|
|
4171
4182
|
tmp = listOfNotNull(tmp$ret$108);
|
|
4172
4183
|
} else {
|
|
4173
4184
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
4174
4185
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
4175
|
-
var this_20 = this.
|
|
4186
|
+
var this_20 = this.oa0_1;
|
|
4176
4187
|
var table_15 = state.s6r();
|
|
4177
4188
|
var exceptPlayerId_4 = action_0.playerId;
|
|
4178
4189
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
4179
|
-
var sendToPlayer_17 = new RoomActionPayload(this_20.
|
|
4190
|
+
var sendToPlayer_17 = new RoomActionPayload(this_20.na0_1.k6i(), table_15.id, exceptPlayerId_4);
|
|
4180
4191
|
var tmp$ret$110 = mapToClient(action_0, sendToPlayer_17);
|
|
4181
4192
|
tmp = listOfNotNull(tmp$ret$110);
|
|
4182
4193
|
} else {
|
|
@@ -4214,10 +4225,10 @@
|
|
|
4214
4225
|
return this.y6l(store, next, action);
|
|
4215
4226
|
};
|
|
4216
4227
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
4217
|
-
this.
|
|
4218
|
-
this.
|
|
4228
|
+
this.ma0_1 = logicConfig;
|
|
4229
|
+
this.na0_1 = idsProvider;
|
|
4219
4230
|
}
|
|
4220
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
4231
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).d94 = function () {
|
|
4221
4232
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
4222
4233
|
return new _no_name_provided__qut3iv_3(this);
|
|
4223
4234
|
};
|
|
@@ -4226,8 +4237,8 @@
|
|
|
4226
4237
|
return new _no_name_provided__qut3iv_4(asyncProvider, provider);
|
|
4227
4238
|
}
|
|
4228
4239
|
function sendToClientActionMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
4229
|
-
this.
|
|
4230
|
-
this.
|
|
4240
|
+
this.xa0_1 = $provider;
|
|
4241
|
+
this.ya0_1 = $action;
|
|
4231
4242
|
CoroutineImpl.call(this, resultContinuation);
|
|
4232
4243
|
}
|
|
4233
4244
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).m1e = function ($this$launchDefault, $completion) {
|
|
@@ -4248,7 +4259,7 @@
|
|
|
4248
4259
|
case 0:
|
|
4249
4260
|
this.k9_1 = 2;
|
|
4250
4261
|
this.j9_1 = 1;
|
|
4251
|
-
suspendResult = this.
|
|
4262
|
+
suspendResult = this.xa0_1.e9x(this.ya0_1, this);
|
|
4252
4263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4253
4264
|
return suspendResult;
|
|
4254
4265
|
}
|
|
@@ -4271,8 +4282,8 @@
|
|
|
4271
4282
|
while (true);
|
|
4272
4283
|
};
|
|
4273
4284
|
protoOf(sendToClientActionMiddleware$o$handle$slambda).n1e = function ($this$launchDefault, completion) {
|
|
4274
|
-
var i = new sendToClientActionMiddleware$o$handle$slambda(this.
|
|
4275
|
-
i.
|
|
4285
|
+
var i = new sendToClientActionMiddleware$o$handle$slambda(this.xa0_1, this.ya0_1, completion);
|
|
4286
|
+
i.za0_1 = $this$launchDefault;
|
|
4276
4287
|
return i;
|
|
4277
4288
|
};
|
|
4278
4289
|
function sendToClientActionMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -4284,8 +4295,8 @@
|
|
|
4284
4295
|
return l;
|
|
4285
4296
|
}
|
|
4286
4297
|
function _no_name_provided__qut3iv_4($asyncProvider, $provider) {
|
|
4287
|
-
this.
|
|
4288
|
-
this.
|
|
4298
|
+
this.aa1_1 = $asyncProvider;
|
|
4299
|
+
this.ba1_1 = $provider;
|
|
4289
4300
|
}
|
|
4290
4301
|
protoOf(_no_name_provided__qut3iv_4).h6k = function (action) {
|
|
4291
4302
|
return action instanceof ToClientAction;
|
|
@@ -4293,7 +4304,7 @@
|
|
|
4293
4304
|
protoOf(_no_name_provided__qut3iv_4).y6l = function (store, next, action) {
|
|
4294
4305
|
// Inline function 'games.jass.logic.server.redux.middlewares.events.sendToClientActionMiddleware.<anonymous>' call
|
|
4295
4306
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
4296
|
-
this.
|
|
4307
|
+
this.aa1_1.h6h(VOID, sendToClientActionMiddleware$o$handle$slambda_0(this.ba1_1, action_0, null));
|
|
4297
4308
|
next(action_0);
|
|
4298
4309
|
};
|
|
4299
4310
|
protoOf(_no_name_provided__qut3iv_4).g6k = function (store, next, action) {
|
|
@@ -4308,13 +4319,13 @@
|
|
|
4308
4319
|
protoOf(_no_name_provided__qut3iv_5).h6k = function (action) {
|
|
4309
4320
|
return action instanceof UpdateServerConfigAction;
|
|
4310
4321
|
};
|
|
4311
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
4322
|
+
protoOf(_no_name_provided__qut3iv_5).f9c = function (state, action) {
|
|
4312
4323
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
4313
4324
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
4314
|
-
return state.
|
|
4325
|
+
return state.l8x(VOID, get_serverStatePayload_0(state).copy(action_0.q9z_1));
|
|
4315
4326
|
};
|
|
4316
4327
|
protoOf(_no_name_provided__qut3iv_5).z6l = function (state, action) {
|
|
4317
|
-
return this.
|
|
4328
|
+
return this.f9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4318
4329
|
};
|
|
4319
4330
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
4320
4331
|
return function (it) {
|
|
@@ -4327,7 +4338,7 @@
|
|
|
4327
4338
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
4328
4339
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
4329
4340
|
Companion_getInstance();
|
|
4330
|
-
var this_0 = $action.
|
|
4341
|
+
var this_0 = $action.j8y_1.timeoutTimeMillis;
|
|
4331
4342
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
4332
4343
|
tmp_0 = tmp_1.m6c(tmp_2, tmp$ret$0);
|
|
4333
4344
|
}
|
|
@@ -4336,57 +4347,57 @@
|
|
|
4336
4347
|
}
|
|
4337
4348
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
4338
4349
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
4339
|
-
this.
|
|
4350
|
+
this.ea1_1 = logger;
|
|
4340
4351
|
}
|
|
4341
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4352
|
+
protoOf(ServerMechanicLifecycleReducer).r9d = function (state, action) {
|
|
4342
4353
|
var serverState = get_serverStatePayloadOrNull(state.c6r_1);
|
|
4343
4354
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4344
|
-
var tmp0_$this = this.
|
|
4345
|
-
var tmp1_tableId = action.
|
|
4346
|
-
var tmp2_gameId = action.
|
|
4347
|
-
var tmp3_version = action.
|
|
4348
|
-
var tmp4_config = action.
|
|
4349
|
-
var tmp5_users = action.
|
|
4355
|
+
var tmp0_$this = this.s9d_1;
|
|
4356
|
+
var tmp1_tableId = action.k8y_1;
|
|
4357
|
+
var tmp2_gameId = action.k8y_1;
|
|
4358
|
+
var tmp3_version = action.l8y_1;
|
|
4359
|
+
var tmp4_config = action.j8y_1;
|
|
4360
|
+
var tmp5_users = action.n8y_1;
|
|
4350
4361
|
var tmp6_spectators = action.spectators;
|
|
4351
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
4352
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
4362
|
+
var tmp7_gameCreatorPlayerId = action.m8y_1;
|
|
4363
|
+
var tmp9_tableOrNull = tmp0_$this.y9e(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
4353
4364
|
var tmp;
|
|
4354
4365
|
if (serverState == null) {
|
|
4355
|
-
this.
|
|
4366
|
+
this.ea1_1.w(VOID, 'ServerPayload is not onStart');
|
|
4356
4367
|
tmp = Companion_instance_10.initial();
|
|
4357
4368
|
} else {
|
|
4358
4369
|
tmp = serverState;
|
|
4359
4370
|
}
|
|
4360
4371
|
var tmp10_payload = tmp;
|
|
4361
|
-
return state.
|
|
4372
|
+
return state.l8x(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
4362
4373
|
};
|
|
4363
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4374
|
+
protoOf(ServerMechanicLifecycleReducer).p9d = function (state, action) {
|
|
4364
4375
|
var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4365
|
-
var tmp2_tableOrNull = action.
|
|
4376
|
+
var tmp2_tableOrNull = action.q8y_1;
|
|
4366
4377
|
var tmp = Companion_instance_10;
|
|
4367
4378
|
var tmp_0 = get_serverStatePayload_0(state).config;
|
|
4368
|
-
var tmp_1 = action.
|
|
4379
|
+
var tmp_1 = action.r8y_1;
|
|
4369
4380
|
var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
|
|
4370
4381
|
var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d6a_1));
|
|
4371
|
-
return state.
|
|
4382
|
+
return state.l8x(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
|
|
4372
4383
|
};
|
|
4373
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
4374
|
-
this.
|
|
4384
|
+
protoOf(ServerMechanicLifecycleReducer).q9d = function (state, action) {
|
|
4385
|
+
this.t9d_1.j5r(action.previousGameId);
|
|
4375
4386
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
4376
|
-
var tmp1_tableOrNull = this.
|
|
4377
|
-
return state.
|
|
4387
|
+
var tmp1_tableOrNull = this.s9d_1.z9e(state.s6r(), action.gameId);
|
|
4388
|
+
return state.l8x(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
4378
4389
|
};
|
|
4379
4390
|
function spectatorsReducer(logger) {
|
|
4380
4391
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
4381
4392
|
return new _no_name_provided__qut3iv_6(logger);
|
|
4382
4393
|
}
|
|
4383
4394
|
function _no_name_provided__qut3iv_6($logger) {
|
|
4384
|
-
this.
|
|
4395
|
+
this.fa1_1 = $logger;
|
|
4385
4396
|
}
|
|
4386
4397
|
protoOf(_no_name_provided__qut3iv_6).h6k = function (action) {
|
|
4387
4398
|
return isInterface(action, SpectatorsAction);
|
|
4388
4399
|
};
|
|
4389
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
4400
|
+
protoOf(_no_name_provided__qut3iv_6).f9c = function (state, action) {
|
|
4390
4401
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
4391
4402
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
4392
4403
|
var table = state.s6r();
|
|
@@ -4394,7 +4405,7 @@
|
|
|
4394
4405
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
4395
4406
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4396
4407
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4397
|
-
var this_0 = action_0.
|
|
4408
|
+
var this_0 = action_0.r9z_1;
|
|
4398
4409
|
var destination = ArrayList_init_$Create$_0();
|
|
4399
4410
|
// Inline function 'kotlin.collections.forEach' call
|
|
4400
4411
|
var tmp0_iterator = this_0.j();
|
|
@@ -4416,10 +4427,10 @@
|
|
|
4416
4427
|
var tmp_0;
|
|
4417
4428
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4418
4429
|
if (!sameSpectators.p()) {
|
|
4419
|
-
this.
|
|
4430
|
+
this.fa1_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
4420
4431
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4421
4432
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4422
|
-
var this_1 = action_0.
|
|
4433
|
+
var this_1 = action_0.r9z_1;
|
|
4423
4434
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
4424
4435
|
var tmp0_iterator_0 = this_1.j();
|
|
4425
4436
|
while (tmp0_iterator_0.k()) {
|
|
@@ -4455,7 +4466,7 @@
|
|
|
4455
4466
|
}
|
|
4456
4467
|
tmp_0 = destination_0;
|
|
4457
4468
|
} else {
|
|
4458
|
-
tmp_0 = action_0.
|
|
4469
|
+
tmp_0 = action_0.r9z_1;
|
|
4459
4470
|
}
|
|
4460
4471
|
var this_2 = tmp_0;
|
|
4461
4472
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4468,12 +4479,12 @@
|
|
|
4468
4479
|
destination_1.e(tmp$ret$10);
|
|
4469
4480
|
}
|
|
4470
4481
|
var spectatorsToAdd = toSet(destination_1);
|
|
4471
|
-
tmp = state.
|
|
4482
|
+
tmp = state.l8x(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
4472
4483
|
} else {
|
|
4473
4484
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
4474
4485
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
4475
4486
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
4476
|
-
var this_3 = action_0.
|
|
4487
|
+
var this_3 = action_0.s9z_1;
|
|
4477
4488
|
var destination_2 = ArrayList_init_$Create$_0();
|
|
4478
4489
|
// Inline function 'kotlin.collections.forEach' call
|
|
4479
4490
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -4494,10 +4505,10 @@
|
|
|
4494
4505
|
var tmp_2;
|
|
4495
4506
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4496
4507
|
if (!sameSpectators_0.p()) {
|
|
4497
|
-
this.
|
|
4508
|
+
this.fa1_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
4498
4509
|
// Inline function 'kotlin.collections.filterNot' call
|
|
4499
4510
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
4500
|
-
var this_4 = action_0.
|
|
4511
|
+
var this_4 = action_0.s9z_1;
|
|
4501
4512
|
var destination_3 = ArrayList_init_$Create$_0();
|
|
4502
4513
|
var tmp0_iterator_4 = this_4.j();
|
|
4503
4514
|
while (tmp0_iterator_4.k()) {
|
|
@@ -4533,7 +4544,7 @@
|
|
|
4533
4544
|
}
|
|
4534
4545
|
tmp_2 = destination_3;
|
|
4535
4546
|
} else {
|
|
4536
|
-
tmp_2 = action_0.
|
|
4547
|
+
tmp_2 = action_0.s9z_1;
|
|
4537
4548
|
}
|
|
4538
4549
|
var spectatorsToRemove = toSet(tmp_2);
|
|
4539
4550
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -4572,7 +4583,7 @@
|
|
|
4572
4583
|
destination_4.e(element_5);
|
|
4573
4584
|
}
|
|
4574
4585
|
}
|
|
4575
|
-
tmp = state.
|
|
4586
|
+
tmp = state.l8x(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
4576
4587
|
} else {
|
|
4577
4588
|
noWhenBranchMatchedException();
|
|
4578
4589
|
}
|
|
@@ -4580,16 +4591,16 @@
|
|
|
4580
4591
|
return tmp;
|
|
4581
4592
|
};
|
|
4582
4593
|
protoOf(_no_name_provided__qut3iv_6).z6l = function (state, action) {
|
|
4583
|
-
return this.
|
|
4594
|
+
return this.f9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4584
4595
|
};
|
|
4585
4596
|
function Companion_2() {
|
|
4586
4597
|
}
|
|
4587
|
-
protoOf(Companion_2).
|
|
4598
|
+
protoOf(Companion_2).ga1 = function (config) {
|
|
4588
4599
|
return new ServerStatePayload(config);
|
|
4589
4600
|
};
|
|
4590
4601
|
protoOf(Companion_2).initial = function (config, $super) {
|
|
4591
4602
|
config = config === VOID ? Companion_instance_8.initial(null) : config;
|
|
4592
|
-
return this.
|
|
4603
|
+
return this.ga1(config);
|
|
4593
4604
|
};
|
|
4594
4605
|
var Companion_instance_10;
|
|
4595
4606
|
function Companion_getInstance_3() {
|
|
@@ -4604,12 +4615,12 @@
|
|
|
4604
4615
|
protoOf(ServerStatePayload).ue = function () {
|
|
4605
4616
|
return this.config;
|
|
4606
4617
|
};
|
|
4607
|
-
protoOf(ServerStatePayload).
|
|
4618
|
+
protoOf(ServerStatePayload).ha1 = function (config) {
|
|
4608
4619
|
return new ServerStatePayload(config);
|
|
4609
4620
|
};
|
|
4610
4621
|
protoOf(ServerStatePayload).copy = function (config, $super) {
|
|
4611
4622
|
config = config === VOID ? this.config : config;
|
|
4612
|
-
return this.
|
|
4623
|
+
return this.ha1(config);
|
|
4613
4624
|
};
|
|
4614
4625
|
protoOf(ServerStatePayload).toString = function () {
|
|
4615
4626
|
return 'ServerStatePayload(config=' + this.config.toString() + ')';
|
|
@@ -4661,13 +4672,13 @@
|
|
|
4661
4672
|
}
|
|
4662
4673
|
function _get_logger__rkp4sl_1($this) {
|
|
4663
4674
|
// Inline function 'kotlin.getValue' call
|
|
4664
|
-
var this_0 = $this.
|
|
4675
|
+
var this_0 = $this.ra1_1;
|
|
4665
4676
|
logger$factory_3();
|
|
4666
4677
|
return this_0.u();
|
|
4667
4678
|
}
|
|
4668
4679
|
function _get_di__ndbzja($this) {
|
|
4669
4680
|
// Inline function 'kotlin.getValue' call
|
|
4670
|
-
var this_0 = $this.
|
|
4681
|
+
var this_0 = $this.sa1_1;
|
|
4671
4682
|
di$factory();
|
|
4672
4683
|
return this_0.u();
|
|
4673
4684
|
}
|
|
@@ -4678,13 +4689,13 @@
|
|
|
4678
4689
|
function GameServerEngineControllerImpl$logger$delegate$lambda(this$0) {
|
|
4679
4690
|
return function () {
|
|
4680
4691
|
var tmp;
|
|
4681
|
-
if (this$0.
|
|
4692
|
+
if (this$0.pa1_1 == null) {
|
|
4682
4693
|
tmp = null;
|
|
4683
4694
|
} else {
|
|
4684
4695
|
// Inline function 'kotlin.let' call
|
|
4685
4696
|
// Inline function 'kotlin.contracts.contract' call
|
|
4686
4697
|
// Inline function 'GameServerEngineControllerImpl.logger$delegate.<anonymous>.<anonymous>' call
|
|
4687
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4698
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.pa1_1)]));
|
|
4688
4699
|
}
|
|
4689
4700
|
var tmp1_elvis_lhs = tmp;
|
|
4690
4701
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4712,7 +4723,7 @@
|
|
|
4712
4723
|
tmp_0.g62(tmp$ret$3);
|
|
4713
4724
|
$this$DI.k5y(jsonModule());
|
|
4714
4725
|
$this$DI.k5y(serverHelpersModule());
|
|
4715
|
-
$this$DI.k5y(randomOrgModule(this$0.
|
|
4726
|
+
$this$DI.k5y(randomOrgModule(this$0.qa1_1));
|
|
4716
4727
|
return Unit_instance;
|
|
4717
4728
|
};
|
|
4718
4729
|
}
|
|
@@ -4723,16 +4734,16 @@
|
|
|
4723
4734
|
};
|
|
4724
4735
|
}
|
|
4725
4736
|
function _no_name_provided__qut3iv_7($item) {
|
|
4726
|
-
this.
|
|
4737
|
+
this.za1_1 = $item;
|
|
4727
4738
|
}
|
|
4728
4739
|
protoOf(_no_name_provided__qut3iv_7).h6k = function (action) {
|
|
4729
4740
|
return isInterface(action, Action);
|
|
4730
4741
|
};
|
|
4731
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4732
|
-
return this.
|
|
4742
|
+
protoOf(_no_name_provided__qut3iv_7).f9c = function (state, action) {
|
|
4743
|
+
return this.za1_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4733
4744
|
};
|
|
4734
4745
|
protoOf(_no_name_provided__qut3iv_7).z6l = function (state, action) {
|
|
4735
|
-
return this.
|
|
4746
|
+
return this.f9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4736
4747
|
};
|
|
4737
4748
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4738
4749
|
return function ($this$singleton) {
|
|
@@ -4789,7 +4800,7 @@
|
|
|
4789
4800
|
}
|
|
4790
4801
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4791
4802
|
return function (it) {
|
|
4792
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4803
|
+
var tmp0_elvis_lhs = Companion_instance_4.b9h(it);
|
|
4793
4804
|
var tmp;
|
|
4794
4805
|
if (tmp0_elvis_lhs == null) {
|
|
4795
4806
|
var tmp1_safe_receiver = $gameServer.v6b().b6r_1;
|
|
@@ -4802,7 +4813,7 @@
|
|
|
4802
4813
|
}
|
|
4803
4814
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4804
4815
|
return function (it) {
|
|
4805
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4816
|
+
var tmp0_elvis_lhs = Companion_instance_5.m9f(it);
|
|
4806
4817
|
var tmp;
|
|
4807
4818
|
if (tmp0_elvis_lhs == null) {
|
|
4808
4819
|
var tmp1_safe_receiver = $gameServer.v6b().b6r_1;
|
|
@@ -4824,7 +4835,7 @@
|
|
|
4824
4835
|
// Inline function 'kotlin.contracts.contract' call
|
|
4825
4836
|
$this$DI.k5y(tmp0_safe_receiver);
|
|
4826
4837
|
}
|
|
4827
|
-
$this$DI.k5y(dealerModule(this$0.randomPoolProvider, this$0.
|
|
4838
|
+
$this$DI.k5y(dealerModule(this$0.randomPoolProvider, this$0.qa1_1));
|
|
4828
4839
|
$this$DI.k5y(coreModule($coreConfig));
|
|
4829
4840
|
$this$DI.k5y(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4830
4841
|
return Unit_instance;
|
|
@@ -4833,89 +4844,89 @@
|
|
|
4833
4844
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4834
4845
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4835
4846
|
production = production === VOID ? true : production;
|
|
4836
|
-
this.
|
|
4837
|
-
this.
|
|
4847
|
+
this.pa1_1 = loggerCallback;
|
|
4848
|
+
this.qa1_1 = randomOrgConfig;
|
|
4838
4849
|
AppEnvironment_getInstance().k6q(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4839
4850
|
var tmp = this;
|
|
4840
|
-
tmp.
|
|
4851
|
+
tmp.ra1_1 = lazy(GameServerEngineControllerImpl$logger$delegate$lambda(this));
|
|
4841
4852
|
var tmp_0 = this;
|
|
4842
|
-
tmp_0.
|
|
4853
|
+
tmp_0.sa1_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4843
4854
|
var tmp_1 = this;
|
|
4844
4855
|
// Inline function 'org.kodein.di.instance' call
|
|
4845
4856
|
var this_0 = _get_di__ndbzja(this);
|
|
4846
4857
|
// Inline function 'org.kodein.type.generic' call
|
|
4847
4858
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4848
4859
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4849
|
-
tmp_1.
|
|
4860
|
+
tmp_1.ta1_1 = Instance(this_0, tmp$ret$0, null).d64(this, parser$factory());
|
|
4850
4861
|
var tmp_3 = this;
|
|
4851
4862
|
// Inline function 'org.kodein.di.instance' call
|
|
4852
4863
|
var this_1 = _get_di__ndbzja(this);
|
|
4853
4864
|
// Inline function 'org.kodein.type.generic' call
|
|
4854
4865
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4855
4866
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4856
|
-
tmp_3.
|
|
4867
|
+
tmp_3.ua1_1 = Instance(this_1, tmp$ret$2, null).d64(this, helper$factory());
|
|
4857
4868
|
var tmp_5 = this;
|
|
4858
4869
|
// Inline function 'org.kodein.di.instance' call
|
|
4859
4870
|
var this_2 = _get_di__ndbzja(this);
|
|
4860
4871
|
// Inline function 'org.kodein.type.generic' call
|
|
4861
4872
|
var tmp_6 = typeToken(createKType(getKClass(GameServerHelper), arrayOf([]), false));
|
|
4862
4873
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4863
|
-
tmp_5.
|
|
4874
|
+
tmp_5.va1_1 = Instance(this_2, tmp$ret$4, null).d64(this, serverHelper$factory());
|
|
4864
4875
|
var tmp_7 = this;
|
|
4865
4876
|
// Inline function 'org.kodein.di.instance' call
|
|
4866
4877
|
var this_3 = _get_di__ndbzja(this);
|
|
4867
4878
|
// Inline function 'org.kodein.type.generic' call
|
|
4868
4879
|
var tmp_8 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4869
4880
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4870
|
-
tmp_7.
|
|
4881
|
+
tmp_7.wa1_1 = Instance(this_3, tmp$ret$6, null).d64(this, resources$factory());
|
|
4871
4882
|
var tmp_9 = this;
|
|
4872
4883
|
// Inline function 'org.kodein.di.instance' call
|
|
4873
4884
|
var this_4 = _get_di__ndbzja(this);
|
|
4874
4885
|
// Inline function 'org.kodein.type.generic' call
|
|
4875
4886
|
var tmp_10 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4876
4887
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4877
|
-
tmp_9.
|
|
4888
|
+
tmp_9.xa1_1 = Instance(this_4, tmp$ret$8, null).d64(this, test$factory());
|
|
4878
4889
|
var tmp_11 = this;
|
|
4879
4890
|
// Inline function 'org.kodein.di.instance' call
|
|
4880
4891
|
var this_5 = _get_di__ndbzja(this);
|
|
4881
4892
|
// Inline function 'org.kodein.type.generic' call
|
|
4882
4893
|
var tmp_12 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4883
4894
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
4884
|
-
tmp_11.
|
|
4895
|
+
tmp_11.ya1_1 = Instance(this_5, tmp$ret$10, null).d64(this, randomPoolProvider$factory());
|
|
4885
4896
|
}
|
|
4886
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4897
|
+
protoOf(GameServerEngineControllerImpl).ia1 = function () {
|
|
4887
4898
|
// Inline function 'kotlin.getValue' call
|
|
4888
|
-
var this_0 = this.
|
|
4899
|
+
var this_0 = this.ta1_1;
|
|
4889
4900
|
parser$factory_0();
|
|
4890
4901
|
return this_0.u();
|
|
4891
4902
|
};
|
|
4892
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4903
|
+
protoOf(GameServerEngineControllerImpl).ka1 = function () {
|
|
4893
4904
|
// Inline function 'kotlin.getValue' call
|
|
4894
|
-
var this_0 = this.
|
|
4905
|
+
var this_0 = this.ua1_1;
|
|
4895
4906
|
helper$factory_0();
|
|
4896
4907
|
return this_0.u();
|
|
4897
4908
|
};
|
|
4898
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4909
|
+
protoOf(GameServerEngineControllerImpl).la1 = function () {
|
|
4899
4910
|
// Inline function 'kotlin.getValue' call
|
|
4900
|
-
var this_0 = this.
|
|
4911
|
+
var this_0 = this.va1_1;
|
|
4901
4912
|
serverHelper$factory_0();
|
|
4902
4913
|
return this_0.u();
|
|
4903
4914
|
};
|
|
4904
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4915
|
+
protoOf(GameServerEngineControllerImpl).ma1 = function () {
|
|
4905
4916
|
// Inline function 'kotlin.getValue' call
|
|
4906
|
-
var this_0 = this.
|
|
4917
|
+
var this_0 = this.wa1_1;
|
|
4907
4918
|
resources$factory_0();
|
|
4908
4919
|
return this_0.u();
|
|
4909
4920
|
};
|
|
4910
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4921
|
+
protoOf(GameServerEngineControllerImpl).ja1 = function () {
|
|
4911
4922
|
// Inline function 'kotlin.getValue' call
|
|
4912
|
-
var this_0 = this.
|
|
4923
|
+
var this_0 = this.xa1_1;
|
|
4913
4924
|
test$factory_0();
|
|
4914
4925
|
return this_0.u();
|
|
4915
4926
|
};
|
|
4916
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4927
|
+
protoOf(GameServerEngineControllerImpl).na1 = function () {
|
|
4917
4928
|
// Inline function 'kotlin.getValue' call
|
|
4918
|
-
var this_0 = this.
|
|
4929
|
+
var this_0 = this.ya1_1;
|
|
4919
4930
|
randomPoolProvider$factory_0();
|
|
4920
4931
|
return this_0.u();
|
|
4921
4932
|
};
|
|
@@ -4925,7 +4936,7 @@
|
|
|
4925
4936
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4926
4937
|
return this.createGameEngineWithLogic();
|
|
4927
4938
|
};
|
|
4928
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4939
|
+
protoOf(GameServerEngineControllerImpl).oa1 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4929
4940
|
var combinedLogger = Companion_instance_6.fn();
|
|
4930
4941
|
var tmp;
|
|
4931
4942
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -4935,8 +4946,8 @@
|
|
|
4935
4946
|
}
|
|
4936
4947
|
var fileLoggerOutput = tmp;
|
|
4937
4948
|
var tmp_0;
|
|
4938
|
-
if (!(this.
|
|
4939
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4949
|
+
if (!(this.pa1_1 == null)) {
|
|
4950
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.pa1_1));
|
|
4940
4951
|
} else {
|
|
4941
4952
|
tmp_0 = null;
|
|
4942
4953
|
}
|
|
@@ -4979,12 +4990,12 @@
|
|
|
4979
4990
|
var gameServer = tmp_1.u5z(tmp$ret$7, null);
|
|
4980
4991
|
if (!(fileLoggerOutput == null)) {
|
|
4981
4992
|
var tmp_3 = fileLoggerOutput;
|
|
4982
|
-
tmp_3.
|
|
4993
|
+
tmp_3.q9g_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4983
4994
|
combinedLogger.hn(fileLoggerOutput);
|
|
4984
4995
|
}
|
|
4985
4996
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4986
4997
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4987
|
-
tmp_4.
|
|
4998
|
+
tmp_4.o9f_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4988
4999
|
combinedLogger.hn(callbackWrapperLoggerOutput);
|
|
4989
5000
|
}
|
|
4990
5001
|
return gameServer;
|
|
@@ -5070,13 +5081,13 @@
|
|
|
5070
5081
|
}
|
|
5071
5082
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
5072
5083
|
// Inline function 'kotlin.getValue' call
|
|
5073
|
-
var this_0 = $this.
|
|
5084
|
+
var this_0 = $this.ca2_1;
|
|
5074
5085
|
playerAnswerInteractor$factory_0();
|
|
5075
5086
|
return this_0.u();
|
|
5076
5087
|
}
|
|
5077
5088
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5078
5089
|
return function ($this$singleton) {
|
|
5079
|
-
return this$0.
|
|
5090
|
+
return this$0.aa2_1;
|
|
5080
5091
|
};
|
|
5081
5092
|
}
|
|
5082
5093
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5105,20 +5116,20 @@
|
|
|
5105
5116
|
return emptyMap();
|
|
5106
5117
|
}
|
|
5107
5118
|
function TestHelperImpl(logger) {
|
|
5108
|
-
this.
|
|
5119
|
+
this.aa2_1 = logger;
|
|
5109
5120
|
var tmp = this;
|
|
5110
5121
|
var tmp_0 = Companion_instance_3;
|
|
5111
|
-
tmp.
|
|
5122
|
+
tmp.ba2_1 = tmp_0.r5y(VOID, TestHelperImpl$di$lambda(this));
|
|
5112
5123
|
var tmp_1 = this;
|
|
5113
5124
|
// Inline function 'org.kodein.di.instance' call
|
|
5114
|
-
var this_0 = this.
|
|
5125
|
+
var this_0 = this.ba2_1;
|
|
5115
5126
|
// Inline function 'org.kodein.type.generic' call
|
|
5116
5127
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5117
5128
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5118
|
-
tmp_1.
|
|
5129
|
+
tmp_1.ca2_1 = Instance(this_0, tmp$ret$0, null).d64(this, playerAnswerInteractor$factory());
|
|
5119
5130
|
}
|
|
5120
5131
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5121
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
5132
|
+
return _get_playerAnswerInteractor__msggz1(this).k8n(playerId, table, botConfig);
|
|
5122
5133
|
};
|
|
5123
5134
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
5124
5135
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -5126,7 +5137,7 @@
|
|
|
5126
5137
|
var tmp$ret$0;
|
|
5127
5138
|
$l$block_0: {
|
|
5128
5139
|
// Inline function 'kotlin.collections.any' call
|
|
5129
|
-
var this_0 = mechanicAction.
|
|
5140
|
+
var this_0 = mechanicAction.d91();
|
|
5130
5141
|
var tmp;
|
|
5131
5142
|
if (isInterface(this_0, Collection)) {
|
|
5132
5143
|
tmp = this_0.p();
|
|
@@ -5159,7 +5170,7 @@
|
|
|
5159
5170
|
var tmp$ret$0;
|
|
5160
5171
|
$l$block_0: {
|
|
5161
5172
|
// Inline function 'kotlin.collections.any' call
|
|
5162
|
-
var this_0 = action.
|
|
5173
|
+
var this_0 = action.d91();
|
|
5163
5174
|
var tmp;
|
|
5164
5175
|
if (isInterface(this_0, Collection)) {
|
|
5165
5176
|
tmp = this_0.p();
|
|
@@ -5280,22 +5291,22 @@
|
|
|
5280
5291
|
});
|
|
5281
5292
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5282
5293
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5283
|
-
return this.
|
|
5294
|
+
return this.ia1();
|
|
5284
5295
|
});
|
|
5285
5296
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5286
|
-
return this.
|
|
5297
|
+
return this.ka1();
|
|
5287
5298
|
});
|
|
5288
5299
|
defineProp(protoOf(GameServerEngineControllerImpl), 'serverHelper', function () {
|
|
5289
|
-
return this.
|
|
5300
|
+
return this.la1();
|
|
5290
5301
|
});
|
|
5291
5302
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5292
|
-
return this.
|
|
5303
|
+
return this.ma1();
|
|
5293
5304
|
});
|
|
5294
5305
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5295
|
-
return this.
|
|
5306
|
+
return this.ja1();
|
|
5296
5307
|
});
|
|
5297
5308
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5298
|
-
return this.
|
|
5309
|
+
return this.na1();
|
|
5299
5310
|
});
|
|
5300
5311
|
//endregion
|
|
5301
5312
|
//region block: init
|