client_plugin_logic_deb 1.4.92 → 1.4.93
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/88b0986a7186d029-atomicfu-js-ir.js +4 -4
- package/Kodein-kodein-di.js +588 -588
- package/Kodein-kodein-di.js.map +1 -1
- package/KosiTypeSystem-kaverit.js +59 -59
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +59 -59
- package/Logic_Debertz-client_plugin.d.ts +17 -13
- package/Logic_Debertz-client_plugin.js +6155 -5530
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1333 -1333
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +10035 -10035
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +6883 -6884
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +593 -593
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +1256 -1252
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1796 -1796
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1299 -1299
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3318 -1982
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/uuid-js-ir.js +20 -20
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
var THROW_CCE = kotlin_kotlin.$_$.ad;
|
|
38
38
|
var AppState = kotlin_com_gamewithcats_game_engine_engine.$_$.q6;
|
|
39
39
|
var classMeta = kotlin_kotlin.$_$.f9;
|
|
40
|
-
var VOID = kotlin_kotlin.$_$.
|
|
40
|
+
var VOID = kotlin_kotlin.$_$.fe;
|
|
41
41
|
var setMetadataFor = kotlin_kotlin.$_$.ja;
|
|
42
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
43
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
42
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
43
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
44
44
|
var isInterface = kotlin_kotlin.$_$.w9;
|
|
45
|
-
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
45
|
+
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
46
46
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.h8;
|
|
47
47
|
var BaseGame = kotlin_com_gamewithcats_game_engine_engine.$_$.t6;
|
|
48
48
|
var emptyList = kotlin_kotlin.$_$.c6;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
54
54
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
55
55
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.e;
|
|
56
|
-
var plus = kotlin_kotlin.$_$.
|
|
56
|
+
var plus = kotlin_kotlin.$_$.i7;
|
|
57
57
|
var GameStore = kotlin_com_gamewithcats_game_engine_engine.$_$.v6;
|
|
58
58
|
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.i4;
|
|
59
59
|
var PlayerConnectionUpdateAction = kotlin_com_gamewithcats_game_engine_engine.$_$.v5;
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
var defineProp = kotlin_kotlin.$_$.h9;
|
|
73
73
|
var KProperty1 = kotlin_kotlin.$_$.xa;
|
|
74
74
|
var getPropertyCallableRef = kotlin_kotlin.$_$.l9;
|
|
75
|
-
var to = kotlin_kotlin.$_$.
|
|
76
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
75
|
+
var to = kotlin_kotlin.$_$.ee;
|
|
76
|
+
var mapOf = kotlin_kotlin.$_$.c7;
|
|
77
77
|
var Companion_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.j8;
|
|
78
78
|
var Long = kotlin_kotlin.$_$.uc;
|
|
79
79
|
var toString = kotlin_kotlin.$_$.na;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
89
89
|
var GameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.u6;
|
|
90
90
|
var interfaceMeta = kotlin_kotlin.$_$.o9;
|
|
91
|
-
var listOf = kotlin_kotlin.$_$.
|
|
91
|
+
var listOf = kotlin_kotlin.$_$.y6;
|
|
92
92
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
93
93
|
var Collection = kotlin_kotlin.$_$.s4;
|
|
94
94
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.j5;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
var getContinuePlayerTurnTimerDelayMillis = kotlin_com_gamewithcats_game_engine_engine.$_$.d6;
|
|
99
99
|
var TimerType_DELAY_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.y4;
|
|
100
100
|
var StartTimerAction = kotlin_com_gamewithcats_game_engine_core.$_$.e3;
|
|
101
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
101
|
+
var listOf_0 = kotlin_kotlin.$_$.z6;
|
|
102
102
|
var mapToFinishReason = kotlin_com_gamewithcats_game_engine_core.$_$.p;
|
|
103
103
|
var PlayerConnectionChangedMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.e5;
|
|
104
104
|
var AskBotAction = kotlin_com_gamewithcats_game_engine_engine.$_$.u5;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
var LastCardInteractor = kotlin_com_gamewithcats_game_engine_engine.$_$.s3;
|
|
133
133
|
var LogicReduxConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.f3;
|
|
134
134
|
var BotReduxConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.d3;
|
|
135
|
-
var listOfNotNull = kotlin_kotlin.$_$.
|
|
135
|
+
var listOfNotNull = kotlin_kotlin.$_$.x6;
|
|
136
136
|
var gameStatisticsMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.a6;
|
|
137
137
|
var clearOnFinishMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.g6;
|
|
138
138
|
var putPlayerLastCardMiddleware = kotlin_com_gamewithcats_game_engine_engine.$_$.b6;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
var PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.e7;
|
|
194
194
|
var Rules = kotlin_com_gamewithcats_game_engine_core.$_$.u;
|
|
195
195
|
var mapOfObject = kotlin_com_gamewithcats_game_engine_core.$_$.x3;
|
|
196
|
-
var getValue = kotlin_kotlin.$_$.
|
|
196
|
+
var getValue = kotlin_kotlin.$_$.m6;
|
|
197
197
|
var Companion_getInstance_4 = kotlin_com_gamewithcats_game_engine_core.$_$.g5;
|
|
198
198
|
var RulesSetType_custom_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.l4;
|
|
199
199
|
var RulesSetType_debertzKharkiv_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.n4;
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
tmp = existingNicknames;
|
|
266
266
|
}
|
|
267
267
|
existingNicknames = tmp;
|
|
268
|
-
return this.
|
|
268
|
+
return this.g7y(playerId, existingNicknames);
|
|
269
269
|
}
|
|
270
270
|
setMetadataFor(GameResources, 'GameResources', interfaceMeta);
|
|
271
271
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
@@ -294,10 +294,10 @@
|
|
|
294
294
|
}
|
|
295
295
|
middlewares = tmp_0;
|
|
296
296
|
isPrivateRoom = isPrivateRoom === VOID ? false : isPrivateRoom;
|
|
297
|
-
finishGameIfAllBots = finishGameIfAllBots === VOID ? (new ServerReduxConfig()).
|
|
298
|
-
closeIfBotsAtFinish = closeIfBotsAtFinish === VOID ? (new ServerReduxConfig()).
|
|
299
|
-
dealerStrategy = dealerStrategy === VOID ? (new LogicReduxConfig()).
|
|
300
|
-
return this.
|
|
297
|
+
finishGameIfAllBots = finishGameIfAllBots === VOID ? (new ServerReduxConfig()).t7v_1 : finishGameIfAllBots;
|
|
298
|
+
closeIfBotsAtFinish = closeIfBotsAtFinish === VOID ? (new ServerReduxConfig()).w7v_1 : closeIfBotsAtFinish;
|
|
299
|
+
dealerStrategy = dealerStrategy === VOID ? (new LogicReduxConfig()).z34_1.a35_1 : dealerStrategy;
|
|
300
|
+
return this.v7y(reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish, dealerStrategy);
|
|
301
301
|
}
|
|
302
302
|
setMetadataFor(GameEngineController, 'GameEngineController', interfaceMeta);
|
|
303
303
|
setMetadataFor(_no_name_provided__qut3iv_7, VOID, classMeta, VOID, [Reducer]);
|
|
@@ -306,17 +306,17 @@
|
|
|
306
306
|
setMetadataFor(TestHelperImpl, 'TestHelperImpl', classMeta, VOID, [TestHelper]);
|
|
307
307
|
//endregion
|
|
308
308
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
309
|
-
this.
|
|
309
|
+
this.x7u_1 = $subscriber;
|
|
310
310
|
CoroutineImpl.call(this, resultContinuation);
|
|
311
311
|
}
|
|
312
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
313
|
-
var tmp = this.
|
|
312
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).z4z = function (it, $completion) {
|
|
313
|
+
var tmp = this.a50(it, $completion);
|
|
314
314
|
tmp.xh_1 = Unit_getInstance();
|
|
315
315
|
tmp.yh_1 = null;
|
|
316
316
|
return tmp.ei();
|
|
317
317
|
};
|
|
318
318
|
protoOf(GameServer$subscribeWith$slambda$slambda).qi = function (p1, $completion) {
|
|
319
|
-
return this.
|
|
319
|
+
return this.z4z(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
320
320
|
};
|
|
321
321
|
protoOf(GameServer$subscribeWith$slambda$slambda).ei = function () {
|
|
322
322
|
var suspendResult = this.xh_1;
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
var tmp = this.vh_1;
|
|
326
326
|
if (tmp === 0) {
|
|
327
327
|
this.wh_1 = 1;
|
|
328
|
-
this.
|
|
328
|
+
this.x7u_1(this.y7u_1);
|
|
329
329
|
return Unit_getInstance();
|
|
330
330
|
} else if (tmp === 1) {
|
|
331
331
|
throw this.yh_1;
|
|
@@ -336,15 +336,15 @@
|
|
|
336
336
|
}
|
|
337
337
|
while (true);
|
|
338
338
|
};
|
|
339
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
340
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
341
|
-
i.
|
|
339
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).a50 = function (it, completion) {
|
|
340
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.x7u_1, completion);
|
|
341
|
+
i.y7u_1 = it;
|
|
342
342
|
return i;
|
|
343
343
|
};
|
|
344
344
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
345
345
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
346
346
|
var l = function (it, $completion) {
|
|
347
|
-
return i.
|
|
347
|
+
return i.z4z(it, $completion);
|
|
348
348
|
};
|
|
349
349
|
l.$arity = 1;
|
|
350
350
|
return l;
|
|
@@ -353,29 +353,29 @@
|
|
|
353
353
|
var tmp$ret$0;
|
|
354
354
|
// Inline function 'kotlin.getValue' call
|
|
355
355
|
var tmp0_getValue = logger$factory_0();
|
|
356
|
-
tmp$ret$0 = $this.
|
|
356
|
+
tmp$ret$0 = $this.b7v_1.n1();
|
|
357
357
|
return tmp$ret$0;
|
|
358
358
|
}
|
|
359
359
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
360
|
-
this.
|
|
360
|
+
this.d7v_1 = function_0;
|
|
361
361
|
}
|
|
362
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
363
|
-
var tmp0 = this.
|
|
362
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).iy = function (value, $completion) {
|
|
363
|
+
var tmp0 = this.d7v_1(value, $completion);
|
|
364
364
|
return tmp0;
|
|
365
365
|
};
|
|
366
366
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
367
|
+
this.m7v_1 = this$0;
|
|
368
|
+
this.n7v_1 = $subscriber;
|
|
369
369
|
CoroutineImpl.call(this, resultContinuation);
|
|
370
370
|
}
|
|
371
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
372
|
-
var tmp = this.
|
|
371
|
+
protoOf(GameServer$subscribeWith$slambda).c16 = function ($this$launchWorker, $completion) {
|
|
372
|
+
var tmp = this.d16($this$launchWorker, $completion);
|
|
373
373
|
tmp.xh_1 = Unit_getInstance();
|
|
374
374
|
tmp.yh_1 = null;
|
|
375
375
|
return tmp.ei();
|
|
376
376
|
};
|
|
377
377
|
protoOf(GameServer$subscribeWith$slambda).qi = function (p1, $completion) {
|
|
378
|
-
return this.
|
|
378
|
+
return this.c16((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
379
379
|
};
|
|
380
380
|
protoOf(GameServer$subscribeWith$slambda).ei = function () {
|
|
381
381
|
var suspendResult = this.xh_1;
|
|
@@ -386,8 +386,8 @@
|
|
|
386
386
|
case 0:
|
|
387
387
|
this.wh_1 = 2;
|
|
388
388
|
this.vh_1 = 1;
|
|
389
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
390
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
389
|
+
var tmp_0 = distinctUntilChanged(this.m7v_1.f33());
|
|
390
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.n7v_1, null);
|
|
391
391
|
suspendResult = tmp_0.ux(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
392
392
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
393
393
|
return suspendResult;
|
|
@@ -410,21 +410,21 @@
|
|
|
410
410
|
}
|
|
411
411
|
while (true);
|
|
412
412
|
};
|
|
413
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
414
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
415
|
-
i.
|
|
413
|
+
protoOf(GameServer$subscribeWith$slambda).d16 = function ($this$launchWorker, completion) {
|
|
414
|
+
var i = new GameServer$subscribeWith$slambda(this.m7v_1, this.n7v_1, completion);
|
|
415
|
+
i.o7v_1 = $this$launchWorker;
|
|
416
416
|
return i;
|
|
417
417
|
};
|
|
418
418
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
419
419
|
var i = new GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation);
|
|
420
420
|
var l = function ($this$launchWorker, $completion) {
|
|
421
|
-
return i.
|
|
421
|
+
return i.c16($this$launchWorker, $completion);
|
|
422
422
|
};
|
|
423
423
|
l.$arity = 1;
|
|
424
424
|
return l;
|
|
425
425
|
}
|
|
426
426
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
427
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_getInstance_6().
|
|
427
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_getInstance_6().p7v()) : preloadedState;
|
|
428
428
|
var tmp;
|
|
429
429
|
if (externalReducers === VOID) {
|
|
430
430
|
var tmp$ret$0;
|
|
@@ -458,77 +458,77 @@
|
|
|
458
458
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
459
459
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
460
460
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
461
|
-
tmp_1.
|
|
461
|
+
tmp_1.b7v_1 = tmp$ret$3.x2m(this, logger$factory());
|
|
462
462
|
var tmp_3 = this;
|
|
463
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
464
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
465
|
-
tmp_3.
|
|
463
|
+
var tmp0_externalMiddlewares = plus(storeContract.x4p(), externalMiddlewares);
|
|
464
|
+
var tmp1_externalReducers = plus(storeContract.w4p(), externalReducers);
|
|
465
|
+
tmp_3.c7v_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
466
466
|
}
|
|
467
|
-
protoOf(GameServer).
|
|
468
|
-
return this.
|
|
467
|
+
protoOf(GameServer).p32 = function () {
|
|
468
|
+
return this.c7v_1;
|
|
469
469
|
};
|
|
470
|
-
protoOf(GameServer).
|
|
471
|
-
return this.zj().
|
|
470
|
+
protoOf(GameServer).j34 = function () {
|
|
471
|
+
return this.zj().k34().id;
|
|
472
472
|
};
|
|
473
|
-
protoOf(GameServer).
|
|
474
|
-
return this.zj().
|
|
473
|
+
protoOf(GameServer).k34 = function () {
|
|
474
|
+
return this.zj().k34();
|
|
475
475
|
};
|
|
476
|
-
protoOf(GameServer).
|
|
477
|
-
return this.zj().
|
|
476
|
+
protoOf(GameServer).l34 = function () {
|
|
477
|
+
return this.zj().l34();
|
|
478
478
|
};
|
|
479
|
-
protoOf(GameServer).
|
|
480
|
-
return this.zj().
|
|
479
|
+
protoOf(GameServer).m34 = function () {
|
|
480
|
+
return this.zj().i33_1;
|
|
481
481
|
};
|
|
482
482
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
483
|
-
var tmp = this.
|
|
484
|
-
tmp.
|
|
483
|
+
var tmp = this.n32();
|
|
484
|
+
tmp.u2v(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
485
485
|
};
|
|
486
486
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
487
487
|
_get_logger__rkp4sl(this).d(VOID, 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
488
|
-
this.
|
|
488
|
+
this.c7v_1.m2x().dispatch(action);
|
|
489
489
|
};
|
|
490
490
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
491
491
|
_get_logger__rkp4sl(this).d(VOID, 'playerLostConnection: ' + playerId);
|
|
492
|
-
var tmp = this.
|
|
492
|
+
var tmp = this.c7v_1.m2x().dispatch;
|
|
493
493
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
494
494
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
495
495
|
};
|
|
496
496
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
497
497
|
_get_logger__rkp4sl(this).d(VOID, 'playerLive: ' + playerId);
|
|
498
|
-
var tmp = this.
|
|
498
|
+
var tmp = this.c7v_1.m2x().dispatch;
|
|
499
499
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
500
500
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
501
501
|
};
|
|
502
502
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
503
503
|
_get_logger__rkp4sl(this).d(VOID, 'playerLeft: ' + playerId);
|
|
504
|
-
var tmp = this.
|
|
504
|
+
var tmp = this.c7v_1.m2x().dispatch;
|
|
505
505
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
506
506
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
507
507
|
};
|
|
508
508
|
protoOf(GameServer).roomOnCreate = function (roomId, gameCreatorId, config, users) {
|
|
509
509
|
var usersList = toList(users);
|
|
510
510
|
var gameCreatorUser = getPlayer(usersList, gameCreatorId);
|
|
511
|
-
this.
|
|
511
|
+
this.c7v_1.m2x().dispatch(new RoomWasCreatedAction(roomId, gameCreatorId, config, sortWithItem(usersList, gameCreatorUser)));
|
|
512
512
|
};
|
|
513
513
|
protoOf(GameServer).roomOnDelete = function () {
|
|
514
|
-
this.
|
|
514
|
+
this.c7v_1.m2x().dispatch(RoomWasDeletedAction_getInstance());
|
|
515
515
|
};
|
|
516
516
|
protoOf(GameServer).clear = function () {
|
|
517
|
-
protoOf(BaseGame).
|
|
517
|
+
protoOf(BaseGame).z2.call(this);
|
|
518
518
|
};
|
|
519
|
-
protoOf(GameServer).
|
|
519
|
+
protoOf(GameServer).z2 = function () {
|
|
520
520
|
return this.clear();
|
|
521
521
|
};
|
|
522
522
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
523
|
-
this.
|
|
523
|
+
this.c7v_1.m2x().dispatch(new UpdateServerConfigAction(get_serverState(this.c7v_1.m2x().state).q7v_1.s7v(enabled)));
|
|
524
524
|
};
|
|
525
525
|
protoOf(GameServer).shutdown = function (reason) {
|
|
526
|
-
if (this.
|
|
526
|
+
if (this.c7v_1.m2x().state.l34()) {
|
|
527
527
|
var tmp0_elvis_lhs = toDomainEnumSafe(reason, get_serverShutdownReasonMapping());
|
|
528
528
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
529
|
-
var tmp = this.
|
|
529
|
+
var tmp = this.c7v_1.m2x().dispatch;
|
|
530
530
|
var tmp1_subject = shutdownReason;
|
|
531
|
-
var tmp0 = tmp1_subject.
|
|
531
|
+
var tmp0 = tmp1_subject.s5_1;
|
|
532
532
|
var tmp_0;
|
|
533
533
|
switch (tmp0) {
|
|
534
534
|
case 0:
|
|
@@ -544,20 +544,20 @@
|
|
|
544
544
|
tmp(new FinishingGameMechanicAction(tmp_0));
|
|
545
545
|
} else {
|
|
546
546
|
_get_logger__rkp4sl(this).w(VOID, "GameServer: can't shutdown engine without table");
|
|
547
|
-
this.
|
|
547
|
+
this.c7v_1.m2x().dispatch(ClearAction_getInstance());
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
550
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
551
|
-
return this.
|
|
551
|
+
return this.j34();
|
|
552
552
|
});
|
|
553
553
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
554
|
-
return this.
|
|
554
|
+
return this.k34();
|
|
555
555
|
});
|
|
556
556
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
557
|
-
return this.
|
|
557
|
+
return this.l34();
|
|
558
558
|
});
|
|
559
559
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
560
|
-
return this.
|
|
560
|
+
return this.m34();
|
|
561
561
|
});
|
|
562
562
|
function logger$factory() {
|
|
563
563
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
@@ -603,23 +603,23 @@
|
|
|
603
603
|
tmp_0 = delayToAskBotMillis;
|
|
604
604
|
}
|
|
605
605
|
delayToAskBotMillis = tmp_0;
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
606
|
+
this.t7v_1 = finishGameIfAllBots;
|
|
607
|
+
this.u7v_1 = waitForPlayerToReconnect;
|
|
608
|
+
this.v7v_1 = waitForPlayerToReconnectTimeOutMillis;
|
|
609
|
+
this.w7v_1 = closeIfBotsAtFinish;
|
|
610
|
+
this.x7v_1 = botReplacesPlayerAfterTimeout;
|
|
611
|
+
this.y7v_1 = delayToAskBotMillis;
|
|
612
612
|
}
|
|
613
613
|
protoOf(ServerReduxConfig).toString = function () {
|
|
614
|
-
return 'ServerReduxConfig(finishGameIfAllBots=' + this.
|
|
614
|
+
return 'ServerReduxConfig(finishGameIfAllBots=' + this.t7v_1 + ', waitForPlayerToReconnect=' + this.u7v_1 + ', waitForPlayerToReconnectTimeOutMillis=' + toString(this.v7v_1) + ', closeIfBotsAtFinish=' + this.w7v_1 + ', botReplacesPlayerAfterTimeout=' + this.x7v_1 + ', delayToAskBotMillis=' + toString(this.y7v_1) + ')';
|
|
615
615
|
};
|
|
616
616
|
protoOf(ServerReduxConfig).hashCode = function () {
|
|
617
|
-
var result = this.
|
|
618
|
-
result = imul(result, 31) + (this.
|
|
619
|
-
result = imul(result, 31) + this.
|
|
620
|
-
result = imul(result, 31) + (this.
|
|
621
|
-
result = imul(result, 31) + (this.
|
|
622
|
-
result = imul(result, 31) + this.
|
|
617
|
+
var result = this.t7v_1 | 0;
|
|
618
|
+
result = imul(result, 31) + (this.u7v_1 | 0) | 0;
|
|
619
|
+
result = imul(result, 31) + this.v7v_1.hashCode() | 0;
|
|
620
|
+
result = imul(result, 31) + (this.w7v_1 | 0) | 0;
|
|
621
|
+
result = imul(result, 31) + (this.x7v_1 | 0) | 0;
|
|
622
|
+
result = imul(result, 31) + this.y7v_1.hashCode() | 0;
|
|
623
623
|
return result;
|
|
624
624
|
};
|
|
625
625
|
protoOf(ServerReduxConfig).equals = function (other) {
|
|
@@ -628,17 +628,17 @@
|
|
|
628
628
|
if (!(other instanceof ServerReduxConfig))
|
|
629
629
|
return false;
|
|
630
630
|
var tmp0_other_with_cast = other instanceof ServerReduxConfig ? other : THROW_CCE();
|
|
631
|
-
if (!(this.
|
|
631
|
+
if (!(this.t7v_1 === tmp0_other_with_cast.t7v_1))
|
|
632
632
|
return false;
|
|
633
|
-
if (!(this.
|
|
633
|
+
if (!(this.u7v_1 === tmp0_other_with_cast.u7v_1))
|
|
634
634
|
return false;
|
|
635
|
-
if (!this.
|
|
635
|
+
if (!this.v7v_1.equals(tmp0_other_with_cast.v7v_1))
|
|
636
636
|
return false;
|
|
637
|
-
if (!(this.
|
|
637
|
+
if (!(this.w7v_1 === tmp0_other_with_cast.w7v_1))
|
|
638
638
|
return false;
|
|
639
|
-
if (!(this.
|
|
639
|
+
if (!(this.x7v_1 === tmp0_other_with_cast.x7v_1))
|
|
640
640
|
return false;
|
|
641
|
-
if (!this.
|
|
641
|
+
if (!this.y7v_1.equals(tmp0_other_with_cast.y7v_1))
|
|
642
642
|
return false;
|
|
643
643
|
return true;
|
|
644
644
|
};
|
|
@@ -670,16 +670,16 @@
|
|
|
670
670
|
return tmp instanceof ServerUserPayload ? tmp : THROW_CCE();
|
|
671
671
|
}
|
|
672
672
|
function ServerConfig(canStartNewGame) {
|
|
673
|
-
this.
|
|
673
|
+
this.r7v_1 = canStartNewGame;
|
|
674
674
|
}
|
|
675
|
-
protoOf(ServerConfig).
|
|
675
|
+
protoOf(ServerConfig).s7v = function (canStartNewGame) {
|
|
676
676
|
return new ServerConfig(canStartNewGame);
|
|
677
677
|
};
|
|
678
678
|
protoOf(ServerConfig).toString = function () {
|
|
679
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
679
|
+
return 'ServerConfig(canStartNewGame=' + this.r7v_1 + ')';
|
|
680
680
|
};
|
|
681
681
|
protoOf(ServerConfig).hashCode = function () {
|
|
682
|
-
return this.
|
|
682
|
+
return this.r7v_1 | 0;
|
|
683
683
|
};
|
|
684
684
|
protoOf(ServerConfig).equals = function (other) {
|
|
685
685
|
if (this === other)
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
if (!(other instanceof ServerConfig))
|
|
688
688
|
return false;
|
|
689
689
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
690
|
-
if (!(this.
|
|
690
|
+
if (!(this.r7v_1 === tmp0_other_with_cast.r7v_1))
|
|
691
691
|
return false;
|
|
692
692
|
return true;
|
|
693
693
|
};
|
|
@@ -705,19 +705,19 @@
|
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
707
|
function createGameServerDI$lambda$lambda_0($this$singleton) {
|
|
708
|
-
return new ServerGameStoreContract($this$singleton.
|
|
708
|
+
return new ServerGameStoreContract($this$singleton.n2h());
|
|
709
709
|
}
|
|
710
710
|
function createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares) {
|
|
711
711
|
return function ($this$singleton) {
|
|
712
|
-
var tmp = $this$singleton.
|
|
712
|
+
var tmp = $this$singleton.n2h();
|
|
713
713
|
var tmp$ret$1;
|
|
714
714
|
// Inline function 'org.kodein.di.instance' call
|
|
715
|
-
var tmp_0 = $this$singleton.
|
|
715
|
+
var tmp_0 = $this$singleton.p2i();
|
|
716
716
|
var tmp$ret$0;
|
|
717
717
|
// Inline function 'org.kodein.type.generic' call
|
|
718
718
|
var tmp_1 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
719
719
|
tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
720
|
-
tmp$ret$1 = tmp_0.
|
|
720
|
+
tmp$ret$1 = tmp_0.q2i(tmp$ret$0, null);
|
|
721
721
|
return new GameServer(tmp, 'Game server', tmp$ret$1, VOID, $externalReducers, $externalMiddlewares);
|
|
722
722
|
};
|
|
723
723
|
}
|
|
@@ -729,159 +729,159 @@
|
|
|
729
729
|
// Inline function 'org.kodein.type.generic' call
|
|
730
730
|
var tmp = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
731
731
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
732
|
-
tmp$ret$1 = $this$$receiver.
|
|
732
|
+
tmp$ret$1 = $this$$receiver.g2h(tmp$ret$0, null, null);
|
|
733
733
|
var tmp_0 = tmp$ret$1;
|
|
734
734
|
var tmp$ret$3;
|
|
735
735
|
// Inline function 'org.kodein.di.singleton' call
|
|
736
736
|
var tmp0_singleton = createGameServerDI$lambda$lambda($serverConfig);
|
|
737
|
-
var tmp_1 = $this$$receiver.
|
|
738
|
-
var tmp_2 = $this$$receiver.
|
|
739
|
-
var tmp_3 = $this$$receiver.
|
|
737
|
+
var tmp_1 = $this$$receiver.w2i();
|
|
738
|
+
var tmp_2 = $this$$receiver.x2i();
|
|
739
|
+
var tmp_3 = $this$$receiver.v2k();
|
|
740
740
|
var tmp$ret$2;
|
|
741
741
|
// Inline function 'org.kodein.type.generic' call
|
|
742
742
|
var tmp_4 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
743
743
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
744
744
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
745
|
-
tmp_0.
|
|
746
|
-
$this$$receiver.
|
|
745
|
+
tmp_0.a2l(tmp$ret$3);
|
|
746
|
+
$this$$receiver.i2h(getServerEngineGameDI($botConfig, $logicConfig));
|
|
747
747
|
var tmp$ret$5;
|
|
748
748
|
// Inline function 'org.kodein.di.bind' call
|
|
749
749
|
var tmp$ret$4;
|
|
750
750
|
// Inline function 'org.kodein.type.generic' call
|
|
751
751
|
var tmp_5 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
752
752
|
tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
753
|
-
tmp$ret$5 = $this$$receiver.
|
|
753
|
+
tmp$ret$5 = $this$$receiver.g2h(tmp$ret$4, null, null);
|
|
754
754
|
var tmp_6 = tmp$ret$5;
|
|
755
755
|
var tmp$ret$7;
|
|
756
756
|
// Inline function 'org.kodein.di.singleton' call
|
|
757
757
|
var tmp1_singleton = createGameServerDI$lambda$lambda_0;
|
|
758
|
-
var tmp_7 = $this$$receiver.
|
|
759
|
-
var tmp_8 = $this$$receiver.
|
|
760
|
-
var tmp_9 = $this$$receiver.
|
|
758
|
+
var tmp_7 = $this$$receiver.w2i();
|
|
759
|
+
var tmp_8 = $this$$receiver.x2i();
|
|
760
|
+
var tmp_9 = $this$$receiver.v2k();
|
|
761
761
|
var tmp$ret$6;
|
|
762
762
|
// Inline function 'org.kodein.type.generic' call
|
|
763
763
|
var tmp_10 = typeToken(createKType(getKClass(ServerGameStoreContract), arrayOf([]), false));
|
|
764
764
|
tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
765
765
|
tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, tmp1_singleton);
|
|
766
|
-
tmp_6.
|
|
766
|
+
tmp_6.a2l(tmp$ret$7);
|
|
767
767
|
var tmp$ret$9;
|
|
768
768
|
// Inline function 'org.kodein.di.bind' call
|
|
769
769
|
var tmp$ret$8;
|
|
770
770
|
// Inline function 'org.kodein.type.generic' call
|
|
771
771
|
var tmp_11 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
772
772
|
tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
773
|
-
tmp$ret$9 = $this$$receiver.
|
|
773
|
+
tmp$ret$9 = $this$$receiver.g2h(tmp$ret$8, null, null);
|
|
774
774
|
var tmp_12 = tmp$ret$9;
|
|
775
775
|
var tmp$ret$11;
|
|
776
776
|
// Inline function 'org.kodein.di.singleton' call
|
|
777
777
|
var tmp2_singleton = createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares);
|
|
778
|
-
var tmp_13 = $this$$receiver.
|
|
779
|
-
var tmp_14 = $this$$receiver.
|
|
780
|
-
var tmp_15 = $this$$receiver.
|
|
778
|
+
var tmp_13 = $this$$receiver.w2i();
|
|
779
|
+
var tmp_14 = $this$$receiver.x2i();
|
|
780
|
+
var tmp_15 = $this$$receiver.v2k();
|
|
781
781
|
var tmp$ret$10;
|
|
782
782
|
// Inline function 'org.kodein.type.generic' call
|
|
783
783
|
var tmp_16 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
784
784
|
tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
785
785
|
tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, tmp2_singleton);
|
|
786
|
-
tmp_12.
|
|
786
|
+
tmp_12.a2l(tmp$ret$11);
|
|
787
787
|
return Unit_getInstance();
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
function getServerEngineGameDI$lambda$lambda($this$provider) {
|
|
791
791
|
var tmp$ret$1;
|
|
792
792
|
// Inline function 'org.kodein.di.instance' call
|
|
793
|
-
var tmp = $this$provider.
|
|
793
|
+
var tmp = $this$provider.p2i();
|
|
794
794
|
var tmp$ret$0;
|
|
795
795
|
// Inline function 'org.kodein.type.generic' call
|
|
796
796
|
var tmp_0 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
797
797
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
798
|
-
tmp$ret$1 = tmp.
|
|
798
|
+
tmp$ret$1 = tmp.q2i(tmp$ret$0, null);
|
|
799
799
|
var tmp_1 = tmp$ret$1;
|
|
800
800
|
var tmp$ret$3;
|
|
801
801
|
// Inline function 'org.kodein.di.instance' call
|
|
802
|
-
var tmp_2 = $this$provider.
|
|
802
|
+
var tmp_2 = $this$provider.p2i();
|
|
803
803
|
var tmp$ret$2;
|
|
804
804
|
// Inline function 'org.kodein.type.generic' call
|
|
805
805
|
var tmp_3 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
806
806
|
tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
807
|
-
tmp$ret$3 = tmp_2.
|
|
807
|
+
tmp$ret$3 = tmp_2.q2i(tmp$ret$2, null);
|
|
808
808
|
return new ServerMechanicLifecycleReducer(tmp_1, tmp$ret$3);
|
|
809
809
|
}
|
|
810
810
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
811
811
|
var tmp$ret$1;
|
|
812
812
|
// Inline function 'org.kodein.di.instance' call
|
|
813
|
-
var tmp = $this$provider.
|
|
813
|
+
var tmp = $this$provider.p2i();
|
|
814
814
|
var tmp$ret$0;
|
|
815
815
|
// Inline function 'org.kodein.type.generic' call
|
|
816
816
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
817
817
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
818
|
-
tmp$ret$1 = tmp.
|
|
818
|
+
tmp$ret$1 = tmp.q2i(tmp$ret$0, null);
|
|
819
819
|
var tmp_1 = tmp$ret$1;
|
|
820
820
|
var tmp$ret$3;
|
|
821
821
|
// Inline function 'org.kodein.di.instance' call
|
|
822
|
-
var tmp_2 = $this$provider.
|
|
822
|
+
var tmp_2 = $this$provider.p2i();
|
|
823
823
|
var tmp$ret$2;
|
|
824
824
|
// Inline function 'org.kodein.type.generic' call
|
|
825
825
|
var tmp_3 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
826
826
|
tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
827
|
-
tmp$ret$3 = tmp_2.
|
|
827
|
+
tmp$ret$3 = tmp_2.q2i(tmp$ret$2, null);
|
|
828
828
|
return new ReconnectionInteractor(tmp_1, tmp$ret$3);
|
|
829
829
|
}
|
|
830
830
|
function getServerEngineGameDI$lambda($botReduxConfig, $logicReduxConfig) {
|
|
831
831
|
return function ($this$$receiver) {
|
|
832
|
-
$this$$receiver.
|
|
833
|
-
$this$$receiver.
|
|
832
|
+
$this$$receiver.i2h(jsonModule(emptyList()));
|
|
833
|
+
$this$$receiver.i2h(getEngineGameModule($botReduxConfig, $logicReduxConfig));
|
|
834
834
|
var tmp$ret$1;
|
|
835
835
|
// Inline function 'org.kodein.di.bind' call
|
|
836
836
|
var tmp$ret$0;
|
|
837
837
|
// Inline function 'org.kodein.type.generic' call
|
|
838
838
|
var tmp = typeToken(createKType(getKClass(MechanicLifecycleReducer), arrayOf([]), false));
|
|
839
839
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
840
|
-
tmp$ret$1 = $this$$receiver.
|
|
840
|
+
tmp$ret$1 = $this$$receiver.g2h(tmp$ret$0, null, null);
|
|
841
841
|
var tmp_0 = tmp$ret$1;
|
|
842
842
|
var tmp$ret$3;
|
|
843
843
|
// Inline function 'org.kodein.di.provider' call
|
|
844
844
|
var tmp0_provider = getServerEngineGameDI$lambda$lambda;
|
|
845
|
-
var tmp_1 = $this$$receiver.
|
|
845
|
+
var tmp_1 = $this$$receiver.x2i();
|
|
846
846
|
var tmp$ret$2;
|
|
847
847
|
// Inline function 'org.kodein.type.generic' call
|
|
848
848
|
var tmp_2 = typeToken(createKType(getKClass(ServerMechanicLifecycleReducer), arrayOf([]), false));
|
|
849
849
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
850
850
|
tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, tmp0_provider);
|
|
851
|
-
tmp_0.
|
|
851
|
+
tmp_0.a2l(tmp$ret$3);
|
|
852
852
|
var tmp$ret$5;
|
|
853
853
|
// Inline function 'org.kodein.di.bind' call
|
|
854
854
|
var tmp$ret$4;
|
|
855
855
|
// Inline function 'org.kodein.type.generic' call
|
|
856
856
|
var tmp_3 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
857
857
|
tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
858
|
-
tmp$ret$5 = $this$$receiver.
|
|
858
|
+
tmp$ret$5 = $this$$receiver.g2h(tmp$ret$4, null, null);
|
|
859
859
|
var tmp_4 = tmp$ret$5;
|
|
860
860
|
var tmp$ret$7;
|
|
861
861
|
// Inline function 'org.kodein.di.provider' call
|
|
862
862
|
var tmp1_provider = getServerEngineGameDI$lambda$lambda_0;
|
|
863
|
-
var tmp_5 = $this$$receiver.
|
|
863
|
+
var tmp_5 = $this$$receiver.x2i();
|
|
864
864
|
var tmp$ret$6;
|
|
865
865
|
// Inline function 'org.kodein.type.generic' call
|
|
866
866
|
var tmp_6 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
867
867
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
868
868
|
tmp$ret$7 = new Provider(tmp_5, tmp$ret$6, tmp1_provider);
|
|
869
|
-
tmp_4.
|
|
869
|
+
tmp_4.a2l(tmp$ret$7);
|
|
870
870
|
return Unit_getInstance();
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
873
|
function ServerGameEngineContract() {
|
|
874
874
|
}
|
|
875
875
|
function waitPlayerOrDisconnect($this, connectionState, table, player, waitForPlayer, sendFinishToClientActions) {
|
|
876
|
-
if ($this.
|
|
876
|
+
if ($this.z7v_1.u7v_1 ? waitForPlayer : false) {
|
|
877
877
|
var tmp0_roomId = table.id;
|
|
878
878
|
var tmp1_players = table.playersConnections;
|
|
879
879
|
return getWaitingPlayerActions($this, tmp0_roomId, connectionState, player, tmp1_players, sendFinishToClientActions);
|
|
880
880
|
}
|
|
881
|
-
var isLivePlayersExists_0 = isLivePlayersExists($this, player.
|
|
882
|
-
var canRemoveGameWhenNoPlayers = $this.
|
|
881
|
+
var isLivePlayersExists_0 = isLivePlayersExists($this, player.m2o(), table.players);
|
|
882
|
+
var canRemoveGameWhenNoPlayers = $this.z7v_1.t7v_1 ? !isLivePlayersExists_0 : false;
|
|
883
883
|
var tmp;
|
|
884
|
-
if (canRemoveGameWhenNoPlayers ? true : !$this.
|
|
884
|
+
if (canRemoveGameWhenNoPlayers ? true : !$this.z7v_1.x7v_1) {
|
|
885
885
|
tmp = listOf(getFinishingAction($this, connectionState, player, table.playersConnections));
|
|
886
886
|
} else {
|
|
887
887
|
tmp = getPlayerDisconnectedActions($this, connectionState, table.id, player, table.playersConnections, sendFinishToClientActions);
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
var element = tmp0_iterator.h();
|
|
907
907
|
var tmp$ret$0;
|
|
908
908
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
909
|
-
tmp$ret$0 = element.
|
|
909
|
+
tmp$ret$0 = element.m2o() === exceptPlayerId;
|
|
910
910
|
if (!tmp$ret$0) {
|
|
911
911
|
tmp0_filterNotTo.a(element);
|
|
912
912
|
}
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
var element_0 = tmp0_iterator_0.h();
|
|
930
930
|
var tmp$ret$4;
|
|
931
931
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
932
|
-
tmp$ret$4 = element_0.
|
|
932
|
+
tmp$ret$4 = element_0.c38_1.r2p_1.isLive;
|
|
933
933
|
if (tmp$ret$4) {
|
|
934
934
|
tmp$ret$3 = true;
|
|
935
935
|
break $l$block_0;
|
|
@@ -938,7 +938,7 @@
|
|
|
938
938
|
tmp$ret$3 = false;
|
|
939
939
|
}
|
|
940
940
|
var isLivePlayersExists = tmp$ret$3;
|
|
941
|
-
var tmp_0 = 'finishGameIfAllBots: ' + $this.
|
|
941
|
+
var tmp_0 = 'finishGameIfAllBots: ' + $this.z7v_1.t7v_1 + ', ';
|
|
942
942
|
var tmp$ret$7;
|
|
943
943
|
// Inline function 'kotlin.collections.map' call
|
|
944
944
|
var tmp$ret$6;
|
|
@@ -949,12 +949,12 @@
|
|
|
949
949
|
var item = tmp0_iterator_1.h();
|
|
950
950
|
var tmp$ret$5;
|
|
951
951
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
952
|
-
tmp$ret$5 = to(item.
|
|
952
|
+
tmp$ret$5 = to(item.m2o(), item.c38_1.r2p_1.r5_1);
|
|
953
953
|
tmp2_mapTo.a(tmp$ret$5);
|
|
954
954
|
}
|
|
955
955
|
tmp$ret$6 = tmp2_mapTo;
|
|
956
956
|
tmp$ret$7 = tmp$ret$6;
|
|
957
|
-
$this.
|
|
957
|
+
$this.a7w_1.d('ReconnectionInteractor', tmp_0 + ('isLivePlayersExists: ' + isLivePlayersExists + ', ' + tmp$ret$7));
|
|
958
958
|
return isLivePlayersExists;
|
|
959
959
|
}
|
|
960
960
|
function getPlayerConnectedActions($this, player, table) {
|
|
@@ -963,8 +963,8 @@
|
|
|
963
963
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
964
964
|
var actionsList = tmp$ret$0;
|
|
965
965
|
actionsList.j(listOf(getContinueAction($this, player, table)));
|
|
966
|
-
if (player.
|
|
967
|
-
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.
|
|
966
|
+
if (player.c38_1.t2p()) {
|
|
967
|
+
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.m2o(), player.c38_1.f2q())), new StartTimerAction(new PlayerTurnTimerTag(player.m2o(), player.c38_1.f2q(), true), getContinuePlayerTurnTimerDelayMillis(player, $this.a7w_1), VOID, TimerType_DELAY_getInstance())]));
|
|
968
968
|
}
|
|
969
969
|
return actionsList;
|
|
970
970
|
}
|
|
@@ -976,23 +976,23 @@
|
|
|
976
976
|
if (finishToClientActions) {
|
|
977
977
|
actionsList.j(getFinishToClientActions($this, player, roomId, mapToFinishReason(connectionState, player, players)));
|
|
978
978
|
}
|
|
979
|
-
actionsList.a(new PlayerConnectionChangedMechanicAction(player.
|
|
980
|
-
if (player.
|
|
981
|
-
actionsList.a(new AskBotAction(player.
|
|
979
|
+
actionsList.a(new PlayerConnectionChangedMechanicAction(player.m2o(), connectionState));
|
|
980
|
+
if (player.c38_1.t2p()) {
|
|
981
|
+
actionsList.a(new AskBotAction(player.m2o(), 'PlayerTurn when connection changed'));
|
|
982
982
|
}
|
|
983
983
|
return actionsList;
|
|
984
984
|
}
|
|
985
985
|
function getFinishToClientActions($this, sendToPlayer, roomId, reason) {
|
|
986
|
-
if (!sendToPlayer.
|
|
986
|
+
if (!sendToPlayer.c38_1.r2p_1.isLive) {
|
|
987
987
|
return emptyList();
|
|
988
988
|
}
|
|
989
|
-
return listOf_0([new FinishingGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.
|
|
989
|
+
return listOf_0([new FinishingGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.m2o()), reason), new FinishGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.m2o()), reason)]);
|
|
990
990
|
}
|
|
991
991
|
function getContinueAction($this, sendToPlayer, table) {
|
|
992
|
-
var tmp = Companion_getInstance_0().user(table.id, sendToPlayer.
|
|
992
|
+
var tmp = Companion_getInstance_0().user(table.id, sendToPlayer.m2o());
|
|
993
993
|
var tmp_0 = Companion_getInstance_1();
|
|
994
|
-
var tmp_1 = sendToPlayer.
|
|
995
|
-
var tmp_2 = getGameCreator(table.players).
|
|
994
|
+
var tmp_1 = sendToPlayer.m2o();
|
|
995
|
+
var tmp_2 = getGameCreator(table.players).m2o();
|
|
996
996
|
var tmp$ret$2;
|
|
997
997
|
// Inline function 'kotlin.collections.map' call
|
|
998
998
|
var tmp1_map = table.players;
|
|
@@ -1004,12 +1004,12 @@
|
|
|
1004
1004
|
var item = tmp0_iterator.h();
|
|
1005
1005
|
var tmp$ret$0;
|
|
1006
1006
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.getContinueAction.<anonymous>' call
|
|
1007
|
-
tmp$ret$0 = item.
|
|
1007
|
+
tmp$ret$0 = item.m2o();
|
|
1008
1008
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1009
1009
|
}
|
|
1010
1010
|
tmp$ret$1 = tmp0_mapTo;
|
|
1011
1011
|
tmp$ret$2 = tmp$ret$1;
|
|
1012
|
-
return new ContinueGameToClientAction(tmp, mapToClient(table, tmp_0.
|
|
1012
|
+
return new ContinueGameToClientAction(tmp, mapToClient(table, tmp_0.g4o(tmp_1, tmp_2, table.id, tmp$ret$2)), new PlayerReturnsReason(sendToPlayer.m2o()), null);
|
|
1013
1013
|
}
|
|
1014
1014
|
function getFinishingAction($this, state, player, players) {
|
|
1015
1015
|
return new FinishingGameMechanicAction(mapToFinishReason(state, player, players));
|
|
@@ -1022,33 +1022,33 @@
|
|
|
1022
1022
|
if (finishToClientActions) {
|
|
1023
1023
|
actionsList.j(getFinishToClientActions($this, player, roomId, mapToFinishReason(connectionState, player, players)));
|
|
1024
1024
|
}
|
|
1025
|
-
var tmp = System_getInstance().
|
|
1025
|
+
var tmp = System_getInstance().z2m();
|
|
1026
1026
|
var tmp$ret$1;
|
|
1027
1027
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
1028
1028
|
var tmp0__get_milliseconds__kazo1t = Companion_getInstance_2();
|
|
1029
|
-
var tmp1__get_milliseconds__r2e6ua = $this.
|
|
1029
|
+
var tmp1__get_milliseconds__r2e6ua = $this.z7v_1.v7v_1;
|
|
1030
1030
|
tmp$ret$1 = toDuration(tmp1__get_milliseconds__r2e6ua, DurationUnit_MILLISECONDS_getInstance());
|
|
1031
|
-
var reconnectUntilTime = tmp.
|
|
1032
|
-
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.
|
|
1031
|
+
var reconnectUntilTime = tmp.n2n(tmp$ret$1);
|
|
1032
|
+
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.m2o(), PlayerConnectionState_DISCONNECTING_getInstance(), false, reconnectUntilTime.toString()), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(player.m2o(), connectionState), $this.z7v_1.v7v_1, VOID, TimerType_DELAY_getInstance())]));
|
|
1033
1033
|
return actionsList;
|
|
1034
1034
|
}
|
|
1035
1035
|
function ReconnectionInteractor(serverConfig, logger) {
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1036
|
+
this.z7v_1 = serverConfig;
|
|
1037
|
+
this.a7w_1 = logger;
|
|
1038
1038
|
}
|
|
1039
|
-
protoOf(ReconnectionInteractor).
|
|
1039
|
+
protoOf(ReconnectionInteractor).b7w = function (newConnectionState, playerId, table, afterReconnection) {
|
|
1040
1040
|
var player = getPlayer(table.players, playerId);
|
|
1041
1041
|
var tmp0_subject = newConnectionState;
|
|
1042
|
-
var tmp0 = tmp0_subject.
|
|
1042
|
+
var tmp0 = tmp0_subject.s5_1;
|
|
1043
1043
|
var tmp;
|
|
1044
1044
|
switch (tmp0) {
|
|
1045
1045
|
case 0:
|
|
1046
1046
|
tmp = getPlayerConnectedActions(this, player, table);
|
|
1047
1047
|
break;
|
|
1048
1048
|
case 3:
|
|
1049
|
-
var isLivePlayersExists_0 = isLivePlayersExists(this, player.
|
|
1050
|
-
var canRemoveGameWhenNoPlayers = this.
|
|
1051
|
-
var canRemoveGameWhenGameFinished = table.sceneInfo.
|
|
1049
|
+
var isLivePlayersExists_0 = isLivePlayersExists(this, player.m2o(), table.players);
|
|
1050
|
+
var canRemoveGameWhenNoPlayers = this.z7v_1.t7v_1 ? !isLivePlayersExists_0 : false;
|
|
1051
|
+
var canRemoveGameWhenGameFinished = table.sceneInfo.d4d() ? this.z7v_1.t7v_1 : false;
|
|
1052
1052
|
var tmp_0;
|
|
1053
1053
|
if (canRemoveGameWhenNoPlayers ? true : canRemoveGameWhenGameFinished) {
|
|
1054
1054
|
tmp_0 = listOf(getFinishingAction(this, newConnectionState, player, table.playersConnections));
|
|
@@ -1079,13 +1079,13 @@
|
|
|
1079
1079
|
return tmp;
|
|
1080
1080
|
};
|
|
1081
1081
|
function UpdateServerConfigAction(serverConfig) {
|
|
1082
|
-
this.
|
|
1082
|
+
this.c7w_1 = serverConfig;
|
|
1083
1083
|
}
|
|
1084
1084
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
1085
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
1085
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.c7w_1 + ')';
|
|
1086
1086
|
};
|
|
1087
1087
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
1088
|
-
return this.
|
|
1088
|
+
return this.c7w_1.hashCode();
|
|
1089
1089
|
};
|
|
1090
1090
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
1091
1091
|
if (this === other)
|
|
@@ -1093,28 +1093,28 @@
|
|
|
1093
1093
|
if (!(other instanceof UpdateServerConfigAction))
|
|
1094
1094
|
return false;
|
|
1095
1095
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
1096
|
-
if (!this.
|
|
1096
|
+
if (!this.c7w_1.equals(tmp0_other_with_cast.c7w_1))
|
|
1097
1097
|
return false;
|
|
1098
1098
|
return true;
|
|
1099
1099
|
};
|
|
1100
1100
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
1101
|
-
return this.
|
|
1101
|
+
return this.g2s();
|
|
1102
1102
|
});
|
|
1103
1103
|
function RoomWasCreatedAction(roomId, gameCreatorPlayerId, config, users) {
|
|
1104
1104
|
RoomAction.call(this);
|
|
1105
|
-
this.
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1108
|
-
this.
|
|
1105
|
+
this.d7w_1 = roomId;
|
|
1106
|
+
this.e7w_1 = gameCreatorPlayerId;
|
|
1107
|
+
this.f7w_1 = config;
|
|
1108
|
+
this.g7w_1 = users;
|
|
1109
1109
|
}
|
|
1110
1110
|
protoOf(RoomWasCreatedAction).toString = function () {
|
|
1111
|
-
return 'RoomWasCreatedAction(roomId=' + this.
|
|
1111
|
+
return 'RoomWasCreatedAction(roomId=' + this.d7w_1 + ', gameCreatorPlayerId=' + this.e7w_1 + ', config=' + this.f7w_1 + ', users=' + this.g7w_1 + ')';
|
|
1112
1112
|
};
|
|
1113
1113
|
protoOf(RoomWasCreatedAction).hashCode = function () {
|
|
1114
|
-
var result = getStringHashCode(this.
|
|
1115
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1116
|
-
result = imul(result, 31) + this.
|
|
1117
|
-
result = imul(result, 31) + hashCode(this.
|
|
1114
|
+
var result = getStringHashCode(this.d7w_1);
|
|
1115
|
+
result = imul(result, 31) + getStringHashCode(this.e7w_1) | 0;
|
|
1116
|
+
result = imul(result, 31) + this.f7w_1.hashCode() | 0;
|
|
1117
|
+
result = imul(result, 31) + hashCode(this.g7w_1) | 0;
|
|
1118
1118
|
return result;
|
|
1119
1119
|
};
|
|
1120
1120
|
protoOf(RoomWasCreatedAction).equals = function (other) {
|
|
@@ -1123,18 +1123,18 @@
|
|
|
1123
1123
|
if (!(other instanceof RoomWasCreatedAction))
|
|
1124
1124
|
return false;
|
|
1125
1125
|
var tmp0_other_with_cast = other instanceof RoomWasCreatedAction ? other : THROW_CCE();
|
|
1126
|
-
if (!(this.
|
|
1126
|
+
if (!(this.d7w_1 === tmp0_other_with_cast.d7w_1))
|
|
1127
1127
|
return false;
|
|
1128
|
-
if (!(this.
|
|
1128
|
+
if (!(this.e7w_1 === tmp0_other_with_cast.e7w_1))
|
|
1129
1129
|
return false;
|
|
1130
|
-
if (!this.
|
|
1130
|
+
if (!this.f7w_1.equals(tmp0_other_with_cast.f7w_1))
|
|
1131
1131
|
return false;
|
|
1132
|
-
if (!equals(this.
|
|
1132
|
+
if (!equals(this.g7w_1, tmp0_other_with_cast.g7w_1))
|
|
1133
1133
|
return false;
|
|
1134
1134
|
return true;
|
|
1135
1135
|
};
|
|
1136
1136
|
defineProp(protoOf(RoomWasCreatedAction), 'actionTag', function () {
|
|
1137
|
-
return this.
|
|
1137
|
+
return this.g2s();
|
|
1138
1138
|
});
|
|
1139
1139
|
function RoomWasDeletedAction() {
|
|
1140
1140
|
RoomWasDeletedAction_instance = this;
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
return 'RoomWasDeletedAction';
|
|
1145
1145
|
};
|
|
1146
1146
|
defineProp(protoOf(RoomWasDeletedAction), 'actionTag', function () {
|
|
1147
|
-
return this.
|
|
1147
|
+
return this.g2s();
|
|
1148
1148
|
});
|
|
1149
1149
|
var RoomWasDeletedAction_instance;
|
|
1150
1150
|
function RoomWasDeletedAction_getInstance() {
|
|
@@ -1155,64 +1155,64 @@
|
|
|
1155
1155
|
function RoomAction() {
|
|
1156
1156
|
}
|
|
1157
1157
|
defineProp(protoOf(RoomAction), 'actionTag', function () {
|
|
1158
|
-
return this.
|
|
1158
|
+
return this.g2s();
|
|
1159
1159
|
});
|
|
1160
1160
|
function _get_asyncProvider__jbpyhw($this) {
|
|
1161
1161
|
var tmp$ret$0;
|
|
1162
1162
|
// Inline function 'kotlin.getValue' call
|
|
1163
1163
|
var tmp0_getValue = asyncProvider$factory_0();
|
|
1164
|
-
tmp$ret$0 = $this.
|
|
1164
|
+
tmp$ret$0 = $this.k7w_1.n1();
|
|
1165
1165
|
return tmp$ret$0;
|
|
1166
1166
|
}
|
|
1167
1167
|
function _get_logger__rkp4sl_0($this) {
|
|
1168
1168
|
var tmp$ret$0;
|
|
1169
1169
|
// Inline function 'kotlin.getValue' call
|
|
1170
1170
|
var tmp0_getValue = logger$factory_2();
|
|
1171
|
-
tmp$ret$0 = $this.
|
|
1171
|
+
tmp$ret$0 = $this.l7w_1.n1();
|
|
1172
1172
|
return tmp$ret$0;
|
|
1173
1173
|
}
|
|
1174
1174
|
function _get_reconnectionInteractor__pua73z($this) {
|
|
1175
1175
|
var tmp$ret$0;
|
|
1176
1176
|
// Inline function 'kotlin.getValue' call
|
|
1177
1177
|
var tmp0_getValue = reconnectionInteractor$factory_0();
|
|
1178
|
-
tmp$ret$0 = $this.
|
|
1178
|
+
tmp$ret$0 = $this.m7w_1.n1();
|
|
1179
1179
|
return tmp$ret$0;
|
|
1180
1180
|
}
|
|
1181
1181
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
1182
1182
|
var tmp$ret$0;
|
|
1183
1183
|
// Inline function 'kotlin.getValue' call
|
|
1184
1184
|
var tmp0_getValue = lastCardInteractor$factory_0();
|
|
1185
|
-
tmp$ret$0 = $this.
|
|
1185
|
+
tmp$ret$0 = $this.n7w_1.n1();
|
|
1186
1186
|
return tmp$ret$0;
|
|
1187
1187
|
}
|
|
1188
1188
|
function _get_serverConfig__rk2g06($this) {
|
|
1189
1189
|
var tmp$ret$0;
|
|
1190
1190
|
// Inline function 'kotlin.getValue' call
|
|
1191
1191
|
var tmp0_getValue = serverConfig$factory_0();
|
|
1192
|
-
tmp$ret$0 = $this.
|
|
1192
|
+
tmp$ret$0 = $this.o7w_1.n1();
|
|
1193
1193
|
return tmp$ret$0;
|
|
1194
1194
|
}
|
|
1195
1195
|
function _get_logicConfig__52ww9d($this) {
|
|
1196
1196
|
var tmp$ret$0;
|
|
1197
1197
|
// Inline function 'kotlin.getValue' call
|
|
1198
1198
|
var tmp0_getValue = logicConfig$factory_0();
|
|
1199
|
-
tmp$ret$0 = $this.
|
|
1199
|
+
tmp$ret$0 = $this.p7w_1.n1();
|
|
1200
1200
|
return tmp$ret$0;
|
|
1201
1201
|
}
|
|
1202
1202
|
function _get_botConfig__cpaxzc($this) {
|
|
1203
1203
|
var tmp$ret$0;
|
|
1204
1204
|
// Inline function 'kotlin.getValue' call
|
|
1205
1205
|
var tmp0_getValue = botConfig$factory_0();
|
|
1206
|
-
tmp$ret$0 = $this.
|
|
1206
|
+
tmp$ret$0 = $this.q7w_1.n1();
|
|
1207
1207
|
return tmp$ret$0;
|
|
1208
1208
|
}
|
|
1209
1209
|
function ServerGameStoreContract(di, commonStoreContract, botGameStoreContract, gameMechanicStoreContract) {
|
|
1210
1210
|
commonStoreContract = commonStoreContract === VOID ? new CommonStoreContract(di) : commonStoreContract;
|
|
1211
1211
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
1212
1212
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di) : gameMechanicStoreContract;
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1213
|
+
this.h7w_1 = commonStoreContract;
|
|
1214
|
+
this.i7w_1 = botGameStoreContract;
|
|
1215
|
+
this.j7w_1 = gameMechanicStoreContract;
|
|
1216
1216
|
var tmp = this;
|
|
1217
1217
|
var tmp$ret$1;
|
|
1218
1218
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1221,7 +1221,7 @@
|
|
|
1221
1221
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
1222
1222
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1223
1223
|
tmp$ret$1 = Instance(di, tmp$ret$0, null);
|
|
1224
|
-
tmp.
|
|
1224
|
+
tmp.k7w_1 = tmp$ret$1.x2m(this, asyncProvider$factory());
|
|
1225
1225
|
var tmp_1 = this;
|
|
1226
1226
|
var tmp$ret$3;
|
|
1227
1227
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1230,7 +1230,7 @@
|
|
|
1230
1230
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
1231
1231
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1232
1232
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
1233
|
-
tmp_1.
|
|
1233
|
+
tmp_1.l7w_1 = tmp$ret$3.x2m(this, logger$factory_1());
|
|
1234
1234
|
var tmp_3 = this;
|
|
1235
1235
|
var tmp$ret$5;
|
|
1236
1236
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
var tmp_4 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
1240
1240
|
tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1241
1241
|
tmp$ret$5 = Instance(di, tmp$ret$4, null);
|
|
1242
|
-
tmp_3.
|
|
1242
|
+
tmp_3.m7w_1 = tmp$ret$5.x2m(this, reconnectionInteractor$factory());
|
|
1243
1243
|
var tmp_5 = this;
|
|
1244
1244
|
var tmp$ret$7;
|
|
1245
1245
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
1249
1249
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1250
1250
|
tmp$ret$7 = Instance(di, tmp$ret$6, null);
|
|
1251
|
-
tmp_5.
|
|
1251
|
+
tmp_5.n7w_1 = tmp$ret$7.x2m(this, lastCardInteractor$factory());
|
|
1252
1252
|
var tmp_7 = this;
|
|
1253
1253
|
var tmp$ret$9;
|
|
1254
1254
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1258
1258
|
tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1259
1259
|
tmp$ret$9 = Instance(di, tmp$ret$8, null);
|
|
1260
|
-
tmp_7.
|
|
1260
|
+
tmp_7.o7w_1 = tmp$ret$9.x2m(this, serverConfig$factory());
|
|
1261
1261
|
var tmp_9 = this;
|
|
1262
1262
|
var tmp$ret$11;
|
|
1263
1263
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1266,7 +1266,7 @@
|
|
|
1266
1266
|
var tmp_10 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
1267
1267
|
tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1268
1268
|
tmp$ret$11 = Instance(di, tmp$ret$10, null);
|
|
1269
|
-
tmp_9.
|
|
1269
|
+
tmp_9.p7w_1 = tmp$ret$11.x2m(this, logicConfig$factory());
|
|
1270
1270
|
var tmp_11 = this;
|
|
1271
1271
|
var tmp$ret$13;
|
|
1272
1272
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1275,13 +1275,13 @@
|
|
|
1275
1275
|
var tmp_12 = typeToken(createKType(getKClass(BotReduxConfig), arrayOf([]), false));
|
|
1276
1276
|
tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
1277
1277
|
tmp$ret$13 = Instance(di, tmp$ret$12, null);
|
|
1278
|
-
tmp_11.
|
|
1278
|
+
tmp_11.q7w_1 = tmp$ret$13.x2m(this, botConfig$factory());
|
|
1279
1279
|
}
|
|
1280
|
-
protoOf(ServerGameStoreContract).
|
|
1281
|
-
return plus(plus(plus(listOf(serverConfigReducer()), this.
|
|
1280
|
+
protoOf(ServerGameStoreContract).w4p = function () {
|
|
1281
|
+
return plus(plus(plus(listOf(serverConfigReducer()), this.h7w_1.w4p()), this.i7w_1.w4p()), this.j7w_1.w4p());
|
|
1282
1282
|
};
|
|
1283
|
-
protoOf(ServerGameStoreContract).
|
|
1284
|
-
return plus(plus(plus(plus(listOfNotNull([finishingGameWhenCantStartNewMiddleware(), checkGameIsFinishingWaitForRoomDeleteMiddleware(_get_logger__rkp4sl_0(this)), _get_serverConfig__rk2g06(this).
|
|
1283
|
+
protoOf(ServerGameStoreContract).x4p = function () {
|
|
1284
|
+
return plus(plus(plus(plus(listOfNotNull([finishingGameWhenCantStartNewMiddleware(), checkGameIsFinishingWaitForRoomDeleteMiddleware(_get_logger__rkp4sl_0(this)), _get_serverConfig__rk2g06(this).t7v_1 ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null]), this.h7w_1.x4p()), this.i7w_1.x4p()), this.j7w_1.x4p()), listOfNotNull([playerConnectionUpdateMiddleware(_get_reconnectionInteractor__pua73z(this)), playerReconnectionWaitingTimerTickMiddleware(_get_reconnectionInteractor__pua73z(this)), gameStatisticsMiddleware(), serverPlayerTurnTimerTickMiddleware(_get_serverConfig__rk2g06(this), _get_logger__rkp4sl_0(this)), serverMapMechanicToServerActionMiddleware(_get_logicConfig__52ww9d(this), _get_botConfig__cpaxzc(this), _get_lastCardInteractor__h6lq3w(this)), roomLifecycleMiddleware(_get_asyncProvider__jbpyhw(this), _get_logger__rkp4sl_0(this)), clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this)), _get_botConfig__cpaxzc(this).autoStepLastCard ? putPlayerLastCardMiddleware(_get_lastCardInteractor__h6lq3w(this)) : null]));
|
|
1285
1285
|
};
|
|
1286
1286
|
function asyncProvider$factory() {
|
|
1287
1287
|
return getPropertyCallableRef('asyncProvider', 1, KProperty1, function (receiver) {
|
|
@@ -1361,19 +1361,19 @@
|
|
|
1361
1361
|
}
|
|
1362
1362
|
function _no_name_provided__qut3iv() {
|
|
1363
1363
|
}
|
|
1364
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1364
|
+
protoOf(_no_name_provided__qut3iv).r2x = function (action) {
|
|
1365
1365
|
return action instanceof PartyEndedAction;
|
|
1366
1366
|
};
|
|
1367
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1367
|
+
protoOf(_no_name_provided__qut3iv).o4r = function (store, next, action) {
|
|
1368
1368
|
// Inline function 'com.debertz.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
1369
1369
|
var tmp0__anonymous__q1qw7t = action instanceof PartyEndedAction ? action : THROW_CCE();
|
|
1370
1370
|
next(tmp0__anonymous__q1qw7t);
|
|
1371
|
-
if (!get_serverState(store.state).
|
|
1371
|
+
if (!get_serverState(store.state).q7v_1.r7v_1 ? tmp0__anonymous__q1qw7t.isGameFinished : false) {
|
|
1372
1372
|
store.dispatch(new FinishingGameMechanicAction(new GameFinishedReason(Reason_DEPLOY_getInstance())));
|
|
1373
1373
|
}
|
|
1374
1374
|
};
|
|
1375
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1376
|
-
return this.
|
|
1375
|
+
protoOf(_no_name_provided__qut3iv).s2x = function (store, next, action) {
|
|
1376
|
+
return this.o4r(store, next, action);
|
|
1377
1377
|
};
|
|
1378
1378
|
function serverMapMechanicToServerActionMiddleware(logicConfig, botConfig, lastCardInteractor) {
|
|
1379
1379
|
var tmp$ret$0;
|
|
@@ -1382,25 +1382,25 @@
|
|
|
1382
1382
|
return tmp$ret$0;
|
|
1383
1383
|
}
|
|
1384
1384
|
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$_anonymous_$backwardActions_2rsutw($logicConfig, $sendToPlayer, $action) {
|
|
1385
|
-
return $logicConfig.
|
|
1385
|
+
return $logicConfig.v34_1 ? $sendToPlayer.x3j_1 === $action.o3x_1 : false;
|
|
1386
1386
|
}
|
|
1387
1387
|
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$_anonymous_$autoStepLastCard_q0g8c9($botConfig, $lastCardInteractor, $this_with, $sendToPlayer) {
|
|
1388
|
-
return $botConfig.autoStepLastCard ? $lastCardInteractor.
|
|
1388
|
+
return $botConfig.autoStepLastCard ? $lastCardInteractor.b4i(getPlayer($this_with.k34().players, $sendToPlayer.x3j_1), $this_with.k34().config.rules) : false;
|
|
1389
1389
|
}
|
|
1390
1390
|
function serverMapMechanicToServerActionMiddleware$o$handle$lambda($state) {
|
|
1391
1391
|
return function () {
|
|
1392
|
-
return $state.
|
|
1392
|
+
return $state.k34().playersConnections;
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
1395
|
function _no_name_provided__qut3iv_0($logicConfig, $botConfig, $lastCardInteractor) {
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1396
|
+
this.r7w_1 = $logicConfig;
|
|
1397
|
+
this.s7w_1 = $botConfig;
|
|
1398
|
+
this.t7w_1 = $lastCardInteractor;
|
|
1399
1399
|
}
|
|
1400
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
1400
|
+
protoOf(_no_name_provided__qut3iv_0).r2x = function (action) {
|
|
1401
1401
|
return action instanceof MechanicAction;
|
|
1402
1402
|
};
|
|
1403
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
1403
|
+
protoOf(_no_name_provided__qut3iv_0).o4r = function (store, next, action) {
|
|
1404
1404
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>' call
|
|
1405
1405
|
var tmp0__anonymous__q1qw7t = action instanceof MechanicAction ? action : THROW_CCE();
|
|
1406
1406
|
var state = store.state;
|
|
@@ -1413,11 +1413,11 @@
|
|
|
1413
1413
|
if (tmp0_subject instanceof StartGameMechanicAction) {
|
|
1414
1414
|
var tmp$ret$17;
|
|
1415
1415
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1416
|
-
var tmp7_mapToClientActions = tmp0__anonymous__q1qw7t.
|
|
1417
|
-
var tmp8_mapToClientActions = tmp0__anonymous__q1qw7t.
|
|
1416
|
+
var tmp7_mapToClientActions = tmp0__anonymous__q1qw7t.n3w_1;
|
|
1417
|
+
var tmp8_mapToClientActions = tmp0__anonymous__q1qw7t.p3w_1;
|
|
1418
1418
|
var tmp$ret$2;
|
|
1419
1419
|
// Inline function 'kotlin.collections.map' call
|
|
1420
|
-
var tmp1_map = tmp0__anonymous__q1qw7t.
|
|
1420
|
+
var tmp1_map = tmp0__anonymous__q1qw7t.q3w_1;
|
|
1421
1421
|
var tmp$ret$1;
|
|
1422
1422
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1423
1423
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1426,7 +1426,7 @@
|
|
|
1426
1426
|
var item = tmp0_iterator.h();
|
|
1427
1427
|
var tmp$ret$0;
|
|
1428
1428
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1429
|
-
tmp$ret$0 = to(item.
|
|
1429
|
+
tmp$ret$0 = to(item.x2o_1, PlayerConnectionState_LIVE_getInstance());
|
|
1430
1430
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1431
1431
|
}
|
|
1432
1432
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
var element = tmp0_iterator_0.h();
|
|
1447
1447
|
var tmp$ret$3;
|
|
1448
1448
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1449
|
-
tmp$ret$3 = element.
|
|
1449
|
+
tmp$ret$3 = element.a4_1.isLive;
|
|
1450
1450
|
if (tmp$ret$3) {
|
|
1451
1451
|
tmp2_filterTo.a(element);
|
|
1452
1452
|
}
|
|
@@ -1462,7 +1462,7 @@
|
|
|
1462
1462
|
var item_0 = tmp0_iterator_1.h();
|
|
1463
1463
|
var tmp$ret$6;
|
|
1464
1464
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1465
|
-
tmp$ret$6 = item_0.
|
|
1465
|
+
tmp$ret$6 = item_0.z3_1;
|
|
1466
1466
|
tmp3_mapTo.a(tmp$ret$6);
|
|
1467
1467
|
}
|
|
1468
1468
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -1491,12 +1491,12 @@
|
|
|
1491
1491
|
var item_1 = tmp0_iterator_3.h();
|
|
1492
1492
|
var tmp$ret$9;
|
|
1493
1493
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1494
|
-
tmp$ret$9 = item_1.
|
|
1494
|
+
tmp$ret$9 = item_1.z3_1;
|
|
1495
1495
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1496
1496
|
}
|
|
1497
1497
|
tmp$ret$10 = tmp0_mapTo_0;
|
|
1498
1498
|
tmp$ret$11 = tmp$ret$10;
|
|
1499
|
-
var tmp10__anonymous__yfiz50 = tmp_0.
|
|
1499
|
+
var tmp10__anonymous__yfiz50 = tmp_0.g4o(element_0, tmp8_mapToClientActions, tmp7_mapToClientActions, tmp$ret$11);
|
|
1500
1500
|
tmp$ret$12 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp10__anonymous__yfiz50);
|
|
1501
1501
|
tmp$ret$13 = tmp$ret$12;
|
|
1502
1502
|
var tmp0_safe_receiver = tmp$ret$13;
|
|
@@ -1518,8 +1518,8 @@
|
|
|
1518
1518
|
if (tmp0_subject instanceof ContinueGameMechanicAction) {
|
|
1519
1519
|
var tmp$ret$32;
|
|
1520
1520
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1521
|
-
var tmp16_mapToClientActions = tmp0__anonymous__q1qw7t.
|
|
1522
|
-
var tmp17_mapToClientActions = tmp0__anonymous__q1qw7t.
|
|
1521
|
+
var tmp16_mapToClientActions = tmp0__anonymous__q1qw7t.r3w_1.id;
|
|
1522
|
+
var tmp17_mapToClientActions = tmp0__anonymous__q1qw7t.h4p();
|
|
1523
1523
|
var tmp18_mapToClientActions = getPlayers();
|
|
1524
1524
|
var tmp$ret$31;
|
|
1525
1525
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -1535,7 +1535,7 @@
|
|
|
1535
1535
|
var element_1 = tmp0_iterator_4.h();
|
|
1536
1536
|
var tmp$ret$18;
|
|
1537
1537
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1538
|
-
tmp$ret$18 = element_1.
|
|
1538
|
+
tmp$ret$18 = element_1.a4_1.isLive;
|
|
1539
1539
|
if (tmp$ret$18) {
|
|
1540
1540
|
tmp11_filterTo.a(element_1);
|
|
1541
1541
|
}
|
|
@@ -1551,7 +1551,7 @@
|
|
|
1551
1551
|
var item_2 = tmp0_iterator_5.h();
|
|
1552
1552
|
var tmp$ret$21;
|
|
1553
1553
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1554
|
-
tmp$ret$21 = item_2.
|
|
1554
|
+
tmp$ret$21 = item_2.z3_1;
|
|
1555
1555
|
tmp12_mapTo.a(tmp$ret$21);
|
|
1556
1556
|
}
|
|
1557
1557
|
tmp$ret$22 = tmp12_mapTo;
|
|
@@ -1580,12 +1580,12 @@
|
|
|
1580
1580
|
var item_3 = tmp0_iterator_7.h();
|
|
1581
1581
|
var tmp$ret$24;
|
|
1582
1582
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1583
|
-
tmp$ret$24 = item_3.
|
|
1583
|
+
tmp$ret$24 = item_3.z3_1;
|
|
1584
1584
|
tmp0_mapTo_1.a(tmp$ret$24);
|
|
1585
1585
|
}
|
|
1586
1586
|
tmp$ret$25 = tmp0_mapTo_1;
|
|
1587
1587
|
tmp$ret$26 = tmp$ret$25;
|
|
1588
|
-
var tmp19__anonymous__98mtqr = tmp_1.
|
|
1588
|
+
var tmp19__anonymous__98mtqr = tmp_1.g4o(element_2, tmp17_mapToClientActions, tmp16_mapToClientActions, tmp$ret$26);
|
|
1589
1589
|
tmp$ret$27 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp19__anonymous__98mtqr);
|
|
1590
1590
|
tmp$ret$28 = tmp$ret$27;
|
|
1591
1591
|
var tmp0_safe_receiver_0 = tmp$ret$28;
|
|
@@ -1607,7 +1607,7 @@
|
|
|
1607
1607
|
if (tmp0_subject instanceof FinishingGameMechanicAction) {
|
|
1608
1608
|
var tmp$ret$51;
|
|
1609
1609
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
1610
|
-
var tmp27_mapToClientActionsFromTable = state.
|
|
1610
|
+
var tmp27_mapToClientActionsFromTable = state.k34();
|
|
1611
1611
|
var tmp0_roomId = tmp27_mapToClientActionsFromTable.id;
|
|
1612
1612
|
var tmp$ret$35;
|
|
1613
1613
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1620,13 +1620,13 @@
|
|
|
1620
1620
|
var item_4 = tmp0_iterator_8.h();
|
|
1621
1621
|
var tmp$ret$33;
|
|
1622
1622
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
1623
|
-
tmp$ret$33 = to(item_4.
|
|
1623
|
+
tmp$ret$33 = to(item_4.m2o(), item_4.c38_1.r2p_1);
|
|
1624
1624
|
tmp20_mapTo.a(tmp$ret$33);
|
|
1625
1625
|
}
|
|
1626
1626
|
tmp$ret$34 = tmp20_mapTo;
|
|
1627
1627
|
tmp$ret$35 = tmp$ret$34;
|
|
1628
1628
|
var tmp1_players = tmp$ret$35;
|
|
1629
|
-
var tmp2_gameCreatorPlayerId = getGameCreator(tmp27_mapToClientActionsFromTable.players).
|
|
1629
|
+
var tmp2_gameCreatorPlayerId = getGameCreator(tmp27_mapToClientActionsFromTable.players).m2o();
|
|
1630
1630
|
var tmp$ret$50;
|
|
1631
1631
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1632
1632
|
var tmp$ret$49;
|
|
@@ -1643,7 +1643,7 @@
|
|
|
1643
1643
|
var element_3 = tmp0_iterator_9.h();
|
|
1644
1644
|
var tmp$ret$36;
|
|
1645
1645
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1646
|
-
tmp$ret$36 = element_3.
|
|
1646
|
+
tmp$ret$36 = element_3.a4_1.isLive;
|
|
1647
1647
|
if (tmp$ret$36) {
|
|
1648
1648
|
tmp22_filterTo.a(element_3);
|
|
1649
1649
|
}
|
|
@@ -1659,7 +1659,7 @@
|
|
|
1659
1659
|
var item_5 = tmp0_iterator_10.h();
|
|
1660
1660
|
var tmp$ret$39;
|
|
1661
1661
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1662
|
-
tmp$ret$39 = item_5.
|
|
1662
|
+
tmp$ret$39 = item_5.z3_1;
|
|
1663
1663
|
tmp23_mapTo.a(tmp$ret$39);
|
|
1664
1664
|
}
|
|
1665
1665
|
tmp$ret$40 = tmp23_mapTo;
|
|
@@ -1688,12 +1688,12 @@
|
|
|
1688
1688
|
var item_6 = tmp0_iterator_12.h();
|
|
1689
1689
|
var tmp$ret$42;
|
|
1690
1690
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1691
|
-
tmp$ret$42 = item_6.
|
|
1691
|
+
tmp$ret$42 = item_6.z3_1;
|
|
1692
1692
|
tmp0_mapTo_2.a(tmp$ret$42);
|
|
1693
1693
|
}
|
|
1694
1694
|
tmp$ret$43 = tmp0_mapTo_2;
|
|
1695
1695
|
tmp$ret$44 = tmp$ret$43;
|
|
1696
|
-
var tmp28__anonymous__cqy22d = tmp_2.
|
|
1696
|
+
var tmp28__anonymous__cqy22d = tmp_2.g4o(element_4, tmp2_gameCreatorPlayerId, tmp0_roomId, tmp$ret$44);
|
|
1697
1697
|
tmp$ret$45 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp28__anonymous__cqy22d);
|
|
1698
1698
|
tmp$ret$46 = tmp$ret$45;
|
|
1699
1699
|
var tmp0_safe_receiver_1 = tmp$ret$46;
|
|
@@ -1716,7 +1716,7 @@
|
|
|
1716
1716
|
if (tmp0_subject instanceof FinishGameMechanicAction) {
|
|
1717
1717
|
var tmp$ret$70;
|
|
1718
1718
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
1719
|
-
var tmp36_mapToClientActionsFromTable = state.
|
|
1719
|
+
var tmp36_mapToClientActionsFromTable = state.k34();
|
|
1720
1720
|
var tmp0_roomId_0 = tmp36_mapToClientActionsFromTable.id;
|
|
1721
1721
|
var tmp$ret$54;
|
|
1722
1722
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1729,13 +1729,13 @@
|
|
|
1729
1729
|
var item_7 = tmp0_iterator_13.h();
|
|
1730
1730
|
var tmp$ret$52;
|
|
1731
1731
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
1732
|
-
tmp$ret$52 = to(item_7.
|
|
1732
|
+
tmp$ret$52 = to(item_7.m2o(), item_7.c38_1.r2p_1);
|
|
1733
1733
|
tmp29_mapTo.a(tmp$ret$52);
|
|
1734
1734
|
}
|
|
1735
1735
|
tmp$ret$53 = tmp29_mapTo;
|
|
1736
1736
|
tmp$ret$54 = tmp$ret$53;
|
|
1737
1737
|
var tmp1_players_0 = tmp$ret$54;
|
|
1738
|
-
var tmp2_gameCreatorPlayerId_0 = getGameCreator(tmp36_mapToClientActionsFromTable.players).
|
|
1738
|
+
var tmp2_gameCreatorPlayerId_0 = getGameCreator(tmp36_mapToClientActionsFromTable.players).m2o();
|
|
1739
1739
|
var tmp$ret$69;
|
|
1740
1740
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1741
1741
|
var tmp$ret$68;
|
|
@@ -1752,7 +1752,7 @@
|
|
|
1752
1752
|
var element_5 = tmp0_iterator_14.h();
|
|
1753
1753
|
var tmp$ret$55;
|
|
1754
1754
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1755
|
-
tmp$ret$55 = element_5.
|
|
1755
|
+
tmp$ret$55 = element_5.a4_1.isLive;
|
|
1756
1756
|
if (tmp$ret$55) {
|
|
1757
1757
|
tmp31_filterTo.a(element_5);
|
|
1758
1758
|
}
|
|
@@ -1768,7 +1768,7 @@
|
|
|
1768
1768
|
var item_8 = tmp0_iterator_15.h();
|
|
1769
1769
|
var tmp$ret$58;
|
|
1770
1770
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1771
|
-
tmp$ret$58 = item_8.
|
|
1771
|
+
tmp$ret$58 = item_8.z3_1;
|
|
1772
1772
|
tmp32_mapTo.a(tmp$ret$58);
|
|
1773
1773
|
}
|
|
1774
1774
|
tmp$ret$59 = tmp32_mapTo;
|
|
@@ -1797,12 +1797,12 @@
|
|
|
1797
1797
|
var item_9 = tmp0_iterator_17.h();
|
|
1798
1798
|
var tmp$ret$61;
|
|
1799
1799
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1800
|
-
tmp$ret$61 = item_9.
|
|
1800
|
+
tmp$ret$61 = item_9.z3_1;
|
|
1801
1801
|
tmp0_mapTo_3.a(tmp$ret$61);
|
|
1802
1802
|
}
|
|
1803
1803
|
tmp$ret$62 = tmp0_mapTo_3;
|
|
1804
1804
|
tmp$ret$63 = tmp$ret$62;
|
|
1805
|
-
var tmp37__anonymous__g99adz = tmp_3.
|
|
1805
|
+
var tmp37__anonymous__g99adz = tmp_3.g4o(element_6, tmp2_gameCreatorPlayerId_0, tmp0_roomId_0, tmp$ret$63);
|
|
1806
1806
|
tmp$ret$64 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp37__anonymous__g99adz);
|
|
1807
1807
|
tmp$ret$65 = tmp$ret$64;
|
|
1808
1808
|
var tmp0_safe_receiver_2 = tmp$ret$65;
|
|
@@ -1825,7 +1825,7 @@
|
|
|
1825
1825
|
if (tmp0_subject instanceof RestartGameMechanicAction) {
|
|
1826
1826
|
var tmp$ret$89;
|
|
1827
1827
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
1828
|
-
var tmp45_mapToClientActionsFromTable = state.
|
|
1828
|
+
var tmp45_mapToClientActionsFromTable = state.k34();
|
|
1829
1829
|
var tmp0_roomId_1 = tmp45_mapToClientActionsFromTable.id;
|
|
1830
1830
|
var tmp$ret$73;
|
|
1831
1831
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1838,13 +1838,13 @@
|
|
|
1838
1838
|
var item_10 = tmp0_iterator_18.h();
|
|
1839
1839
|
var tmp$ret$71;
|
|
1840
1840
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
1841
|
-
tmp$ret$71 = to(item_10.
|
|
1841
|
+
tmp$ret$71 = to(item_10.m2o(), item_10.c38_1.r2p_1);
|
|
1842
1842
|
tmp38_mapTo.a(tmp$ret$71);
|
|
1843
1843
|
}
|
|
1844
1844
|
tmp$ret$72 = tmp38_mapTo;
|
|
1845
1845
|
tmp$ret$73 = tmp$ret$72;
|
|
1846
1846
|
var tmp1_players_1 = tmp$ret$73;
|
|
1847
|
-
var tmp2_gameCreatorPlayerId_1 = getGameCreator(tmp45_mapToClientActionsFromTable.players).
|
|
1847
|
+
var tmp2_gameCreatorPlayerId_1 = getGameCreator(tmp45_mapToClientActionsFromTable.players).m2o();
|
|
1848
1848
|
var tmp$ret$88;
|
|
1849
1849
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1850
1850
|
var tmp$ret$87;
|
|
@@ -1861,7 +1861,7 @@
|
|
|
1861
1861
|
var element_7 = tmp0_iterator_19.h();
|
|
1862
1862
|
var tmp$ret$74;
|
|
1863
1863
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1864
|
-
tmp$ret$74 = element_7.
|
|
1864
|
+
tmp$ret$74 = element_7.a4_1.isLive;
|
|
1865
1865
|
if (tmp$ret$74) {
|
|
1866
1866
|
tmp40_filterTo.a(element_7);
|
|
1867
1867
|
}
|
|
@@ -1877,7 +1877,7 @@
|
|
|
1877
1877
|
var item_11 = tmp0_iterator_20.h();
|
|
1878
1878
|
var tmp$ret$77;
|
|
1879
1879
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1880
|
-
tmp$ret$77 = item_11.
|
|
1880
|
+
tmp$ret$77 = item_11.z3_1;
|
|
1881
1881
|
tmp41_mapTo.a(tmp$ret$77);
|
|
1882
1882
|
}
|
|
1883
1883
|
tmp$ret$78 = tmp41_mapTo;
|
|
@@ -1906,12 +1906,12 @@
|
|
|
1906
1906
|
var item_12 = tmp0_iterator_22.h();
|
|
1907
1907
|
var tmp$ret$80;
|
|
1908
1908
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
1909
|
-
tmp$ret$80 = item_12.
|
|
1909
|
+
tmp$ret$80 = item_12.z3_1;
|
|
1910
1910
|
tmp0_mapTo_4.a(tmp$ret$80);
|
|
1911
1911
|
}
|
|
1912
1912
|
tmp$ret$81 = tmp0_mapTo_4;
|
|
1913
1913
|
tmp$ret$82 = tmp$ret$81;
|
|
1914
|
-
var tmp46__anonymous__jrkipl = tmp_4.
|
|
1914
|
+
var tmp46__anonymous__jrkipl = tmp_4.g4o(element_8, tmp2_gameCreatorPlayerId_1, tmp0_roomId_1, tmp$ret$82);
|
|
1915
1915
|
tmp$ret$83 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp46__anonymous__jrkipl);
|
|
1916
1916
|
tmp$ret$84 = tmp$ret$83;
|
|
1917
1917
|
var tmp0_safe_receiver_3 = tmp$ret$84;
|
|
@@ -1934,7 +1934,7 @@
|
|
|
1934
1934
|
if (tmp0_subject instanceof SceneMechanicAction) {
|
|
1935
1935
|
var tmp$ret$108;
|
|
1936
1936
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
1937
|
-
var tmp54_mapToClientActionsFromTable = state.
|
|
1937
|
+
var tmp54_mapToClientActionsFromTable = state.k34();
|
|
1938
1938
|
var tmp0_roomId_2 = tmp54_mapToClientActionsFromTable.id;
|
|
1939
1939
|
var tmp$ret$92;
|
|
1940
1940
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1947,13 +1947,13 @@
|
|
|
1947
1947
|
var item_13 = tmp0_iterator_23.h();
|
|
1948
1948
|
var tmp$ret$90;
|
|
1949
1949
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
1950
|
-
tmp$ret$90 = to(item_13.
|
|
1950
|
+
tmp$ret$90 = to(item_13.m2o(), item_13.c38_1.r2p_1);
|
|
1951
1951
|
tmp47_mapTo.a(tmp$ret$90);
|
|
1952
1952
|
}
|
|
1953
1953
|
tmp$ret$91 = tmp47_mapTo;
|
|
1954
1954
|
tmp$ret$92 = tmp$ret$91;
|
|
1955
1955
|
var tmp1_players_2 = tmp$ret$92;
|
|
1956
|
-
var tmp2_gameCreatorPlayerId_2 = getGameCreator(tmp54_mapToClientActionsFromTable.players).
|
|
1956
|
+
var tmp2_gameCreatorPlayerId_2 = getGameCreator(tmp54_mapToClientActionsFromTable.players).m2o();
|
|
1957
1957
|
var tmp$ret$107;
|
|
1958
1958
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
1959
1959
|
var tmp$ret$106;
|
|
@@ -1970,7 +1970,7 @@
|
|
|
1970
1970
|
var element_9 = tmp0_iterator_24.h();
|
|
1971
1971
|
var tmp$ret$93;
|
|
1972
1972
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1973
|
-
tmp$ret$93 = element_9.
|
|
1973
|
+
tmp$ret$93 = element_9.a4_1.isLive;
|
|
1974
1974
|
if (tmp$ret$93) {
|
|
1975
1975
|
tmp49_filterTo.a(element_9);
|
|
1976
1976
|
}
|
|
@@ -1986,7 +1986,7 @@
|
|
|
1986
1986
|
var item_14 = tmp0_iterator_25.h();
|
|
1987
1987
|
var tmp$ret$96;
|
|
1988
1988
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
1989
|
-
tmp$ret$96 = item_14.
|
|
1989
|
+
tmp$ret$96 = item_14.z3_1;
|
|
1990
1990
|
tmp50_mapTo.a(tmp$ret$96);
|
|
1991
1991
|
}
|
|
1992
1992
|
tmp$ret$97 = tmp50_mapTo;
|
|
@@ -2015,12 +2015,12 @@
|
|
|
2015
2015
|
var item_15 = tmp0_iterator_27.h();
|
|
2016
2016
|
var tmp$ret$99;
|
|
2017
2017
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2018
|
-
tmp$ret$99 = item_15.
|
|
2018
|
+
tmp$ret$99 = item_15.z3_1;
|
|
2019
2019
|
tmp0_mapTo_5.a(tmp$ret$99);
|
|
2020
2020
|
}
|
|
2021
2021
|
tmp$ret$100 = tmp0_mapTo_5;
|
|
2022
2022
|
tmp$ret$101 = tmp$ret$100;
|
|
2023
|
-
var tmp55__anonymous__n9vr17 = tmp_5.
|
|
2023
|
+
var tmp55__anonymous__n9vr17 = tmp_5.g4o(element_10, tmp2_gameCreatorPlayerId_2, tmp0_roomId_2, tmp$ret$101);
|
|
2024
2024
|
tmp$ret$102 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp55__anonymous__n9vr17);
|
|
2025
2025
|
tmp$ret$103 = tmp$ret$102;
|
|
2026
2026
|
var tmp0_safe_receiver_4 = tmp$ret$103;
|
|
@@ -2043,7 +2043,7 @@
|
|
|
2043
2043
|
if (tmp0_subject instanceof SceneActMechanicAction) {
|
|
2044
2044
|
var tmp$ret$127;
|
|
2045
2045
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2046
|
-
var tmp63_mapToClientActionsFromTable = state.
|
|
2046
|
+
var tmp63_mapToClientActionsFromTable = state.k34();
|
|
2047
2047
|
var tmp0_roomId_3 = tmp63_mapToClientActionsFromTable.id;
|
|
2048
2048
|
var tmp$ret$111;
|
|
2049
2049
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2056,13 +2056,13 @@
|
|
|
2056
2056
|
var item_16 = tmp0_iterator_28.h();
|
|
2057
2057
|
var tmp$ret$109;
|
|
2058
2058
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2059
|
-
tmp$ret$109 = to(item_16.
|
|
2059
|
+
tmp$ret$109 = to(item_16.m2o(), item_16.c38_1.r2p_1);
|
|
2060
2060
|
tmp56_mapTo.a(tmp$ret$109);
|
|
2061
2061
|
}
|
|
2062
2062
|
tmp$ret$110 = tmp56_mapTo;
|
|
2063
2063
|
tmp$ret$111 = tmp$ret$110;
|
|
2064
2064
|
var tmp1_players_3 = tmp$ret$111;
|
|
2065
|
-
var tmp2_gameCreatorPlayerId_3 = getGameCreator(tmp63_mapToClientActionsFromTable.players).
|
|
2065
|
+
var tmp2_gameCreatorPlayerId_3 = getGameCreator(tmp63_mapToClientActionsFromTable.players).m2o();
|
|
2066
2066
|
var tmp$ret$126;
|
|
2067
2067
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2068
2068
|
var tmp$ret$125;
|
|
@@ -2079,7 +2079,7 @@
|
|
|
2079
2079
|
var element_11 = tmp0_iterator_29.h();
|
|
2080
2080
|
var tmp$ret$112;
|
|
2081
2081
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2082
|
-
tmp$ret$112 = element_11.
|
|
2082
|
+
tmp$ret$112 = element_11.a4_1.isLive;
|
|
2083
2083
|
if (tmp$ret$112) {
|
|
2084
2084
|
tmp58_filterTo.a(element_11);
|
|
2085
2085
|
}
|
|
@@ -2095,7 +2095,7 @@
|
|
|
2095
2095
|
var item_17 = tmp0_iterator_30.h();
|
|
2096
2096
|
var tmp$ret$115;
|
|
2097
2097
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2098
|
-
tmp$ret$115 = item_17.
|
|
2098
|
+
tmp$ret$115 = item_17.z3_1;
|
|
2099
2099
|
tmp59_mapTo.a(tmp$ret$115);
|
|
2100
2100
|
}
|
|
2101
2101
|
tmp$ret$116 = tmp59_mapTo;
|
|
@@ -2124,12 +2124,12 @@
|
|
|
2124
2124
|
var item_18 = tmp0_iterator_32.h();
|
|
2125
2125
|
var tmp$ret$118;
|
|
2126
2126
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2127
|
-
tmp$ret$118 = item_18.
|
|
2127
|
+
tmp$ret$118 = item_18.z3_1;
|
|
2128
2128
|
tmp0_mapTo_6.a(tmp$ret$118);
|
|
2129
2129
|
}
|
|
2130
2130
|
tmp$ret$119 = tmp0_mapTo_6;
|
|
2131
2131
|
tmp$ret$120 = tmp$ret$119;
|
|
2132
|
-
var tmp64__anonymous__qs6zct = tmp_6.
|
|
2132
|
+
var tmp64__anonymous__qs6zct = tmp_6.g4o(element_12, tmp2_gameCreatorPlayerId_3, tmp0_roomId_3, tmp$ret$120);
|
|
2133
2133
|
tmp$ret$121 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp64__anonymous__qs6zct);
|
|
2134
2134
|
tmp$ret$122 = tmp$ret$121;
|
|
2135
2135
|
var tmp0_safe_receiver_5 = tmp$ret$122;
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
if (tmp0_subject instanceof TeamsDataMechanicAction) {
|
|
2153
2153
|
var tmp$ret$146;
|
|
2154
2154
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2155
|
-
var tmp72_mapToClientActionsFromTable = state.
|
|
2155
|
+
var tmp72_mapToClientActionsFromTable = state.k34();
|
|
2156
2156
|
var tmp0_roomId_4 = tmp72_mapToClientActionsFromTable.id;
|
|
2157
2157
|
var tmp$ret$130;
|
|
2158
2158
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2165,13 +2165,13 @@
|
|
|
2165
2165
|
var item_19 = tmp0_iterator_33.h();
|
|
2166
2166
|
var tmp$ret$128;
|
|
2167
2167
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2168
|
-
tmp$ret$128 = to(item_19.
|
|
2168
|
+
tmp$ret$128 = to(item_19.m2o(), item_19.c38_1.r2p_1);
|
|
2169
2169
|
tmp65_mapTo.a(tmp$ret$128);
|
|
2170
2170
|
}
|
|
2171
2171
|
tmp$ret$129 = tmp65_mapTo;
|
|
2172
2172
|
tmp$ret$130 = tmp$ret$129;
|
|
2173
2173
|
var tmp1_players_4 = tmp$ret$130;
|
|
2174
|
-
var tmp2_gameCreatorPlayerId_4 = getGameCreator(tmp72_mapToClientActionsFromTable.players).
|
|
2174
|
+
var tmp2_gameCreatorPlayerId_4 = getGameCreator(tmp72_mapToClientActionsFromTable.players).m2o();
|
|
2175
2175
|
var tmp$ret$145;
|
|
2176
2176
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2177
2177
|
var tmp$ret$144;
|
|
@@ -2188,7 +2188,7 @@
|
|
|
2188
2188
|
var element_13 = tmp0_iterator_34.h();
|
|
2189
2189
|
var tmp$ret$131;
|
|
2190
2190
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2191
|
-
tmp$ret$131 = element_13.
|
|
2191
|
+
tmp$ret$131 = element_13.a4_1.isLive;
|
|
2192
2192
|
if (tmp$ret$131) {
|
|
2193
2193
|
tmp67_filterTo.a(element_13);
|
|
2194
2194
|
}
|
|
@@ -2204,7 +2204,7 @@
|
|
|
2204
2204
|
var item_20 = tmp0_iterator_35.h();
|
|
2205
2205
|
var tmp$ret$134;
|
|
2206
2206
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2207
|
-
tmp$ret$134 = item_20.
|
|
2207
|
+
tmp$ret$134 = item_20.z3_1;
|
|
2208
2208
|
tmp68_mapTo.a(tmp$ret$134);
|
|
2209
2209
|
}
|
|
2210
2210
|
tmp$ret$135 = tmp68_mapTo;
|
|
@@ -2234,13 +2234,13 @@
|
|
|
2234
2234
|
var item_21 = tmp0_iterator_37.h();
|
|
2235
2235
|
var tmp$ret$137;
|
|
2236
2236
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2237
|
-
tmp$ret$137 = item_21.
|
|
2237
|
+
tmp$ret$137 = item_21.z3_1;
|
|
2238
2238
|
tmp0_mapTo_7.a(tmp$ret$137);
|
|
2239
2239
|
}
|
|
2240
2240
|
tmp$ret$138 = tmp0_mapTo_7;
|
|
2241
2241
|
tmp$ret$139 = tmp$ret$138;
|
|
2242
|
-
var tmp73__anonymous__uai7of = tmp_7.
|
|
2243
|
-
if (this.
|
|
2242
|
+
var tmp73__anonymous__uai7of = tmp_7.g4o(element_14, tmp2_gameCreatorPlayerId_4, tmp0_roomId_4, tmp$ret$139);
|
|
2243
|
+
if (this.r7w_1.v34_1 ? getPlayer(state.k34().players, tmp73__anonymous__uai7of.x3j_1).e38_1.i38_1 : false) {
|
|
2244
2244
|
tmp$ret$140 = null;
|
|
2245
2245
|
break $l$block;
|
|
2246
2246
|
}
|
|
@@ -2267,7 +2267,7 @@
|
|
|
2267
2267
|
if (tmp0_subject instanceof PlayerReadyMechanicAction) {
|
|
2268
2268
|
var tmp$ret$165;
|
|
2269
2269
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2270
|
-
var tmp81_mapToClientActionsFromTable = state.
|
|
2270
|
+
var tmp81_mapToClientActionsFromTable = state.k34();
|
|
2271
2271
|
var tmp0_roomId_5 = tmp81_mapToClientActionsFromTable.id;
|
|
2272
2272
|
var tmp$ret$149;
|
|
2273
2273
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2280,13 +2280,13 @@
|
|
|
2280
2280
|
var item_22 = tmp0_iterator_38.h();
|
|
2281
2281
|
var tmp$ret$147;
|
|
2282
2282
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2283
|
-
tmp$ret$147 = to(item_22.
|
|
2283
|
+
tmp$ret$147 = to(item_22.m2o(), item_22.c38_1.r2p_1);
|
|
2284
2284
|
tmp74_mapTo.a(tmp$ret$147);
|
|
2285
2285
|
}
|
|
2286
2286
|
tmp$ret$148 = tmp74_mapTo;
|
|
2287
2287
|
tmp$ret$149 = tmp$ret$148;
|
|
2288
2288
|
var tmp1_players_5 = tmp$ret$149;
|
|
2289
|
-
var tmp2_gameCreatorPlayerId_5 = getGameCreator(tmp81_mapToClientActionsFromTable.players).
|
|
2289
|
+
var tmp2_gameCreatorPlayerId_5 = getGameCreator(tmp81_mapToClientActionsFromTable.players).m2o();
|
|
2290
2290
|
var tmp$ret$164;
|
|
2291
2291
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2292
2292
|
var tmp$ret$163;
|
|
@@ -2303,7 +2303,7 @@
|
|
|
2303
2303
|
var element_15 = tmp0_iterator_39.h();
|
|
2304
2304
|
var tmp$ret$150;
|
|
2305
2305
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2306
|
-
tmp$ret$150 = element_15.
|
|
2306
|
+
tmp$ret$150 = element_15.a4_1.isLive;
|
|
2307
2307
|
if (tmp$ret$150) {
|
|
2308
2308
|
tmp76_filterTo.a(element_15);
|
|
2309
2309
|
}
|
|
@@ -2319,7 +2319,7 @@
|
|
|
2319
2319
|
var item_23 = tmp0_iterator_40.h();
|
|
2320
2320
|
var tmp$ret$153;
|
|
2321
2321
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2322
|
-
tmp$ret$153 = item_23.
|
|
2322
|
+
tmp$ret$153 = item_23.z3_1;
|
|
2323
2323
|
tmp77_mapTo.a(tmp$ret$153);
|
|
2324
2324
|
}
|
|
2325
2325
|
tmp$ret$154 = tmp77_mapTo;
|
|
@@ -2349,13 +2349,13 @@
|
|
|
2349
2349
|
var item_24 = tmp0_iterator_42.h();
|
|
2350
2350
|
var tmp$ret$156;
|
|
2351
2351
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2352
|
-
tmp$ret$156 = item_24.
|
|
2352
|
+
tmp$ret$156 = item_24.z3_1;
|
|
2353
2353
|
tmp0_mapTo_8.a(tmp$ret$156);
|
|
2354
2354
|
}
|
|
2355
2355
|
tmp$ret$157 = tmp0_mapTo_8;
|
|
2356
2356
|
tmp$ret$158 = tmp$ret$157;
|
|
2357
|
-
var tmp82__anonymous__xstg01 = tmp_8.
|
|
2358
|
-
if (this.
|
|
2357
|
+
var tmp82__anonymous__xstg01 = tmp_8.g4o(element_16, tmp2_gameCreatorPlayerId_5, tmp0_roomId_5, tmp$ret$158);
|
|
2358
|
+
if (this.r7w_1.v34_1 ? tmp82__anonymous__xstg01.x3j_1 === tmp0__anonymous__q1qw7t.f3x_1 : false) {
|
|
2359
2359
|
tmp$ret$159 = null;
|
|
2360
2360
|
break $l$block_0;
|
|
2361
2361
|
}
|
|
@@ -2382,7 +2382,7 @@
|
|
|
2382
2382
|
if (tmp0_subject instanceof SuitChoiceMechanicAction) {
|
|
2383
2383
|
var tmp$ret$184;
|
|
2384
2384
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2385
|
-
var tmp90_mapToClientActionsFromTable = state.
|
|
2385
|
+
var tmp90_mapToClientActionsFromTable = state.k34();
|
|
2386
2386
|
var tmp0_roomId_6 = tmp90_mapToClientActionsFromTable.id;
|
|
2387
2387
|
var tmp$ret$168;
|
|
2388
2388
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2395,13 +2395,13 @@
|
|
|
2395
2395
|
var item_25 = tmp0_iterator_43.h();
|
|
2396
2396
|
var tmp$ret$166;
|
|
2397
2397
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2398
|
-
tmp$ret$166 = to(item_25.
|
|
2398
|
+
tmp$ret$166 = to(item_25.m2o(), item_25.c38_1.r2p_1);
|
|
2399
2399
|
tmp83_mapTo.a(tmp$ret$166);
|
|
2400
2400
|
}
|
|
2401
2401
|
tmp$ret$167 = tmp83_mapTo;
|
|
2402
2402
|
tmp$ret$168 = tmp$ret$167;
|
|
2403
2403
|
var tmp1_players_6 = tmp$ret$168;
|
|
2404
|
-
var tmp2_gameCreatorPlayerId_6 = getGameCreator(tmp90_mapToClientActionsFromTable.players).
|
|
2404
|
+
var tmp2_gameCreatorPlayerId_6 = getGameCreator(tmp90_mapToClientActionsFromTable.players).m2o();
|
|
2405
2405
|
var tmp$ret$183;
|
|
2406
2406
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2407
2407
|
var tmp$ret$182;
|
|
@@ -2418,7 +2418,7 @@
|
|
|
2418
2418
|
var element_17 = tmp0_iterator_44.h();
|
|
2419
2419
|
var tmp$ret$169;
|
|
2420
2420
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2421
|
-
tmp$ret$169 = element_17.
|
|
2421
|
+
tmp$ret$169 = element_17.a4_1.isLive;
|
|
2422
2422
|
if (tmp$ret$169) {
|
|
2423
2423
|
tmp85_filterTo.a(element_17);
|
|
2424
2424
|
}
|
|
@@ -2434,7 +2434,7 @@
|
|
|
2434
2434
|
var item_26 = tmp0_iterator_45.h();
|
|
2435
2435
|
var tmp$ret$172;
|
|
2436
2436
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2437
|
-
tmp$ret$172 = item_26.
|
|
2437
|
+
tmp$ret$172 = item_26.z3_1;
|
|
2438
2438
|
tmp86_mapTo.a(tmp$ret$172);
|
|
2439
2439
|
}
|
|
2440
2440
|
tmp$ret$173 = tmp86_mapTo;
|
|
@@ -2464,13 +2464,13 @@
|
|
|
2464
2464
|
var item_27 = tmp0_iterator_47.h();
|
|
2465
2465
|
var tmp$ret$175;
|
|
2466
2466
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2467
|
-
tmp$ret$175 = item_27.
|
|
2467
|
+
tmp$ret$175 = item_27.z3_1;
|
|
2468
2468
|
tmp0_mapTo_9.a(tmp$ret$175);
|
|
2469
2469
|
}
|
|
2470
2470
|
tmp$ret$176 = tmp0_mapTo_9;
|
|
2471
2471
|
tmp$ret$177 = tmp$ret$176;
|
|
2472
|
-
var tmp91__anonymous__xpzdnh = tmp_9.
|
|
2473
|
-
if (this.
|
|
2472
|
+
var tmp91__anonymous__xpzdnh = tmp_9.g4o(element_18, tmp2_gameCreatorPlayerId_6, tmp0_roomId_6, tmp$ret$177);
|
|
2473
|
+
if (this.r7w_1.v34_1 ? tmp91__anonymous__xpzdnh.x3j_1 === tmp0__anonymous__q1qw7t.g3x_1 : false) {
|
|
2474
2474
|
tmp$ret$178 = null;
|
|
2475
2475
|
break $l$block_1;
|
|
2476
2476
|
}
|
|
@@ -2497,7 +2497,7 @@
|
|
|
2497
2497
|
if (tmp0_subject instanceof TrumpMechanicAction) {
|
|
2498
2498
|
var tmp$ret$203;
|
|
2499
2499
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2500
|
-
var tmp99_mapToClientActionsFromTable = state.
|
|
2500
|
+
var tmp99_mapToClientActionsFromTable = state.k34();
|
|
2501
2501
|
var tmp0_roomId_7 = tmp99_mapToClientActionsFromTable.id;
|
|
2502
2502
|
var tmp$ret$187;
|
|
2503
2503
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2510,13 +2510,13 @@
|
|
|
2510
2510
|
var item_28 = tmp0_iterator_48.h();
|
|
2511
2511
|
var tmp$ret$185;
|
|
2512
2512
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2513
|
-
tmp$ret$185 = to(item_28.
|
|
2513
|
+
tmp$ret$185 = to(item_28.m2o(), item_28.c38_1.r2p_1);
|
|
2514
2514
|
tmp92_mapTo.a(tmp$ret$185);
|
|
2515
2515
|
}
|
|
2516
2516
|
tmp$ret$186 = tmp92_mapTo;
|
|
2517
2517
|
tmp$ret$187 = tmp$ret$186;
|
|
2518
2518
|
var tmp1_players_7 = tmp$ret$187;
|
|
2519
|
-
var tmp2_gameCreatorPlayerId_7 = getGameCreator(tmp99_mapToClientActionsFromTable.players).
|
|
2519
|
+
var tmp2_gameCreatorPlayerId_7 = getGameCreator(tmp99_mapToClientActionsFromTable.players).m2o();
|
|
2520
2520
|
var tmp$ret$202;
|
|
2521
2521
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2522
2522
|
var tmp$ret$201;
|
|
@@ -2533,7 +2533,7 @@
|
|
|
2533
2533
|
var element_19 = tmp0_iterator_49.h();
|
|
2534
2534
|
var tmp$ret$188;
|
|
2535
2535
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2536
|
-
tmp$ret$188 = element_19.
|
|
2536
|
+
tmp$ret$188 = element_19.a4_1.isLive;
|
|
2537
2537
|
if (tmp$ret$188) {
|
|
2538
2538
|
tmp94_filterTo.a(element_19);
|
|
2539
2539
|
}
|
|
@@ -2549,7 +2549,7 @@
|
|
|
2549
2549
|
var item_29 = tmp0_iterator_50.h();
|
|
2550
2550
|
var tmp$ret$191;
|
|
2551
2551
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2552
|
-
tmp$ret$191 = item_29.
|
|
2552
|
+
tmp$ret$191 = item_29.z3_1;
|
|
2553
2553
|
tmp95_mapTo.a(tmp$ret$191);
|
|
2554
2554
|
}
|
|
2555
2555
|
tmp$ret$192 = tmp95_mapTo;
|
|
@@ -2578,12 +2578,12 @@
|
|
|
2578
2578
|
var item_30 = tmp0_iterator_52.h();
|
|
2579
2579
|
var tmp$ret$194;
|
|
2580
2580
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2581
|
-
tmp$ret$194 = item_30.
|
|
2581
|
+
tmp$ret$194 = item_30.z3_1;
|
|
2582
2582
|
tmp0_mapTo_10.a(tmp$ret$194);
|
|
2583
2583
|
}
|
|
2584
2584
|
tmp$ret$195 = tmp0_mapTo_10;
|
|
2585
2585
|
tmp$ret$196 = tmp$ret$195;
|
|
2586
|
-
var tmp100__anonymous__60mmw = tmp_10.
|
|
2586
|
+
var tmp100__anonymous__60mmw = tmp_10.g4o(element_20, tmp2_gameCreatorPlayerId_7, tmp0_roomId_7, tmp$ret$196);
|
|
2587
2587
|
tmp$ret$197 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp100__anonymous__60mmw);
|
|
2588
2588
|
tmp$ret$198 = tmp$ret$197;
|
|
2589
2589
|
var tmp0_safe_receiver_9 = tmp$ret$198;
|
|
@@ -2606,7 +2606,7 @@
|
|
|
2606
2606
|
if (tmp0_subject instanceof CombinationChoiceMechanicAction) {
|
|
2607
2607
|
var tmp$ret$222;
|
|
2608
2608
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2609
|
-
var tmp108_mapToClientActionsFromTable = state.
|
|
2609
|
+
var tmp108_mapToClientActionsFromTable = state.k34();
|
|
2610
2610
|
var tmp0_roomId_8 = tmp108_mapToClientActionsFromTable.id;
|
|
2611
2611
|
var tmp$ret$206;
|
|
2612
2612
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2619,13 +2619,13 @@
|
|
|
2619
2619
|
var item_31 = tmp0_iterator_53.h();
|
|
2620
2620
|
var tmp$ret$204;
|
|
2621
2621
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2622
|
-
tmp$ret$204 = to(item_31.
|
|
2622
|
+
tmp$ret$204 = to(item_31.m2o(), item_31.c38_1.r2p_1);
|
|
2623
2623
|
tmp101_mapTo.a(tmp$ret$204);
|
|
2624
2624
|
}
|
|
2625
2625
|
tmp$ret$205 = tmp101_mapTo;
|
|
2626
2626
|
tmp$ret$206 = tmp$ret$205;
|
|
2627
2627
|
var tmp1_players_8 = tmp$ret$206;
|
|
2628
|
-
var tmp2_gameCreatorPlayerId_8 = getGameCreator(tmp108_mapToClientActionsFromTable.players).
|
|
2628
|
+
var tmp2_gameCreatorPlayerId_8 = getGameCreator(tmp108_mapToClientActionsFromTable.players).m2o();
|
|
2629
2629
|
var tmp$ret$221;
|
|
2630
2630
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2631
2631
|
var tmp$ret$220;
|
|
@@ -2642,7 +2642,7 @@
|
|
|
2642
2642
|
var element_21 = tmp0_iterator_54.h();
|
|
2643
2643
|
var tmp$ret$207;
|
|
2644
2644
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2645
|
-
tmp$ret$207 = element_21.
|
|
2645
|
+
tmp$ret$207 = element_21.a4_1.isLive;
|
|
2646
2646
|
if (tmp$ret$207) {
|
|
2647
2647
|
tmp103_filterTo.a(element_21);
|
|
2648
2648
|
}
|
|
@@ -2658,7 +2658,7 @@
|
|
|
2658
2658
|
var item_32 = tmp0_iterator_55.h();
|
|
2659
2659
|
var tmp$ret$210;
|
|
2660
2660
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2661
|
-
tmp$ret$210 = item_32.
|
|
2661
|
+
tmp$ret$210 = item_32.z3_1;
|
|
2662
2662
|
tmp104_mapTo.a(tmp$ret$210);
|
|
2663
2663
|
}
|
|
2664
2664
|
tmp$ret$211 = tmp104_mapTo;
|
|
@@ -2688,13 +2688,13 @@
|
|
|
2688
2688
|
var item_33 = tmp0_iterator_57.h();
|
|
2689
2689
|
var tmp$ret$213;
|
|
2690
2690
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2691
|
-
tmp$ret$213 = item_33.
|
|
2691
|
+
tmp$ret$213 = item_33.z3_1;
|
|
2692
2692
|
tmp0_mapTo_11.a(tmp$ret$213);
|
|
2693
2693
|
}
|
|
2694
2694
|
tmp$ret$214 = tmp0_mapTo_11;
|
|
2695
2695
|
tmp$ret$215 = tmp$ret$214;
|
|
2696
|
-
var tmp109__anonymous__r6xmgh = tmp_11.
|
|
2697
|
-
if (this.
|
|
2696
|
+
var tmp109__anonymous__r6xmgh = tmp_11.g4o(element_22, tmp2_gameCreatorPlayerId_8, tmp0_roomId_8, tmp$ret$215);
|
|
2697
|
+
if (this.r7w_1.v34_1 ? tmp109__anonymous__r6xmgh.x3j_1 === tmp0__anonymous__q1qw7t.l3x_1 : false) {
|
|
2698
2698
|
tmp$ret$216 = null;
|
|
2699
2699
|
break $l$block_2;
|
|
2700
2700
|
}
|
|
@@ -2721,7 +2721,7 @@
|
|
|
2721
2721
|
if (tmp0_subject instanceof PutCardMechanicAction) {
|
|
2722
2722
|
var tmp$ret$241;
|
|
2723
2723
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2724
|
-
var tmp117_mapToClientActionsFromTable = state.
|
|
2724
|
+
var tmp117_mapToClientActionsFromTable = state.k34();
|
|
2725
2725
|
var tmp0_roomId_9 = tmp117_mapToClientActionsFromTable.id;
|
|
2726
2726
|
var tmp$ret$225;
|
|
2727
2727
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2734,13 +2734,13 @@
|
|
|
2734
2734
|
var item_34 = tmp0_iterator_58.h();
|
|
2735
2735
|
var tmp$ret$223;
|
|
2736
2736
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2737
|
-
tmp$ret$223 = to(item_34.
|
|
2737
|
+
tmp$ret$223 = to(item_34.m2o(), item_34.c38_1.r2p_1);
|
|
2738
2738
|
tmp110_mapTo.a(tmp$ret$223);
|
|
2739
2739
|
}
|
|
2740
2740
|
tmp$ret$224 = tmp110_mapTo;
|
|
2741
2741
|
tmp$ret$225 = tmp$ret$224;
|
|
2742
2742
|
var tmp1_players_9 = tmp$ret$225;
|
|
2743
|
-
var tmp2_gameCreatorPlayerId_9 = getGameCreator(tmp117_mapToClientActionsFromTable.players).
|
|
2743
|
+
var tmp2_gameCreatorPlayerId_9 = getGameCreator(tmp117_mapToClientActionsFromTable.players).m2o();
|
|
2744
2744
|
var tmp$ret$240;
|
|
2745
2745
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2746
2746
|
var tmp$ret$239;
|
|
@@ -2757,7 +2757,7 @@
|
|
|
2757
2757
|
var element_23 = tmp0_iterator_59.h();
|
|
2758
2758
|
var tmp$ret$226;
|
|
2759
2759
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2760
|
-
tmp$ret$226 = element_23.
|
|
2760
|
+
tmp$ret$226 = element_23.a4_1.isLive;
|
|
2761
2761
|
if (tmp$ret$226) {
|
|
2762
2762
|
tmp112_filterTo.a(element_23);
|
|
2763
2763
|
}
|
|
@@ -2773,7 +2773,7 @@
|
|
|
2773
2773
|
var item_35 = tmp0_iterator_60.h();
|
|
2774
2774
|
var tmp$ret$229;
|
|
2775
2775
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2776
|
-
tmp$ret$229 = item_35.
|
|
2776
|
+
tmp$ret$229 = item_35.z3_1;
|
|
2777
2777
|
tmp113_mapTo.a(tmp$ret$229);
|
|
2778
2778
|
}
|
|
2779
2779
|
tmp$ret$230 = tmp113_mapTo;
|
|
@@ -2803,13 +2803,13 @@
|
|
|
2803
2803
|
var item_36 = tmp0_iterator_62.h();
|
|
2804
2804
|
var tmp$ret$232;
|
|
2805
2805
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2806
|
-
tmp$ret$232 = item_36.
|
|
2806
|
+
tmp$ret$232 = item_36.z3_1;
|
|
2807
2807
|
tmp0_mapTo_12.a(tmp$ret$232);
|
|
2808
2808
|
}
|
|
2809
2809
|
tmp$ret$233 = tmp0_mapTo_12;
|
|
2810
2810
|
tmp$ret$234 = tmp$ret$233;
|
|
2811
|
-
var tmp118__anonymous__nome4v = tmp_12.
|
|
2812
|
-
if (serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$_anonymous_$backwardActions_2rsutw(this.
|
|
2811
|
+
var tmp118__anonymous__nome4v = tmp_12.g4o(element_24, tmp2_gameCreatorPlayerId_9, tmp0_roomId_9, tmp$ret$234);
|
|
2812
|
+
if (serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$_anonymous_$backwardActions_2rsutw(this.r7w_1, tmp118__anonymous__nome4v, tmp0__anonymous__q1qw7t) ? !serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$_anonymous_$autoStepLastCard_q0g8c9(this.s7w_1, this.t7w_1, state, tmp118__anonymous__nome4v) : false) {
|
|
2813
2813
|
tmp$ret$235 = null;
|
|
2814
2814
|
break $l$block_3;
|
|
2815
2815
|
}
|
|
@@ -2836,7 +2836,7 @@
|
|
|
2836
2836
|
if (tmp0_subject instanceof PickUpBribeMechanicAction) {
|
|
2837
2837
|
var tmp$ret$260;
|
|
2838
2838
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2839
|
-
var tmp126_mapToClientActionsFromTable = state.
|
|
2839
|
+
var tmp126_mapToClientActionsFromTable = state.k34();
|
|
2840
2840
|
var tmp0_roomId_10 = tmp126_mapToClientActionsFromTable.id;
|
|
2841
2841
|
var tmp$ret$244;
|
|
2842
2842
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2849,13 +2849,13 @@
|
|
|
2849
2849
|
var item_37 = tmp0_iterator_63.h();
|
|
2850
2850
|
var tmp$ret$242;
|
|
2851
2851
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2852
|
-
tmp$ret$242 = to(item_37.
|
|
2852
|
+
tmp$ret$242 = to(item_37.m2o(), item_37.c38_1.r2p_1);
|
|
2853
2853
|
tmp119_mapTo.a(tmp$ret$242);
|
|
2854
2854
|
}
|
|
2855
2855
|
tmp$ret$243 = tmp119_mapTo;
|
|
2856
2856
|
tmp$ret$244 = tmp$ret$243;
|
|
2857
2857
|
var tmp1_players_10 = tmp$ret$244;
|
|
2858
|
-
var tmp2_gameCreatorPlayerId_10 = getGameCreator(tmp126_mapToClientActionsFromTable.players).
|
|
2858
|
+
var tmp2_gameCreatorPlayerId_10 = getGameCreator(tmp126_mapToClientActionsFromTable.players).m2o();
|
|
2859
2859
|
var tmp$ret$259;
|
|
2860
2860
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2861
2861
|
var tmp$ret$258;
|
|
@@ -2872,7 +2872,7 @@
|
|
|
2872
2872
|
var element_25 = tmp0_iterator_64.h();
|
|
2873
2873
|
var tmp$ret$245;
|
|
2874
2874
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2875
|
-
tmp$ret$245 = element_25.
|
|
2875
|
+
tmp$ret$245 = element_25.a4_1.isLive;
|
|
2876
2876
|
if (tmp$ret$245) {
|
|
2877
2877
|
tmp121_filterTo.a(element_25);
|
|
2878
2878
|
}
|
|
@@ -2888,7 +2888,7 @@
|
|
|
2888
2888
|
var item_38 = tmp0_iterator_65.h();
|
|
2889
2889
|
var tmp$ret$248;
|
|
2890
2890
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2891
|
-
tmp$ret$248 = item_38.
|
|
2891
|
+
tmp$ret$248 = item_38.z3_1;
|
|
2892
2892
|
tmp122_mapTo.a(tmp$ret$248);
|
|
2893
2893
|
}
|
|
2894
2894
|
tmp$ret$249 = tmp122_mapTo;
|
|
@@ -2917,12 +2917,12 @@
|
|
|
2917
2917
|
var item_39 = tmp0_iterator_67.h();
|
|
2918
2918
|
var tmp$ret$251;
|
|
2919
2919
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
2920
|
-
tmp$ret$251 = item_39.
|
|
2920
|
+
tmp$ret$251 = item_39.z3_1;
|
|
2921
2921
|
tmp0_mapTo_13.a(tmp$ret$251);
|
|
2922
2922
|
}
|
|
2923
2923
|
tmp$ret$252 = tmp0_mapTo_13;
|
|
2924
2924
|
tmp$ret$253 = tmp$ret$252;
|
|
2925
|
-
var tmp127__anonymous__k6b5t9 = tmp_13.
|
|
2925
|
+
var tmp127__anonymous__k6b5t9 = tmp_13.g4o(element_26, tmp2_gameCreatorPlayerId_10, tmp0_roomId_10, tmp$ret$253);
|
|
2926
2926
|
tmp$ret$254 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp127__anonymous__k6b5t9);
|
|
2927
2927
|
tmp$ret$255 = tmp$ret$254;
|
|
2928
2928
|
var tmp0_safe_receiver_12 = tmp$ret$255;
|
|
@@ -2945,7 +2945,7 @@
|
|
|
2945
2945
|
if (tmp0_subject instanceof WinnerCombinationsMechanicAction) {
|
|
2946
2946
|
var tmp$ret$279;
|
|
2947
2947
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
2948
|
-
var tmp135_mapToClientActionsFromTable = state.
|
|
2948
|
+
var tmp135_mapToClientActionsFromTable = state.k34();
|
|
2949
2949
|
var tmp0_roomId_11 = tmp135_mapToClientActionsFromTable.id;
|
|
2950
2950
|
var tmp$ret$263;
|
|
2951
2951
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2958,13 +2958,13 @@
|
|
|
2958
2958
|
var item_40 = tmp0_iterator_68.h();
|
|
2959
2959
|
var tmp$ret$261;
|
|
2960
2960
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
2961
|
-
tmp$ret$261 = to(item_40.
|
|
2961
|
+
tmp$ret$261 = to(item_40.m2o(), item_40.c38_1.r2p_1);
|
|
2962
2962
|
tmp128_mapTo.a(tmp$ret$261);
|
|
2963
2963
|
}
|
|
2964
2964
|
tmp$ret$262 = tmp128_mapTo;
|
|
2965
2965
|
tmp$ret$263 = tmp$ret$262;
|
|
2966
2966
|
var tmp1_players_11 = tmp$ret$263;
|
|
2967
|
-
var tmp2_gameCreatorPlayerId_11 = getGameCreator(tmp135_mapToClientActionsFromTable.players).
|
|
2967
|
+
var tmp2_gameCreatorPlayerId_11 = getGameCreator(tmp135_mapToClientActionsFromTable.players).m2o();
|
|
2968
2968
|
var tmp$ret$278;
|
|
2969
2969
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
2970
2970
|
var tmp$ret$277;
|
|
@@ -2981,7 +2981,7 @@
|
|
|
2981
2981
|
var element_27 = tmp0_iterator_69.h();
|
|
2982
2982
|
var tmp$ret$264;
|
|
2983
2983
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
2984
|
-
tmp$ret$264 = element_27.
|
|
2984
|
+
tmp$ret$264 = element_27.a4_1.isLive;
|
|
2985
2985
|
if (tmp$ret$264) {
|
|
2986
2986
|
tmp130_filterTo.a(element_27);
|
|
2987
2987
|
}
|
|
@@ -2997,7 +2997,7 @@
|
|
|
2997
2997
|
var item_41 = tmp0_iterator_70.h();
|
|
2998
2998
|
var tmp$ret$267;
|
|
2999
2999
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3000
|
-
tmp$ret$267 = item_41.
|
|
3000
|
+
tmp$ret$267 = item_41.z3_1;
|
|
3001
3001
|
tmp131_mapTo.a(tmp$ret$267);
|
|
3002
3002
|
}
|
|
3003
3003
|
tmp$ret$268 = tmp131_mapTo;
|
|
@@ -3026,12 +3026,12 @@
|
|
|
3026
3026
|
var item_42 = tmp0_iterator_72.h();
|
|
3027
3027
|
var tmp$ret$270;
|
|
3028
3028
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
3029
|
-
tmp$ret$270 = item_42.
|
|
3029
|
+
tmp$ret$270 = item_42.z3_1;
|
|
3030
3030
|
tmp0_mapTo_14.a(tmp$ret$270);
|
|
3031
3031
|
}
|
|
3032
3032
|
tmp$ret$271 = tmp0_mapTo_14;
|
|
3033
3033
|
tmp$ret$272 = tmp$ret$271;
|
|
3034
|
-
var tmp136__anonymous__gnzxhn = tmp_14.
|
|
3034
|
+
var tmp136__anonymous__gnzxhn = tmp_14.g4o(element_28, tmp2_gameCreatorPlayerId_11, tmp0_roomId_11, tmp$ret$272);
|
|
3035
3035
|
tmp$ret$273 = mapToClient_0(tmp0__anonymous__q1qw7t, tmp136__anonymous__gnzxhn);
|
|
3036
3036
|
tmp$ret$274 = tmp$ret$273;
|
|
3037
3037
|
var tmp0_safe_receiver_13 = tmp$ret$274;
|
|
@@ -3054,7 +3054,7 @@
|
|
|
3054
3054
|
if (tmp0_subject instanceof MessageMechanicAction) {
|
|
3055
3055
|
var tmp$ret$298;
|
|
3056
3056
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
3057
|
-
var tmp144_mapToClientActionsFromTable = state.
|
|
3057
|
+
var tmp144_mapToClientActionsFromTable = state.k34();
|
|
3058
3058
|
var tmp0_roomId_12 = tmp144_mapToClientActionsFromTable.id;
|
|
3059
3059
|
var tmp$ret$282;
|
|
3060
3060
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3067,13 +3067,13 @@
|
|
|
3067
3067
|
var item_43 = tmp0_iterator_73.h();
|
|
3068
3068
|
var tmp$ret$280;
|
|
3069
3069
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
3070
|
-
tmp$ret$280 = to(item_43.
|
|
3070
|
+
tmp$ret$280 = to(item_43.m2o(), item_43.c38_1.r2p_1);
|
|
3071
3071
|
tmp137_mapTo.a(tmp$ret$280);
|
|
3072
3072
|
}
|
|
3073
3073
|
tmp$ret$281 = tmp137_mapTo;
|
|
3074
3074
|
tmp$ret$282 = tmp$ret$281;
|
|
3075
3075
|
var tmp1_players_12 = tmp$ret$282;
|
|
3076
|
-
var tmp2_gameCreatorPlayerId_12 = getGameCreator(tmp144_mapToClientActionsFromTable.players).
|
|
3076
|
+
var tmp2_gameCreatorPlayerId_12 = getGameCreator(tmp144_mapToClientActionsFromTable.players).m2o();
|
|
3077
3077
|
var tmp$ret$297;
|
|
3078
3078
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
3079
3079
|
var tmp$ret$296;
|
|
@@ -3090,7 +3090,7 @@
|
|
|
3090
3090
|
var element_29 = tmp0_iterator_74.h();
|
|
3091
3091
|
var tmp$ret$283;
|
|
3092
3092
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3093
|
-
tmp$ret$283 = element_29.
|
|
3093
|
+
tmp$ret$283 = element_29.a4_1.isLive;
|
|
3094
3094
|
if (tmp$ret$283) {
|
|
3095
3095
|
tmp139_filterTo.a(element_29);
|
|
3096
3096
|
}
|
|
@@ -3106,7 +3106,7 @@
|
|
|
3106
3106
|
var item_44 = tmp0_iterator_75.h();
|
|
3107
3107
|
var tmp$ret$286;
|
|
3108
3108
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3109
|
-
tmp$ret$286 = item_44.
|
|
3109
|
+
tmp$ret$286 = item_44.z3_1;
|
|
3110
3110
|
tmp140_mapTo.a(tmp$ret$286);
|
|
3111
3111
|
}
|
|
3112
3112
|
tmp$ret$287 = tmp140_mapTo;
|
|
@@ -3136,17 +3136,17 @@
|
|
|
3136
3136
|
var item_45 = tmp0_iterator_77.h();
|
|
3137
3137
|
var tmp$ret$289;
|
|
3138
3138
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
3139
|
-
tmp$ret$289 = item_45.
|
|
3139
|
+
tmp$ret$289 = item_45.z3_1;
|
|
3140
3140
|
tmp0_mapTo_15.a(tmp$ret$289);
|
|
3141
3141
|
}
|
|
3142
3142
|
tmp$ret$290 = tmp0_mapTo_15;
|
|
3143
3143
|
tmp$ret$291 = tmp$ret$290;
|
|
3144
|
-
var tmp145__anonymous__d5op61 = tmp_15.
|
|
3145
|
-
var message = tmp0__anonymous__q1qw7t.
|
|
3146
|
-
if (this.
|
|
3144
|
+
var tmp145__anonymous__d5op61 = tmp_15.g4o(element_30, tmp2_gameCreatorPlayerId_12, tmp0_roomId_12, tmp$ret$291);
|
|
3145
|
+
var message = tmp0__anonymous__q1qw7t.v3x_1;
|
|
3146
|
+
if (this.r7w_1.v34_1) {
|
|
3147
3147
|
var tmp_16;
|
|
3148
3148
|
if (isInterface(message, UserMessage)) {
|
|
3149
|
-
tmp_16 = tmp145__anonymous__d5op61.
|
|
3149
|
+
tmp_16 = tmp145__anonymous__d5op61.x3j_1 === message.m2o();
|
|
3150
3150
|
} else {
|
|
3151
3151
|
tmp_16 = false;
|
|
3152
3152
|
}
|
|
@@ -3178,7 +3178,7 @@
|
|
|
3178
3178
|
if (tmp0_subject instanceof PlayerConnectionChangedMechanicAction) {
|
|
3179
3179
|
var tmp$ret$317;
|
|
3180
3180
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable' call
|
|
3181
|
-
var tmp153_mapToClientActionsFromTable = state.
|
|
3181
|
+
var tmp153_mapToClientActionsFromTable = state.k34();
|
|
3182
3182
|
var tmp0_roomId_13 = tmp153_mapToClientActionsFromTable.id;
|
|
3183
3183
|
var tmp$ret$301;
|
|
3184
3184
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3191,13 +3191,13 @@
|
|
|
3191
3191
|
var item_46 = tmp0_iterator_78.h();
|
|
3192
3192
|
var tmp$ret$299;
|
|
3193
3193
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActionsFromTable.<anonymous>' call
|
|
3194
|
-
tmp$ret$299 = to(item_46.
|
|
3194
|
+
tmp$ret$299 = to(item_46.m2o(), item_46.c38_1.r2p_1);
|
|
3195
3195
|
tmp146_mapTo.a(tmp$ret$299);
|
|
3196
3196
|
}
|
|
3197
3197
|
tmp$ret$300 = tmp146_mapTo;
|
|
3198
3198
|
tmp$ret$301 = tmp$ret$300;
|
|
3199
3199
|
var tmp1_players_13 = tmp$ret$301;
|
|
3200
|
-
var tmp2_gameCreatorPlayerId_13 = getGameCreator(tmp153_mapToClientActionsFromTable.players).
|
|
3200
|
+
var tmp2_gameCreatorPlayerId_13 = getGameCreator(tmp153_mapToClientActionsFromTable.players).m2o();
|
|
3201
3201
|
var tmp$ret$316;
|
|
3202
3202
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions' call
|
|
3203
3203
|
var tmp$ret$315;
|
|
@@ -3214,7 +3214,7 @@
|
|
|
3214
3214
|
var element_31 = tmp0_iterator_79.h();
|
|
3215
3215
|
var tmp$ret$302;
|
|
3216
3216
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3217
|
-
tmp$ret$302 = element_31.
|
|
3217
|
+
tmp$ret$302 = element_31.a4_1.isLive;
|
|
3218
3218
|
if (tmp$ret$302) {
|
|
3219
3219
|
tmp148_filterTo.a(element_31);
|
|
3220
3220
|
}
|
|
@@ -3230,7 +3230,7 @@
|
|
|
3230
3230
|
var item_47 = tmp0_iterator_80.h();
|
|
3231
3231
|
var tmp$ret$305;
|
|
3232
3232
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>' call
|
|
3233
|
-
tmp$ret$305 = item_47.
|
|
3233
|
+
tmp$ret$305 = item_47.z3_1;
|
|
3234
3234
|
tmp149_mapTo.a(tmp$ret$305);
|
|
3235
3235
|
}
|
|
3236
3236
|
tmp$ret$306 = tmp149_mapTo;
|
|
@@ -3260,17 +3260,17 @@
|
|
|
3260
3260
|
var item_48 = tmp0_iterator_82.h();
|
|
3261
3261
|
var tmp$ret$308;
|
|
3262
3262
|
// Inline function 'com.debertz.logic.server.redux.middlewares.mapToClientActions.<anonymous>.<anonymous>' call
|
|
3263
|
-
tmp$ret$308 = item_48.
|
|
3263
|
+
tmp$ret$308 = item_48.z3_1;
|
|
3264
3264
|
tmp0_mapTo_16.a(tmp$ret$308);
|
|
3265
3265
|
}
|
|
3266
3266
|
tmp$ret$309 = tmp0_mapTo_16;
|
|
3267
3267
|
tmp$ret$310 = tmp$ret$309;
|
|
3268
|
-
var tmp154__anonymous__9ndguf = tmp_17.
|
|
3268
|
+
var tmp154__anonymous__9ndguf = tmp_17.g4o(element_32, tmp2_gameCreatorPlayerId_13, tmp0_roomId_13, tmp$ret$310);
|
|
3269
3269
|
if (!tmp0__anonymous__q1qw7t.shouldNotifyPlayers) {
|
|
3270
3270
|
tmp$ret$311 = null;
|
|
3271
3271
|
break $l$block_6;
|
|
3272
3272
|
}
|
|
3273
|
-
if (tmp0__anonymous__q1qw7t.playerId === tmp154__anonymous__9ndguf.
|
|
3273
|
+
if (tmp0__anonymous__q1qw7t.playerId === tmp154__anonymous__9ndguf.x3j_1) {
|
|
3274
3274
|
tmp$ret$311 = null;
|
|
3275
3275
|
break $l$block_6;
|
|
3276
3276
|
}
|
|
@@ -3322,8 +3322,8 @@
|
|
|
3322
3322
|
tmp$ret$318 = Unit_getInstance();
|
|
3323
3323
|
next(tmp0__anonymous__q1qw7t);
|
|
3324
3324
|
};
|
|
3325
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
3326
|
-
return this.
|
|
3325
|
+
protoOf(_no_name_provided__qut3iv_0).s2x = function (store, next, action) {
|
|
3326
|
+
return this.o4r(store, next, action);
|
|
3327
3327
|
};
|
|
3328
3328
|
function playerConnectionUpdateMiddleware(reconnectionInteractor) {
|
|
3329
3329
|
var tmp$ret$0;
|
|
@@ -3332,12 +3332,12 @@
|
|
|
3332
3332
|
return tmp$ret$0;
|
|
3333
3333
|
}
|
|
3334
3334
|
function _no_name_provided__qut3iv_1($reconnectionInteractor) {
|
|
3335
|
-
this.
|
|
3335
|
+
this.u7w_1 = $reconnectionInteractor;
|
|
3336
3336
|
}
|
|
3337
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3337
|
+
protoOf(_no_name_provided__qut3iv_1).r2x = function (action) {
|
|
3338
3338
|
return action instanceof PlayerConnectionUpdateAction;
|
|
3339
3339
|
};
|
|
3340
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3340
|
+
protoOf(_no_name_provided__qut3iv_1).o4r = function (store, next, action) {
|
|
3341
3341
|
var tmp$ret$0;
|
|
3342
3342
|
$l$block_0: {
|
|
3343
3343
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerConnectionUpdateMiddleware.<anonymous>' call
|
|
@@ -3348,8 +3348,8 @@
|
|
|
3348
3348
|
tmp$ret$0 = Unit_getInstance();
|
|
3349
3349
|
break $l$block_0;
|
|
3350
3350
|
}
|
|
3351
|
-
var player = getPlayer(state.
|
|
3352
|
-
if (tmp0__anonymous__q1qw7t.
|
|
3351
|
+
var player = getPlayer(state.k34().players, tmp0__anonymous__q1qw7t.u4n_1);
|
|
3352
|
+
if (tmp0__anonymous__q1qw7t.t4n_1.isDisconnected ? player.c38_1.r2p_1.isDisconnecting : false) {
|
|
3353
3353
|
next(tmp0__anonymous__q1qw7t);
|
|
3354
3354
|
tmp$ret$0 = Unit_getInstance();
|
|
3355
3355
|
break $l$block_0;
|
|
@@ -3359,7 +3359,7 @@
|
|
|
3359
3359
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
3360
3360
|
var tmp$ret$2;
|
|
3361
3361
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3362
|
-
var tmp1_filterIsInstance = state.
|
|
3362
|
+
var tmp1_filterIsInstance = state.k33_1;
|
|
3363
3363
|
var tmp$ret$1;
|
|
3364
3364
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3365
3365
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
var element_0 = tmp0_iterator_0.h();
|
|
3381
3381
|
var tmp$ret$3;
|
|
3382
3382
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerConnectionUpdateMiddleware.<anonymous>.<anonymous>' call
|
|
3383
|
-
tmp$ret$3 = element_0.
|
|
3383
|
+
tmp$ret$3 = element_0.v7w_1 === tmp0__anonymous__q1qw7t.u4n_1;
|
|
3384
3384
|
if (tmp$ret$3) {
|
|
3385
3385
|
if (found) {
|
|
3386
3386
|
tmp$ret$4 = null;
|
|
@@ -3400,10 +3400,10 @@
|
|
|
3400
3400
|
if (!(reconnectionTimerTag == null)) {
|
|
3401
3401
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
3402
3402
|
}
|
|
3403
|
-
if (tmp0__anonymous__q1qw7t.
|
|
3404
|
-
store.dispatch(new PlayerConnectionChangedMechanicAction(tmp0__anonymous__q1qw7t.
|
|
3403
|
+
if (tmp0__anonymous__q1qw7t.t4n_1.isLive) {
|
|
3404
|
+
store.dispatch(new PlayerConnectionChangedMechanicAction(tmp0__anonymous__q1qw7t.u4n_1, PlayerConnectionState_LIVE_getInstance()));
|
|
3405
3405
|
}
|
|
3406
|
-
var actions = this.
|
|
3406
|
+
var actions = this.u7w_1.b7w(tmp0__anonymous__q1qw7t.t4n_1, tmp0__anonymous__q1qw7t.u4n_1, store.state.k34(), tmp0__anonymous__q1qw7t.v4n_1);
|
|
3407
3407
|
// Inline function 'kotlin.collections.forEach' call
|
|
3408
3408
|
var tmp0_iterator_1 = actions.f();
|
|
3409
3409
|
while (tmp0_iterator_1.g()) {
|
|
@@ -3414,8 +3414,8 @@
|
|
|
3414
3414
|
next(tmp0__anonymous__q1qw7t);
|
|
3415
3415
|
}
|
|
3416
3416
|
};
|
|
3417
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3418
|
-
return this.
|
|
3417
|
+
protoOf(_no_name_provided__qut3iv_1).s2x = function (store, next, action) {
|
|
3418
|
+
return this.o4r(store, next, action);
|
|
3419
3419
|
};
|
|
3420
3420
|
function playerReconnectionWaitingTimerTickMiddleware(reconnectionInteractor) {
|
|
3421
3421
|
var tmp$ret$0;
|
|
@@ -3424,15 +3424,15 @@
|
|
|
3424
3424
|
return tmp$ret$0;
|
|
3425
3425
|
}
|
|
3426
3426
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
3427
|
-
this.
|
|
3428
|
-
this.
|
|
3427
|
+
this.v7w_1 = playerId;
|
|
3428
|
+
this.w7w_1 = state;
|
|
3429
3429
|
}
|
|
3430
3430
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
3431
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
3431
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.v7w_1 + ', state=' + this.w7w_1 + ')';
|
|
3432
3432
|
};
|
|
3433
3433
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
3434
|
-
var result = getStringHashCode(this.
|
|
3435
|
-
result = imul(result, 31) + this.
|
|
3434
|
+
var result = getStringHashCode(this.v7w_1);
|
|
3435
|
+
result = imul(result, 31) + this.w7w_1.hashCode() | 0;
|
|
3436
3436
|
return result;
|
|
3437
3437
|
};
|
|
3438
3438
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -3441,25 +3441,25 @@
|
|
|
3441
3441
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
3442
3442
|
return false;
|
|
3443
3443
|
var tmp0_other_with_cast = other instanceof PlayerReconnectionWaitingTimerTag ? other : THROW_CCE();
|
|
3444
|
-
if (!(this.
|
|
3444
|
+
if (!(this.v7w_1 === tmp0_other_with_cast.v7w_1))
|
|
3445
3445
|
return false;
|
|
3446
|
-
if (!this.
|
|
3446
|
+
if (!this.w7w_1.equals(tmp0_other_with_cast.w7w_1))
|
|
3447
3447
|
return false;
|
|
3448
3448
|
return true;
|
|
3449
3449
|
};
|
|
3450
3450
|
function _no_name_provided__qut3iv_2($reconnectionInteractor) {
|
|
3451
|
-
this.
|
|
3451
|
+
this.x7w_1 = $reconnectionInteractor;
|
|
3452
3452
|
}
|
|
3453
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3453
|
+
protoOf(_no_name_provided__qut3iv_2).r2x = function (action) {
|
|
3454
3454
|
return action instanceof TimerTickAction;
|
|
3455
3455
|
};
|
|
3456
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3456
|
+
protoOf(_no_name_provided__qut3iv_2).o4r = function (store, next, action) {
|
|
3457
3457
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerReconnectionWaitingTimerTickMiddleware.<anonymous>' call
|
|
3458
3458
|
var tmp0__anonymous__q1qw7t = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
3459
|
-
var timerTag = tmp0__anonymous__q1qw7t.
|
|
3459
|
+
var timerTag = tmp0__anonymous__q1qw7t.f2y_1;
|
|
3460
3460
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
3461
3461
|
var state = store.state;
|
|
3462
|
-
var actions = this.
|
|
3462
|
+
var actions = this.x7w_1.b7w(timerTag.w7w_1, timerTag.v7w_1, state.k34(), true);
|
|
3463
3463
|
var tmp$ret$0;
|
|
3464
3464
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3465
3465
|
tmp$ret$0 = !actions.l();
|
|
@@ -3475,8 +3475,8 @@
|
|
|
3475
3475
|
}
|
|
3476
3476
|
next(tmp0__anonymous__q1qw7t);
|
|
3477
3477
|
};
|
|
3478
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3479
|
-
return this.
|
|
3478
|
+
protoOf(_no_name_provided__qut3iv_2).s2x = function (store, next, action) {
|
|
3479
|
+
return this.o4r(store, next, action);
|
|
3480
3480
|
};
|
|
3481
3481
|
function serverPlayerTurnTimerTickMiddleware(serverConfig, logger) {
|
|
3482
3482
|
var tmp$ret$0;
|
|
@@ -3485,26 +3485,26 @@
|
|
|
3485
3485
|
return tmp$ret$0;
|
|
3486
3486
|
}
|
|
3487
3487
|
function _no_name_provided__qut3iv_3($serverConfig, $logger) {
|
|
3488
|
-
this.
|
|
3489
|
-
this.
|
|
3488
|
+
this.y7w_1 = $serverConfig;
|
|
3489
|
+
this.z7w_1 = $logger;
|
|
3490
3490
|
}
|
|
3491
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3491
|
+
protoOf(_no_name_provided__qut3iv_3).r2x = function (action) {
|
|
3492
3492
|
return action instanceof TimerTickAction;
|
|
3493
3493
|
};
|
|
3494
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3494
|
+
protoOf(_no_name_provided__qut3iv_3).o4r = function (store, next, action) {
|
|
3495
3495
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.serverPlayerTurnTimerTickMiddleware.<anonymous>' call
|
|
3496
3496
|
var tmp0__anonymous__q1qw7t = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
3497
|
-
var timerTag = tmp0__anonymous__q1qw7t.
|
|
3497
|
+
var timerTag = tmp0__anonymous__q1qw7t.f2y_1;
|
|
3498
3498
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
3499
3499
|
var state = store.state;
|
|
3500
|
-
var table = state.
|
|
3501
|
-
var player = getPlayer(table.players, timerTag.
|
|
3502
|
-
var tmp0_subject = player.
|
|
3503
|
-
var tmp0 = tmp0_subject.
|
|
3500
|
+
var table = state.k34();
|
|
3501
|
+
var player = getPlayer(table.players, timerTag.a4u_1);
|
|
3502
|
+
var tmp0_subject = player.c38_1.r2p_1;
|
|
3503
|
+
var tmp0 = tmp0_subject.s5_1;
|
|
3504
3504
|
var tmp;
|
|
3505
3505
|
switch (tmp0) {
|
|
3506
3506
|
case 0:
|
|
3507
|
-
tmp = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.
|
|
3507
|
+
tmp = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.m2o(), timerTag.c4u_1));
|
|
3508
3508
|
break;
|
|
3509
3509
|
case 4:
|
|
3510
3510
|
tmp = emptyList();
|
|
@@ -3513,16 +3513,16 @@
|
|
|
3513
3513
|
case 2:
|
|
3514
3514
|
case 1:
|
|
3515
3515
|
var tmp_0;
|
|
3516
|
-
if (this.
|
|
3517
|
-
tmp_0 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.
|
|
3516
|
+
if (this.y7w_1.w7v_1 ? table.sceneInfo.d4d() : false) {
|
|
3517
|
+
tmp_0 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.m2o(), timerTag.c4u_1);
|
|
3518
3518
|
} else {
|
|
3519
|
-
tmp_0 = new AskBotAction(player.
|
|
3519
|
+
tmp_0 = new AskBotAction(player.m2o(), 'PlayerTurn after player TIMEOUT');
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
3522
|
tmp = listOf(tmp_0);
|
|
3523
3523
|
break;
|
|
3524
3524
|
case 5:
|
|
3525
|
-
this.
|
|
3525
|
+
this.z7w_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + player.c38_1.r2p_1 + ', ') + ('action:' + tmp0__anonymous__q1qw7t));
|
|
3526
3526
|
tmp = emptyList();
|
|
3527
3527
|
break;
|
|
3528
3528
|
default:
|
|
@@ -3545,8 +3545,8 @@
|
|
|
3545
3545
|
}
|
|
3546
3546
|
next(tmp0__anonymous__q1qw7t);
|
|
3547
3547
|
};
|
|
3548
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3549
|
-
return this.
|
|
3548
|
+
protoOf(_no_name_provided__qut3iv_3).s2x = function (store, next, action) {
|
|
3549
|
+
return this.o4r(store, next, action);
|
|
3550
3550
|
};
|
|
3551
3551
|
function roomLifecycleMiddleware(asyncProvider, logger) {
|
|
3552
3552
|
var tmp$ret$0;
|
|
@@ -3555,18 +3555,18 @@
|
|
|
3555
3555
|
return tmp$ret$0;
|
|
3556
3556
|
}
|
|
3557
3557
|
function roomLifecycleMiddleware$o$handle$slambda$slambda($actions, $store, resultContinuation) {
|
|
3558
|
-
this.
|
|
3559
|
-
this.
|
|
3558
|
+
this.i7x_1 = $actions;
|
|
3559
|
+
this.j7x_1 = $store;
|
|
3560
3560
|
CoroutineImpl.call(this, resultContinuation);
|
|
3561
3561
|
}
|
|
3562
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).
|
|
3563
|
-
var tmp = this.
|
|
3562
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).c16 = function ($this$launchStore, $completion) {
|
|
3563
|
+
var tmp = this.d16($this$launchStore, $completion);
|
|
3564
3564
|
tmp.xh_1 = Unit_getInstance();
|
|
3565
3565
|
tmp.yh_1 = null;
|
|
3566
3566
|
return tmp.ei();
|
|
3567
3567
|
};
|
|
3568
3568
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).qi = function (p1, $completion) {
|
|
3569
|
-
return this.
|
|
3569
|
+
return this.c16((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3570
3570
|
};
|
|
3571
3571
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).ei = function () {
|
|
3572
3572
|
var suspendResult = this.xh_1;
|
|
@@ -3575,10 +3575,10 @@
|
|
|
3575
3575
|
var tmp = this.vh_1;
|
|
3576
3576
|
if (tmp === 0) {
|
|
3577
3577
|
this.wh_1 = 1;
|
|
3578
|
-
var tmp0_iterator = this.
|
|
3578
|
+
var tmp0_iterator = this.i7x_1.f();
|
|
3579
3579
|
while (tmp0_iterator.g()) {
|
|
3580
3580
|
var element = tmp0_iterator.h();
|
|
3581
|
-
this.
|
|
3581
|
+
this.j7x_1.dispatch(element);
|
|
3582
3582
|
}
|
|
3583
3583
|
return Unit_getInstance();
|
|
3584
3584
|
} else if (tmp === 1) {
|
|
@@ -3590,34 +3590,34 @@
|
|
|
3590
3590
|
}
|
|
3591
3591
|
while (true);
|
|
3592
3592
|
};
|
|
3593
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).
|
|
3594
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.
|
|
3595
|
-
i.
|
|
3593
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).d16 = function ($this$launchStore, completion) {
|
|
3594
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.i7x_1, this.j7x_1, completion);
|
|
3595
|
+
i.k7x_1 = $this$launchStore;
|
|
3596
3596
|
return i;
|
|
3597
3597
|
};
|
|
3598
3598
|
function roomLifecycleMiddleware$o$handle$slambda$slambda_0($actions, $store, resultContinuation) {
|
|
3599
3599
|
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda($actions, $store, resultContinuation);
|
|
3600
3600
|
var l = function ($this$launchStore, $completion) {
|
|
3601
|
-
return i.
|
|
3601
|
+
return i.c16($this$launchStore, $completion);
|
|
3602
3602
|
};
|
|
3603
3603
|
l.$arity = 1;
|
|
3604
3604
|
return l;
|
|
3605
3605
|
}
|
|
3606
3606
|
function roomLifecycleMiddleware$o$handle$slambda($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation) {
|
|
3607
|
-
this.
|
|
3608
|
-
this.
|
|
3609
|
-
this.
|
|
3610
|
-
this.
|
|
3607
|
+
this.t7x_1 = $store;
|
|
3608
|
+
this.u7x_1 = $tmp0__anonymous__1nv1x1;
|
|
3609
|
+
this.v7x_1 = $logger;
|
|
3610
|
+
this.w7x_1 = $asyncProvider;
|
|
3611
3611
|
CoroutineImpl.call(this, resultContinuation);
|
|
3612
3612
|
}
|
|
3613
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda).
|
|
3614
|
-
var tmp = this.
|
|
3613
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda).c16 = function ($this$launchWorkerWithLock, $completion) {
|
|
3614
|
+
var tmp = this.d16($this$launchWorkerWithLock, $completion);
|
|
3615
3615
|
tmp.xh_1 = Unit_getInstance();
|
|
3616
3616
|
tmp.yh_1 = null;
|
|
3617
3617
|
return tmp.ei();
|
|
3618
3618
|
};
|
|
3619
3619
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).qi = function (p1, $completion) {
|
|
3620
|
-
return this.
|
|
3620
|
+
return this.c16((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3621
3621
|
};
|
|
3622
3622
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).ei = function () {
|
|
3623
3623
|
var suspendResult = this.xh_1;
|
|
@@ -3626,22 +3626,22 @@
|
|
|
3626
3626
|
var tmp = this.vh_1;
|
|
3627
3627
|
if (tmp === 0) {
|
|
3628
3628
|
this.wh_1 = 1;
|
|
3629
|
-
var state = this.
|
|
3630
|
-
var tmp0_subject = this.
|
|
3629
|
+
var state = this.t7x_1.state;
|
|
3630
|
+
var tmp0_subject = this.u7x_1;
|
|
3631
3631
|
var tmp_0;
|
|
3632
3632
|
if (tmp0_subject instanceof RoomWasCreatedAction) {
|
|
3633
|
-
var tmp1_id = this.
|
|
3633
|
+
var tmp1_id = this.u7x_1.d7w_1;
|
|
3634
3634
|
var tmp2_version = GameEngineConfig_getInstance().version;
|
|
3635
|
-
var tmp3_gameCreatorPlayerId = this.
|
|
3636
|
-
var tmp4_config = this.
|
|
3637
|
-
var tmp5_users = this.
|
|
3635
|
+
var tmp3_gameCreatorPlayerId = this.u7x_1.e7w_1;
|
|
3636
|
+
var tmp4_config = this.u7x_1.f7w_1;
|
|
3637
|
+
var tmp5_users = this.u7x_1.g7w_1;
|
|
3638
3638
|
tmp_0 = listOf(new StartGameMechanicAction(tmp4_config, tmp1_id, tmp2_version, tmp3_gameCreatorPlayerId, tmp5_users));
|
|
3639
3639
|
} else {
|
|
3640
3640
|
if (tmp0_subject instanceof RoomWasDeletedAction) {
|
|
3641
|
-
var tmp0_let = state.
|
|
3641
|
+
var tmp0_let = state.j33_1;
|
|
3642
3642
|
var tmp_1;
|
|
3643
3643
|
if (tmp0_let == null) {
|
|
3644
|
-
this.
|
|
3644
|
+
this.v7x_1.w(VOID, "Termination reason can't be null");
|
|
3645
3645
|
tmp_1 = new GameErrorReason('room deleted error');
|
|
3646
3646
|
} else {
|
|
3647
3647
|
tmp_1 = tmp0_let;
|
|
@@ -3653,7 +3653,7 @@
|
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
3655
3655
|
var actions = tmp_0;
|
|
3656
|
-
this.
|
|
3656
|
+
this.w7x_1.s2v(VOID, roomLifecycleMiddleware$o$handle$slambda$slambda_0(actions, this.t7x_1, null));
|
|
3657
3657
|
return Unit_getInstance();
|
|
3658
3658
|
} else if (tmp === 1) {
|
|
3659
3659
|
throw this.yh_1;
|
|
@@ -3664,34 +3664,34 @@
|
|
|
3664
3664
|
}
|
|
3665
3665
|
while (true);
|
|
3666
3666
|
};
|
|
3667
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda).
|
|
3668
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda(this.
|
|
3669
|
-
i.
|
|
3667
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda).d16 = function ($this$launchWorkerWithLock, completion) {
|
|
3668
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda(this.t7x_1, this.u7x_1, this.v7x_1, this.w7x_1, completion);
|
|
3669
|
+
i.x7x_1 = $this$launchWorkerWithLock;
|
|
3670
3670
|
return i;
|
|
3671
3671
|
};
|
|
3672
3672
|
function roomLifecycleMiddleware$o$handle$slambda_0($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation) {
|
|
3673
3673
|
var i = new roomLifecycleMiddleware$o$handle$slambda($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation);
|
|
3674
3674
|
var l = function ($this$launchWorkerWithLock, $completion) {
|
|
3675
|
-
return i.
|
|
3675
|
+
return i.c16($this$launchWorkerWithLock, $completion);
|
|
3676
3676
|
};
|
|
3677
3677
|
l.$arity = 1;
|
|
3678
3678
|
return l;
|
|
3679
3679
|
}
|
|
3680
3680
|
function _no_name_provided__qut3iv_4($asyncProvider, $logger) {
|
|
3681
|
-
this.
|
|
3682
|
-
this.
|
|
3681
|
+
this.y7x_1 = $asyncProvider;
|
|
3682
|
+
this.z7x_1 = $logger;
|
|
3683
3683
|
}
|
|
3684
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3684
|
+
protoOf(_no_name_provided__qut3iv_4).r2x = function (action) {
|
|
3685
3685
|
return action instanceof RoomAction;
|
|
3686
3686
|
};
|
|
3687
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3687
|
+
protoOf(_no_name_provided__qut3iv_4).o4r = function (store, next, action) {
|
|
3688
3688
|
// Inline function 'com.debertz.logic.server.redux.middlewares.rooms.roomLifecycleMiddleware.<anonymous>' call
|
|
3689
3689
|
var tmp0__anonymous__q1qw7t = action instanceof RoomAction ? action : THROW_CCE();
|
|
3690
3690
|
next(tmp0__anonymous__q1qw7t);
|
|
3691
|
-
this.
|
|
3691
|
+
this.y7x_1.w2v(VOID, roomLifecycleMiddleware$o$handle$slambda_0(store, tmp0__anonymous__q1qw7t, this.z7x_1, this.y7x_1, null));
|
|
3692
3692
|
};
|
|
3693
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3694
|
-
return this.
|
|
3693
|
+
protoOf(_no_name_provided__qut3iv_4).s2x = function (store, next, action) {
|
|
3694
|
+
return this.o4r(store, next, action);
|
|
3695
3695
|
};
|
|
3696
3696
|
function checkBotsMiddleware(logger) {
|
|
3697
3697
|
var tmp$ret$0;
|
|
@@ -3700,19 +3700,19 @@
|
|
|
3700
3700
|
return tmp$ret$0;
|
|
3701
3701
|
}
|
|
3702
3702
|
function _no_name_provided__qut3iv_5($logger) {
|
|
3703
|
-
this.
|
|
3703
|
+
this.a7y_1 = $logger;
|
|
3704
3704
|
}
|
|
3705
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
3705
|
+
protoOf(_no_name_provided__qut3iv_5).r2x = function (action) {
|
|
3706
3706
|
return action instanceof SceneMechanicAction;
|
|
3707
3707
|
};
|
|
3708
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
3708
|
+
protoOf(_no_name_provided__qut3iv_5).o4r = function (store, next, action) {
|
|
3709
3709
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>' call
|
|
3710
3710
|
var tmp0__anonymous__q1qw7t = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
3711
3711
|
var state = store.state;
|
|
3712
3712
|
var tmp;
|
|
3713
|
-
if (state.
|
|
3713
|
+
if (state.l34()) {
|
|
3714
3714
|
Companion_getInstance_3();
|
|
3715
|
-
tmp = !(tmp0__anonymous__q1qw7t.
|
|
3715
|
+
tmp = !(tmp0__anonymous__q1qw7t.x3w_1 === 'WAITING');
|
|
3716
3716
|
} else {
|
|
3717
3717
|
tmp = false;
|
|
3718
3718
|
}
|
|
@@ -3720,7 +3720,7 @@
|
|
|
3720
3720
|
var tmp$ret$0;
|
|
3721
3721
|
$l$block_0: {
|
|
3722
3722
|
// Inline function 'kotlin.collections.all' call
|
|
3723
|
-
var tmp0_all = state.
|
|
3723
|
+
var tmp0_all = state.k34().players;
|
|
3724
3724
|
var tmp_0;
|
|
3725
3725
|
if (isInterface(tmp0_all, Collection)) {
|
|
3726
3726
|
tmp_0 = tmp0_all.l();
|
|
@@ -3736,7 +3736,7 @@
|
|
|
3736
3736
|
var element = tmp0_iterator.h();
|
|
3737
3737
|
var tmp$ret$1;
|
|
3738
3738
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
3739
|
-
tmp$ret$1 = element.
|
|
3739
|
+
tmp$ret$1 = element.c38_1.r2p_1.isNotAlive;
|
|
3740
3740
|
if (!tmp$ret$1) {
|
|
3741
3741
|
tmp$ret$0 = false;
|
|
3742
3742
|
break $l$block_0;
|
|
@@ -3748,7 +3748,7 @@
|
|
|
3748
3748
|
var tmp_1 = get_TAG();
|
|
3749
3749
|
var tmp$ret$4;
|
|
3750
3750
|
// Inline function 'kotlin.collections.map' call
|
|
3751
|
-
var tmp2_map = state.
|
|
3751
|
+
var tmp2_map = state.k34().players;
|
|
3752
3752
|
var tmp$ret$3;
|
|
3753
3753
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3754
3754
|
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
@@ -3757,18 +3757,18 @@
|
|
|
3757
3757
|
var item = tmp0_iterator_0.h();
|
|
3758
3758
|
var tmp$ret$2;
|
|
3759
3759
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
3760
|
-
tmp$ret$2 = to(item.
|
|
3760
|
+
tmp$ret$2 = to(item.m2o(), item.c38_1.r2p_1);
|
|
3761
3761
|
tmp1_mapTo.a(tmp$ret$2);
|
|
3762
3762
|
}
|
|
3763
3763
|
tmp$ret$3 = tmp1_mapTo;
|
|
3764
3764
|
tmp$ret$4 = tmp$ret$3;
|
|
3765
|
-
this.
|
|
3765
|
+
this.a7y_1.w(tmp_1, 'CheckBotsMiddleware: Only bots are playing: ' + tmp$ret$4);
|
|
3766
3766
|
}
|
|
3767
3767
|
}
|
|
3768
3768
|
next(tmp0__anonymous__q1qw7t);
|
|
3769
3769
|
};
|
|
3770
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
3771
|
-
return this.
|
|
3770
|
+
protoOf(_no_name_provided__qut3iv_5).s2x = function (store, next, action) {
|
|
3771
|
+
return this.o4r(store, next, action);
|
|
3772
3772
|
};
|
|
3773
3773
|
function checkGameIsFinishingWaitForRoomDeleteMiddleware(logger) {
|
|
3774
3774
|
return middleware(checkGameIsFinishingWaitForRoomDeleteMiddleware$lambda(logger));
|
|
@@ -3777,7 +3777,7 @@
|
|
|
3777
3777
|
return function (store, next, action) {
|
|
3778
3778
|
var state = store.state;
|
|
3779
3779
|
var tmp;
|
|
3780
|
-
if (state.
|
|
3780
|
+
if (state.l34()) {
|
|
3781
3781
|
var tmp_0;
|
|
3782
3782
|
var tmp_1;
|
|
3783
3783
|
if (get_isFinished(state)) {
|
|
@@ -3809,52 +3809,52 @@
|
|
|
3809
3809
|
}
|
|
3810
3810
|
function _no_name_provided__qut3iv_6() {
|
|
3811
3811
|
}
|
|
3812
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
3812
|
+
protoOf(_no_name_provided__qut3iv_6).r2x = function (action) {
|
|
3813
3813
|
return action instanceof UpdateServerConfigAction;
|
|
3814
3814
|
};
|
|
3815
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
3815
|
+
protoOf(_no_name_provided__qut3iv_6).v4w = function (state, action) {
|
|
3816
3816
|
var tmp$ret$0;
|
|
3817
3817
|
// Inline function 'com.debertz.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3818
3818
|
var tmp0__anonymous__q1qw7t = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3819
|
-
tmp$ret$0 = state.
|
|
3819
|
+
tmp$ret$0 = state.s4n(VOID, get_serverState(state).b7y(tmp0__anonymous__q1qw7t.c7w_1));
|
|
3820
3820
|
return tmp$ret$0;
|
|
3821
3821
|
};
|
|
3822
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
3823
|
-
return this.
|
|
3822
|
+
protoOf(_no_name_provided__qut3iv_6).f2w = function (state, action) {
|
|
3823
|
+
return this.v4w(state instanceof AppState ? state : THROW_CCE(), action);
|
|
3824
3824
|
};
|
|
3825
3825
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer) {
|
|
3826
3826
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer);
|
|
3827
|
-
this.
|
|
3827
|
+
this.d7y_1 = logger;
|
|
3828
3828
|
}
|
|
3829
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3830
|
-
var serverState = get_serverStateOrNull(state.
|
|
3829
|
+
protoOf(ServerMechanicLifecycleReducer).j4y = function (state, action) {
|
|
3830
|
+
var serverState = get_serverStateOrNull(state.h33_1);
|
|
3831
3831
|
var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3832
|
-
var tmp0_$this = this.
|
|
3833
|
-
var tmp1_id = action.
|
|
3834
|
-
var tmp2_version = action.
|
|
3835
|
-
var tmp3_config = action.
|
|
3836
|
-
var tmp4_users = action.
|
|
3837
|
-
var tmp5_gameCreatorPlayerId = action.
|
|
3838
|
-
var tmp7_tableOrNull = tmp0_$this.
|
|
3832
|
+
var tmp0_$this = this.m4y_1;
|
|
3833
|
+
var tmp1_id = action.n3w_1;
|
|
3834
|
+
var tmp2_version = action.o3w_1;
|
|
3835
|
+
var tmp3_config = action.m3w_1;
|
|
3836
|
+
var tmp4_users = action.q3w_1;
|
|
3837
|
+
var tmp5_gameCreatorPlayerId = action.p3w_1;
|
|
3838
|
+
var tmp7_tableOrNull = tmp0_$this.b4z(tmp1_id, tmp3_config, tmp2_version, tmp4_users, tmp5_gameCreatorPlayerId);
|
|
3839
3839
|
var tmp;
|
|
3840
3840
|
if (serverState == null) {
|
|
3841
|
-
this.
|
|
3842
|
-
tmp = Companion_getInstance_6().
|
|
3841
|
+
this.d7y_1.w(VOID, 'ServerPayload is not onStart');
|
|
3842
|
+
tmp = Companion_getInstance_6().p7v();
|
|
3843
3843
|
} else {
|
|
3844
3844
|
tmp = serverState;
|
|
3845
3845
|
}
|
|
3846
3846
|
var tmp8_payload = tmp;
|
|
3847
|
-
return state.
|
|
3847
|
+
return state.s4n(tmp7_tableOrNull, tmp8_payload, tmp6_gameLifecycleState);
|
|
3848
3848
|
};
|
|
3849
3849
|
function Companion() {
|
|
3850
3850
|
Companion_instance = this;
|
|
3851
3851
|
}
|
|
3852
|
-
protoOf(Companion).
|
|
3852
|
+
protoOf(Companion).e7y = function (config) {
|
|
3853
3853
|
return new ServerState(config);
|
|
3854
3854
|
};
|
|
3855
|
-
protoOf(Companion).
|
|
3855
|
+
protoOf(Companion).p7v = function (config, $super) {
|
|
3856
3856
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3857
|
-
return $super === VOID ? this.
|
|
3857
|
+
return $super === VOID ? this.e7y(config) : $super.e7y.call(this, config);
|
|
3858
3858
|
};
|
|
3859
3859
|
var Companion_instance;
|
|
3860
3860
|
function Companion_getInstance_6() {
|
|
@@ -3864,16 +3864,16 @@
|
|
|
3864
3864
|
}
|
|
3865
3865
|
function ServerState(config) {
|
|
3866
3866
|
Companion_getInstance_6();
|
|
3867
|
-
this.
|
|
3867
|
+
this.q7v_1 = config;
|
|
3868
3868
|
}
|
|
3869
|
-
protoOf(ServerState).
|
|
3869
|
+
protoOf(ServerState).b7y = function (config) {
|
|
3870
3870
|
return new ServerState(config);
|
|
3871
3871
|
};
|
|
3872
3872
|
protoOf(ServerState).toString = function () {
|
|
3873
|
-
return 'ServerState(config=' + this.
|
|
3873
|
+
return 'ServerState(config=' + this.q7v_1 + ')';
|
|
3874
3874
|
};
|
|
3875
3875
|
protoOf(ServerState).hashCode = function () {
|
|
3876
|
-
return this.
|
|
3876
|
+
return this.q7v_1.hashCode();
|
|
3877
3877
|
};
|
|
3878
3878
|
protoOf(ServerState).equals = function (other) {
|
|
3879
3879
|
if (this === other)
|
|
@@ -3881,14 +3881,14 @@
|
|
|
3881
3881
|
if (!(other instanceof ServerState))
|
|
3882
3882
|
return false;
|
|
3883
3883
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3884
|
-
if (!this.
|
|
3884
|
+
if (!this.q7v_1.equals(tmp0_other_with_cast.q7v_1))
|
|
3885
3885
|
return false;
|
|
3886
3886
|
return true;
|
|
3887
3887
|
};
|
|
3888
3888
|
function get_serverState(_this__u8e3s4) {
|
|
3889
3889
|
var tmp$ret$2;
|
|
3890
3890
|
// Inline function 'kotlin.requireNotNull' call
|
|
3891
|
-
var tmp0_requireNotNull = _this__u8e3s4.
|
|
3891
|
+
var tmp0_requireNotNull = _this__u8e3s4.h33_1;
|
|
3892
3892
|
// Inline function 'kotlin.contracts.contract' call
|
|
3893
3893
|
var tmp$ret$1;
|
|
3894
3894
|
$l$block: {
|
|
@@ -3918,7 +3918,7 @@
|
|
|
3918
3918
|
}
|
|
3919
3919
|
function prepareConfigObjectInternal($this, map) {
|
|
3920
3920
|
var jsObject = {};
|
|
3921
|
-
var tmp = map.
|
|
3921
|
+
var tmp = map.b2('players');
|
|
3922
3922
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
3923
3923
|
var tmp_0;
|
|
3924
3924
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3967,7 +3967,7 @@
|
|
|
3967
3967
|
tmp_1 = tmp$ret$5;
|
|
3968
3968
|
}
|
|
3969
3969
|
var players = tmp_1;
|
|
3970
|
-
var tmp_3 = map.
|
|
3970
|
+
var tmp_3 = map.b2('points');
|
|
3971
3971
|
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
3972
3972
|
var tmp_4;
|
|
3973
3973
|
if (tmp2_safe_receiver == null) {
|
|
@@ -4016,7 +4016,7 @@
|
|
|
4016
4016
|
tmp_5 = tmp$ret$11;
|
|
4017
4017
|
}
|
|
4018
4018
|
var points = tmp_5;
|
|
4019
|
-
var tmp_7 = map.
|
|
4019
|
+
var tmp_7 = map.b2('timeoutTime');
|
|
4020
4020
|
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
4021
4021
|
var tmp_8;
|
|
4022
4022
|
if (tmp4_safe_receiver == null) {
|
|
@@ -4065,7 +4065,7 @@
|
|
|
4065
4065
|
tmp_9 = tmp$ret$17;
|
|
4066
4066
|
}
|
|
4067
4067
|
var timeoutTime = tmp_9;
|
|
4068
|
-
var tmp_11 = map.
|
|
4068
|
+
var tmp_11 = map.b2('rulesPreset');
|
|
4069
4069
|
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
4070
4070
|
var tmp_12;
|
|
4071
4071
|
if (tmp6_safe_receiver == null) {
|
|
@@ -4114,7 +4114,7 @@
|
|
|
4114
4114
|
tmp_13 = tmp$ret$23;
|
|
4115
4115
|
}
|
|
4116
4116
|
var rulesPreset = tmp_13;
|
|
4117
|
-
var tmp_15 = map.
|
|
4117
|
+
var tmp_15 = map.b2('isChatEnabled');
|
|
4118
4118
|
var isChatEnabled = (!(tmp_15 == null) ? typeof tmp_15 === 'boolean' : false) ? tmp_15 : null;
|
|
4119
4119
|
var tmp8_elvis_lhs = players;
|
|
4120
4120
|
var tmp_16;
|
|
@@ -4186,7 +4186,7 @@
|
|
|
4186
4186
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4187
4187
|
var tmp$ret$33;
|
|
4188
4188
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
4189
|
-
tmp$ret$33 = item.
|
|
4189
|
+
tmp$ret$33 = item.r5_1;
|
|
4190
4190
|
tmp0_mapTo.a(tmp$ret$33);
|
|
4191
4191
|
}
|
|
4192
4192
|
tmp$ret$34 = tmp0_mapTo;
|
|
@@ -4269,7 +4269,7 @@
|
|
|
4269
4269
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4270
4270
|
var tmp$ret$0;
|
|
4271
4271
|
// Inline function 'GameHelperImpl.validateRulesSetType.<anonymous>' call
|
|
4272
|
-
tmp$ret$0 = item.
|
|
4272
|
+
tmp$ret$0 = item.r5_1;
|
|
4273
4273
|
tmp0_mapTo.a(tmp$ret$0);
|
|
4274
4274
|
}
|
|
4275
4275
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -4292,10 +4292,10 @@
|
|
|
4292
4292
|
}
|
|
4293
4293
|
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
4294
4294
|
var state = store.state;
|
|
4295
|
-
if (!state.
|
|
4295
|
+
if (!state.l34()) {
|
|
4296
4296
|
return playerIds;
|
|
4297
4297
|
}
|
|
4298
|
-
var players = state.
|
|
4298
|
+
var players = state.k34().players;
|
|
4299
4299
|
var tmp$ret$9;
|
|
4300
4300
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4301
4301
|
var tmp$ret$8;
|
|
@@ -4329,7 +4329,7 @@
|
|
|
4329
4329
|
var element = tmp0_iterator.h();
|
|
4330
4330
|
var tmp$ret$3;
|
|
4331
4331
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
4332
|
-
tmp$ret$3 = element.
|
|
4332
|
+
tmp$ret$3 = element.c38_1.r2p_1.isLive;
|
|
4333
4333
|
if (tmp$ret$3) {
|
|
4334
4334
|
tmp1_filterTo.a(element);
|
|
4335
4335
|
}
|
|
@@ -4345,7 +4345,7 @@
|
|
|
4345
4345
|
var item_0 = tmp0_iterator_0.h();
|
|
4346
4346
|
var tmp$ret$6;
|
|
4347
4347
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
4348
|
-
tmp$ret$6 = item_0.
|
|
4348
|
+
tmp$ret$6 = item_0.m2o();
|
|
4349
4349
|
tmp3_mapTo.a(tmp$ret$6);
|
|
4350
4350
|
}
|
|
4351
4351
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -4356,10 +4356,10 @@
|
|
|
4356
4356
|
};
|
|
4357
4357
|
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
4358
4358
|
var state = store.state;
|
|
4359
|
-
if (!state.
|
|
4359
|
+
if (!state.l34()) {
|
|
4360
4360
|
return playerIds;
|
|
4361
4361
|
}
|
|
4362
|
-
var players = state.
|
|
4362
|
+
var players = state.k34().players;
|
|
4363
4363
|
var tmp$ret$9;
|
|
4364
4364
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4365
4365
|
var tmp$ret$8;
|
|
@@ -4393,7 +4393,7 @@
|
|
|
4393
4393
|
var element = tmp0_iterator.h();
|
|
4394
4394
|
var tmp$ret$3;
|
|
4395
4395
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
4396
|
-
tmp$ret$3 = element.
|
|
4396
|
+
tmp$ret$3 = element.b38_1.isBot;
|
|
4397
4397
|
if (tmp$ret$3) {
|
|
4398
4398
|
tmp1_filterTo.a(element);
|
|
4399
4399
|
}
|
|
@@ -4409,7 +4409,7 @@
|
|
|
4409
4409
|
var item_0 = tmp0_iterator_0.h();
|
|
4410
4410
|
var tmp$ret$6;
|
|
4411
4411
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
4412
|
-
tmp$ret$6 = item_0.
|
|
4412
|
+
tmp$ret$6 = item_0.m2o();
|
|
4413
4413
|
tmp3_mapTo.a(tmp$ret$6);
|
|
4414
4414
|
}
|
|
4415
4415
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -4420,10 +4420,10 @@
|
|
|
4420
4420
|
};
|
|
4421
4421
|
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
4422
4422
|
var state = store.state;
|
|
4423
|
-
if (!state.
|
|
4423
|
+
if (!state.l34()) {
|
|
4424
4424
|
return playerIds;
|
|
4425
4425
|
}
|
|
4426
|
-
var players = state.
|
|
4426
|
+
var players = state.k34().players;
|
|
4427
4427
|
var tmp$ret$9;
|
|
4428
4428
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4429
4429
|
var tmp$ret$8;
|
|
@@ -4457,7 +4457,7 @@
|
|
|
4457
4457
|
var element = tmp0_iterator.h();
|
|
4458
4458
|
var tmp$ret$3;
|
|
4459
4459
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
4460
|
-
tmp$ret$3 = !element.
|
|
4460
|
+
tmp$ret$3 = !element.b38_1.isBot;
|
|
4461
4461
|
if (tmp$ret$3) {
|
|
4462
4462
|
tmp1_filterTo.a(element);
|
|
4463
4463
|
}
|
|
@@ -4473,7 +4473,7 @@
|
|
|
4473
4473
|
var item_0 = tmp0_iterator_0.h();
|
|
4474
4474
|
var tmp$ret$6;
|
|
4475
4475
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
4476
|
-
tmp$ret$6 = item_0.
|
|
4476
|
+
tmp$ret$6 = item_0.m2o();
|
|
4477
4477
|
tmp3_mapTo.a(tmp$ret$6);
|
|
4478
4478
|
}
|
|
4479
4479
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -4484,21 +4484,21 @@
|
|
|
4484
4484
|
};
|
|
4485
4485
|
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
4486
4486
|
var state = store.state;
|
|
4487
|
-
if (!state.
|
|
4487
|
+
if (!state.l34()) {
|
|
4488
4488
|
return null;
|
|
4489
4489
|
}
|
|
4490
|
-
return get_serverUserPayload(getPlayer(state.
|
|
4490
|
+
return get_serverUserPayload(getPlayer(state.k34().players, playerId).b38_1).f7y_1;
|
|
4491
4491
|
};
|
|
4492
4492
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
4493
4493
|
var state = store.state;
|
|
4494
|
-
if (!state.
|
|
4494
|
+
if (!state.l34()) {
|
|
4495
4495
|
return null;
|
|
4496
4496
|
}
|
|
4497
4497
|
var tmp$ret$3;
|
|
4498
4498
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4499
4499
|
var tmp$ret$2;
|
|
4500
4500
|
// Inline function 'kotlin.collections.map' call
|
|
4501
|
-
var tmp1_map = state.
|
|
4501
|
+
var tmp1_map = state.k34().players;
|
|
4502
4502
|
var tmp$ret$1;
|
|
4503
4503
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4504
4504
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -4507,7 +4507,7 @@
|
|
|
4507
4507
|
var item = tmp0_iterator.h();
|
|
4508
4508
|
var tmp$ret$0;
|
|
4509
4509
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
4510
|
-
tmp$ret$0 = get_serverUserPayload(item.
|
|
4510
|
+
tmp$ret$0 = get_serverUserPayload(item.b38_1).f7y_1;
|
|
4511
4511
|
tmp0_mapTo.a(tmp$ret$0);
|
|
4512
4512
|
}
|
|
4513
4513
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -4582,7 +4582,7 @@
|
|
|
4582
4582
|
var tmp_2 = (!(tmp_1 == null) ? typeof tmp_1 === 'boolean' : false) ? tmp_1 : THROW_CCE();
|
|
4583
4583
|
var tmp_3 = getValue(map, 'protectBella');
|
|
4584
4584
|
var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'boolean' : false) ? tmp_3 : THROW_CCE();
|
|
4585
|
-
var tmp_5 = map.
|
|
4585
|
+
var tmp_5 = map.b2('oneTryToProtectBella');
|
|
4586
4586
|
var tmp0_elvis_lhs = (!(tmp_5 == null) ? typeof tmp_5 === 'boolean' : false) ? tmp_5 : null;
|
|
4587
4587
|
var tmp_6 = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
4588
4588
|
var tmp_7 = getValue(map, 'enableFourSevensCombination');
|
|
@@ -4614,7 +4614,7 @@
|
|
|
4614
4614
|
};
|
|
4615
4615
|
protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
|
|
4616
4616
|
var map = mapOfObject(config);
|
|
4617
|
-
var tmp = map.
|
|
4617
|
+
var tmp = map.b2('limit');
|
|
4618
4618
|
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
4619
4619
|
var tmp_0;
|
|
4620
4620
|
if (tmp0_safe_receiver == null) {
|
|
@@ -4640,7 +4640,7 @@
|
|
|
4640
4640
|
};
|
|
4641
4641
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
4642
4642
|
var map = mapOfObject(config);
|
|
4643
|
-
var rules = map.
|
|
4643
|
+
var rules = map.b2('rules');
|
|
4644
4644
|
var tmp = getValue(map, 'players');
|
|
4645
4645
|
var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
|
|
4646
4646
|
var tmp_1 = getValue(map, 'points');
|
|
@@ -4667,7 +4667,7 @@
|
|
|
4667
4667
|
};
|
|
4668
4668
|
protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
|
|
4669
4669
|
var tmp0_subject = rulesSetType;
|
|
4670
|
-
var tmp0 = tmp0_subject.
|
|
4670
|
+
var tmp0 = tmp0_subject.s5_1;
|
|
4671
4671
|
var tmp;
|
|
4672
4672
|
switch (tmp0) {
|
|
4673
4673
|
case 0:
|
|
@@ -4693,15 +4693,15 @@
|
|
|
4693
4693
|
protoOf(GameHelperImpl).getRulesByString = function (name) {
|
|
4694
4694
|
var tmp0_subject = name;
|
|
4695
4695
|
var tmp;
|
|
4696
|
-
if (tmp0_subject === RulesSetType_belot_getInstance().
|
|
4696
|
+
if (tmp0_subject === RulesSetType_belot_getInstance().r5_1) {
|
|
4697
4697
|
tmp = Companion_getInstance_4().belot();
|
|
4698
|
-
} else if (tmp0_subject === RulesSetType_klabor_getInstance().
|
|
4698
|
+
} else if (tmp0_subject === RulesSetType_klabor_getInstance().r5_1) {
|
|
4699
4699
|
tmp = Companion_getInstance_4().klabor();
|
|
4700
|
-
} else if (tmp0_subject === RulesSetType_debertzCommon_getInstance().
|
|
4700
|
+
} else if (tmp0_subject === RulesSetType_debertzCommon_getInstance().r5_1) {
|
|
4701
4701
|
tmp = Companion_getInstance_4().debertzCommon();
|
|
4702
|
-
} else if (tmp0_subject === RulesSetType_debertzKharkiv_getInstance().
|
|
4702
|
+
} else if (tmp0_subject === RulesSetType_debertzKharkiv_getInstance().r5_1) {
|
|
4703
4703
|
tmp = Companion_getInstance_4().kharkiv();
|
|
4704
|
-
} else if (tmp0_subject === RulesSetType_custom_getInstance().
|
|
4704
|
+
} else if (tmp0_subject === RulesSetType_custom_getInstance().r5_1) {
|
|
4705
4705
|
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
4706
4706
|
} else {
|
|
4707
4707
|
throw IllegalStateException_init_$Create$("Can't support this " + name);
|
|
@@ -4762,21 +4762,21 @@
|
|
|
4762
4762
|
function getRandomAvatarData_0($this) {
|
|
4763
4763
|
var avatarSetNumber = Default_getInstance().n(values_2().length);
|
|
4764
4764
|
var avatarSet = values_2()[avatarSetNumber];
|
|
4765
|
-
return new AvatarData(Default_getInstance().n(avatarSet.
|
|
4765
|
+
return new AvatarData(Default_getInstance().n(avatarSet.j7y()), avatarSet);
|
|
4766
4766
|
}
|
|
4767
4767
|
function getAvatarUrlByIndex($this, data) {
|
|
4768
4768
|
return mapToPattern($this, data);
|
|
4769
4769
|
}
|
|
4770
4770
|
function getNicknameByIndex($this, data) {
|
|
4771
|
-
return data.
|
|
4771
|
+
return data.l7y_1.m7y(data.k7y_1);
|
|
4772
4772
|
}
|
|
4773
4773
|
function mapToPattern($this, data) {
|
|
4774
4774
|
Companion_getInstance_7();
|
|
4775
|
-
return 'debertz://raspberry.games' + '/' + data.
|
|
4775
|
+
return 'debertz://raspberry.games' + '/' + data.l7y_1.s5_1 + '/' + data.k7y_1;
|
|
4776
4776
|
}
|
|
4777
4777
|
function Companion_0() {
|
|
4778
4778
|
Companion_instance_0 = this;
|
|
4779
|
-
this.
|
|
4779
|
+
this.n7y_1 = 'debertz://raspberry.games';
|
|
4780
4780
|
var tmp = this;
|
|
4781
4781
|
var tmp$ret$2;
|
|
4782
4782
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4787,7 +4787,7 @@
|
|
|
4787
4787
|
tmp$ret$0 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
4788
4788
|
tmp$ret$1 = tmp$ret$0;
|
|
4789
4789
|
tmp$ret$2 = tmp$ret$1;
|
|
4790
|
-
tmp.
|
|
4790
|
+
tmp.o7y_1 = tmp$ret$2;
|
|
4791
4791
|
var tmp_0 = this;
|
|
4792
4792
|
var tmp$ret$5;
|
|
4793
4793
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4798,7 +4798,7 @@
|
|
|
4798
4798
|
tmp$ret$3 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
4799
4799
|
tmp$ret$4 = tmp$ret$3;
|
|
4800
4800
|
tmp$ret$5 = tmp$ret$4;
|
|
4801
|
-
tmp_0.
|
|
4801
|
+
tmp_0.p7y_1 = tmp$ret$5;
|
|
4802
4802
|
var tmp_1 = this;
|
|
4803
4803
|
var tmp$ret$8;
|
|
4804
4804
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4809,7 +4809,7 @@
|
|
|
4809
4809
|
tmp$ret$6 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
4810
4810
|
tmp$ret$7 = tmp$ret$6;
|
|
4811
4811
|
tmp$ret$8 = tmp$ret$7;
|
|
4812
|
-
tmp_1.
|
|
4812
|
+
tmp_1.q7y_1 = tmp$ret$8;
|
|
4813
4813
|
var tmp_2 = this;
|
|
4814
4814
|
var tmp$ret$11;
|
|
4815
4815
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4820,7 +4820,7 @@
|
|
|
4820
4820
|
tmp$ret$9 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
4821
4821
|
tmp$ret$10 = tmp$ret$9;
|
|
4822
4822
|
tmp$ret$11 = tmp$ret$10;
|
|
4823
|
-
tmp_2.
|
|
4823
|
+
tmp_2.r7y_1 = tmp$ret$11;
|
|
4824
4824
|
}
|
|
4825
4825
|
var Companion_instance_0;
|
|
4826
4826
|
function Companion_getInstance_7() {
|
|
@@ -4831,16 +4831,16 @@
|
|
|
4831
4831
|
function AvatarSet(name, ordinal) {
|
|
4832
4832
|
Enum.call(this, name, ordinal);
|
|
4833
4833
|
}
|
|
4834
|
-
protoOf(AvatarSet).
|
|
4834
|
+
protoOf(AvatarSet).j7y = function () {
|
|
4835
4835
|
var tmp0_subject = this;
|
|
4836
|
-
var tmp0 = tmp0_subject.
|
|
4836
|
+
var tmp0 = tmp0_subject.s5_1;
|
|
4837
4837
|
var tmp;
|
|
4838
4838
|
switch (tmp0) {
|
|
4839
4839
|
case 0:
|
|
4840
|
-
tmp = Companion_getInstance_7().
|
|
4840
|
+
tmp = Companion_getInstance_7().p7y_1.length;
|
|
4841
4841
|
break;
|
|
4842
4842
|
case 1:
|
|
4843
|
-
tmp = Companion_getInstance_7().
|
|
4843
|
+
tmp = Companion_getInstance_7().r7y_1.length;
|
|
4844
4844
|
break;
|
|
4845
4845
|
default:
|
|
4846
4846
|
noWhenBranchMatchedException();
|
|
@@ -4848,16 +4848,16 @@
|
|
|
4848
4848
|
}
|
|
4849
4849
|
return tmp;
|
|
4850
4850
|
};
|
|
4851
|
-
protoOf(AvatarSet).
|
|
4851
|
+
protoOf(AvatarSet).m7y = function (index) {
|
|
4852
4852
|
var tmp0_subject = this;
|
|
4853
|
-
var tmp0 = tmp0_subject.
|
|
4853
|
+
var tmp0 = tmp0_subject.s5_1;
|
|
4854
4854
|
var tmp;
|
|
4855
4855
|
switch (tmp0) {
|
|
4856
4856
|
case 0:
|
|
4857
|
-
tmp = Companion_getInstance_7().
|
|
4857
|
+
tmp = Companion_getInstance_7().p7y_1[index];
|
|
4858
4858
|
break;
|
|
4859
4859
|
case 1:
|
|
4860
|
-
tmp = Companion_getInstance_7().
|
|
4860
|
+
tmp = Companion_getInstance_7().r7y_1[index];
|
|
4861
4861
|
break;
|
|
4862
4862
|
default:
|
|
4863
4863
|
noWhenBranchMatchedException();
|
|
@@ -4866,8 +4866,8 @@
|
|
|
4866
4866
|
return tmp;
|
|
4867
4867
|
};
|
|
4868
4868
|
function AvatarData(index, avatarSet) {
|
|
4869
|
-
this.
|
|
4870
|
-
this.
|
|
4869
|
+
this.k7y_1 = index;
|
|
4870
|
+
this.l7y_1 = avatarSet;
|
|
4871
4871
|
}
|
|
4872
4872
|
function AvatarSet_ORIGIN_getInstance() {
|
|
4873
4873
|
AvatarSet_initEntries();
|
|
@@ -4880,7 +4880,7 @@
|
|
|
4880
4880
|
function GameResourcesImpl() {
|
|
4881
4881
|
Companion_getInstance_7();
|
|
4882
4882
|
}
|
|
4883
|
-
protoOf(GameResourcesImpl).
|
|
4883
|
+
protoOf(GameResourcesImpl).g7y = function (playerId, existingNicknames) {
|
|
4884
4884
|
var data = getRandomAvatarData(this, existingNicknames);
|
|
4885
4885
|
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
4886
4886
|
};
|
|
@@ -4929,19 +4929,19 @@
|
|
|
4929
4929
|
}
|
|
4930
4930
|
function createDI($this, logger, serverConfig, logicConfig, botConfig, externalReducers, externalMiddlewares) {
|
|
4931
4931
|
var tmp = Companion_getInstance_5();
|
|
4932
|
-
return tmp.
|
|
4932
|
+
return tmp.m2h(VOID, GameServerEngineControllerImpl$createDI$lambda(serverConfig, logicConfig, botConfig, externalReducers, externalMiddlewares, logger));
|
|
4933
4933
|
}
|
|
4934
4934
|
function _no_name_provided__qut3iv_7($item) {
|
|
4935
|
-
this.
|
|
4935
|
+
this.w7y_1 = $item;
|
|
4936
4936
|
}
|
|
4937
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4937
|
+
protoOf(_no_name_provided__qut3iv_7).r2x = function (action) {
|
|
4938
4938
|
return isInterface(action, Action);
|
|
4939
4939
|
};
|
|
4940
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4941
|
-
return this.
|
|
4940
|
+
protoOf(_no_name_provided__qut3iv_7).v4w = function (state, action) {
|
|
4941
|
+
return this.w7y_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4942
4942
|
};
|
|
4943
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
4944
|
-
return this.
|
|
4943
|
+
protoOf(_no_name_provided__qut3iv_7).f2w = function (state, action) {
|
|
4944
|
+
return this.v4w(state instanceof AppState ? state : THROW_CCE(), action);
|
|
4945
4945
|
};
|
|
4946
4946
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda($gameServer) {
|
|
4947
4947
|
return function () {
|
|
@@ -4957,12 +4957,12 @@
|
|
|
4957
4957
|
var tmp = Default_getInstance();
|
|
4958
4958
|
var tmp$ret$1;
|
|
4959
4959
|
// Inline function 'org.kodein.di.instance' call
|
|
4960
|
-
var tmp_0 = $this$singleton.
|
|
4960
|
+
var tmp_0 = $this$singleton.p2i();
|
|
4961
4961
|
var tmp$ret$0;
|
|
4962
4962
|
// Inline function 'org.kodein.type.generic' call
|
|
4963
4963
|
var tmp_1 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
4964
4964
|
tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
4965
|
-
tmp$ret$1 = tmp_0.
|
|
4965
|
+
tmp$ret$1 = tmp_0.q2i(tmp$ret$0, null);
|
|
4966
4966
|
return new CardsGeneratorProviderImpl(tmp, tmp$ret$1);
|
|
4967
4967
|
}
|
|
4968
4968
|
function GameServerEngineControllerImpl$createDI$lambda($serverConfig, $logicConfig, $botConfig, $externalReducers, $externalMiddlewares, $logger) {
|
|
@@ -4973,50 +4973,50 @@
|
|
|
4973
4973
|
// Inline function 'org.kodein.type.generic' call
|
|
4974
4974
|
var tmp = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
4975
4975
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4976
|
-
tmp$ret$1 = $this$invoke.
|
|
4976
|
+
tmp$ret$1 = $this$invoke.g2h(tmp$ret$0, null, null);
|
|
4977
4977
|
var tmp_0 = tmp$ret$1;
|
|
4978
4978
|
var tmp$ret$3;
|
|
4979
4979
|
// Inline function 'org.kodein.di.singleton' call
|
|
4980
4980
|
var tmp0_singleton = GameServerEngineControllerImpl$createDI$lambda$lambda($logger);
|
|
4981
|
-
var tmp_1 = $this$invoke.
|
|
4982
|
-
var tmp_2 = $this$invoke.
|
|
4983
|
-
var tmp_3 = $this$invoke.
|
|
4981
|
+
var tmp_1 = $this$invoke.w2i();
|
|
4982
|
+
var tmp_2 = $this$invoke.x2i();
|
|
4983
|
+
var tmp_3 = $this$invoke.v2k();
|
|
4984
4984
|
var tmp$ret$2;
|
|
4985
4985
|
// Inline function 'org.kodein.type.generic' call
|
|
4986
4986
|
var tmp_4 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
4987
4987
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4988
4988
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
4989
|
-
tmp_0.
|
|
4989
|
+
tmp_0.a2l(tmp$ret$3);
|
|
4990
4990
|
var tmp$ret$5;
|
|
4991
4991
|
// Inline function 'org.kodein.di.bind' call
|
|
4992
4992
|
var tmp$ret$4;
|
|
4993
4993
|
// Inline function 'org.kodein.type.generic' call
|
|
4994
4994
|
var tmp_5 = typeToken(createKType(getKClass(CardsGeneratorProvider), arrayOf([]), false));
|
|
4995
4995
|
tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4996
|
-
tmp$ret$5 = $this$invoke.
|
|
4996
|
+
tmp$ret$5 = $this$invoke.g2h(tmp$ret$4, null, null);
|
|
4997
4997
|
var tmp_6 = tmp$ret$5;
|
|
4998
4998
|
var tmp$ret$7;
|
|
4999
4999
|
// Inline function 'org.kodein.di.singleton' call
|
|
5000
5000
|
var tmp1_singleton = GameServerEngineControllerImpl$createDI$lambda$lambda_0;
|
|
5001
|
-
var tmp_7 = $this$invoke.
|
|
5002
|
-
var tmp_8 = $this$invoke.
|
|
5003
|
-
var tmp_9 = $this$invoke.
|
|
5001
|
+
var tmp_7 = $this$invoke.w2i();
|
|
5002
|
+
var tmp_8 = $this$invoke.x2i();
|
|
5003
|
+
var tmp_9 = $this$invoke.v2k();
|
|
5004
5004
|
var tmp$ret$6;
|
|
5005
5005
|
// Inline function 'org.kodein.type.generic' call
|
|
5006
5006
|
var tmp_10 = typeToken(createKType(getKClass(CardsGeneratorProviderImpl), arrayOf([]), false));
|
|
5007
5007
|
tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
5008
5008
|
tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, tmp1_singleton);
|
|
5009
|
-
tmp_6.
|
|
5010
|
-
$this$invoke.
|
|
5011
|
-
$this$invoke.
|
|
5009
|
+
tmp_6.a2l(tmp$ret$7);
|
|
5010
|
+
$this$invoke.i2h(get_coreModule());
|
|
5011
|
+
$this$invoke.i2h(createGameServerDI($serverConfig, $logicConfig, $botConfig, $externalReducers, $externalMiddlewares));
|
|
5012
5012
|
return Unit_getInstance();
|
|
5013
5013
|
};
|
|
5014
5014
|
}
|
|
5015
5015
|
function GameServerEngineControllerImpl(loggerCallback) {
|
|
5016
5016
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
5017
|
-
this.
|
|
5017
|
+
this.x7y_1 = loggerCallback;
|
|
5018
5018
|
var tmp = this;
|
|
5019
|
-
var tmp0_safe_receiver = this.
|
|
5019
|
+
var tmp0_safe_receiver = this.x7y_1;
|
|
5020
5020
|
var tmp_0;
|
|
5021
5021
|
if (tmp0_safe_receiver == null) {
|
|
5022
5022
|
tmp_0 = null;
|
|
@@ -5026,38 +5026,38 @@
|
|
|
5026
5026
|
// Inline function 'kotlin.contracts.contract' call
|
|
5027
5027
|
var tmp$ret$0;
|
|
5028
5028
|
// Inline function 'GameServerEngineControllerImpl.logger.<anonymous>' call
|
|
5029
|
-
tmp$ret$0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.
|
|
5029
|
+
tmp$ret$0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.x7y_1)));
|
|
5030
5030
|
tmp$ret$1 = tmp$ret$0;
|
|
5031
5031
|
tmp_0 = tmp$ret$1;
|
|
5032
5032
|
}
|
|
5033
5033
|
var tmp1_elvis_lhs = tmp_0;
|
|
5034
|
-
tmp.
|
|
5035
|
-
this.
|
|
5036
|
-
this.
|
|
5037
|
-
this.
|
|
5038
|
-
this.
|
|
5039
|
-
}
|
|
5040
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5041
|
-
return this.
|
|
5034
|
+
tmp.y7y_1 = tmp1_elvis_lhs == null ? new PlatformGameLogger() : tmp1_elvis_lhs;
|
|
5035
|
+
this.z7y_1 = new ParserHelperImpl(emptyList());
|
|
5036
|
+
this.a7z_1 = new GameHelperImpl();
|
|
5037
|
+
this.b7z_1 = new GameResourcesImpl();
|
|
5038
|
+
this.c7z_1 = new TestHelperImpl(this.y7y_1);
|
|
5039
|
+
}
|
|
5040
|
+
protoOf(GameServerEngineControllerImpl).k7u = function () {
|
|
5041
|
+
return this.z7y_1;
|
|
5042
5042
|
};
|
|
5043
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5044
|
-
return this.
|
|
5043
|
+
protoOf(GameServerEngineControllerImpl).t7y = function () {
|
|
5044
|
+
return this.a7z_1;
|
|
5045
5045
|
};
|
|
5046
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5047
|
-
return this.
|
|
5046
|
+
protoOf(GameServerEngineControllerImpl).u7y = function () {
|
|
5047
|
+
return this.b7z_1;
|
|
5048
5048
|
};
|
|
5049
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5050
|
-
return this.
|
|
5049
|
+
protoOf(GameServerEngineControllerImpl).s7y = function () {
|
|
5050
|
+
return this.c7z_1;
|
|
5051
5051
|
};
|
|
5052
5052
|
protoOf(GameServerEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
5053
|
-
Logger_getInstance().
|
|
5053
|
+
Logger_getInstance().z2z_1 = enabled;
|
|
5054
5054
|
};
|
|
5055
5055
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
5056
5056
|
return this.createGameEngineWithLogic();
|
|
5057
5057
|
};
|
|
5058
|
-
protoOf(GameServerEngineControllerImpl).
|
|
5058
|
+
protoOf(GameServerEngineControllerImpl).v7y = function (reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish, dealerStrategy) {
|
|
5059
5059
|
var loggerOutputWithTablePayload = null;
|
|
5060
|
-
var tmp0_safe_receiver = this.
|
|
5060
|
+
var tmp0_safe_receiver = this.x7y_1;
|
|
5061
5061
|
var tmp;
|
|
5062
5062
|
if (tmp0_safe_receiver == null) {
|
|
5063
5063
|
tmp = null;
|
|
@@ -5067,7 +5067,7 @@
|
|
|
5067
5067
|
// Inline function 'kotlin.contracts.contract' call
|
|
5068
5068
|
var tmp$ret$0;
|
|
5069
5069
|
// Inline function 'GameServerEngineControllerImpl.createGameEngineWithLogic.<anonymous>' call
|
|
5070
|
-
var loggerOutput = createLoggerOutputWithTablePayload(this.
|
|
5070
|
+
var loggerOutput = createLoggerOutputWithTablePayload(this.x7y_1);
|
|
5071
5071
|
loggerOutputWithTablePayload = loggerOutput;
|
|
5072
5072
|
tmp$ret$0 = new CombinedGameLogger(listOf(loggerOutput));
|
|
5073
5073
|
tmp$ret$1 = tmp$ret$0;
|
|
@@ -5122,32 +5122,32 @@
|
|
|
5122
5122
|
var tmp$ret$10;
|
|
5123
5123
|
// Inline function 'org.kodein.di.instance' call
|
|
5124
5124
|
var tmp2_instance = get_direct(di);
|
|
5125
|
-
var tmp_4 = tmp2_instance.
|
|
5125
|
+
var tmp_4 = tmp2_instance.p2i();
|
|
5126
5126
|
var tmp$ret$9;
|
|
5127
5127
|
// Inline function 'org.kodein.type.generic' call
|
|
5128
5128
|
var tmp_5 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
5129
5129
|
tmp$ret$9 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
5130
|
-
tmp$ret$10 = tmp_4.
|
|
5130
|
+
tmp$ret$10 = tmp_4.q2i(tmp$ret$9, null);
|
|
5131
5131
|
var gameServer = tmp$ret$10;
|
|
5132
5132
|
var tmp2_safe_receiver = loggerOutputWithTablePayload;
|
|
5133
5133
|
if (tmp2_safe_receiver == null) {
|
|
5134
5134
|
} else {
|
|
5135
5135
|
var tmp_6 = tmp2_safe_receiver;
|
|
5136
|
-
tmp_6.
|
|
5136
|
+
tmp_6.h4z_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda(gameServer);
|
|
5137
5137
|
}
|
|
5138
5138
|
return gameServer;
|
|
5139
5139
|
};
|
|
5140
5140
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5141
|
-
return this.
|
|
5141
|
+
return this.k7u();
|
|
5142
5142
|
});
|
|
5143
5143
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5144
|
-
return this.
|
|
5144
|
+
return this.t7y();
|
|
5145
5145
|
});
|
|
5146
5146
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5147
|
-
return this.
|
|
5147
|
+
return this.u7y();
|
|
5148
5148
|
});
|
|
5149
5149
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5150
|
-
return this.
|
|
5150
|
+
return this.s7y();
|
|
5151
5151
|
});
|
|
5152
5152
|
function TestHelper() {
|
|
5153
5153
|
}
|
|
@@ -5155,12 +5155,12 @@
|
|
|
5155
5155
|
var tmp$ret$0;
|
|
5156
5156
|
// Inline function 'kotlin.getValue' call
|
|
5157
5157
|
var tmp0_getValue = playerAnswerInteractor$factory_0();
|
|
5158
|
-
tmp$ret$0 = $this.
|
|
5158
|
+
tmp$ret$0 = $this.f7z_1.n1();
|
|
5159
5159
|
return tmp$ret$0;
|
|
5160
5160
|
}
|
|
5161
5161
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
5162
5162
|
return function ($this$singleton) {
|
|
5163
|
-
return this$0.
|
|
5163
|
+
return this$0.d7z_1;
|
|
5164
5164
|
};
|
|
5165
5165
|
}
|
|
5166
5166
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -5171,22 +5171,22 @@
|
|
|
5171
5171
|
// Inline function 'org.kodein.type.generic' call
|
|
5172
5172
|
var tmp = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
5173
5173
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
5174
|
-
tmp$ret$1 = $this$invoke.
|
|
5174
|
+
tmp$ret$1 = $this$invoke.g2h(tmp$ret$0, null, null);
|
|
5175
5175
|
var tmp_0 = tmp$ret$1;
|
|
5176
5176
|
var tmp$ret$3;
|
|
5177
5177
|
// Inline function 'org.kodein.di.singleton' call
|
|
5178
5178
|
var tmp0_singleton = TestHelperImpl$di$lambda$lambda(this$0);
|
|
5179
|
-
var tmp_1 = $this$invoke.
|
|
5180
|
-
var tmp_2 = $this$invoke.
|
|
5181
|
-
var tmp_3 = $this$invoke.
|
|
5179
|
+
var tmp_1 = $this$invoke.w2i();
|
|
5180
|
+
var tmp_2 = $this$invoke.x2i();
|
|
5181
|
+
var tmp_3 = $this$invoke.v2k();
|
|
5182
5182
|
var tmp$ret$2;
|
|
5183
5183
|
// Inline function 'org.kodein.type.generic' call
|
|
5184
5184
|
var tmp_4 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
5185
5185
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
5186
5186
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
5187
|
-
tmp_0.
|
|
5188
|
-
$this$invoke.
|
|
5189
|
-
$this$invoke.
|
|
5187
|
+
tmp_0.a2l(tmp$ret$3);
|
|
5188
|
+
$this$invoke.i2h(jsonModule(emptyList()));
|
|
5189
|
+
$this$invoke.i2h(get_botGameModule());
|
|
5190
5190
|
return Unit_getInstance();
|
|
5191
5191
|
};
|
|
5192
5192
|
}
|
|
@@ -5194,23 +5194,23 @@
|
|
|
5194
5194
|
return emptyMap();
|
|
5195
5195
|
}
|
|
5196
5196
|
function TestHelperImpl(gameLogger) {
|
|
5197
|
-
this.
|
|
5197
|
+
this.d7z_1 = gameLogger;
|
|
5198
5198
|
var tmp = this;
|
|
5199
5199
|
var tmp_0 = Companion_getInstance_5();
|
|
5200
|
-
tmp.
|
|
5200
|
+
tmp.e7z_1 = tmp_0.m2h(VOID, TestHelperImpl$di$lambda(this));
|
|
5201
5201
|
var tmp_1 = this;
|
|
5202
5202
|
var tmp$ret$1;
|
|
5203
5203
|
// Inline function 'org.kodein.di.instance' call
|
|
5204
|
-
var tmp0_instance = this.
|
|
5204
|
+
var tmp0_instance = this.e7z_1;
|
|
5205
5205
|
var tmp$ret$0;
|
|
5206
5206
|
// Inline function 'org.kodein.type.generic' call
|
|
5207
5207
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
5208
5208
|
tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
5209
5209
|
tmp$ret$1 = Instance(tmp0_instance, tmp$ret$0, null);
|
|
5210
|
-
tmp_1.
|
|
5210
|
+
tmp_1.f7z_1 = tmp$ret$1.x2m(this, playerAnswerInteractor$factory());
|
|
5211
5211
|
}
|
|
5212
5212
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
5213
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
5213
|
+
return _get_playerAnswerInteractor__msggz1(this).i4i(playerId, table, botConfig);
|
|
5214
5214
|
};
|
|
5215
5215
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
5216
5216
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -5218,7 +5218,7 @@
|
|
|
5218
5218
|
var tmp$ret$0;
|
|
5219
5219
|
$l$block_0: {
|
|
5220
5220
|
// Inline function 'kotlin.collections.any' call
|
|
5221
|
-
var tmp0_any = mechanicAction.
|
|
5221
|
+
var tmp0_any = mechanicAction.z4o();
|
|
5222
5222
|
var tmp;
|
|
5223
5223
|
if (isInterface(tmp0_any, Collection)) {
|
|
5224
5224
|
tmp = tmp0_any.l();
|
|
@@ -5253,7 +5253,7 @@
|
|
|
5253
5253
|
var tmp$ret$0;
|
|
5254
5254
|
$l$block_0: {
|
|
5255
5255
|
// Inline function 'kotlin.collections.any' call
|
|
5256
|
-
var tmp0_any = action.
|
|
5256
|
+
var tmp0_any = action.z4o();
|
|
5257
5257
|
var tmp;
|
|
5258
5258
|
if (isInterface(tmp0_any, Collection)) {
|
|
5259
5259
|
tmp = tmp0_any.l();
|
|
@@ -5294,13 +5294,13 @@
|
|
|
5294
5294
|
}, null);
|
|
5295
5295
|
}
|
|
5296
5296
|
//region block: post-declaration
|
|
5297
|
-
protoOf(UpdateServerConfigAction).
|
|
5298
|
-
protoOf(RoomAction).
|
|
5299
|
-
protoOf(RoomWasCreatedAction).
|
|
5300
|
-
protoOf(RoomWasDeletedAction).
|
|
5297
|
+
protoOf(UpdateServerConfigAction).g2s = get_actionTag;
|
|
5298
|
+
protoOf(RoomAction).g2s = get_actionTag;
|
|
5299
|
+
protoOf(RoomWasCreatedAction).g2s = get_actionTag;
|
|
5300
|
+
protoOf(RoomWasDeletedAction).g2s = get_actionTag;
|
|
5301
5301
|
protoOf(RoomWasDeletedAction).notValidateWhenFinishing = notValidateWhenFinishing;
|
|
5302
5302
|
protoOf(PlayerReconnectionWaitingTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
5303
|
-
protoOf(PlayerReconnectionWaitingTimerTag).
|
|
5303
|
+
protoOf(PlayerReconnectionWaitingTimerTag).b4n = notValidateTimerReset;
|
|
5304
5304
|
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
5305
5305
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5306
5306
|
//endregion
|