raspberry_games_server_game_logic 1.8.250 → 1.8.253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +6330 -6465
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +5 -3
- package/Logic_Debertz-game_server.js +521 -496
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
|
@@ -79,6 +79,8 @@
|
|
|
79
79
|
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
80
80
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
|
|
81
81
|
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.n3;
|
|
82
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
83
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
82
84
|
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
|
|
83
85
|
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.s2;
|
|
84
86
|
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
|
|
@@ -130,7 +132,6 @@
|
|
|
130
132
|
var single = kotlin_kotlin.$_$.i9;
|
|
131
133
|
var copyToArray = kotlin_kotlin.$_$.i7;
|
|
132
134
|
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
|
|
133
|
-
var toString = kotlin_kotlin.$_$.yc;
|
|
134
135
|
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
135
136
|
var KtList = kotlin_kotlin.$_$.x5;
|
|
136
137
|
var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
@@ -222,7 +223,6 @@
|
|
|
222
223
|
var toSet = kotlin_kotlin.$_$.z9;
|
|
223
224
|
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.h;
|
|
224
225
|
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
225
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
226
226
|
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.k;
|
|
227
227
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
|
|
228
228
|
var RandomOrgConfig = kotlin_io_raspberryapps_cardgame_random.$_$.b;
|
|
@@ -281,7 +281,8 @@
|
|
|
281
281
|
initMetadataForLambda(GameServer$roomOnDelete$slambda, CoroutineImpl, VOID, [2]);
|
|
282
282
|
initMetadataForLambda(GameServer$setCanStartNewGameEnabled$slambda, CoroutineImpl, VOID, [2]);
|
|
283
283
|
initMetadataForLambda(GameServer$shutdown$slambda, CoroutineImpl, VOID, [2]);
|
|
284
|
-
function roomOnCreate(roomId, gameCreatorId, config, users, spectators, $super) {
|
|
284
|
+
function roomOnCreate(roomId, gameCreatorId, config, users, transition, spectators, $super) {
|
|
285
|
+
transition = transition === VOID ? null : transition;
|
|
285
286
|
var tmp;
|
|
286
287
|
if (spectators === VOID) {
|
|
287
288
|
// Inline function 'kotlin.emptyArray' call
|
|
@@ -290,15 +291,15 @@
|
|
|
290
291
|
tmp = spectators;
|
|
291
292
|
}
|
|
292
293
|
spectators = tmp;
|
|
293
|
-
return this.
|
|
294
|
+
return this.q9d(roomId, gameCreatorId, config, users, transition, spectators);
|
|
294
295
|
}
|
|
295
296
|
function roomOnDelete(newRid, $super) {
|
|
296
297
|
newRid = newRid === VOID ? null : newRid;
|
|
297
|
-
return this.
|
|
298
|
+
return this.r9d(newRid);
|
|
298
299
|
}
|
|
299
300
|
function shutdown(reason, roomId, $super) {
|
|
300
301
|
roomId = roomId === VOID ? null : roomId;
|
|
301
|
-
return this.
|
|
302
|
+
return this.s9d(reason, roomId);
|
|
302
303
|
}
|
|
303
304
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
304
305
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -348,7 +349,7 @@
|
|
|
348
349
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
349
350
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
350
351
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
351
|
-
return this.
|
|
352
|
+
return this.y9h(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
352
353
|
}
|
|
353
354
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
354
355
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -357,17 +358,17 @@
|
|
|
357
358
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
358
359
|
//endregion
|
|
359
360
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
360
|
-
this.
|
|
361
|
+
this.c96_1 = $subscriber;
|
|
361
362
|
CoroutineImpl.call(this, resultContinuation);
|
|
362
363
|
}
|
|
363
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
364
|
-
var tmp = this.
|
|
364
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).e96 = function (it, $completion) {
|
|
365
|
+
var tmp = this.f96(it, $completion);
|
|
365
366
|
tmp.g9_1 = Unit_instance;
|
|
366
367
|
tmp.h9_1 = null;
|
|
367
368
|
return tmp.m9();
|
|
368
369
|
};
|
|
369
370
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
370
|
-
return this.
|
|
371
|
+
return this.e96(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
371
372
|
};
|
|
372
373
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
373
374
|
var suspendResult = this.g9_1;
|
|
@@ -376,7 +377,7 @@
|
|
|
376
377
|
var tmp = this.e9_1;
|
|
377
378
|
if (tmp === 0) {
|
|
378
379
|
this.f9_1 = 1;
|
|
379
|
-
this.
|
|
380
|
+
this.c96_1(this.d96_1);
|
|
380
381
|
return Unit_instance;
|
|
381
382
|
} else if (tmp === 1) {
|
|
382
383
|
throw this.h9_1;
|
|
@@ -387,31 +388,31 @@
|
|
|
387
388
|
}
|
|
388
389
|
while (true);
|
|
389
390
|
};
|
|
390
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
391
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
392
|
-
i.
|
|
391
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).f96 = function (it, completion) {
|
|
392
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.c96_1, completion);
|
|
393
|
+
i.d96_1 = it;
|
|
393
394
|
return i;
|
|
394
395
|
};
|
|
395
396
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
396
397
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
397
398
|
var l = function (it, $completion) {
|
|
398
|
-
return i.
|
|
399
|
+
return i.e96(it, $completion);
|
|
399
400
|
};
|
|
400
401
|
l.$arity = 1;
|
|
401
402
|
return l;
|
|
402
403
|
}
|
|
403
404
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
404
|
-
this.
|
|
405
|
+
this.o96_1 = $subscriber;
|
|
405
406
|
CoroutineImpl.call(this, resultContinuation);
|
|
406
407
|
}
|
|
407
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
408
|
-
var tmp = this.
|
|
408
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).q96 = function (it, $completion) {
|
|
409
|
+
var tmp = this.r96(it, $completion);
|
|
409
410
|
tmp.g9_1 = Unit_instance;
|
|
410
411
|
tmp.h9_1 = null;
|
|
411
412
|
return tmp.m9();
|
|
412
413
|
};
|
|
413
414
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
414
|
-
return this.
|
|
415
|
+
return this.q96(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
415
416
|
};
|
|
416
417
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
417
418
|
var suspendResult = this.g9_1;
|
|
@@ -420,7 +421,7 @@
|
|
|
420
421
|
var tmp = this.e9_1;
|
|
421
422
|
if (tmp === 0) {
|
|
422
423
|
this.f9_1 = 1;
|
|
423
|
-
this.
|
|
424
|
+
this.o96_1(this.p96_1);
|
|
424
425
|
return Unit_instance;
|
|
425
426
|
} else if (tmp === 1) {
|
|
426
427
|
throw this.h9_1;
|
|
@@ -431,58 +432,58 @@
|
|
|
431
432
|
}
|
|
432
433
|
while (true);
|
|
433
434
|
};
|
|
434
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
435
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
436
|
-
i.
|
|
435
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).r96 = function (it, completion) {
|
|
436
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.o96_1, completion);
|
|
437
|
+
i.p96_1 = it;
|
|
437
438
|
return i;
|
|
438
439
|
};
|
|
439
440
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
440
441
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
441
442
|
var l = function (it, $completion) {
|
|
442
|
-
return i.
|
|
443
|
+
return i.q96(it, $completion);
|
|
443
444
|
};
|
|
444
445
|
l.$arity = 1;
|
|
445
446
|
return l;
|
|
446
447
|
}
|
|
447
448
|
function _get_logger__rkp4sl($this) {
|
|
448
449
|
// Inline function 'kotlin.getValue' call
|
|
449
|
-
var this_0 = $this.
|
|
450
|
+
var this_0 = $this.u96_1;
|
|
450
451
|
logger$factory_0();
|
|
451
452
|
return this_0.u();
|
|
452
453
|
}
|
|
453
454
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
454
455
|
// Inline function 'kotlin.getValue' call
|
|
455
|
-
var this_0 = $this.
|
|
456
|
+
var this_0 = $this.v96_1;
|
|
456
457
|
toClientEventsObserver$factory_0();
|
|
457
458
|
return this_0.u();
|
|
458
459
|
}
|
|
459
460
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
460
461
|
// Inline function 'kotlin.getValue' call
|
|
461
|
-
var this_0 = $this.
|
|
462
|
+
var this_0 = $this.w96_1;
|
|
462
463
|
playerConnectionInteractor$factory_0();
|
|
463
464
|
return this_0.u();
|
|
464
465
|
}
|
|
465
466
|
function _get_random__h29cgo($this) {
|
|
466
467
|
// Inline function 'kotlin.getValue' call
|
|
467
|
-
var this_0 = $this.
|
|
468
|
+
var this_0 = $this.x96_1;
|
|
468
469
|
random$factory();
|
|
469
470
|
return this_0.u();
|
|
470
471
|
}
|
|
471
472
|
function Companion() {
|
|
472
|
-
this.
|
|
473
|
+
this.z96_1 = 'GameEngine_API';
|
|
473
474
|
}
|
|
474
475
|
var Companion_instance_7;
|
|
475
476
|
function Companion_getInstance_0() {
|
|
476
477
|
return Companion_instance_7;
|
|
477
478
|
}
|
|
478
479
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
479
|
-
this.
|
|
480
|
+
this.a97_1 = function_0;
|
|
480
481
|
}
|
|
481
482
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
482
|
-
return this.
|
|
483
|
+
return this.a97_1(value, $completion);
|
|
483
484
|
};
|
|
484
485
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
485
|
-
return this.
|
|
486
|
+
return this.a97_1;
|
|
486
487
|
};
|
|
487
488
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
488
489
|
var tmp;
|
|
@@ -503,13 +504,13 @@
|
|
|
503
504
|
return hashCode(this.o3());
|
|
504
505
|
};
|
|
505
506
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
506
|
-
this.
|
|
507
|
+
this.b97_1 = function_0;
|
|
507
508
|
}
|
|
508
509
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
509
|
-
return this.
|
|
510
|
+
return this.b97_1(value, $completion);
|
|
510
511
|
};
|
|
511
512
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
512
|
-
return this.
|
|
513
|
+
return this.b97_1;
|
|
513
514
|
};
|
|
514
515
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
515
516
|
var tmp;
|
|
@@ -535,8 +536,8 @@
|
|
|
535
536
|
};
|
|
536
537
|
}
|
|
537
538
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
538
|
-
this.
|
|
539
|
-
this.
|
|
539
|
+
this.k97_1 = this$0;
|
|
540
|
+
this.l97_1 = $subscriber;
|
|
540
541
|
CoroutineImpl.call(this, resultContinuation);
|
|
541
542
|
}
|
|
542
543
|
protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -557,8 +558,8 @@
|
|
|
557
558
|
case 0:
|
|
558
559
|
this.f9_1 = 2;
|
|
559
560
|
this.e9_1 = 1;
|
|
560
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
561
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
561
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.k97_1).n97();
|
|
562
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.l97_1, null);
|
|
562
563
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
563
564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
564
565
|
return suspendResult;
|
|
@@ -582,8 +583,8 @@
|
|
|
582
583
|
while (true);
|
|
583
584
|
};
|
|
584
585
|
protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
|
|
585
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
586
|
-
i.
|
|
586
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.k97_1, this.l97_1, completion);
|
|
587
|
+
i.m97_1 = $this$launchDefault;
|
|
587
588
|
return i;
|
|
588
589
|
};
|
|
589
590
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -595,8 +596,8 @@
|
|
|
595
596
|
return l;
|
|
596
597
|
}
|
|
597
598
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
599
|
+
this.w97_1 = this$0;
|
|
600
|
+
this.x97_1 = $subscriber;
|
|
600
601
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
602
|
}
|
|
602
603
|
protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -617,8 +618,8 @@
|
|
|
617
618
|
case 0:
|
|
618
619
|
this.f9_1 = 2;
|
|
619
620
|
this.e9_1 = 1;
|
|
620
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
621
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
621
|
+
var tmp_0 = distinctUntilChanged(this.w97_1.x6l());
|
|
622
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.x97_1, null);
|
|
622
623
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
623
624
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
624
625
|
return suspendResult;
|
|
@@ -642,8 +643,8 @@
|
|
|
642
643
|
while (true);
|
|
643
644
|
};
|
|
644
645
|
protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
|
|
645
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
646
|
-
i.
|
|
646
|
+
var i = new GameServer$subscribeWith$slambda(this.w97_1, this.x97_1, completion);
|
|
647
|
+
i.y97_1 = $this$launchDefault;
|
|
647
648
|
return i;
|
|
648
649
|
};
|
|
649
650
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -655,18 +656,18 @@
|
|
|
655
656
|
return l;
|
|
656
657
|
}
|
|
657
658
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
658
|
-
this.
|
|
659
|
+
this.h98_1 = $action;
|
|
659
660
|
CoroutineImpl.call(this, resultContinuation);
|
|
660
661
|
}
|
|
661
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
662
|
-
var tmp = this.
|
|
662
|
+
protoOf(GameServer$fromClientEvent$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
663
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
663
664
|
tmp.g9_1 = Unit_instance;
|
|
664
665
|
tmp.h9_1 = null;
|
|
665
666
|
return tmp.m9();
|
|
666
667
|
};
|
|
667
668
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
668
669
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
669
|
-
return this.
|
|
670
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
670
671
|
};
|
|
671
672
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
672
673
|
var suspendResult = this.g9_1;
|
|
@@ -675,11 +676,11 @@
|
|
|
675
676
|
var tmp = this.e9_1;
|
|
676
677
|
if (tmp === 0) {
|
|
677
678
|
this.f9_1 = 1;
|
|
678
|
-
if (this.
|
|
679
|
-
if (!get_isCreated(this.
|
|
679
|
+
if (this.h98_1 instanceof PlayerReadyFromClientAction)
|
|
680
|
+
if (!get_isCreated(this.j98_1.state)) {
|
|
680
681
|
return Unit_instance;
|
|
681
682
|
}
|
|
682
|
-
this.
|
|
683
|
+
this.j98_1.dispatch(this.h98_1);
|
|
683
684
|
return Unit_instance;
|
|
684
685
|
} else if (tmp === 1) {
|
|
685
686
|
throw this.h9_1;
|
|
@@ -690,33 +691,33 @@
|
|
|
690
691
|
}
|
|
691
692
|
while (true);
|
|
692
693
|
};
|
|
693
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
694
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
695
|
-
i.
|
|
696
|
-
i.
|
|
694
|
+
protoOf(GameServer$fromClientEvent$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
695
|
+
var i = new GameServer$fromClientEvent$slambda(this.h98_1, completion);
|
|
696
|
+
i.i98_1 = $this$dispatchAsync;
|
|
697
|
+
i.j98_1 = store;
|
|
697
698
|
return i;
|
|
698
699
|
};
|
|
699
700
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
700
701
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
701
702
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
702
|
-
return i.
|
|
703
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
703
704
|
};
|
|
704
705
|
l.$arity = 2;
|
|
705
706
|
return l;
|
|
706
707
|
}
|
|
707
708
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
708
|
-
this.
|
|
709
|
+
this.u98_1 = $playerId;
|
|
709
710
|
CoroutineImpl.call(this, resultContinuation);
|
|
710
711
|
}
|
|
711
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
712
|
-
var tmp = this.
|
|
712
|
+
protoOf(GameServer$playerLostConnection$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
713
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
713
714
|
tmp.g9_1 = Unit_instance;
|
|
714
715
|
tmp.h9_1 = null;
|
|
715
716
|
return tmp.m9();
|
|
716
717
|
};
|
|
717
718
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
718
719
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
719
|
-
return this.
|
|
720
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
720
721
|
};
|
|
721
722
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
722
723
|
var suspendResult = this.g9_1;
|
|
@@ -725,12 +726,12 @@
|
|
|
725
726
|
var tmp = this.e9_1;
|
|
726
727
|
if (tmp === 0) {
|
|
727
728
|
this.f9_1 = 1;
|
|
728
|
-
if (!get_isCreated(this.
|
|
729
|
+
if (!get_isCreated(this.w98_1.state)) {
|
|
729
730
|
return Unit_instance;
|
|
730
731
|
}
|
|
731
|
-
var tmp_0 = this.
|
|
732
|
+
var tmp_0 = this.w98_1.dispatch;
|
|
732
733
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
733
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
734
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.u98_1));
|
|
734
735
|
return Unit_instance;
|
|
735
736
|
} else if (tmp === 1) {
|
|
736
737
|
throw this.h9_1;
|
|
@@ -741,33 +742,33 @@
|
|
|
741
742
|
}
|
|
742
743
|
while (true);
|
|
743
744
|
};
|
|
744
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
745
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
746
|
-
i.
|
|
747
|
-
i.
|
|
745
|
+
protoOf(GameServer$playerLostConnection$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
746
|
+
var i = new GameServer$playerLostConnection$slambda(this.u98_1, completion);
|
|
747
|
+
i.v98_1 = $this$dispatchAsync;
|
|
748
|
+
i.w98_1 = store;
|
|
748
749
|
return i;
|
|
749
750
|
};
|
|
750
751
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
751
752
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
752
753
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
753
|
-
return i.
|
|
754
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
754
755
|
};
|
|
755
756
|
l.$arity = 2;
|
|
756
757
|
return l;
|
|
757
758
|
}
|
|
758
759
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
759
|
-
this.
|
|
760
|
+
this.f99_1 = $playerId;
|
|
760
761
|
CoroutineImpl.call(this, resultContinuation);
|
|
761
762
|
}
|
|
762
|
-
protoOf(GameServer$playerLive$slambda).
|
|
763
|
-
var tmp = this.
|
|
763
|
+
protoOf(GameServer$playerLive$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
764
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
764
765
|
tmp.g9_1 = Unit_instance;
|
|
765
766
|
tmp.h9_1 = null;
|
|
766
767
|
return tmp.m9();
|
|
767
768
|
};
|
|
768
769
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
769
770
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
770
|
-
return this.
|
|
771
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
771
772
|
};
|
|
772
773
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
773
774
|
var suspendResult = this.g9_1;
|
|
@@ -776,9 +777,9 @@
|
|
|
776
777
|
var tmp = this.e9_1;
|
|
777
778
|
if (tmp === 0) {
|
|
778
779
|
this.f9_1 = 1;
|
|
779
|
-
var tmp_0 = this.
|
|
780
|
+
var tmp_0 = this.h99_1.dispatch;
|
|
780
781
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
781
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
782
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.f99_1));
|
|
782
783
|
return Unit_instance;
|
|
783
784
|
} else if (tmp === 1) {
|
|
784
785
|
throw this.h9_1;
|
|
@@ -789,33 +790,33 @@
|
|
|
789
790
|
}
|
|
790
791
|
while (true);
|
|
791
792
|
};
|
|
792
|
-
protoOf(GameServer$playerLive$slambda).
|
|
793
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
794
|
-
i.
|
|
795
|
-
i.
|
|
793
|
+
protoOf(GameServer$playerLive$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
794
|
+
var i = new GameServer$playerLive$slambda(this.f99_1, completion);
|
|
795
|
+
i.g99_1 = $this$dispatchAsync;
|
|
796
|
+
i.h99_1 = store;
|
|
796
797
|
return i;
|
|
797
798
|
};
|
|
798
799
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
799
800
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
800
801
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
801
|
-
return i.
|
|
802
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
802
803
|
};
|
|
803
804
|
l.$arity = 2;
|
|
804
805
|
return l;
|
|
805
806
|
}
|
|
806
807
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
807
|
-
this.
|
|
808
|
+
this.q99_1 = $playerId;
|
|
808
809
|
CoroutineImpl.call(this, resultContinuation);
|
|
809
810
|
}
|
|
810
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
811
|
-
var tmp = this.
|
|
811
|
+
protoOf(GameServer$playerLeft$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
812
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
812
813
|
tmp.g9_1 = Unit_instance;
|
|
813
814
|
tmp.h9_1 = null;
|
|
814
815
|
return tmp.m9();
|
|
815
816
|
};
|
|
816
817
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
817
818
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
818
|
-
return this.
|
|
819
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
819
820
|
};
|
|
820
821
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
821
822
|
var suspendResult = this.g9_1;
|
|
@@ -824,9 +825,9 @@
|
|
|
824
825
|
var tmp = this.e9_1;
|
|
825
826
|
if (tmp === 0) {
|
|
826
827
|
this.f9_1 = 1;
|
|
827
|
-
var tmp_0 = this.
|
|
828
|
+
var tmp_0 = this.s99_1.dispatch;
|
|
828
829
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
829
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
830
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.q99_1));
|
|
830
831
|
return Unit_instance;
|
|
831
832
|
} else if (tmp === 1) {
|
|
832
833
|
throw this.h9_1;
|
|
@@ -837,38 +838,38 @@
|
|
|
837
838
|
}
|
|
838
839
|
while (true);
|
|
839
840
|
};
|
|
840
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
841
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
842
|
-
i.
|
|
843
|
-
i.
|
|
841
|
+
protoOf(GameServer$playerLeft$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
842
|
+
var i = new GameServer$playerLeft$slambda(this.q99_1, completion);
|
|
843
|
+
i.r99_1 = $this$dispatchAsync;
|
|
844
|
+
i.s99_1 = store;
|
|
844
845
|
return i;
|
|
845
846
|
};
|
|
846
847
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
847
848
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
848
849
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
849
|
-
return i.
|
|
850
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
850
851
|
};
|
|
851
852
|
l.$arity = 2;
|
|
852
853
|
return l;
|
|
853
854
|
}
|
|
854
855
|
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
856
|
+
this.b9a_1 = $users;
|
|
857
|
+
this.c9a_1 = $gameCreatorId;
|
|
858
|
+
this.d9a_1 = this$0;
|
|
859
|
+
this.e9a_1 = $spectators;
|
|
860
|
+
this.f9a_1 = $config;
|
|
861
|
+
this.g9a_1 = $roomId;
|
|
861
862
|
CoroutineImpl.call(this, resultContinuation);
|
|
862
863
|
}
|
|
863
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
864
|
-
var tmp = this.
|
|
864
|
+
protoOf(GameServer$roomOnCreate$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
865
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
865
866
|
tmp.g9_1 = Unit_instance;
|
|
866
867
|
tmp.h9_1 = null;
|
|
867
868
|
return tmp.m9();
|
|
868
869
|
};
|
|
869
870
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
870
871
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
871
|
-
return this.
|
|
872
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
872
873
|
};
|
|
873
874
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
874
875
|
var suspendResult = this.g9_1;
|
|
@@ -877,13 +878,13 @@
|
|
|
877
878
|
var tmp = this.e9_1;
|
|
878
879
|
if (tmp === 0) {
|
|
879
880
|
this.f9_1 = 1;
|
|
880
|
-
var usersList = toList(this.
|
|
881
|
-
var gameCreatorUser = getPlayer(usersList, this.
|
|
882
|
-
var tmp_0 = this.
|
|
881
|
+
var usersList = toList(this.b9a_1);
|
|
882
|
+
var gameCreatorUser = getPlayer(usersList, this.c9a_1);
|
|
883
|
+
var tmp_0 = this.i9a_1.dispatch;
|
|
883
884
|
var tmp0_version = GameEngineConfig_instance.version;
|
|
884
|
-
var tmp1_users = sortWithItem(_get_random__h29cgo(this.
|
|
885
|
-
var tmp2_spectators = toList(this.
|
|
886
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
885
|
+
var tmp1_users = sortWithItem(_get_random__h29cgo(this.d9a_1).s5s(toMutableList(usersList)), gameCreatorUser);
|
|
886
|
+
var tmp2_spectators = toList(this.e9a_1);
|
|
887
|
+
tmp_0(new StartGameMechanicAction(this.f9a_1, this.g9a_1, tmp0_version, this.c9a_1, tmp1_users, VOID, tmp2_spectators));
|
|
887
888
|
return Unit_instance;
|
|
888
889
|
} else if (tmp === 1) {
|
|
889
890
|
throw this.h9_1;
|
|
@@ -894,33 +895,33 @@
|
|
|
894
895
|
}
|
|
895
896
|
while (true);
|
|
896
897
|
};
|
|
897
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
898
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
899
|
-
i.
|
|
900
|
-
i.
|
|
898
|
+
protoOf(GameServer$roomOnCreate$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
899
|
+
var i = new GameServer$roomOnCreate$slambda(this.b9a_1, this.c9a_1, this.d9a_1, this.e9a_1, this.f9a_1, this.g9a_1, completion);
|
|
900
|
+
i.h9a_1 = $this$dispatchAsync;
|
|
901
|
+
i.i9a_1 = store;
|
|
901
902
|
return i;
|
|
902
903
|
};
|
|
903
904
|
function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
904
905
|
var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation);
|
|
905
906
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
906
|
-
return i.
|
|
907
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
907
908
|
};
|
|
908
909
|
l.$arity = 2;
|
|
909
910
|
return l;
|
|
910
911
|
}
|
|
911
912
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
912
|
-
this.
|
|
913
|
+
this.r9a_1 = $tableLite;
|
|
913
914
|
CoroutineImpl.call(this, resultContinuation);
|
|
914
915
|
}
|
|
915
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
916
|
-
var tmp = this.
|
|
916
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
917
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
917
918
|
tmp.g9_1 = Unit_instance;
|
|
918
919
|
tmp.h9_1 = null;
|
|
919
920
|
return tmp.m9();
|
|
920
921
|
};
|
|
921
922
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
922
923
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
923
|
-
return this.
|
|
924
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
924
925
|
};
|
|
925
926
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
926
927
|
var suspendResult = this.g9_1;
|
|
@@ -929,11 +930,11 @@
|
|
|
929
930
|
var tmp = this.e9_1;
|
|
930
931
|
if (tmp === 0) {
|
|
931
932
|
this.f9_1 = 1;
|
|
932
|
-
var tmp_0 = this.
|
|
933
|
+
var tmp_0 = this.t9a_1.dispatch;
|
|
933
934
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
934
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
935
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.r9a_1);
|
|
935
936
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
936
|
-
this.
|
|
937
|
+
this.t9a_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
937
938
|
return Unit_instance;
|
|
938
939
|
} else if (tmp === 1) {
|
|
939
940
|
throw this.h9_1;
|
|
@@ -944,33 +945,33 @@
|
|
|
944
945
|
}
|
|
945
946
|
while (true);
|
|
946
947
|
};
|
|
947
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
948
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
949
|
-
i.
|
|
950
|
-
i.
|
|
948
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
949
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.r9a_1, completion);
|
|
950
|
+
i.s9a_1 = $this$dispatchAsync;
|
|
951
|
+
i.t9a_1 = store;
|
|
951
952
|
return i;
|
|
952
953
|
};
|
|
953
954
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
954
955
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
955
956
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
956
|
-
return i.
|
|
957
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
957
958
|
};
|
|
958
959
|
l.$arity = 2;
|
|
959
960
|
return l;
|
|
960
961
|
}
|
|
961
962
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
962
|
-
this.
|
|
963
|
+
this.c9b_1 = $spectators;
|
|
963
964
|
CoroutineImpl.call(this, resultContinuation);
|
|
964
965
|
}
|
|
965
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
966
|
-
var tmp = this.
|
|
966
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
967
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
967
968
|
tmp.g9_1 = Unit_instance;
|
|
968
969
|
tmp.h9_1 = null;
|
|
969
970
|
return tmp.m9();
|
|
970
971
|
};
|
|
971
972
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
972
973
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
973
|
-
return this.
|
|
974
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
974
975
|
};
|
|
975
976
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
976
977
|
var suspendResult = this.g9_1;
|
|
@@ -979,7 +980,7 @@
|
|
|
979
980
|
var tmp = this.e9_1;
|
|
980
981
|
if (tmp === 0) {
|
|
981
982
|
this.f9_1 = 1;
|
|
982
|
-
this.
|
|
983
|
+
this.e9b_1.dispatch(new AddSpectatorsAction(toList(this.c9b_1)));
|
|
983
984
|
return Unit_instance;
|
|
984
985
|
} else if (tmp === 1) {
|
|
985
986
|
throw this.h9_1;
|
|
@@ -990,33 +991,33 @@
|
|
|
990
991
|
}
|
|
991
992
|
while (true);
|
|
992
993
|
};
|
|
993
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
994
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
995
|
-
i.
|
|
996
|
-
i.
|
|
994
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
995
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.c9b_1, completion);
|
|
996
|
+
i.d9b_1 = $this$dispatchAsync;
|
|
997
|
+
i.e9b_1 = store;
|
|
997
998
|
return i;
|
|
998
999
|
};
|
|
999
1000
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1000
1001
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1001
1002
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1002
|
-
return i.
|
|
1003
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1003
1004
|
};
|
|
1004
1005
|
l.$arity = 2;
|
|
1005
1006
|
return l;
|
|
1006
1007
|
}
|
|
1007
1008
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1008
|
-
this.
|
|
1009
|
+
this.n9b_1 = $spectators;
|
|
1009
1010
|
CoroutineImpl.call(this, resultContinuation);
|
|
1010
1011
|
}
|
|
1011
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1012
|
-
var tmp = this.
|
|
1012
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1013
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1013
1014
|
tmp.g9_1 = Unit_instance;
|
|
1014
1015
|
tmp.h9_1 = null;
|
|
1015
1016
|
return tmp.m9();
|
|
1016
1017
|
};
|
|
1017
1018
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1018
1019
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1019
|
-
return this.
|
|
1020
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1020
1021
|
};
|
|
1021
1022
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1022
1023
|
var suspendResult = this.g9_1;
|
|
@@ -1025,7 +1026,7 @@
|
|
|
1025
1026
|
var tmp = this.e9_1;
|
|
1026
1027
|
if (tmp === 0) {
|
|
1027
1028
|
this.f9_1 = 1;
|
|
1028
|
-
this.
|
|
1029
|
+
this.p9b_1.dispatch(new RemoveSpectatorsAction(toList(this.n9b_1)));
|
|
1029
1030
|
return Unit_instance;
|
|
1030
1031
|
} else if (tmp === 1) {
|
|
1031
1032
|
throw this.h9_1;
|
|
@@ -1036,34 +1037,34 @@
|
|
|
1036
1037
|
}
|
|
1037
1038
|
while (true);
|
|
1038
1039
|
};
|
|
1039
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1040
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1041
|
-
i.
|
|
1042
|
-
i.
|
|
1040
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1041
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.n9b_1, completion);
|
|
1042
|
+
i.o9b_1 = $this$dispatchAsync;
|
|
1043
|
+
i.p9b_1 = store;
|
|
1043
1044
|
return i;
|
|
1044
1045
|
};
|
|
1045
1046
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1046
1047
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1047
1048
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1048
|
-
return i.
|
|
1049
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1049
1050
|
};
|
|
1050
1051
|
l.$arity = 2;
|
|
1051
1052
|
return l;
|
|
1052
1053
|
}
|
|
1053
1054
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1055
|
+
this.y9b_1 = $playerId;
|
|
1056
|
+
this.z9b_1 = this$0;
|
|
1056
1057
|
CoroutineImpl.call(this, resultContinuation);
|
|
1057
1058
|
}
|
|
1058
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1059
|
-
var tmp = this.
|
|
1059
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1060
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1060
1061
|
tmp.g9_1 = Unit_instance;
|
|
1061
1062
|
tmp.h9_1 = null;
|
|
1062
1063
|
return tmp.m9();
|
|
1063
1064
|
};
|
|
1064
1065
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1065
1066
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1066
|
-
return this.
|
|
1067
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1067
1068
|
};
|
|
1068
1069
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1069
1070
|
var suspendResult = this.g9_1;
|
|
@@ -1072,14 +1073,14 @@
|
|
|
1072
1073
|
var tmp = this.e9_1;
|
|
1073
1074
|
if (tmp === 0) {
|
|
1074
1075
|
this.f9_1 = 1;
|
|
1075
|
-
var table = this.
|
|
1076
|
-
var player = getPlayer(table.players, this.
|
|
1076
|
+
var table = this.b9c_1.state.a6n();
|
|
1077
|
+
var player = getPlayer(table.players, this.y9b_1);
|
|
1077
1078
|
if (player.s6s_1.q69().h68_1.isLive) {
|
|
1078
|
-
this.
|
|
1079
|
+
this.b9c_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.z9b_1).x8i(player, table));
|
|
1079
1080
|
} else {
|
|
1080
|
-
var tmp_0 = this.
|
|
1081
|
+
var tmp_0 = this.b9c_1.dispatch;
|
|
1081
1082
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1082
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1083
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.y9b_1));
|
|
1083
1084
|
}
|
|
1084
1085
|
return Unit_instance;
|
|
1085
1086
|
} else if (tmp === 1) {
|
|
@@ -1091,33 +1092,34 @@
|
|
|
1091
1092
|
}
|
|
1092
1093
|
while (true);
|
|
1093
1094
|
};
|
|
1094
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1095
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1096
|
-
i.
|
|
1097
|
-
i.
|
|
1095
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1096
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.y9b_1, this.z9b_1, completion);
|
|
1097
|
+
i.a9c_1 = $this$dispatchAsync;
|
|
1098
|
+
i.b9c_1 = store;
|
|
1098
1099
|
return i;
|
|
1099
1100
|
};
|
|
1100
1101
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1101
1102
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1102
1103
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1103
|
-
return i.
|
|
1104
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1104
1105
|
};
|
|
1105
1106
|
l.$arity = 2;
|
|
1106
1107
|
return l;
|
|
1107
1108
|
}
|
|
1108
|
-
function GameServer$roomOnDelete$slambda(this$0, resultContinuation) {
|
|
1109
|
-
this.
|
|
1109
|
+
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1110
|
+
this.k9c_1 = this$0;
|
|
1111
|
+
this.l9c_1 = $newRid;
|
|
1110
1112
|
CoroutineImpl.call(this, resultContinuation);
|
|
1111
1113
|
}
|
|
1112
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1113
|
-
var tmp = this.
|
|
1114
|
+
protoOf(GameServer$roomOnDelete$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1115
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1114
1116
|
tmp.g9_1 = Unit_instance;
|
|
1115
1117
|
tmp.h9_1 = null;
|
|
1116
1118
|
return tmp.m9();
|
|
1117
1119
|
};
|
|
1118
1120
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1119
1121
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1120
|
-
return this.
|
|
1122
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1121
1123
|
};
|
|
1122
1124
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1123
1125
|
var suspendResult = this.g9_1;
|
|
@@ -1126,16 +1128,39 @@
|
|
|
1126
1128
|
var tmp = this.e9_1;
|
|
1127
1129
|
if (tmp === 0) {
|
|
1128
1130
|
this.f9_1 = 1;
|
|
1129
|
-
var it = this.
|
|
1131
|
+
var it = this.k9c_1.n67().b6m_1;
|
|
1130
1132
|
var tmp_0;
|
|
1131
1133
|
if (it == null) {
|
|
1132
|
-
_get_logger__rkp4sl(this.
|
|
1134
|
+
_get_logger__rkp4sl(this.k9c_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1133
1135
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1134
1136
|
} else {
|
|
1135
1137
|
tmp_0 = it;
|
|
1136
1138
|
}
|
|
1137
1139
|
var terminationState = tmp_0;
|
|
1138
|
-
|
|
1140
|
+
var tmp_1 = this.n9c_1.dispatch;
|
|
1141
|
+
var tmp1_reason = terminationState.r8m_1;
|
|
1142
|
+
var tmp0_safe_receiver = terminationState.s8m_1;
|
|
1143
|
+
var tmp_2;
|
|
1144
|
+
if (tmp0_safe_receiver == null) {
|
|
1145
|
+
tmp_2 = null;
|
|
1146
|
+
} else {
|
|
1147
|
+
var value = this.l9c_1;
|
|
1148
|
+
var tmp$ret$0 = Unit_instance;
|
|
1149
|
+
l$ret$1: do {
|
|
1150
|
+
if (value == null) {
|
|
1151
|
+
var message = 'Required value was null.';
|
|
1152
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1153
|
+
} else {
|
|
1154
|
+
tmp$ret$0 = value;
|
|
1155
|
+
break l$ret$1;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
while (false);
|
|
1159
|
+
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1160
|
+
}
|
|
1161
|
+
var tmp2_transition = tmp_2;
|
|
1162
|
+
var tmp3_isGameFinished = this.k9c_1.n67().a6n().isGameFinished;
|
|
1163
|
+
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1139
1164
|
return Unit_instance;
|
|
1140
1165
|
} else if (tmp === 1) {
|
|
1141
1166
|
throw this.h9_1;
|
|
@@ -1146,33 +1171,33 @@
|
|
|
1146
1171
|
}
|
|
1147
1172
|
while (true);
|
|
1148
1173
|
};
|
|
1149
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1150
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1151
|
-
i.
|
|
1152
|
-
i.
|
|
1174
|
+
protoOf(GameServer$roomOnDelete$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1175
|
+
var i = new GameServer$roomOnDelete$slambda(this.k9c_1, this.l9c_1, completion);
|
|
1176
|
+
i.m9c_1 = $this$dispatchAsync;
|
|
1177
|
+
i.n9c_1 = store;
|
|
1153
1178
|
return i;
|
|
1154
1179
|
};
|
|
1155
|
-
function GameServer$roomOnDelete$slambda_0(this$0, resultContinuation) {
|
|
1156
|
-
var i = new GameServer$roomOnDelete$slambda(this$0, resultContinuation);
|
|
1180
|
+
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1181
|
+
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1157
1182
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1158
|
-
return i.
|
|
1183
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1159
1184
|
};
|
|
1160
1185
|
l.$arity = 2;
|
|
1161
1186
|
return l;
|
|
1162
1187
|
}
|
|
1163
1188
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1164
|
-
this.
|
|
1189
|
+
this.w9c_1 = $enabled;
|
|
1165
1190
|
CoroutineImpl.call(this, resultContinuation);
|
|
1166
1191
|
}
|
|
1167
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1168
|
-
var tmp = this.
|
|
1192
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1193
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1169
1194
|
tmp.g9_1 = Unit_instance;
|
|
1170
1195
|
tmp.h9_1 = null;
|
|
1171
1196
|
return tmp.m9();
|
|
1172
1197
|
};
|
|
1173
1198
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1174
1199
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1175
|
-
return this.
|
|
1200
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1176
1201
|
};
|
|
1177
1202
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1178
1203
|
var suspendResult = this.g9_1;
|
|
@@ -1181,7 +1206,7 @@
|
|
|
1181
1206
|
var tmp = this.e9_1;
|
|
1182
1207
|
if (tmp === 0) {
|
|
1183
1208
|
this.f9_1 = 1;
|
|
1184
|
-
this.
|
|
1209
|
+
this.y9c_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.y9c_1.state).z9c_1.b9d(this.w9c_1)));
|
|
1185
1210
|
return Unit_instance;
|
|
1186
1211
|
} else if (tmp === 1) {
|
|
1187
1212
|
throw this.h9_1;
|
|
@@ -1192,35 +1217,35 @@
|
|
|
1192
1217
|
}
|
|
1193
1218
|
while (true);
|
|
1194
1219
|
};
|
|
1195
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1196
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1197
|
-
i.
|
|
1198
|
-
i.
|
|
1220
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1221
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.w9c_1, completion);
|
|
1222
|
+
i.x9c_1 = $this$dispatchAsync;
|
|
1223
|
+
i.y9c_1 = store;
|
|
1199
1224
|
return i;
|
|
1200
1225
|
};
|
|
1201
1226
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1202
1227
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1203
1228
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1204
|
-
return i.
|
|
1229
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1205
1230
|
};
|
|
1206
1231
|
l.$arity = 2;
|
|
1207
1232
|
return l;
|
|
1208
1233
|
}
|
|
1209
1234
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1210
|
-
this.
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1235
|
+
this.k9d_1 = $reason;
|
|
1236
|
+
this.l9d_1 = this$0;
|
|
1237
|
+
this.m9d_1 = $roomId;
|
|
1213
1238
|
CoroutineImpl.call(this, resultContinuation);
|
|
1214
1239
|
}
|
|
1215
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1216
|
-
var tmp = this.
|
|
1240
|
+
protoOf(GameServer$shutdown$slambda).k98 = function ($this$dispatchAsync, store, $completion) {
|
|
1241
|
+
var tmp = this.l98($this$dispatchAsync, store, $completion);
|
|
1217
1242
|
tmp.g9_1 = Unit_instance;
|
|
1218
1243
|
tmp.h9_1 = null;
|
|
1219
1244
|
return tmp.m9();
|
|
1220
1245
|
};
|
|
1221
1246
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1222
1247
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1223
|
-
return this.
|
|
1248
|
+
return this.k98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1224
1249
|
};
|
|
1225
1250
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1226
1251
|
var suspendResult = this.g9_1;
|
|
@@ -1229,11 +1254,11 @@
|
|
|
1229
1254
|
var tmp = this.e9_1;
|
|
1230
1255
|
if (tmp === 0) {
|
|
1231
1256
|
this.f9_1 = 1;
|
|
1232
|
-
var state = this.
|
|
1257
|
+
var state = this.o9d_1.store.state;
|
|
1233
1258
|
if (state.b6n()) {
|
|
1234
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1259
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.k9d_1, get_serverShutdownReasonMapping());
|
|
1235
1260
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1236
|
-
var tmp_0 = this.
|
|
1261
|
+
var tmp_0 = this.o9d_1.dispatch;
|
|
1237
1262
|
var tmp_1 = Companion_instance_0;
|
|
1238
1263
|
var tmp_2;
|
|
1239
1264
|
switch (shutdownReason.n2_1) {
|
|
@@ -1247,10 +1272,10 @@
|
|
|
1247
1272
|
noWhenBranchMatchedException();
|
|
1248
1273
|
break;
|
|
1249
1274
|
}
|
|
1250
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1275
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.l9d_1.table.isGameFinished, this.l9d_1.table));
|
|
1251
1276
|
} else {
|
|
1252
|
-
_get_logger__rkp4sl(this.
|
|
1253
|
-
this.
|
|
1277
|
+
_get_logger__rkp4sl(this.l9d_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.m9d_1);
|
|
1278
|
+
this.o9d_1.dispatch(new ClearAction());
|
|
1254
1279
|
}
|
|
1255
1280
|
return Unit_instance;
|
|
1256
1281
|
} else if (tmp === 1) {
|
|
@@ -1262,22 +1287,22 @@
|
|
|
1262
1287
|
}
|
|
1263
1288
|
while (true);
|
|
1264
1289
|
};
|
|
1265
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1266
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1267
|
-
i.
|
|
1268
|
-
i.
|
|
1290
|
+
protoOf(GameServer$shutdown$slambda).l98 = function ($this$dispatchAsync, store, completion) {
|
|
1291
|
+
var i = new GameServer$shutdown$slambda(this.k9d_1, this.l9d_1, this.m9d_1, completion);
|
|
1292
|
+
i.n9d_1 = $this$dispatchAsync;
|
|
1293
|
+
i.o9d_1 = store;
|
|
1269
1294
|
return i;
|
|
1270
1295
|
};
|
|
1271
1296
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1272
1297
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1273
1298
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1274
|
-
return i.
|
|
1299
|
+
return i.k98($this$dispatchAsync, store, $completion);
|
|
1275
1300
|
};
|
|
1276
1301
|
l.$arity = 2;
|
|
1277
1302
|
return l;
|
|
1278
1303
|
}
|
|
1279
1304
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1280
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1305
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.p9d()) : preloadedState;
|
|
1281
1306
|
var tmp;
|
|
1282
1307
|
if (externalReducers === VOID) {
|
|
1283
1308
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1300,28 +1325,28 @@
|
|
|
1300
1325
|
// Inline function 'org.kodein.type.generic' call
|
|
1301
1326
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1302
1327
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1303
|
-
tmp_1.
|
|
1328
|
+
tmp_1.u96_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
|
|
1304
1329
|
var tmp_3 = this;
|
|
1305
1330
|
// Inline function 'org.kodein.di.instance' call
|
|
1306
1331
|
// Inline function 'org.kodein.type.generic' call
|
|
1307
1332
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1308
1333
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1309
|
-
tmp_3.
|
|
1334
|
+
tmp_3.v96_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
|
|
1310
1335
|
var tmp_5 = this;
|
|
1311
1336
|
// Inline function 'org.kodein.di.instance' call
|
|
1312
1337
|
// Inline function 'org.kodein.type.generic' call
|
|
1313
1338
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1314
1339
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1315
|
-
tmp_5.
|
|
1340
|
+
tmp_5.w96_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
|
|
1316
1341
|
var tmp_7 = this;
|
|
1317
|
-
tmp_7.
|
|
1342
|
+
tmp_7.x96_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1318
1343
|
var tmp_8 = this;
|
|
1319
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1320
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1321
|
-
tmp_8.
|
|
1344
|
+
var tmp0_externalMiddlewares = plus(storeContract.y8q(), externalMiddlewares);
|
|
1345
|
+
var tmp1_externalReducers = plus(storeContract.x8q(), externalReducers);
|
|
1346
|
+
tmp_8.y96_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1322
1347
|
}
|
|
1323
1348
|
protoOf(GameServer).n6l = function () {
|
|
1324
|
-
return this.
|
|
1349
|
+
return this.y96_1;
|
|
1325
1350
|
};
|
|
1326
1351
|
protoOf(GameServer).o5h = function () {
|
|
1327
1352
|
return this.n67().a6n().id;
|
|
@@ -1345,44 +1370,44 @@
|
|
|
1345
1370
|
};
|
|
1346
1371
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1347
1372
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1348
|
-
this.
|
|
1373
|
+
this.y96_1.z6m(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1349
1374
|
};
|
|
1350
1375
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1351
1376
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1352
|
-
this.
|
|
1377
|
+
this.y96_1.z6m(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1353
1378
|
};
|
|
1354
1379
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1355
1380
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1356
|
-
this.
|
|
1381
|
+
this.y96_1.z6m(GameServer$playerLive$slambda_0(playerId, null));
|
|
1357
1382
|
};
|
|
1358
1383
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1359
1384
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1360
|
-
this.
|
|
1385
|
+
this.y96_1.z6m(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1361
1386
|
};
|
|
1362
|
-
protoOf(GameServer).
|
|
1363
|
-
this.
|
|
1387
|
+
protoOf(GameServer).q9d = function (roomId, gameCreatorId, config, users, transition, spectators) {
|
|
1388
|
+
this.y96_1.z6m(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, this, spectators, config, roomId, null));
|
|
1364
1389
|
};
|
|
1365
1390
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1366
|
-
this.
|
|
1391
|
+
this.y96_1.z6m(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1367
1392
|
};
|
|
1368
1393
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1369
|
-
this.
|
|
1394
|
+
this.y96_1.z6m(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1370
1395
|
};
|
|
1371
1396
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1372
|
-
this.
|
|
1397
|
+
this.y96_1.z6m(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1373
1398
|
};
|
|
1374
1399
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1375
1400
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1376
|
-
this.
|
|
1401
|
+
this.y96_1.z6m(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1377
1402
|
};
|
|
1378
|
-
protoOf(GameServer).
|
|
1379
|
-
this.
|
|
1403
|
+
protoOf(GameServer).r9d = function (newRid) {
|
|
1404
|
+
this.y96_1.z6m(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1380
1405
|
};
|
|
1381
1406
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1382
|
-
this.
|
|
1407
|
+
this.y96_1.z6m(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1383
1408
|
};
|
|
1384
|
-
protoOf(GameServer).
|
|
1385
|
-
this.
|
|
1409
|
+
protoOf(GameServer).s9d = function (reason, roomId) {
|
|
1410
|
+
this.y96_1.z6m(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1386
1411
|
};
|
|
1387
1412
|
protoOf(GameServer).clear = function () {
|
|
1388
1413
|
return this.a2();
|
|
@@ -1456,16 +1481,16 @@
|
|
|
1456
1481
|
return ServerShutdownReason_ERROR_instance;
|
|
1457
1482
|
}
|
|
1458
1483
|
function ServerConfig(canStartNewGame) {
|
|
1459
|
-
this.
|
|
1484
|
+
this.a9d_1 = canStartNewGame;
|
|
1460
1485
|
}
|
|
1461
|
-
protoOf(ServerConfig).
|
|
1486
|
+
protoOf(ServerConfig).b9d = function (canStartNewGame) {
|
|
1462
1487
|
return new ServerConfig(canStartNewGame);
|
|
1463
1488
|
};
|
|
1464
1489
|
protoOf(ServerConfig).toString = function () {
|
|
1465
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1490
|
+
return 'ServerConfig(canStartNewGame=' + this.a9d_1 + ')';
|
|
1466
1491
|
};
|
|
1467
1492
|
protoOf(ServerConfig).hashCode = function () {
|
|
1468
|
-
return getBooleanHashCode(this.
|
|
1493
|
+
return getBooleanHashCode(this.a9d_1);
|
|
1469
1494
|
};
|
|
1470
1495
|
protoOf(ServerConfig).equals = function (other) {
|
|
1471
1496
|
if (this === other)
|
|
@@ -1473,7 +1498,7 @@
|
|
|
1473
1498
|
if (!(other instanceof ServerConfig))
|
|
1474
1499
|
return false;
|
|
1475
1500
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1476
|
-
if (!(this.
|
|
1501
|
+
if (!(this.a9d_1 === tmp0_other_with_cast.a9d_1))
|
|
1477
1502
|
return false;
|
|
1478
1503
|
return true;
|
|
1479
1504
|
};
|
|
@@ -1705,18 +1730,18 @@
|
|
|
1705
1730
|
function ToClientEventsObserver() {
|
|
1706
1731
|
}
|
|
1707
1732
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1708
|
-
this.
|
|
1709
|
-
this.
|
|
1733
|
+
this.c9e_1 = this$0;
|
|
1734
|
+
this.d9e_1 = $actions;
|
|
1710
1735
|
CoroutineImpl.call(this, resultContinuation);
|
|
1711
1736
|
}
|
|
1712
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1713
|
-
var tmp = this.
|
|
1737
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).k9e = function ($this$flow, $completion) {
|
|
1738
|
+
var tmp = this.l9e($this$flow, $completion);
|
|
1714
1739
|
tmp.g9_1 = Unit_instance;
|
|
1715
1740
|
tmp.h9_1 = null;
|
|
1716
1741
|
return tmp.m9();
|
|
1717
1742
|
};
|
|
1718
1743
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1719
|
-
return this.
|
|
1744
|
+
return this.k9e((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1720
1745
|
};
|
|
1721
1746
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1722
1747
|
var suspendResult = this.g9_1;
|
|
@@ -1727,23 +1752,23 @@
|
|
|
1727
1752
|
case 0:
|
|
1728
1753
|
this.f9_1 = 4;
|
|
1729
1754
|
var tmp_0 = this;
|
|
1730
|
-
tmp_0.
|
|
1755
|
+
tmp_0.f9e_1 = this.c9e_1.q9e_1;
|
|
1731
1756
|
var tmp_1 = this;
|
|
1732
|
-
tmp_1.
|
|
1733
|
-
this.
|
|
1757
|
+
tmp_1.g9e_1 = transformToEmits(this.c9e_1, this.d9e_1);
|
|
1758
|
+
this.h9e_1 = this.g9e_1.j();
|
|
1734
1759
|
this.e9_1 = 1;
|
|
1735
1760
|
continue $sm;
|
|
1736
1761
|
case 1:
|
|
1737
|
-
if (!this.
|
|
1762
|
+
if (!this.h9e_1.k()) {
|
|
1738
1763
|
this.e9_1 = 3;
|
|
1739
1764
|
continue $sm;
|
|
1740
1765
|
}
|
|
1741
1766
|
|
|
1742
|
-
this.
|
|
1767
|
+
this.i9e_1 = this.h9e_1.l();
|
|
1743
1768
|
var tmp_2 = this;
|
|
1744
|
-
tmp_2.
|
|
1769
|
+
tmp_2.j9e_1 = this.i9e_1;
|
|
1745
1770
|
this.e9_1 = 2;
|
|
1746
|
-
suspendResult = this.
|
|
1771
|
+
suspendResult = this.e9e_1.p18(this.j9e_1, this);
|
|
1747
1772
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1748
1773
|
return suspendResult;
|
|
1749
1774
|
}
|
|
@@ -1754,10 +1779,10 @@
|
|
|
1754
1779
|
continue $sm;
|
|
1755
1780
|
case 3:
|
|
1756
1781
|
l$ret$1: do {
|
|
1757
|
-
var this_0 = this.
|
|
1782
|
+
var this_0 = this.c9e_1.p9e_1;
|
|
1758
1783
|
while (true) {
|
|
1759
1784
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1760
|
-
var upd = cur - this.
|
|
1785
|
+
var upd = cur - this.d9e_1.m() | 0;
|
|
1761
1786
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1762
1787
|
break l$ret$1;
|
|
1763
1788
|
}
|
|
@@ -1779,15 +1804,15 @@
|
|
|
1779
1804
|
}
|
|
1780
1805
|
while (true);
|
|
1781
1806
|
};
|
|
1782
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1783
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1784
|
-
i.
|
|
1807
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).l9e = function ($this$flow, completion) {
|
|
1808
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.c9e_1, this.d9e_1, completion);
|
|
1809
|
+
i.e9e_1 = $this$flow;
|
|
1785
1810
|
return i;
|
|
1786
1811
|
};
|
|
1787
1812
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1788
1813
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1789
1814
|
var l = function ($this$flow, $completion) {
|
|
1790
|
-
return i.
|
|
1815
|
+
return i.k9e($this$flow, $completion);
|
|
1791
1816
|
};
|
|
1792
1817
|
l.$arity = 1;
|
|
1793
1818
|
return l;
|
|
@@ -1860,29 +1885,29 @@
|
|
|
1860
1885
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1861
1886
|
}
|
|
1862
1887
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1863
|
-
var tmp = $this.
|
|
1888
|
+
var tmp = $this.o9e_1.g6d();
|
|
1864
1889
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1865
|
-
var this_0 = _this__u8e3s4.
|
|
1890
|
+
var this_0 = _this__u8e3s4.t9e_1;
|
|
1866
1891
|
var tmp_0 = copyToArray(this_0);
|
|
1867
1892
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1868
|
-
var this_1 = _this__u8e3s4.
|
|
1893
|
+
var this_1 = _this__u8e3s4.u9e_1;
|
|
1869
1894
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1870
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1895
|
+
return new ActionDeliveryPayload(_this__u8e3s4.s9e_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.v9e_1);
|
|
1871
1896
|
}
|
|
1872
1897
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1873
|
-
this.
|
|
1874
|
-
this.
|
|
1875
|
-
this.
|
|
1876
|
-
this.
|
|
1898
|
+
this.s9e_1 = tableId;
|
|
1899
|
+
this.t9e_1 = includePlayers;
|
|
1900
|
+
this.u9e_1 = excludePlayers;
|
|
1901
|
+
this.v9e_1 = deliveryType;
|
|
1877
1902
|
}
|
|
1878
1903
|
protoOf(GroupKey).toString = function () {
|
|
1879
|
-
return 'GroupKey(tableId=' + this.
|
|
1904
|
+
return 'GroupKey(tableId=' + this.s9e_1 + ', includePlayers=' + toString(this.t9e_1) + ', excludePlayers=' + toString(this.u9e_1) + ', deliveryType=' + this.v9e_1.toString() + ')';
|
|
1880
1905
|
};
|
|
1881
1906
|
protoOf(GroupKey).hashCode = function () {
|
|
1882
|
-
var result = getStringHashCode(this.
|
|
1883
|
-
result = imul(result, 31) + hashCode(this.
|
|
1884
|
-
result = imul(result, 31) + hashCode(this.
|
|
1885
|
-
result = imul(result, 31) + this.
|
|
1907
|
+
var result = getStringHashCode(this.s9e_1);
|
|
1908
|
+
result = imul(result, 31) + hashCode(this.t9e_1) | 0;
|
|
1909
|
+
result = imul(result, 31) + hashCode(this.u9e_1) | 0;
|
|
1910
|
+
result = imul(result, 31) + this.v9e_1.hashCode() | 0;
|
|
1886
1911
|
return result;
|
|
1887
1912
|
};
|
|
1888
1913
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1891,35 +1916,35 @@
|
|
|
1891
1916
|
if (!(other instanceof GroupKey))
|
|
1892
1917
|
return false;
|
|
1893
1918
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1894
|
-
if (!(this.
|
|
1919
|
+
if (!(this.s9e_1 === tmp0_other_with_cast.s9e_1))
|
|
1895
1920
|
return false;
|
|
1896
|
-
if (!equals(this.
|
|
1921
|
+
if (!equals(this.t9e_1, tmp0_other_with_cast.t9e_1))
|
|
1897
1922
|
return false;
|
|
1898
|
-
if (!equals(this.
|
|
1923
|
+
if (!equals(this.u9e_1, tmp0_other_with_cast.u9e_1))
|
|
1899
1924
|
return false;
|
|
1900
|
-
if (!this.
|
|
1925
|
+
if (!this.v9e_1.equals(tmp0_other_with_cast.v9e_1))
|
|
1901
1926
|
return false;
|
|
1902
1927
|
return true;
|
|
1903
1928
|
};
|
|
1904
1929
|
function Companion_0() {
|
|
1905
|
-
this.
|
|
1930
|
+
this.w9e_1 = 6;
|
|
1906
1931
|
}
|
|
1907
1932
|
var Companion_instance_8;
|
|
1908
1933
|
function Companion_getInstance_1() {
|
|
1909
1934
|
return Companion_instance_8;
|
|
1910
1935
|
}
|
|
1911
1936
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1912
|
-
this.
|
|
1937
|
+
this.f9f_1 = this$0;
|
|
1913
1938
|
CoroutineImpl.call(this, resultContinuation);
|
|
1914
1939
|
}
|
|
1915
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1916
|
-
var tmp = this.
|
|
1940
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).h9f = function (actions, $completion) {
|
|
1941
|
+
var tmp = this.i9f(actions, $completion);
|
|
1917
1942
|
tmp.g9_1 = Unit_instance;
|
|
1918
1943
|
tmp.h9_1 = null;
|
|
1919
1944
|
return tmp.m9();
|
|
1920
1945
|
};
|
|
1921
1946
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
1922
|
-
return this.
|
|
1947
|
+
return this.h9f((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1923
1948
|
};
|
|
1924
1949
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
1925
1950
|
var suspendResult = this.g9_1;
|
|
@@ -1928,7 +1953,7 @@
|
|
|
1928
1953
|
var tmp = this.e9_1;
|
|
1929
1954
|
if (tmp === 0) {
|
|
1930
1955
|
this.f9_1 = 1;
|
|
1931
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1956
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.f9f_1, this.g9f_1, null));
|
|
1932
1957
|
} else if (tmp === 1) {
|
|
1933
1958
|
throw this.h9_1;
|
|
1934
1959
|
}
|
|
@@ -1938,23 +1963,23 @@
|
|
|
1938
1963
|
}
|
|
1939
1964
|
while (true);
|
|
1940
1965
|
};
|
|
1941
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1942
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1943
|
-
i.
|
|
1966
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).i9f = function (actions, completion) {
|
|
1967
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.f9f_1, completion);
|
|
1968
|
+
i.g9f_1 = actions;
|
|
1944
1969
|
return i;
|
|
1945
1970
|
};
|
|
1946
1971
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1947
1972
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1948
1973
|
var l = function (actions, $completion) {
|
|
1949
|
-
return i.
|
|
1974
|
+
return i.h9f(actions, $completion);
|
|
1950
1975
|
};
|
|
1951
1976
|
l.$arity = 1;
|
|
1952
1977
|
return l;
|
|
1953
1978
|
}
|
|
1954
1979
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
1955
1980
|
CoroutineImpl.call(this, resultContinuation);
|
|
1956
|
-
this.
|
|
1957
|
-
this.
|
|
1981
|
+
this.r9f_1 = _this__u8e3s4;
|
|
1982
|
+
this.s9f_1 = fromEvent;
|
|
1958
1983
|
}
|
|
1959
1984
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
1960
1985
|
var suspendResult = this.g9_1;
|
|
@@ -1965,9 +1990,9 @@
|
|
|
1965
1990
|
case 0:
|
|
1966
1991
|
this.f9_1 = 2;
|
|
1967
1992
|
var tmp_0 = this;
|
|
1968
|
-
tmp_0.
|
|
1993
|
+
tmp_0.t9f_1 = this.r9f_1.q9e_1;
|
|
1969
1994
|
l$ret$1: do {
|
|
1970
|
-
var this_0 = this.
|
|
1995
|
+
var this_0 = this.r9f_1.p9e_1;
|
|
1971
1996
|
while (true) {
|
|
1972
1997
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1973
1998
|
var upd = cur + 1 | 0;
|
|
@@ -1978,7 +2003,7 @@
|
|
|
1978
2003
|
}
|
|
1979
2004
|
while (false);
|
|
1980
2005
|
this.e9_1 = 1;
|
|
1981
|
-
suspendResult = this.
|
|
2006
|
+
suspendResult = this.r9f_1.r9e_1.p18(this.s9f_1, this);
|
|
1982
2007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1983
2008
|
return suspendResult;
|
|
1984
2009
|
}
|
|
@@ -2002,7 +2027,7 @@
|
|
|
2002
2027
|
};
|
|
2003
2028
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2004
2029
|
CoroutineImpl.call(this, resultContinuation);
|
|
2005
|
-
this.
|
|
2030
|
+
this.c9g_1 = _this__u8e3s4;
|
|
2006
2031
|
}
|
|
2007
2032
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2008
2033
|
var suspendResult = this.g9_1;
|
|
@@ -2013,12 +2038,12 @@
|
|
|
2013
2038
|
case 0:
|
|
2014
2039
|
this.f9_1 = 5;
|
|
2015
2040
|
var tmp_0 = this;
|
|
2016
|
-
tmp_0.
|
|
2017
|
-
this.
|
|
2041
|
+
tmp_0.d9g_1 = this.c9g_1.q9e_1;
|
|
2042
|
+
this.e9g_1 = 0;
|
|
2018
2043
|
this.e9_1 = 1;
|
|
2019
2044
|
continue $sm;
|
|
2020
2045
|
case 1:
|
|
2021
|
-
if (!!(this.
|
|
2046
|
+
if (!!(this.c9g_1.p9e_1.kotlinx$atomicfu$value === 0)) {
|
|
2022
2047
|
this.e9_1 = 4;
|
|
2023
2048
|
continue $sm;
|
|
2024
2049
|
}
|
|
@@ -2031,9 +2056,9 @@
|
|
|
2031
2056
|
|
|
2032
2057
|
continue $sm;
|
|
2033
2058
|
case 2:
|
|
2034
|
-
this.
|
|
2035
|
-
if (this.
|
|
2036
|
-
this.
|
|
2059
|
+
this.e9g_1 = this.e9g_1 + 1 | 0;
|
|
2060
|
+
if (this.e9g_1 > 6) {
|
|
2061
|
+
this.c9g_1.n9e_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.c9g_1.p9e_1.kotlinx$atomicfu$value);
|
|
2037
2062
|
this.e9_1 = 4;
|
|
2038
2063
|
continue $sm;
|
|
2039
2064
|
} else {
|
|
@@ -2061,42 +2086,42 @@
|
|
|
2061
2086
|
while (true);
|
|
2062
2087
|
};
|
|
2063
2088
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2064
|
-
this.
|
|
2065
|
-
this.
|
|
2066
|
-
this.
|
|
2067
|
-
this.
|
|
2089
|
+
this.m9e_1 = serverReduxConfig;
|
|
2090
|
+
this.n9e_1 = logger;
|
|
2091
|
+
this.o9e_1 = idsProvider;
|
|
2092
|
+
this.p9e_1 = atomic$ref$1(0);
|
|
2068
2093
|
var tmp = this;
|
|
2069
2094
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2070
|
-
tmp.
|
|
2071
|
-
this.
|
|
2095
|
+
tmp.q9e_1 = get_atomicfu$reentrantLock();
|
|
2096
|
+
this.r9e_1 = MutableSharedFlow();
|
|
2072
2097
|
}
|
|
2073
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2098
|
+
protoOf(ToClientEventsObserverImpl).t9d = function (fromEvent, $completion) {
|
|
2074
2099
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2075
2100
|
tmp.g9_1 = Unit_instance;
|
|
2076
2101
|
tmp.h9_1 = null;
|
|
2077
2102
|
return tmp.m9();
|
|
2078
2103
|
};
|
|
2079
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2104
|
+
protoOf(ToClientEventsObserverImpl).t8x = function ($completion) {
|
|
2080
2105
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2081
2106
|
tmp.g9_1 = Unit_instance;
|
|
2082
2107
|
tmp.h9_1 = null;
|
|
2083
2108
|
return tmp.m9();
|
|
2084
2109
|
};
|
|
2085
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2086
|
-
if (!this.
|
|
2087
|
-
return this.
|
|
2110
|
+
protoOf(ToClientEventsObserverImpl).n97 = function () {
|
|
2111
|
+
if (!this.m9e_1.enabledCombinedEvents) {
|
|
2112
|
+
return this.r9e_1;
|
|
2088
2113
|
}
|
|
2089
|
-
var tmp = windowedByInterval(this.
|
|
2114
|
+
var tmp = windowedByInterval(this.r9e_1, toLong(this.m9e_1.combinedEventsPeriod));
|
|
2090
2115
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2091
2116
|
};
|
|
2092
2117
|
function UpdateServerConfigAction(serverConfig) {
|
|
2093
|
-
this.
|
|
2118
|
+
this.f9g_1 = serverConfig;
|
|
2094
2119
|
}
|
|
2095
2120
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2096
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2121
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.f9g_1.toString() + ')';
|
|
2097
2122
|
};
|
|
2098
2123
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2099
|
-
return this.
|
|
2124
|
+
return this.f9g_1.hashCode();
|
|
2100
2125
|
};
|
|
2101
2126
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2102
2127
|
if (this === other)
|
|
@@ -2104,20 +2129,20 @@
|
|
|
2104
2129
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2105
2130
|
return false;
|
|
2106
2131
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2107
|
-
if (!this.
|
|
2132
|
+
if (!this.f9g_1.equals(tmp0_other_with_cast.f9g_1))
|
|
2108
2133
|
return false;
|
|
2109
2134
|
return true;
|
|
2110
2135
|
};
|
|
2111
2136
|
function SpectatorsAction() {
|
|
2112
2137
|
}
|
|
2113
2138
|
function AddSpectatorsAction(spectators) {
|
|
2114
|
-
this.
|
|
2139
|
+
this.g9g_1 = spectators;
|
|
2115
2140
|
}
|
|
2116
2141
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2117
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2142
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.g9g_1) + ')';
|
|
2118
2143
|
};
|
|
2119
2144
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2120
|
-
return hashCode(this.
|
|
2145
|
+
return hashCode(this.g9g_1);
|
|
2121
2146
|
};
|
|
2122
2147
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2123
2148
|
if (this === other)
|
|
@@ -2125,18 +2150,18 @@
|
|
|
2125
2150
|
if (!(other instanceof AddSpectatorsAction))
|
|
2126
2151
|
return false;
|
|
2127
2152
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2128
|
-
if (!equals(this.
|
|
2153
|
+
if (!equals(this.g9g_1, tmp0_other_with_cast.g9g_1))
|
|
2129
2154
|
return false;
|
|
2130
2155
|
return true;
|
|
2131
2156
|
};
|
|
2132
2157
|
function RemoveSpectatorsAction(spectators) {
|
|
2133
|
-
this.
|
|
2158
|
+
this.h9g_1 = spectators;
|
|
2134
2159
|
}
|
|
2135
2160
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2136
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2161
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.h9g_1) + ')';
|
|
2137
2162
|
};
|
|
2138
2163
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2139
|
-
return hashCode(this.
|
|
2164
|
+
return hashCode(this.h9g_1);
|
|
2140
2165
|
};
|
|
2141
2166
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2142
2167
|
if (this === other)
|
|
@@ -2144,67 +2169,67 @@
|
|
|
2144
2169
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2145
2170
|
return false;
|
|
2146
2171
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2147
|
-
if (!equals(this.
|
|
2172
|
+
if (!equals(this.h9g_1, tmp0_other_with_cast.h9g_1))
|
|
2148
2173
|
return false;
|
|
2149
2174
|
return true;
|
|
2150
2175
|
};
|
|
2151
2176
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2152
2177
|
// Inline function 'kotlin.getValue' call
|
|
2153
|
-
var this_0 = $this.
|
|
2178
|
+
var this_0 = $this.n9g_1;
|
|
2154
2179
|
asyncProvider$factory_0();
|
|
2155
2180
|
return this_0.u();
|
|
2156
2181
|
}
|
|
2157
2182
|
function _get_logger__rkp4sl_0($this) {
|
|
2158
2183
|
// Inline function 'kotlin.getValue' call
|
|
2159
|
-
var this_0 = $this.
|
|
2184
|
+
var this_0 = $this.o9g_1;
|
|
2160
2185
|
logger$factory_2();
|
|
2161
2186
|
return this_0.u();
|
|
2162
2187
|
}
|
|
2163
2188
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2164
2189
|
// Inline function 'kotlin.getValue' call
|
|
2165
|
-
var this_0 = $this.
|
|
2190
|
+
var this_0 = $this.p9g_1;
|
|
2166
2191
|
playerConnectionInteractor$factory_2();
|
|
2167
2192
|
return this_0.u();
|
|
2168
2193
|
}
|
|
2169
2194
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2170
2195
|
// Inline function 'kotlin.getValue' call
|
|
2171
|
-
var this_0 = $this.
|
|
2196
|
+
var this_0 = $this.q9g_1;
|
|
2172
2197
|
lastCardInteractor$factory_0();
|
|
2173
2198
|
return this_0.u();
|
|
2174
2199
|
}
|
|
2175
2200
|
function _get_serverConfig__rk2g06($this) {
|
|
2176
2201
|
// Inline function 'kotlin.getValue' call
|
|
2177
|
-
var this_0 = $this.
|
|
2202
|
+
var this_0 = $this.r9g_1;
|
|
2178
2203
|
serverConfig$factory_0();
|
|
2179
2204
|
return this_0.u();
|
|
2180
2205
|
}
|
|
2181
2206
|
function _get_logicConfig__52ww9d($this) {
|
|
2182
2207
|
// Inline function 'kotlin.getValue' call
|
|
2183
|
-
var this_0 = $this.
|
|
2208
|
+
var this_0 = $this.s9g_1;
|
|
2184
2209
|
logicConfig$factory_0();
|
|
2185
2210
|
return this_0.u();
|
|
2186
2211
|
}
|
|
2187
2212
|
function _get_idsProvider__fnfajc($this) {
|
|
2188
2213
|
// Inline function 'kotlin.getValue' call
|
|
2189
|
-
var this_0 = $this.
|
|
2214
|
+
var this_0 = $this.t9g_1;
|
|
2190
2215
|
idsProvider$factory_0();
|
|
2191
2216
|
return this_0.u();
|
|
2192
2217
|
}
|
|
2193
2218
|
function _get_botConfig__cpaxzc($this) {
|
|
2194
2219
|
// Inline function 'kotlin.getValue' call
|
|
2195
|
-
var this_0 = $this.
|
|
2220
|
+
var this_0 = $this.u9g_1;
|
|
2196
2221
|
botConfig$factory_0();
|
|
2197
2222
|
return this_0.u();
|
|
2198
2223
|
}
|
|
2199
2224
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2200
2225
|
// Inline function 'kotlin.getValue' call
|
|
2201
|
-
var this_0 = $this.
|
|
2226
|
+
var this_0 = $this.v9g_1;
|
|
2202
2227
|
scenePositionProvider$factory_0();
|
|
2203
2228
|
return this_0.u();
|
|
2204
2229
|
}
|
|
2205
2230
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2206
2231
|
// Inline function 'kotlin.getValue' call
|
|
2207
|
-
var this_0 = $this.
|
|
2232
|
+
var this_0 = $this.w9g_1;
|
|
2208
2233
|
toClientEventsObserver$factory_2();
|
|
2209
2234
|
return this_0.u();
|
|
2210
2235
|
}
|
|
@@ -2217,77 +2242,77 @@
|
|
|
2217
2242
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2218
2243
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2219
2244
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2220
|
-
this.
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2245
|
+
this.i9g_1 = validationStoreContract;
|
|
2246
|
+
this.j9g_1 = timersStoreContract;
|
|
2247
|
+
this.k9g_1 = botGameStoreContract;
|
|
2248
|
+
this.l9g_1 = gameMechanicStoreContract;
|
|
2249
|
+
this.m9g_1 = fileLoggerStoreContract;
|
|
2225
2250
|
var tmp = this;
|
|
2226
2251
|
// Inline function 'org.kodein.di.instance' call
|
|
2227
2252
|
// Inline function 'org.kodein.type.generic' call
|
|
2228
2253
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2229
2254
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2230
|
-
tmp.
|
|
2255
|
+
tmp.n9g_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2231
2256
|
var tmp_1 = this;
|
|
2232
2257
|
// Inline function 'org.kodein.di.instance' call
|
|
2233
2258
|
// Inline function 'org.kodein.type.generic' call
|
|
2234
2259
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2235
2260
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2236
|
-
tmp_1.
|
|
2261
|
+
tmp_1.o9g_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2237
2262
|
var tmp_3 = this;
|
|
2238
2263
|
// Inline function 'org.kodein.di.instance' call
|
|
2239
2264
|
// Inline function 'org.kodein.type.generic' call
|
|
2240
2265
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2241
2266
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2242
|
-
tmp_3.
|
|
2267
|
+
tmp_3.p9g_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2243
2268
|
var tmp_5 = this;
|
|
2244
2269
|
// Inline function 'org.kodein.di.instance' call
|
|
2245
2270
|
// Inline function 'org.kodein.type.generic' call
|
|
2246
2271
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2247
2272
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2248
|
-
tmp_5.
|
|
2273
|
+
tmp_5.q9g_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2249
2274
|
var tmp_7 = this;
|
|
2250
2275
|
// Inline function 'org.kodein.di.instance' call
|
|
2251
2276
|
// Inline function 'org.kodein.type.generic' call
|
|
2252
2277
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2253
2278
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2254
|
-
tmp_7.
|
|
2279
|
+
tmp_7.r9g_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2255
2280
|
var tmp_9 = this;
|
|
2256
2281
|
// Inline function 'org.kodein.di.instance' call
|
|
2257
2282
|
// Inline function 'org.kodein.type.generic' call
|
|
2258
2283
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2259
2284
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2260
|
-
tmp_9.
|
|
2285
|
+
tmp_9.s9g_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2261
2286
|
var tmp_11 = this;
|
|
2262
2287
|
// Inline function 'org.kodein.di.instance' call
|
|
2263
2288
|
// Inline function 'org.kodein.type.generic' call
|
|
2264
2289
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2265
2290
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2266
|
-
tmp_11.
|
|
2291
|
+
tmp_11.t9g_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2267
2292
|
var tmp_13 = this;
|
|
2268
2293
|
// Inline function 'org.kodein.di.instance' call
|
|
2269
2294
|
// Inline function 'org.kodein.type.generic' call
|
|
2270
2295
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2271
2296
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2272
|
-
tmp_13.
|
|
2297
|
+
tmp_13.u9g_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2273
2298
|
var tmp_15 = this;
|
|
2274
2299
|
// Inline function 'org.kodein.di.instance' call
|
|
2275
2300
|
// Inline function 'org.kodein.type.generic' call
|
|
2276
2301
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2277
2302
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2278
|
-
tmp_15.
|
|
2303
|
+
tmp_15.v9g_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2279
2304
|
var tmp_17 = this;
|
|
2280
2305
|
// Inline function 'org.kodein.di.instance' call
|
|
2281
2306
|
// Inline function 'org.kodein.type.generic' call
|
|
2282
2307
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2283
2308
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2284
|
-
tmp_17.
|
|
2309
|
+
tmp_17.w9g_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2285
2310
|
}
|
|
2286
|
-
protoOf(ServerGameStoreContract).
|
|
2287
|
-
return plus(plus(plus(plus(plus(this.
|
|
2311
|
+
protoOf(ServerGameStoreContract).x8q = function () {
|
|
2312
|
+
return plus(plus(plus(plus(plus(this.i9g_1.x8q(), this.j9g_1.x8q()), this.k9g_1.x8q()), this.l9g_1.x8q()), this.m9g_1.x8q()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2288
2313
|
};
|
|
2289
|
-
protoOf(ServerGameStoreContract).
|
|
2290
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2314
|
+
protoOf(ServerGameStoreContract).y8q = function () {
|
|
2315
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.i9g_1.y8q(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.j9g_1.y8q()), this.k9g_1.y8q()), this.l9g_1.y8q()), this.m9g_1.y8q()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).q8s(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2291
2316
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2292
2317
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2293
2318
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2417,7 +2442,7 @@
|
|
|
2417
2442
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2418
2443
|
next(action_0);
|
|
2419
2444
|
var state = store.state;
|
|
2420
|
-
if (!get_serverState_0(state).
|
|
2445
|
+
if (!get_serverState_0(state).z9c_1.a9d_1 && action_0.isGameFinished) {
|
|
2421
2446
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.y6l_1));
|
|
2422
2447
|
}
|
|
2423
2448
|
};
|
|
@@ -2430,7 +2455,7 @@
|
|
|
2430
2455
|
};
|
|
2431
2456
|
}
|
|
2432
2457
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2433
|
-
this.
|
|
2458
|
+
this.z9g_1 = this$0;
|
|
2434
2459
|
}
|
|
2435
2460
|
protoOf(_no_name_provided__qut3iv_0).d6f = function (action) {
|
|
2436
2461
|
return action instanceof MechanicAction;
|
|
@@ -2445,11 +2470,11 @@
|
|
|
2445
2470
|
var tmp;
|
|
2446
2471
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2447
2472
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2448
|
-
var this_0 = this.
|
|
2449
|
-
var tableId = action_0.
|
|
2450
|
-
var gameCreatorPlayerId = action_0.
|
|
2473
|
+
var this_0 = this.z9g_1;
|
|
2474
|
+
var tableId = action_0.p8n_1;
|
|
2475
|
+
var gameCreatorPlayerId = action_0.r8n_1;
|
|
2451
2476
|
// Inline function 'kotlin.collections.map' call
|
|
2452
|
-
var this_1 = action_0.
|
|
2477
|
+
var this_1 = action_0.s8n_1;
|
|
2453
2478
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2454
2479
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2455
2480
|
var tmp0_iterator = this_1.j();
|
|
@@ -2490,7 +2515,7 @@
|
|
|
2490
2515
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2491
2516
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2492
2517
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2493
|
-
var tmp0_aid = this_0.
|
|
2518
|
+
var tmp0_aid = this_0.y9g_1.g6d();
|
|
2494
2519
|
// Inline function 'kotlin.collections.map' call
|
|
2495
2520
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2496
2521
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
@@ -2515,17 +2540,17 @@
|
|
|
2515
2540
|
} else {
|
|
2516
2541
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2517
2542
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2518
|
-
var this_2 = this.
|
|
2543
|
+
var this_2 = this.z9g_1;
|
|
2519
2544
|
var table = state.a6n();
|
|
2520
2545
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2521
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2546
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.y9g_1.g6d(), table.id, null);
|
|
2522
2547
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2523
2548
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2524
2549
|
} else {
|
|
2525
2550
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2526
2551
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2527
|
-
var this_3 = this.
|
|
2528
|
-
var tableId_0 = action_0.
|
|
2552
|
+
var this_3 = this.z9g_1;
|
|
2553
|
+
var tableId_0 = action_0.v8n_1.id;
|
|
2529
2554
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2530
2555
|
var players = getPlayers();
|
|
2531
2556
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2559,7 +2584,7 @@
|
|
|
2559
2584
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2560
2585
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2561
2586
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2562
|
-
var tmp0_aid_0 = this_3.
|
|
2587
|
+
var tmp0_aid_0 = this_3.y9g_1.g6d();
|
|
2563
2588
|
// Inline function 'kotlin.collections.map' call
|
|
2564
2589
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2565
2590
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -2584,43 +2609,43 @@
|
|
|
2584
2609
|
} else {
|
|
2585
2610
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2586
2611
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2587
|
-
var this_4 = this.
|
|
2612
|
+
var this_4 = this.z9g_1;
|
|
2588
2613
|
var table_0 = state.a6n();
|
|
2589
2614
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2590
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2615
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.y9g_1.g6d(), table_0.id, null);
|
|
2591
2616
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2592
2617
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2593
2618
|
} else {
|
|
2594
2619
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2595
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2596
|
-
var this_5 = this.
|
|
2621
|
+
var this_5 = this.z9g_1;
|
|
2597
2622
|
var table_1 = state.a6n();
|
|
2598
2623
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2599
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2624
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.y9g_1.g6d(), table_1.id, null);
|
|
2600
2625
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2601
2626
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2602
2627
|
} else {
|
|
2603
2628
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2604
2629
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2605
|
-
var this_6 = this.
|
|
2630
|
+
var this_6 = this.z9g_1;
|
|
2606
2631
|
var table_2 = state.a6n();
|
|
2607
2632
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2608
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2633
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.y9g_1.g6d(), table_2.id, null);
|
|
2609
2634
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2610
2635
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2611
2636
|
} else {
|
|
2612
2637
|
if (action_0 instanceof ErrorAction) {
|
|
2613
2638
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2614
|
-
var this_7 = this.
|
|
2639
|
+
var this_7 = this.z9g_1;
|
|
2615
2640
|
var table_3 = state.a6n();
|
|
2616
2641
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2617
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2642
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.y9g_1.g6d(), table_3.id, null);
|
|
2618
2643
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2619
2644
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2620
2645
|
} else {
|
|
2621
2646
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2622
2647
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2623
|
-
var this_8 = this.
|
|
2648
|
+
var this_8 = this.z9g_1;
|
|
2624
2649
|
var table_4 = state.a6n();
|
|
2625
2650
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2626
2651
|
var tableId_1 = table_4.id;
|
|
@@ -2657,7 +2682,7 @@
|
|
|
2657
2682
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2658
2683
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2659
2684
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2660
|
-
var tmp0_aid_1 = this_8.
|
|
2685
|
+
var tmp0_aid_1 = this_8.y9g_1.g6d();
|
|
2661
2686
|
// Inline function 'kotlin.collections.map' call
|
|
2662
2687
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2663
2688
|
var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2682,7 +2707,7 @@
|
|
|
2682
2707
|
} else {
|
|
2683
2708
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2684
2709
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2685
|
-
var this_9 = this.
|
|
2710
|
+
var this_9 = this.z9g_1;
|
|
2686
2711
|
var table_5 = state.a6n();
|
|
2687
2712
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2688
2713
|
var tableId_2 = table_5.id;
|
|
@@ -2719,7 +2744,7 @@
|
|
|
2719
2744
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2720
2745
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2721
2746
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2722
|
-
var tmp0_aid_2 = this_9.
|
|
2747
|
+
var tmp0_aid_2 = this_9.y9g_1.g6d();
|
|
2723
2748
|
// Inline function 'kotlin.collections.map' call
|
|
2724
2749
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2725
2750
|
var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2744,7 +2769,7 @@
|
|
|
2744
2769
|
} else {
|
|
2745
2770
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2746
2771
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2747
|
-
var this_10 = this.
|
|
2772
|
+
var this_10 = this.z9g_1;
|
|
2748
2773
|
var table_6 = state.a6n();
|
|
2749
2774
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2750
2775
|
var tableId_3 = table_6.id;
|
|
@@ -2781,7 +2806,7 @@
|
|
|
2781
2806
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2782
2807
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2783
2808
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2784
|
-
var tmp0_aid_3 = this_10.
|
|
2809
|
+
var tmp0_aid_3 = this_10.y9g_1.g6d();
|
|
2785
2810
|
// Inline function 'kotlin.collections.map' call
|
|
2786
2811
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2787
2812
|
var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2794,7 +2819,7 @@
|
|
|
2794
2819
|
}
|
|
2795
2820
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2796
2821
|
var tmp_0;
|
|
2797
|
-
if (this.
|
|
2822
|
+
if (this.z9g_1.x9g_1.supportBackwardActions && getPlayer(state.a6n().players, sendToPlayer_8.e79_1).u6s_1.z6s_1) {
|
|
2798
2823
|
tmp_0 = null;
|
|
2799
2824
|
} else {
|
|
2800
2825
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2812,79 +2837,79 @@
|
|
|
2812
2837
|
} else {
|
|
2813
2838
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2814
2839
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2815
|
-
var this_11 = this.
|
|
2840
|
+
var this_11 = this.z9g_1;
|
|
2816
2841
|
var table_7 = state.a6n();
|
|
2817
|
-
var exceptPlayerId = this.
|
|
2842
|
+
var exceptPlayerId = this.z9g_1.x9g_1.supportBackwardActions ? action_0.p8o_1 : null;
|
|
2818
2843
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2819
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2844
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.y9g_1.g6d(), table_7.id, exceptPlayerId);
|
|
2820
2845
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2821
2846
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2822
2847
|
} else {
|
|
2823
2848
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2824
2849
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2825
|
-
var this_12 = this.
|
|
2850
|
+
var this_12 = this.z9g_1;
|
|
2826
2851
|
var table_8 = state.a6n();
|
|
2827
|
-
var exceptPlayerId_0 = this.
|
|
2852
|
+
var exceptPlayerId_0 = this.z9g_1.x9g_1.supportBackwardActions ? action_0.t8j_1 : null;
|
|
2828
2853
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2829
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2854
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.y9g_1.g6d(), table_8.id, exceptPlayerId_0);
|
|
2830
2855
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2831
2856
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2832
2857
|
} else {
|
|
2833
2858
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2834
2859
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2835
|
-
var this_13 = this.
|
|
2860
|
+
var this_13 = this.z9g_1;
|
|
2836
2861
|
var table_9 = state.a6n();
|
|
2837
2862
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2838
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2863
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.y9g_1.g6d(), table_9.id, null);
|
|
2839
2864
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2840
2865
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2841
2866
|
} else {
|
|
2842
2867
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2843
2868
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2844
|
-
var this_14 = this.
|
|
2869
|
+
var this_14 = this.z9g_1;
|
|
2845
2870
|
var table_10 = state.a6n();
|
|
2846
|
-
var exceptPlayerId_1 = this.
|
|
2871
|
+
var exceptPlayerId_1 = this.z9g_1.x9g_1.supportBackwardActions ? action_0.v8o_1 : null;
|
|
2847
2872
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2848
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2873
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.y9g_1.g6d(), table_10.id, exceptPlayerId_1);
|
|
2849
2874
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2850
2875
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2851
2876
|
} else {
|
|
2852
2877
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2853
2878
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2854
|
-
var this_15 = this.
|
|
2879
|
+
var this_15 = this.z9g_1;
|
|
2855
2880
|
var table_11 = state.a6n();
|
|
2856
|
-
var exceptPlayerId_2 = this.
|
|
2881
|
+
var exceptPlayerId_2 = this.z9g_1.x9g_1.supportBackwardActions ? action_0.y8j_1 : null;
|
|
2857
2882
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2858
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2883
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.y9g_1.g6d(), table_11.id, exceptPlayerId_2);
|
|
2859
2884
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2860
2885
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2861
2886
|
} else {
|
|
2862
2887
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2863
2888
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2864
|
-
var this_16 = this.
|
|
2889
|
+
var this_16 = this.z9g_1;
|
|
2865
2890
|
var table_12 = state.a6n();
|
|
2866
2891
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2867
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2892
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.y9g_1.g6d(), table_12.id, null);
|
|
2868
2893
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2869
2894
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2870
2895
|
} else {
|
|
2871
2896
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2872
2897
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2873
|
-
var this_17 = this.
|
|
2898
|
+
var this_17 = this.z9g_1;
|
|
2874
2899
|
var table_13 = state.a6n();
|
|
2875
2900
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2876
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2901
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.y9g_1.g6d(), table_13.id, null);
|
|
2877
2902
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2878
2903
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2879
2904
|
} else {
|
|
2880
2905
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2881
|
-
var message = action_0.
|
|
2906
|
+
var message = action_0.z8o_1;
|
|
2882
2907
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2883
|
-
var this_18 = this.
|
|
2908
|
+
var this_18 = this.z9g_1;
|
|
2884
2909
|
var table_14 = state.a6n();
|
|
2885
2910
|
var tmp_1;
|
|
2886
2911
|
var tmp_2;
|
|
2887
|
-
if (this.
|
|
2912
|
+
if (this.z9g_1.x9g_1.supportBackwardActions) {
|
|
2888
2913
|
tmp_2 = isInterface(message, UserMessage);
|
|
2889
2914
|
} else {
|
|
2890
2915
|
tmp_2 = false;
|
|
@@ -2896,17 +2921,17 @@
|
|
|
2896
2921
|
}
|
|
2897
2922
|
var exceptPlayerId_3 = tmp_1;
|
|
2898
2923
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2899
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2924
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.y9g_1.g6d(), table_14.id, exceptPlayerId_3);
|
|
2900
2925
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2901
2926
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2902
2927
|
} else {
|
|
2903
2928
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2904
2929
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2905
|
-
var this_19 = this.
|
|
2930
|
+
var this_19 = this.z9g_1;
|
|
2906
2931
|
var table_15 = state.a6n();
|
|
2907
2932
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2908
2933
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2909
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
2934
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.y9g_1.g6d(), table_15.id, exceptPlayerId_4);
|
|
2910
2935
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2911
2936
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2912
2937
|
} else {
|
|
@@ -2944,10 +2969,10 @@
|
|
|
2944
2969
|
return this.u6g(store, next, action);
|
|
2945
2970
|
};
|
|
2946
2971
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2947
|
-
this.
|
|
2948
|
-
this.
|
|
2972
|
+
this.x9g_1 = logicConfig;
|
|
2973
|
+
this.y9g_1 = idsProvider;
|
|
2949
2974
|
}
|
|
2950
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
2975
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).q8s = function () {
|
|
2951
2976
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2952
2977
|
return new _no_name_provided__qut3iv_0(this);
|
|
2953
2978
|
};
|
|
@@ -2956,8 +2981,8 @@
|
|
|
2956
2981
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2957
2982
|
}
|
|
2958
2983
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
2959
|
-
this.
|
|
2960
|
-
this.
|
|
2984
|
+
this.i9h_1 = $provider;
|
|
2985
|
+
this.j9h_1 = $action;
|
|
2961
2986
|
CoroutineImpl.call(this, resultContinuation);
|
|
2962
2987
|
}
|
|
2963
2988
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -2978,7 +3003,7 @@
|
|
|
2978
3003
|
case 0:
|
|
2979
3004
|
this.f9_1 = 2;
|
|
2980
3005
|
this.e9_1 = 1;
|
|
2981
|
-
suspendResult = this.
|
|
3006
|
+
suspendResult = this.i9h_1.t9d(this.j9h_1, this);
|
|
2982
3007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2983
3008
|
return suspendResult;
|
|
2984
3009
|
}
|
|
@@ -3001,8 +3026,8 @@
|
|
|
3001
3026
|
while (true);
|
|
3002
3027
|
};
|
|
3003
3028
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3004
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3005
|
-
i.
|
|
3029
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.i9h_1, this.j9h_1, completion);
|
|
3030
|
+
i.k9h_1 = $this$launchDefault;
|
|
3006
3031
|
return i;
|
|
3007
3032
|
};
|
|
3008
3033
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3014,8 +3039,8 @@
|
|
|
3014
3039
|
return l;
|
|
3015
3040
|
}
|
|
3016
3041
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3017
|
-
this.
|
|
3018
|
-
this.
|
|
3042
|
+
this.l9h_1 = $asyncProvider;
|
|
3043
|
+
this.m9h_1 = $provider;
|
|
3019
3044
|
}
|
|
3020
3045
|
protoOf(_no_name_provided__qut3iv_1).d6f = function (action) {
|
|
3021
3046
|
return action instanceof ToClientAction;
|
|
@@ -3023,7 +3048,7 @@
|
|
|
3023
3048
|
protoOf(_no_name_provided__qut3iv_1).u6g = function (store, next, action) {
|
|
3024
3049
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3025
3050
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3026
|
-
this.
|
|
3051
|
+
this.l9h_1.d6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.m9h_1, action_0, null));
|
|
3027
3052
|
next(action_0);
|
|
3028
3053
|
};
|
|
3029
3054
|
protoOf(_no_name_provided__qut3iv_1).c6f = function (store, next, action) {
|
|
@@ -3038,13 +3063,13 @@
|
|
|
3038
3063
|
protoOf(_no_name_provided__qut3iv_2).d6f = function (action) {
|
|
3039
3064
|
return action instanceof UpdateServerConfigAction;
|
|
3040
3065
|
};
|
|
3041
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3066
|
+
protoOf(_no_name_provided__qut3iv_2).l8z = function (state, action) {
|
|
3042
3067
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3043
3068
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3044
|
-
return state.
|
|
3069
|
+
return state.q8m(VOID, get_serverState_0(state).n9h(action_0.f9g_1));
|
|
3045
3070
|
};
|
|
3046
3071
|
protoOf(_no_name_provided__qut3iv_2).v6g = function (state, action) {
|
|
3047
|
-
return this.
|
|
3072
|
+
return this.l8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3048
3073
|
};
|
|
3049
3074
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3050
3075
|
return function (it) {
|
|
@@ -3057,7 +3082,7 @@
|
|
|
3057
3082
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3058
3083
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3059
3084
|
Companion_getInstance();
|
|
3060
|
-
var this_0 = $action.
|
|
3085
|
+
var this_0 = $action.o8n_1.timeoutTimeMillis;
|
|
3061
3086
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3062
3087
|
tmp_0 = tmp_1.e68(tmp_2, tmp$ret$0);
|
|
3063
3088
|
}
|
|
@@ -3066,47 +3091,47 @@
|
|
|
3066
3091
|
}
|
|
3067
3092
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3068
3093
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3069
|
-
this.
|
|
3094
|
+
this.q9h_1 = logger;
|
|
3070
3095
|
}
|
|
3071
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3096
|
+
protoOf(ServerMechanicLifecycleReducer).x90 = function (state, action) {
|
|
3072
3097
|
var serverState = get_serverStateOrNull(state.z6l_1);
|
|
3073
3098
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3074
|
-
var tmp0_$this = this.
|
|
3075
|
-
var tmp1_tableId = action.
|
|
3076
|
-
var tmp2_gameId = action.
|
|
3077
|
-
var tmp3_version = action.
|
|
3078
|
-
var tmp4_config = action.
|
|
3079
|
-
var tmp5_users = action.
|
|
3099
|
+
var tmp0_$this = this.y90_1;
|
|
3100
|
+
var tmp1_tableId = action.p8n_1;
|
|
3101
|
+
var tmp2_gameId = action.p8n_1;
|
|
3102
|
+
var tmp3_version = action.q8n_1;
|
|
3103
|
+
var tmp4_config = action.o8n_1;
|
|
3104
|
+
var tmp5_users = action.s8n_1;
|
|
3080
3105
|
var tmp6_spectators = action.spectators;
|
|
3081
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3082
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3106
|
+
var tmp7_gameCreatorPlayerId = action.r8n_1;
|
|
3107
|
+
var tmp9_tableOrNull = tmp0_$this.e92(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3083
3108
|
var tmp;
|
|
3084
3109
|
if (serverState == null) {
|
|
3085
|
-
this.
|
|
3086
|
-
tmp = Companion_instance_9.
|
|
3110
|
+
this.q9h_1.w(VOID, 'ServerPayload is not onStart');
|
|
3111
|
+
tmp = Companion_instance_9.p9d();
|
|
3087
3112
|
} else {
|
|
3088
3113
|
tmp = serverState;
|
|
3089
3114
|
}
|
|
3090
3115
|
var tmp10_payload = tmp;
|
|
3091
|
-
return state.
|
|
3116
|
+
return state.q8m(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3092
3117
|
};
|
|
3093
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3094
|
-
this.
|
|
3118
|
+
protoOf(ServerMechanicLifecycleReducer).w90 = function (state, action) {
|
|
3119
|
+
this.z90_1.r5n(action.previousGameId);
|
|
3095
3120
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3096
|
-
var tmp1_tableOrNull = this.
|
|
3097
|
-
return state.
|
|
3121
|
+
var tmp1_tableOrNull = this.y90_1.f92(state.a6n(), action.gameId);
|
|
3122
|
+
return state.q8m(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3098
3123
|
};
|
|
3099
3124
|
function spectatorsReducer(logger) {
|
|
3100
3125
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3101
3126
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3102
3127
|
}
|
|
3103
3128
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3104
|
-
this.
|
|
3129
|
+
this.r9h_1 = $logger;
|
|
3105
3130
|
}
|
|
3106
3131
|
protoOf(_no_name_provided__qut3iv_3).d6f = function (action) {
|
|
3107
3132
|
return isInterface(action, SpectatorsAction);
|
|
3108
3133
|
};
|
|
3109
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3134
|
+
protoOf(_no_name_provided__qut3iv_3).l8z = function (state, action) {
|
|
3110
3135
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3111
3136
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3112
3137
|
var table = state.a6n();
|
|
@@ -3114,7 +3139,7 @@
|
|
|
3114
3139
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3115
3140
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3116
3141
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3117
|
-
var this_0 = action_0.
|
|
3142
|
+
var this_0 = action_0.g9g_1;
|
|
3118
3143
|
var destination = ArrayList_init_$Create$();
|
|
3119
3144
|
// Inline function 'kotlin.collections.forEach' call
|
|
3120
3145
|
var tmp0_iterator = this_0.j();
|
|
@@ -3136,10 +3161,10 @@
|
|
|
3136
3161
|
var tmp_0;
|
|
3137
3162
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3138
3163
|
if (!sameSpectators.p()) {
|
|
3139
|
-
this.
|
|
3164
|
+
this.r9h_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3140
3165
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3141
3166
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3142
|
-
var this_1 = action_0.
|
|
3167
|
+
var this_1 = action_0.g9g_1;
|
|
3143
3168
|
var destination_0 = ArrayList_init_$Create$();
|
|
3144
3169
|
var tmp0_iterator_0 = this_1.j();
|
|
3145
3170
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3175,7 +3200,7 @@
|
|
|
3175
3200
|
}
|
|
3176
3201
|
tmp_0 = destination_0;
|
|
3177
3202
|
} else {
|
|
3178
|
-
tmp_0 = action_0.
|
|
3203
|
+
tmp_0 = action_0.g9g_1;
|
|
3179
3204
|
}
|
|
3180
3205
|
var this_2 = tmp_0;
|
|
3181
3206
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3188,12 +3213,12 @@
|
|
|
3188
3213
|
destination_1.e(tmp$ret$10);
|
|
3189
3214
|
}
|
|
3190
3215
|
var spectatorsToAdd = toSet(destination_1);
|
|
3191
|
-
tmp = state.
|
|
3216
|
+
tmp = state.q8m(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3192
3217
|
} else {
|
|
3193
3218
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3194
3219
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3195
3220
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3196
|
-
var this_3 = action_0.
|
|
3221
|
+
var this_3 = action_0.h9g_1;
|
|
3197
3222
|
var destination_2 = ArrayList_init_$Create$();
|
|
3198
3223
|
// Inline function 'kotlin.collections.forEach' call
|
|
3199
3224
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3214,10 +3239,10 @@
|
|
|
3214
3239
|
var tmp_2;
|
|
3215
3240
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3216
3241
|
if (!sameSpectators_0.p()) {
|
|
3217
|
-
this.
|
|
3242
|
+
this.r9h_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3218
3243
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3219
3244
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3220
|
-
var this_4 = action_0.
|
|
3245
|
+
var this_4 = action_0.h9g_1;
|
|
3221
3246
|
var destination_3 = ArrayList_init_$Create$();
|
|
3222
3247
|
var tmp0_iterator_4 = this_4.j();
|
|
3223
3248
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3253,7 +3278,7 @@
|
|
|
3253
3278
|
}
|
|
3254
3279
|
tmp_2 = destination_3;
|
|
3255
3280
|
} else {
|
|
3256
|
-
tmp_2 = action_0.
|
|
3281
|
+
tmp_2 = action_0.h9g_1;
|
|
3257
3282
|
}
|
|
3258
3283
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3259
3284
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3292,7 +3317,7 @@
|
|
|
3292
3317
|
destination_4.e(element_5);
|
|
3293
3318
|
}
|
|
3294
3319
|
}
|
|
3295
|
-
tmp = state.
|
|
3320
|
+
tmp = state.q8m(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3296
3321
|
} else {
|
|
3297
3322
|
noWhenBranchMatchedException();
|
|
3298
3323
|
}
|
|
@@ -3300,32 +3325,32 @@
|
|
|
3300
3325
|
return tmp;
|
|
3301
3326
|
};
|
|
3302
3327
|
protoOf(_no_name_provided__qut3iv_3).v6g = function (state, action) {
|
|
3303
|
-
return this.
|
|
3328
|
+
return this.l8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3304
3329
|
};
|
|
3305
3330
|
function Companion_1() {
|
|
3306
3331
|
}
|
|
3307
|
-
protoOf(Companion_1).
|
|
3332
|
+
protoOf(Companion_1).s9h = function (config) {
|
|
3308
3333
|
return new ServerState(config);
|
|
3309
3334
|
};
|
|
3310
|
-
protoOf(Companion_1).
|
|
3335
|
+
protoOf(Companion_1).p9d = function (config, $super) {
|
|
3311
3336
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3312
|
-
return $super === VOID ? this.
|
|
3337
|
+
return $super === VOID ? this.s9h(config) : $super.s9h.call(this, config);
|
|
3313
3338
|
};
|
|
3314
3339
|
var Companion_instance_9;
|
|
3315
3340
|
function Companion_getInstance_2() {
|
|
3316
3341
|
return Companion_instance_9;
|
|
3317
3342
|
}
|
|
3318
3343
|
function ServerState(config) {
|
|
3319
|
-
this.
|
|
3344
|
+
this.z9c_1 = config;
|
|
3320
3345
|
}
|
|
3321
|
-
protoOf(ServerState).
|
|
3346
|
+
protoOf(ServerState).n9h = function (config) {
|
|
3322
3347
|
return new ServerState(config);
|
|
3323
3348
|
};
|
|
3324
3349
|
protoOf(ServerState).toString = function () {
|
|
3325
|
-
return 'ServerState(config=' + this.
|
|
3350
|
+
return 'ServerState(config=' + this.z9c_1.toString() + ')';
|
|
3326
3351
|
};
|
|
3327
3352
|
protoOf(ServerState).hashCode = function () {
|
|
3328
|
-
return this.
|
|
3353
|
+
return this.z9c_1.hashCode();
|
|
3329
3354
|
};
|
|
3330
3355
|
protoOf(ServerState).equals = function (other) {
|
|
3331
3356
|
if (this === other)
|
|
@@ -3333,7 +3358,7 @@
|
|
|
3333
3358
|
if (!(other instanceof ServerState))
|
|
3334
3359
|
return false;
|
|
3335
3360
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3336
|
-
if (!this.
|
|
3361
|
+
if (!this.z9c_1.equals(tmp0_other_with_cast.z9c_1))
|
|
3337
3362
|
return false;
|
|
3338
3363
|
return true;
|
|
3339
3364
|
};
|
|
@@ -3371,13 +3396,13 @@
|
|
|
3371
3396
|
}
|
|
3372
3397
|
function _get_controllerLogger__nbd727($this) {
|
|
3373
3398
|
// Inline function 'kotlin.getValue' call
|
|
3374
|
-
var this_0 = $this.
|
|
3399
|
+
var this_0 = $this.b9i_1;
|
|
3375
3400
|
controllerLogger$factory();
|
|
3376
3401
|
return this_0.u();
|
|
3377
3402
|
}
|
|
3378
3403
|
function _get_di__ndbzja($this) {
|
|
3379
3404
|
// Inline function 'kotlin.getValue' call
|
|
3380
|
-
var this_0 = $this.
|
|
3405
|
+
var this_0 = $this.c9i_1;
|
|
3381
3406
|
di$factory();
|
|
3382
3407
|
return this_0.u();
|
|
3383
3408
|
}
|
|
@@ -3388,13 +3413,13 @@
|
|
|
3388
3413
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3389
3414
|
return function () {
|
|
3390
3415
|
var tmp;
|
|
3391
|
-
if (this$0.
|
|
3416
|
+
if (this$0.z9h_1 == null) {
|
|
3392
3417
|
tmp = null;
|
|
3393
3418
|
} else {
|
|
3394
3419
|
// Inline function 'kotlin.let' call
|
|
3395
3420
|
// Inline function 'kotlin.contracts.contract' call
|
|
3396
3421
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3397
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3422
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.z9h_1)]));
|
|
3398
3423
|
}
|
|
3399
3424
|
var tmp1_elvis_lhs = tmp;
|
|
3400
3425
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3422,7 +3447,7 @@
|
|
|
3422
3447
|
tmp_0.h5y(tmp$ret$3);
|
|
3423
3448
|
$this$DI.l5u(jsonModule());
|
|
3424
3449
|
$this$DI.l5u(serverHelpersModule());
|
|
3425
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3450
|
+
$this$DI.l5u(randomOrgModule(this$0.a9i_1));
|
|
3426
3451
|
return Unit_instance;
|
|
3427
3452
|
};
|
|
3428
3453
|
}
|
|
@@ -3433,16 +3458,16 @@
|
|
|
3433
3458
|
};
|
|
3434
3459
|
}
|
|
3435
3460
|
function _no_name_provided__qut3iv_4($item) {
|
|
3436
|
-
this.
|
|
3461
|
+
this.i9i_1 = $item;
|
|
3437
3462
|
}
|
|
3438
3463
|
protoOf(_no_name_provided__qut3iv_4).d6f = function (action) {
|
|
3439
3464
|
return isInterface(action, Action);
|
|
3440
3465
|
};
|
|
3441
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3442
|
-
return this.
|
|
3466
|
+
protoOf(_no_name_provided__qut3iv_4).l8z = function (state, action) {
|
|
3467
|
+
return this.i9i_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3443
3468
|
};
|
|
3444
3469
|
protoOf(_no_name_provided__qut3iv_4).v6g = function (state, action) {
|
|
3445
|
-
return this.
|
|
3470
|
+
return this.l8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3446
3471
|
};
|
|
3447
3472
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3448
3473
|
return function ($this$singleton) {
|
|
@@ -3499,7 +3524,7 @@
|
|
|
3499
3524
|
}
|
|
3500
3525
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
3501
3526
|
return function (it) {
|
|
3502
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
3527
|
+
var tmp0_elvis_lhs = Companion_instance_4.h94(it);
|
|
3503
3528
|
var tmp;
|
|
3504
3529
|
if (tmp0_elvis_lhs == null) {
|
|
3505
3530
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3512,7 +3537,7 @@
|
|
|
3512
3537
|
}
|
|
3513
3538
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
3514
3539
|
return function (it) {
|
|
3515
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
3540
|
+
var tmp0_elvis_lhs = Companion_instance_5.s92(it);
|
|
3516
3541
|
var tmp;
|
|
3517
3542
|
if (tmp0_elvis_lhs == null) {
|
|
3518
3543
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3534,7 +3559,7 @@
|
|
|
3534
3559
|
// Inline function 'kotlin.contracts.contract' call
|
|
3535
3560
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
3536
3561
|
}
|
|
3537
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3562
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.a9i_1));
|
|
3538
3563
|
$this$DI.l5u(coreModule($coreConfig));
|
|
3539
3564
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3540
3565
|
return Unit_instance;
|
|
@@ -3543,76 +3568,76 @@
|
|
|
3543
3568
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3544
3569
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3545
3570
|
production = production === VOID ? true : production;
|
|
3546
|
-
this.
|
|
3547
|
-
this.
|
|
3571
|
+
this.z9h_1 = loggerCallback;
|
|
3572
|
+
this.a9i_1 = randomOrgConfig;
|
|
3548
3573
|
AppEnvironment_getInstance().g6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3549
3574
|
var tmp = this;
|
|
3550
|
-
tmp.
|
|
3575
|
+
tmp.b9i_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3551
3576
|
var tmp_0 = this;
|
|
3552
|
-
tmp_0.
|
|
3577
|
+
tmp_0.c9i_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3553
3578
|
var tmp_1 = this;
|
|
3554
3579
|
// Inline function 'org.kodein.di.instance' call
|
|
3555
3580
|
var this_0 = _get_di__ndbzja(this);
|
|
3556
3581
|
// Inline function 'org.kodein.type.generic' call
|
|
3557
3582
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3558
3583
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3559
|
-
tmp_1.
|
|
3584
|
+
tmp_1.d9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
3560
3585
|
var tmp_3 = this;
|
|
3561
3586
|
// Inline function 'org.kodein.di.instance' call
|
|
3562
3587
|
var this_1 = _get_di__ndbzja(this);
|
|
3563
3588
|
// Inline function 'org.kodein.type.generic' call
|
|
3564
3589
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3565
3590
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3566
|
-
tmp_3.
|
|
3591
|
+
tmp_3.e9i_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
3567
3592
|
var tmp_5 = this;
|
|
3568
3593
|
// Inline function 'org.kodein.di.instance' call
|
|
3569
3594
|
var this_2 = _get_di__ndbzja(this);
|
|
3570
3595
|
// Inline function 'org.kodein.type.generic' call
|
|
3571
3596
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3572
3597
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3573
|
-
tmp_5.
|
|
3598
|
+
tmp_5.f9i_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
3574
3599
|
var tmp_7 = this;
|
|
3575
3600
|
// Inline function 'org.kodein.di.instance' call
|
|
3576
3601
|
var this_3 = _get_di__ndbzja(this);
|
|
3577
3602
|
// Inline function 'org.kodein.type.generic' call
|
|
3578
3603
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3579
3604
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3580
|
-
tmp_7.
|
|
3605
|
+
tmp_7.g9i_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
3581
3606
|
var tmp_9 = this;
|
|
3582
3607
|
// Inline function 'org.kodein.di.instance' call
|
|
3583
3608
|
var this_4 = _get_di__ndbzja(this);
|
|
3584
3609
|
// Inline function 'org.kodein.type.generic' call
|
|
3585
3610
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3586
3611
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3587
|
-
tmp_9.
|
|
3612
|
+
tmp_9.h9i_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
3588
3613
|
}
|
|
3589
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3614
|
+
protoOf(GameServerEngineControllerImpl).t9h = function () {
|
|
3590
3615
|
// Inline function 'kotlin.getValue' call
|
|
3591
|
-
var this_0 = this.
|
|
3616
|
+
var this_0 = this.d9i_1;
|
|
3592
3617
|
parser$factory_0();
|
|
3593
3618
|
return this_0.u();
|
|
3594
3619
|
};
|
|
3595
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3620
|
+
protoOf(GameServerEngineControllerImpl).v9h = function () {
|
|
3596
3621
|
// Inline function 'kotlin.getValue' call
|
|
3597
|
-
var this_0 = this.
|
|
3622
|
+
var this_0 = this.e9i_1;
|
|
3598
3623
|
helper$factory_0();
|
|
3599
3624
|
return this_0.u();
|
|
3600
3625
|
};
|
|
3601
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3626
|
+
protoOf(GameServerEngineControllerImpl).w9h = function () {
|
|
3602
3627
|
// Inline function 'kotlin.getValue' call
|
|
3603
|
-
var this_0 = this.
|
|
3628
|
+
var this_0 = this.f9i_1;
|
|
3604
3629
|
resources$factory_0();
|
|
3605
3630
|
return this_0.u();
|
|
3606
3631
|
};
|
|
3607
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3632
|
+
protoOf(GameServerEngineControllerImpl).u9h = function () {
|
|
3608
3633
|
// Inline function 'kotlin.getValue' call
|
|
3609
|
-
var this_0 = this.
|
|
3634
|
+
var this_0 = this.g9i_1;
|
|
3610
3635
|
test$factory_0();
|
|
3611
3636
|
return this_0.u();
|
|
3612
3637
|
};
|
|
3613
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3638
|
+
protoOf(GameServerEngineControllerImpl).x9h = function () {
|
|
3614
3639
|
// Inline function 'kotlin.getValue' call
|
|
3615
|
-
var this_0 = this.
|
|
3640
|
+
var this_0 = this.h9i_1;
|
|
3616
3641
|
randomPoolProvider$factory_0();
|
|
3617
3642
|
return this_0.u();
|
|
3618
3643
|
};
|
|
@@ -3622,7 +3647,7 @@
|
|
|
3622
3647
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3623
3648
|
return this.createGameEngineWithLogic();
|
|
3624
3649
|
};
|
|
3625
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3650
|
+
protoOf(GameServerEngineControllerImpl).y9h = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3626
3651
|
var combinedLogger = Companion_instance_6.qm();
|
|
3627
3652
|
var tmp;
|
|
3628
3653
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3632,8 +3657,8 @@
|
|
|
3632
3657
|
}
|
|
3633
3658
|
var fileLoggerOutput = tmp;
|
|
3634
3659
|
var tmp_0;
|
|
3635
|
-
if (!(this.
|
|
3636
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3660
|
+
if (!(this.z9h_1 == null)) {
|
|
3661
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.z9h_1));
|
|
3637
3662
|
} else {
|
|
3638
3663
|
tmp_0 = null;
|
|
3639
3664
|
}
|
|
@@ -3676,12 +3701,12 @@
|
|
|
3676
3701
|
var gameServer = tmp_1.v5v(tmp$ret$7, null);
|
|
3677
3702
|
if (!(fileLoggerOutput == null)) {
|
|
3678
3703
|
var tmp_3 = fileLoggerOutput;
|
|
3679
|
-
tmp_3.
|
|
3704
|
+
tmp_3.w93_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
3680
3705
|
combinedLogger.sm(fileLoggerOutput);
|
|
3681
3706
|
}
|
|
3682
3707
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
3683
3708
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
3684
|
-
tmp_4.
|
|
3709
|
+
tmp_4.u92_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
3685
3710
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
3686
3711
|
}
|
|
3687
3712
|
return gameServer;
|
|
@@ -3750,13 +3775,13 @@
|
|
|
3750
3775
|
}
|
|
3751
3776
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3752
3777
|
// Inline function 'kotlin.getValue' call
|
|
3753
|
-
var this_0 = $this.
|
|
3778
|
+
var this_0 = $this.l9i_1;
|
|
3754
3779
|
playerAnswerInteractor$factory_0();
|
|
3755
3780
|
return this_0.u();
|
|
3756
3781
|
}
|
|
3757
3782
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3758
3783
|
return function ($this$singleton) {
|
|
3759
|
-
return this$0.
|
|
3784
|
+
return this$0.j9i_1;
|
|
3760
3785
|
};
|
|
3761
3786
|
}
|
|
3762
3787
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3785,20 +3810,20 @@
|
|
|
3785
3810
|
return emptyMap();
|
|
3786
3811
|
}
|
|
3787
3812
|
function TestHelperImpl(logger) {
|
|
3788
|
-
this.
|
|
3813
|
+
this.j9i_1 = logger;
|
|
3789
3814
|
var tmp = this;
|
|
3790
3815
|
var tmp_0 = Companion_instance_3;
|
|
3791
|
-
tmp.
|
|
3816
|
+
tmp.k9i_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
3792
3817
|
var tmp_1 = this;
|
|
3793
3818
|
// Inline function 'org.kodein.di.instance' call
|
|
3794
|
-
var this_0 = this.
|
|
3819
|
+
var this_0 = this.k9i_1;
|
|
3795
3820
|
// Inline function 'org.kodein.type.generic' call
|
|
3796
3821
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3797
3822
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3798
|
-
tmp_1.
|
|
3823
|
+
tmp_1.l9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
3799
3824
|
}
|
|
3800
3825
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3801
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3826
|
+
return _get_playerAnswerInteractor__msggz1(this).g8d(playerId, table, botConfig);
|
|
3802
3827
|
};
|
|
3803
3828
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
3804
3829
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -3806,7 +3831,7 @@
|
|
|
3806
3831
|
var tmp$ret$0;
|
|
3807
3832
|
$l$block_0: {
|
|
3808
3833
|
// Inline function 'kotlin.collections.any' call
|
|
3809
|
-
var this_0 = mechanicAction.
|
|
3834
|
+
var this_0 = mechanicAction.c8q();
|
|
3810
3835
|
var tmp;
|
|
3811
3836
|
if (isInterface(this_0, Collection)) {
|
|
3812
3837
|
tmp = this_0.p();
|
|
@@ -3839,7 +3864,7 @@
|
|
|
3839
3864
|
var tmp$ret$0;
|
|
3840
3865
|
$l$block_0: {
|
|
3841
3866
|
// Inline function 'kotlin.collections.any' call
|
|
3842
|
-
var this_0 = action.
|
|
3867
|
+
var this_0 = action.c8q();
|
|
3843
3868
|
var tmp;
|
|
3844
3869
|
if (isInterface(this_0, Collection)) {
|
|
3845
3870
|
tmp = this_0.p();
|
|
@@ -3939,19 +3964,19 @@
|
|
|
3939
3964
|
});
|
|
3940
3965
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
3941
3966
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
3942
|
-
return this.
|
|
3967
|
+
return this.t9h();
|
|
3943
3968
|
});
|
|
3944
3969
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
3945
|
-
return this.
|
|
3970
|
+
return this.v9h();
|
|
3946
3971
|
});
|
|
3947
3972
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
3948
|
-
return this.
|
|
3973
|
+
return this.w9h();
|
|
3949
3974
|
});
|
|
3950
3975
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
3951
|
-
return this.
|
|
3976
|
+
return this.u9h();
|
|
3952
3977
|
});
|
|
3953
3978
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
3954
|
-
return this.
|
|
3979
|
+
return this.x9h();
|
|
3955
3980
|
});
|
|
3956
3981
|
//endregion
|
|
3957
3982
|
//region block: init
|