client_plugin_logic_deb 1.8.259 → 1.8.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-client_plugin.d.ts +37 -7
- package/Logic_Debertz-client_plugin.js +1980 -1980
- package/Logic_Debertz-core.js +17 -17
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +8172 -7960
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5222 -5222
- package/Logic_Debertz-game_server.js +627 -546
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './Logic_Debertz-engine.js', './kotlinx-coroutines-core.js', './raspberry-cardgame-lib-random.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './Logic_Debertz-engine.js', './Logic_Debertz-core.js', './kotlinx-coroutines-core.js', './raspberry-cardgame-lib-random.js', './raspberry-cardgame-lib-logger.js', './Kosi-Kaverit-kaverit.js', './Kosi-Kodein-kodein-di.js', './kotlinx-atomicfu.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Logic_Debertz-engine.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Logic_Debertz-engine.js'), require('./Logic_Debertz-core.js'), require('./kotlinx-coroutines-core.js'), require('./raspberry-cardgame-lib-random.js'), require('./raspberry-cardgame-lib-logger.js'), require('./Kosi-Kaverit-kaverit.js'), require('./Kosi-Kodein-kodein-di.js'), require('./kotlinx-atomicfu.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
if (typeof globalThis['Logic_Debertz-engine'] === 'undefined') {
|
|
11
11
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'Logic_Debertz-engine' was not found. Please, check whether 'Logic_Debertz-engine' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
12
12
|
}
|
|
13
|
+
if (typeof globalThis['Logic_Debertz-core'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'Logic_Debertz-core' was not found. Please, check whether 'Logic_Debertz-core' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
15
|
+
}
|
|
13
16
|
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
14
17
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
15
18
|
}
|
|
16
19
|
if (typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined') {
|
|
17
20
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'raspberry-cardgame-lib-random' was not found. Please, check whether 'raspberry-cardgame-lib-random' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
18
21
|
}
|
|
19
|
-
if (typeof globalThis['Logic_Debertz-core'] === 'undefined') {
|
|
20
|
-
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'Logic_Debertz-core' was not found. Please, check whether 'Logic_Debertz-core' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
21
|
-
}
|
|
22
22
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
24
24
|
}
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
if (typeof globalThis['kotlinx-atomicfu'] === 'undefined') {
|
|
32
32
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'kotlinx-atomicfu' was not found. Please, check whether 'kotlinx-atomicfu' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
33
33
|
}
|
|
34
|
-
globalThis['Logic_Debertz-game_server'] = factory(typeof globalThis['Logic_Debertz-game_server'] === 'undefined' ? {} : globalThis['Logic_Debertz-game_server'], globalThis['kotlin-kotlin-stdlib'], globalThis['Logic_Debertz-engine'], globalThis['kotlinx-coroutines-core'], globalThis['raspberry-cardgame-lib-random'], globalThis['
|
|
34
|
+
globalThis['Logic_Debertz-game_server'] = factory(typeof globalThis['Logic_Debertz-game_server'] === 'undefined' ? {} : globalThis['Logic_Debertz-game_server'], globalThis['kotlin-kotlin-stdlib'], globalThis['Logic_Debertz-engine'], globalThis['Logic_Debertz-core'], globalThis['kotlinx-coroutines-core'], globalThis['raspberry-cardgame-lib-random'], globalThis['raspberry-cardgame-lib-logger'], globalThis['Kosi-Kaverit-kaverit'], globalThis['Kosi-Kodein-kodein-di'], globalThis['kotlinx-atomicfu']);
|
|
35
35
|
}
|
|
36
|
-
}(function (_, kotlin_kotlin, kotlin_io_raspberryapps_game_engine_engine, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_raspberryapps_cardgame_random,
|
|
36
|
+
}(function (_, kotlin_kotlin, kotlin_io_raspberryapps_game_engine_engine, kotlin_io_raspberryapps_game_engine_core, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_raspberryapps_cardgame_random, kotlin_io_raspberryapps_cardgame_logger, kotlin_org_kodein_type_kaverit, kotlin_org_kodein_di_kodein_di, kotlin_org_jetbrains_kotlinx_atomicfu) {
|
|
37
37
|
'use strict';
|
|
38
38
|
//region block: imports
|
|
39
39
|
var imul = Math.imul;
|
|
@@ -45,13 +45,15 @@
|
|
|
45
45
|
var initMetadataForLambda = kotlin_kotlin.$_$.xb;
|
|
46
46
|
var VOID = kotlin_kotlin.$_$.f;
|
|
47
47
|
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.a8;
|
|
48
|
+
var defineProp = kotlin_kotlin.$_$.kb;
|
|
49
|
+
var PlayerIdContract = kotlin_io_raspberryapps_game_engine_core.$_$.f;
|
|
50
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
48
51
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
49
52
|
var equals = kotlin_kotlin.$_$.lb;
|
|
50
53
|
var FunctionAdapter = kotlin_kotlin.$_$.za;
|
|
51
54
|
var isInterface = kotlin_kotlin.$_$.hc;
|
|
52
55
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
53
56
|
var hashCode = kotlin_kotlin.$_$.sb;
|
|
54
|
-
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
55
57
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
56
58
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
57
59
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
@@ -65,9 +67,14 @@
|
|
|
65
67
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.l4;
|
|
66
68
|
var toList = kotlin_kotlin.$_$.t9;
|
|
67
69
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.p;
|
|
68
|
-
var
|
|
70
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
71
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
72
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
|
|
73
|
+
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
74
|
+
var firstOrNull = kotlin_kotlin.$_$.r7;
|
|
69
75
|
var toMutableList = kotlin_kotlin.$_$.w9;
|
|
70
76
|
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
|
|
77
|
+
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.w5;
|
|
71
78
|
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.s6;
|
|
72
79
|
var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v5;
|
|
73
80
|
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.w9;
|
|
@@ -96,10 +103,10 @@
|
|
|
96
103
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
97
104
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
98
105
|
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.h4;
|
|
106
|
+
var TeamsLogicProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
99
107
|
var lazy = kotlin_kotlin.$_$.ph;
|
|
100
108
|
var plus = kotlin_kotlin.$_$.z8;
|
|
101
109
|
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.i8;
|
|
102
|
-
var defineProp = kotlin_kotlin.$_$.kb;
|
|
103
110
|
var KProperty1 = kotlin_kotlin.$_$.pd;
|
|
104
111
|
var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
|
|
105
112
|
var to = kotlin_kotlin.$_$.xh;
|
|
@@ -123,8 +130,6 @@
|
|
|
123
130
|
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.h8;
|
|
124
131
|
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
125
132
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
126
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
127
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
128
133
|
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y4;
|
|
129
134
|
var single = kotlin_kotlin.$_$.i9;
|
|
130
135
|
var copyToArray = kotlin_kotlin.$_$.i7;
|
|
@@ -187,7 +192,6 @@
|
|
|
187
192
|
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.t5;
|
|
188
193
|
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m6;
|
|
189
194
|
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
190
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
191
195
|
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.y8;
|
|
192
196
|
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.r5;
|
|
193
197
|
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v6;
|
|
@@ -214,7 +218,6 @@
|
|
|
214
218
|
var toDuration = kotlin_kotlin.$_$.zf;
|
|
215
219
|
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.u7;
|
|
216
220
|
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.t8;
|
|
217
|
-
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
218
221
|
var singleOrNull = kotlin_kotlin.$_$.h9;
|
|
219
222
|
var Collection = kotlin_kotlin.$_$.r5;
|
|
220
223
|
var toSet = kotlin_kotlin.$_$.z9;
|
|
@@ -261,6 +264,7 @@
|
|
|
261
264
|
//region block: pre-declaration
|
|
262
265
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
263
266
|
initMetadataForLambda(GameServer$subscribeWith$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
267
|
+
initMetadataForClass(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1, VOID, VOID, VOID, [PlayerIdContract]);
|
|
264
268
|
initMetadataForCompanion(Companion);
|
|
265
269
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
266
270
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
@@ -278,7 +282,7 @@
|
|
|
278
282
|
initMetadataForLambda(GameServer$roomOnDelete$slambda, CoroutineImpl, VOID, [2]);
|
|
279
283
|
initMetadataForLambda(GameServer$setCanStartNewGameEnabled$slambda, CoroutineImpl, VOID, [2]);
|
|
280
284
|
initMetadataForLambda(GameServer$shutdown$slambda, CoroutineImpl, VOID, [2]);
|
|
281
|
-
function roomOnCreate(roomId, gameCreatorId, config,
|
|
285
|
+
function roomOnCreate(roomId, gameCreatorId, config, usersArray, transition, spectators, $super) {
|
|
282
286
|
transition = transition === VOID ? null : transition;
|
|
283
287
|
var tmp;
|
|
284
288
|
if (spectators === VOID) {
|
|
@@ -288,15 +292,15 @@
|
|
|
288
292
|
tmp = spectators;
|
|
289
293
|
}
|
|
290
294
|
spectators = tmp;
|
|
291
|
-
return this.
|
|
295
|
+
return this.zde(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
292
296
|
}
|
|
293
297
|
function roomOnDelete(newRid, $super) {
|
|
294
298
|
newRid = newRid === VOID ? null : newRid;
|
|
295
|
-
return this.
|
|
299
|
+
return this.adf(newRid);
|
|
296
300
|
}
|
|
297
301
|
function shutdown(reason, roomId, $super) {
|
|
298
302
|
roomId = roomId === VOID ? null : roomId;
|
|
299
|
-
return this.
|
|
303
|
+
return this.bdf(reason, roomId);
|
|
300
304
|
}
|
|
301
305
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
302
306
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -346,7 +350,7 @@
|
|
|
346
350
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
347
351
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
348
352
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
349
|
-
return this.
|
|
353
|
+
return this.gdj(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
350
354
|
}
|
|
351
355
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
352
356
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -355,17 +359,17 @@
|
|
|
355
359
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
356
360
|
//endregion
|
|
357
361
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
358
|
-
this.
|
|
362
|
+
this.ld7_1 = $subscriber;
|
|
359
363
|
CoroutineImpl.call(this, resultContinuation);
|
|
360
364
|
}
|
|
361
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
362
|
-
var tmp = this.
|
|
365
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).nd7 = function (it, $completion) {
|
|
366
|
+
var tmp = this.od7(it, $completion);
|
|
363
367
|
tmp.g9_1 = Unit_instance;
|
|
364
368
|
tmp.h9_1 = null;
|
|
365
369
|
return tmp.m9();
|
|
366
370
|
};
|
|
367
371
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
368
|
-
return this.
|
|
372
|
+
return this.nd7(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
369
373
|
};
|
|
370
374
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
371
375
|
var suspendResult = this.g9_1;
|
|
@@ -374,7 +378,7 @@
|
|
|
374
378
|
var tmp = this.e9_1;
|
|
375
379
|
if (tmp === 0) {
|
|
376
380
|
this.f9_1 = 1;
|
|
377
|
-
this.
|
|
381
|
+
this.ld7_1(this.md7_1);
|
|
378
382
|
return Unit_instance;
|
|
379
383
|
} else if (tmp === 1) {
|
|
380
384
|
throw this.h9_1;
|
|
@@ -385,31 +389,31 @@
|
|
|
385
389
|
}
|
|
386
390
|
while (true);
|
|
387
391
|
};
|
|
388
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
389
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
390
|
-
i.
|
|
392
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).od7 = function (it, completion) {
|
|
393
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.ld7_1, completion);
|
|
394
|
+
i.md7_1 = it;
|
|
391
395
|
return i;
|
|
392
396
|
};
|
|
393
397
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
394
398
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
395
399
|
var l = function (it, $completion) {
|
|
396
|
-
return i.
|
|
400
|
+
return i.nd7(it, $completion);
|
|
397
401
|
};
|
|
398
402
|
l.$arity = 1;
|
|
399
403
|
return l;
|
|
400
404
|
}
|
|
401
405
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
402
|
-
this.
|
|
406
|
+
this.xd7_1 = $subscriber;
|
|
403
407
|
CoroutineImpl.call(this, resultContinuation);
|
|
404
408
|
}
|
|
405
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
406
|
-
var tmp = this.
|
|
409
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).zd7 = function (it, $completion) {
|
|
410
|
+
var tmp = this.ad8(it, $completion);
|
|
407
411
|
tmp.g9_1 = Unit_instance;
|
|
408
412
|
tmp.h9_1 = null;
|
|
409
413
|
return tmp.m9();
|
|
410
414
|
};
|
|
411
415
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
412
|
-
return this.
|
|
416
|
+
return this.zd7(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
413
417
|
};
|
|
414
418
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
415
419
|
var suspendResult = this.g9_1;
|
|
@@ -418,7 +422,7 @@
|
|
|
418
422
|
var tmp = this.e9_1;
|
|
419
423
|
if (tmp === 0) {
|
|
420
424
|
this.f9_1 = 1;
|
|
421
|
-
this.
|
|
425
|
+
this.xd7_1(this.yd7_1);
|
|
422
426
|
return Unit_instance;
|
|
423
427
|
} else if (tmp === 1) {
|
|
424
428
|
throw this.h9_1;
|
|
@@ -429,58 +433,70 @@
|
|
|
429
433
|
}
|
|
430
434
|
while (true);
|
|
431
435
|
};
|
|
432
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
433
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
434
|
-
i.
|
|
436
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).ad8 = function (it, completion) {
|
|
437
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.xd7_1, completion);
|
|
438
|
+
i.yd7_1 = it;
|
|
435
439
|
return i;
|
|
436
440
|
};
|
|
437
441
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
438
442
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
439
443
|
var l = function (it, $completion) {
|
|
440
|
-
return i.
|
|
444
|
+
return i.zd7(it, $completion);
|
|
441
445
|
};
|
|
442
446
|
l.$arity = 1;
|
|
443
447
|
return l;
|
|
444
448
|
}
|
|
449
|
+
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($it) {
|
|
450
|
+
this.bd8_1 = $it;
|
|
451
|
+
}
|
|
452
|
+
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).a6e = function () {
|
|
453
|
+
return this.bd8_1;
|
|
454
|
+
};
|
|
445
455
|
function _get_logger__rkp4sl($this) {
|
|
446
456
|
// Inline function 'kotlin.getValue' call
|
|
447
|
-
var this_0 = $this.
|
|
457
|
+
var this_0 = $this.ed8_1;
|
|
448
458
|
logger$factory_0();
|
|
449
459
|
return this_0.u();
|
|
450
460
|
}
|
|
451
461
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
452
462
|
// Inline function 'kotlin.getValue' call
|
|
453
|
-
var this_0 = $this.
|
|
463
|
+
var this_0 = $this.fd8_1;
|
|
454
464
|
toClientEventsObserver$factory_0();
|
|
455
465
|
return this_0.u();
|
|
456
466
|
}
|
|
457
467
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
458
468
|
// Inline function 'kotlin.getValue' call
|
|
459
|
-
var this_0 = $this.
|
|
469
|
+
var this_0 = $this.gd8_1;
|
|
460
470
|
playerConnectionInteractor$factory_0();
|
|
461
471
|
return this_0.u();
|
|
462
472
|
}
|
|
473
|
+
function _get_teamsLogicProvider__u10pm6($this) {
|
|
474
|
+
// Inline function 'kotlin.getValue' call
|
|
475
|
+
var this_0 = $this.hd8_1;
|
|
476
|
+
teamsLogicProvider$factory_0();
|
|
477
|
+
return this_0.u();
|
|
478
|
+
}
|
|
463
479
|
function _get_random__h29cgo($this) {
|
|
464
480
|
// Inline function 'kotlin.getValue' call
|
|
465
|
-
var this_0 = $this.
|
|
481
|
+
var this_0 = $this.id8_1;
|
|
466
482
|
random$factory();
|
|
467
483
|
return this_0.u();
|
|
468
484
|
}
|
|
469
485
|
function Companion() {
|
|
470
|
-
this.
|
|
486
|
+
this.kd8_1 = 'GameEngine_API';
|
|
471
487
|
}
|
|
472
488
|
var Companion_instance_7;
|
|
473
489
|
function Companion_getInstance_0() {
|
|
474
490
|
return Companion_instance_7;
|
|
475
491
|
}
|
|
476
492
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
477
|
-
this.
|
|
493
|
+
this.ld8_1 = function_0;
|
|
478
494
|
}
|
|
479
495
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
480
|
-
return this.
|
|
496
|
+
return this.ld8_1(value, $completion);
|
|
481
497
|
};
|
|
482
498
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
483
|
-
return this.
|
|
499
|
+
return this.ld8_1;
|
|
484
500
|
};
|
|
485
501
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
486
502
|
var tmp;
|
|
@@ -501,13 +517,13 @@
|
|
|
501
517
|
return hashCode(this.o3());
|
|
502
518
|
};
|
|
503
519
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
504
|
-
this.
|
|
520
|
+
this.md8_1 = function_0;
|
|
505
521
|
}
|
|
506
522
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
507
|
-
return this.
|
|
523
|
+
return this.md8_1(value, $completion);
|
|
508
524
|
};
|
|
509
525
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
510
|
-
return this.
|
|
526
|
+
return this.md8_1;
|
|
511
527
|
};
|
|
512
528
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
513
529
|
var tmp;
|
|
@@ -533,8 +549,8 @@
|
|
|
533
549
|
};
|
|
534
550
|
}
|
|
535
551
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
552
|
+
this.vd8_1 = this$0;
|
|
553
|
+
this.wd8_1 = $subscriber;
|
|
538
554
|
CoroutineImpl.call(this, resultContinuation);
|
|
539
555
|
}
|
|
540
556
|
protoOf(GameServer$subscribeToClientAction$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
@@ -555,8 +571,8 @@
|
|
|
555
571
|
case 0:
|
|
556
572
|
this.f9_1 = 2;
|
|
557
573
|
this.e9_1 = 1;
|
|
558
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
559
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
574
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.vd8_1).dbb();
|
|
575
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.wd8_1, null);
|
|
560
576
|
suspendResult = tmp_0.l17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
561
577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
562
578
|
return suspendResult;
|
|
@@ -580,8 +596,8 @@
|
|
|
580
596
|
while (true);
|
|
581
597
|
};
|
|
582
598
|
protoOf(GameServer$subscribeToClientAction$slambda).f1f = function ($this$launchDefault, completion) {
|
|
583
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
584
|
-
i.
|
|
599
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.vd8_1, this.wd8_1, completion);
|
|
600
|
+
i.xd8_1 = $this$launchDefault;
|
|
585
601
|
return i;
|
|
586
602
|
};
|
|
587
603
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -593,8 +609,8 @@
|
|
|
593
609
|
return l;
|
|
594
610
|
}
|
|
595
611
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
612
|
+
this.gd9_1 = this$0;
|
|
613
|
+
this.hd9_1 = $subscriber;
|
|
598
614
|
CoroutineImpl.call(this, resultContinuation);
|
|
599
615
|
}
|
|
600
616
|
protoOf(GameServer$subscribeWith$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
@@ -615,8 +631,8 @@
|
|
|
615
631
|
case 0:
|
|
616
632
|
this.f9_1 = 2;
|
|
617
633
|
this.e9_1 = 1;
|
|
618
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
619
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
634
|
+
var tmp_0 = distinctUntilChanged(this.gd9_1.c6w());
|
|
635
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.hd9_1, null);
|
|
620
636
|
suspendResult = tmp_0.l17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
621
637
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
638
|
return suspendResult;
|
|
@@ -640,8 +656,8 @@
|
|
|
640
656
|
while (true);
|
|
641
657
|
};
|
|
642
658
|
protoOf(GameServer$subscribeWith$slambda).f1f = function ($this$launchDefault, completion) {
|
|
643
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
644
|
-
i.
|
|
659
|
+
var i = new GameServer$subscribeWith$slambda(this.gd9_1, this.hd9_1, completion);
|
|
660
|
+
i.id9_1 = $this$launchDefault;
|
|
645
661
|
return i;
|
|
646
662
|
};
|
|
647
663
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -653,18 +669,18 @@
|
|
|
653
669
|
return l;
|
|
654
670
|
}
|
|
655
671
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
656
|
-
this.
|
|
672
|
+
this.rd9_1 = $action;
|
|
657
673
|
CoroutineImpl.call(this, resultContinuation);
|
|
658
674
|
}
|
|
659
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
660
|
-
var tmp = this.
|
|
675
|
+
protoOf(GameServer$fromClientEvent$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
676
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
661
677
|
tmp.g9_1 = Unit_instance;
|
|
662
678
|
tmp.h9_1 = null;
|
|
663
679
|
return tmp.m9();
|
|
664
680
|
};
|
|
665
681
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
666
682
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
667
|
-
return this.
|
|
683
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
668
684
|
};
|
|
669
685
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
670
686
|
var suspendResult = this.g9_1;
|
|
@@ -673,11 +689,11 @@
|
|
|
673
689
|
var tmp = this.e9_1;
|
|
674
690
|
if (tmp === 0) {
|
|
675
691
|
this.f9_1 = 1;
|
|
676
|
-
if (this.
|
|
677
|
-
if (!get_isCreated(this.
|
|
692
|
+
if (this.rd9_1 instanceof PlayerReadyFromClientAction)
|
|
693
|
+
if (!get_isCreated(this.td9_1.state)) {
|
|
678
694
|
return Unit_instance;
|
|
679
695
|
}
|
|
680
|
-
this.
|
|
696
|
+
this.td9_1.dispatch(this.rd9_1);
|
|
681
697
|
return Unit_instance;
|
|
682
698
|
} else if (tmp === 1) {
|
|
683
699
|
throw this.h9_1;
|
|
@@ -688,33 +704,33 @@
|
|
|
688
704
|
}
|
|
689
705
|
while (true);
|
|
690
706
|
};
|
|
691
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
692
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
693
|
-
i.
|
|
694
|
-
i.
|
|
707
|
+
protoOf(GameServer$fromClientEvent$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
708
|
+
var i = new GameServer$fromClientEvent$slambda(this.rd9_1, completion);
|
|
709
|
+
i.sd9_1 = $this$dispatchAsync;
|
|
710
|
+
i.td9_1 = store;
|
|
695
711
|
return i;
|
|
696
712
|
};
|
|
697
713
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
698
714
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
699
715
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
700
|
-
return i.
|
|
716
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
701
717
|
};
|
|
702
718
|
l.$arity = 2;
|
|
703
719
|
return l;
|
|
704
720
|
}
|
|
705
721
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
706
|
-
this.
|
|
722
|
+
this.cda_1 = $playerId;
|
|
707
723
|
CoroutineImpl.call(this, resultContinuation);
|
|
708
724
|
}
|
|
709
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
710
|
-
var tmp = this.
|
|
725
|
+
protoOf(GameServer$playerLostConnection$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
726
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
711
727
|
tmp.g9_1 = Unit_instance;
|
|
712
728
|
tmp.h9_1 = null;
|
|
713
729
|
return tmp.m9();
|
|
714
730
|
};
|
|
715
731
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
716
732
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
717
|
-
return this.
|
|
733
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
718
734
|
};
|
|
719
735
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
720
736
|
var suspendResult = this.g9_1;
|
|
@@ -723,12 +739,12 @@
|
|
|
723
739
|
var tmp = this.e9_1;
|
|
724
740
|
if (tmp === 0) {
|
|
725
741
|
this.f9_1 = 1;
|
|
726
|
-
if (!get_isCreated(this.
|
|
742
|
+
if (!get_isCreated(this.eda_1.state)) {
|
|
727
743
|
return Unit_instance;
|
|
728
744
|
}
|
|
729
|
-
var tmp_0 = this.
|
|
745
|
+
var tmp_0 = this.eda_1.dispatch;
|
|
730
746
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
731
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
747
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.cda_1));
|
|
732
748
|
return Unit_instance;
|
|
733
749
|
} else if (tmp === 1) {
|
|
734
750
|
throw this.h9_1;
|
|
@@ -739,33 +755,33 @@
|
|
|
739
755
|
}
|
|
740
756
|
while (true);
|
|
741
757
|
};
|
|
742
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
743
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
744
|
-
i.
|
|
745
|
-
i.
|
|
758
|
+
protoOf(GameServer$playerLostConnection$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
759
|
+
var i = new GameServer$playerLostConnection$slambda(this.cda_1, completion);
|
|
760
|
+
i.dda_1 = $this$dispatchAsync;
|
|
761
|
+
i.eda_1 = store;
|
|
746
762
|
return i;
|
|
747
763
|
};
|
|
748
764
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
749
765
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
750
766
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
751
|
-
return i.
|
|
767
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
752
768
|
};
|
|
753
769
|
l.$arity = 2;
|
|
754
770
|
return l;
|
|
755
771
|
}
|
|
756
772
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
757
|
-
this.
|
|
773
|
+
this.nda_1 = $playerId;
|
|
758
774
|
CoroutineImpl.call(this, resultContinuation);
|
|
759
775
|
}
|
|
760
|
-
protoOf(GameServer$playerLive$slambda).
|
|
761
|
-
var tmp = this.
|
|
776
|
+
protoOf(GameServer$playerLive$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
777
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
762
778
|
tmp.g9_1 = Unit_instance;
|
|
763
779
|
tmp.h9_1 = null;
|
|
764
780
|
return tmp.m9();
|
|
765
781
|
};
|
|
766
782
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
767
783
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
768
|
-
return this.
|
|
784
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
769
785
|
};
|
|
770
786
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
771
787
|
var suspendResult = this.g9_1;
|
|
@@ -774,9 +790,9 @@
|
|
|
774
790
|
var tmp = this.e9_1;
|
|
775
791
|
if (tmp === 0) {
|
|
776
792
|
this.f9_1 = 1;
|
|
777
|
-
var tmp_0 = this.
|
|
793
|
+
var tmp_0 = this.pda_1.dispatch;
|
|
778
794
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
779
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
795
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.nda_1));
|
|
780
796
|
return Unit_instance;
|
|
781
797
|
} else if (tmp === 1) {
|
|
782
798
|
throw this.h9_1;
|
|
@@ -787,33 +803,33 @@
|
|
|
787
803
|
}
|
|
788
804
|
while (true);
|
|
789
805
|
};
|
|
790
|
-
protoOf(GameServer$playerLive$slambda).
|
|
791
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
792
|
-
i.
|
|
793
|
-
i.
|
|
806
|
+
protoOf(GameServer$playerLive$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
807
|
+
var i = new GameServer$playerLive$slambda(this.nda_1, completion);
|
|
808
|
+
i.oda_1 = $this$dispatchAsync;
|
|
809
|
+
i.pda_1 = store;
|
|
794
810
|
return i;
|
|
795
811
|
};
|
|
796
812
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
797
813
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
798
814
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
799
|
-
return i.
|
|
815
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
800
816
|
};
|
|
801
817
|
l.$arity = 2;
|
|
802
818
|
return l;
|
|
803
819
|
}
|
|
804
820
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
805
|
-
this.
|
|
821
|
+
this.yda_1 = $playerId;
|
|
806
822
|
CoroutineImpl.call(this, resultContinuation);
|
|
807
823
|
}
|
|
808
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
809
|
-
var tmp = this.
|
|
824
|
+
protoOf(GameServer$playerLeft$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
825
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
810
826
|
tmp.g9_1 = Unit_instance;
|
|
811
827
|
tmp.h9_1 = null;
|
|
812
828
|
return tmp.m9();
|
|
813
829
|
};
|
|
814
830
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
815
831
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
816
|
-
return this.
|
|
832
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
817
833
|
};
|
|
818
834
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
819
835
|
var suspendResult = this.g9_1;
|
|
@@ -822,9 +838,9 @@
|
|
|
822
838
|
var tmp = this.e9_1;
|
|
823
839
|
if (tmp === 0) {
|
|
824
840
|
this.f9_1 = 1;
|
|
825
|
-
var tmp_0 = this.
|
|
841
|
+
var tmp_0 = this.adb_1.dispatch;
|
|
826
842
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
827
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
843
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.yda_1));
|
|
828
844
|
return Unit_instance;
|
|
829
845
|
} else if (tmp === 1) {
|
|
830
846
|
throw this.h9_1;
|
|
@@ -835,38 +851,39 @@
|
|
|
835
851
|
}
|
|
836
852
|
while (true);
|
|
837
853
|
};
|
|
838
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
839
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
840
|
-
i.
|
|
841
|
-
i.
|
|
854
|
+
protoOf(GameServer$playerLeft$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
855
|
+
var i = new GameServer$playerLeft$slambda(this.yda_1, completion);
|
|
856
|
+
i.zda_1 = $this$dispatchAsync;
|
|
857
|
+
i.adb_1 = store;
|
|
842
858
|
return i;
|
|
843
859
|
};
|
|
844
860
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
845
861
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
846
862
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
847
|
-
return i.
|
|
863
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
848
864
|
};
|
|
849
865
|
l.$arity = 2;
|
|
850
866
|
return l;
|
|
851
867
|
}
|
|
852
|
-
function GameServer$roomOnCreate$slambda($
|
|
853
|
-
this.
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
868
|
+
function GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
869
|
+
this.jdb_1 = $usersArray;
|
|
870
|
+
this.kdb_1 = $gameCreatorId;
|
|
871
|
+
this.ldb_1 = $config;
|
|
872
|
+
this.mdb_1 = $transition;
|
|
873
|
+
this.ndb_1 = this$0;
|
|
874
|
+
this.odb_1 = $spectators;
|
|
875
|
+
this.pdb_1 = $roomId;
|
|
859
876
|
CoroutineImpl.call(this, resultContinuation);
|
|
860
877
|
}
|
|
861
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
862
|
-
var tmp = this.
|
|
878
|
+
protoOf(GameServer$roomOnCreate$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
879
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
863
880
|
tmp.g9_1 = Unit_instance;
|
|
864
881
|
tmp.h9_1 = null;
|
|
865
882
|
return tmp.m9();
|
|
866
883
|
};
|
|
867
884
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
868
885
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
869
|
-
return this.
|
|
886
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
870
887
|
};
|
|
871
888
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
872
889
|
var suspendResult = this.g9_1;
|
|
@@ -875,13 +892,58 @@
|
|
|
875
892
|
var tmp = this.e9_1;
|
|
876
893
|
if (tmp === 0) {
|
|
877
894
|
this.f9_1 = 1;
|
|
878
|
-
var
|
|
879
|
-
var gameCreatorUser = getPlayer(
|
|
880
|
-
var tmp_0
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
895
|
+
var users = toList(this.jdb_1);
|
|
896
|
+
var gameCreatorUser = getPlayer(users, this.kdb_1);
|
|
897
|
+
var tmp_0;
|
|
898
|
+
if (this.ldb_1.mode.shufflePlayers && this.mdb_1 == null) {
|
|
899
|
+
tmp_0 = sortWithItem(_get_random__h29cgo(this.ndb_1).a60(toMutableList(users)), gameCreatorUser);
|
|
900
|
+
} else {
|
|
901
|
+
var tmp0_safe_receiver = this.mdb_1;
|
|
902
|
+
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
903
|
+
var tmp_1;
|
|
904
|
+
if (!(previousPlayers == null) && this.ldb_1.playersMode.isTeamGame) {
|
|
905
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.ndb_1);
|
|
906
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
907
|
+
var tmp0_iterator = previousPlayers.j();
|
|
908
|
+
while (tmp0_iterator.k()) {
|
|
909
|
+
var item = tmp0_iterator.l();
|
|
910
|
+
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
911
|
+
}
|
|
912
|
+
var previousTeams = tmp_2.o90(destination);
|
|
913
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
914
|
+
var tmp0_iterator_0 = users.j();
|
|
915
|
+
while (tmp0_iterator_0.k()) {
|
|
916
|
+
var element = tmp0_iterator_0.l();
|
|
917
|
+
if (!previousPlayers.s1(element.p6e_1)) {
|
|
918
|
+
destination_0.e(element);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
var newUsers = destination_0.j();
|
|
922
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(previousTeams, 10));
|
|
923
|
+
var tmp0_iterator_1 = previousTeams.j();
|
|
924
|
+
while (tmp0_iterator_1.k()) {
|
|
925
|
+
var item_0 = tmp0_iterator_1.l();
|
|
926
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(item_0, 10));
|
|
927
|
+
var tmp0_iterator_2 = item_0.j();
|
|
928
|
+
while (tmp0_iterator_2.k()) {
|
|
929
|
+
var item_1 = tmp0_iterator_2.l();
|
|
930
|
+
var tmp0_elvis_lhs = firstOrNull(filterByPlayerId(users, item_1.playerId));
|
|
931
|
+
destination_2.e(tmp0_elvis_lhs == null ? newUsers.l() : tmp0_elvis_lhs);
|
|
932
|
+
}
|
|
933
|
+
destination_1.e(destination_2);
|
|
934
|
+
}
|
|
935
|
+
var updatedTeams = destination_1;
|
|
936
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.ndb_1).s90(updatedTeams);
|
|
937
|
+
} else {
|
|
938
|
+
tmp_1 = users;
|
|
939
|
+
}
|
|
940
|
+
tmp_0 = tmp_1;
|
|
941
|
+
}
|
|
942
|
+
var updatedUsers = tmp_0;
|
|
943
|
+
var tmp_3 = this.rdb_1.dispatch;
|
|
944
|
+
var tmp1_version = GameEngineConfig_instance.version;
|
|
945
|
+
var tmp2_spectators = toList(this.odb_1);
|
|
946
|
+
tmp_3(new StartGameMechanicAction(this.ldb_1, this.pdb_1, tmp1_version, this.kdb_1, updatedUsers, VOID, tmp2_spectators));
|
|
885
947
|
return Unit_instance;
|
|
886
948
|
} else if (tmp === 1) {
|
|
887
949
|
throw this.h9_1;
|
|
@@ -892,33 +954,33 @@
|
|
|
892
954
|
}
|
|
893
955
|
while (true);
|
|
894
956
|
};
|
|
895
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
896
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
897
|
-
i.
|
|
898
|
-
i.
|
|
957
|
+
protoOf(GameServer$roomOnCreate$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
958
|
+
var i = new GameServer$roomOnCreate$slambda(this.jdb_1, this.kdb_1, this.ldb_1, this.mdb_1, this.ndb_1, this.odb_1, this.pdb_1, completion);
|
|
959
|
+
i.qdb_1 = $this$dispatchAsync;
|
|
960
|
+
i.rdb_1 = store;
|
|
899
961
|
return i;
|
|
900
962
|
};
|
|
901
|
-
function GameServer$roomOnCreate$slambda_0($
|
|
902
|
-
var i = new GameServer$roomOnCreate$slambda($
|
|
963
|
+
function GameServer$roomOnCreate$slambda_0($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
964
|
+
var i = new GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation);
|
|
903
965
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
904
|
-
return i.
|
|
966
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
905
967
|
};
|
|
906
968
|
l.$arity = 2;
|
|
907
969
|
return l;
|
|
908
970
|
}
|
|
909
971
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
910
|
-
this.
|
|
972
|
+
this.adc_1 = $tableLite;
|
|
911
973
|
CoroutineImpl.call(this, resultContinuation);
|
|
912
974
|
}
|
|
913
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
914
|
-
var tmp = this.
|
|
975
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
976
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
915
977
|
tmp.g9_1 = Unit_instance;
|
|
916
978
|
tmp.h9_1 = null;
|
|
917
979
|
return tmp.m9();
|
|
918
980
|
};
|
|
919
981
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
920
982
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
921
|
-
return this.
|
|
983
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
922
984
|
};
|
|
923
985
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
924
986
|
var suspendResult = this.g9_1;
|
|
@@ -927,11 +989,11 @@
|
|
|
927
989
|
var tmp = this.e9_1;
|
|
928
990
|
if (tmp === 0) {
|
|
929
991
|
this.f9_1 = 1;
|
|
930
|
-
var tmp_0 = this.
|
|
992
|
+
var tmp_0 = this.cdc_1.dispatch;
|
|
931
993
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
932
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
994
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.adc_1);
|
|
933
995
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
934
|
-
this.
|
|
996
|
+
this.cdc_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
935
997
|
return Unit_instance;
|
|
936
998
|
} else if (tmp === 1) {
|
|
937
999
|
throw this.h9_1;
|
|
@@ -942,33 +1004,33 @@
|
|
|
942
1004
|
}
|
|
943
1005
|
while (true);
|
|
944
1006
|
};
|
|
945
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
946
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
947
|
-
i.
|
|
948
|
-
i.
|
|
1007
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
1008
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.adc_1, completion);
|
|
1009
|
+
i.bdc_1 = $this$dispatchAsync;
|
|
1010
|
+
i.cdc_1 = store;
|
|
949
1011
|
return i;
|
|
950
1012
|
};
|
|
951
1013
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
952
1014
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
953
1015
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
954
|
-
return i.
|
|
1016
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
955
1017
|
};
|
|
956
1018
|
l.$arity = 2;
|
|
957
1019
|
return l;
|
|
958
1020
|
}
|
|
959
1021
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
960
|
-
this.
|
|
1022
|
+
this.ldc_1 = $spectators;
|
|
961
1023
|
CoroutineImpl.call(this, resultContinuation);
|
|
962
1024
|
}
|
|
963
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
964
|
-
var tmp = this.
|
|
1025
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
1026
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
965
1027
|
tmp.g9_1 = Unit_instance;
|
|
966
1028
|
tmp.h9_1 = null;
|
|
967
1029
|
return tmp.m9();
|
|
968
1030
|
};
|
|
969
1031
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
970
1032
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
971
|
-
return this.
|
|
1033
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
972
1034
|
};
|
|
973
1035
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
974
1036
|
var suspendResult = this.g9_1;
|
|
@@ -977,7 +1039,7 @@
|
|
|
977
1039
|
var tmp = this.e9_1;
|
|
978
1040
|
if (tmp === 0) {
|
|
979
1041
|
this.f9_1 = 1;
|
|
980
|
-
this.
|
|
1042
|
+
this.ndc_1.dispatch(new AddSpectatorsAction(toList(this.ldc_1)));
|
|
981
1043
|
return Unit_instance;
|
|
982
1044
|
} else if (tmp === 1) {
|
|
983
1045
|
throw this.h9_1;
|
|
@@ -988,33 +1050,33 @@
|
|
|
988
1050
|
}
|
|
989
1051
|
while (true);
|
|
990
1052
|
};
|
|
991
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
992
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
993
|
-
i.
|
|
994
|
-
i.
|
|
1053
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
1054
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.ldc_1, completion);
|
|
1055
|
+
i.mdc_1 = $this$dispatchAsync;
|
|
1056
|
+
i.ndc_1 = store;
|
|
995
1057
|
return i;
|
|
996
1058
|
};
|
|
997
1059
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
998
1060
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
999
1061
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1000
|
-
return i.
|
|
1062
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
1001
1063
|
};
|
|
1002
1064
|
l.$arity = 2;
|
|
1003
1065
|
return l;
|
|
1004
1066
|
}
|
|
1005
1067
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1006
|
-
this.
|
|
1068
|
+
this.wdc_1 = $spectators;
|
|
1007
1069
|
CoroutineImpl.call(this, resultContinuation);
|
|
1008
1070
|
}
|
|
1009
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1010
|
-
var tmp = this.
|
|
1071
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
1072
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
1011
1073
|
tmp.g9_1 = Unit_instance;
|
|
1012
1074
|
tmp.h9_1 = null;
|
|
1013
1075
|
return tmp.m9();
|
|
1014
1076
|
};
|
|
1015
1077
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1016
1078
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1017
|
-
return this.
|
|
1079
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1018
1080
|
};
|
|
1019
1081
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1020
1082
|
var suspendResult = this.g9_1;
|
|
@@ -1023,7 +1085,7 @@
|
|
|
1023
1085
|
var tmp = this.e9_1;
|
|
1024
1086
|
if (tmp === 0) {
|
|
1025
1087
|
this.f9_1 = 1;
|
|
1026
|
-
this.
|
|
1088
|
+
this.ydc_1.dispatch(new RemoveSpectatorsAction(toList(this.wdc_1)));
|
|
1027
1089
|
return Unit_instance;
|
|
1028
1090
|
} else if (tmp === 1) {
|
|
1029
1091
|
throw this.h9_1;
|
|
@@ -1034,34 +1096,34 @@
|
|
|
1034
1096
|
}
|
|
1035
1097
|
while (true);
|
|
1036
1098
|
};
|
|
1037
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1038
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1039
|
-
i.
|
|
1040
|
-
i.
|
|
1099
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
1100
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.wdc_1, completion);
|
|
1101
|
+
i.xdc_1 = $this$dispatchAsync;
|
|
1102
|
+
i.ydc_1 = store;
|
|
1041
1103
|
return i;
|
|
1042
1104
|
};
|
|
1043
1105
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1044
1106
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1045
1107
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1046
|
-
return i.
|
|
1108
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
1047
1109
|
};
|
|
1048
1110
|
l.$arity = 2;
|
|
1049
1111
|
return l;
|
|
1050
1112
|
}
|
|
1051
1113
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1052
|
-
this.
|
|
1053
|
-
this.
|
|
1114
|
+
this.hdd_1 = $playerId;
|
|
1115
|
+
this.idd_1 = this$0;
|
|
1054
1116
|
CoroutineImpl.call(this, resultContinuation);
|
|
1055
1117
|
}
|
|
1056
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1057
|
-
var tmp = this.
|
|
1118
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
1119
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
1058
1120
|
tmp.g9_1 = Unit_instance;
|
|
1059
1121
|
tmp.h9_1 = null;
|
|
1060
1122
|
return tmp.m9();
|
|
1061
1123
|
};
|
|
1062
1124
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1063
1125
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1064
|
-
return this.
|
|
1126
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1065
1127
|
};
|
|
1066
1128
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1067
1129
|
var suspendResult = this.g9_1;
|
|
@@ -1070,14 +1132,14 @@
|
|
|
1070
1132
|
var tmp = this.e9_1;
|
|
1071
1133
|
if (tmp === 0) {
|
|
1072
1134
|
this.f9_1 = 1;
|
|
1073
|
-
var table = this.
|
|
1074
|
-
var player = getPlayer(table.players, this.
|
|
1135
|
+
var table = this.kdd_1.state.f6x();
|
|
1136
|
+
var player = getPlayer(table.players, this.hdd_1);
|
|
1075
1137
|
if (player.a74_1.a6h().r6f_1.isLive) {
|
|
1076
|
-
this.
|
|
1138
|
+
this.kdd_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.idd_1).p97(player, table));
|
|
1077
1139
|
} else {
|
|
1078
|
-
var tmp_0 = this.
|
|
1140
|
+
var tmp_0 = this.kdd_1.dispatch;
|
|
1079
1141
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1080
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1142
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.hdd_1));
|
|
1081
1143
|
}
|
|
1082
1144
|
return Unit_instance;
|
|
1083
1145
|
} else if (tmp === 1) {
|
|
@@ -1089,34 +1151,34 @@
|
|
|
1089
1151
|
}
|
|
1090
1152
|
while (true);
|
|
1091
1153
|
};
|
|
1092
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1093
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1094
|
-
i.
|
|
1095
|
-
i.
|
|
1154
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
1155
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.hdd_1, this.idd_1, completion);
|
|
1156
|
+
i.jdd_1 = $this$dispatchAsync;
|
|
1157
|
+
i.kdd_1 = store;
|
|
1096
1158
|
return i;
|
|
1097
1159
|
};
|
|
1098
1160
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1099
1161
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1100
1162
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1101
|
-
return i.
|
|
1163
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
1102
1164
|
};
|
|
1103
1165
|
l.$arity = 2;
|
|
1104
1166
|
return l;
|
|
1105
1167
|
}
|
|
1106
1168
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1107
|
-
this.
|
|
1108
|
-
this.
|
|
1169
|
+
this.tdd_1 = this$0;
|
|
1170
|
+
this.udd_1 = $newRid;
|
|
1109
1171
|
CoroutineImpl.call(this, resultContinuation);
|
|
1110
1172
|
}
|
|
1111
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1112
|
-
var tmp = this.
|
|
1173
|
+
protoOf(GameServer$roomOnDelete$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
1174
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
1113
1175
|
tmp.g9_1 = Unit_instance;
|
|
1114
1176
|
tmp.h9_1 = null;
|
|
1115
1177
|
return tmp.m9();
|
|
1116
1178
|
};
|
|
1117
1179
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1118
1180
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1119
|
-
return this.
|
|
1181
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1120
1182
|
};
|
|
1121
1183
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1122
1184
|
var suspendResult = this.g9_1;
|
|
@@ -1125,23 +1187,23 @@
|
|
|
1125
1187
|
var tmp = this.e9_1;
|
|
1126
1188
|
if (tmp === 0) {
|
|
1127
1189
|
this.f9_1 = 1;
|
|
1128
|
-
var it = this.
|
|
1190
|
+
var it = this.tdd_1.x6e().g6w_1;
|
|
1129
1191
|
var tmp_0;
|
|
1130
1192
|
if (it == null) {
|
|
1131
|
-
_get_logger__rkp4sl(this.
|
|
1193
|
+
_get_logger__rkp4sl(this.tdd_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1132
1194
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1133
1195
|
} else {
|
|
1134
1196
|
tmp_0 = it;
|
|
1135
1197
|
}
|
|
1136
1198
|
var terminationState = tmp_0;
|
|
1137
|
-
var tmp_1 = this.
|
|
1138
|
-
var tmp1_reason = terminationState.
|
|
1139
|
-
var tmp0_safe_receiver = terminationState.
|
|
1199
|
+
var tmp_1 = this.wdd_1.dispatch;
|
|
1200
|
+
var tmp1_reason = terminationState.b8d_1;
|
|
1201
|
+
var tmp0_safe_receiver = terminationState.c8d_1;
|
|
1140
1202
|
var tmp_2;
|
|
1141
1203
|
if (tmp0_safe_receiver == null) {
|
|
1142
1204
|
tmp_2 = null;
|
|
1143
1205
|
} else {
|
|
1144
|
-
var value = this.
|
|
1206
|
+
var value = this.udd_1;
|
|
1145
1207
|
var tmp$ret$0 = Unit_instance;
|
|
1146
1208
|
l$ret$1: do {
|
|
1147
1209
|
if (value == null) {
|
|
@@ -1156,7 +1218,7 @@
|
|
|
1156
1218
|
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1157
1219
|
}
|
|
1158
1220
|
var tmp2_transition = tmp_2;
|
|
1159
|
-
var tmp3_isGameFinished = this.
|
|
1221
|
+
var tmp3_isGameFinished = this.tdd_1.x6e().f6x().isGameFinished;
|
|
1160
1222
|
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1161
1223
|
return Unit_instance;
|
|
1162
1224
|
} else if (tmp === 1) {
|
|
@@ -1168,33 +1230,33 @@
|
|
|
1168
1230
|
}
|
|
1169
1231
|
while (true);
|
|
1170
1232
|
};
|
|
1171
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1172
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1173
|
-
i.
|
|
1174
|
-
i.
|
|
1233
|
+
protoOf(GameServer$roomOnDelete$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
1234
|
+
var i = new GameServer$roomOnDelete$slambda(this.tdd_1, this.udd_1, completion);
|
|
1235
|
+
i.vdd_1 = $this$dispatchAsync;
|
|
1236
|
+
i.wdd_1 = store;
|
|
1175
1237
|
return i;
|
|
1176
1238
|
};
|
|
1177
1239
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1178
1240
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1179
1241
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1180
|
-
return i.
|
|
1242
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
1181
1243
|
};
|
|
1182
1244
|
l.$arity = 2;
|
|
1183
1245
|
return l;
|
|
1184
1246
|
}
|
|
1185
1247
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1186
|
-
this.
|
|
1248
|
+
this.fde_1 = $enabled;
|
|
1187
1249
|
CoroutineImpl.call(this, resultContinuation);
|
|
1188
1250
|
}
|
|
1189
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1190
|
-
var tmp = this.
|
|
1251
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
1252
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
1191
1253
|
tmp.g9_1 = Unit_instance;
|
|
1192
1254
|
tmp.h9_1 = null;
|
|
1193
1255
|
return tmp.m9();
|
|
1194
1256
|
};
|
|
1195
1257
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1196
1258
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1197
|
-
return this.
|
|
1259
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1198
1260
|
};
|
|
1199
1261
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1200
1262
|
var suspendResult = this.g9_1;
|
|
@@ -1203,7 +1265,7 @@
|
|
|
1203
1265
|
var tmp = this.e9_1;
|
|
1204
1266
|
if (tmp === 0) {
|
|
1205
1267
|
this.f9_1 = 1;
|
|
1206
|
-
this.
|
|
1268
|
+
this.hde_1.dispatch(new UpdateServerConfigAction(get_serverState(this.hde_1.state).ide_1.kde(this.fde_1)));
|
|
1207
1269
|
return Unit_instance;
|
|
1208
1270
|
} else if (tmp === 1) {
|
|
1209
1271
|
throw this.h9_1;
|
|
@@ -1214,35 +1276,35 @@
|
|
|
1214
1276
|
}
|
|
1215
1277
|
while (true);
|
|
1216
1278
|
};
|
|
1217
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1218
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1219
|
-
i.
|
|
1220
|
-
i.
|
|
1279
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
1280
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.fde_1, completion);
|
|
1281
|
+
i.gde_1 = $this$dispatchAsync;
|
|
1282
|
+
i.hde_1 = store;
|
|
1221
1283
|
return i;
|
|
1222
1284
|
};
|
|
1223
1285
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1224
1286
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1225
1287
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1226
|
-
return i.
|
|
1288
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
1227
1289
|
};
|
|
1228
1290
|
l.$arity = 2;
|
|
1229
1291
|
return l;
|
|
1230
1292
|
}
|
|
1231
1293
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1232
|
-
this.
|
|
1233
|
-
this.
|
|
1234
|
-
this.
|
|
1294
|
+
this.tde_1 = $reason;
|
|
1295
|
+
this.ude_1 = this$0;
|
|
1296
|
+
this.vde_1 = $roomId;
|
|
1235
1297
|
CoroutineImpl.call(this, resultContinuation);
|
|
1236
1298
|
}
|
|
1237
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1238
|
-
var tmp = this.
|
|
1299
|
+
protoOf(GameServer$shutdown$slambda).eb6 = function ($this$dispatchAsync, store, $completion) {
|
|
1300
|
+
var tmp = this.fb6($this$dispatchAsync, store, $completion);
|
|
1239
1301
|
tmp.g9_1 = Unit_instance;
|
|
1240
1302
|
tmp.h9_1 = null;
|
|
1241
1303
|
return tmp.m9();
|
|
1242
1304
|
};
|
|
1243
1305
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1244
1306
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1245
|
-
return this.
|
|
1307
|
+
return this.eb6(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1246
1308
|
};
|
|
1247
1309
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1248
1310
|
var suspendResult = this.g9_1;
|
|
@@ -1251,11 +1313,11 @@
|
|
|
1251
1313
|
var tmp = this.e9_1;
|
|
1252
1314
|
if (tmp === 0) {
|
|
1253
1315
|
this.f9_1 = 1;
|
|
1254
|
-
var state = this.
|
|
1316
|
+
var state = this.xde_1.store.state;
|
|
1255
1317
|
if (state.g6x()) {
|
|
1256
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1318
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.tde_1, get_serverShutdownReasonMapping());
|
|
1257
1319
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1258
|
-
var tmp_0 = this.
|
|
1320
|
+
var tmp_0 = this.xde_1.dispatch;
|
|
1259
1321
|
var tmp_1 = Companion_instance_0;
|
|
1260
1322
|
var tmp_2;
|
|
1261
1323
|
switch (shutdownReason.n2_1) {
|
|
@@ -1269,10 +1331,10 @@
|
|
|
1269
1331
|
noWhenBranchMatchedException();
|
|
1270
1332
|
break;
|
|
1271
1333
|
}
|
|
1272
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1334
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.ude_1.table.isGameFinished, this.ude_1.table));
|
|
1273
1335
|
} else {
|
|
1274
|
-
_get_logger__rkp4sl(this.
|
|
1275
|
-
this.
|
|
1336
|
+
_get_logger__rkp4sl(this.ude_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.vde_1);
|
|
1337
|
+
this.xde_1.dispatch(new ClearAction());
|
|
1276
1338
|
}
|
|
1277
1339
|
return Unit_instance;
|
|
1278
1340
|
} else if (tmp === 1) {
|
|
@@ -1284,22 +1346,22 @@
|
|
|
1284
1346
|
}
|
|
1285
1347
|
while (true);
|
|
1286
1348
|
};
|
|
1287
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1288
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1289
|
-
i.
|
|
1290
|
-
i.
|
|
1349
|
+
protoOf(GameServer$shutdown$slambda).fb6 = function ($this$dispatchAsync, store, completion) {
|
|
1350
|
+
var i = new GameServer$shutdown$slambda(this.tde_1, this.ude_1, this.vde_1, completion);
|
|
1351
|
+
i.wde_1 = $this$dispatchAsync;
|
|
1352
|
+
i.xde_1 = store;
|
|
1291
1353
|
return i;
|
|
1292
1354
|
};
|
|
1293
1355
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1294
1356
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1295
1357
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1296
|
-
return i.
|
|
1358
|
+
return i.eb6($this$dispatchAsync, store, $completion);
|
|
1297
1359
|
};
|
|
1298
1360
|
l.$arity = 2;
|
|
1299
1361
|
return l;
|
|
1300
1362
|
}
|
|
1301
1363
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1302
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1364
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.yde()) : preloadedState;
|
|
1303
1365
|
var tmp;
|
|
1304
1366
|
if (externalReducers === VOID) {
|
|
1305
1367
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1322,28 +1384,34 @@
|
|
|
1322
1384
|
// Inline function 'org.kodein.type.generic' call
|
|
1323
1385
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1324
1386
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1325
|
-
tmp_1.
|
|
1387
|
+
tmp_1.ed8_1 = Instance(di, tmp$ret$2, null).m67(this, logger$factory());
|
|
1326
1388
|
var tmp_3 = this;
|
|
1327
1389
|
// Inline function 'org.kodein.di.instance' call
|
|
1328
1390
|
// Inline function 'org.kodein.type.generic' call
|
|
1329
1391
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1330
1392
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1331
|
-
tmp_3.
|
|
1393
|
+
tmp_3.fd8_1 = Instance(di, tmp$ret$4, null).m67(this, toClientEventsObserver$factory());
|
|
1332
1394
|
var tmp_5 = this;
|
|
1333
1395
|
// Inline function 'org.kodein.di.instance' call
|
|
1334
1396
|
// Inline function 'org.kodein.type.generic' call
|
|
1335
1397
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1336
1398
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1337
|
-
tmp_5.
|
|
1399
|
+
tmp_5.gd8_1 = Instance(di, tmp$ret$6, null).m67(this, playerConnectionInteractor$factory());
|
|
1338
1400
|
var tmp_7 = this;
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
var
|
|
1342
|
-
var
|
|
1343
|
-
|
|
1401
|
+
// Inline function 'org.kodein.di.instance' call
|
|
1402
|
+
// Inline function 'org.kodein.type.generic' call
|
|
1403
|
+
var tmp_8 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
1404
|
+
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1405
|
+
tmp_7.hd8_1 = Instance(di, tmp$ret$8, null).m67(this, teamsLogicProvider$factory());
|
|
1406
|
+
var tmp_9 = this;
|
|
1407
|
+
tmp_9.id8_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1408
|
+
var tmp_10 = this;
|
|
1409
|
+
var tmp0_externalMiddlewares = plus(storeContract.r9d(), externalMiddlewares);
|
|
1410
|
+
var tmp1_externalReducers = plus(storeContract.q9d(), externalReducers);
|
|
1411
|
+
tmp_10.jd8_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1344
1412
|
}
|
|
1345
1413
|
protoOf(GameServer).s6v = function () {
|
|
1346
|
-
return this.
|
|
1414
|
+
return this.jd8_1;
|
|
1347
1415
|
};
|
|
1348
1416
|
protoOf(GameServer).w5o = function () {
|
|
1349
1417
|
return this.x6e().f6x().id;
|
|
@@ -1367,44 +1435,44 @@
|
|
|
1367
1435
|
};
|
|
1368
1436
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1369
1437
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1370
|
-
this.
|
|
1438
|
+
this.jd8_1.e6x(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1371
1439
|
};
|
|
1372
1440
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1373
1441
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1374
|
-
this.
|
|
1442
|
+
this.jd8_1.e6x(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1375
1443
|
};
|
|
1376
1444
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1377
1445
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1378
|
-
this.
|
|
1446
|
+
this.jd8_1.e6x(GameServer$playerLive$slambda_0(playerId, null));
|
|
1379
1447
|
};
|
|
1380
1448
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1381
1449
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1382
|
-
this.
|
|
1450
|
+
this.jd8_1.e6x(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1383
1451
|
};
|
|
1384
|
-
protoOf(GameServer).
|
|
1385
|
-
this.
|
|
1452
|
+
protoOf(GameServer).zde = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1453
|
+
this.jd8_1.e6x(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1386
1454
|
};
|
|
1387
1455
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1388
|
-
this.
|
|
1456
|
+
this.jd8_1.e6x(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1389
1457
|
};
|
|
1390
1458
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1391
|
-
this.
|
|
1459
|
+
this.jd8_1.e6x(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1392
1460
|
};
|
|
1393
1461
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1394
|
-
this.
|
|
1462
|
+
this.jd8_1.e6x(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1395
1463
|
};
|
|
1396
1464
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1397
1465
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1398
|
-
this.
|
|
1466
|
+
this.jd8_1.e6x(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1399
1467
|
};
|
|
1400
|
-
protoOf(GameServer).
|
|
1401
|
-
this.
|
|
1468
|
+
protoOf(GameServer).adf = function (newRid) {
|
|
1469
|
+
this.jd8_1.e6x(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1402
1470
|
};
|
|
1403
1471
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1404
|
-
this.
|
|
1472
|
+
this.jd8_1.e6x(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1405
1473
|
};
|
|
1406
|
-
protoOf(GameServer).
|
|
1407
|
-
this.
|
|
1474
|
+
protoOf(GameServer).bdf = function (reason, roomId) {
|
|
1475
|
+
this.jd8_1.e6x(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1408
1476
|
};
|
|
1409
1477
|
protoOf(GameServer).clear = function () {
|
|
1410
1478
|
return this.a2();
|
|
@@ -1424,6 +1492,11 @@
|
|
|
1424
1492
|
return _get_playerConnectionInteractor__si6cxf(receiver);
|
|
1425
1493
|
}, null);
|
|
1426
1494
|
}
|
|
1495
|
+
function teamsLogicProvider$factory() {
|
|
1496
|
+
return getPropertyCallableRef('teamsLogicProvider', 1, KProperty1, function (receiver) {
|
|
1497
|
+
return _get_teamsLogicProvider__u10pm6(receiver);
|
|
1498
|
+
}, null);
|
|
1499
|
+
}
|
|
1427
1500
|
function logger$factory_0() {
|
|
1428
1501
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
1429
1502
|
return _get_logger__rkp4sl(receiver);
|
|
@@ -1439,6 +1512,11 @@
|
|
|
1439
1512
|
return _get_playerConnectionInteractor__si6cxf(receiver);
|
|
1440
1513
|
}, null);
|
|
1441
1514
|
}
|
|
1515
|
+
function teamsLogicProvider$factory_0() {
|
|
1516
|
+
return getPropertyCallableRef('teamsLogicProvider', 1, KProperty1, function (receiver) {
|
|
1517
|
+
return _get_teamsLogicProvider__u10pm6(receiver);
|
|
1518
|
+
}, null);
|
|
1519
|
+
}
|
|
1442
1520
|
function random$factory() {
|
|
1443
1521
|
return getPropertyCallableRef('random', 1, KProperty1, function (receiver) {
|
|
1444
1522
|
return _get_random__h29cgo(receiver);
|
|
@@ -1478,16 +1556,16 @@
|
|
|
1478
1556
|
return ServerShutdownReason_ERROR_instance;
|
|
1479
1557
|
}
|
|
1480
1558
|
function ServerConfig(canStartNewGame) {
|
|
1481
|
-
this.
|
|
1559
|
+
this.jde_1 = canStartNewGame;
|
|
1482
1560
|
}
|
|
1483
|
-
protoOf(ServerConfig).
|
|
1561
|
+
protoOf(ServerConfig).kde = function (canStartNewGame) {
|
|
1484
1562
|
return new ServerConfig(canStartNewGame);
|
|
1485
1563
|
};
|
|
1486
1564
|
protoOf(ServerConfig).toString = function () {
|
|
1487
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1565
|
+
return 'ServerConfig(canStartNewGame=' + this.jde_1 + ')';
|
|
1488
1566
|
};
|
|
1489
1567
|
protoOf(ServerConfig).hashCode = function () {
|
|
1490
|
-
return getBooleanHashCode(this.
|
|
1568
|
+
return getBooleanHashCode(this.jde_1);
|
|
1491
1569
|
};
|
|
1492
1570
|
protoOf(ServerConfig).equals = function (other) {
|
|
1493
1571
|
if (this === other)
|
|
@@ -1495,7 +1573,7 @@
|
|
|
1495
1573
|
if (!(other instanceof ServerConfig))
|
|
1496
1574
|
return false;
|
|
1497
1575
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1498
|
-
if (!(this.
|
|
1576
|
+
if (!(this.jde_1 === tmp0_other_with_cast.jde_1))
|
|
1499
1577
|
return false;
|
|
1500
1578
|
return true;
|
|
1501
1579
|
};
|
|
@@ -1727,18 +1805,18 @@
|
|
|
1727
1805
|
function ToClientEventsObserver() {
|
|
1728
1806
|
}
|
|
1729
1807
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1730
|
-
this.
|
|
1731
|
-
this.
|
|
1808
|
+
this.ldf_1 = this$0;
|
|
1809
|
+
this.mdf_1 = $actions;
|
|
1732
1810
|
CoroutineImpl.call(this, resultContinuation);
|
|
1733
1811
|
}
|
|
1734
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1735
|
-
var tmp = this.
|
|
1812
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).tdf = function ($this$flow, $completion) {
|
|
1813
|
+
var tmp = this.udf($this$flow, $completion);
|
|
1736
1814
|
tmp.g9_1 = Unit_instance;
|
|
1737
1815
|
tmp.h9_1 = null;
|
|
1738
1816
|
return tmp.m9();
|
|
1739
1817
|
};
|
|
1740
1818
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1741
|
-
return this.
|
|
1819
|
+
return this.tdf((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1742
1820
|
};
|
|
1743
1821
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1744
1822
|
var suspendResult = this.g9_1;
|
|
@@ -1749,23 +1827,23 @@
|
|
|
1749
1827
|
case 0:
|
|
1750
1828
|
this.f9_1 = 4;
|
|
1751
1829
|
var tmp_0 = this;
|
|
1752
|
-
tmp_0.
|
|
1830
|
+
tmp_0.odf_1 = this.ldf_1.zdf_1;
|
|
1753
1831
|
var tmp_1 = this;
|
|
1754
|
-
tmp_1.
|
|
1755
|
-
this.
|
|
1832
|
+
tmp_1.pdf_1 = transformToEmits(this.ldf_1, this.mdf_1);
|
|
1833
|
+
this.qdf_1 = this.pdf_1.j();
|
|
1756
1834
|
this.e9_1 = 1;
|
|
1757
1835
|
continue $sm;
|
|
1758
1836
|
case 1:
|
|
1759
|
-
if (!this.
|
|
1837
|
+
if (!this.qdf_1.k()) {
|
|
1760
1838
|
this.e9_1 = 3;
|
|
1761
1839
|
continue $sm;
|
|
1762
1840
|
}
|
|
1763
1841
|
|
|
1764
|
-
this.
|
|
1842
|
+
this.rdf_1 = this.qdf_1.l();
|
|
1765
1843
|
var tmp_2 = this;
|
|
1766
|
-
tmp_2.
|
|
1844
|
+
tmp_2.sdf_1 = this.rdf_1;
|
|
1767
1845
|
this.e9_1 = 2;
|
|
1768
|
-
suspendResult = this.
|
|
1846
|
+
suspendResult = this.ndf_1.p18(this.sdf_1, this);
|
|
1769
1847
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1770
1848
|
return suspendResult;
|
|
1771
1849
|
}
|
|
@@ -1776,10 +1854,10 @@
|
|
|
1776
1854
|
continue $sm;
|
|
1777
1855
|
case 3:
|
|
1778
1856
|
l$ret$1: do {
|
|
1779
|
-
var this_0 = this.
|
|
1857
|
+
var this_0 = this.ldf_1.ydf_1;
|
|
1780
1858
|
while (true) {
|
|
1781
1859
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1782
|
-
var upd = cur - this.
|
|
1860
|
+
var upd = cur - this.mdf_1.m() | 0;
|
|
1783
1861
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1784
1862
|
break l$ret$1;
|
|
1785
1863
|
}
|
|
@@ -1801,15 +1879,15 @@
|
|
|
1801
1879
|
}
|
|
1802
1880
|
while (true);
|
|
1803
1881
|
};
|
|
1804
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1805
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1806
|
-
i.
|
|
1882
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).udf = function ($this$flow, completion) {
|
|
1883
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.ldf_1, this.mdf_1, completion);
|
|
1884
|
+
i.ndf_1 = $this$flow;
|
|
1807
1885
|
return i;
|
|
1808
1886
|
};
|
|
1809
1887
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1810
1888
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1811
1889
|
var l = function ($this$flow, $completion) {
|
|
1812
|
-
return i.
|
|
1890
|
+
return i.tdf($this$flow, $completion);
|
|
1813
1891
|
};
|
|
1814
1892
|
l.$arity = 1;
|
|
1815
1893
|
return l;
|
|
@@ -1837,7 +1915,7 @@
|
|
|
1837
1915
|
var tmp_0;
|
|
1838
1916
|
if (value == null) {
|
|
1839
1917
|
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
1840
|
-
var answer = ArrayList_init_$Create$();
|
|
1918
|
+
var answer = ArrayList_init_$Create$_0();
|
|
1841
1919
|
destination.j2(key, answer);
|
|
1842
1920
|
tmp_0 = answer;
|
|
1843
1921
|
} else {
|
|
@@ -1852,7 +1930,7 @@
|
|
|
1852
1930
|
|
|
1853
1931
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1854
1932
|
|
|
1855
|
-
var destination_0 = ArrayList_init_$Create$
|
|
1933
|
+
var destination_0 = ArrayList_init_$Create$(groups.m());
|
|
1856
1934
|
// Inline function 'kotlin.collections.iterator' call
|
|
1857
1935
|
|
|
1858
1936
|
var tmp0_iterator_0 = groups.s().j();
|
|
@@ -1882,29 +1960,29 @@
|
|
|
1882
1960
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1883
1961
|
}
|
|
1884
1962
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1885
|
-
var tmp = $this.
|
|
1963
|
+
var tmp = $this.xdf_1.b6m();
|
|
1886
1964
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1887
|
-
var this_0 = _this__u8e3s4.
|
|
1965
|
+
var this_0 = _this__u8e3s4.cdg_1;
|
|
1888
1966
|
var tmp_0 = copyToArray(this_0);
|
|
1889
1967
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1890
|
-
var this_1 = _this__u8e3s4.
|
|
1968
|
+
var this_1 = _this__u8e3s4.ddg_1;
|
|
1891
1969
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1892
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1970
|
+
return new ActionDeliveryPayload(_this__u8e3s4.bdg_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.edg_1);
|
|
1893
1971
|
}
|
|
1894
1972
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1895
|
-
this.
|
|
1896
|
-
this.
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1973
|
+
this.bdg_1 = tableId;
|
|
1974
|
+
this.cdg_1 = includePlayers;
|
|
1975
|
+
this.ddg_1 = excludePlayers;
|
|
1976
|
+
this.edg_1 = deliveryType;
|
|
1899
1977
|
}
|
|
1900
1978
|
protoOf(GroupKey).toString = function () {
|
|
1901
|
-
return 'GroupKey(tableId=' + this.
|
|
1979
|
+
return 'GroupKey(tableId=' + this.bdg_1 + ', includePlayers=' + toString(this.cdg_1) + ', excludePlayers=' + toString(this.ddg_1) + ', deliveryType=' + this.edg_1.toString() + ')';
|
|
1902
1980
|
};
|
|
1903
1981
|
protoOf(GroupKey).hashCode = function () {
|
|
1904
|
-
var result = getStringHashCode(this.
|
|
1905
|
-
result = imul(result, 31) + hashCode(this.
|
|
1906
|
-
result = imul(result, 31) + hashCode(this.
|
|
1907
|
-
result = imul(result, 31) + this.
|
|
1982
|
+
var result = getStringHashCode(this.bdg_1);
|
|
1983
|
+
result = imul(result, 31) + hashCode(this.cdg_1) | 0;
|
|
1984
|
+
result = imul(result, 31) + hashCode(this.ddg_1) | 0;
|
|
1985
|
+
result = imul(result, 31) + this.edg_1.hashCode() | 0;
|
|
1908
1986
|
return result;
|
|
1909
1987
|
};
|
|
1910
1988
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1913,35 +1991,35 @@
|
|
|
1913
1991
|
if (!(other instanceof GroupKey))
|
|
1914
1992
|
return false;
|
|
1915
1993
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1916
|
-
if (!(this.
|
|
1994
|
+
if (!(this.bdg_1 === tmp0_other_with_cast.bdg_1))
|
|
1917
1995
|
return false;
|
|
1918
|
-
if (!equals(this.
|
|
1996
|
+
if (!equals(this.cdg_1, tmp0_other_with_cast.cdg_1))
|
|
1919
1997
|
return false;
|
|
1920
|
-
if (!equals(this.
|
|
1998
|
+
if (!equals(this.ddg_1, tmp0_other_with_cast.ddg_1))
|
|
1921
1999
|
return false;
|
|
1922
|
-
if (!this.
|
|
2000
|
+
if (!this.edg_1.equals(tmp0_other_with_cast.edg_1))
|
|
1923
2001
|
return false;
|
|
1924
2002
|
return true;
|
|
1925
2003
|
};
|
|
1926
2004
|
function Companion_0() {
|
|
1927
|
-
this.
|
|
2005
|
+
this.fdg_1 = 6;
|
|
1928
2006
|
}
|
|
1929
2007
|
var Companion_instance_8;
|
|
1930
2008
|
function Companion_getInstance_1() {
|
|
1931
2009
|
return Companion_instance_8;
|
|
1932
2010
|
}
|
|
1933
2011
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1934
|
-
this.
|
|
2012
|
+
this.odg_1 = this$0;
|
|
1935
2013
|
CoroutineImpl.call(this, resultContinuation);
|
|
1936
2014
|
}
|
|
1937
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1938
|
-
var tmp = this.
|
|
2015
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).qdg = function (actions, $completion) {
|
|
2016
|
+
var tmp = this.rdg(actions, $completion);
|
|
1939
2017
|
tmp.g9_1 = Unit_instance;
|
|
1940
2018
|
tmp.h9_1 = null;
|
|
1941
2019
|
return tmp.m9();
|
|
1942
2020
|
};
|
|
1943
2021
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
1944
|
-
return this.
|
|
2022
|
+
return this.qdg((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1945
2023
|
};
|
|
1946
2024
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
1947
2025
|
var suspendResult = this.g9_1;
|
|
@@ -1950,7 +2028,7 @@
|
|
|
1950
2028
|
var tmp = this.e9_1;
|
|
1951
2029
|
if (tmp === 0) {
|
|
1952
2030
|
this.f9_1 = 1;
|
|
1953
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
2031
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.odg_1, this.pdg_1, null));
|
|
1954
2032
|
} else if (tmp === 1) {
|
|
1955
2033
|
throw this.h9_1;
|
|
1956
2034
|
}
|
|
@@ -1960,23 +2038,23 @@
|
|
|
1960
2038
|
}
|
|
1961
2039
|
while (true);
|
|
1962
2040
|
};
|
|
1963
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1964
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1965
|
-
i.
|
|
2041
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).rdg = function (actions, completion) {
|
|
2042
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.odg_1, completion);
|
|
2043
|
+
i.pdg_1 = actions;
|
|
1966
2044
|
return i;
|
|
1967
2045
|
};
|
|
1968
2046
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1969
2047
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1970
2048
|
var l = function (actions, $completion) {
|
|
1971
|
-
return i.
|
|
2049
|
+
return i.qdg(actions, $completion);
|
|
1972
2050
|
};
|
|
1973
2051
|
l.$arity = 1;
|
|
1974
2052
|
return l;
|
|
1975
2053
|
}
|
|
1976
2054
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
1977
2055
|
CoroutineImpl.call(this, resultContinuation);
|
|
1978
|
-
this.
|
|
1979
|
-
this.
|
|
2056
|
+
this.adh_1 = _this__u8e3s4;
|
|
2057
|
+
this.bdh_1 = fromEvent;
|
|
1980
2058
|
}
|
|
1981
2059
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
1982
2060
|
var suspendResult = this.g9_1;
|
|
@@ -1987,9 +2065,9 @@
|
|
|
1987
2065
|
case 0:
|
|
1988
2066
|
this.f9_1 = 2;
|
|
1989
2067
|
var tmp_0 = this;
|
|
1990
|
-
tmp_0.
|
|
2068
|
+
tmp_0.cdh_1 = this.adh_1.zdf_1;
|
|
1991
2069
|
l$ret$1: do {
|
|
1992
|
-
var this_0 = this.
|
|
2070
|
+
var this_0 = this.adh_1.ydf_1;
|
|
1993
2071
|
while (true) {
|
|
1994
2072
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1995
2073
|
var upd = cur + 1 | 0;
|
|
@@ -2000,7 +2078,7 @@
|
|
|
2000
2078
|
}
|
|
2001
2079
|
while (false);
|
|
2002
2080
|
this.e9_1 = 1;
|
|
2003
|
-
suspendResult = this.
|
|
2081
|
+
suspendResult = this.adh_1.adg_1.p18(this.bdh_1, this);
|
|
2004
2082
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2005
2083
|
return suspendResult;
|
|
2006
2084
|
}
|
|
@@ -2024,7 +2102,7 @@
|
|
|
2024
2102
|
};
|
|
2025
2103
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2026
2104
|
CoroutineImpl.call(this, resultContinuation);
|
|
2027
|
-
this.
|
|
2105
|
+
this.ldh_1 = _this__u8e3s4;
|
|
2028
2106
|
}
|
|
2029
2107
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2030
2108
|
var suspendResult = this.g9_1;
|
|
@@ -2035,12 +2113,12 @@
|
|
|
2035
2113
|
case 0:
|
|
2036
2114
|
this.f9_1 = 5;
|
|
2037
2115
|
var tmp_0 = this;
|
|
2038
|
-
tmp_0.
|
|
2039
|
-
this.
|
|
2116
|
+
tmp_0.mdh_1 = this.ldh_1.zdf_1;
|
|
2117
|
+
this.ndh_1 = 0;
|
|
2040
2118
|
this.e9_1 = 1;
|
|
2041
2119
|
continue $sm;
|
|
2042
2120
|
case 1:
|
|
2043
|
-
if (!!(this.
|
|
2121
|
+
if (!!(this.ldh_1.ydf_1.kotlinx$atomicfu$value === 0)) {
|
|
2044
2122
|
this.e9_1 = 4;
|
|
2045
2123
|
continue $sm;
|
|
2046
2124
|
}
|
|
@@ -2053,9 +2131,9 @@
|
|
|
2053
2131
|
|
|
2054
2132
|
continue $sm;
|
|
2055
2133
|
case 2:
|
|
2056
|
-
this.
|
|
2057
|
-
if (this.
|
|
2058
|
-
this.
|
|
2134
|
+
this.ndh_1 = this.ndh_1 + 1 | 0;
|
|
2135
|
+
if (this.ndh_1 > 6) {
|
|
2136
|
+
this.ldh_1.wdf_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.ldh_1.ydf_1.kotlinx$atomicfu$value);
|
|
2059
2137
|
this.e9_1 = 4;
|
|
2060
2138
|
continue $sm;
|
|
2061
2139
|
} else {
|
|
@@ -2083,42 +2161,42 @@
|
|
|
2083
2161
|
while (true);
|
|
2084
2162
|
};
|
|
2085
2163
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2086
|
-
this.
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2089
|
-
this.
|
|
2164
|
+
this.vdf_1 = serverReduxConfig;
|
|
2165
|
+
this.wdf_1 = logger;
|
|
2166
|
+
this.xdf_1 = idsProvider;
|
|
2167
|
+
this.ydf_1 = atomic$ref$1(0);
|
|
2090
2168
|
var tmp = this;
|
|
2091
2169
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2092
|
-
tmp.
|
|
2093
|
-
this.
|
|
2170
|
+
tmp.zdf_1 = get_atomicfu$reentrantLock();
|
|
2171
|
+
this.adg_1 = MutableSharedFlow();
|
|
2094
2172
|
}
|
|
2095
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2173
|
+
protoOf(ToClientEventsObserverImpl).cdf = function (fromEvent, $completion) {
|
|
2096
2174
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2097
2175
|
tmp.g9_1 = Unit_instance;
|
|
2098
2176
|
tmp.h9_1 = null;
|
|
2099
2177
|
return tmp.m9();
|
|
2100
2178
|
};
|
|
2101
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2179
|
+
protoOf(ToClientEventsObserverImpl).y9k = function ($completion) {
|
|
2102
2180
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2103
2181
|
tmp.g9_1 = Unit_instance;
|
|
2104
2182
|
tmp.h9_1 = null;
|
|
2105
2183
|
return tmp.m9();
|
|
2106
2184
|
};
|
|
2107
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2108
|
-
if (!this.
|
|
2109
|
-
return this.
|
|
2185
|
+
protoOf(ToClientEventsObserverImpl).dbb = function () {
|
|
2186
|
+
if (!this.vdf_1.enabledCombinedEvents) {
|
|
2187
|
+
return this.adg_1;
|
|
2110
2188
|
}
|
|
2111
|
-
var tmp = windowedByInterval(this.
|
|
2189
|
+
var tmp = windowedByInterval(this.adg_1, toLong(this.vdf_1.combinedEventsPeriod));
|
|
2112
2190
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2113
2191
|
};
|
|
2114
2192
|
function UpdateServerConfigAction(serverConfig) {
|
|
2115
|
-
this.
|
|
2193
|
+
this.odh_1 = serverConfig;
|
|
2116
2194
|
}
|
|
2117
2195
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2118
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2196
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.odh_1.toString() + ')';
|
|
2119
2197
|
};
|
|
2120
2198
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2121
|
-
return this.
|
|
2199
|
+
return this.odh_1.hashCode();
|
|
2122
2200
|
};
|
|
2123
2201
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2124
2202
|
if (this === other)
|
|
@@ -2126,18 +2204,18 @@
|
|
|
2126
2204
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2127
2205
|
return false;
|
|
2128
2206
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2129
|
-
if (!this.
|
|
2207
|
+
if (!this.odh_1.equals(tmp0_other_with_cast.odh_1))
|
|
2130
2208
|
return false;
|
|
2131
2209
|
return true;
|
|
2132
2210
|
};
|
|
2133
2211
|
function AddSpectatorsAction(spectators) {
|
|
2134
|
-
this.
|
|
2212
|
+
this.pdh_1 = spectators;
|
|
2135
2213
|
}
|
|
2136
2214
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2137
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2215
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.pdh_1) + ')';
|
|
2138
2216
|
};
|
|
2139
2217
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2140
|
-
return hashCode(this.
|
|
2218
|
+
return hashCode(this.pdh_1);
|
|
2141
2219
|
};
|
|
2142
2220
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2143
2221
|
if (this === other)
|
|
@@ -2145,18 +2223,18 @@
|
|
|
2145
2223
|
if (!(other instanceof AddSpectatorsAction))
|
|
2146
2224
|
return false;
|
|
2147
2225
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2148
|
-
if (!equals(this.
|
|
2226
|
+
if (!equals(this.pdh_1, tmp0_other_with_cast.pdh_1))
|
|
2149
2227
|
return false;
|
|
2150
2228
|
return true;
|
|
2151
2229
|
};
|
|
2152
2230
|
function RemoveSpectatorsAction(spectators) {
|
|
2153
|
-
this.
|
|
2231
|
+
this.qdh_1 = spectators;
|
|
2154
2232
|
}
|
|
2155
2233
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2156
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2234
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.qdh_1) + ')';
|
|
2157
2235
|
};
|
|
2158
2236
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2159
|
-
return hashCode(this.
|
|
2237
|
+
return hashCode(this.qdh_1);
|
|
2160
2238
|
};
|
|
2161
2239
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2162
2240
|
if (this === other)
|
|
@@ -2164,7 +2242,7 @@
|
|
|
2164
2242
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2165
2243
|
return false;
|
|
2166
2244
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2167
|
-
if (!equals(this.
|
|
2245
|
+
if (!equals(this.qdh_1, tmp0_other_with_cast.qdh_1))
|
|
2168
2246
|
return false;
|
|
2169
2247
|
return true;
|
|
2170
2248
|
};
|
|
@@ -2172,61 +2250,61 @@
|
|
|
2172
2250
|
}
|
|
2173
2251
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2174
2252
|
// Inline function 'kotlin.getValue' call
|
|
2175
|
-
var this_0 = $this.
|
|
2253
|
+
var this_0 = $this.wdh_1;
|
|
2176
2254
|
asyncProvider$factory_0();
|
|
2177
2255
|
return this_0.u();
|
|
2178
2256
|
}
|
|
2179
2257
|
function _get_logger__rkp4sl_0($this) {
|
|
2180
2258
|
// Inline function 'kotlin.getValue' call
|
|
2181
|
-
var this_0 = $this.
|
|
2259
|
+
var this_0 = $this.xdh_1;
|
|
2182
2260
|
logger$factory_2();
|
|
2183
2261
|
return this_0.u();
|
|
2184
2262
|
}
|
|
2185
2263
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2186
2264
|
// Inline function 'kotlin.getValue' call
|
|
2187
|
-
var this_0 = $this.
|
|
2265
|
+
var this_0 = $this.ydh_1;
|
|
2188
2266
|
playerConnectionInteractor$factory_2();
|
|
2189
2267
|
return this_0.u();
|
|
2190
2268
|
}
|
|
2191
2269
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2192
2270
|
// Inline function 'kotlin.getValue' call
|
|
2193
|
-
var this_0 = $this.
|
|
2271
|
+
var this_0 = $this.zdh_1;
|
|
2194
2272
|
lastCardInteractor$factory_0();
|
|
2195
2273
|
return this_0.u();
|
|
2196
2274
|
}
|
|
2197
2275
|
function _get_serverConfig__rk2g06($this) {
|
|
2198
2276
|
// Inline function 'kotlin.getValue' call
|
|
2199
|
-
var this_0 = $this.
|
|
2277
|
+
var this_0 = $this.adi_1;
|
|
2200
2278
|
serverConfig$factory_0();
|
|
2201
2279
|
return this_0.u();
|
|
2202
2280
|
}
|
|
2203
2281
|
function _get_logicConfig__52ww9d($this) {
|
|
2204
2282
|
// Inline function 'kotlin.getValue' call
|
|
2205
|
-
var this_0 = $this.
|
|
2283
|
+
var this_0 = $this.bdi_1;
|
|
2206
2284
|
logicConfig$factory_0();
|
|
2207
2285
|
return this_0.u();
|
|
2208
2286
|
}
|
|
2209
2287
|
function _get_idsProvider__fnfajc($this) {
|
|
2210
2288
|
// Inline function 'kotlin.getValue' call
|
|
2211
|
-
var this_0 = $this.
|
|
2289
|
+
var this_0 = $this.cdi_1;
|
|
2212
2290
|
idsProvider$factory_0();
|
|
2213
2291
|
return this_0.u();
|
|
2214
2292
|
}
|
|
2215
2293
|
function _get_botConfig__cpaxzc($this) {
|
|
2216
2294
|
// Inline function 'kotlin.getValue' call
|
|
2217
|
-
var this_0 = $this.
|
|
2295
|
+
var this_0 = $this.ddi_1;
|
|
2218
2296
|
botConfig$factory_0();
|
|
2219
2297
|
return this_0.u();
|
|
2220
2298
|
}
|
|
2221
2299
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2222
2300
|
// Inline function 'kotlin.getValue' call
|
|
2223
|
-
var this_0 = $this.
|
|
2301
|
+
var this_0 = $this.edi_1;
|
|
2224
2302
|
scenePositionProvider$factory_0();
|
|
2225
2303
|
return this_0.u();
|
|
2226
2304
|
}
|
|
2227
2305
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2228
2306
|
// Inline function 'kotlin.getValue' call
|
|
2229
|
-
var this_0 = $this.
|
|
2307
|
+
var this_0 = $this.fdi_1;
|
|
2230
2308
|
toClientEventsObserver$factory_2();
|
|
2231
2309
|
return this_0.u();
|
|
2232
2310
|
}
|
|
@@ -2239,77 +2317,77 @@
|
|
|
2239
2317
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2240
2318
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2241
2319
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2320
|
+
this.rdh_1 = validationStoreContract;
|
|
2321
|
+
this.sdh_1 = timersStoreContract;
|
|
2322
|
+
this.tdh_1 = botGameStoreContract;
|
|
2323
|
+
this.udh_1 = gameMechanicStoreContract;
|
|
2324
|
+
this.vdh_1 = fileLoggerStoreContract;
|
|
2247
2325
|
var tmp = this;
|
|
2248
2326
|
// Inline function 'org.kodein.di.instance' call
|
|
2249
2327
|
// Inline function 'org.kodein.type.generic' call
|
|
2250
2328
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2251
2329
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2252
|
-
tmp.
|
|
2330
|
+
tmp.wdh_1 = Instance(di, tmp$ret$0, null).m67(this, asyncProvider$factory());
|
|
2253
2331
|
var tmp_1 = this;
|
|
2254
2332
|
// Inline function 'org.kodein.di.instance' call
|
|
2255
2333
|
// Inline function 'org.kodein.type.generic' call
|
|
2256
2334
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2257
2335
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2258
|
-
tmp_1.
|
|
2336
|
+
tmp_1.xdh_1 = Instance(di, tmp$ret$2, null).m67(this, logger$factory_1());
|
|
2259
2337
|
var tmp_3 = this;
|
|
2260
2338
|
// Inline function 'org.kodein.di.instance' call
|
|
2261
2339
|
// Inline function 'org.kodein.type.generic' call
|
|
2262
2340
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2263
2341
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2264
|
-
tmp_3.
|
|
2342
|
+
tmp_3.ydh_1 = Instance(di, tmp$ret$4, null).m67(this, playerConnectionInteractor$factory_1());
|
|
2265
2343
|
var tmp_5 = this;
|
|
2266
2344
|
// Inline function 'org.kodein.di.instance' call
|
|
2267
2345
|
// Inline function 'org.kodein.type.generic' call
|
|
2268
2346
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2269
2347
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2270
|
-
tmp_5.
|
|
2348
|
+
tmp_5.zdh_1 = Instance(di, tmp$ret$6, null).m67(this, lastCardInteractor$factory());
|
|
2271
2349
|
var tmp_7 = this;
|
|
2272
2350
|
// Inline function 'org.kodein.di.instance' call
|
|
2273
2351
|
// Inline function 'org.kodein.type.generic' call
|
|
2274
2352
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2275
2353
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2276
|
-
tmp_7.
|
|
2354
|
+
tmp_7.adi_1 = Instance(di, tmp$ret$8, null).m67(this, serverConfig$factory());
|
|
2277
2355
|
var tmp_9 = this;
|
|
2278
2356
|
// Inline function 'org.kodein.di.instance' call
|
|
2279
2357
|
// Inline function 'org.kodein.type.generic' call
|
|
2280
2358
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2281
2359
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2282
|
-
tmp_9.
|
|
2360
|
+
tmp_9.bdi_1 = Instance(di, tmp$ret$10, null).m67(this, logicConfig$factory());
|
|
2283
2361
|
var tmp_11 = this;
|
|
2284
2362
|
// Inline function 'org.kodein.di.instance' call
|
|
2285
2363
|
// Inline function 'org.kodein.type.generic' call
|
|
2286
2364
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2287
2365
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2288
|
-
tmp_11.
|
|
2366
|
+
tmp_11.cdi_1 = Instance(di, tmp$ret$12, null).m67(this, idsProvider$factory());
|
|
2289
2367
|
var tmp_13 = this;
|
|
2290
2368
|
// Inline function 'org.kodein.di.instance' call
|
|
2291
2369
|
// Inline function 'org.kodein.type.generic' call
|
|
2292
2370
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2293
2371
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2294
|
-
tmp_13.
|
|
2372
|
+
tmp_13.ddi_1 = Instance(di, tmp$ret$14, null).m67(this, botConfig$factory());
|
|
2295
2373
|
var tmp_15 = this;
|
|
2296
2374
|
// Inline function 'org.kodein.di.instance' call
|
|
2297
2375
|
// Inline function 'org.kodein.type.generic' call
|
|
2298
2376
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2299
2377
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2300
|
-
tmp_15.
|
|
2378
|
+
tmp_15.edi_1 = Instance(di, tmp$ret$16, null).m67(this, scenePositionProvider$factory());
|
|
2301
2379
|
var tmp_17 = this;
|
|
2302
2380
|
// Inline function 'org.kodein.di.instance' call
|
|
2303
2381
|
// Inline function 'org.kodein.type.generic' call
|
|
2304
2382
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2305
2383
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2306
|
-
tmp_17.
|
|
2384
|
+
tmp_17.fdi_1 = Instance(di, tmp$ret$18, null).m67(this, toClientEventsObserver$factory_1());
|
|
2307
2385
|
}
|
|
2308
|
-
protoOf(ServerGameStoreContract).
|
|
2309
|
-
return plus(plus(plus(plus(plus(this.
|
|
2386
|
+
protoOf(ServerGameStoreContract).q9d = function () {
|
|
2387
|
+
return plus(plus(plus(plus(plus(this.rdh_1.q9d(), this.sdh_1.q9d()), this.tdh_1.q9d()), this.udh_1.q9d()), this.vdh_1.q9d()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2310
2388
|
};
|
|
2311
|
-
protoOf(ServerGameStoreContract).
|
|
2312
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2389
|
+
protoOf(ServerGameStoreContract).r9d = function () {
|
|
2390
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.rdh_1.r9d(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.sdh_1.r9d()), this.tdh_1.r9d()), this.udh_1.r9d()), this.vdh_1.r9d()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).j9f(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2313
2391
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2314
2392
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2315
2393
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2439,7 +2517,7 @@
|
|
|
2439
2517
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2440
2518
|
next(action_0);
|
|
2441
2519
|
var state = store.state;
|
|
2442
|
-
if (!get_serverState(state).
|
|
2520
|
+
if (!get_serverState(state).ide_1.jde_1 && action_0.isGameFinished) {
|
|
2443
2521
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.d6w_1));
|
|
2444
2522
|
}
|
|
2445
2523
|
};
|
|
@@ -2452,7 +2530,7 @@
|
|
|
2452
2530
|
};
|
|
2453
2531
|
}
|
|
2454
2532
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2455
|
-
this.
|
|
2533
|
+
this.idi_1 = this$0;
|
|
2456
2534
|
}
|
|
2457
2535
|
protoOf(_no_name_provided__qut3iv_0).c6o = function (action) {
|
|
2458
2536
|
return action instanceof MechanicAction;
|
|
@@ -2467,13 +2545,13 @@
|
|
|
2467
2545
|
var tmp;
|
|
2468
2546
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2469
2547
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2470
|
-
var this_0 = this.
|
|
2471
|
-
var tableId = action_0.
|
|
2472
|
-
var gameCreatorPlayerId = action_0.
|
|
2548
|
+
var this_0 = this.idi_1;
|
|
2549
|
+
var tableId = action_0.d88_1;
|
|
2550
|
+
var gameCreatorPlayerId = action_0.f88_1;
|
|
2473
2551
|
// Inline function 'kotlin.collections.map' call
|
|
2474
|
-
var this_1 = action_0.
|
|
2552
|
+
var this_1 = action_0.g88_1;
|
|
2475
2553
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2476
|
-
var destination = ArrayList_init_$Create$
|
|
2554
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
2477
2555
|
var tmp0_iterator = this_1.j();
|
|
2478
2556
|
while (tmp0_iterator.k()) {
|
|
2479
2557
|
var item = tmp0_iterator.l();
|
|
@@ -2485,7 +2563,7 @@
|
|
|
2485
2563
|
// Inline function 'kotlin.collections.map' call
|
|
2486
2564
|
// Inline function 'kotlin.collections.filter' call
|
|
2487
2565
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2488
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
2566
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
2489
2567
|
var tmp0_iterator_0 = destination.j();
|
|
2490
2568
|
while (tmp0_iterator_0.k()) {
|
|
2491
2569
|
var element = tmp0_iterator_0.l();
|
|
@@ -2495,7 +2573,7 @@
|
|
|
2495
2573
|
}
|
|
2496
2574
|
}
|
|
2497
2575
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2498
|
-
var destination_1 = ArrayList_init_$Create$
|
|
2576
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_0, 10));
|
|
2499
2577
|
var tmp0_iterator_1 = destination_0.j();
|
|
2500
2578
|
while (tmp0_iterator_1.k()) {
|
|
2501
2579
|
var item_0 = tmp0_iterator_1.l();
|
|
@@ -2504,7 +2582,7 @@
|
|
|
2504
2582
|
destination_1.e(tmp$ret$6);
|
|
2505
2583
|
}
|
|
2506
2584
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2507
|
-
var destination_2 = ArrayList_init_$Create$();
|
|
2585
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
2508
2586
|
// Inline function 'kotlin.collections.forEach' call
|
|
2509
2587
|
var tmp0_iterator_2 = destination_1.j();
|
|
2510
2588
|
while (tmp0_iterator_2.k()) {
|
|
@@ -2512,10 +2590,10 @@
|
|
|
2512
2590
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2513
2591
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2514
2592
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2515
|
-
var tmp0_aid = this_0.
|
|
2593
|
+
var tmp0_aid = this_0.hdi_1.b6m();
|
|
2516
2594
|
// Inline function 'kotlin.collections.map' call
|
|
2517
2595
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2518
|
-
var destination_3 = ArrayList_init_$Create$
|
|
2596
|
+
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
2519
2597
|
var tmp0_iterator_3 = destination.j();
|
|
2520
2598
|
while (tmp0_iterator_3.k()) {
|
|
2521
2599
|
var item_1 = tmp0_iterator_3.l();
|
|
@@ -2537,24 +2615,24 @@
|
|
|
2537
2615
|
} else {
|
|
2538
2616
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2539
2617
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2540
|
-
var this_2 = this.
|
|
2618
|
+
var this_2 = this.idi_1;
|
|
2541
2619
|
var table = state.f6x();
|
|
2542
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2543
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2621
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.hdi_1.b6m(), table.id, null);
|
|
2544
2622
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2545
2623
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2546
2624
|
} else {
|
|
2547
2625
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2548
2626
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2549
|
-
var this_3 = this.
|
|
2550
|
-
var tableId_0 = action_0.
|
|
2627
|
+
var this_3 = this.idi_1;
|
|
2628
|
+
var tableId_0 = action_0.j88_1.id;
|
|
2551
2629
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2552
2630
|
var players = getPlayers();
|
|
2553
2631
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2554
2632
|
// Inline function 'kotlin.collections.map' call
|
|
2555
2633
|
// Inline function 'kotlin.collections.filter' call
|
|
2556
2634
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2557
|
-
var destination_4 = ArrayList_init_$Create$();
|
|
2635
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
2558
2636
|
var tmp0_iterator_4 = players.j();
|
|
2559
2637
|
while (tmp0_iterator_4.k()) {
|
|
2560
2638
|
var element_1 = tmp0_iterator_4.l();
|
|
@@ -2564,7 +2642,7 @@
|
|
|
2564
2642
|
}
|
|
2565
2643
|
}
|
|
2566
2644
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2567
|
-
var destination_5 = ArrayList_init_$Create$
|
|
2645
|
+
var destination_5 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
2568
2646
|
var tmp0_iterator_5 = destination_4.j();
|
|
2569
2647
|
while (tmp0_iterator_5.k()) {
|
|
2570
2648
|
var item_2 = tmp0_iterator_5.l();
|
|
@@ -2573,7 +2651,7 @@
|
|
|
2573
2651
|
destination_5.e(tmp$ret$23);
|
|
2574
2652
|
}
|
|
2575
2653
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2576
|
-
var destination_6 = ArrayList_init_$Create$();
|
|
2654
|
+
var destination_6 = ArrayList_init_$Create$_0();
|
|
2577
2655
|
// Inline function 'kotlin.collections.forEach' call
|
|
2578
2656
|
var tmp0_iterator_6 = destination_5.j();
|
|
2579
2657
|
while (tmp0_iterator_6.k()) {
|
|
@@ -2581,10 +2659,10 @@
|
|
|
2581
2659
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2582
2660
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2583
2661
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2584
|
-
var tmp0_aid_0 = this_3.
|
|
2662
|
+
var tmp0_aid_0 = this_3.hdi_1.b6m();
|
|
2585
2663
|
// Inline function 'kotlin.collections.map' call
|
|
2586
2664
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2587
|
-
var destination_7 = ArrayList_init_$Create$
|
|
2665
|
+
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
2588
2666
|
var tmp0_iterator_7 = players.j();
|
|
2589
2667
|
while (tmp0_iterator_7.k()) {
|
|
2590
2668
|
var item_3 = tmp0_iterator_7.l();
|
|
@@ -2606,43 +2684,43 @@
|
|
|
2606
2684
|
} else {
|
|
2607
2685
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2608
2686
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2609
|
-
var this_4 = this.
|
|
2687
|
+
var this_4 = this.idi_1;
|
|
2610
2688
|
var table_0 = state.f6x();
|
|
2611
2689
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2612
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2690
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.hdi_1.b6m(), table_0.id, null);
|
|
2613
2691
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2614
2692
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2615
2693
|
} else {
|
|
2616
2694
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2617
2695
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2618
|
-
var this_5 = this.
|
|
2696
|
+
var this_5 = this.idi_1;
|
|
2619
2697
|
var table_1 = state.f6x();
|
|
2620
2698
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2621
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2699
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.hdi_1.b6m(), table_1.id, null);
|
|
2622
2700
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2623
2701
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2624
2702
|
} else {
|
|
2625
2703
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2626
2704
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2627
|
-
var this_6 = this.
|
|
2705
|
+
var this_6 = this.idi_1;
|
|
2628
2706
|
var table_2 = state.f6x();
|
|
2629
2707
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2630
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2708
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.hdi_1.b6m(), table_2.id, null);
|
|
2631
2709
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2632
2710
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2633
2711
|
} else {
|
|
2634
2712
|
if (action_0 instanceof ErrorAction) {
|
|
2635
2713
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2636
|
-
var this_7 = this.
|
|
2714
|
+
var this_7 = this.idi_1;
|
|
2637
2715
|
var table_3 = state.f6x();
|
|
2638
2716
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2639
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2717
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.hdi_1.b6m(), table_3.id, null);
|
|
2640
2718
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2641
2719
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2642
2720
|
} else {
|
|
2643
2721
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2644
2722
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2645
|
-
var this_8 = this.
|
|
2723
|
+
var this_8 = this.idi_1;
|
|
2646
2724
|
var table_4 = state.f6x();
|
|
2647
2725
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2648
2726
|
var tableId_1 = table_4.id;
|
|
@@ -2652,7 +2730,7 @@
|
|
|
2652
2730
|
// Inline function 'kotlin.collections.map' call
|
|
2653
2731
|
// Inline function 'kotlin.collections.filter' call
|
|
2654
2732
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2655
|
-
var destination_8 = ArrayList_init_$Create$();
|
|
2733
|
+
var destination_8 = ArrayList_init_$Create$_0();
|
|
2656
2734
|
var tmp0_iterator_8 = players_0.j();
|
|
2657
2735
|
while (tmp0_iterator_8.k()) {
|
|
2658
2736
|
var element_3 = tmp0_iterator_8.l();
|
|
@@ -2662,7 +2740,7 @@
|
|
|
2662
2740
|
}
|
|
2663
2741
|
}
|
|
2664
2742
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2665
|
-
var destination_9 = ArrayList_init_$Create$
|
|
2743
|
+
var destination_9 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_8, 10));
|
|
2666
2744
|
var tmp0_iterator_9 = destination_8.j();
|
|
2667
2745
|
while (tmp0_iterator_9.k()) {
|
|
2668
2746
|
var item_4 = tmp0_iterator_9.l();
|
|
@@ -2671,7 +2749,7 @@
|
|
|
2671
2749
|
destination_9.e(tmp$ret$46);
|
|
2672
2750
|
}
|
|
2673
2751
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2674
|
-
var destination_10 = ArrayList_init_$Create$();
|
|
2752
|
+
var destination_10 = ArrayList_init_$Create$_0();
|
|
2675
2753
|
// Inline function 'kotlin.collections.forEach' call
|
|
2676
2754
|
var tmp0_iterator_10 = destination_9.j();
|
|
2677
2755
|
while (tmp0_iterator_10.k()) {
|
|
@@ -2679,10 +2757,10 @@
|
|
|
2679
2757
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2680
2758
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2681
2759
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2682
|
-
var tmp0_aid_1 = this_8.
|
|
2760
|
+
var tmp0_aid_1 = this_8.hdi_1.b6m();
|
|
2683
2761
|
// Inline function 'kotlin.collections.map' call
|
|
2684
2762
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2685
|
-
var destination_11 = ArrayList_init_$Create$
|
|
2763
|
+
var destination_11 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
2686
2764
|
var tmp0_iterator_11 = players_0.j();
|
|
2687
2765
|
while (tmp0_iterator_11.k()) {
|
|
2688
2766
|
var item_5 = tmp0_iterator_11.l();
|
|
@@ -2704,7 +2782,7 @@
|
|
|
2704
2782
|
} else {
|
|
2705
2783
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2706
2784
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2707
|
-
var this_9 = this.
|
|
2785
|
+
var this_9 = this.idi_1;
|
|
2708
2786
|
var table_5 = state.f6x();
|
|
2709
2787
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2710
2788
|
var tableId_2 = table_5.id;
|
|
@@ -2714,7 +2792,7 @@
|
|
|
2714
2792
|
// Inline function 'kotlin.collections.map' call
|
|
2715
2793
|
// Inline function 'kotlin.collections.filter' call
|
|
2716
2794
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2717
|
-
var destination_12 = ArrayList_init_$Create$();
|
|
2795
|
+
var destination_12 = ArrayList_init_$Create$_0();
|
|
2718
2796
|
var tmp0_iterator_12 = players_1.j();
|
|
2719
2797
|
while (tmp0_iterator_12.k()) {
|
|
2720
2798
|
var element_5 = tmp0_iterator_12.l();
|
|
@@ -2724,7 +2802,7 @@
|
|
|
2724
2802
|
}
|
|
2725
2803
|
}
|
|
2726
2804
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2727
|
-
var destination_13 = ArrayList_init_$Create$
|
|
2805
|
+
var destination_13 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_12, 10));
|
|
2728
2806
|
var tmp0_iterator_13 = destination_12.j();
|
|
2729
2807
|
while (tmp0_iterator_13.k()) {
|
|
2730
2808
|
var item_6 = tmp0_iterator_13.l();
|
|
@@ -2733,7 +2811,7 @@
|
|
|
2733
2811
|
destination_13.e(tmp$ret$62);
|
|
2734
2812
|
}
|
|
2735
2813
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2736
|
-
var destination_14 = ArrayList_init_$Create$();
|
|
2814
|
+
var destination_14 = ArrayList_init_$Create$_0();
|
|
2737
2815
|
// Inline function 'kotlin.collections.forEach' call
|
|
2738
2816
|
var tmp0_iterator_14 = destination_13.j();
|
|
2739
2817
|
while (tmp0_iterator_14.k()) {
|
|
@@ -2741,10 +2819,10 @@
|
|
|
2741
2819
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2742
2820
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2743
2821
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2744
|
-
var tmp0_aid_2 = this_9.
|
|
2822
|
+
var tmp0_aid_2 = this_9.hdi_1.b6m();
|
|
2745
2823
|
// Inline function 'kotlin.collections.map' call
|
|
2746
2824
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2747
|
-
var destination_15 = ArrayList_init_$Create$
|
|
2825
|
+
var destination_15 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
2748
2826
|
var tmp0_iterator_15 = players_1.j();
|
|
2749
2827
|
while (tmp0_iterator_15.k()) {
|
|
2750
2828
|
var item_7 = tmp0_iterator_15.l();
|
|
@@ -2766,7 +2844,7 @@
|
|
|
2766
2844
|
} else {
|
|
2767
2845
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2768
2846
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2769
|
-
var this_10 = this.
|
|
2847
|
+
var this_10 = this.idi_1;
|
|
2770
2848
|
var table_6 = state.f6x();
|
|
2771
2849
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2772
2850
|
var tableId_3 = table_6.id;
|
|
@@ -2776,7 +2854,7 @@
|
|
|
2776
2854
|
// Inline function 'kotlin.collections.map' call
|
|
2777
2855
|
// Inline function 'kotlin.collections.filter' call
|
|
2778
2856
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2779
|
-
var destination_16 = ArrayList_init_$Create$();
|
|
2857
|
+
var destination_16 = ArrayList_init_$Create$_0();
|
|
2780
2858
|
var tmp0_iterator_16 = players_2.j();
|
|
2781
2859
|
while (tmp0_iterator_16.k()) {
|
|
2782
2860
|
var element_7 = tmp0_iterator_16.l();
|
|
@@ -2786,7 +2864,7 @@
|
|
|
2786
2864
|
}
|
|
2787
2865
|
}
|
|
2788
2866
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2789
|
-
var destination_17 = ArrayList_init_$Create$
|
|
2867
|
+
var destination_17 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_16, 10));
|
|
2790
2868
|
var tmp0_iterator_17 = destination_16.j();
|
|
2791
2869
|
while (tmp0_iterator_17.k()) {
|
|
2792
2870
|
var item_8 = tmp0_iterator_17.l();
|
|
@@ -2795,7 +2873,7 @@
|
|
|
2795
2873
|
destination_17.e(tmp$ret$78);
|
|
2796
2874
|
}
|
|
2797
2875
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2798
|
-
var destination_18 = ArrayList_init_$Create$();
|
|
2876
|
+
var destination_18 = ArrayList_init_$Create$_0();
|
|
2799
2877
|
// Inline function 'kotlin.collections.forEach' call
|
|
2800
2878
|
var tmp0_iterator_18 = destination_17.j();
|
|
2801
2879
|
while (tmp0_iterator_18.k()) {
|
|
@@ -2803,10 +2881,10 @@
|
|
|
2803
2881
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2804
2882
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2805
2883
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2806
|
-
var tmp0_aid_3 = this_10.
|
|
2884
|
+
var tmp0_aid_3 = this_10.hdi_1.b6m();
|
|
2807
2885
|
// Inline function 'kotlin.collections.map' call
|
|
2808
2886
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2809
|
-
var destination_19 = ArrayList_init_$Create$
|
|
2887
|
+
var destination_19 = ArrayList_init_$Create$(collectionSizeOrDefault(players_2, 10));
|
|
2810
2888
|
var tmp0_iterator_19 = players_2.j();
|
|
2811
2889
|
while (tmp0_iterator_19.k()) {
|
|
2812
2890
|
var item_9 = tmp0_iterator_19.l();
|
|
@@ -2816,7 +2894,7 @@
|
|
|
2816
2894
|
}
|
|
2817
2895
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2818
2896
|
var tmp_0;
|
|
2819
|
-
if (this.
|
|
2897
|
+
if (this.idi_1.gdi_1.supportBackwardActions && getPlayer(state.f6x().players, sendToPlayer_8.w7k_1).c74_1.h74_1) {
|
|
2820
2898
|
tmp_0 = null;
|
|
2821
2899
|
} else {
|
|
2822
2900
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2834,79 +2912,79 @@
|
|
|
2834
2912
|
} else {
|
|
2835
2913
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2836
2914
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2837
|
-
var this_11 = this.
|
|
2915
|
+
var this_11 = this.idi_1;
|
|
2838
2916
|
var table_7 = state.f6x();
|
|
2839
|
-
var exceptPlayerId = this.
|
|
2917
|
+
var exceptPlayerId = this.idi_1.gdi_1.supportBackwardActions ? action_0.i89_1 : null;
|
|
2840
2918
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2841
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2919
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.hdi_1.b6m(), table_7.id, exceptPlayerId);
|
|
2842
2920
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2843
2921
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2844
2922
|
} else {
|
|
2845
2923
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2846
2924
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2847
|
-
var this_12 = this.
|
|
2925
|
+
var this_12 = this.idi_1;
|
|
2848
2926
|
var table_8 = state.f6x();
|
|
2849
|
-
var exceptPlayerId_0 = this.
|
|
2927
|
+
var exceptPlayerId_0 = this.idi_1.gdi_1.supportBackwardActions ? action_0.m89_1 : null;
|
|
2850
2928
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2851
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2929
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.hdi_1.b6m(), table_8.id, exceptPlayerId_0);
|
|
2852
2930
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2853
2931
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2854
2932
|
} else {
|
|
2855
2933
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2856
2934
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2857
|
-
var this_13 = this.
|
|
2935
|
+
var this_13 = this.idi_1;
|
|
2858
2936
|
var table_9 = state.f6x();
|
|
2859
2937
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2860
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2938
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.hdi_1.b6m(), table_9.id, null);
|
|
2861
2939
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2862
2940
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2863
2941
|
} else {
|
|
2864
2942
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2865
2943
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2866
|
-
var this_14 = this.
|
|
2944
|
+
var this_14 = this.idi_1;
|
|
2867
2945
|
var table_10 = state.f6x();
|
|
2868
|
-
var exceptPlayerId_1 = this.
|
|
2946
|
+
var exceptPlayerId_1 = this.idi_1.gdi_1.supportBackwardActions ? action_0.t89_1 : null;
|
|
2869
2947
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2870
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2948
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.hdi_1.b6m(), table_10.id, exceptPlayerId_1);
|
|
2871
2949
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2872
2950
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2873
2951
|
} else {
|
|
2874
2952
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2875
2953
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2876
|
-
var this_15 = this.
|
|
2954
|
+
var this_15 = this.idi_1;
|
|
2877
2955
|
var table_11 = state.f6x();
|
|
2878
|
-
var exceptPlayerId_2 = this.
|
|
2956
|
+
var exceptPlayerId_2 = this.idi_1.gdi_1.supportBackwardActions ? action_0.x89_1 : null;
|
|
2879
2957
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2880
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2958
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.hdi_1.b6m(), table_11.id, exceptPlayerId_2);
|
|
2881
2959
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2882
2960
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2883
2961
|
} else {
|
|
2884
2962
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2885
2963
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2886
|
-
var this_16 = this.
|
|
2964
|
+
var this_16 = this.idi_1;
|
|
2887
2965
|
var table_12 = state.f6x();
|
|
2888
2966
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2889
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2967
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.hdi_1.b6m(), table_12.id, null);
|
|
2890
2968
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2891
2969
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2892
2970
|
} else {
|
|
2893
2971
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2894
2972
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2895
|
-
var this_17 = this.
|
|
2973
|
+
var this_17 = this.idi_1;
|
|
2896
2974
|
var table_13 = state.f6x();
|
|
2897
2975
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2898
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2976
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.hdi_1.b6m(), table_13.id, null);
|
|
2899
2977
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2900
2978
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2901
2979
|
} else {
|
|
2902
2980
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2903
|
-
var message = action_0.
|
|
2981
|
+
var message = action_0.f8a_1;
|
|
2904
2982
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2905
|
-
var this_18 = this.
|
|
2983
|
+
var this_18 = this.idi_1;
|
|
2906
2984
|
var table_14 = state.f6x();
|
|
2907
2985
|
var tmp_1;
|
|
2908
2986
|
var tmp_2;
|
|
2909
|
-
if (this.
|
|
2987
|
+
if (this.idi_1.gdi_1.supportBackwardActions) {
|
|
2910
2988
|
tmp_2 = isInterface(message, UserMessage);
|
|
2911
2989
|
} else {
|
|
2912
2990
|
tmp_2 = false;
|
|
@@ -2918,17 +2996,17 @@
|
|
|
2918
2996
|
}
|
|
2919
2997
|
var exceptPlayerId_3 = tmp_1;
|
|
2920
2998
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2921
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2999
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.hdi_1.b6m(), table_14.id, exceptPlayerId_3);
|
|
2922
3000
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2923
3001
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2924
3002
|
} else {
|
|
2925
3003
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2926
3004
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2927
|
-
var this_19 = this.
|
|
3005
|
+
var this_19 = this.idi_1;
|
|
2928
3006
|
var table_15 = state.f6x();
|
|
2929
3007
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2930
3008
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2931
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
3009
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.hdi_1.b6m(), table_15.id, exceptPlayerId_4);
|
|
2932
3010
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2933
3011
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2934
3012
|
} else {
|
|
@@ -2966,10 +3044,10 @@
|
|
|
2966
3044
|
return this.t6p(store, next, action);
|
|
2967
3045
|
};
|
|
2968
3046
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2969
|
-
this.
|
|
2970
|
-
this.
|
|
3047
|
+
this.gdi_1 = logicConfig;
|
|
3048
|
+
this.hdi_1 = idsProvider;
|
|
2971
3049
|
}
|
|
2972
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
3050
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).j9f = function () {
|
|
2973
3051
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2974
3052
|
return new _no_name_provided__qut3iv_0(this);
|
|
2975
3053
|
};
|
|
@@ -2978,8 +3056,8 @@
|
|
|
2978
3056
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2979
3057
|
}
|
|
2980
3058
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
2981
|
-
this.
|
|
2982
|
-
this.
|
|
3059
|
+
this.rdi_1 = $provider;
|
|
3060
|
+
this.sdi_1 = $action;
|
|
2983
3061
|
CoroutineImpl.call(this, resultContinuation);
|
|
2984
3062
|
}
|
|
2985
3063
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
@@ -3000,7 +3078,7 @@
|
|
|
3000
3078
|
case 0:
|
|
3001
3079
|
this.f9_1 = 2;
|
|
3002
3080
|
this.e9_1 = 1;
|
|
3003
|
-
suspendResult = this.
|
|
3081
|
+
suspendResult = this.rdi_1.cdf(this.sdi_1, this);
|
|
3004
3082
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3005
3083
|
return suspendResult;
|
|
3006
3084
|
}
|
|
@@ -3023,8 +3101,8 @@
|
|
|
3023
3101
|
while (true);
|
|
3024
3102
|
};
|
|
3025
3103
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).f1f = function ($this$launchDefault, completion) {
|
|
3026
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3027
|
-
i.
|
|
3104
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.rdi_1, this.sdi_1, completion);
|
|
3105
|
+
i.tdi_1 = $this$launchDefault;
|
|
3028
3106
|
return i;
|
|
3029
3107
|
};
|
|
3030
3108
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3036,8 +3114,8 @@
|
|
|
3036
3114
|
return l;
|
|
3037
3115
|
}
|
|
3038
3116
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3039
|
-
this.
|
|
3040
|
-
this.
|
|
3117
|
+
this.udi_1 = $asyncProvider;
|
|
3118
|
+
this.vdi_1 = $provider;
|
|
3041
3119
|
}
|
|
3042
3120
|
protoOf(_no_name_provided__qut3iv_1).c6o = function (action) {
|
|
3043
3121
|
return action instanceof ToClientAction;
|
|
@@ -3045,7 +3123,7 @@
|
|
|
3045
3123
|
protoOf(_no_name_provided__qut3iv_1).t6p = function (store, next, action) {
|
|
3046
3124
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3047
3125
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3048
|
-
this.
|
|
3126
|
+
this.udi_1.y6k(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.vdi_1, action_0, null));
|
|
3049
3127
|
next(action_0);
|
|
3050
3128
|
};
|
|
3051
3129
|
protoOf(_no_name_provided__qut3iv_1).b6o = function (store, next, action) {
|
|
@@ -3060,13 +3138,13 @@
|
|
|
3060
3138
|
protoOf(_no_name_provided__qut3iv_2).c6o = function (action) {
|
|
3061
3139
|
return action instanceof UpdateServerConfigAction;
|
|
3062
3140
|
};
|
|
3063
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3141
|
+
protoOf(_no_name_provided__qut3iv_2).q9m = function (state, action) {
|
|
3064
3142
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3065
3143
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3066
|
-
return state.
|
|
3144
|
+
return state.u9a(VOID, get_serverState(state).wdi(action_0.odh_1));
|
|
3067
3145
|
};
|
|
3068
3146
|
protoOf(_no_name_provided__qut3iv_2).u6p = function (state, action) {
|
|
3069
|
-
return this.
|
|
3147
|
+
return this.q9m((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3070
3148
|
};
|
|
3071
3149
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3072
3150
|
return function (it) {
|
|
@@ -3079,7 +3157,7 @@
|
|
|
3079
3157
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3080
3158
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3081
3159
|
Companion_getInstance();
|
|
3082
|
-
var this_0 = $action.
|
|
3160
|
+
var this_0 = $action.c88_1.timeoutTimeMillis;
|
|
3083
3161
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3084
3162
|
tmp_0 = tmp_1.o6f(tmp_2, tmp$ret$0);
|
|
3085
3163
|
}
|
|
@@ -3088,47 +3166,47 @@
|
|
|
3088
3166
|
}
|
|
3089
3167
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3090
3168
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3091
|
-
this.
|
|
3169
|
+
this.zdi_1 = logger;
|
|
3092
3170
|
}
|
|
3093
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3171
|
+
protoOf(ServerMechanicLifecycleReducer).c9o = function (state, action) {
|
|
3094
3172
|
var serverState = get_serverStateOrNull(state.e6w_1);
|
|
3095
3173
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3096
|
-
var tmp0_$this = this.
|
|
3097
|
-
var tmp1_tableId = action.
|
|
3098
|
-
var tmp2_gameId = action.
|
|
3099
|
-
var tmp3_version = action.
|
|
3100
|
-
var tmp4_config = action.
|
|
3101
|
-
var tmp5_users = action.
|
|
3174
|
+
var tmp0_$this = this.d9o_1;
|
|
3175
|
+
var tmp1_tableId = action.d88_1;
|
|
3176
|
+
var tmp2_gameId = action.d88_1;
|
|
3177
|
+
var tmp3_version = action.e88_1;
|
|
3178
|
+
var tmp4_config = action.c88_1;
|
|
3179
|
+
var tmp5_users = action.g88_1;
|
|
3102
3180
|
var tmp6_spectators = action.spectators;
|
|
3103
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3104
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3181
|
+
var tmp7_gameCreatorPlayerId = action.f88_1;
|
|
3182
|
+
var tmp9_tableOrNull = tmp0_$this.j9p(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3105
3183
|
var tmp;
|
|
3106
3184
|
if (serverState == null) {
|
|
3107
|
-
this.
|
|
3108
|
-
tmp = Companion_instance_9.
|
|
3185
|
+
this.zdi_1.w(VOID, 'ServerPayload is not onStart');
|
|
3186
|
+
tmp = Companion_instance_9.yde();
|
|
3109
3187
|
} else {
|
|
3110
3188
|
tmp = serverState;
|
|
3111
3189
|
}
|
|
3112
3190
|
var tmp10_payload = tmp;
|
|
3113
|
-
return state.
|
|
3191
|
+
return state.u9a(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3114
3192
|
};
|
|
3115
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3116
|
-
this.
|
|
3193
|
+
protoOf(ServerMechanicLifecycleReducer).b9o = function (state, action) {
|
|
3194
|
+
this.e9o_1.z5u(action.previousGameId);
|
|
3117
3195
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3118
|
-
var tmp1_tableOrNull = this.
|
|
3119
|
-
return state.
|
|
3196
|
+
var tmp1_tableOrNull = this.d9o_1.k9p(state.f6x(), action.gameId);
|
|
3197
|
+
return state.u9a(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3120
3198
|
};
|
|
3121
3199
|
function spectatorsReducer(logger) {
|
|
3122
3200
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3123
3201
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3124
3202
|
}
|
|
3125
3203
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3126
|
-
this.
|
|
3204
|
+
this.adj_1 = $logger;
|
|
3127
3205
|
}
|
|
3128
3206
|
protoOf(_no_name_provided__qut3iv_3).c6o = function (action) {
|
|
3129
3207
|
return isInterface(action, SpectatorsAction);
|
|
3130
3208
|
};
|
|
3131
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3209
|
+
protoOf(_no_name_provided__qut3iv_3).q9m = function (state, action) {
|
|
3132
3210
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3133
3211
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3134
3212
|
var table = state.f6x();
|
|
@@ -3136,8 +3214,8 @@
|
|
|
3136
3214
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3137
3215
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3138
3216
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3139
|
-
var this_0 = action_0.
|
|
3140
|
-
var destination = ArrayList_init_$Create$();
|
|
3217
|
+
var this_0 = action_0.pdh_1;
|
|
3218
|
+
var destination = ArrayList_init_$Create$_0();
|
|
3141
3219
|
// Inline function 'kotlin.collections.forEach' call
|
|
3142
3220
|
var tmp0_iterator = this_0.j();
|
|
3143
3221
|
while (tmp0_iterator.k()) {
|
|
@@ -3158,11 +3236,11 @@
|
|
|
3158
3236
|
var tmp_0;
|
|
3159
3237
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3160
3238
|
if (!sameSpectators.p()) {
|
|
3161
|
-
this.
|
|
3239
|
+
this.adj_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3162
3240
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3163
3241
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3164
|
-
var this_1 = action_0.
|
|
3165
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3242
|
+
var this_1 = action_0.pdh_1;
|
|
3243
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
3166
3244
|
var tmp0_iterator_0 = this_1.j();
|
|
3167
3245
|
while (tmp0_iterator_0.k()) {
|
|
3168
3246
|
var element_0 = tmp0_iterator_0.l();
|
|
@@ -3197,11 +3275,11 @@
|
|
|
3197
3275
|
}
|
|
3198
3276
|
tmp_0 = destination_0;
|
|
3199
3277
|
} else {
|
|
3200
|
-
tmp_0 = action_0.
|
|
3278
|
+
tmp_0 = action_0.pdh_1;
|
|
3201
3279
|
}
|
|
3202
3280
|
var this_2 = tmp_0;
|
|
3203
3281
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3204
|
-
var destination_1 = ArrayList_init_$Create$
|
|
3282
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
3205
3283
|
var tmp0_iterator_2 = this_2.j();
|
|
3206
3284
|
while (tmp0_iterator_2.k()) {
|
|
3207
3285
|
var item = tmp0_iterator_2.l();
|
|
@@ -3210,13 +3288,13 @@
|
|
|
3210
3288
|
destination_1.e(tmp$ret$10);
|
|
3211
3289
|
}
|
|
3212
3290
|
var spectatorsToAdd = toSet(destination_1);
|
|
3213
|
-
tmp = state.
|
|
3291
|
+
tmp = state.u9a(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3214
3292
|
} else {
|
|
3215
3293
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3216
3294
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3217
3295
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3218
|
-
var this_3 = action_0.
|
|
3219
|
-
var destination_2 = ArrayList_init_$Create$();
|
|
3296
|
+
var this_3 = action_0.qdh_1;
|
|
3297
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
3220
3298
|
// Inline function 'kotlin.collections.forEach' call
|
|
3221
3299
|
var tmp0_iterator_3 = this_3.j();
|
|
3222
3300
|
while (tmp0_iterator_3.k()) {
|
|
@@ -3236,11 +3314,11 @@
|
|
|
3236
3314
|
var tmp_2;
|
|
3237
3315
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3238
3316
|
if (!sameSpectators_0.p()) {
|
|
3239
|
-
this.
|
|
3317
|
+
this.adj_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3240
3318
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3241
3319
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3242
|
-
var this_4 = action_0.
|
|
3243
|
-
var destination_3 = ArrayList_init_$Create$();
|
|
3320
|
+
var this_4 = action_0.qdh_1;
|
|
3321
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
3244
3322
|
var tmp0_iterator_4 = this_4.j();
|
|
3245
3323
|
while (tmp0_iterator_4.k()) {
|
|
3246
3324
|
var element_3 = tmp0_iterator_4.l();
|
|
@@ -3275,13 +3353,13 @@
|
|
|
3275
3353
|
}
|
|
3276
3354
|
tmp_2 = destination_3;
|
|
3277
3355
|
} else {
|
|
3278
|
-
tmp_2 = action_0.
|
|
3356
|
+
tmp_2 = action_0.qdh_1;
|
|
3279
3357
|
}
|
|
3280
3358
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3281
3359
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3282
3360
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3283
3361
|
var this_5 = table.spectators;
|
|
3284
|
-
var destination_4 = ArrayList_init_$Create$();
|
|
3362
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
3285
3363
|
var tmp0_iterator_6 = this_5.j();
|
|
3286
3364
|
while (tmp0_iterator_6.k()) {
|
|
3287
3365
|
var element_5 = tmp0_iterator_6.l();
|
|
@@ -3314,7 +3392,7 @@
|
|
|
3314
3392
|
destination_4.e(element_5);
|
|
3315
3393
|
}
|
|
3316
3394
|
}
|
|
3317
|
-
tmp = state.
|
|
3395
|
+
tmp = state.u9a(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3318
3396
|
} else {
|
|
3319
3397
|
noWhenBranchMatchedException();
|
|
3320
3398
|
}
|
|
@@ -3322,32 +3400,32 @@
|
|
|
3322
3400
|
return tmp;
|
|
3323
3401
|
};
|
|
3324
3402
|
protoOf(_no_name_provided__qut3iv_3).u6p = function (state, action) {
|
|
3325
|
-
return this.
|
|
3403
|
+
return this.q9m((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3326
3404
|
};
|
|
3327
3405
|
function Companion_1() {
|
|
3328
3406
|
}
|
|
3329
|
-
protoOf(Companion_1).
|
|
3407
|
+
protoOf(Companion_1).bdj = function (config) {
|
|
3330
3408
|
return new ServerState(config);
|
|
3331
3409
|
};
|
|
3332
|
-
protoOf(Companion_1).
|
|
3410
|
+
protoOf(Companion_1).yde = function (config, $super) {
|
|
3333
3411
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3334
|
-
return $super === VOID ? this.
|
|
3412
|
+
return $super === VOID ? this.bdj(config) : $super.bdj.call(this, config);
|
|
3335
3413
|
};
|
|
3336
3414
|
var Companion_instance_9;
|
|
3337
3415
|
function Companion_getInstance_2() {
|
|
3338
3416
|
return Companion_instance_9;
|
|
3339
3417
|
}
|
|
3340
3418
|
function ServerState(config) {
|
|
3341
|
-
this.
|
|
3419
|
+
this.ide_1 = config;
|
|
3342
3420
|
}
|
|
3343
|
-
protoOf(ServerState).
|
|
3421
|
+
protoOf(ServerState).wdi = function (config) {
|
|
3344
3422
|
return new ServerState(config);
|
|
3345
3423
|
};
|
|
3346
3424
|
protoOf(ServerState).toString = function () {
|
|
3347
|
-
return 'ServerState(config=' + this.
|
|
3425
|
+
return 'ServerState(config=' + this.ide_1.toString() + ')';
|
|
3348
3426
|
};
|
|
3349
3427
|
protoOf(ServerState).hashCode = function () {
|
|
3350
|
-
return this.
|
|
3428
|
+
return this.ide_1.hashCode();
|
|
3351
3429
|
};
|
|
3352
3430
|
protoOf(ServerState).equals = function (other) {
|
|
3353
3431
|
if (this === other)
|
|
@@ -3355,7 +3433,7 @@
|
|
|
3355
3433
|
if (!(other instanceof ServerState))
|
|
3356
3434
|
return false;
|
|
3357
3435
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3358
|
-
if (!this.
|
|
3436
|
+
if (!this.ide_1.equals(tmp0_other_with_cast.ide_1))
|
|
3359
3437
|
return false;
|
|
3360
3438
|
return true;
|
|
3361
3439
|
};
|
|
@@ -3393,13 +3471,13 @@
|
|
|
3393
3471
|
}
|
|
3394
3472
|
function _get_controllerLogger__nbd727($this) {
|
|
3395
3473
|
// Inline function 'kotlin.getValue' call
|
|
3396
|
-
var this_0 = $this.
|
|
3474
|
+
var this_0 = $this.jdj_1;
|
|
3397
3475
|
controllerLogger$factory();
|
|
3398
3476
|
return this_0.u();
|
|
3399
3477
|
}
|
|
3400
3478
|
function _get_di__ndbzja($this) {
|
|
3401
3479
|
// Inline function 'kotlin.getValue' call
|
|
3402
|
-
var this_0 = $this.
|
|
3480
|
+
var this_0 = $this.kdj_1;
|
|
3403
3481
|
di$factory();
|
|
3404
3482
|
return this_0.u();
|
|
3405
3483
|
}
|
|
@@ -3410,13 +3488,13 @@
|
|
|
3410
3488
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3411
3489
|
return function () {
|
|
3412
3490
|
var tmp;
|
|
3413
|
-
if (this$0.
|
|
3491
|
+
if (this$0.hdj_1 == null) {
|
|
3414
3492
|
tmp = null;
|
|
3415
3493
|
} else {
|
|
3416
3494
|
// Inline function 'kotlin.let' call
|
|
3417
3495
|
// Inline function 'kotlin.contracts.contract' call
|
|
3418
3496
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3419
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3497
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.hdj_1)]));
|
|
3420
3498
|
}
|
|
3421
3499
|
var tmp1_elvis_lhs = tmp;
|
|
3422
3500
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3444,7 +3522,7 @@
|
|
|
3444
3522
|
tmp_0.p65(tmp$ret$3);
|
|
3445
3523
|
$this$DI.t61(jsonModule());
|
|
3446
3524
|
$this$DI.t61(serverHelpersModule());
|
|
3447
|
-
$this$DI.t61(randomOrgModule(this$0.
|
|
3525
|
+
$this$DI.t61(randomOrgModule(this$0.idj_1));
|
|
3448
3526
|
return Unit_instance;
|
|
3449
3527
|
};
|
|
3450
3528
|
}
|
|
@@ -3455,16 +3533,16 @@
|
|
|
3455
3533
|
};
|
|
3456
3534
|
}
|
|
3457
3535
|
function _no_name_provided__qut3iv_4($item) {
|
|
3458
|
-
this.
|
|
3536
|
+
this.qdj_1 = $item;
|
|
3459
3537
|
}
|
|
3460
3538
|
protoOf(_no_name_provided__qut3iv_4).c6o = function (action) {
|
|
3461
3539
|
return isInterface(action, Action);
|
|
3462
3540
|
};
|
|
3463
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3464
|
-
return this.
|
|
3541
|
+
protoOf(_no_name_provided__qut3iv_4).q9m = function (state, action) {
|
|
3542
|
+
return this.qdj_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3465
3543
|
};
|
|
3466
3544
|
protoOf(_no_name_provided__qut3iv_4).u6p = function (state, action) {
|
|
3467
|
-
return this.
|
|
3545
|
+
return this.q9m((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3468
3546
|
};
|
|
3469
3547
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3470
3548
|
return function ($this$singleton) {
|
|
@@ -3521,7 +3599,7 @@
|
|
|
3521
3599
|
}
|
|
3522
3600
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
3523
3601
|
return function (it) {
|
|
3524
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
3602
|
+
var tmp0_elvis_lhs = Companion_instance_4.m9r(it);
|
|
3525
3603
|
var tmp;
|
|
3526
3604
|
if (tmp0_elvis_lhs == null) {
|
|
3527
3605
|
var tmp1_safe_receiver = $gameServer.x6e().d6w_1;
|
|
@@ -3534,7 +3612,7 @@
|
|
|
3534
3612
|
}
|
|
3535
3613
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
3536
3614
|
return function (it) {
|
|
3537
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
3615
|
+
var tmp0_elvis_lhs = Companion_instance_5.x9p(it);
|
|
3538
3616
|
var tmp;
|
|
3539
3617
|
if (tmp0_elvis_lhs == null) {
|
|
3540
3618
|
var tmp1_safe_receiver = $gameServer.x6e().d6w_1;
|
|
@@ -3556,7 +3634,7 @@
|
|
|
3556
3634
|
// Inline function 'kotlin.contracts.contract' call
|
|
3557
3635
|
$this$DI.t61(tmp0_safe_receiver);
|
|
3558
3636
|
}
|
|
3559
|
-
$this$DI.t61(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3637
|
+
$this$DI.t61(dealerModule(this$0.randomPoolProvider, this$0.idj_1));
|
|
3560
3638
|
$this$DI.t61(coreModule($coreConfig));
|
|
3561
3639
|
$this$DI.t61(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3562
3640
|
return Unit_instance;
|
|
@@ -3565,76 +3643,76 @@
|
|
|
3565
3643
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3566
3644
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3567
3645
|
production = production === VOID ? true : production;
|
|
3568
|
-
this.
|
|
3569
|
-
this.
|
|
3646
|
+
this.hdj_1 = loggerCallback;
|
|
3647
|
+
this.idj_1 = randomOrgConfig;
|
|
3570
3648
|
AppEnvironment_getInstance().l6v(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3571
3649
|
var tmp = this;
|
|
3572
|
-
tmp.
|
|
3650
|
+
tmp.jdj_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3573
3651
|
var tmp_0 = this;
|
|
3574
|
-
tmp_0.
|
|
3652
|
+
tmp_0.kdj_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3575
3653
|
var tmp_1 = this;
|
|
3576
3654
|
// Inline function 'org.kodein.di.instance' call
|
|
3577
3655
|
var this_0 = _get_di__ndbzja(this);
|
|
3578
3656
|
// Inline function 'org.kodein.type.generic' call
|
|
3579
3657
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3580
3658
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3581
|
-
tmp_1.
|
|
3659
|
+
tmp_1.ldj_1 = Instance(this_0, tmp$ret$0, null).m67(this, parser$factory());
|
|
3582
3660
|
var tmp_3 = this;
|
|
3583
3661
|
// Inline function 'org.kodein.di.instance' call
|
|
3584
3662
|
var this_1 = _get_di__ndbzja(this);
|
|
3585
3663
|
// Inline function 'org.kodein.type.generic' call
|
|
3586
3664
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3587
3665
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3588
|
-
tmp_3.
|
|
3666
|
+
tmp_3.mdj_1 = Instance(this_1, tmp$ret$2, null).m67(this, helper$factory());
|
|
3589
3667
|
var tmp_5 = this;
|
|
3590
3668
|
// Inline function 'org.kodein.di.instance' call
|
|
3591
3669
|
var this_2 = _get_di__ndbzja(this);
|
|
3592
3670
|
// Inline function 'org.kodein.type.generic' call
|
|
3593
3671
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3594
3672
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3595
|
-
tmp_5.
|
|
3673
|
+
tmp_5.ndj_1 = Instance(this_2, tmp$ret$4, null).m67(this, resources$factory());
|
|
3596
3674
|
var tmp_7 = this;
|
|
3597
3675
|
// Inline function 'org.kodein.di.instance' call
|
|
3598
3676
|
var this_3 = _get_di__ndbzja(this);
|
|
3599
3677
|
// Inline function 'org.kodein.type.generic' call
|
|
3600
3678
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3601
3679
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3602
|
-
tmp_7.
|
|
3680
|
+
tmp_7.odj_1 = Instance(this_3, tmp$ret$6, null).m67(this, test$factory());
|
|
3603
3681
|
var tmp_9 = this;
|
|
3604
3682
|
// Inline function 'org.kodein.di.instance' call
|
|
3605
3683
|
var this_4 = _get_di__ndbzja(this);
|
|
3606
3684
|
// Inline function 'org.kodein.type.generic' call
|
|
3607
3685
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3608
3686
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3609
|
-
tmp_9.
|
|
3687
|
+
tmp_9.pdj_1 = Instance(this_4, tmp$ret$8, null).m67(this, randomPoolProvider$factory());
|
|
3610
3688
|
}
|
|
3611
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3689
|
+
protoOf(GameServerEngineControllerImpl).wd6 = function () {
|
|
3612
3690
|
// Inline function 'kotlin.getValue' call
|
|
3613
|
-
var this_0 = this.
|
|
3691
|
+
var this_0 = this.ldj_1;
|
|
3614
3692
|
parser$factory_0();
|
|
3615
3693
|
return this_0.u();
|
|
3616
3694
|
};
|
|
3617
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3695
|
+
protoOf(GameServerEngineControllerImpl).ddj = function () {
|
|
3618
3696
|
// Inline function 'kotlin.getValue' call
|
|
3619
|
-
var this_0 = this.
|
|
3697
|
+
var this_0 = this.mdj_1;
|
|
3620
3698
|
helper$factory_0();
|
|
3621
3699
|
return this_0.u();
|
|
3622
3700
|
};
|
|
3623
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3701
|
+
protoOf(GameServerEngineControllerImpl).edj = function () {
|
|
3624
3702
|
// Inline function 'kotlin.getValue' call
|
|
3625
|
-
var this_0 = this.
|
|
3703
|
+
var this_0 = this.ndj_1;
|
|
3626
3704
|
resources$factory_0();
|
|
3627
3705
|
return this_0.u();
|
|
3628
3706
|
};
|
|
3629
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3707
|
+
protoOf(GameServerEngineControllerImpl).cdj = function () {
|
|
3630
3708
|
// Inline function 'kotlin.getValue' call
|
|
3631
|
-
var this_0 = this.
|
|
3709
|
+
var this_0 = this.odj_1;
|
|
3632
3710
|
test$factory_0();
|
|
3633
3711
|
return this_0.u();
|
|
3634
3712
|
};
|
|
3635
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3713
|
+
protoOf(GameServerEngineControllerImpl).fdj = function () {
|
|
3636
3714
|
// Inline function 'kotlin.getValue' call
|
|
3637
|
-
var this_0 = this.
|
|
3715
|
+
var this_0 = this.pdj_1;
|
|
3638
3716
|
randomPoolProvider$factory_0();
|
|
3639
3717
|
return this_0.u();
|
|
3640
3718
|
};
|
|
@@ -3644,7 +3722,7 @@
|
|
|
3644
3722
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3645
3723
|
return this.createGameEngineWithLogic();
|
|
3646
3724
|
};
|
|
3647
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3725
|
+
protoOf(GameServerEngineControllerImpl).gdj = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3648
3726
|
var combinedLogger = Companion_instance_6.qm();
|
|
3649
3727
|
var tmp;
|
|
3650
3728
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3654,8 +3732,8 @@
|
|
|
3654
3732
|
}
|
|
3655
3733
|
var fileLoggerOutput = tmp;
|
|
3656
3734
|
var tmp_0;
|
|
3657
|
-
if (!(this.
|
|
3658
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3735
|
+
if (!(this.hdj_1 == null)) {
|
|
3736
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.hdj_1));
|
|
3659
3737
|
} else {
|
|
3660
3738
|
tmp_0 = null;
|
|
3661
3739
|
}
|
|
@@ -3663,7 +3741,7 @@
|
|
|
3663
3741
|
var tmp0_botConfig = new EngineBotConfig(VOID, VOID, VOID, false);
|
|
3664
3742
|
// Inline function 'kotlin.collections.map' call
|
|
3665
3743
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3666
|
-
var destination = ArrayList_init_$Create$
|
|
3744
|
+
var destination = ArrayList_init_$Create$(reducers.length);
|
|
3667
3745
|
var inductionVariable = 0;
|
|
3668
3746
|
var last = reducers.length;
|
|
3669
3747
|
while (inductionVariable < last) {
|
|
@@ -3677,7 +3755,7 @@
|
|
|
3677
3755
|
var tmp1_externalReducers = toList_0(destination);
|
|
3678
3756
|
// Inline function 'kotlin.collections.map' call
|
|
3679
3757
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3680
|
-
var destination_0 = ArrayList_init_$Create$
|
|
3758
|
+
var destination_0 = ArrayList_init_$Create$(middlewares.length);
|
|
3681
3759
|
var inductionVariable_0 = 0;
|
|
3682
3760
|
var last_0 = middlewares.length;
|
|
3683
3761
|
while (inductionVariable_0 < last_0) {
|
|
@@ -3698,12 +3776,12 @@
|
|
|
3698
3776
|
var gameServer = tmp_1.d63(tmp$ret$7, null);
|
|
3699
3777
|
if (!(fileLoggerOutput == null)) {
|
|
3700
3778
|
var tmp_3 = fileLoggerOutput;
|
|
3701
|
-
tmp_3.
|
|
3779
|
+
tmp_3.b9r_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
3702
3780
|
combinedLogger.sm(fileLoggerOutput);
|
|
3703
3781
|
}
|
|
3704
3782
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
3705
3783
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
3706
|
-
tmp_4.
|
|
3784
|
+
tmp_4.z9p_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
3707
3785
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
3708
3786
|
}
|
|
3709
3787
|
return gameServer;
|
|
@@ -3772,13 +3850,13 @@
|
|
|
3772
3850
|
}
|
|
3773
3851
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3774
3852
|
// Inline function 'kotlin.getValue' call
|
|
3775
|
-
var this_0 = $this.
|
|
3853
|
+
var this_0 = $this.tdj_1;
|
|
3776
3854
|
playerAnswerInteractor$factory_0();
|
|
3777
3855
|
return this_0.u();
|
|
3778
3856
|
}
|
|
3779
3857
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3780
3858
|
return function ($this$singleton) {
|
|
3781
|
-
return this$0.
|
|
3859
|
+
return this$0.rdj_1;
|
|
3782
3860
|
};
|
|
3783
3861
|
}
|
|
3784
3862
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3807,20 +3885,20 @@
|
|
|
3807
3885
|
return emptyMap();
|
|
3808
3886
|
}
|
|
3809
3887
|
function TestHelperImpl(logger) {
|
|
3810
|
-
this.
|
|
3888
|
+
this.rdj_1 = logger;
|
|
3811
3889
|
var tmp = this;
|
|
3812
3890
|
var tmp_0 = Companion_instance_3;
|
|
3813
|
-
tmp.
|
|
3891
|
+
tmp.sdj_1 = tmp_0.a62(VOID, TestHelperImpl$di$lambda(this));
|
|
3814
3892
|
var tmp_1 = this;
|
|
3815
3893
|
// Inline function 'org.kodein.di.instance' call
|
|
3816
|
-
var this_0 = this.
|
|
3894
|
+
var this_0 = this.sdj_1;
|
|
3817
3895
|
// Inline function 'org.kodein.type.generic' call
|
|
3818
3896
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3819
3897
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3820
|
-
tmp_1.
|
|
3898
|
+
tmp_1.tdj_1 = Instance(this_0, tmp$ret$0, null).m67(this, playerAnswerInteractor$factory());
|
|
3821
3899
|
}
|
|
3822
3900
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3823
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3901
|
+
return _get_playerAnswerInteractor__msggz1(this).s91(playerId, table, botConfig);
|
|
3824
3902
|
};
|
|
3825
3903
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
3826
3904
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -3828,7 +3906,7 @@
|
|
|
3828
3906
|
var tmp$ret$0;
|
|
3829
3907
|
$l$block_0: {
|
|
3830
3908
|
// Inline function 'kotlin.collections.any' call
|
|
3831
|
-
var this_0 = mechanicAction.
|
|
3909
|
+
var this_0 = mechanicAction.s9c();
|
|
3832
3910
|
var tmp;
|
|
3833
3911
|
if (isInterface(this_0, Collection)) {
|
|
3834
3912
|
tmp = this_0.p();
|
|
@@ -3861,7 +3939,7 @@
|
|
|
3861
3939
|
var tmp$ret$0;
|
|
3862
3940
|
$l$block_0: {
|
|
3863
3941
|
// Inline function 'kotlin.collections.any' call
|
|
3864
|
-
var this_0 = action.
|
|
3942
|
+
var this_0 = action.s9c();
|
|
3865
3943
|
var tmp;
|
|
3866
3944
|
if (isInterface(this_0, Collection)) {
|
|
3867
3945
|
tmp = this_0.p();
|
|
@@ -3932,6 +4010,9 @@
|
|
|
3932
4010
|
return new TestHelperImpl(tmp$ret$1);
|
|
3933
4011
|
}
|
|
3934
4012
|
//region block: post-declaration
|
|
4013
|
+
defineProp(protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1), 'playerId', function () {
|
|
4014
|
+
return this.a6e();
|
|
4015
|
+
});
|
|
3935
4016
|
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
3936
4017
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
3937
4018
|
protoOf(GameServer).shutdown = shutdown;
|
|
@@ -3961,19 +4042,19 @@
|
|
|
3961
4042
|
});
|
|
3962
4043
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
3963
4044
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
3964
|
-
return this.
|
|
4045
|
+
return this.wd6();
|
|
3965
4046
|
});
|
|
3966
4047
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
3967
|
-
return this.
|
|
4048
|
+
return this.ddj();
|
|
3968
4049
|
});
|
|
3969
4050
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
3970
|
-
return this.
|
|
4051
|
+
return this.edj();
|
|
3971
4052
|
});
|
|
3972
4053
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
3973
|
-
return this.
|
|
4054
|
+
return this.cdj();
|
|
3974
4055
|
});
|
|
3975
4056
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
3976
|
-
return this.
|
|
4057
|
+
return this.fdj();
|
|
3977
4058
|
});
|
|
3978
4059
|
//endregion
|
|
3979
4060
|
//region block: init
|