client_plugin_logic_deb 1.4.95 → 1.5.0
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 +8 -8
- package/Kodein-kodein-di.js +609 -609
- package/KosiTypeSystem-kaverit.js +70 -70
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +82 -82
- package/Logic_Debertz-client_plugin.d.ts +3 -5
- package/Logic_Debertz-client_plugin.js +5718 -8938
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1382 -1382
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +10188 -10099
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +6925 -6925
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +539 -539
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +1307 -1321
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1955 -1939
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1399 -1399
- package/kotlinx-serialization-kotlinx-serialization-protobuf-js-ir.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-protobuf-js-ir.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +1917 -3399
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/uuid-js-ir.js +27 -27
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
'use strict';
|
|
32
32
|
//region block: imports
|
|
33
33
|
var imul = Math.imul;
|
|
34
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
34
|
+
var CoroutineImpl = kotlin_kotlin.$_$.y8;
|
|
35
35
|
var Unit_getInstance = kotlin_kotlin.$_$.r4;
|
|
36
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
37
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
+
var protoOf = kotlin_kotlin.$_$.la;
|
|
37
|
+
var THROW_CCE = kotlin_kotlin.$_$.dd;
|
|
38
38
|
var AppState = kotlin_com_gamewithcats_game_engine_engine.$_$.h7;
|
|
39
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
39
|
+
var classMeta = kotlin_kotlin.$_$.i9;
|
|
40
40
|
var VOID = kotlin_kotlin.$_$.he;
|
|
41
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
42
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
43
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
44
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
45
|
-
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
46
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
41
|
+
var setMetadataFor = kotlin_kotlin.$_$.ma;
|
|
42
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
43
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
44
|
+
var isInterface = kotlin_kotlin.$_$.z9;
|
|
45
|
+
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
46
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.k8;
|
|
47
47
|
var BaseGame = kotlin_com_gamewithcats_game_engine_engine.$_$.k7;
|
|
48
48
|
var emptyList = kotlin_kotlin.$_$.d6;
|
|
49
49
|
var GameLogger = kotlin_com_gamewithcats_game_engine_core.$_$.m3;
|
|
50
50
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
51
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
51
|
+
var arrayOf = kotlin_kotlin.$_$.rd;
|
|
52
52
|
var createKType = kotlin_kotlin.$_$.b;
|
|
53
53
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
54
54
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
var PlayerConnectionUpdateAction = kotlin_com_gamewithcats_game_engine_engine.$_$.m6;
|
|
60
60
|
var PlayerConnectionState_LIVE_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.h4;
|
|
61
61
|
var PlayerConnectionState_LEFT_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.g4;
|
|
62
|
-
var toList = kotlin_kotlin.$_$.
|
|
62
|
+
var toList = kotlin_kotlin.$_$.b8;
|
|
63
63
|
var getPlayer = kotlin_com_gamewithcats_game_engine_core.$_$.o;
|
|
64
64
|
var sortWithItem = kotlin_com_gamewithcats_game_engine_core.$_$.z3;
|
|
65
65
|
var ClearAction_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.z8;
|
|
@@ -67,17 +67,17 @@
|
|
|
67
67
|
var Reason_DEPLOY_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.x4;
|
|
68
68
|
var GameFinishedReason = kotlin_com_gamewithcats_game_engine_core.$_$.z1;
|
|
69
69
|
var GameErrorReason = kotlin_com_gamewithcats_game_engine_core.$_$.y1;
|
|
70
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
70
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ae;
|
|
71
71
|
var FinishingGameMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.n5;
|
|
72
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
73
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
74
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
72
|
+
var defineProp = kotlin_kotlin.$_$.k9;
|
|
73
|
+
var KProperty1 = kotlin_kotlin.$_$.ab;
|
|
74
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.o9;
|
|
75
75
|
var to = kotlin_kotlin.$_$.ge;
|
|
76
76
|
var mapOf = kotlin_kotlin.$_$.e7;
|
|
77
77
|
var Companion_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.b9;
|
|
78
|
-
var Long = kotlin_kotlin.$_$.
|
|
79
|
-
var toString = kotlin_kotlin.$_$.
|
|
80
|
-
var Enum = kotlin_kotlin.$_$.
|
|
78
|
+
var Long = kotlin_kotlin.$_$.xc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.qa;
|
|
80
|
+
var Enum = kotlin_kotlin.$_$.sc;
|
|
81
81
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
82
82
|
var StoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.q6;
|
|
83
83
|
var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
var MechanicLifecycleReducer = kotlin_com_gamewithcats_game_engine_engine.$_$.b7;
|
|
88
88
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
89
89
|
var GameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.l7;
|
|
90
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
90
|
+
var interfaceMeta = kotlin_kotlin.$_$.r9;
|
|
91
91
|
var listOf = kotlin_kotlin.$_$.a7;
|
|
92
92
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
93
93
|
var Collection = kotlin_kotlin.$_$.t4;
|
|
@@ -113,18 +113,18 @@
|
|
|
113
113
|
var System_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
114
114
|
var Companion_getInstance_1 = kotlin_kotlin.$_$.j4;
|
|
115
115
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.f;
|
|
116
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
116
|
+
var toDuration = kotlin_kotlin.$_$.kc;
|
|
117
117
|
var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.f4;
|
|
118
118
|
var PlayerConnectionState_DELETED_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.e4;
|
|
119
119
|
var MechanicException = kotlin_com_gamewithcats_game_engine_core.$_$.a;
|
|
120
120
|
var get_actionTag = kotlin_com_gamewithcats_game_engine_core.$_$.k2;
|
|
121
121
|
var Action = kotlin_com_gamewithcats_game_engine_core.$_$.l2;
|
|
122
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
123
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
124
|
-
var equals = kotlin_kotlin.$_$.
|
|
122
|
+
var getStringHashCode = kotlin_kotlin.$_$.p9;
|
|
123
|
+
var hashCode = kotlin_kotlin.$_$.q9;
|
|
124
|
+
var equals = kotlin_kotlin.$_$.l9;
|
|
125
125
|
var notValidateWhenFinishing = kotlin_com_gamewithcats_game_engine_core.$_$.v2;
|
|
126
126
|
var NotValidateIfGameFinishing = kotlin_com_gamewithcats_game_engine_core.$_$.w2;
|
|
127
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
127
|
+
var objectMeta = kotlin_kotlin.$_$.ka;
|
|
128
128
|
var CommonStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.o6;
|
|
129
129
|
var BotGameStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.n6;
|
|
130
130
|
var GameMechanicStoreContract = kotlin_com_gamewithcats_game_engine_engine.$_$.p6;
|
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
var GameLifecycleState_CREATED_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.d8;
|
|
192
192
|
var AppStatePayload = kotlin_com_gamewithcats_game_engine_engine.$_$.g7;
|
|
193
193
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
194
|
-
var isArray = kotlin_kotlin.$_$.
|
|
195
|
-
var arrayIterator = kotlin_kotlin.$_$.
|
|
194
|
+
var isArray = kotlin_kotlin.$_$.s9;
|
|
195
|
+
var arrayIterator = kotlin_kotlin.$_$.b9;
|
|
196
196
|
var values = kotlin_com_gamewithcats_game_engine_core.$_$.t;
|
|
197
197
|
var copyToArray = kotlin_kotlin.$_$.a6;
|
|
198
198
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
@@ -221,6 +221,7 @@
|
|
|
221
221
|
var valueOf = kotlin_com_gamewithcats_game_engine_core.$_$.s;
|
|
222
222
|
var Default_getInstance = kotlin_kotlin.$_$.g4;
|
|
223
223
|
var GameUserInfo = kotlin_com_gamewithcats_game_engine_core.$_$.b;
|
|
224
|
+
var DealerConfig = kotlin_com_gamewithcats_game_engine_engine.$_$.e3;
|
|
224
225
|
var Companion_getInstance_4 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
225
226
|
var CardsGeneratorProviderImpl = kotlin_com_gamewithcats_game_engine_engine.$_$.m3;
|
|
226
227
|
var CardsGeneratorProvider = kotlin_com_gamewithcats_game_engine_engine.$_$.n3;
|
|
@@ -230,8 +231,7 @@
|
|
|
230
231
|
var PlatformGameLogger = kotlin_com_gamewithcats_game_engine_core.$_$.o3;
|
|
231
232
|
var ParserHelperImpl = kotlin_com_gamewithcats_game_engine_engine.$_$.a;
|
|
232
233
|
var Logger_getInstance = kotlin_com_gamewithcats_game_engine_core.$_$.w5;
|
|
233
|
-
var
|
|
234
|
-
var toList_0 = kotlin_kotlin.$_$.z7;
|
|
234
|
+
var toList_0 = kotlin_kotlin.$_$.a8;
|
|
235
235
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
236
236
|
var get_botGameModule = kotlin_com_gamewithcats_game_engine_engine.$_$.o3;
|
|
237
237
|
var emptyMap = kotlin_kotlin.$_$.e6;
|
|
@@ -283,14 +283,14 @@
|
|
|
283
283
|
tmp = existingNicknames;
|
|
284
284
|
}
|
|
285
285
|
existingNicknames = tmp;
|
|
286
|
-
return this.
|
|
286
|
+
return this.v7r(playerId, existingNicknames);
|
|
287
287
|
}
|
|
288
288
|
setMetadataFor(GameResources, 'GameResources', interfaceMeta);
|
|
289
289
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
290
290
|
setMetadataFor(AvatarSet, 'AvatarSet', classMeta, Enum);
|
|
291
291
|
setMetadataFor(AvatarData, 'AvatarData', classMeta);
|
|
292
292
|
setMetadataFor(GameResourcesImpl, 'GameResourcesImpl', classMeta, VOID, [GameResources]);
|
|
293
|
-
function createGameEngineWithLogic(reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish,
|
|
293
|
+
function createGameEngineWithLogic(reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish, dealerConfig, $super) {
|
|
294
294
|
var tmp;
|
|
295
295
|
if (reducers === VOID) {
|
|
296
296
|
var tmp$ret$0;
|
|
@@ -312,10 +312,10 @@
|
|
|
312
312
|
}
|
|
313
313
|
middlewares = tmp_0;
|
|
314
314
|
isPrivateRoom = isPrivateRoom === VOID ? false : isPrivateRoom;
|
|
315
|
-
finishGameIfAllBots = finishGameIfAllBots === VOID ? (new ServerReduxConfig()).
|
|
316
|
-
closeIfBotsAtFinish = closeIfBotsAtFinish === VOID ? (new ServerReduxConfig()).
|
|
317
|
-
|
|
318
|
-
return this.
|
|
315
|
+
finishGameIfAllBots = finishGameIfAllBots === VOID ? (new ServerReduxConfig()).i7p_1 : finishGameIfAllBots;
|
|
316
|
+
closeIfBotsAtFinish = closeIfBotsAtFinish === VOID ? (new ServerReduxConfig()).l7p_1 : closeIfBotsAtFinish;
|
|
317
|
+
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
318
|
+
return this.k7s(reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish, dealerConfig);
|
|
319
319
|
}
|
|
320
320
|
setMetadataFor(GameEngineController, 'GameEngineController', interfaceMeta);
|
|
321
321
|
setMetadataFor(_no_name_provided__qut3iv_7, VOID, classMeta, VOID, [Reducer]);
|
|
@@ -324,17 +324,17 @@
|
|
|
324
324
|
setMetadataFor(TestHelperImpl, 'TestHelperImpl', classMeta, VOID, [TestHelper]);
|
|
325
325
|
//endregion
|
|
326
326
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
327
|
-
this.
|
|
327
|
+
this.m7o_1 = $subscriber;
|
|
328
328
|
CoroutineImpl.call(this, resultContinuation);
|
|
329
329
|
}
|
|
330
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
331
|
-
var tmp = this.
|
|
330
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).o4t = function (it, $completion) {
|
|
331
|
+
var tmp = this.p4t(it, $completion);
|
|
332
332
|
tmp.xh_1 = Unit_getInstance();
|
|
333
333
|
tmp.yh_1 = null;
|
|
334
334
|
return tmp.ei();
|
|
335
335
|
};
|
|
336
336
|
protoOf(GameServer$subscribeWith$slambda$slambda).qi = function (p1, $completion) {
|
|
337
|
-
return this.
|
|
337
|
+
return this.o4t(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
338
338
|
};
|
|
339
339
|
protoOf(GameServer$subscribeWith$slambda$slambda).ei = function () {
|
|
340
340
|
var suspendResult = this.xh_1;
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
var tmp = this.vh_1;
|
|
344
344
|
if (tmp === 0) {
|
|
345
345
|
this.wh_1 = 1;
|
|
346
|
-
this.
|
|
346
|
+
this.m7o_1(this.n7o_1);
|
|
347
347
|
return Unit_getInstance();
|
|
348
348
|
} else if (tmp === 1) {
|
|
349
349
|
throw this.yh_1;
|
|
@@ -354,15 +354,15 @@
|
|
|
354
354
|
}
|
|
355
355
|
while (true);
|
|
356
356
|
};
|
|
357
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
358
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
359
|
-
i.
|
|
357
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).p4t = function (it, completion) {
|
|
358
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.m7o_1, completion);
|
|
359
|
+
i.n7o_1 = it;
|
|
360
360
|
return i;
|
|
361
361
|
};
|
|
362
362
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
363
363
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
364
364
|
var l = function (it, $completion) {
|
|
365
|
-
return i.
|
|
365
|
+
return i.o4t(it, $completion);
|
|
366
366
|
};
|
|
367
367
|
l.$arity = 1;
|
|
368
368
|
return l;
|
|
@@ -371,29 +371,29 @@
|
|
|
371
371
|
var tmp$ret$0;
|
|
372
372
|
// Inline function 'kotlin.getValue' call
|
|
373
373
|
var tmp0_getValue = logger$factory_0();
|
|
374
|
-
tmp$ret$0 = $this.
|
|
374
|
+
tmp$ret$0 = $this.q7o_1.l1();
|
|
375
375
|
return tmp$ret$0;
|
|
376
376
|
}
|
|
377
377
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
378
|
-
this.
|
|
378
|
+
this.s7o_1 = function_0;
|
|
379
379
|
}
|
|
380
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
381
|
-
var tmp0 = this.
|
|
380
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).gy = function (value, $completion) {
|
|
381
|
+
var tmp0 = this.s7o_1(value, $completion);
|
|
382
382
|
return tmp0;
|
|
383
383
|
};
|
|
384
384
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
385
|
+
this.b7p_1 = this$0;
|
|
386
|
+
this.c7p_1 = $subscriber;
|
|
387
387
|
CoroutineImpl.call(this, resultContinuation);
|
|
388
388
|
}
|
|
389
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
390
|
-
var tmp = this.
|
|
389
|
+
protoOf(GameServer$subscribeWith$slambda).y13 = function ($this$launchWorker, $completion) {
|
|
390
|
+
var tmp = this.z13($this$launchWorker, $completion);
|
|
391
391
|
tmp.xh_1 = Unit_getInstance();
|
|
392
392
|
tmp.yh_1 = null;
|
|
393
393
|
return tmp.ei();
|
|
394
394
|
};
|
|
395
395
|
protoOf(GameServer$subscribeWith$slambda).qi = function (p1, $completion) {
|
|
396
|
-
return this.
|
|
396
|
+
return this.y13((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
397
397
|
};
|
|
398
398
|
protoOf(GameServer$subscribeWith$slambda).ei = function () {
|
|
399
399
|
var suspendResult = this.xh_1;
|
|
@@ -404,8 +404,8 @@
|
|
|
404
404
|
case 0:
|
|
405
405
|
this.wh_1 = 2;
|
|
406
406
|
this.vh_1 = 1;
|
|
407
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
408
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
407
|
+
var tmp_0 = distinctUntilChanged(this.b7p_1.r2w());
|
|
408
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.c7p_1, null);
|
|
409
409
|
suspendResult = tmp_0.ux(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
410
410
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
411
411
|
return suspendResult;
|
|
@@ -428,21 +428,21 @@
|
|
|
428
428
|
}
|
|
429
429
|
while (true);
|
|
430
430
|
};
|
|
431
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
432
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
433
|
-
i.
|
|
431
|
+
protoOf(GameServer$subscribeWith$slambda).z13 = function ($this$launchWorker, completion) {
|
|
432
|
+
var i = new GameServer$subscribeWith$slambda(this.b7p_1, this.c7p_1, completion);
|
|
433
|
+
i.d7p_1 = $this$launchWorker;
|
|
434
434
|
return i;
|
|
435
435
|
};
|
|
436
436
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
437
437
|
var i = new GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation);
|
|
438
438
|
var l = function ($this$launchWorker, $completion) {
|
|
439
|
-
return i.
|
|
439
|
+
return i.y13($this$launchWorker, $completion);
|
|
440
440
|
};
|
|
441
441
|
l.$arity = 1;
|
|
442
442
|
return l;
|
|
443
443
|
}
|
|
444
444
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
445
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_getInstance_5().
|
|
445
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_getInstance_5().e7p()) : preloadedState;
|
|
446
446
|
var tmp;
|
|
447
447
|
if (externalReducers === VOID) {
|
|
448
448
|
var tmp$ret$0;
|
|
@@ -476,77 +476,77 @@
|
|
|
476
476
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
477
477
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
478
478
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
479
|
-
tmp_1.
|
|
479
|
+
tmp_1.q7o_1 = tmp$ret$3.j2g(this, logger$factory());
|
|
480
480
|
var tmp_3 = this;
|
|
481
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
482
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
483
|
-
tmp_3.
|
|
481
|
+
var tmp0_externalMiddlewares = plus(storeContract.m4j(), externalMiddlewares);
|
|
482
|
+
var tmp1_externalReducers = plus(storeContract.l4j(), externalReducers);
|
|
483
|
+
tmp_3.r7o_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
484
484
|
}
|
|
485
|
-
protoOf(GameServer).
|
|
486
|
-
return this.
|
|
485
|
+
protoOf(GameServer).b2w = function () {
|
|
486
|
+
return this.r7o_1;
|
|
487
487
|
};
|
|
488
|
-
protoOf(GameServer).
|
|
489
|
-
return this.zj().
|
|
488
|
+
protoOf(GameServer).v2x = function () {
|
|
489
|
+
return this.zj().w2x().id;
|
|
490
490
|
};
|
|
491
|
-
protoOf(GameServer).
|
|
492
|
-
return this.zj().
|
|
491
|
+
protoOf(GameServer).w2x = function () {
|
|
492
|
+
return this.zj().w2x();
|
|
493
493
|
};
|
|
494
|
-
protoOf(GameServer).
|
|
495
|
-
return this.zj().
|
|
494
|
+
protoOf(GameServer).x2x = function () {
|
|
495
|
+
return this.zj().x2x();
|
|
496
496
|
};
|
|
497
|
-
protoOf(GameServer).
|
|
498
|
-
return this.zj().
|
|
497
|
+
protoOf(GameServer).y2x = function () {
|
|
498
|
+
return this.zj().u2w_1;
|
|
499
499
|
};
|
|
500
500
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
501
|
-
var tmp = this.
|
|
502
|
-
tmp.
|
|
501
|
+
var tmp = this.z2v();
|
|
502
|
+
tmp.g2p(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
503
503
|
};
|
|
504
504
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
505
505
|
_get_logger__rkp4sl(this).d(VOID, 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
506
|
-
this.
|
|
506
|
+
this.r7o_1.y2q().dispatch(action);
|
|
507
507
|
};
|
|
508
508
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
509
509
|
_get_logger__rkp4sl(this).d(VOID, 'playerLostConnection: ' + playerId);
|
|
510
|
-
var tmp = this.
|
|
510
|
+
var tmp = this.r7o_1.y2q().dispatch;
|
|
511
511
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
512
512
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
513
513
|
};
|
|
514
514
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
515
515
|
_get_logger__rkp4sl(this).d(VOID, 'playerLive: ' + playerId);
|
|
516
|
-
var tmp = this.
|
|
516
|
+
var tmp = this.r7o_1.y2q().dispatch;
|
|
517
517
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
518
518
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
519
519
|
};
|
|
520
520
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
521
521
|
_get_logger__rkp4sl(this).d(VOID, 'playerLeft: ' + playerId);
|
|
522
|
-
var tmp = this.
|
|
522
|
+
var tmp = this.r7o_1.y2q().dispatch;
|
|
523
523
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
524
524
|
tmp(new PlayerConnectionUpdateAction(tmp0_connectionState, playerId));
|
|
525
525
|
};
|
|
526
526
|
protoOf(GameServer).roomOnCreate = function (roomId, gameCreatorId, config, users) {
|
|
527
527
|
var usersList = toList(users);
|
|
528
528
|
var gameCreatorUser = getPlayer(usersList, gameCreatorId);
|
|
529
|
-
this.
|
|
529
|
+
this.r7o_1.y2q().dispatch(new RoomWasCreatedAction(roomId, gameCreatorId, config, sortWithItem(usersList, gameCreatorUser)));
|
|
530
530
|
};
|
|
531
531
|
protoOf(GameServer).roomOnDelete = function () {
|
|
532
|
-
this.
|
|
532
|
+
this.r7o_1.y2q().dispatch(RoomWasDeletedAction_getInstance());
|
|
533
533
|
};
|
|
534
534
|
protoOf(GameServer).clear = function () {
|
|
535
|
-
protoOf(BaseGame).
|
|
535
|
+
protoOf(BaseGame).x2.call(this);
|
|
536
536
|
};
|
|
537
|
-
protoOf(GameServer).
|
|
537
|
+
protoOf(GameServer).x2 = function () {
|
|
538
538
|
return this.clear();
|
|
539
539
|
};
|
|
540
540
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
541
|
-
this.
|
|
541
|
+
this.r7o_1.y2q().dispatch(new UpdateServerConfigAction(get_serverState(this.r7o_1.y2q().state).f7p_1.h7p(enabled)));
|
|
542
542
|
};
|
|
543
543
|
protoOf(GameServer).shutdown = function (reason) {
|
|
544
|
-
if (this.
|
|
544
|
+
if (this.r7o_1.y2q().state.x2x()) {
|
|
545
545
|
var tmp0_elvis_lhs = toDomainEnumSafe(reason, get_serverShutdownReasonMapping());
|
|
546
546
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
547
|
-
var tmp = this.
|
|
547
|
+
var tmp = this.r7o_1.y2q().dispatch;
|
|
548
548
|
var tmp1_subject = shutdownReason;
|
|
549
|
-
var tmp0 = tmp1_subject.
|
|
549
|
+
var tmp0 = tmp1_subject.q5_1;
|
|
550
550
|
var tmp_0;
|
|
551
551
|
switch (tmp0) {
|
|
552
552
|
case 0:
|
|
@@ -562,20 +562,20 @@
|
|
|
562
562
|
tmp(new FinishingGameMechanicAction(tmp_0));
|
|
563
563
|
} else {
|
|
564
564
|
_get_logger__rkp4sl(this).w(VOID, "GameServer: can't shutdown engine without table");
|
|
565
|
-
this.
|
|
565
|
+
this.r7o_1.y2q().dispatch(ClearAction_getInstance());
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
569
|
-
return this.
|
|
569
|
+
return this.v2x();
|
|
570
570
|
});
|
|
571
571
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
572
|
-
return this.
|
|
572
|
+
return this.w2x();
|
|
573
573
|
});
|
|
574
574
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
575
|
-
return this.
|
|
575
|
+
return this.x2x();
|
|
576
576
|
});
|
|
577
577
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
578
|
-
return this.
|
|
578
|
+
return this.y2x();
|
|
579
579
|
});
|
|
580
580
|
function logger$factory() {
|
|
581
581
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
@@ -621,23 +621,23 @@
|
|
|
621
621
|
tmp_0 = delayToAskBotMillis;
|
|
622
622
|
}
|
|
623
623
|
delayToAskBotMillis = tmp_0;
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
624
|
+
this.i7p_1 = finishGameIfAllBots;
|
|
625
|
+
this.j7p_1 = waitForPlayerToReconnect;
|
|
626
|
+
this.k7p_1 = waitForPlayerToReconnectTimeOutMillis;
|
|
627
|
+
this.l7p_1 = closeIfBotsAtFinish;
|
|
628
|
+
this.m7p_1 = botReplacesPlayerAfterTimeout;
|
|
629
|
+
this.n7p_1 = delayToAskBotMillis;
|
|
630
630
|
}
|
|
631
631
|
protoOf(ServerReduxConfig).toString = function () {
|
|
632
|
-
return 'ServerReduxConfig(finishGameIfAllBots=' + this.
|
|
632
|
+
return 'ServerReduxConfig(finishGameIfAllBots=' + this.i7p_1 + ', waitForPlayerToReconnect=' + this.j7p_1 + ', waitForPlayerToReconnectTimeOutMillis=' + toString(this.k7p_1) + ', closeIfBotsAtFinish=' + this.l7p_1 + ', botReplacesPlayerAfterTimeout=' + this.m7p_1 + ', delayToAskBotMillis=' + toString(this.n7p_1) + ')';
|
|
633
633
|
};
|
|
634
634
|
protoOf(ServerReduxConfig).hashCode = function () {
|
|
635
|
-
var result = this.
|
|
636
|
-
result = imul(result, 31) + (this.
|
|
637
|
-
result = imul(result, 31) + this.
|
|
638
|
-
result = imul(result, 31) + (this.
|
|
639
|
-
result = imul(result, 31) + (this.
|
|
640
|
-
result = imul(result, 31) + this.
|
|
635
|
+
var result = this.i7p_1 | 0;
|
|
636
|
+
result = imul(result, 31) + (this.j7p_1 | 0) | 0;
|
|
637
|
+
result = imul(result, 31) + this.k7p_1.hashCode() | 0;
|
|
638
|
+
result = imul(result, 31) + (this.l7p_1 | 0) | 0;
|
|
639
|
+
result = imul(result, 31) + (this.m7p_1 | 0) | 0;
|
|
640
|
+
result = imul(result, 31) + this.n7p_1.hashCode() | 0;
|
|
641
641
|
return result;
|
|
642
642
|
};
|
|
643
643
|
protoOf(ServerReduxConfig).equals = function (other) {
|
|
@@ -646,17 +646,17 @@
|
|
|
646
646
|
if (!(other instanceof ServerReduxConfig))
|
|
647
647
|
return false;
|
|
648
648
|
var tmp0_other_with_cast = other instanceof ServerReduxConfig ? other : THROW_CCE();
|
|
649
|
-
if (!(this.
|
|
649
|
+
if (!(this.i7p_1 === tmp0_other_with_cast.i7p_1))
|
|
650
650
|
return false;
|
|
651
|
-
if (!(this.
|
|
651
|
+
if (!(this.j7p_1 === tmp0_other_with_cast.j7p_1))
|
|
652
652
|
return false;
|
|
653
|
-
if (!this.
|
|
653
|
+
if (!this.k7p_1.equals(tmp0_other_with_cast.k7p_1))
|
|
654
654
|
return false;
|
|
655
|
-
if (!(this.
|
|
655
|
+
if (!(this.l7p_1 === tmp0_other_with_cast.l7p_1))
|
|
656
656
|
return false;
|
|
657
|
-
if (!(this.
|
|
657
|
+
if (!(this.m7p_1 === tmp0_other_with_cast.m7p_1))
|
|
658
658
|
return false;
|
|
659
|
-
if (!this.
|
|
659
|
+
if (!this.n7p_1.equals(tmp0_other_with_cast.n7p_1))
|
|
660
660
|
return false;
|
|
661
661
|
return true;
|
|
662
662
|
};
|
|
@@ -688,16 +688,16 @@
|
|
|
688
688
|
return tmp instanceof ServerUserPayload ? tmp : THROW_CCE();
|
|
689
689
|
}
|
|
690
690
|
function ServerConfig(canStartNewGame) {
|
|
691
|
-
this.
|
|
691
|
+
this.g7p_1 = canStartNewGame;
|
|
692
692
|
}
|
|
693
|
-
protoOf(ServerConfig).
|
|
693
|
+
protoOf(ServerConfig).h7p = function (canStartNewGame) {
|
|
694
694
|
return new ServerConfig(canStartNewGame);
|
|
695
695
|
};
|
|
696
696
|
protoOf(ServerConfig).toString = function () {
|
|
697
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
697
|
+
return 'ServerConfig(canStartNewGame=' + this.g7p_1 + ')';
|
|
698
698
|
};
|
|
699
699
|
protoOf(ServerConfig).hashCode = function () {
|
|
700
|
-
return this.
|
|
700
|
+
return this.g7p_1 | 0;
|
|
701
701
|
};
|
|
702
702
|
protoOf(ServerConfig).equals = function (other) {
|
|
703
703
|
if (this === other)
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
if (!(other instanceof ServerConfig))
|
|
706
706
|
return false;
|
|
707
707
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
708
|
-
if (!(this.
|
|
708
|
+
if (!(this.g7p_1 === tmp0_other_with_cast.g7p_1))
|
|
709
709
|
return false;
|
|
710
710
|
return true;
|
|
711
711
|
};
|
|
@@ -723,19 +723,19 @@
|
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
725
|
function createGameServerDI$lambda$lambda_0($this$singleton) {
|
|
726
|
-
return new ServerGameStoreContract($this$singleton.
|
|
726
|
+
return new ServerGameStoreContract($this$singleton.z2a());
|
|
727
727
|
}
|
|
728
728
|
function createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares) {
|
|
729
729
|
return function ($this$singleton) {
|
|
730
|
-
var tmp = $this$singleton.
|
|
730
|
+
var tmp = $this$singleton.z2a();
|
|
731
731
|
var tmp$ret$1;
|
|
732
732
|
// Inline function 'org.kodein.di.instance' call
|
|
733
|
-
var tmp_0 = $this$singleton.
|
|
733
|
+
var tmp_0 = $this$singleton.b2c();
|
|
734
734
|
var tmp$ret$0;
|
|
735
735
|
// Inline function 'org.kodein.type.generic' call
|
|
736
736
|
var tmp_1 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
737
737
|
tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
738
|
-
tmp$ret$1 = tmp_0.
|
|
738
|
+
tmp$ret$1 = tmp_0.c2c(tmp$ret$0, null);
|
|
739
739
|
return new GameServer(tmp, 'Game server', tmp$ret$1, VOID, $externalReducers, $externalMiddlewares);
|
|
740
740
|
};
|
|
741
741
|
}
|
|
@@ -747,159 +747,159 @@
|
|
|
747
747
|
// Inline function 'org.kodein.type.generic' call
|
|
748
748
|
var tmp = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
749
749
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
750
|
-
tmp$ret$1 = $this$$receiver.
|
|
750
|
+
tmp$ret$1 = $this$$receiver.s2a(tmp$ret$0, null, null);
|
|
751
751
|
var tmp_0 = tmp$ret$1;
|
|
752
752
|
var tmp$ret$3;
|
|
753
753
|
// Inline function 'org.kodein.di.singleton' call
|
|
754
754
|
var tmp0_singleton = createGameServerDI$lambda$lambda($serverConfig);
|
|
755
|
-
var tmp_1 = $this$$receiver.
|
|
756
|
-
var tmp_2 = $this$$receiver.
|
|
757
|
-
var tmp_3 = $this$$receiver.
|
|
755
|
+
var tmp_1 = $this$$receiver.i2c();
|
|
756
|
+
var tmp_2 = $this$$receiver.j2c();
|
|
757
|
+
var tmp_3 = $this$$receiver.h2e();
|
|
758
758
|
var tmp$ret$2;
|
|
759
759
|
// Inline function 'org.kodein.type.generic' call
|
|
760
760
|
var tmp_4 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
761
761
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
762
762
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
763
|
-
tmp_0.
|
|
764
|
-
$this$$receiver.
|
|
763
|
+
tmp_0.m2e(tmp$ret$3);
|
|
764
|
+
$this$$receiver.u2a(getServerEngineGameDI($botConfig, $logicConfig));
|
|
765
765
|
var tmp$ret$5;
|
|
766
766
|
// Inline function 'org.kodein.di.bind' call
|
|
767
767
|
var tmp$ret$4;
|
|
768
768
|
// Inline function 'org.kodein.type.generic' call
|
|
769
769
|
var tmp_5 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
770
770
|
tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
771
|
-
tmp$ret$5 = $this$$receiver.
|
|
771
|
+
tmp$ret$5 = $this$$receiver.s2a(tmp$ret$4, null, null);
|
|
772
772
|
var tmp_6 = tmp$ret$5;
|
|
773
773
|
var tmp$ret$7;
|
|
774
774
|
// Inline function 'org.kodein.di.singleton' call
|
|
775
775
|
var tmp1_singleton = createGameServerDI$lambda$lambda_0;
|
|
776
|
-
var tmp_7 = $this$$receiver.
|
|
777
|
-
var tmp_8 = $this$$receiver.
|
|
778
|
-
var tmp_9 = $this$$receiver.
|
|
776
|
+
var tmp_7 = $this$$receiver.i2c();
|
|
777
|
+
var tmp_8 = $this$$receiver.j2c();
|
|
778
|
+
var tmp_9 = $this$$receiver.h2e();
|
|
779
779
|
var tmp$ret$6;
|
|
780
780
|
// Inline function 'org.kodein.type.generic' call
|
|
781
781
|
var tmp_10 = typeToken(createKType(getKClass(ServerGameStoreContract), arrayOf([]), false));
|
|
782
782
|
tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
783
783
|
tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, tmp1_singleton);
|
|
784
|
-
tmp_6.
|
|
784
|
+
tmp_6.m2e(tmp$ret$7);
|
|
785
785
|
var tmp$ret$9;
|
|
786
786
|
// Inline function 'org.kodein.di.bind' call
|
|
787
787
|
var tmp$ret$8;
|
|
788
788
|
// Inline function 'org.kodein.type.generic' call
|
|
789
789
|
var tmp_11 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
790
790
|
tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
791
|
-
tmp$ret$9 = $this$$receiver.
|
|
791
|
+
tmp$ret$9 = $this$$receiver.s2a(tmp$ret$8, null, null);
|
|
792
792
|
var tmp_12 = tmp$ret$9;
|
|
793
793
|
var tmp$ret$11;
|
|
794
794
|
// Inline function 'org.kodein.di.singleton' call
|
|
795
795
|
var tmp2_singleton = createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares);
|
|
796
|
-
var tmp_13 = $this$$receiver.
|
|
797
|
-
var tmp_14 = $this$$receiver.
|
|
798
|
-
var tmp_15 = $this$$receiver.
|
|
796
|
+
var tmp_13 = $this$$receiver.i2c();
|
|
797
|
+
var tmp_14 = $this$$receiver.j2c();
|
|
798
|
+
var tmp_15 = $this$$receiver.h2e();
|
|
799
799
|
var tmp$ret$10;
|
|
800
800
|
// Inline function 'org.kodein.type.generic' call
|
|
801
801
|
var tmp_16 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
802
802
|
tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
803
803
|
tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, tmp2_singleton);
|
|
804
|
-
tmp_12.
|
|
804
|
+
tmp_12.m2e(tmp$ret$11);
|
|
805
805
|
return Unit_getInstance();
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
808
|
function getServerEngineGameDI$lambda$lambda($this$provider) {
|
|
809
809
|
var tmp$ret$1;
|
|
810
810
|
// Inline function 'org.kodein.di.instance' call
|
|
811
|
-
var tmp = $this$provider.
|
|
811
|
+
var tmp = $this$provider.b2c();
|
|
812
812
|
var tmp$ret$0;
|
|
813
813
|
// Inline function 'org.kodein.type.generic' call
|
|
814
814
|
var tmp_0 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
815
815
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
816
|
-
tmp$ret$1 = tmp.
|
|
816
|
+
tmp$ret$1 = tmp.c2c(tmp$ret$0, null);
|
|
817
817
|
var tmp_1 = tmp$ret$1;
|
|
818
818
|
var tmp$ret$3;
|
|
819
819
|
// Inline function 'org.kodein.di.instance' call
|
|
820
|
-
var tmp_2 = $this$provider.
|
|
820
|
+
var tmp_2 = $this$provider.b2c();
|
|
821
821
|
var tmp$ret$2;
|
|
822
822
|
// Inline function 'org.kodein.type.generic' call
|
|
823
823
|
var tmp_3 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
824
824
|
tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
825
|
-
tmp$ret$3 = tmp_2.
|
|
825
|
+
tmp$ret$3 = tmp_2.c2c(tmp$ret$2, null);
|
|
826
826
|
return new ServerMechanicLifecycleReducer(tmp_1, tmp$ret$3);
|
|
827
827
|
}
|
|
828
828
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
829
829
|
var tmp$ret$1;
|
|
830
830
|
// Inline function 'org.kodein.di.instance' call
|
|
831
|
-
var tmp = $this$provider.
|
|
831
|
+
var tmp = $this$provider.b2c();
|
|
832
832
|
var tmp$ret$0;
|
|
833
833
|
// Inline function 'org.kodein.type.generic' call
|
|
834
834
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
835
835
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
836
|
-
tmp$ret$1 = tmp.
|
|
836
|
+
tmp$ret$1 = tmp.c2c(tmp$ret$0, null);
|
|
837
837
|
var tmp_1 = tmp$ret$1;
|
|
838
838
|
var tmp$ret$3;
|
|
839
839
|
// Inline function 'org.kodein.di.instance' call
|
|
840
|
-
var tmp_2 = $this$provider.
|
|
840
|
+
var tmp_2 = $this$provider.b2c();
|
|
841
841
|
var tmp$ret$2;
|
|
842
842
|
// Inline function 'org.kodein.type.generic' call
|
|
843
843
|
var tmp_3 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
844
844
|
tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
845
|
-
tmp$ret$3 = tmp_2.
|
|
845
|
+
tmp$ret$3 = tmp_2.c2c(tmp$ret$2, null);
|
|
846
846
|
return new ReconnectionInteractor(tmp_1, tmp$ret$3);
|
|
847
847
|
}
|
|
848
848
|
function getServerEngineGameDI$lambda($botReduxConfig, $logicReduxConfig) {
|
|
849
849
|
return function ($this$$receiver) {
|
|
850
|
-
$this$$receiver.
|
|
851
|
-
$this$$receiver.
|
|
850
|
+
$this$$receiver.u2a(jsonModule(emptyList()));
|
|
851
|
+
$this$$receiver.u2a(getEngineGameModule($botReduxConfig, $logicReduxConfig));
|
|
852
852
|
var tmp$ret$1;
|
|
853
853
|
// Inline function 'org.kodein.di.bind' call
|
|
854
854
|
var tmp$ret$0;
|
|
855
855
|
// Inline function 'org.kodein.type.generic' call
|
|
856
856
|
var tmp = typeToken(createKType(getKClass(MechanicLifecycleReducer), arrayOf([]), false));
|
|
857
857
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
858
|
-
tmp$ret$1 = $this$$receiver.
|
|
858
|
+
tmp$ret$1 = $this$$receiver.s2a(tmp$ret$0, null, null);
|
|
859
859
|
var tmp_0 = tmp$ret$1;
|
|
860
860
|
var tmp$ret$3;
|
|
861
861
|
// Inline function 'org.kodein.di.provider' call
|
|
862
862
|
var tmp0_provider = getServerEngineGameDI$lambda$lambda;
|
|
863
|
-
var tmp_1 = $this$$receiver.
|
|
863
|
+
var tmp_1 = $this$$receiver.j2c();
|
|
864
864
|
var tmp$ret$2;
|
|
865
865
|
// Inline function 'org.kodein.type.generic' call
|
|
866
866
|
var tmp_2 = typeToken(createKType(getKClass(ServerMechanicLifecycleReducer), arrayOf([]), false));
|
|
867
867
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
868
868
|
tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, tmp0_provider);
|
|
869
|
-
tmp_0.
|
|
869
|
+
tmp_0.m2e(tmp$ret$3);
|
|
870
870
|
var tmp$ret$5;
|
|
871
871
|
// Inline function 'org.kodein.di.bind' call
|
|
872
872
|
var tmp$ret$4;
|
|
873
873
|
// Inline function 'org.kodein.type.generic' call
|
|
874
874
|
var tmp_3 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
875
875
|
tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
876
|
-
tmp$ret$5 = $this$$receiver.
|
|
876
|
+
tmp$ret$5 = $this$$receiver.s2a(tmp$ret$4, null, null);
|
|
877
877
|
var tmp_4 = tmp$ret$5;
|
|
878
878
|
var tmp$ret$7;
|
|
879
879
|
// Inline function 'org.kodein.di.provider' call
|
|
880
880
|
var tmp1_provider = getServerEngineGameDI$lambda$lambda_0;
|
|
881
|
-
var tmp_5 = $this$$receiver.
|
|
881
|
+
var tmp_5 = $this$$receiver.j2c();
|
|
882
882
|
var tmp$ret$6;
|
|
883
883
|
// Inline function 'org.kodein.type.generic' call
|
|
884
884
|
var tmp_6 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
885
885
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
886
886
|
tmp$ret$7 = new Provider(tmp_5, tmp$ret$6, tmp1_provider);
|
|
887
|
-
tmp_4.
|
|
887
|
+
tmp_4.m2e(tmp$ret$7);
|
|
888
888
|
return Unit_getInstance();
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
891
|
function ServerGameEngineContract() {
|
|
892
892
|
}
|
|
893
893
|
function waitPlayerOrDisconnect($this, connectionState, table, player, waitForPlayer, sendFinishToClientActions) {
|
|
894
|
-
if ($this.
|
|
894
|
+
if ($this.o7p_1.j7p_1 ? waitForPlayer : false) {
|
|
895
895
|
var tmp0_roomId = table.id;
|
|
896
896
|
var tmp1_players = table.playersConnections;
|
|
897
897
|
return getWaitingPlayerActions($this, tmp0_roomId, connectionState, player, tmp1_players, sendFinishToClientActions);
|
|
898
898
|
}
|
|
899
|
-
var isLivePlayersExists_0 = isLivePlayersExists($this, player.
|
|
900
|
-
var canRemoveGameWhenNoPlayers = $this.
|
|
899
|
+
var isLivePlayersExists_0 = isLivePlayersExists($this, player.y2h(), table.players);
|
|
900
|
+
var canRemoveGameWhenNoPlayers = $this.o7p_1.i7p_1 ? !isLivePlayersExists_0 : false;
|
|
901
901
|
var tmp;
|
|
902
|
-
if (canRemoveGameWhenNoPlayers ? true : !$this.
|
|
902
|
+
if (canRemoveGameWhenNoPlayers ? true : !$this.o7p_1.m7p_1) {
|
|
903
903
|
tmp = listOf(getFinishingAction($this, connectionState, player, table.playersConnections));
|
|
904
904
|
} else {
|
|
905
905
|
tmp = getPlayerDisconnectedActions($this, connectionState, table.id, player, table.playersConnections, sendFinishToClientActions);
|
|
@@ -924,7 +924,7 @@
|
|
|
924
924
|
var element = tmp0_iterator.h();
|
|
925
925
|
var tmp$ret$0;
|
|
926
926
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
927
|
-
tmp$ret$0 = element.
|
|
927
|
+
tmp$ret$0 = element.y2h() === exceptPlayerId;
|
|
928
928
|
if (!tmp$ret$0) {
|
|
929
929
|
tmp0_filterNotTo.a(element);
|
|
930
930
|
}
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
var element_0 = tmp0_iterator_0.h();
|
|
948
948
|
var tmp$ret$4;
|
|
949
949
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
950
|
-
tmp$ret$4 = element_0.
|
|
950
|
+
tmp$ret$4 = element_0.p31_1.d2j_1.isLive;
|
|
951
951
|
if (tmp$ret$4) {
|
|
952
952
|
tmp$ret$3 = true;
|
|
953
953
|
break $l$block_0;
|
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
tmp$ret$3 = false;
|
|
957
957
|
}
|
|
958
958
|
var isLivePlayersExists = tmp$ret$3;
|
|
959
|
-
var tmp_0 = 'finishGameIfAllBots: ' + $this.
|
|
959
|
+
var tmp_0 = 'finishGameIfAllBots: ' + $this.o7p_1.i7p_1 + ', ';
|
|
960
960
|
var tmp$ret$7;
|
|
961
961
|
// Inline function 'kotlin.collections.map' call
|
|
962
962
|
var tmp$ret$6;
|
|
@@ -967,12 +967,12 @@
|
|
|
967
967
|
var item = tmp0_iterator_1.h();
|
|
968
968
|
var tmp$ret$5;
|
|
969
969
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
970
|
-
tmp$ret$5 = to(item.
|
|
970
|
+
tmp$ret$5 = to(item.y2h(), item.p31_1.d2j_1.p5_1);
|
|
971
971
|
tmp2_mapTo.a(tmp$ret$5);
|
|
972
972
|
}
|
|
973
973
|
tmp$ret$6 = tmp2_mapTo;
|
|
974
974
|
tmp$ret$7 = tmp$ret$6;
|
|
975
|
-
$this.
|
|
975
|
+
$this.p7p_1.d('ReconnectionInteractor', tmp_0 + ('isLivePlayersExists: ' + isLivePlayersExists + ', ' + tmp$ret$7));
|
|
976
976
|
return isLivePlayersExists;
|
|
977
977
|
}
|
|
978
978
|
function getPlayerConnectedActions($this, player, table) {
|
|
@@ -981,8 +981,8 @@
|
|
|
981
981
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
982
982
|
var actionsList = tmp$ret$0;
|
|
983
983
|
actionsList.j(listOf(getContinueAction($this, player, table)));
|
|
984
|
-
if (player.
|
|
985
|
-
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.
|
|
984
|
+
if (player.p31_1.f2j()) {
|
|
985
|
+
actionsList.j(listOf_0([new StopTimerAction(new PlayerTurnTimerTag(player.y2h(), player.p31_1.r2j())), new StartTimerAction(new PlayerTurnTimerTag(player.y2h(), player.p31_1.r2j(), true), getContinuePlayerTurnTimerDelayMillis(player, $this.p7p_1), VOID, TimerType_DELAY_getInstance())]));
|
|
986
986
|
}
|
|
987
987
|
return actionsList;
|
|
988
988
|
}
|
|
@@ -994,22 +994,22 @@
|
|
|
994
994
|
if (finishToClientActions) {
|
|
995
995
|
actionsList.j(getFinishToClientActions($this, player, roomId, mapToFinishReason(connectionState, player, players)));
|
|
996
996
|
}
|
|
997
|
-
actionsList.a(new PlayerConnectionChangedMechanicAction(player.
|
|
998
|
-
if (player.
|
|
999
|
-
actionsList.a(new AskBotAction(player.
|
|
997
|
+
actionsList.a(new PlayerConnectionChangedMechanicAction(player.y2h(), connectionState));
|
|
998
|
+
if (player.p31_1.f2j()) {
|
|
999
|
+
actionsList.a(new AskBotAction(player.y2h(), 'PlayerTurn when connection changed'));
|
|
1000
1000
|
}
|
|
1001
1001
|
return actionsList;
|
|
1002
1002
|
}
|
|
1003
1003
|
function getFinishToClientActions($this, sendToPlayer, roomId, reason) {
|
|
1004
|
-
if (!sendToPlayer.
|
|
1004
|
+
if (!sendToPlayer.p31_1.d2j_1.isLive) {
|
|
1005
1005
|
return emptyList();
|
|
1006
1006
|
}
|
|
1007
|
-
return listOf_0([new FinishingGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.
|
|
1007
|
+
return listOf_0([new FinishingGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.y2h()), reason), new FinishGameToClientAction(Companion_getInstance_0().user(roomId, sendToPlayer.y2h()), reason)]);
|
|
1008
1008
|
}
|
|
1009
1009
|
function getContinueAction($this, sendToPlayer, table) {
|
|
1010
|
-
var tmp = Companion_getInstance_0().user(table.id, sendToPlayer.
|
|
1011
|
-
var tmp0_playerId = sendToPlayer.
|
|
1012
|
-
var tmp1_gameCreatorPlayerId = getGameCreator(table.players).
|
|
1010
|
+
var tmp = Companion_getInstance_0().user(table.id, sendToPlayer.y2h());
|
|
1011
|
+
var tmp0_playerId = sendToPlayer.y2h();
|
|
1012
|
+
var tmp1_gameCreatorPlayerId = getGameCreator(table.players).y2h();
|
|
1013
1013
|
var tmp2_roomId = table.id;
|
|
1014
1014
|
var tmp$ret$2;
|
|
1015
1015
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1022,13 +1022,13 @@
|
|
|
1022
1022
|
var item = tmp0_iterator.h();
|
|
1023
1023
|
var tmp$ret$0;
|
|
1024
1024
|
// Inline function 'com.debertz.logic.server.domain.reconnection.ReconnectionInteractor.getContinueAction.<anonymous>' call
|
|
1025
|
-
tmp$ret$0 = item.
|
|
1025
|
+
tmp$ret$0 = item.y2h();
|
|
1026
1026
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1027
1027
|
}
|
|
1028
1028
|
tmp$ret$1 = tmp0_mapTo;
|
|
1029
1029
|
tmp$ret$2 = tmp$ret$1;
|
|
1030
1030
|
var tmp3_playersIds = tmp$ret$2;
|
|
1031
|
-
return new ContinueGameToClientAction(tmp, mapToClient(table, UserActionPayload_init_$Create$(tmp2_roomId, tmp1_gameCreatorPlayerId, tmp0_playerId, tmp3_playersIds)), new PlayerReturnsReason(sendToPlayer.
|
|
1031
|
+
return new ContinueGameToClientAction(tmp, mapToClient(table, UserActionPayload_init_$Create$(tmp2_roomId, tmp1_gameCreatorPlayerId, tmp0_playerId, tmp3_playersIds)), new PlayerReturnsReason(sendToPlayer.y2h()), null);
|
|
1032
1032
|
}
|
|
1033
1033
|
function getFinishingAction($this, state, player, players) {
|
|
1034
1034
|
return new FinishingGameMechanicAction(mapToFinishReason(state, player, players));
|
|
@@ -1041,33 +1041,33 @@
|
|
|
1041
1041
|
if (finishToClientActions) {
|
|
1042
1042
|
actionsList.j(getFinishToClientActions($this, player, roomId, mapToFinishReason(connectionState, player, players)));
|
|
1043
1043
|
}
|
|
1044
|
-
var tmp = System_getInstance().
|
|
1044
|
+
var tmp = System_getInstance().l2g();
|
|
1045
1045
|
var tmp$ret$1;
|
|
1046
1046
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
1047
1047
|
var tmp0__get_milliseconds__kazo1t = Companion_getInstance_1();
|
|
1048
|
-
var tmp1__get_milliseconds__r2e6ua = $this.
|
|
1048
|
+
var tmp1__get_milliseconds__r2e6ua = $this.o7p_1.k7p_1;
|
|
1049
1049
|
tmp$ret$1 = toDuration(tmp1__get_milliseconds__r2e6ua, DurationUnit_MILLISECONDS_getInstance());
|
|
1050
|
-
var reconnectUntilTime = tmp.
|
|
1051
|
-
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.
|
|
1050
|
+
var reconnectUntilTime = tmp.z2g(tmp$ret$1);
|
|
1051
|
+
actionsList.j(listOf_0([new PlayerConnectionChangedMechanicAction(player.y2h(), PlayerConnectionState_DISCONNECTING_getInstance(), false, reconnectUntilTime.toString()), new StartTimerAction(new PlayerReconnectionWaitingTimerTag(player.y2h(), connectionState), $this.o7p_1.k7p_1, VOID, TimerType_DELAY_getInstance())]));
|
|
1052
1052
|
return actionsList;
|
|
1053
1053
|
}
|
|
1054
1054
|
function ReconnectionInteractor(serverConfig, logger) {
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1055
|
+
this.o7p_1 = serverConfig;
|
|
1056
|
+
this.p7p_1 = logger;
|
|
1057
1057
|
}
|
|
1058
|
-
protoOf(ReconnectionInteractor).
|
|
1058
|
+
protoOf(ReconnectionInteractor).q7p = function (newConnectionState, playerId, table, afterReconnection) {
|
|
1059
1059
|
var player = getPlayer(table.players, playerId);
|
|
1060
1060
|
var tmp0_subject = newConnectionState;
|
|
1061
|
-
var tmp0 = tmp0_subject.
|
|
1061
|
+
var tmp0 = tmp0_subject.q5_1;
|
|
1062
1062
|
var tmp;
|
|
1063
1063
|
switch (tmp0) {
|
|
1064
1064
|
case 0:
|
|
1065
1065
|
tmp = getPlayerConnectedActions(this, player, table);
|
|
1066
1066
|
break;
|
|
1067
1067
|
case 3:
|
|
1068
|
-
var isLivePlayersExists_0 = isLivePlayersExists(this, player.
|
|
1069
|
-
var canRemoveGameWhenNoPlayers = this.
|
|
1070
|
-
var canRemoveGameWhenGameFinished = table.sceneInfo.
|
|
1068
|
+
var isLivePlayersExists_0 = isLivePlayersExists(this, player.y2h(), table.players);
|
|
1069
|
+
var canRemoveGameWhenNoPlayers = this.o7p_1.i7p_1 ? !isLivePlayersExists_0 : false;
|
|
1070
|
+
var canRemoveGameWhenGameFinished = table.sceneInfo.p46() ? this.o7p_1.i7p_1 : false;
|
|
1071
1071
|
var tmp_0;
|
|
1072
1072
|
if (canRemoveGameWhenNoPlayers ? true : canRemoveGameWhenGameFinished) {
|
|
1073
1073
|
tmp_0 = listOf(getFinishingAction(this, newConnectionState, player, table.playersConnections));
|
|
@@ -1098,13 +1098,13 @@
|
|
|
1098
1098
|
return tmp;
|
|
1099
1099
|
};
|
|
1100
1100
|
function UpdateServerConfigAction(serverConfig) {
|
|
1101
|
-
this.
|
|
1101
|
+
this.r7p_1 = serverConfig;
|
|
1102
1102
|
}
|
|
1103
1103
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
1104
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
1104
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.r7p_1 + ')';
|
|
1105
1105
|
};
|
|
1106
1106
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
1107
|
-
return this.
|
|
1107
|
+
return this.r7p_1.hashCode();
|
|
1108
1108
|
};
|
|
1109
1109
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
1110
1110
|
if (this === other)
|
|
@@ -1112,28 +1112,28 @@
|
|
|
1112
1112
|
if (!(other instanceof UpdateServerConfigAction))
|
|
1113
1113
|
return false;
|
|
1114
1114
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
1115
|
-
if (!this.
|
|
1115
|
+
if (!this.r7p_1.equals(tmp0_other_with_cast.r7p_1))
|
|
1116
1116
|
return false;
|
|
1117
1117
|
return true;
|
|
1118
1118
|
};
|
|
1119
1119
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
1120
|
-
return this.
|
|
1120
|
+
return this.s2l();
|
|
1121
1121
|
});
|
|
1122
1122
|
function RoomWasCreatedAction(roomId, gameCreatorPlayerId, config, users) {
|
|
1123
1123
|
RoomAction.call(this);
|
|
1124
|
-
this.
|
|
1125
|
-
this.
|
|
1126
|
-
this.
|
|
1127
|
-
this.
|
|
1124
|
+
this.s7p_1 = roomId;
|
|
1125
|
+
this.t7p_1 = gameCreatorPlayerId;
|
|
1126
|
+
this.u7p_1 = config;
|
|
1127
|
+
this.v7p_1 = users;
|
|
1128
1128
|
}
|
|
1129
1129
|
protoOf(RoomWasCreatedAction).toString = function () {
|
|
1130
|
-
return 'RoomWasCreatedAction(roomId=' + this.
|
|
1130
|
+
return 'RoomWasCreatedAction(roomId=' + this.s7p_1 + ', gameCreatorPlayerId=' + this.t7p_1 + ', config=' + this.u7p_1 + ', users=' + this.v7p_1 + ')';
|
|
1131
1131
|
};
|
|
1132
1132
|
protoOf(RoomWasCreatedAction).hashCode = function () {
|
|
1133
|
-
var result = getStringHashCode(this.
|
|
1134
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1135
|
-
result = imul(result, 31) + this.
|
|
1136
|
-
result = imul(result, 31) + hashCode(this.
|
|
1133
|
+
var result = getStringHashCode(this.s7p_1);
|
|
1134
|
+
result = imul(result, 31) + getStringHashCode(this.t7p_1) | 0;
|
|
1135
|
+
result = imul(result, 31) + this.u7p_1.hashCode() | 0;
|
|
1136
|
+
result = imul(result, 31) + hashCode(this.v7p_1) | 0;
|
|
1137
1137
|
return result;
|
|
1138
1138
|
};
|
|
1139
1139
|
protoOf(RoomWasCreatedAction).equals = function (other) {
|
|
@@ -1142,18 +1142,18 @@
|
|
|
1142
1142
|
if (!(other instanceof RoomWasCreatedAction))
|
|
1143
1143
|
return false;
|
|
1144
1144
|
var tmp0_other_with_cast = other instanceof RoomWasCreatedAction ? other : THROW_CCE();
|
|
1145
|
-
if (!(this.
|
|
1145
|
+
if (!(this.s7p_1 === tmp0_other_with_cast.s7p_1))
|
|
1146
1146
|
return false;
|
|
1147
|
-
if (!(this.
|
|
1147
|
+
if (!(this.t7p_1 === tmp0_other_with_cast.t7p_1))
|
|
1148
1148
|
return false;
|
|
1149
|
-
if (!this.
|
|
1149
|
+
if (!this.u7p_1.equals(tmp0_other_with_cast.u7p_1))
|
|
1150
1150
|
return false;
|
|
1151
|
-
if (!equals(this.
|
|
1151
|
+
if (!equals(this.v7p_1, tmp0_other_with_cast.v7p_1))
|
|
1152
1152
|
return false;
|
|
1153
1153
|
return true;
|
|
1154
1154
|
};
|
|
1155
1155
|
defineProp(protoOf(RoomWasCreatedAction), 'actionTag', function () {
|
|
1156
|
-
return this.
|
|
1156
|
+
return this.s2l();
|
|
1157
1157
|
});
|
|
1158
1158
|
function RoomWasDeletedAction() {
|
|
1159
1159
|
RoomWasDeletedAction_instance = this;
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
return 'RoomWasDeletedAction';
|
|
1164
1164
|
};
|
|
1165
1165
|
defineProp(protoOf(RoomWasDeletedAction), 'actionTag', function () {
|
|
1166
|
-
return this.
|
|
1166
|
+
return this.s2l();
|
|
1167
1167
|
});
|
|
1168
1168
|
var RoomWasDeletedAction_instance;
|
|
1169
1169
|
function RoomWasDeletedAction_getInstance() {
|
|
@@ -1174,64 +1174,64 @@
|
|
|
1174
1174
|
function RoomAction() {
|
|
1175
1175
|
}
|
|
1176
1176
|
defineProp(protoOf(RoomAction), 'actionTag', function () {
|
|
1177
|
-
return this.
|
|
1177
|
+
return this.s2l();
|
|
1178
1178
|
});
|
|
1179
1179
|
function _get_asyncProvider__jbpyhw($this) {
|
|
1180
1180
|
var tmp$ret$0;
|
|
1181
1181
|
// Inline function 'kotlin.getValue' call
|
|
1182
1182
|
var tmp0_getValue = asyncProvider$factory_0();
|
|
1183
|
-
tmp$ret$0 = $this.
|
|
1183
|
+
tmp$ret$0 = $this.z7p_1.l1();
|
|
1184
1184
|
return tmp$ret$0;
|
|
1185
1185
|
}
|
|
1186
1186
|
function _get_logger__rkp4sl_0($this) {
|
|
1187
1187
|
var tmp$ret$0;
|
|
1188
1188
|
// Inline function 'kotlin.getValue' call
|
|
1189
1189
|
var tmp0_getValue = logger$factory_2();
|
|
1190
|
-
tmp$ret$0 = $this.
|
|
1190
|
+
tmp$ret$0 = $this.a7q_1.l1();
|
|
1191
1191
|
return tmp$ret$0;
|
|
1192
1192
|
}
|
|
1193
1193
|
function _get_reconnectionInteractor__pua73z($this) {
|
|
1194
1194
|
var tmp$ret$0;
|
|
1195
1195
|
// Inline function 'kotlin.getValue' call
|
|
1196
1196
|
var tmp0_getValue = reconnectionInteractor$factory_0();
|
|
1197
|
-
tmp$ret$0 = $this.
|
|
1197
|
+
tmp$ret$0 = $this.b7q_1.l1();
|
|
1198
1198
|
return tmp$ret$0;
|
|
1199
1199
|
}
|
|
1200
1200
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
1201
1201
|
var tmp$ret$0;
|
|
1202
1202
|
// Inline function 'kotlin.getValue' call
|
|
1203
1203
|
var tmp0_getValue = lastCardInteractor$factory_0();
|
|
1204
|
-
tmp$ret$0 = $this.
|
|
1204
|
+
tmp$ret$0 = $this.c7q_1.l1();
|
|
1205
1205
|
return tmp$ret$0;
|
|
1206
1206
|
}
|
|
1207
1207
|
function _get_serverConfig__rk2g06($this) {
|
|
1208
1208
|
var tmp$ret$0;
|
|
1209
1209
|
// Inline function 'kotlin.getValue' call
|
|
1210
1210
|
var tmp0_getValue = serverConfig$factory_0();
|
|
1211
|
-
tmp$ret$0 = $this.
|
|
1211
|
+
tmp$ret$0 = $this.d7q_1.l1();
|
|
1212
1212
|
return tmp$ret$0;
|
|
1213
1213
|
}
|
|
1214
1214
|
function _get_logicConfig__52ww9d($this) {
|
|
1215
1215
|
var tmp$ret$0;
|
|
1216
1216
|
// Inline function 'kotlin.getValue' call
|
|
1217
1217
|
var tmp0_getValue = logicConfig$factory_0();
|
|
1218
|
-
tmp$ret$0 = $this.
|
|
1218
|
+
tmp$ret$0 = $this.e7q_1.l1();
|
|
1219
1219
|
return tmp$ret$0;
|
|
1220
1220
|
}
|
|
1221
1221
|
function _get_botConfig__cpaxzc($this) {
|
|
1222
1222
|
var tmp$ret$0;
|
|
1223
1223
|
// Inline function 'kotlin.getValue' call
|
|
1224
1224
|
var tmp0_getValue = botConfig$factory_0();
|
|
1225
|
-
tmp$ret$0 = $this.
|
|
1225
|
+
tmp$ret$0 = $this.f7q_1.l1();
|
|
1226
1226
|
return tmp$ret$0;
|
|
1227
1227
|
}
|
|
1228
1228
|
function ServerGameStoreContract(di, commonStoreContract, botGameStoreContract, gameMechanicStoreContract) {
|
|
1229
1229
|
commonStoreContract = commonStoreContract === VOID ? new CommonStoreContract(di) : commonStoreContract;
|
|
1230
1230
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
1231
1231
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di) : gameMechanicStoreContract;
|
|
1232
|
-
this.
|
|
1233
|
-
this.
|
|
1234
|
-
this.
|
|
1232
|
+
this.w7p_1 = commonStoreContract;
|
|
1233
|
+
this.x7p_1 = botGameStoreContract;
|
|
1234
|
+
this.y7p_1 = gameMechanicStoreContract;
|
|
1235
1235
|
var tmp = this;
|
|
1236
1236
|
var tmp$ret$1;
|
|
1237
1237
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1240,7 +1240,7 @@
|
|
|
1240
1240
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
1241
1241
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1242
1242
|
tmp$ret$1 = Instance(di, tmp$ret$0, null);
|
|
1243
|
-
tmp.
|
|
1243
|
+
tmp.z7p_1 = tmp$ret$1.j2g(this, asyncProvider$factory());
|
|
1244
1244
|
var tmp_1 = this;
|
|
1245
1245
|
var tmp$ret$3;
|
|
1246
1246
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
var tmp_2 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
1250
1250
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1251
1251
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
1252
|
-
tmp_1.
|
|
1252
|
+
tmp_1.a7q_1 = tmp$ret$3.j2g(this, logger$factory_1());
|
|
1253
1253
|
var tmp_3 = this;
|
|
1254
1254
|
var tmp$ret$5;
|
|
1255
1255
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1258,7 +1258,7 @@
|
|
|
1258
1258
|
var tmp_4 = typeToken(createKType(getKClass(ReconnectionInteractor), arrayOf([]), false));
|
|
1259
1259
|
tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1260
1260
|
tmp$ret$5 = Instance(di, tmp$ret$4, null);
|
|
1261
|
-
tmp_3.
|
|
1261
|
+
tmp_3.b7q_1 = tmp$ret$5.j2g(this, reconnectionInteractor$factory());
|
|
1262
1262
|
var tmp_5 = this;
|
|
1263
1263
|
var tmp$ret$7;
|
|
1264
1264
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1267,7 +1267,7 @@
|
|
|
1267
1267
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
1268
1268
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1269
1269
|
tmp$ret$7 = Instance(di, tmp$ret$6, null);
|
|
1270
|
-
tmp_5.
|
|
1270
|
+
tmp_5.c7q_1 = tmp$ret$7.j2g(this, lastCardInteractor$factory());
|
|
1271
1271
|
var tmp_7 = this;
|
|
1272
1272
|
var tmp$ret$9;
|
|
1273
1273
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1276,7 +1276,7 @@
|
|
|
1276
1276
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1277
1277
|
tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1278
1278
|
tmp$ret$9 = Instance(di, tmp$ret$8, null);
|
|
1279
|
-
tmp_7.
|
|
1279
|
+
tmp_7.d7q_1 = tmp$ret$9.j2g(this, serverConfig$factory());
|
|
1280
1280
|
var tmp_9 = this;
|
|
1281
1281
|
var tmp$ret$11;
|
|
1282
1282
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1285,7 +1285,7 @@
|
|
|
1285
1285
|
var tmp_10 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
1286
1286
|
tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1287
1287
|
tmp$ret$11 = Instance(di, tmp$ret$10, null);
|
|
1288
|
-
tmp_9.
|
|
1288
|
+
tmp_9.e7q_1 = tmp$ret$11.j2g(this, logicConfig$factory());
|
|
1289
1289
|
var tmp_11 = this;
|
|
1290
1290
|
var tmp$ret$13;
|
|
1291
1291
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -1294,13 +1294,13 @@
|
|
|
1294
1294
|
var tmp_12 = typeToken(createKType(getKClass(BotReduxConfig), arrayOf([]), false));
|
|
1295
1295
|
tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
1296
1296
|
tmp$ret$13 = Instance(di, tmp$ret$12, null);
|
|
1297
|
-
tmp_11.
|
|
1297
|
+
tmp_11.f7q_1 = tmp$ret$13.j2g(this, botConfig$factory());
|
|
1298
1298
|
}
|
|
1299
|
-
protoOf(ServerGameStoreContract).
|
|
1300
|
-
return plus(plus(plus(listOf(serverConfigReducer()), this.
|
|
1299
|
+
protoOf(ServerGameStoreContract).l4j = function () {
|
|
1300
|
+
return plus(plus(plus(listOf(serverConfigReducer()), this.w7p_1.l4j()), this.x7p_1.l4j()), this.y7p_1.l4j());
|
|
1301
1301
|
};
|
|
1302
|
-
protoOf(ServerGameStoreContract).
|
|
1303
|
-
return plus(plus(plus(plus(listOfNotNull([finishingGameWhenCantStartNewMiddleware(), checkGameIsFinishingWaitForRoomDeleteMiddleware(_get_logger__rkp4sl_0(this)), _get_serverConfig__rk2g06(this).
|
|
1302
|
+
protoOf(ServerGameStoreContract).m4j = function () {
|
|
1303
|
+
return plus(plus(plus(plus(listOfNotNull([finishingGameWhenCantStartNewMiddleware(), checkGameIsFinishingWaitForRoomDeleteMiddleware(_get_logger__rkp4sl_0(this)), _get_serverConfig__rk2g06(this).i7p_1 ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null]), this.w7p_1.m4j()), this.x7p_1.m4j()), this.y7p_1.m4j()), 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]));
|
|
1304
1304
|
};
|
|
1305
1305
|
function asyncProvider$factory() {
|
|
1306
1306
|
return getPropertyCallableRef('asyncProvider', 1, KProperty1, function (receiver) {
|
|
@@ -1380,19 +1380,19 @@
|
|
|
1380
1380
|
}
|
|
1381
1381
|
function _no_name_provided__qut3iv() {
|
|
1382
1382
|
}
|
|
1383
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1383
|
+
protoOf(_no_name_provided__qut3iv).d2r = function (action) {
|
|
1384
1384
|
return action instanceof PartyEndedAction;
|
|
1385
1385
|
};
|
|
1386
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1386
|
+
protoOf(_no_name_provided__qut3iv).d4l = function (store, next, action) {
|
|
1387
1387
|
// Inline function 'com.debertz.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
1388
1388
|
var tmp0__anonymous__q1qw7t = action instanceof PartyEndedAction ? action : THROW_CCE();
|
|
1389
1389
|
next(tmp0__anonymous__q1qw7t);
|
|
1390
|
-
if (!get_serverState(store.state).
|
|
1390
|
+
if (!get_serverState(store.state).f7p_1.g7p_1 ? tmp0__anonymous__q1qw7t.isGameFinished : false) {
|
|
1391
1391
|
store.dispatch(new FinishingGameMechanicAction(new GameFinishedReason(Reason_DEPLOY_getInstance())));
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
|
-
protoOf(_no_name_provided__qut3iv).
|
|
1395
|
-
return this.
|
|
1394
|
+
protoOf(_no_name_provided__qut3iv).e2r = function (store, next, action) {
|
|
1395
|
+
return this.d4l(store, next, action);
|
|
1396
1396
|
};
|
|
1397
1397
|
function serverMapMechanicToServerActionMiddleware(logicConfig, botConfig, lastCardInteractor) {
|
|
1398
1398
|
var tmp$ret$0;
|
|
@@ -1401,25 +1401,25 @@
|
|
|
1401
1401
|
return tmp$ret$0;
|
|
1402
1402
|
}
|
|
1403
1403
|
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$backwardActions_1e7uk5($logicConfig) {
|
|
1404
|
-
return $logicConfig.
|
|
1404
|
+
return $logicConfig.h2y_1;
|
|
1405
1405
|
}
|
|
1406
1406
|
function serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$autoStepLastCard_d4tzgw($botConfig, $lastCardInteractor, $this_with, playerId) {
|
|
1407
|
-
return $botConfig.autoStepLastCard ? $lastCardInteractor.
|
|
1407
|
+
return $botConfig.autoStepLastCard ? $lastCardInteractor.n4b(getPlayer($this_with.w2x().players, playerId), $this_with.w2x().config.rules) : false;
|
|
1408
1408
|
}
|
|
1409
1409
|
function serverMapMechanicToServerActionMiddleware$o$handle$lambda($state) {
|
|
1410
1410
|
return function () {
|
|
1411
|
-
return $state.
|
|
1411
|
+
return $state.w2x().playersConnections;
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
1414
|
function _no_name_provided__qut3iv_0($logicConfig, $botConfig, $lastCardInteractor) {
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1415
|
+
this.g7q_1 = $logicConfig;
|
|
1416
|
+
this.h7q_1 = $botConfig;
|
|
1417
|
+
this.i7q_1 = $lastCardInteractor;
|
|
1418
1418
|
}
|
|
1419
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
1419
|
+
protoOf(_no_name_provided__qut3iv_0).d2r = function (action) {
|
|
1420
1420
|
return action instanceof MechanicAction;
|
|
1421
1421
|
};
|
|
1422
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
1422
|
+
protoOf(_no_name_provided__qut3iv_0).d4l = function (store, next, action) {
|
|
1423
1423
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>' call
|
|
1424
1424
|
var tmp0__anonymous__q1qw7t = action instanceof MechanicAction ? action : THROW_CCE();
|
|
1425
1425
|
var state = store.state;
|
|
@@ -1432,11 +1432,11 @@
|
|
|
1432
1432
|
if (tmp0_subject instanceof StartGameMechanicAction) {
|
|
1433
1433
|
var tmp$ret$17;
|
|
1434
1434
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1435
|
-
var tmp7_createActionForUser = tmp0__anonymous__q1qw7t.
|
|
1436
|
-
var tmp8_createActionForUser = tmp0__anonymous__q1qw7t.
|
|
1435
|
+
var tmp7_createActionForUser = tmp0__anonymous__q1qw7t.a3q_1;
|
|
1436
|
+
var tmp8_createActionForUser = tmp0__anonymous__q1qw7t.c3q_1;
|
|
1437
1437
|
var tmp$ret$2;
|
|
1438
1438
|
// Inline function 'kotlin.collections.map' call
|
|
1439
|
-
var tmp1_map = tmp0__anonymous__q1qw7t.
|
|
1439
|
+
var tmp1_map = tmp0__anonymous__q1qw7t.d3q_1;
|
|
1440
1440
|
var tmp$ret$1;
|
|
1441
1441
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1442
1442
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -1445,7 +1445,7 @@
|
|
|
1445
1445
|
var item = tmp0_iterator.h();
|
|
1446
1446
|
var tmp$ret$0;
|
|
1447
1447
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1448
|
-
tmp$ret$0 = to(item.
|
|
1448
|
+
tmp$ret$0 = to(item.j2i_1, PlayerConnectionState_LIVE_getInstance());
|
|
1449
1449
|
tmp0_mapTo.a(tmp$ret$0);
|
|
1450
1450
|
}
|
|
1451
1451
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -1465,7 +1465,7 @@
|
|
|
1465
1465
|
var element = tmp0_iterator_0.h();
|
|
1466
1466
|
var tmp$ret$3;
|
|
1467
1467
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1468
|
-
tmp$ret$3 = element.
|
|
1468
|
+
tmp$ret$3 = element.y3_1.isLive;
|
|
1469
1469
|
if (tmp$ret$3) {
|
|
1470
1470
|
tmp2_filterTo.a(element);
|
|
1471
1471
|
}
|
|
@@ -1481,7 +1481,7 @@
|
|
|
1481
1481
|
var item_0 = tmp0_iterator_1.h();
|
|
1482
1482
|
var tmp$ret$6;
|
|
1483
1483
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1484
|
-
tmp$ret$6 = item_0.
|
|
1484
|
+
tmp$ret$6 = item_0.x3_1;
|
|
1485
1485
|
tmp3_mapTo.a(tmp$ret$6);
|
|
1486
1486
|
}
|
|
1487
1487
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -1509,7 +1509,7 @@
|
|
|
1509
1509
|
var item_1 = tmp0_iterator_3.h();
|
|
1510
1510
|
var tmp$ret$9;
|
|
1511
1511
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1512
|
-
tmp$ret$9 = item_1.
|
|
1512
|
+
tmp$ret$9 = item_1.x3_1;
|
|
1513
1513
|
tmp0_mapTo_0.a(tmp$ret$9);
|
|
1514
1514
|
}
|
|
1515
1515
|
tmp$ret$10 = tmp0_mapTo_0;
|
|
@@ -1537,8 +1537,8 @@
|
|
|
1537
1537
|
if (tmp0_subject instanceof ContinueGameMechanicAction) {
|
|
1538
1538
|
var tmp$ret$32;
|
|
1539
1539
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1540
|
-
var tmp16_createActionForUser = tmp0__anonymous__q1qw7t.
|
|
1541
|
-
var tmp17_createActionForUser = tmp0__anonymous__q1qw7t.
|
|
1540
|
+
var tmp16_createActionForUser = tmp0__anonymous__q1qw7t.e3q_1.id;
|
|
1541
|
+
var tmp17_createActionForUser = tmp0__anonymous__q1qw7t.w4i();
|
|
1542
1542
|
var tmp18_createActionForUser = getPlayers();
|
|
1543
1543
|
var tmp$ret$31;
|
|
1544
1544
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -1554,7 +1554,7 @@
|
|
|
1554
1554
|
var element_1 = tmp0_iterator_4.h();
|
|
1555
1555
|
var tmp$ret$18;
|
|
1556
1556
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1557
|
-
tmp$ret$18 = element_1.
|
|
1557
|
+
tmp$ret$18 = element_1.y3_1.isLive;
|
|
1558
1558
|
if (tmp$ret$18) {
|
|
1559
1559
|
tmp11_filterTo.a(element_1);
|
|
1560
1560
|
}
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
var item_2 = tmp0_iterator_5.h();
|
|
1571
1571
|
var tmp$ret$21;
|
|
1572
1572
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1573
|
-
tmp$ret$21 = item_2.
|
|
1573
|
+
tmp$ret$21 = item_2.x3_1;
|
|
1574
1574
|
tmp12_mapTo.a(tmp$ret$21);
|
|
1575
1575
|
}
|
|
1576
1576
|
tmp$ret$22 = tmp12_mapTo;
|
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
var item_3 = tmp0_iterator_7.h();
|
|
1599
1599
|
var tmp$ret$24;
|
|
1600
1600
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1601
|
-
tmp$ret$24 = item_3.
|
|
1601
|
+
tmp$ret$24 = item_3.x3_1;
|
|
1602
1602
|
tmp0_mapTo_1.a(tmp$ret$24);
|
|
1603
1603
|
}
|
|
1604
1604
|
tmp$ret$25 = tmp0_mapTo_1;
|
|
@@ -1626,7 +1626,7 @@
|
|
|
1626
1626
|
if (tmp0_subject instanceof FinishingGameMechanicAction) {
|
|
1627
1627
|
var tmp$ret$34;
|
|
1628
1628
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1629
|
-
var tmp20_createRoomActionFromTable = state.
|
|
1629
|
+
var tmp20_createRoomActionFromTable = state.w2x();
|
|
1630
1630
|
var tmp$ret$33;
|
|
1631
1631
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1632
1632
|
var tmp21__anonymous__l7ugec = new RoomActionPayload(tmp20_createRoomActionFromTable.id, null);
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
if (tmp0_subject instanceof FinishGameMechanicAction) {
|
|
1638
1638
|
var tmp$ret$36;
|
|
1639
1639
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1640
|
-
var tmp22_createRoomActionFromTable = state.
|
|
1640
|
+
var tmp22_createRoomActionFromTable = state.w2x();
|
|
1641
1641
|
var tmp$ret$35;
|
|
1642
1642
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1643
1643
|
var tmp23__anonymous__bih5za = new RoomActionPayload(tmp22_createRoomActionFromTable.id, null);
|
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
if (tmp0_subject instanceof RestartGameMechanicAction) {
|
|
1649
1649
|
var tmp$ret$38;
|
|
1650
1650
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1651
|
-
var tmp24_createRoomActionFromTable = state.
|
|
1651
|
+
var tmp24_createRoomActionFromTable = state.w2x();
|
|
1652
1652
|
var tmp$ret$37;
|
|
1653
1653
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1654
1654
|
var tmp25__anonymous__1t3vk8 = new RoomActionPayload(tmp24_createRoomActionFromTable.id, null);
|
|
@@ -1659,11 +1659,11 @@
|
|
|
1659
1659
|
if (tmp0_subject instanceof SceneMechanicAction) {
|
|
1660
1660
|
var tmp$ret$57;
|
|
1661
1661
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable' call
|
|
1662
|
-
var tmp36_createUserActionFromTable = state.
|
|
1662
|
+
var tmp36_createUserActionFromTable = state.w2x();
|
|
1663
1663
|
var tmp$ret$56;
|
|
1664
1664
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1665
1665
|
var tmp33_createActionForUser = tmp36_createUserActionFromTable.id;
|
|
1666
|
-
var tmp34_createActionForUser = getGameCreator(tmp36_createUserActionFromTable.players).
|
|
1666
|
+
var tmp34_createActionForUser = getGameCreator(tmp36_createUserActionFromTable.players).y2h();
|
|
1667
1667
|
var tmp$ret$41;
|
|
1668
1668
|
// Inline function 'kotlin.collections.map' call
|
|
1669
1669
|
var tmp27_map = tmp36_createUserActionFromTable.players;
|
|
@@ -1675,7 +1675,7 @@
|
|
|
1675
1675
|
var item_4 = tmp0_iterator_8.h();
|
|
1676
1676
|
var tmp$ret$39;
|
|
1677
1677
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable.<anonymous>' call
|
|
1678
|
-
tmp$ret$39 = to(item_4.
|
|
1678
|
+
tmp$ret$39 = to(item_4.y2h(), item_4.p31_1.d2j_1);
|
|
1679
1679
|
tmp26_mapTo.a(tmp$ret$39);
|
|
1680
1680
|
}
|
|
1681
1681
|
tmp$ret$40 = tmp26_mapTo;
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
var element_3 = tmp0_iterator_9.h();
|
|
1696
1696
|
var tmp$ret$42;
|
|
1697
1697
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1698
|
-
tmp$ret$42 = element_3.
|
|
1698
|
+
tmp$ret$42 = element_3.y3_1.isLive;
|
|
1699
1699
|
if (tmp$ret$42) {
|
|
1700
1700
|
tmp28_filterTo.a(element_3);
|
|
1701
1701
|
}
|
|
@@ -1711,7 +1711,7 @@
|
|
|
1711
1711
|
var item_5 = tmp0_iterator_10.h();
|
|
1712
1712
|
var tmp$ret$45;
|
|
1713
1713
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1714
|
-
tmp$ret$45 = item_5.
|
|
1714
|
+
tmp$ret$45 = item_5.x3_1;
|
|
1715
1715
|
tmp29_mapTo.a(tmp$ret$45);
|
|
1716
1716
|
}
|
|
1717
1717
|
tmp$ret$46 = tmp29_mapTo;
|
|
@@ -1739,7 +1739,7 @@
|
|
|
1739
1739
|
var item_6 = tmp0_iterator_12.h();
|
|
1740
1740
|
var tmp$ret$48;
|
|
1741
1741
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1742
|
-
tmp$ret$48 = item_6.
|
|
1742
|
+
tmp$ret$48 = item_6.x3_1;
|
|
1743
1743
|
tmp0_mapTo_2.a(tmp$ret$48);
|
|
1744
1744
|
}
|
|
1745
1745
|
tmp$ret$49 = tmp0_mapTo_2;
|
|
@@ -1768,11 +1768,11 @@
|
|
|
1768
1768
|
if (tmp0_subject instanceof SceneActMechanicAction) {
|
|
1769
1769
|
var tmp$ret$76;
|
|
1770
1770
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable' call
|
|
1771
|
-
var tmp48_createUserActionFromTable = state.
|
|
1771
|
+
var tmp48_createUserActionFromTable = state.w2x();
|
|
1772
1772
|
var tmp$ret$75;
|
|
1773
1773
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1774
1774
|
var tmp45_createActionForUser = tmp48_createUserActionFromTable.id;
|
|
1775
|
-
var tmp46_createActionForUser = getGameCreator(tmp48_createUserActionFromTable.players).
|
|
1775
|
+
var tmp46_createActionForUser = getGameCreator(tmp48_createUserActionFromTable.players).y2h();
|
|
1776
1776
|
var tmp$ret$60;
|
|
1777
1777
|
// Inline function 'kotlin.collections.map' call
|
|
1778
1778
|
var tmp39_map = tmp48_createUserActionFromTable.players;
|
|
@@ -1784,7 +1784,7 @@
|
|
|
1784
1784
|
var item_7 = tmp0_iterator_13.h();
|
|
1785
1785
|
var tmp$ret$58;
|
|
1786
1786
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable.<anonymous>' call
|
|
1787
|
-
tmp$ret$58 = to(item_7.
|
|
1787
|
+
tmp$ret$58 = to(item_7.y2h(), item_7.p31_1.d2j_1);
|
|
1788
1788
|
tmp38_mapTo.a(tmp$ret$58);
|
|
1789
1789
|
}
|
|
1790
1790
|
tmp$ret$59 = tmp38_mapTo;
|
|
@@ -1804,7 +1804,7 @@
|
|
|
1804
1804
|
var element_5 = tmp0_iterator_14.h();
|
|
1805
1805
|
var tmp$ret$61;
|
|
1806
1806
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1807
|
-
tmp$ret$61 = element_5.
|
|
1807
|
+
tmp$ret$61 = element_5.y3_1.isLive;
|
|
1808
1808
|
if (tmp$ret$61) {
|
|
1809
1809
|
tmp40_filterTo.a(element_5);
|
|
1810
1810
|
}
|
|
@@ -1820,7 +1820,7 @@
|
|
|
1820
1820
|
var item_8 = tmp0_iterator_15.h();
|
|
1821
1821
|
var tmp$ret$64;
|
|
1822
1822
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1823
|
-
tmp$ret$64 = item_8.
|
|
1823
|
+
tmp$ret$64 = item_8.x3_1;
|
|
1824
1824
|
tmp41_mapTo.a(tmp$ret$64);
|
|
1825
1825
|
}
|
|
1826
1826
|
tmp$ret$65 = tmp41_mapTo;
|
|
@@ -1848,7 +1848,7 @@
|
|
|
1848
1848
|
var item_9 = tmp0_iterator_17.h();
|
|
1849
1849
|
var tmp$ret$67;
|
|
1850
1850
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1851
|
-
tmp$ret$67 = item_9.
|
|
1851
|
+
tmp$ret$67 = item_9.x3_1;
|
|
1852
1852
|
tmp0_mapTo_3.a(tmp$ret$67);
|
|
1853
1853
|
}
|
|
1854
1854
|
tmp$ret$68 = tmp0_mapTo_3;
|
|
@@ -1877,11 +1877,11 @@
|
|
|
1877
1877
|
if (tmp0_subject instanceof TeamsDataMechanicAction) {
|
|
1878
1878
|
var tmp$ret$95;
|
|
1879
1879
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable' call
|
|
1880
|
-
var tmp60_createUserActionFromTable = state.
|
|
1880
|
+
var tmp60_createUserActionFromTable = state.w2x();
|
|
1881
1881
|
var tmp$ret$94;
|
|
1882
1882
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser' call
|
|
1883
1883
|
var tmp57_createActionForUser = tmp60_createUserActionFromTable.id;
|
|
1884
|
-
var tmp58_createActionForUser = getGameCreator(tmp60_createUserActionFromTable.players).
|
|
1884
|
+
var tmp58_createActionForUser = getGameCreator(tmp60_createUserActionFromTable.players).y2h();
|
|
1885
1885
|
var tmp$ret$79;
|
|
1886
1886
|
// Inline function 'kotlin.collections.map' call
|
|
1887
1887
|
var tmp51_map = tmp60_createUserActionFromTable.players;
|
|
@@ -1893,7 +1893,7 @@
|
|
|
1893
1893
|
var item_10 = tmp0_iterator_18.h();
|
|
1894
1894
|
var tmp$ret$77;
|
|
1895
1895
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createUserActionFromTable.<anonymous>' call
|
|
1896
|
-
tmp$ret$77 = to(item_10.
|
|
1896
|
+
tmp$ret$77 = to(item_10.y2h(), item_10.p31_1.d2j_1);
|
|
1897
1897
|
tmp50_mapTo.a(tmp$ret$77);
|
|
1898
1898
|
}
|
|
1899
1899
|
tmp$ret$78 = tmp50_mapTo;
|
|
@@ -1913,7 +1913,7 @@
|
|
|
1913
1913
|
var element_7 = tmp0_iterator_19.h();
|
|
1914
1914
|
var tmp$ret$80;
|
|
1915
1915
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1916
|
-
tmp$ret$80 = element_7.
|
|
1916
|
+
tmp$ret$80 = element_7.y3_1.isLive;
|
|
1917
1917
|
if (tmp$ret$80) {
|
|
1918
1918
|
tmp52_filterTo.a(element_7);
|
|
1919
1919
|
}
|
|
@@ -1929,7 +1929,7 @@
|
|
|
1929
1929
|
var item_11 = tmp0_iterator_20.h();
|
|
1930
1930
|
var tmp$ret$83;
|
|
1931
1931
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>' call
|
|
1932
|
-
tmp$ret$83 = item_11.
|
|
1932
|
+
tmp$ret$83 = item_11.x3_1;
|
|
1933
1933
|
tmp53_mapTo.a(tmp$ret$83);
|
|
1934
1934
|
}
|
|
1935
1935
|
tmp$ret$84 = tmp53_mapTo;
|
|
@@ -1957,7 +1957,7 @@
|
|
|
1957
1957
|
var item_12 = tmp0_iterator_22.h();
|
|
1958
1958
|
var tmp$ret$86;
|
|
1959
1959
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createActionForUser.<anonymous>.<anonymous>' call
|
|
1960
|
-
tmp$ret$86 = item_12.
|
|
1960
|
+
tmp$ret$86 = item_12.x3_1;
|
|
1961
1961
|
tmp0_mapTo_4.a(tmp$ret$86);
|
|
1962
1962
|
}
|
|
1963
1963
|
tmp$ret$87 = tmp0_mapTo_4;
|
|
@@ -1965,7 +1965,7 @@
|
|
|
1965
1965
|
var tmp0_playersIds_3 = tmp$ret$88;
|
|
1966
1966
|
var tmp61__anonymous__c851q8 = UserActionPayload_init_$Create$(tmp57_createActionForUser, tmp58_createActionForUser, element_8, tmp0_playersIds_3);
|
|
1967
1967
|
var tmp_0;
|
|
1968
|
-
if (this.
|
|
1968
|
+
if (this.g7q_1.h2y_1 ? getPlayer(state.w2x().players, tmp61__anonymous__c851q8.k3d_1).r31_1.v31_1 : false) {
|
|
1969
1969
|
tmp_0 = null;
|
|
1970
1970
|
} else {
|
|
1971
1971
|
tmp_0 = mapToClient_9(tmp0__anonymous__q1qw7t, tmp61__anonymous__c851q8);
|
|
@@ -1992,8 +1992,8 @@
|
|
|
1992
1992
|
if (tmp0_subject instanceof PlayerReadyMechanicAction) {
|
|
1993
1993
|
var tmp$ret$97;
|
|
1994
1994
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
1995
|
-
var tmp62_createRoomActionFromTable = state.
|
|
1996
|
-
var tmp63_createRoomActionFromTable = this.
|
|
1995
|
+
var tmp62_createRoomActionFromTable = state.w2x();
|
|
1996
|
+
var tmp63_createRoomActionFromTable = this.g7q_1.h2y_1 ? tmp0__anonymous__q1qw7t.s3q_1 : null;
|
|
1997
1997
|
var tmp$ret$96;
|
|
1998
1998
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
1999
1999
|
var tmp64__anonymous__qs6zct = new RoomActionPayload(tmp62_createRoomActionFromTable.id, tmp63_createRoomActionFromTable);
|
|
@@ -2004,8 +2004,8 @@
|
|
|
2004
2004
|
if (tmp0_subject instanceof SuitChoiceMechanicAction) {
|
|
2005
2005
|
var tmp$ret$99;
|
|
2006
2006
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2007
|
-
var tmp65_createRoomActionFromTable = state.
|
|
2008
|
-
var tmp66_createRoomActionFromTable = this.
|
|
2007
|
+
var tmp65_createRoomActionFromTable = state.w2x();
|
|
2008
|
+
var tmp66_createRoomActionFromTable = this.g7q_1.h2y_1 ? tmp0__anonymous__q1qw7t.t3q_1 : null;
|
|
2009
2009
|
var tmp$ret$98;
|
|
2010
2010
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2011
2011
|
var tmp67__anonymous__tov4zq = new RoomActionPayload(tmp65_createRoomActionFromTable.id, tmp66_createRoomActionFromTable);
|
|
@@ -2016,7 +2016,7 @@
|
|
|
2016
2016
|
if (tmp0_subject instanceof TrumpMechanicAction) {
|
|
2017
2017
|
var tmp$ret$101;
|
|
2018
2018
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2019
|
-
var tmp68_createRoomActionFromTable = state.
|
|
2019
|
+
var tmp68_createRoomActionFromTable = state.w2x();
|
|
2020
2020
|
var tmp$ret$100;
|
|
2021
2021
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2022
2022
|
var tmp69__anonymous__jzhuko = new RoomActionPayload(tmp68_createRoomActionFromTable.id, null);
|
|
@@ -2027,8 +2027,8 @@
|
|
|
2027
2027
|
if (tmp0_subject instanceof CombinationChoiceMechanicAction) {
|
|
2028
2028
|
var tmp$ret$103;
|
|
2029
2029
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2030
|
-
var tmp70_createRoomActionFromTable = state.
|
|
2031
|
-
var tmp71_createRoomActionFromTable = this.
|
|
2030
|
+
var tmp70_createRoomActionFromTable = state.w2x();
|
|
2031
|
+
var tmp71_createRoomActionFromTable = this.g7q_1.h2y_1 ? tmp0__anonymous__q1qw7t.y3q_1 : null;
|
|
2032
2032
|
var tmp$ret$102;
|
|
2033
2033
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2034
2034
|
var tmp72__anonymous__pftkgw = new RoomActionPayload(tmp70_createRoomActionFromTable.id, tmp71_createRoomActionFromTable);
|
|
@@ -2039,8 +2039,8 @@
|
|
|
2039
2039
|
if (tmp0_subject instanceof PutCardMechanicAction) {
|
|
2040
2040
|
var tmp$ret$105;
|
|
2041
2041
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2042
|
-
var tmp73_createRoomActionFromTable = state.
|
|
2043
|
-
var tmp74_createRoomActionFromTable = (serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$backwardActions_1e7uk5(this.
|
|
2042
|
+
var tmp73_createRoomActionFromTable = state.w2x();
|
|
2043
|
+
var tmp74_createRoomActionFromTable = (serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$backwardActions_1e7uk5(this.g7q_1) ? !serverMapMechanicToServerActionMiddleware$_anonymous_$_anonymous_$autoStepLastCard_d4tzgw(this.h7q_1, this.i7q_1, state, tmp0__anonymous__q1qw7t.y2h()) : false) ? tmp0__anonymous__q1qw7t.y2h() : null;
|
|
2044
2044
|
var tmp$ret$104;
|
|
2045
2045
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2046
2046
|
var tmp75__anonymous__v18jvn = new RoomActionPayload(tmp73_createRoomActionFromTable.id, tmp74_createRoomActionFromTable);
|
|
@@ -2051,7 +2051,7 @@
|
|
|
2051
2051
|
if (tmp0_subject instanceof PickUpBribeMechanicAction) {
|
|
2052
2052
|
var tmp$ret$107;
|
|
2053
2053
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2054
|
-
var tmp76_createRoomActionFromTable = state.
|
|
2054
|
+
var tmp76_createRoomActionFromTable = state.w2x();
|
|
2055
2055
|
var tmp$ret$106;
|
|
2056
2056
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2057
2057
|
var tmp77__anonymous__lbv9gl = new RoomActionPayload(tmp76_createRoomActionFromTable.id, null);
|
|
@@ -2062,7 +2062,7 @@
|
|
|
2062
2062
|
if (tmp0_subject instanceof WinnerCombinationsMechanicAction) {
|
|
2063
2063
|
var tmp$ret$109;
|
|
2064
2064
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2065
|
-
var tmp78_createRoomActionFromTable = state.
|
|
2065
|
+
var tmp78_createRoomActionFromTable = state.w2x();
|
|
2066
2066
|
var tmp$ret$108;
|
|
2067
2067
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2068
2068
|
var tmp79__anonymous__bmhz1j = new RoomActionPayload(tmp78_createRoomActionFromTable.id, null);
|
|
@@ -2071,19 +2071,19 @@
|
|
|
2071
2071
|
tmp = tmp$ret$109;
|
|
2072
2072
|
} else {
|
|
2073
2073
|
if (tmp0_subject instanceof MessageMechanicAction) {
|
|
2074
|
-
var message = tmp0__anonymous__q1qw7t.
|
|
2074
|
+
var message = tmp0__anonymous__q1qw7t.i3r_1;
|
|
2075
2075
|
var tmp$ret$111;
|
|
2076
2076
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2077
|
-
var tmp80_createRoomActionFromTable = state.
|
|
2077
|
+
var tmp80_createRoomActionFromTable = state.w2x();
|
|
2078
2078
|
var tmp_1;
|
|
2079
2079
|
var tmp_2;
|
|
2080
|
-
if (this.
|
|
2080
|
+
if (this.g7q_1.h2y_1) {
|
|
2081
2081
|
tmp_2 = isInterface(message, UserMessage);
|
|
2082
2082
|
} else {
|
|
2083
2083
|
tmp_2 = false;
|
|
2084
2084
|
}
|
|
2085
2085
|
if (tmp_2) {
|
|
2086
|
-
tmp_1 = message.
|
|
2086
|
+
tmp_1 = message.y2h();
|
|
2087
2087
|
} else {
|
|
2088
2088
|
tmp_1 = null;
|
|
2089
2089
|
}
|
|
@@ -2102,7 +2102,7 @@
|
|
|
2102
2102
|
} else {
|
|
2103
2103
|
var tmp$ret$113;
|
|
2104
2104
|
// Inline function 'com.debertz.logic.server.redux.middlewares.createRoomActionFromTable' call
|
|
2105
|
-
var tmp83_createRoomActionFromTable = state.
|
|
2105
|
+
var tmp83_createRoomActionFromTable = state.w2x();
|
|
2106
2106
|
var tmp84_createRoomActionFromTable = tmp0__anonymous__q1qw7t.playerId;
|
|
2107
2107
|
var tmp$ret$112;
|
|
2108
2108
|
// Inline function 'com.debertz.logic.server.redux.middlewares.serverMapMechanicToServerActionMiddleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
@@ -2141,8 +2141,8 @@
|
|
|
2141
2141
|
tmp$ret$114 = Unit_getInstance();
|
|
2142
2142
|
next(tmp0__anonymous__q1qw7t);
|
|
2143
2143
|
};
|
|
2144
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2145
|
-
return this.
|
|
2144
|
+
protoOf(_no_name_provided__qut3iv_0).e2r = function (store, next, action) {
|
|
2145
|
+
return this.d4l(store, next, action);
|
|
2146
2146
|
};
|
|
2147
2147
|
function playerConnectionUpdateMiddleware(reconnectionInteractor) {
|
|
2148
2148
|
var tmp$ret$0;
|
|
@@ -2151,12 +2151,12 @@
|
|
|
2151
2151
|
return tmp$ret$0;
|
|
2152
2152
|
}
|
|
2153
2153
|
function _no_name_provided__qut3iv_1($reconnectionInteractor) {
|
|
2154
|
-
this.
|
|
2154
|
+
this.j7q_1 = $reconnectionInteractor;
|
|
2155
2155
|
}
|
|
2156
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2156
|
+
protoOf(_no_name_provided__qut3iv_1).d2r = function (action) {
|
|
2157
2157
|
return action instanceof PlayerConnectionUpdateAction;
|
|
2158
2158
|
};
|
|
2159
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2159
|
+
protoOf(_no_name_provided__qut3iv_1).d4l = function (store, next, action) {
|
|
2160
2160
|
var tmp$ret$0;
|
|
2161
2161
|
$l$block_0: {
|
|
2162
2162
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerConnectionUpdateMiddleware.<anonymous>' call
|
|
@@ -2167,8 +2167,8 @@
|
|
|
2167
2167
|
tmp$ret$0 = Unit_getInstance();
|
|
2168
2168
|
break $l$block_0;
|
|
2169
2169
|
}
|
|
2170
|
-
var player = getPlayer(state.
|
|
2171
|
-
if (tmp0__anonymous__q1qw7t.
|
|
2170
|
+
var player = getPlayer(state.w2x().players, tmp0__anonymous__q1qw7t.g4h_1);
|
|
2171
|
+
if (tmp0__anonymous__q1qw7t.f4h_1.isDisconnected ? player.p31_1.d2j_1.isDisconnecting : false) {
|
|
2172
2172
|
next(tmp0__anonymous__q1qw7t);
|
|
2173
2173
|
tmp$ret$0 = Unit_getInstance();
|
|
2174
2174
|
break $l$block_0;
|
|
@@ -2178,7 +2178,7 @@
|
|
|
2178
2178
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
2179
2179
|
var tmp$ret$2;
|
|
2180
2180
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2181
|
-
var tmp1_filterIsInstance = state.
|
|
2181
|
+
var tmp1_filterIsInstance = state.w2w_1;
|
|
2182
2182
|
var tmp$ret$1;
|
|
2183
2183
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
2184
2184
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
|
|
@@ -2199,7 +2199,7 @@
|
|
|
2199
2199
|
var element_0 = tmp0_iterator_0.h();
|
|
2200
2200
|
var tmp$ret$3;
|
|
2201
2201
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerConnectionUpdateMiddleware.<anonymous>.<anonymous>' call
|
|
2202
|
-
tmp$ret$3 = element_0.
|
|
2202
|
+
tmp$ret$3 = element_0.k7q_1 === tmp0__anonymous__q1qw7t.g4h_1;
|
|
2203
2203
|
if (tmp$ret$3) {
|
|
2204
2204
|
if (found) {
|
|
2205
2205
|
tmp$ret$4 = null;
|
|
@@ -2219,10 +2219,10 @@
|
|
|
2219
2219
|
if (!(reconnectionTimerTag == null)) {
|
|
2220
2220
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
2221
2221
|
}
|
|
2222
|
-
if (tmp0__anonymous__q1qw7t.
|
|
2223
|
-
store.dispatch(new PlayerConnectionChangedMechanicAction(tmp0__anonymous__q1qw7t.
|
|
2222
|
+
if (tmp0__anonymous__q1qw7t.f4h_1.isLive) {
|
|
2223
|
+
store.dispatch(new PlayerConnectionChangedMechanicAction(tmp0__anonymous__q1qw7t.g4h_1, PlayerConnectionState_LIVE_getInstance()));
|
|
2224
2224
|
}
|
|
2225
|
-
var actions = this.
|
|
2225
|
+
var actions = this.j7q_1.q7p(tmp0__anonymous__q1qw7t.f4h_1, tmp0__anonymous__q1qw7t.g4h_1, store.state.w2x(), tmp0__anonymous__q1qw7t.h4h_1);
|
|
2226
2226
|
// Inline function 'kotlin.collections.forEach' call
|
|
2227
2227
|
var tmp0_iterator_1 = actions.f();
|
|
2228
2228
|
while (tmp0_iterator_1.g()) {
|
|
@@ -2233,8 +2233,8 @@
|
|
|
2233
2233
|
next(tmp0__anonymous__q1qw7t);
|
|
2234
2234
|
}
|
|
2235
2235
|
};
|
|
2236
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2237
|
-
return this.
|
|
2236
|
+
protoOf(_no_name_provided__qut3iv_1).e2r = function (store, next, action) {
|
|
2237
|
+
return this.d4l(store, next, action);
|
|
2238
2238
|
};
|
|
2239
2239
|
function playerReconnectionWaitingTimerTickMiddleware(reconnectionInteractor) {
|
|
2240
2240
|
var tmp$ret$0;
|
|
@@ -2243,15 +2243,15 @@
|
|
|
2243
2243
|
return tmp$ret$0;
|
|
2244
2244
|
}
|
|
2245
2245
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2246
|
+
this.k7q_1 = playerId;
|
|
2247
|
+
this.l7q_1 = state;
|
|
2248
2248
|
}
|
|
2249
2249
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
2250
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
2250
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.k7q_1 + ', state=' + this.l7q_1 + ')';
|
|
2251
2251
|
};
|
|
2252
2252
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
2253
|
-
var result = getStringHashCode(this.
|
|
2254
|
-
result = imul(result, 31) + this.
|
|
2253
|
+
var result = getStringHashCode(this.k7q_1);
|
|
2254
|
+
result = imul(result, 31) + this.l7q_1.hashCode() | 0;
|
|
2255
2255
|
return result;
|
|
2256
2256
|
};
|
|
2257
2257
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -2260,25 +2260,25 @@
|
|
|
2260
2260
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
2261
2261
|
return false;
|
|
2262
2262
|
var tmp0_other_with_cast = other instanceof PlayerReconnectionWaitingTimerTag ? other : THROW_CCE();
|
|
2263
|
-
if (!(this.
|
|
2263
|
+
if (!(this.k7q_1 === tmp0_other_with_cast.k7q_1))
|
|
2264
2264
|
return false;
|
|
2265
|
-
if (!this.
|
|
2265
|
+
if (!this.l7q_1.equals(tmp0_other_with_cast.l7q_1))
|
|
2266
2266
|
return false;
|
|
2267
2267
|
return true;
|
|
2268
2268
|
};
|
|
2269
2269
|
function _no_name_provided__qut3iv_2($reconnectionInteractor) {
|
|
2270
|
-
this.
|
|
2270
|
+
this.m7q_1 = $reconnectionInteractor;
|
|
2271
2271
|
}
|
|
2272
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2272
|
+
protoOf(_no_name_provided__qut3iv_2).d2r = function (action) {
|
|
2273
2273
|
return action instanceof TimerTickAction;
|
|
2274
2274
|
};
|
|
2275
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2275
|
+
protoOf(_no_name_provided__qut3iv_2).d4l = function (store, next, action) {
|
|
2276
2276
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.playerReconnectionWaitingTimerTickMiddleware.<anonymous>' call
|
|
2277
2277
|
var tmp0__anonymous__q1qw7t = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
2278
|
-
var timerTag = tmp0__anonymous__q1qw7t.
|
|
2278
|
+
var timerTag = tmp0__anonymous__q1qw7t.r2r_1;
|
|
2279
2279
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
2280
2280
|
var state = store.state;
|
|
2281
|
-
var actions = this.
|
|
2281
|
+
var actions = this.m7q_1.q7p(timerTag.l7q_1, timerTag.k7q_1, state.w2x(), true);
|
|
2282
2282
|
var tmp$ret$0;
|
|
2283
2283
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2284
2284
|
tmp$ret$0 = !actions.l();
|
|
@@ -2294,8 +2294,8 @@
|
|
|
2294
2294
|
}
|
|
2295
2295
|
next(tmp0__anonymous__q1qw7t);
|
|
2296
2296
|
};
|
|
2297
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2298
|
-
return this.
|
|
2297
|
+
protoOf(_no_name_provided__qut3iv_2).e2r = function (store, next, action) {
|
|
2298
|
+
return this.d4l(store, next, action);
|
|
2299
2299
|
};
|
|
2300
2300
|
function serverPlayerTurnTimerTickMiddleware(serverConfig, logger) {
|
|
2301
2301
|
var tmp$ret$0;
|
|
@@ -2304,26 +2304,26 @@
|
|
|
2304
2304
|
return tmp$ret$0;
|
|
2305
2305
|
}
|
|
2306
2306
|
function _no_name_provided__qut3iv_3($serverConfig, $logger) {
|
|
2307
|
-
this.
|
|
2308
|
-
this.
|
|
2307
|
+
this.n7q_1 = $serverConfig;
|
|
2308
|
+
this.o7q_1 = $logger;
|
|
2309
2309
|
}
|
|
2310
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
2310
|
+
protoOf(_no_name_provided__qut3iv_3).d2r = function (action) {
|
|
2311
2311
|
return action instanceof TimerTickAction;
|
|
2312
2312
|
};
|
|
2313
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
2313
|
+
protoOf(_no_name_provided__qut3iv_3).d4l = function (store, next, action) {
|
|
2314
2314
|
// Inline function 'com.debertz.logic.server.redux.middlewares.player.serverPlayerTurnTimerTickMiddleware.<anonymous>' call
|
|
2315
2315
|
var tmp0__anonymous__q1qw7t = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
2316
|
-
var timerTag = tmp0__anonymous__q1qw7t.
|
|
2316
|
+
var timerTag = tmp0__anonymous__q1qw7t.r2r_1;
|
|
2317
2317
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
2318
2318
|
var state = store.state;
|
|
2319
|
-
var table = state.
|
|
2320
|
-
var player = getPlayer(table.players, timerTag.
|
|
2321
|
-
var tmp0_subject = player.
|
|
2322
|
-
var tmp0 = tmp0_subject.
|
|
2319
|
+
var table = state.w2x();
|
|
2320
|
+
var player = getPlayer(table.players, timerTag.p4n_1);
|
|
2321
|
+
var tmp0_subject = player.p31_1.d2j_1;
|
|
2322
|
+
var tmp0 = tmp0_subject.q5_1;
|
|
2323
2323
|
var tmp;
|
|
2324
2324
|
switch (tmp0) {
|
|
2325
2325
|
case 0:
|
|
2326
|
-
tmp = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.
|
|
2326
|
+
tmp = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.y2h(), timerTag.r4n_1));
|
|
2327
2327
|
break;
|
|
2328
2328
|
case 4:
|
|
2329
2329
|
tmp = emptyList();
|
|
@@ -2332,16 +2332,16 @@
|
|
|
2332
2332
|
case 2:
|
|
2333
2333
|
case 1:
|
|
2334
2334
|
var tmp_0;
|
|
2335
|
-
if (this.
|
|
2336
|
-
tmp_0 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.
|
|
2335
|
+
if (this.n7q_1.l7p_1 ? table.sceneInfo.p46() : false) {
|
|
2336
|
+
tmp_0 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.y2h(), timerTag.r4n_1);
|
|
2337
2337
|
} else {
|
|
2338
|
-
tmp_0 = new AskBotAction(player.
|
|
2338
|
+
tmp_0 = new AskBotAction(player.y2h(), 'PlayerTurn after player TIMEOUT');
|
|
2339
2339
|
}
|
|
2340
2340
|
|
|
2341
2341
|
tmp = listOf(tmp_0);
|
|
2342
2342
|
break;
|
|
2343
2343
|
case 5:
|
|
2344
|
-
this.
|
|
2344
|
+
this.o7q_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + player.p31_1.d2j_1 + ', ') + ('action:' + tmp0__anonymous__q1qw7t));
|
|
2345
2345
|
tmp = emptyList();
|
|
2346
2346
|
break;
|
|
2347
2347
|
default:
|
|
@@ -2364,8 +2364,8 @@
|
|
|
2364
2364
|
}
|
|
2365
2365
|
next(tmp0__anonymous__q1qw7t);
|
|
2366
2366
|
};
|
|
2367
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
2368
|
-
return this.
|
|
2367
|
+
protoOf(_no_name_provided__qut3iv_3).e2r = function (store, next, action) {
|
|
2368
|
+
return this.d4l(store, next, action);
|
|
2369
2369
|
};
|
|
2370
2370
|
function roomLifecycleMiddleware(asyncProvider, logger) {
|
|
2371
2371
|
var tmp$ret$0;
|
|
@@ -2374,18 +2374,18 @@
|
|
|
2374
2374
|
return tmp$ret$0;
|
|
2375
2375
|
}
|
|
2376
2376
|
function roomLifecycleMiddleware$o$handle$slambda$slambda($actions, $store, resultContinuation) {
|
|
2377
|
-
this.
|
|
2378
|
-
this.
|
|
2377
|
+
this.x7q_1 = $actions;
|
|
2378
|
+
this.y7q_1 = $store;
|
|
2379
2379
|
CoroutineImpl.call(this, resultContinuation);
|
|
2380
2380
|
}
|
|
2381
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).
|
|
2382
|
-
var tmp = this.
|
|
2381
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).y13 = function ($this$launchStore, $completion) {
|
|
2382
|
+
var tmp = this.z13($this$launchStore, $completion);
|
|
2383
2383
|
tmp.xh_1 = Unit_getInstance();
|
|
2384
2384
|
tmp.yh_1 = null;
|
|
2385
2385
|
return tmp.ei();
|
|
2386
2386
|
};
|
|
2387
2387
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).qi = function (p1, $completion) {
|
|
2388
|
-
return this.
|
|
2388
|
+
return this.y13((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2389
2389
|
};
|
|
2390
2390
|
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).ei = function () {
|
|
2391
2391
|
var suspendResult = this.xh_1;
|
|
@@ -2394,10 +2394,10 @@
|
|
|
2394
2394
|
var tmp = this.vh_1;
|
|
2395
2395
|
if (tmp === 0) {
|
|
2396
2396
|
this.wh_1 = 1;
|
|
2397
|
-
var tmp0_iterator = this.
|
|
2397
|
+
var tmp0_iterator = this.x7q_1.f();
|
|
2398
2398
|
while (tmp0_iterator.g()) {
|
|
2399
2399
|
var element = tmp0_iterator.h();
|
|
2400
|
-
this.
|
|
2400
|
+
this.y7q_1.dispatch(element);
|
|
2401
2401
|
}
|
|
2402
2402
|
return Unit_getInstance();
|
|
2403
2403
|
} else if (tmp === 1) {
|
|
@@ -2409,34 +2409,34 @@
|
|
|
2409
2409
|
}
|
|
2410
2410
|
while (true);
|
|
2411
2411
|
};
|
|
2412
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).
|
|
2413
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.
|
|
2414
|
-
i.
|
|
2412
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda$slambda).z13 = function ($this$launchStore, completion) {
|
|
2413
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda(this.x7q_1, this.y7q_1, completion);
|
|
2414
|
+
i.z7q_1 = $this$launchStore;
|
|
2415
2415
|
return i;
|
|
2416
2416
|
};
|
|
2417
2417
|
function roomLifecycleMiddleware$o$handle$slambda$slambda_0($actions, $store, resultContinuation) {
|
|
2418
2418
|
var i = new roomLifecycleMiddleware$o$handle$slambda$slambda($actions, $store, resultContinuation);
|
|
2419
2419
|
var l = function ($this$launchStore, $completion) {
|
|
2420
|
-
return i.
|
|
2420
|
+
return i.y13($this$launchStore, $completion);
|
|
2421
2421
|
};
|
|
2422
2422
|
l.$arity = 1;
|
|
2423
2423
|
return l;
|
|
2424
2424
|
}
|
|
2425
2425
|
function roomLifecycleMiddleware$o$handle$slambda($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation) {
|
|
2426
|
-
this.
|
|
2427
|
-
this.
|
|
2428
|
-
this.
|
|
2429
|
-
this.
|
|
2426
|
+
this.i7r_1 = $store;
|
|
2427
|
+
this.j7r_1 = $tmp0__anonymous__1nv1x1;
|
|
2428
|
+
this.k7r_1 = $logger;
|
|
2429
|
+
this.l7r_1 = $asyncProvider;
|
|
2430
2430
|
CoroutineImpl.call(this, resultContinuation);
|
|
2431
2431
|
}
|
|
2432
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda).
|
|
2433
|
-
var tmp = this.
|
|
2432
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda).y13 = function ($this$launchWorkerWithLock, $completion) {
|
|
2433
|
+
var tmp = this.z13($this$launchWorkerWithLock, $completion);
|
|
2434
2434
|
tmp.xh_1 = Unit_getInstance();
|
|
2435
2435
|
tmp.yh_1 = null;
|
|
2436
2436
|
return tmp.ei();
|
|
2437
2437
|
};
|
|
2438
2438
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).qi = function (p1, $completion) {
|
|
2439
|
-
return this.
|
|
2439
|
+
return this.y13((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2440
2440
|
};
|
|
2441
2441
|
protoOf(roomLifecycleMiddleware$o$handle$slambda).ei = function () {
|
|
2442
2442
|
var suspendResult = this.xh_1;
|
|
@@ -2445,22 +2445,22 @@
|
|
|
2445
2445
|
var tmp = this.vh_1;
|
|
2446
2446
|
if (tmp === 0) {
|
|
2447
2447
|
this.wh_1 = 1;
|
|
2448
|
-
var state = this.
|
|
2449
|
-
var tmp0_subject = this.
|
|
2448
|
+
var state = this.i7r_1.state;
|
|
2449
|
+
var tmp0_subject = this.j7r_1;
|
|
2450
2450
|
var tmp_0;
|
|
2451
2451
|
if (tmp0_subject instanceof RoomWasCreatedAction) {
|
|
2452
|
-
var tmp1_id = this.
|
|
2452
|
+
var tmp1_id = this.j7r_1.s7p_1;
|
|
2453
2453
|
var tmp2_version = GameEngineConfig_getInstance().version;
|
|
2454
|
-
var tmp3_gameCreatorPlayerId = this.
|
|
2455
|
-
var tmp4_config = this.
|
|
2456
|
-
var tmp5_users = this.
|
|
2454
|
+
var tmp3_gameCreatorPlayerId = this.j7r_1.t7p_1;
|
|
2455
|
+
var tmp4_config = this.j7r_1.u7p_1;
|
|
2456
|
+
var tmp5_users = this.j7r_1.v7p_1;
|
|
2457
2457
|
tmp_0 = listOf(new StartGameMechanicAction(tmp4_config, tmp1_id, tmp2_version, tmp3_gameCreatorPlayerId, tmp5_users));
|
|
2458
2458
|
} else {
|
|
2459
2459
|
if (tmp0_subject instanceof RoomWasDeletedAction) {
|
|
2460
|
-
var tmp0_let = state.
|
|
2460
|
+
var tmp0_let = state.v2w_1;
|
|
2461
2461
|
var tmp_1;
|
|
2462
2462
|
if (tmp0_let == null) {
|
|
2463
|
-
this.
|
|
2463
|
+
this.k7r_1.w(VOID, "Termination reason can't be null");
|
|
2464
2464
|
tmp_1 = new GameErrorReason('room deleted error');
|
|
2465
2465
|
} else {
|
|
2466
2466
|
tmp_1 = tmp0_let;
|
|
@@ -2472,7 +2472,7 @@
|
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
2474
|
var actions = tmp_0;
|
|
2475
|
-
this.
|
|
2475
|
+
this.l7r_1.e2p(VOID, roomLifecycleMiddleware$o$handle$slambda$slambda_0(actions, this.i7r_1, null));
|
|
2476
2476
|
return Unit_getInstance();
|
|
2477
2477
|
} else if (tmp === 1) {
|
|
2478
2478
|
throw this.yh_1;
|
|
@@ -2483,34 +2483,34 @@
|
|
|
2483
2483
|
}
|
|
2484
2484
|
while (true);
|
|
2485
2485
|
};
|
|
2486
|
-
protoOf(roomLifecycleMiddleware$o$handle$slambda).
|
|
2487
|
-
var i = new roomLifecycleMiddleware$o$handle$slambda(this.
|
|
2488
|
-
i.
|
|
2486
|
+
protoOf(roomLifecycleMiddleware$o$handle$slambda).z13 = function ($this$launchWorkerWithLock, completion) {
|
|
2487
|
+
var i = new roomLifecycleMiddleware$o$handle$slambda(this.i7r_1, this.j7r_1, this.k7r_1, this.l7r_1, completion);
|
|
2488
|
+
i.m7r_1 = $this$launchWorkerWithLock;
|
|
2489
2489
|
return i;
|
|
2490
2490
|
};
|
|
2491
2491
|
function roomLifecycleMiddleware$o$handle$slambda_0($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation) {
|
|
2492
2492
|
var i = new roomLifecycleMiddleware$o$handle$slambda($store, $tmp0__anonymous__1nv1x1, $logger, $asyncProvider, resultContinuation);
|
|
2493
2493
|
var l = function ($this$launchWorkerWithLock, $completion) {
|
|
2494
|
-
return i.
|
|
2494
|
+
return i.y13($this$launchWorkerWithLock, $completion);
|
|
2495
2495
|
};
|
|
2496
2496
|
l.$arity = 1;
|
|
2497
2497
|
return l;
|
|
2498
2498
|
}
|
|
2499
2499
|
function _no_name_provided__qut3iv_4($asyncProvider, $logger) {
|
|
2500
|
-
this.
|
|
2501
|
-
this.
|
|
2500
|
+
this.n7r_1 = $asyncProvider;
|
|
2501
|
+
this.o7r_1 = $logger;
|
|
2502
2502
|
}
|
|
2503
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
2503
|
+
protoOf(_no_name_provided__qut3iv_4).d2r = function (action) {
|
|
2504
2504
|
return action instanceof RoomAction;
|
|
2505
2505
|
};
|
|
2506
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
2506
|
+
protoOf(_no_name_provided__qut3iv_4).d4l = function (store, next, action) {
|
|
2507
2507
|
// Inline function 'com.debertz.logic.server.redux.middlewares.rooms.roomLifecycleMiddleware.<anonymous>' call
|
|
2508
2508
|
var tmp0__anonymous__q1qw7t = action instanceof RoomAction ? action : THROW_CCE();
|
|
2509
2509
|
next(tmp0__anonymous__q1qw7t);
|
|
2510
|
-
this.
|
|
2510
|
+
this.n7r_1.i2p(VOID, roomLifecycleMiddleware$o$handle$slambda_0(store, tmp0__anonymous__q1qw7t, this.o7r_1, this.n7r_1, null));
|
|
2511
2511
|
};
|
|
2512
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
2513
|
-
return this.
|
|
2512
|
+
protoOf(_no_name_provided__qut3iv_4).e2r = function (store, next, action) {
|
|
2513
|
+
return this.d4l(store, next, action);
|
|
2514
2514
|
};
|
|
2515
2515
|
function checkBotsMiddleware(logger) {
|
|
2516
2516
|
var tmp$ret$0;
|
|
@@ -2519,19 +2519,19 @@
|
|
|
2519
2519
|
return tmp$ret$0;
|
|
2520
2520
|
}
|
|
2521
2521
|
function _no_name_provided__qut3iv_5($logger) {
|
|
2522
|
-
this.
|
|
2522
|
+
this.p7r_1 = $logger;
|
|
2523
2523
|
}
|
|
2524
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
2524
|
+
protoOf(_no_name_provided__qut3iv_5).d2r = function (action) {
|
|
2525
2525
|
return action instanceof SceneMechanicAction;
|
|
2526
2526
|
};
|
|
2527
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
2527
|
+
protoOf(_no_name_provided__qut3iv_5).d4l = function (store, next, action) {
|
|
2528
2528
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>' call
|
|
2529
2529
|
var tmp0__anonymous__q1qw7t = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
2530
2530
|
var state = store.state;
|
|
2531
2531
|
var tmp;
|
|
2532
|
-
if (state.
|
|
2532
|
+
if (state.x2x()) {
|
|
2533
2533
|
Companion_getInstance_2();
|
|
2534
|
-
tmp = !(tmp0__anonymous__q1qw7t.
|
|
2534
|
+
tmp = !(tmp0__anonymous__q1qw7t.k3q_1 === 'WAITING');
|
|
2535
2535
|
} else {
|
|
2536
2536
|
tmp = false;
|
|
2537
2537
|
}
|
|
@@ -2539,7 +2539,7 @@
|
|
|
2539
2539
|
var tmp$ret$0;
|
|
2540
2540
|
$l$block_0: {
|
|
2541
2541
|
// Inline function 'kotlin.collections.all' call
|
|
2542
|
-
var tmp0_all = state.
|
|
2542
|
+
var tmp0_all = state.w2x().players;
|
|
2543
2543
|
var tmp_0;
|
|
2544
2544
|
if (isInterface(tmp0_all, Collection)) {
|
|
2545
2545
|
tmp_0 = tmp0_all.l();
|
|
@@ -2555,7 +2555,7 @@
|
|
|
2555
2555
|
var element = tmp0_iterator.h();
|
|
2556
2556
|
var tmp$ret$1;
|
|
2557
2557
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
2558
|
-
tmp$ret$1 = element.
|
|
2558
|
+
tmp$ret$1 = element.p31_1.d2j_1.isNotAlive;
|
|
2559
2559
|
if (!tmp$ret$1) {
|
|
2560
2560
|
tmp$ret$0 = false;
|
|
2561
2561
|
break $l$block_0;
|
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
var tmp_1 = get_TAG();
|
|
2568
2568
|
var tmp$ret$4;
|
|
2569
2569
|
// Inline function 'kotlin.collections.map' call
|
|
2570
|
-
var tmp2_map = state.
|
|
2570
|
+
var tmp2_map = state.w2x().players;
|
|
2571
2571
|
var tmp$ret$3;
|
|
2572
2572
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2573
2573
|
var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
|
|
@@ -2576,18 +2576,18 @@
|
|
|
2576
2576
|
var item = tmp0_iterator_0.h();
|
|
2577
2577
|
var tmp$ret$2;
|
|
2578
2578
|
// Inline function 'com.debertz.logic.server.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
2579
|
-
tmp$ret$2 = to(item.
|
|
2579
|
+
tmp$ret$2 = to(item.y2h(), item.p31_1.d2j_1);
|
|
2580
2580
|
tmp1_mapTo.a(tmp$ret$2);
|
|
2581
2581
|
}
|
|
2582
2582
|
tmp$ret$3 = tmp1_mapTo;
|
|
2583
2583
|
tmp$ret$4 = tmp$ret$3;
|
|
2584
|
-
this.
|
|
2584
|
+
this.p7r_1.w(tmp_1, 'CheckBotsMiddleware: Only bots are playing: ' + tmp$ret$4);
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
2587
|
next(tmp0__anonymous__q1qw7t);
|
|
2588
2588
|
};
|
|
2589
|
-
protoOf(_no_name_provided__qut3iv_5).
|
|
2590
|
-
return this.
|
|
2589
|
+
protoOf(_no_name_provided__qut3iv_5).e2r = function (store, next, action) {
|
|
2590
|
+
return this.d4l(store, next, action);
|
|
2591
2591
|
};
|
|
2592
2592
|
function checkGameIsFinishingWaitForRoomDeleteMiddleware(logger) {
|
|
2593
2593
|
return middleware(checkGameIsFinishingWaitForRoomDeleteMiddleware$lambda(logger));
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
return function (store, next, action) {
|
|
2597
2597
|
var state = store.state;
|
|
2598
2598
|
var tmp;
|
|
2599
|
-
if (state.
|
|
2599
|
+
if (state.x2x()) {
|
|
2600
2600
|
var tmp_0;
|
|
2601
2601
|
var tmp_1;
|
|
2602
2602
|
if (get_isFinished(state)) {
|
|
@@ -2628,52 +2628,52 @@
|
|
|
2628
2628
|
}
|
|
2629
2629
|
function _no_name_provided__qut3iv_6() {
|
|
2630
2630
|
}
|
|
2631
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
2631
|
+
protoOf(_no_name_provided__qut3iv_6).d2r = function (action) {
|
|
2632
2632
|
return action instanceof UpdateServerConfigAction;
|
|
2633
2633
|
};
|
|
2634
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
2634
|
+
protoOf(_no_name_provided__qut3iv_6).k4q = function (state, action) {
|
|
2635
2635
|
var tmp$ret$0;
|
|
2636
2636
|
// Inline function 'com.debertz.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
2637
2637
|
var tmp0__anonymous__q1qw7t = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
2638
|
-
tmp$ret$0 = state.
|
|
2638
|
+
tmp$ret$0 = state.e4h(VOID, get_serverState(state).q7r(tmp0__anonymous__q1qw7t.r7p_1));
|
|
2639
2639
|
return tmp$ret$0;
|
|
2640
2640
|
};
|
|
2641
|
-
protoOf(_no_name_provided__qut3iv_6).
|
|
2642
|
-
return this.
|
|
2641
|
+
protoOf(_no_name_provided__qut3iv_6).r2p = function (state, action) {
|
|
2642
|
+
return this.k4q(state instanceof AppState ? state : THROW_CCE(), action);
|
|
2643
2643
|
};
|
|
2644
2644
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer) {
|
|
2645
2645
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer);
|
|
2646
|
-
this.
|
|
2646
|
+
this.s7r_1 = logger;
|
|
2647
2647
|
}
|
|
2648
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
2649
|
-
var serverState = get_serverStateOrNull(state.
|
|
2648
|
+
protoOf(ServerMechanicLifecycleReducer).y4r = function (state, action) {
|
|
2649
|
+
var serverState = get_serverStateOrNull(state.t2w_1);
|
|
2650
2650
|
var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
2651
|
-
var tmp0_$this = this.
|
|
2652
|
-
var tmp1_id = action.
|
|
2653
|
-
var tmp2_version = action.
|
|
2654
|
-
var tmp3_config = action.
|
|
2655
|
-
var tmp4_users = action.
|
|
2656
|
-
var tmp5_gameCreatorPlayerId = action.
|
|
2657
|
-
var tmp7_tableOrNull = tmp0_$this.
|
|
2651
|
+
var tmp0_$this = this.b4s_1;
|
|
2652
|
+
var tmp1_id = action.a3q_1;
|
|
2653
|
+
var tmp2_version = action.b3q_1;
|
|
2654
|
+
var tmp3_config = action.z3p_1;
|
|
2655
|
+
var tmp4_users = action.d3q_1;
|
|
2656
|
+
var tmp5_gameCreatorPlayerId = action.c3q_1;
|
|
2657
|
+
var tmp7_tableOrNull = tmp0_$this.q4s(tmp1_id, tmp3_config, tmp2_version, tmp4_users, tmp5_gameCreatorPlayerId);
|
|
2658
2658
|
var tmp;
|
|
2659
2659
|
if (serverState == null) {
|
|
2660
|
-
this.
|
|
2661
|
-
tmp = Companion_getInstance_5().
|
|
2660
|
+
this.s7r_1.w(VOID, 'ServerPayload is not onStart');
|
|
2661
|
+
tmp = Companion_getInstance_5().e7p();
|
|
2662
2662
|
} else {
|
|
2663
2663
|
tmp = serverState;
|
|
2664
2664
|
}
|
|
2665
2665
|
var tmp8_payload = tmp;
|
|
2666
|
-
return state.
|
|
2666
|
+
return state.e4h(tmp7_tableOrNull, tmp8_payload, tmp6_gameLifecycleState);
|
|
2667
2667
|
};
|
|
2668
2668
|
function Companion() {
|
|
2669
2669
|
Companion_instance = this;
|
|
2670
2670
|
}
|
|
2671
|
-
protoOf(Companion).
|
|
2671
|
+
protoOf(Companion).t7r = function (config) {
|
|
2672
2672
|
return new ServerState(config);
|
|
2673
2673
|
};
|
|
2674
|
-
protoOf(Companion).
|
|
2674
|
+
protoOf(Companion).e7p = function (config, $super) {
|
|
2675
2675
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
2676
|
-
return $super === VOID ? this.
|
|
2676
|
+
return $super === VOID ? this.t7r(config) : $super.t7r.call(this, config);
|
|
2677
2677
|
};
|
|
2678
2678
|
var Companion_instance;
|
|
2679
2679
|
function Companion_getInstance_5() {
|
|
@@ -2683,16 +2683,16 @@
|
|
|
2683
2683
|
}
|
|
2684
2684
|
function ServerState(config) {
|
|
2685
2685
|
Companion_getInstance_5();
|
|
2686
|
-
this.
|
|
2686
|
+
this.f7p_1 = config;
|
|
2687
2687
|
}
|
|
2688
|
-
protoOf(ServerState).
|
|
2688
|
+
protoOf(ServerState).q7r = function (config) {
|
|
2689
2689
|
return new ServerState(config);
|
|
2690
2690
|
};
|
|
2691
2691
|
protoOf(ServerState).toString = function () {
|
|
2692
|
-
return 'ServerState(config=' + this.
|
|
2692
|
+
return 'ServerState(config=' + this.f7p_1 + ')';
|
|
2693
2693
|
};
|
|
2694
2694
|
protoOf(ServerState).hashCode = function () {
|
|
2695
|
-
return this.
|
|
2695
|
+
return this.f7p_1.hashCode();
|
|
2696
2696
|
};
|
|
2697
2697
|
protoOf(ServerState).equals = function (other) {
|
|
2698
2698
|
if (this === other)
|
|
@@ -2700,14 +2700,14 @@
|
|
|
2700
2700
|
if (!(other instanceof ServerState))
|
|
2701
2701
|
return false;
|
|
2702
2702
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
2703
|
-
if (!this.
|
|
2703
|
+
if (!this.f7p_1.equals(tmp0_other_with_cast.f7p_1))
|
|
2704
2704
|
return false;
|
|
2705
2705
|
return true;
|
|
2706
2706
|
};
|
|
2707
2707
|
function get_serverState(_this__u8e3s4) {
|
|
2708
2708
|
var tmp$ret$2;
|
|
2709
2709
|
// Inline function 'kotlin.requireNotNull' call
|
|
2710
|
-
var tmp0_requireNotNull = _this__u8e3s4.
|
|
2710
|
+
var tmp0_requireNotNull = _this__u8e3s4.t2w_1;
|
|
2711
2711
|
// Inline function 'kotlin.contracts.contract' call
|
|
2712
2712
|
var tmp$ret$1;
|
|
2713
2713
|
$l$block: {
|
|
@@ -2737,7 +2737,7 @@
|
|
|
2737
2737
|
}
|
|
2738
2738
|
function prepareConfigObjectInternal($this, map) {
|
|
2739
2739
|
var jsObject = {};
|
|
2740
|
-
var tmp = map.
|
|
2740
|
+
var tmp = map.z1('players');
|
|
2741
2741
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
2742
2742
|
var tmp_0;
|
|
2743
2743
|
if (tmp0_safe_receiver == null) {
|
|
@@ -2786,7 +2786,7 @@
|
|
|
2786
2786
|
tmp_1 = tmp$ret$5;
|
|
2787
2787
|
}
|
|
2788
2788
|
var players = tmp_1;
|
|
2789
|
-
var tmp_3 = map.
|
|
2789
|
+
var tmp_3 = map.z1('points');
|
|
2790
2790
|
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
2791
2791
|
var tmp_4;
|
|
2792
2792
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2835,7 +2835,7 @@
|
|
|
2835
2835
|
tmp_5 = tmp$ret$11;
|
|
2836
2836
|
}
|
|
2837
2837
|
var points = tmp_5;
|
|
2838
|
-
var tmp_7 = map.
|
|
2838
|
+
var tmp_7 = map.z1('timeoutTime');
|
|
2839
2839
|
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
2840
2840
|
var tmp_8;
|
|
2841
2841
|
if (tmp4_safe_receiver == null) {
|
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
tmp_9 = tmp$ret$17;
|
|
2885
2885
|
}
|
|
2886
2886
|
var timeoutTime = tmp_9;
|
|
2887
|
-
var tmp_11 = map.
|
|
2887
|
+
var tmp_11 = map.z1('rulesPreset');
|
|
2888
2888
|
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
2889
2889
|
var tmp_12;
|
|
2890
2890
|
if (tmp6_safe_receiver == null) {
|
|
@@ -2933,7 +2933,7 @@
|
|
|
2933
2933
|
tmp_13 = tmp$ret$23;
|
|
2934
2934
|
}
|
|
2935
2935
|
var rulesPreset = tmp_13;
|
|
2936
|
-
var tmp_15 = map.
|
|
2936
|
+
var tmp_15 = map.z1('isChatEnabled');
|
|
2937
2937
|
var isChatEnabled = (!(tmp_15 == null) ? typeof tmp_15 === 'boolean' : false) ? tmp_15 : null;
|
|
2938
2938
|
var tmp8_elvis_lhs = players;
|
|
2939
2939
|
var tmp_16;
|
|
@@ -3005,7 +3005,7 @@
|
|
|
3005
3005
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3006
3006
|
var tmp$ret$33;
|
|
3007
3007
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3008
|
-
tmp$ret$33 = item.
|
|
3008
|
+
tmp$ret$33 = item.p5_1;
|
|
3009
3009
|
tmp0_mapTo.a(tmp$ret$33);
|
|
3010
3010
|
}
|
|
3011
3011
|
tmp$ret$34 = tmp0_mapTo;
|
|
@@ -3021,7 +3021,7 @@
|
|
|
3021
3021
|
return jsObject;
|
|
3022
3022
|
}
|
|
3023
3023
|
function validateTimeoutTime($this, timeoutTime) {
|
|
3024
|
-
if (!listOf_0([15, 30, 45]).
|
|
3024
|
+
if (!listOf_0([15, 30, 45]).a1(timeoutTime)) {
|
|
3025
3025
|
throw IllegalStateException_init_$Create$("Time out time allowed: 20, 40, 60, but it's " + timeoutTime);
|
|
3026
3026
|
}
|
|
3027
3027
|
}
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
}
|
|
3046
3046
|
tmp$ret$1 = tmp0_mapTo;
|
|
3047
3047
|
tmp$ret$2 = tmp$ret$1;
|
|
3048
|
-
if (!tmp$ret$2.
|
|
3048
|
+
if (!tmp$ret$2.a1(players)) {
|
|
3049
3049
|
throw IllegalStateException_init_$Create$('Not valid players mode ' + players);
|
|
3050
3050
|
}
|
|
3051
3051
|
}
|
|
@@ -3069,7 +3069,7 @@
|
|
|
3069
3069
|
}
|
|
3070
3070
|
tmp$ret$1 = tmp0_mapTo;
|
|
3071
3071
|
tmp$ret$2 = tmp$ret$1;
|
|
3072
|
-
if (!tmp$ret$2.
|
|
3072
|
+
if (!tmp$ret$2.a1(points)) {
|
|
3073
3073
|
throw IllegalStateException_init_$Create$('Not valid points mode ' + points);
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
@@ -3088,12 +3088,12 @@
|
|
|
3088
3088
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3089
3089
|
var tmp$ret$0;
|
|
3090
3090
|
// Inline function 'GameHelperImpl.validateRulesSetType.<anonymous>' call
|
|
3091
|
-
tmp$ret$0 = item.
|
|
3091
|
+
tmp$ret$0 = item.p5_1;
|
|
3092
3092
|
tmp0_mapTo.a(tmp$ret$0);
|
|
3093
3093
|
}
|
|
3094
3094
|
tmp$ret$1 = tmp0_mapTo;
|
|
3095
3095
|
tmp$ret$2 = tmp$ret$1;
|
|
3096
|
-
if (!tmp$ret$2.
|
|
3096
|
+
if (!tmp$ret$2.a1(rulesSetType)) {
|
|
3097
3097
|
throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
|
|
3098
3098
|
}
|
|
3099
3099
|
}
|
|
@@ -3111,10 +3111,10 @@
|
|
|
3111
3111
|
}
|
|
3112
3112
|
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
3113
3113
|
var state = store.state;
|
|
3114
|
-
if (!state.
|
|
3114
|
+
if (!state.x2x()) {
|
|
3115
3115
|
return playerIds;
|
|
3116
3116
|
}
|
|
3117
|
-
var players = state.
|
|
3117
|
+
var players = state.w2x().players;
|
|
3118
3118
|
var tmp$ret$9;
|
|
3119
3119
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3120
3120
|
var tmp$ret$8;
|
|
@@ -3148,7 +3148,7 @@
|
|
|
3148
3148
|
var element = tmp0_iterator.h();
|
|
3149
3149
|
var tmp$ret$3;
|
|
3150
3150
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3151
|
-
tmp$ret$3 = element.
|
|
3151
|
+
tmp$ret$3 = element.p31_1.d2j_1.isLive;
|
|
3152
3152
|
if (tmp$ret$3) {
|
|
3153
3153
|
tmp1_filterTo.a(element);
|
|
3154
3154
|
}
|
|
@@ -3164,7 +3164,7 @@
|
|
|
3164
3164
|
var item_0 = tmp0_iterator_0.h();
|
|
3165
3165
|
var tmp$ret$6;
|
|
3166
3166
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3167
|
-
tmp$ret$6 = item_0.
|
|
3167
|
+
tmp$ret$6 = item_0.y2h();
|
|
3168
3168
|
tmp3_mapTo.a(tmp$ret$6);
|
|
3169
3169
|
}
|
|
3170
3170
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -3175,10 +3175,10 @@
|
|
|
3175
3175
|
};
|
|
3176
3176
|
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
3177
3177
|
var state = store.state;
|
|
3178
|
-
if (!state.
|
|
3178
|
+
if (!state.x2x()) {
|
|
3179
3179
|
return playerIds;
|
|
3180
3180
|
}
|
|
3181
|
-
var players = state.
|
|
3181
|
+
var players = state.w2x().players;
|
|
3182
3182
|
var tmp$ret$9;
|
|
3183
3183
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3184
3184
|
var tmp$ret$8;
|
|
@@ -3212,7 +3212,7 @@
|
|
|
3212
3212
|
var element = tmp0_iterator.h();
|
|
3213
3213
|
var tmp$ret$3;
|
|
3214
3214
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3215
|
-
tmp$ret$3 = element.
|
|
3215
|
+
tmp$ret$3 = element.o31_1.isBot;
|
|
3216
3216
|
if (tmp$ret$3) {
|
|
3217
3217
|
tmp1_filterTo.a(element);
|
|
3218
3218
|
}
|
|
@@ -3228,7 +3228,7 @@
|
|
|
3228
3228
|
var item_0 = tmp0_iterator_0.h();
|
|
3229
3229
|
var tmp$ret$6;
|
|
3230
3230
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3231
|
-
tmp$ret$6 = item_0.
|
|
3231
|
+
tmp$ret$6 = item_0.y2h();
|
|
3232
3232
|
tmp3_mapTo.a(tmp$ret$6);
|
|
3233
3233
|
}
|
|
3234
3234
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -3239,10 +3239,10 @@
|
|
|
3239
3239
|
};
|
|
3240
3240
|
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
3241
3241
|
var state = store.state;
|
|
3242
|
-
if (!state.
|
|
3242
|
+
if (!state.x2x()) {
|
|
3243
3243
|
return playerIds;
|
|
3244
3244
|
}
|
|
3245
|
-
var players = state.
|
|
3245
|
+
var players = state.w2x().players;
|
|
3246
3246
|
var tmp$ret$9;
|
|
3247
3247
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3248
3248
|
var tmp$ret$8;
|
|
@@ -3276,7 +3276,7 @@
|
|
|
3276
3276
|
var element = tmp0_iterator.h();
|
|
3277
3277
|
var tmp$ret$3;
|
|
3278
3278
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3279
|
-
tmp$ret$3 = !element.
|
|
3279
|
+
tmp$ret$3 = !element.o31_1.isBot;
|
|
3280
3280
|
if (tmp$ret$3) {
|
|
3281
3281
|
tmp1_filterTo.a(element);
|
|
3282
3282
|
}
|
|
@@ -3292,7 +3292,7 @@
|
|
|
3292
3292
|
var item_0 = tmp0_iterator_0.h();
|
|
3293
3293
|
var tmp$ret$6;
|
|
3294
3294
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3295
|
-
tmp$ret$6 = item_0.
|
|
3295
|
+
tmp$ret$6 = item_0.y2h();
|
|
3296
3296
|
tmp3_mapTo.a(tmp$ret$6);
|
|
3297
3297
|
}
|
|
3298
3298
|
tmp$ret$7 = tmp3_mapTo;
|
|
@@ -3303,21 +3303,21 @@
|
|
|
3303
3303
|
};
|
|
3304
3304
|
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
3305
3305
|
var state = store.state;
|
|
3306
|
-
if (!state.
|
|
3306
|
+
if (!state.x2x()) {
|
|
3307
3307
|
return null;
|
|
3308
3308
|
}
|
|
3309
|
-
return get_serverUserPayload(getPlayer(state.
|
|
3309
|
+
return get_serverUserPayload(getPlayer(state.w2x().players, playerId).o31_1).u7r_1;
|
|
3310
3310
|
};
|
|
3311
3311
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
3312
3312
|
var state = store.state;
|
|
3313
|
-
if (!state.
|
|
3313
|
+
if (!state.x2x()) {
|
|
3314
3314
|
return null;
|
|
3315
3315
|
}
|
|
3316
3316
|
var tmp$ret$3;
|
|
3317
3317
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3318
3318
|
var tmp$ret$2;
|
|
3319
3319
|
// Inline function 'kotlin.collections.map' call
|
|
3320
|
-
var tmp1_map = state.
|
|
3320
|
+
var tmp1_map = state.w2x().players;
|
|
3321
3321
|
var tmp$ret$1;
|
|
3322
3322
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3323
3323
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -3326,7 +3326,7 @@
|
|
|
3326
3326
|
var item = tmp0_iterator.h();
|
|
3327
3327
|
var tmp$ret$0;
|
|
3328
3328
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
3329
|
-
tmp$ret$0 = get_serverUserPayload(item.
|
|
3329
|
+
tmp$ret$0 = get_serverUserPayload(item.o31_1).u7r_1;
|
|
3330
3330
|
tmp0_mapTo.a(tmp$ret$0);
|
|
3331
3331
|
}
|
|
3332
3332
|
tmp$ret$1 = tmp0_mapTo;
|
|
@@ -3401,7 +3401,7 @@
|
|
|
3401
3401
|
var tmp_2 = (!(tmp_1 == null) ? typeof tmp_1 === 'boolean' : false) ? tmp_1 : THROW_CCE();
|
|
3402
3402
|
var tmp_3 = getValue(map, 'protectBella');
|
|
3403
3403
|
var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'boolean' : false) ? tmp_3 : THROW_CCE();
|
|
3404
|
-
var tmp_5 = map.
|
|
3404
|
+
var tmp_5 = map.z1('oneTryToProtectBella');
|
|
3405
3405
|
var tmp0_elvis_lhs = (!(tmp_5 == null) ? typeof tmp_5 === 'boolean' : false) ? tmp_5 : null;
|
|
3406
3406
|
var tmp_6 = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
3407
3407
|
var tmp_7 = getValue(map, 'enableFourSevensCombination');
|
|
@@ -3433,7 +3433,7 @@
|
|
|
3433
3433
|
};
|
|
3434
3434
|
protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
|
|
3435
3435
|
var map = mapOfObject(config);
|
|
3436
|
-
var tmp = map.
|
|
3436
|
+
var tmp = map.z1('limit');
|
|
3437
3437
|
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
3438
3438
|
var tmp_0;
|
|
3439
3439
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3459,7 +3459,7 @@
|
|
|
3459
3459
|
};
|
|
3460
3460
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
3461
3461
|
var map = mapOfObject(config);
|
|
3462
|
-
var rules = map.
|
|
3462
|
+
var rules = map.z1('rules');
|
|
3463
3463
|
var tmp = getValue(map, 'players');
|
|
3464
3464
|
var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
|
|
3465
3465
|
var tmp_1 = getValue(map, 'points');
|
|
@@ -3486,7 +3486,7 @@
|
|
|
3486
3486
|
};
|
|
3487
3487
|
protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
|
|
3488
3488
|
var tmp0_subject = rulesSetType;
|
|
3489
|
-
var tmp0 = tmp0_subject.
|
|
3489
|
+
var tmp0 = tmp0_subject.q5_1;
|
|
3490
3490
|
var tmp;
|
|
3491
3491
|
switch (tmp0) {
|
|
3492
3492
|
case 0:
|
|
@@ -3512,15 +3512,15 @@
|
|
|
3512
3512
|
protoOf(GameHelperImpl).getRulesByString = function (name) {
|
|
3513
3513
|
var tmp0_subject = name;
|
|
3514
3514
|
var tmp;
|
|
3515
|
-
if (tmp0_subject === RulesSetType_belot_getInstance().
|
|
3515
|
+
if (tmp0_subject === RulesSetType_belot_getInstance().p5_1) {
|
|
3516
3516
|
tmp = Companion_getInstance_3().belot();
|
|
3517
|
-
} else if (tmp0_subject === RulesSetType_klabor_getInstance().
|
|
3517
|
+
} else if (tmp0_subject === RulesSetType_klabor_getInstance().p5_1) {
|
|
3518
3518
|
tmp = Companion_getInstance_3().klabor();
|
|
3519
|
-
} else if (tmp0_subject === RulesSetType_debertzCommon_getInstance().
|
|
3519
|
+
} else if (tmp0_subject === RulesSetType_debertzCommon_getInstance().p5_1) {
|
|
3520
3520
|
tmp = Companion_getInstance_3().debertzCommon();
|
|
3521
|
-
} else if (tmp0_subject === RulesSetType_debertzKharkiv_getInstance().
|
|
3521
|
+
} else if (tmp0_subject === RulesSetType_debertzKharkiv_getInstance().p5_1) {
|
|
3522
3522
|
tmp = Companion_getInstance_3().kharkiv();
|
|
3523
|
-
} else if (tmp0_subject === RulesSetType_custom_getInstance().
|
|
3523
|
+
} else if (tmp0_subject === RulesSetType_custom_getInstance().p5_1) {
|
|
3524
3524
|
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
3525
3525
|
} else {
|
|
3526
3526
|
throw IllegalStateException_init_$Create$("Can't support this " + name);
|
|
@@ -3581,21 +3581,21 @@
|
|
|
3581
3581
|
function getRandomAvatarData_0($this) {
|
|
3582
3582
|
var avatarSetNumber = Default_getInstance().n(values_2().length);
|
|
3583
3583
|
var avatarSet = values_2()[avatarSetNumber];
|
|
3584
|
-
return new AvatarData(Default_getInstance().n(avatarSet.
|
|
3584
|
+
return new AvatarData(Default_getInstance().n(avatarSet.y7r()), avatarSet);
|
|
3585
3585
|
}
|
|
3586
3586
|
function getAvatarUrlByIndex($this, data) {
|
|
3587
3587
|
return mapToPattern($this, data);
|
|
3588
3588
|
}
|
|
3589
3589
|
function getNicknameByIndex($this, data) {
|
|
3590
|
-
return data.
|
|
3590
|
+
return data.a7s_1.b7s(data.z7r_1);
|
|
3591
3591
|
}
|
|
3592
3592
|
function mapToPattern($this, data) {
|
|
3593
3593
|
Companion_getInstance_6();
|
|
3594
|
-
return 'debertz://raspberry.games' + '/' + data.
|
|
3594
|
+
return 'debertz://raspberry.games' + '/' + data.a7s_1.q5_1 + '/' + data.z7r_1;
|
|
3595
3595
|
}
|
|
3596
3596
|
function Companion_0() {
|
|
3597
3597
|
Companion_instance_0 = this;
|
|
3598
|
-
this.
|
|
3598
|
+
this.c7s_1 = 'debertz://raspberry.games';
|
|
3599
3599
|
var tmp = this;
|
|
3600
3600
|
var tmp$ret$2;
|
|
3601
3601
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3606,7 +3606,7 @@
|
|
|
3606
3606
|
tmp$ret$0 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
3607
3607
|
tmp$ret$1 = tmp$ret$0;
|
|
3608
3608
|
tmp$ret$2 = tmp$ret$1;
|
|
3609
|
-
tmp.
|
|
3609
|
+
tmp.d7s_1 = tmp$ret$2;
|
|
3610
3610
|
var tmp_0 = this;
|
|
3611
3611
|
var tmp$ret$5;
|
|
3612
3612
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3617,7 +3617,7 @@
|
|
|
3617
3617
|
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'];
|
|
3618
3618
|
tmp$ret$4 = tmp$ret$3;
|
|
3619
3619
|
tmp$ret$5 = tmp$ret$4;
|
|
3620
|
-
tmp_0.
|
|
3620
|
+
tmp_0.e7s_1 = tmp$ret$5;
|
|
3621
3621
|
var tmp_1 = this;
|
|
3622
3622
|
var tmp$ret$8;
|
|
3623
3623
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3628,7 +3628,7 @@
|
|
|
3628
3628
|
tmp$ret$6 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
3629
3629
|
tmp$ret$7 = tmp$ret$6;
|
|
3630
3630
|
tmp$ret$8 = tmp$ret$7;
|
|
3631
|
-
tmp_1.
|
|
3631
|
+
tmp_1.f7s_1 = tmp$ret$8;
|
|
3632
3632
|
var tmp_2 = this;
|
|
3633
3633
|
var tmp$ret$11;
|
|
3634
3634
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3639,7 +3639,7 @@
|
|
|
3639
3639
|
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'];
|
|
3640
3640
|
tmp$ret$10 = tmp$ret$9;
|
|
3641
3641
|
tmp$ret$11 = tmp$ret$10;
|
|
3642
|
-
tmp_2.
|
|
3642
|
+
tmp_2.g7s_1 = tmp$ret$11;
|
|
3643
3643
|
}
|
|
3644
3644
|
var Companion_instance_0;
|
|
3645
3645
|
function Companion_getInstance_6() {
|
|
@@ -3650,16 +3650,16 @@
|
|
|
3650
3650
|
function AvatarSet(name, ordinal) {
|
|
3651
3651
|
Enum.call(this, name, ordinal);
|
|
3652
3652
|
}
|
|
3653
|
-
protoOf(AvatarSet).
|
|
3653
|
+
protoOf(AvatarSet).y7r = function () {
|
|
3654
3654
|
var tmp0_subject = this;
|
|
3655
|
-
var tmp0 = tmp0_subject.
|
|
3655
|
+
var tmp0 = tmp0_subject.q5_1;
|
|
3656
3656
|
var tmp;
|
|
3657
3657
|
switch (tmp0) {
|
|
3658
3658
|
case 0:
|
|
3659
|
-
tmp = Companion_getInstance_6().
|
|
3659
|
+
tmp = Companion_getInstance_6().e7s_1.length;
|
|
3660
3660
|
break;
|
|
3661
3661
|
case 1:
|
|
3662
|
-
tmp = Companion_getInstance_6().
|
|
3662
|
+
tmp = Companion_getInstance_6().g7s_1.length;
|
|
3663
3663
|
break;
|
|
3664
3664
|
default:
|
|
3665
3665
|
noWhenBranchMatchedException();
|
|
@@ -3667,16 +3667,16 @@
|
|
|
3667
3667
|
}
|
|
3668
3668
|
return tmp;
|
|
3669
3669
|
};
|
|
3670
|
-
protoOf(AvatarSet).
|
|
3670
|
+
protoOf(AvatarSet).b7s = function (index) {
|
|
3671
3671
|
var tmp0_subject = this;
|
|
3672
|
-
var tmp0 = tmp0_subject.
|
|
3672
|
+
var tmp0 = tmp0_subject.q5_1;
|
|
3673
3673
|
var tmp;
|
|
3674
3674
|
switch (tmp0) {
|
|
3675
3675
|
case 0:
|
|
3676
|
-
tmp = Companion_getInstance_6().
|
|
3676
|
+
tmp = Companion_getInstance_6().e7s_1[index];
|
|
3677
3677
|
break;
|
|
3678
3678
|
case 1:
|
|
3679
|
-
tmp = Companion_getInstance_6().
|
|
3679
|
+
tmp = Companion_getInstance_6().g7s_1[index];
|
|
3680
3680
|
break;
|
|
3681
3681
|
default:
|
|
3682
3682
|
noWhenBranchMatchedException();
|
|
@@ -3685,8 +3685,8 @@
|
|
|
3685
3685
|
return tmp;
|
|
3686
3686
|
};
|
|
3687
3687
|
function AvatarData(index, avatarSet) {
|
|
3688
|
-
this.
|
|
3689
|
-
this.
|
|
3688
|
+
this.z7r_1 = index;
|
|
3689
|
+
this.a7s_1 = avatarSet;
|
|
3690
3690
|
}
|
|
3691
3691
|
function AvatarSet_ORIGIN_getInstance() {
|
|
3692
3692
|
AvatarSet_initEntries();
|
|
@@ -3699,7 +3699,7 @@
|
|
|
3699
3699
|
function GameResourcesImpl() {
|
|
3700
3700
|
Companion_getInstance_6();
|
|
3701
3701
|
}
|
|
3702
|
-
protoOf(GameResourcesImpl).
|
|
3702
|
+
protoOf(GameResourcesImpl).v7r = function (playerId, existingNicknames) {
|
|
3703
3703
|
var data = getRandomAvatarData(this, existingNicknames);
|
|
3704
3704
|
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
3705
3705
|
};
|
|
@@ -3748,19 +3748,19 @@
|
|
|
3748
3748
|
}
|
|
3749
3749
|
function createDI($this, logger, serverConfig, logicConfig, botConfig, externalReducers, externalMiddlewares) {
|
|
3750
3750
|
var tmp = Companion_getInstance_4();
|
|
3751
|
-
return tmp.
|
|
3751
|
+
return tmp.y2a(VOID, GameServerEngineControllerImpl$createDI$lambda(serverConfig, logicConfig, botConfig, externalReducers, externalMiddlewares, logger));
|
|
3752
3752
|
}
|
|
3753
3753
|
function _no_name_provided__qut3iv_7($item) {
|
|
3754
|
-
this.
|
|
3754
|
+
this.l7s_1 = $item;
|
|
3755
3755
|
}
|
|
3756
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
3756
|
+
protoOf(_no_name_provided__qut3iv_7).d2r = function (action) {
|
|
3757
3757
|
return isInterface(action, Action);
|
|
3758
3758
|
};
|
|
3759
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
3760
|
-
return this.
|
|
3759
|
+
protoOf(_no_name_provided__qut3iv_7).k4q = function (state, action) {
|
|
3760
|
+
return this.l7s_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3761
3761
|
};
|
|
3762
|
-
protoOf(_no_name_provided__qut3iv_7).
|
|
3763
|
-
return this.
|
|
3762
|
+
protoOf(_no_name_provided__qut3iv_7).r2p = function (state, action) {
|
|
3763
|
+
return this.k4q(state instanceof AppState ? state : THROW_CCE(), action);
|
|
3764
3764
|
};
|
|
3765
3765
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda($gameServer) {
|
|
3766
3766
|
return function () {
|
|
@@ -3776,12 +3776,12 @@
|
|
|
3776
3776
|
var tmp = Default_getInstance();
|
|
3777
3777
|
var tmp$ret$1;
|
|
3778
3778
|
// Inline function 'org.kodein.di.instance' call
|
|
3779
|
-
var tmp_0 = $this$singleton.
|
|
3779
|
+
var tmp_0 = $this$singleton.b2c();
|
|
3780
3780
|
var tmp$ret$0;
|
|
3781
3781
|
// Inline function 'org.kodein.type.generic' call
|
|
3782
3782
|
var tmp_1 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
3783
3783
|
tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
3784
|
-
tmp$ret$1 = tmp_0.
|
|
3784
|
+
tmp$ret$1 = tmp_0.c2c(tmp$ret$0, null);
|
|
3785
3785
|
return new CardsGeneratorProviderImpl(tmp, tmp$ret$1);
|
|
3786
3786
|
}
|
|
3787
3787
|
function GameServerEngineControllerImpl$createDI$lambda($serverConfig, $logicConfig, $botConfig, $externalReducers, $externalMiddlewares, $logger) {
|
|
@@ -3792,50 +3792,50 @@
|
|
|
3792
3792
|
// Inline function 'org.kodein.type.generic' call
|
|
3793
3793
|
var tmp = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
3794
3794
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
3795
|
-
tmp$ret$1 = $this$invoke.
|
|
3795
|
+
tmp$ret$1 = $this$invoke.s2a(tmp$ret$0, null, null);
|
|
3796
3796
|
var tmp_0 = tmp$ret$1;
|
|
3797
3797
|
var tmp$ret$3;
|
|
3798
3798
|
// Inline function 'org.kodein.di.singleton' call
|
|
3799
3799
|
var tmp0_singleton = GameServerEngineControllerImpl$createDI$lambda$lambda($logger);
|
|
3800
|
-
var tmp_1 = $this$invoke.
|
|
3801
|
-
var tmp_2 = $this$invoke.
|
|
3802
|
-
var tmp_3 = $this$invoke.
|
|
3800
|
+
var tmp_1 = $this$invoke.i2c();
|
|
3801
|
+
var tmp_2 = $this$invoke.j2c();
|
|
3802
|
+
var tmp_3 = $this$invoke.h2e();
|
|
3803
3803
|
var tmp$ret$2;
|
|
3804
3804
|
// Inline function 'org.kodein.type.generic' call
|
|
3805
3805
|
var tmp_4 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
3806
3806
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3807
3807
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
3808
|
-
tmp_0.
|
|
3808
|
+
tmp_0.m2e(tmp$ret$3);
|
|
3809
3809
|
var tmp$ret$5;
|
|
3810
3810
|
// Inline function 'org.kodein.di.bind' call
|
|
3811
3811
|
var tmp$ret$4;
|
|
3812
3812
|
// Inline function 'org.kodein.type.generic' call
|
|
3813
3813
|
var tmp_5 = typeToken(createKType(getKClass(CardsGeneratorProvider), arrayOf([]), false));
|
|
3814
3814
|
tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
3815
|
-
tmp$ret$5 = $this$invoke.
|
|
3815
|
+
tmp$ret$5 = $this$invoke.s2a(tmp$ret$4, null, null);
|
|
3816
3816
|
var tmp_6 = tmp$ret$5;
|
|
3817
3817
|
var tmp$ret$7;
|
|
3818
3818
|
// Inline function 'org.kodein.di.singleton' call
|
|
3819
3819
|
var tmp1_singleton = GameServerEngineControllerImpl$createDI$lambda$lambda_0;
|
|
3820
|
-
var tmp_7 = $this$invoke.
|
|
3821
|
-
var tmp_8 = $this$invoke.
|
|
3822
|
-
var tmp_9 = $this$invoke.
|
|
3820
|
+
var tmp_7 = $this$invoke.i2c();
|
|
3821
|
+
var tmp_8 = $this$invoke.j2c();
|
|
3822
|
+
var tmp_9 = $this$invoke.h2e();
|
|
3823
3823
|
var tmp$ret$6;
|
|
3824
3824
|
// Inline function 'org.kodein.type.generic' call
|
|
3825
3825
|
var tmp_10 = typeToken(createKType(getKClass(CardsGeneratorProviderImpl), arrayOf([]), false));
|
|
3826
3826
|
tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3827
3827
|
tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, tmp1_singleton);
|
|
3828
|
-
tmp_6.
|
|
3829
|
-
$this$invoke.
|
|
3830
|
-
$this$invoke.
|
|
3828
|
+
tmp_6.m2e(tmp$ret$7);
|
|
3829
|
+
$this$invoke.u2a(get_coreModule());
|
|
3830
|
+
$this$invoke.u2a(createGameServerDI($serverConfig, $logicConfig, $botConfig, $externalReducers, $externalMiddlewares));
|
|
3831
3831
|
return Unit_getInstance();
|
|
3832
3832
|
};
|
|
3833
3833
|
}
|
|
3834
3834
|
function GameServerEngineControllerImpl(loggerCallback) {
|
|
3835
3835
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3836
|
-
this.
|
|
3836
|
+
this.m7s_1 = loggerCallback;
|
|
3837
3837
|
var tmp = this;
|
|
3838
|
-
var tmp0_safe_receiver = this.
|
|
3838
|
+
var tmp0_safe_receiver = this.m7s_1;
|
|
3839
3839
|
var tmp_0;
|
|
3840
3840
|
if (tmp0_safe_receiver == null) {
|
|
3841
3841
|
tmp_0 = null;
|
|
@@ -3845,38 +3845,38 @@
|
|
|
3845
3845
|
// Inline function 'kotlin.contracts.contract' call
|
|
3846
3846
|
var tmp$ret$0;
|
|
3847
3847
|
// Inline function 'GameServerEngineControllerImpl.logger.<anonymous>' call
|
|
3848
|
-
tmp$ret$0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.
|
|
3848
|
+
tmp$ret$0 = new CombinedGameLogger(listOf(createLoggerOutputWithTablePayload(this.m7s_1)));
|
|
3849
3849
|
tmp$ret$1 = tmp$ret$0;
|
|
3850
3850
|
tmp_0 = tmp$ret$1;
|
|
3851
3851
|
}
|
|
3852
3852
|
var tmp1_elvis_lhs = tmp_0;
|
|
3853
|
-
tmp.
|
|
3854
|
-
this.
|
|
3855
|
-
this.
|
|
3856
|
-
this.
|
|
3857
|
-
this.
|
|
3858
|
-
}
|
|
3859
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3860
|
-
return this.
|
|
3853
|
+
tmp.n7s_1 = tmp1_elvis_lhs == null ? new PlatformGameLogger() : tmp1_elvis_lhs;
|
|
3854
|
+
this.o7s_1 = new ParserHelperImpl(emptyList());
|
|
3855
|
+
this.p7s_1 = new GameHelperImpl();
|
|
3856
|
+
this.q7s_1 = new GameResourcesImpl();
|
|
3857
|
+
this.r7s_1 = new TestHelperImpl(this.n7s_1);
|
|
3858
|
+
}
|
|
3859
|
+
protoOf(GameServerEngineControllerImpl).z7n = function () {
|
|
3860
|
+
return this.o7s_1;
|
|
3861
3861
|
};
|
|
3862
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3863
|
-
return this.
|
|
3862
|
+
protoOf(GameServerEngineControllerImpl).i7s = function () {
|
|
3863
|
+
return this.p7s_1;
|
|
3864
3864
|
};
|
|
3865
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3866
|
-
return this.
|
|
3865
|
+
protoOf(GameServerEngineControllerImpl).j7s = function () {
|
|
3866
|
+
return this.q7s_1;
|
|
3867
3867
|
};
|
|
3868
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3869
|
-
return this.
|
|
3868
|
+
protoOf(GameServerEngineControllerImpl).h7s = function () {
|
|
3869
|
+
return this.r7s_1;
|
|
3870
3870
|
};
|
|
3871
3871
|
protoOf(GameServerEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
3872
|
-
Logger_getInstance().
|
|
3872
|
+
Logger_getInstance().l2t_1 = enabled;
|
|
3873
3873
|
};
|
|
3874
3874
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3875
3875
|
return this.createGameEngineWithLogic();
|
|
3876
3876
|
};
|
|
3877
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3877
|
+
protoOf(GameServerEngineControllerImpl).k7s = function (reducers, middlewares, isPrivateRoom, finishGameIfAllBots, closeIfBotsAtFinish, dealerConfig) {
|
|
3878
3878
|
var loggerOutputWithTablePayload = null;
|
|
3879
|
-
var tmp0_safe_receiver = this.
|
|
3879
|
+
var tmp0_safe_receiver = this.m7s_1;
|
|
3880
3880
|
var tmp;
|
|
3881
3881
|
if (tmp0_safe_receiver == null) {
|
|
3882
3882
|
tmp = null;
|
|
@@ -3886,7 +3886,7 @@
|
|
|
3886
3886
|
// Inline function 'kotlin.contracts.contract' call
|
|
3887
3887
|
var tmp$ret$0;
|
|
3888
3888
|
// Inline function 'GameServerEngineControllerImpl.createGameEngineWithLogic.<anonymous>' call
|
|
3889
|
-
var loggerOutput = createLoggerOutputWithTablePayload(this.
|
|
3889
|
+
var loggerOutput = createLoggerOutputWithTablePayload(this.m7s_1);
|
|
3890
3890
|
loggerOutputWithTablePayload = loggerOutput;
|
|
3891
3891
|
tmp$ret$0 = new CombinedGameLogger(listOf(loggerOutput));
|
|
3892
3892
|
tmp$ret$1 = tmp$ret$0;
|
|
@@ -3895,7 +3895,7 @@
|
|
|
3895
3895
|
var tmp1_elvis_lhs = tmp;
|
|
3896
3896
|
var logger = tmp1_elvis_lhs == null ? new PlatformGameLogger() : tmp1_elvis_lhs;
|
|
3897
3897
|
var tmp_0 = new ServerReduxConfig(finishGameIfAllBots, VOID, VOID, closeIfBotsAtFinish, !isPrivateRoom);
|
|
3898
|
-
var tmp_1 = new LogicReduxConfig(VOID, VOID, VOID, VOID,
|
|
3898
|
+
var tmp_1 = new LogicReduxConfig(VOID, VOID, VOID, VOID, dealerConfig);
|
|
3899
3899
|
var tmp_2 = new BotReduxConfig(VOID, VOID, VOID, false);
|
|
3900
3900
|
var tmp$ret$5;
|
|
3901
3901
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3941,32 +3941,32 @@
|
|
|
3941
3941
|
var tmp$ret$10;
|
|
3942
3942
|
// Inline function 'org.kodein.di.instance' call
|
|
3943
3943
|
var tmp2_instance = get_direct(di);
|
|
3944
|
-
var tmp_4 = tmp2_instance.
|
|
3944
|
+
var tmp_4 = tmp2_instance.b2c();
|
|
3945
3945
|
var tmp$ret$9;
|
|
3946
3946
|
// Inline function 'org.kodein.type.generic' call
|
|
3947
3947
|
var tmp_5 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
3948
3948
|
tmp$ret$9 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
3949
|
-
tmp$ret$10 = tmp_4.
|
|
3949
|
+
tmp$ret$10 = tmp_4.c2c(tmp$ret$9, null);
|
|
3950
3950
|
var gameServer = tmp$ret$10;
|
|
3951
3951
|
var tmp2_safe_receiver = loggerOutputWithTablePayload;
|
|
3952
3952
|
if (tmp2_safe_receiver == null) {
|
|
3953
3953
|
} else {
|
|
3954
3954
|
var tmp_6 = tmp2_safe_receiver;
|
|
3955
|
-
tmp_6.
|
|
3955
|
+
tmp_6.w4s_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda(gameServer);
|
|
3956
3956
|
}
|
|
3957
3957
|
return gameServer;
|
|
3958
3958
|
};
|
|
3959
3959
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
3960
|
-
return this.
|
|
3960
|
+
return this.z7n();
|
|
3961
3961
|
});
|
|
3962
3962
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
3963
|
-
return this.
|
|
3963
|
+
return this.i7s();
|
|
3964
3964
|
});
|
|
3965
3965
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
3966
|
-
return this.
|
|
3966
|
+
return this.j7s();
|
|
3967
3967
|
});
|
|
3968
3968
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
3969
|
-
return this.
|
|
3969
|
+
return this.h7s();
|
|
3970
3970
|
});
|
|
3971
3971
|
function TestHelper() {
|
|
3972
3972
|
}
|
|
@@ -3974,12 +3974,12 @@
|
|
|
3974
3974
|
var tmp$ret$0;
|
|
3975
3975
|
// Inline function 'kotlin.getValue' call
|
|
3976
3976
|
var tmp0_getValue = playerAnswerInteractor$factory_0();
|
|
3977
|
-
tmp$ret$0 = $this.
|
|
3977
|
+
tmp$ret$0 = $this.u7s_1.l1();
|
|
3978
3978
|
return tmp$ret$0;
|
|
3979
3979
|
}
|
|
3980
3980
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3981
3981
|
return function ($this$singleton) {
|
|
3982
|
-
return this$0.
|
|
3982
|
+
return this$0.s7s_1;
|
|
3983
3983
|
};
|
|
3984
3984
|
}
|
|
3985
3985
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3990,22 +3990,22 @@
|
|
|
3990
3990
|
// Inline function 'org.kodein.type.generic' call
|
|
3991
3991
|
var tmp = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
3992
3992
|
tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
3993
|
-
tmp$ret$1 = $this$invoke.
|
|
3993
|
+
tmp$ret$1 = $this$invoke.s2a(tmp$ret$0, null, null);
|
|
3994
3994
|
var tmp_0 = tmp$ret$1;
|
|
3995
3995
|
var tmp$ret$3;
|
|
3996
3996
|
// Inline function 'org.kodein.di.singleton' call
|
|
3997
3997
|
var tmp0_singleton = TestHelperImpl$di$lambda$lambda(this$0);
|
|
3998
|
-
var tmp_1 = $this$invoke.
|
|
3999
|
-
var tmp_2 = $this$invoke.
|
|
4000
|
-
var tmp_3 = $this$invoke.
|
|
3998
|
+
var tmp_1 = $this$invoke.i2c();
|
|
3999
|
+
var tmp_2 = $this$invoke.j2c();
|
|
4000
|
+
var tmp_3 = $this$invoke.h2e();
|
|
4001
4001
|
var tmp$ret$2;
|
|
4002
4002
|
// Inline function 'org.kodein.type.generic' call
|
|
4003
4003
|
var tmp_4 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
4004
4004
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4005
4005
|
tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, tmp0_singleton);
|
|
4006
|
-
tmp_0.
|
|
4007
|
-
$this$invoke.
|
|
4008
|
-
$this$invoke.
|
|
4006
|
+
tmp_0.m2e(tmp$ret$3);
|
|
4007
|
+
$this$invoke.u2a(jsonModule(emptyList()));
|
|
4008
|
+
$this$invoke.u2a(get_botGameModule());
|
|
4009
4009
|
return Unit_getInstance();
|
|
4010
4010
|
};
|
|
4011
4011
|
}
|
|
@@ -4013,23 +4013,23 @@
|
|
|
4013
4013
|
return emptyMap();
|
|
4014
4014
|
}
|
|
4015
4015
|
function TestHelperImpl(gameLogger) {
|
|
4016
|
-
this.
|
|
4016
|
+
this.s7s_1 = gameLogger;
|
|
4017
4017
|
var tmp = this;
|
|
4018
4018
|
var tmp_0 = Companion_getInstance_4();
|
|
4019
|
-
tmp.
|
|
4019
|
+
tmp.t7s_1 = tmp_0.y2a(VOID, TestHelperImpl$di$lambda(this));
|
|
4020
4020
|
var tmp_1 = this;
|
|
4021
4021
|
var tmp$ret$1;
|
|
4022
4022
|
// Inline function 'org.kodein.di.instance' call
|
|
4023
|
-
var tmp0_instance = this.
|
|
4023
|
+
var tmp0_instance = this.t7s_1;
|
|
4024
4024
|
var tmp$ret$0;
|
|
4025
4025
|
// Inline function 'org.kodein.type.generic' call
|
|
4026
4026
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4027
4027
|
tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4028
4028
|
tmp$ret$1 = Instance(tmp0_instance, tmp$ret$0, null);
|
|
4029
|
-
tmp_1.
|
|
4029
|
+
tmp_1.u7s_1 = tmp$ret$1.j2g(this, playerAnswerInteractor$factory());
|
|
4030
4030
|
}
|
|
4031
4031
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4032
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
4032
|
+
return _get_playerAnswerInteractor__msggz1(this).u4b(playerId, table, botConfig);
|
|
4033
4033
|
};
|
|
4034
4034
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4035
4035
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4037,7 +4037,7 @@
|
|
|
4037
4037
|
var tmp$ret$0;
|
|
4038
4038
|
$l$block_0: {
|
|
4039
4039
|
// Inline function 'kotlin.collections.any' call
|
|
4040
|
-
var tmp0_any = mechanicAction.
|
|
4040
|
+
var tmp0_any = mechanicAction.o4i();
|
|
4041
4041
|
var tmp;
|
|
4042
4042
|
if (isInterface(tmp0_any, Collection)) {
|
|
4043
4043
|
tmp = tmp0_any.l();
|
|
@@ -4072,7 +4072,7 @@
|
|
|
4072
4072
|
var tmp$ret$0;
|
|
4073
4073
|
$l$block_0: {
|
|
4074
4074
|
// Inline function 'kotlin.collections.any' call
|
|
4075
|
-
var tmp0_any = action.
|
|
4075
|
+
var tmp0_any = action.o4i();
|
|
4076
4076
|
var tmp;
|
|
4077
4077
|
if (isInterface(tmp0_any, Collection)) {
|
|
4078
4078
|
tmp = tmp0_any.l();
|
|
@@ -4113,13 +4113,13 @@
|
|
|
4113
4113
|
}, null);
|
|
4114
4114
|
}
|
|
4115
4115
|
//region block: post-declaration
|
|
4116
|
-
protoOf(UpdateServerConfigAction).
|
|
4117
|
-
protoOf(RoomAction).
|
|
4118
|
-
protoOf(RoomWasCreatedAction).
|
|
4119
|
-
protoOf(RoomWasDeletedAction).
|
|
4116
|
+
protoOf(UpdateServerConfigAction).s2l = get_actionTag;
|
|
4117
|
+
protoOf(RoomAction).s2l = get_actionTag;
|
|
4118
|
+
protoOf(RoomWasCreatedAction).s2l = get_actionTag;
|
|
4119
|
+
protoOf(RoomWasDeletedAction).s2l = get_actionTag;
|
|
4120
4120
|
protoOf(RoomWasDeletedAction).notValidateWhenFinishing = notValidateWhenFinishing;
|
|
4121
4121
|
protoOf(PlayerReconnectionWaitingTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
4122
|
-
protoOf(PlayerReconnectionWaitingTimerTag).
|
|
4122
|
+
protoOf(PlayerReconnectionWaitingTimerTag).n4g = notValidateTimerReset;
|
|
4123
4123
|
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
4124
4124
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4125
4125
|
//endregion
|