client_plugin_logic_deb 1.8.211 → 1.8.225
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/Kosi-Kaverit-kaverit.js +77 -77
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +610 -610
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1571 -1516
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +9 -0
- package/Logic_Debertz-client_plugin.js +5510 -4541
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2267 -2079
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +16978 -16638
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +11886 -10707
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1099 -1053
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3189 -2364
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +3 -3
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlinx-atomicfu.js +66 -66
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +4170 -4064
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +3 -3
- package/kotlinx-io-kotlinx-io-core.js +277 -277
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2297 -2210
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +2069 -1725
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-protobuf.js +3 -3
- package/ktor-ktor-client-content-negotiation.js +220 -220
- package/ktor-ktor-client-core.js +2532 -2504
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-js.js +3 -3
- package/ktor-ktor-client-logging.js +573 -549
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +16 -16
- package/ktor-ktor-http.js +748 -726
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1639 -1642
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +14 -14
- package/ktor-ktor-serialization-kotlinx.js +314 -269
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +153 -128
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +702 -702
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websocket-serialization.js +3 -3
- package/ktor-ktor-websockets.js +61 -61
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +270 -241
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +104 -104
- package/raspberry-cardgame-lib-random.js +984 -984
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +21 -21
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +30 -30
- package/uuid.js.map +1 -1
|
@@ -1,58 +1,61 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './kotlin-kotlin-stdlib.js', './Logic_Debertz-engine.js', './kotlinx-coroutines-core.js', './Logic_Debertz-core.js', './raspberry-cardgame-lib-logger.js', './Kosi-Kaverit-kaverit.js', './Kosi-Kodein-kodein-di.js', './raspberry-cardgame-lib-random.js', './kotlinx-atomicfu.js', './kotlinx-serialization-kotlinx-serialization-json.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Logic_Debertz-engine.js'), require('./kotlinx-coroutines-core.js'), require('./Logic_Debertz-core.js'), require('./raspberry-cardgame-lib-logger.js'), require('./Kosi-Kaverit-kaverit.js'), require('./Kosi-Kodein-kodein-di.js'), require('./raspberry-cardgame-lib-random.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
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'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof
|
|
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
|
|
13
|
+
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
14
14
|
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
15
|
}
|
|
16
|
-
if (typeof
|
|
16
|
+
if (typeof globalThis['Logic_Debertz-core'] === 'undefined') {
|
|
17
17
|
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'.");
|
|
18
18
|
}
|
|
19
|
-
if (typeof
|
|
19
|
+
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
20
20
|
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'.");
|
|
21
21
|
}
|
|
22
|
-
if (typeof
|
|
22
|
+
if (typeof globalThis['Kosi-Kaverit-kaverit'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'Kosi-Kaverit-kaverit' was not found. Please, check whether 'Kosi-Kaverit-kaverit' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
24
24
|
}
|
|
25
|
-
if (typeof
|
|
25
|
+
if (typeof globalThis['Kosi-Kodein-kodein-di'] === 'undefined') {
|
|
26
26
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'Kosi-Kodein-kodein-di' was not found. Please, check whether 'Kosi-Kodein-kodein-di' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
27
27
|
}
|
|
28
|
-
if (typeof
|
|
28
|
+
if (typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined') {
|
|
29
29
|
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'.");
|
|
30
30
|
}
|
|
31
|
-
if (typeof
|
|
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
|
-
if (typeof
|
|
34
|
+
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
|
|
35
35
|
throw new Error("Error loading module 'Logic_Debertz-game_server'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'Logic_Debertz-game_server'.");
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
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['Logic_Debertz-core'], globalThis['raspberry-cardgame-lib-logger'], globalThis['Kosi-Kaverit-kaverit'], globalThis['Kosi-Kodein-kodein-di'], globalThis['raspberry-cardgame-lib-random'], globalThis['kotlinx-atomicfu'], globalThis['kotlinx-serialization-kotlinx-serialization-json']);
|
|
38
38
|
}
|
|
39
|
-
}(
|
|
39
|
+
}(function (_, kotlin_kotlin, kotlin_io_raspberryapps_game_engine_engine, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_raspberryapps_game_engine_core, kotlin_io_raspberryapps_cardgame_logger, kotlin_org_kodein_type_kaverit, kotlin_org_kodein_di_kodein_di, kotlin_io_raspberryapps_cardgame_random, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
|
|
40
40
|
'use strict';
|
|
41
41
|
//region block: imports
|
|
42
42
|
var imul = Math.imul;
|
|
43
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
43
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ta;
|
|
44
44
|
var Unit_instance = kotlin_kotlin.$_$.n5;
|
|
45
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
45
|
+
var protoOf = kotlin_kotlin.$_$.sc;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.tg;
|
|
47
47
|
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c5;
|
|
48
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
48
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.vb;
|
|
49
49
|
var VOID = kotlin_kotlin.$_$.f;
|
|
50
50
|
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.d8;
|
|
51
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
51
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.sb;
|
|
52
|
+
var equals = kotlin_kotlin.$_$.jb;
|
|
53
|
+
var FunctionAdapter = kotlin_kotlin.$_$.xa;
|
|
54
|
+
var isInterface = kotlin_kotlin.$_$.fc;
|
|
52
55
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
53
|
-
var
|
|
56
|
+
var hashCode = kotlin_kotlin.$_$.qb;
|
|
57
|
+
var initMetadataForClass = kotlin_kotlin.$_$.rb;
|
|
54
58
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.dc;
|
|
56
59
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ea;
|
|
57
60
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
58
61
|
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
|
|
@@ -75,12 +78,12 @@
|
|
|
75
78
|
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t4;
|
|
76
79
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.u1;
|
|
77
80
|
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r4;
|
|
78
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
81
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.rh;
|
|
79
82
|
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.j8;
|
|
80
83
|
var emptyList = kotlin_kotlin.$_$.l7;
|
|
81
84
|
var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
|
|
82
85
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
83
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
86
|
+
var arrayOf = kotlin_kotlin.$_$.hh;
|
|
84
87
|
var createKType = kotlin_kotlin.$_$.b;
|
|
85
88
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
86
89
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
@@ -88,13 +91,13 @@
|
|
|
88
91
|
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.k4;
|
|
89
92
|
var plus = kotlin_kotlin.$_$.x8;
|
|
90
93
|
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.l8;
|
|
91
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
92
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
93
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
94
|
-
var to = kotlin_kotlin.$_$.
|
|
94
|
+
var defineProp = kotlin_kotlin.$_$.ib;
|
|
95
|
+
var KProperty1 = kotlin_kotlin.$_$.nd;
|
|
96
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.ob;
|
|
97
|
+
var to = kotlin_kotlin.$_$.yh;
|
|
95
98
|
var mapOf = kotlin_kotlin.$_$.r8;
|
|
96
|
-
var Enum = kotlin_kotlin.$_$.
|
|
97
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
99
|
+
var Enum = kotlin_kotlin.$_$.ig;
|
|
100
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.mb;
|
|
98
101
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
99
102
|
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.j7;
|
|
100
103
|
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
@@ -110,7 +113,7 @@
|
|
|
110
113
|
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
|
|
111
114
|
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.y7;
|
|
112
115
|
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.k8;
|
|
113
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
116
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ub;
|
|
114
117
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
115
118
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
116
119
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
@@ -118,19 +121,17 @@
|
|
|
118
121
|
var single = kotlin_kotlin.$_$.g9;
|
|
119
122
|
var copyToArray = kotlin_kotlin.$_$.g7;
|
|
120
123
|
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.z4;
|
|
121
|
-
var toString = kotlin_kotlin.$_$.
|
|
122
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
123
|
-
var hashCode = kotlin_kotlin.$_$.ob;
|
|
124
|
-
var equals = kotlin_kotlin.$_$.hb;
|
|
124
|
+
var toString = kotlin_kotlin.$_$.wc;
|
|
125
|
+
var getStringHashCode = kotlin_kotlin.$_$.pb;
|
|
125
126
|
var KtList = kotlin_kotlin.$_$.v5;
|
|
126
127
|
var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
127
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
128
|
-
var Long = kotlin_kotlin.$_$.
|
|
128
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.tb;
|
|
129
|
+
var Long = kotlin_kotlin.$_$.ng;
|
|
129
130
|
var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
130
131
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
131
132
|
var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
132
133
|
var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
133
|
-
var toLong = kotlin_kotlin.$_$.
|
|
134
|
+
var toLong = kotlin_kotlin.$_$.uc;
|
|
134
135
|
var windowedByInterval = kotlin_io_raspberryapps_game_engine_core.$_$.a;
|
|
135
136
|
var flatMapConcat = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
136
137
|
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
|
|
@@ -201,14 +202,14 @@
|
|
|
201
202
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
|
|
202
203
|
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.f5;
|
|
203
204
|
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
|
|
204
|
-
var Companion_getInstance = kotlin_kotlin.$_$.
|
|
205
|
+
var Companion_getInstance = kotlin_kotlin.$_$.e5;
|
|
205
206
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
206
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
207
|
+
var toDuration = kotlin_kotlin.$_$.ag;
|
|
207
208
|
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.x7;
|
|
208
209
|
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.f9;
|
|
209
210
|
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.c8;
|
|
210
211
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
211
|
-
var isArray = kotlin_kotlin.$_$.
|
|
212
|
+
var isArray = kotlin_kotlin.$_$.xb;
|
|
212
213
|
var get_entries = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
213
214
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
214
215
|
var listOf_0 = kotlin_kotlin.$_$.o8;
|
|
@@ -236,7 +237,7 @@
|
|
|
236
237
|
var getValue = kotlin_kotlin.$_$.y7;
|
|
237
238
|
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.m9;
|
|
238
239
|
var valueOf = kotlin_io_raspberryapps_game_engine_engine.$_$.z;
|
|
239
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
240
|
+
var Default_getInstance = kotlin_kotlin.$_$.b5;
|
|
240
241
|
var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.c;
|
|
241
242
|
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.p3;
|
|
242
243
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.r1;
|
|
@@ -259,7 +260,7 @@
|
|
|
259
260
|
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v5;
|
|
260
261
|
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.b5;
|
|
261
262
|
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c5;
|
|
262
|
-
var lazy = kotlin_kotlin.$_$.
|
|
263
|
+
var lazy = kotlin_kotlin.$_$.qh;
|
|
263
264
|
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.c;
|
|
264
265
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
265
266
|
var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
@@ -283,8 +284,8 @@
|
|
|
283
284
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
284
285
|
initMetadataForLambda(GameServer$subscribeWith$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
285
286
|
initMetadataForCompanion(Companion);
|
|
286
|
-
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector], [1]);
|
|
287
|
-
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector], [1]);
|
|
287
|
+
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
288
|
+
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
288
289
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda, CoroutineImpl, VOID, [1]);
|
|
289
290
|
initMetadataForLambda(GameServer$subscribeWith$slambda, CoroutineImpl, VOID, [1]);
|
|
290
291
|
initMetadataForLambda(GameServer$fromClientEvent$slambda, CoroutineImpl, VOID, [2]);
|
|
@@ -330,7 +331,7 @@
|
|
|
330
331
|
tmp = existingNicknames;
|
|
331
332
|
}
|
|
332
333
|
existingNicknames = tmp;
|
|
333
|
-
return this.
|
|
334
|
+
return this.ad7(playerId, existingNicknames);
|
|
334
335
|
}
|
|
335
336
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
336
337
|
initMetadataForCompanion(Companion_2);
|
|
@@ -358,7 +359,7 @@
|
|
|
358
359
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
359
360
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
360
361
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
361
|
-
return this.
|
|
362
|
+
return this.qd7(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
362
363
|
}
|
|
363
364
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
364
365
|
initMetadataForClass(_no_name_provided__qut3iv_3, VOID, VOID, VOID, [Reducer]);
|
|
@@ -367,29 +368,29 @@
|
|
|
367
368
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
368
369
|
//endregion
|
|
369
370
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
370
|
-
this.
|
|
371
|
+
this.ecx_1 = $subscriber;
|
|
371
372
|
CoroutineImpl.call(this, resultContinuation);
|
|
372
373
|
}
|
|
373
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
374
|
-
var tmp = this.
|
|
375
|
-
tmp.
|
|
376
|
-
tmp.
|
|
377
|
-
return tmp.
|
|
374
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).gcx = function (it, $completion) {
|
|
375
|
+
var tmp = this.hcx(it, $completion);
|
|
376
|
+
tmp.j9_1 = Unit_instance;
|
|
377
|
+
tmp.k9_1 = null;
|
|
378
|
+
return tmp.p9();
|
|
378
379
|
};
|
|
379
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
380
|
-
return this.
|
|
380
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).z9 = function (p1, $completion) {
|
|
381
|
+
return this.gcx(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
381
382
|
};
|
|
382
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
383
|
-
var suspendResult = this.
|
|
383
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).p9 = function () {
|
|
384
|
+
var suspendResult = this.j9_1;
|
|
384
385
|
$sm: do
|
|
385
386
|
try {
|
|
386
|
-
var tmp = this.
|
|
387
|
+
var tmp = this.h9_1;
|
|
387
388
|
if (tmp === 0) {
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
389
|
+
this.i9_1 = 1;
|
|
390
|
+
this.ecx_1(this.fcx_1);
|
|
390
391
|
return Unit_instance;
|
|
391
392
|
} else if (tmp === 1) {
|
|
392
|
-
throw this.
|
|
393
|
+
throw this.k9_1;
|
|
393
394
|
}
|
|
394
395
|
} catch ($p) {
|
|
395
396
|
var e = $p;
|
|
@@ -397,43 +398,43 @@
|
|
|
397
398
|
}
|
|
398
399
|
while (true);
|
|
399
400
|
};
|
|
400
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
401
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
402
|
-
i.
|
|
401
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).hcx = function (it, completion) {
|
|
402
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.ecx_1, completion);
|
|
403
|
+
i.fcx_1 = it;
|
|
403
404
|
return i;
|
|
404
405
|
};
|
|
405
406
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
406
407
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
407
408
|
var l = function (it, $completion) {
|
|
408
|
-
return i.
|
|
409
|
+
return i.gcx(it, $completion);
|
|
409
410
|
};
|
|
410
411
|
l.$arity = 1;
|
|
411
412
|
return l;
|
|
412
413
|
}
|
|
413
414
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
414
|
-
this.
|
|
415
|
+
this.qcx_1 = $subscriber;
|
|
415
416
|
CoroutineImpl.call(this, resultContinuation);
|
|
416
417
|
}
|
|
417
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
418
|
-
var tmp = this.
|
|
419
|
-
tmp.
|
|
420
|
-
tmp.
|
|
421
|
-
return tmp.
|
|
418
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).scx = function (it, $completion) {
|
|
419
|
+
var tmp = this.tcx(it, $completion);
|
|
420
|
+
tmp.j9_1 = Unit_instance;
|
|
421
|
+
tmp.k9_1 = null;
|
|
422
|
+
return tmp.p9();
|
|
422
423
|
};
|
|
423
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
424
|
-
return this.
|
|
424
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).z9 = function (p1, $completion) {
|
|
425
|
+
return this.scx(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
425
426
|
};
|
|
426
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
427
|
-
var suspendResult = this.
|
|
427
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).p9 = function () {
|
|
428
|
+
var suspendResult = this.j9_1;
|
|
428
429
|
$sm: do
|
|
429
430
|
try {
|
|
430
|
-
var tmp = this.
|
|
431
|
+
var tmp = this.h9_1;
|
|
431
432
|
if (tmp === 0) {
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
433
|
+
this.i9_1 = 1;
|
|
434
|
+
this.qcx_1(this.rcx_1);
|
|
434
435
|
return Unit_instance;
|
|
435
436
|
} else if (tmp === 1) {
|
|
436
|
-
throw this.
|
|
437
|
+
throw this.k9_1;
|
|
437
438
|
}
|
|
438
439
|
} catch ($p) {
|
|
439
440
|
var e = $p;
|
|
@@ -441,82 +442,124 @@
|
|
|
441
442
|
}
|
|
442
443
|
while (true);
|
|
443
444
|
};
|
|
444
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
445
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
446
|
-
i.
|
|
445
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).tcx = function (it, completion) {
|
|
446
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.qcx_1, completion);
|
|
447
|
+
i.rcx_1 = it;
|
|
447
448
|
return i;
|
|
448
449
|
};
|
|
449
450
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
450
451
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
451
452
|
var l = function (it, $completion) {
|
|
452
|
-
return i.
|
|
453
|
+
return i.scx(it, $completion);
|
|
453
454
|
};
|
|
454
455
|
l.$arity = 1;
|
|
455
456
|
return l;
|
|
456
457
|
}
|
|
457
458
|
function _get_logger__rkp4sl($this) {
|
|
458
459
|
// Inline function 'kotlin.getValue' call
|
|
459
|
-
var this_0 = $this.
|
|
460
|
+
var this_0 = $this.wcx_1;
|
|
460
461
|
logger$factory_0();
|
|
461
462
|
return this_0.u();
|
|
462
463
|
}
|
|
463
464
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
464
465
|
// Inline function 'kotlin.getValue' call
|
|
465
|
-
var this_0 = $this.
|
|
466
|
+
var this_0 = $this.xcx_1;
|
|
466
467
|
toClientEventsObserver$factory_0();
|
|
467
468
|
return this_0.u();
|
|
468
469
|
}
|
|
469
470
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
470
471
|
// Inline function 'kotlin.getValue' call
|
|
471
|
-
var this_0 = $this.
|
|
472
|
+
var this_0 = $this.ycx_1;
|
|
472
473
|
playerConnectionInteractor$factory_0();
|
|
473
474
|
return this_0.u();
|
|
474
475
|
}
|
|
475
476
|
function Companion() {
|
|
476
|
-
this.
|
|
477
|
+
this.acy_1 = 'GameEngine_API';
|
|
477
478
|
}
|
|
478
479
|
var Companion_instance_7;
|
|
479
480
|
function Companion_getInstance_2() {
|
|
480
481
|
return Companion_instance_7;
|
|
481
482
|
}
|
|
482
483
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
483
|
-
this.
|
|
484
|
+
this.bcy_1 = function_0;
|
|
484
485
|
}
|
|
485
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
486
|
-
return this.
|
|
486
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s18 = function (value, $completion) {
|
|
487
|
+
return this.bcy_1(value, $completion);
|
|
488
|
+
};
|
|
489
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p3 = function () {
|
|
490
|
+
return this.bcy_1;
|
|
491
|
+
};
|
|
492
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
493
|
+
var tmp;
|
|
494
|
+
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
495
|
+
var tmp_0;
|
|
496
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
497
|
+
tmp_0 = equals(this.p3(), other.p3());
|
|
498
|
+
} else {
|
|
499
|
+
tmp_0 = false;
|
|
500
|
+
}
|
|
501
|
+
tmp = tmp_0;
|
|
502
|
+
} else {
|
|
503
|
+
tmp = false;
|
|
504
|
+
}
|
|
505
|
+
return tmp;
|
|
506
|
+
};
|
|
507
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
508
|
+
return hashCode(this.p3());
|
|
487
509
|
};
|
|
488
510
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
489
|
-
this.
|
|
511
|
+
this.ccy_1 = function_0;
|
|
490
512
|
}
|
|
491
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
492
|
-
return this.
|
|
513
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).s18 = function (value, $completion) {
|
|
514
|
+
return this.ccy_1(value, $completion);
|
|
515
|
+
};
|
|
516
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p3 = function () {
|
|
517
|
+
return this.ccy_1;
|
|
518
|
+
};
|
|
519
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
520
|
+
var tmp;
|
|
521
|
+
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
522
|
+
var tmp_0;
|
|
523
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
524
|
+
tmp_0 = equals(this.p3(), other.p3());
|
|
525
|
+
} else {
|
|
526
|
+
tmp_0 = false;
|
|
527
|
+
}
|
|
528
|
+
tmp = tmp_0;
|
|
529
|
+
} else {
|
|
530
|
+
tmp = false;
|
|
531
|
+
}
|
|
532
|
+
return tmp;
|
|
533
|
+
};
|
|
534
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
|
|
535
|
+
return hashCode(this.p3());
|
|
493
536
|
};
|
|
494
537
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
538
|
+
this.lcy_1 = this$0;
|
|
539
|
+
this.mcy_1 = $subscriber;
|
|
497
540
|
CoroutineImpl.call(this, resultContinuation);
|
|
498
541
|
}
|
|
499
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
500
|
-
var tmp = this.
|
|
501
|
-
tmp.
|
|
502
|
-
tmp.
|
|
503
|
-
return tmp.
|
|
542
|
+
protoOf(GameServer$subscribeToClientAction$slambda).h1f = function ($this$launchDefault, $completion) {
|
|
543
|
+
var tmp = this.i1f($this$launchDefault, $completion);
|
|
544
|
+
tmp.j9_1 = Unit_instance;
|
|
545
|
+
tmp.k9_1 = null;
|
|
546
|
+
return tmp.p9();
|
|
504
547
|
};
|
|
505
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
506
|
-
return this.
|
|
548
|
+
protoOf(GameServer$subscribeToClientAction$slambda).z9 = function (p1, $completion) {
|
|
549
|
+
return this.h1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
507
550
|
};
|
|
508
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
509
|
-
var suspendResult = this.
|
|
551
|
+
protoOf(GameServer$subscribeToClientAction$slambda).p9 = function () {
|
|
552
|
+
var suspendResult = this.j9_1;
|
|
510
553
|
$sm: do
|
|
511
554
|
try {
|
|
512
|
-
var tmp = this.
|
|
555
|
+
var tmp = this.h9_1;
|
|
513
556
|
switch (tmp) {
|
|
514
557
|
case 0:
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
517
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
518
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
519
|
-
suspendResult = tmp_0.
|
|
558
|
+
this.i9_1 = 2;
|
|
559
|
+
this.h9_1 = 1;
|
|
560
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.lcy_1).zb2();
|
|
561
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.mcy_1, null);
|
|
562
|
+
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
520
563
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
521
564
|
return suspendResult;
|
|
522
565
|
}
|
|
@@ -525,58 +568,58 @@
|
|
|
525
568
|
case 1:
|
|
526
569
|
return Unit_instance;
|
|
527
570
|
case 2:
|
|
528
|
-
throw this.
|
|
571
|
+
throw this.k9_1;
|
|
529
572
|
}
|
|
530
573
|
} catch ($p) {
|
|
531
574
|
var e = $p;
|
|
532
|
-
if (this.
|
|
575
|
+
if (this.i9_1 === 2) {
|
|
533
576
|
throw e;
|
|
534
577
|
} else {
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
578
|
+
this.h9_1 = this.i9_1;
|
|
579
|
+
this.k9_1 = e;
|
|
537
580
|
}
|
|
538
581
|
}
|
|
539
582
|
while (true);
|
|
540
583
|
};
|
|
541
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
542
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
543
|
-
i.
|
|
584
|
+
protoOf(GameServer$subscribeToClientAction$slambda).i1f = function ($this$launchDefault, completion) {
|
|
585
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.lcy_1, this.mcy_1, completion);
|
|
586
|
+
i.ncy_1 = $this$launchDefault;
|
|
544
587
|
return i;
|
|
545
588
|
};
|
|
546
589
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
547
590
|
var i = new GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation);
|
|
548
591
|
var l = function ($this$launchDefault, $completion) {
|
|
549
|
-
return i.
|
|
592
|
+
return i.h1f($this$launchDefault, $completion);
|
|
550
593
|
};
|
|
551
594
|
l.$arity = 1;
|
|
552
595
|
return l;
|
|
553
596
|
}
|
|
554
597
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
598
|
+
this.wcy_1 = this$0;
|
|
599
|
+
this.xcy_1 = $subscriber;
|
|
557
600
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
601
|
}
|
|
559
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
560
|
-
var tmp = this.
|
|
561
|
-
tmp.
|
|
562
|
-
tmp.
|
|
563
|
-
return tmp.
|
|
602
|
+
protoOf(GameServer$subscribeWith$slambda).h1f = function ($this$launchDefault, $completion) {
|
|
603
|
+
var tmp = this.i1f($this$launchDefault, $completion);
|
|
604
|
+
tmp.j9_1 = Unit_instance;
|
|
605
|
+
tmp.k9_1 = null;
|
|
606
|
+
return tmp.p9();
|
|
564
607
|
};
|
|
565
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
566
|
-
return this.
|
|
608
|
+
protoOf(GameServer$subscribeWith$slambda).z9 = function (p1, $completion) {
|
|
609
|
+
return this.h1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
567
610
|
};
|
|
568
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
569
|
-
var suspendResult = this.
|
|
611
|
+
protoOf(GameServer$subscribeWith$slambda).p9 = function () {
|
|
612
|
+
var suspendResult = this.j9_1;
|
|
570
613
|
$sm: do
|
|
571
614
|
try {
|
|
572
|
-
var tmp = this.
|
|
615
|
+
var tmp = this.h9_1;
|
|
573
616
|
switch (tmp) {
|
|
574
617
|
case 0:
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
578
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
579
|
-
suspendResult = tmp_0.
|
|
618
|
+
this.i9_1 = 2;
|
|
619
|
+
this.h9_1 = 1;
|
|
620
|
+
var tmp_0 = distinctUntilChanged(this.wcy_1.h6v());
|
|
621
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.xcy_1, null);
|
|
622
|
+
suspendResult = tmp_0.o17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
580
623
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
581
624
|
return suspendResult;
|
|
582
625
|
}
|
|
@@ -585,57 +628,57 @@
|
|
|
585
628
|
case 1:
|
|
586
629
|
return Unit_instance;
|
|
587
630
|
case 2:
|
|
588
|
-
throw this.
|
|
631
|
+
throw this.k9_1;
|
|
589
632
|
}
|
|
590
633
|
} catch ($p) {
|
|
591
634
|
var e = $p;
|
|
592
|
-
if (this.
|
|
635
|
+
if (this.i9_1 === 2) {
|
|
593
636
|
throw e;
|
|
594
637
|
} else {
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
638
|
+
this.h9_1 = this.i9_1;
|
|
639
|
+
this.k9_1 = e;
|
|
597
640
|
}
|
|
598
641
|
}
|
|
599
642
|
while (true);
|
|
600
643
|
};
|
|
601
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
602
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
603
|
-
i.
|
|
644
|
+
protoOf(GameServer$subscribeWith$slambda).i1f = function ($this$launchDefault, completion) {
|
|
645
|
+
var i = new GameServer$subscribeWith$slambda(this.wcy_1, this.xcy_1, completion);
|
|
646
|
+
i.ycy_1 = $this$launchDefault;
|
|
604
647
|
return i;
|
|
605
648
|
};
|
|
606
649
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
607
650
|
var i = new GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation);
|
|
608
651
|
var l = function ($this$launchDefault, $completion) {
|
|
609
|
-
return i.
|
|
652
|
+
return i.h1f($this$launchDefault, $completion);
|
|
610
653
|
};
|
|
611
654
|
l.$arity = 1;
|
|
612
655
|
return l;
|
|
613
656
|
}
|
|
614
657
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
615
|
-
this.
|
|
658
|
+
this.hcz_1 = $action;
|
|
616
659
|
CoroutineImpl.call(this, resultContinuation);
|
|
617
660
|
}
|
|
618
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
619
|
-
var tmp = this.
|
|
620
|
-
tmp.
|
|
621
|
-
tmp.
|
|
622
|
-
return tmp.
|
|
661
|
+
protoOf(GameServer$fromClientEvent$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
662
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
663
|
+
tmp.j9_1 = Unit_instance;
|
|
664
|
+
tmp.k9_1 = null;
|
|
665
|
+
return tmp.p9();
|
|
623
666
|
};
|
|
624
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
667
|
+
protoOf(GameServer$fromClientEvent$slambda).aa = function (p1, p2, $completion) {
|
|
625
668
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
626
|
-
return this.
|
|
669
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
627
670
|
};
|
|
628
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
629
|
-
var suspendResult = this.
|
|
671
|
+
protoOf(GameServer$fromClientEvent$slambda).p9 = function () {
|
|
672
|
+
var suspendResult = this.j9_1;
|
|
630
673
|
$sm: do
|
|
631
674
|
try {
|
|
632
|
-
var tmp = this.
|
|
675
|
+
var tmp = this.h9_1;
|
|
633
676
|
if (tmp === 0) {
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
677
|
+
this.i9_1 = 1;
|
|
678
|
+
this.jcz_1.dispatch(this.hcz_1);
|
|
636
679
|
return Unit_instance;
|
|
637
680
|
} else if (tmp === 1) {
|
|
638
|
-
throw this.
|
|
681
|
+
throw this.k9_1;
|
|
639
682
|
}
|
|
640
683
|
} catch ($p) {
|
|
641
684
|
var e = $p;
|
|
@@ -643,47 +686,47 @@
|
|
|
643
686
|
}
|
|
644
687
|
while (true);
|
|
645
688
|
};
|
|
646
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
647
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
648
|
-
i.
|
|
649
|
-
i.
|
|
689
|
+
protoOf(GameServer$fromClientEvent$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
690
|
+
var i = new GameServer$fromClientEvent$slambda(this.hcz_1, completion);
|
|
691
|
+
i.icz_1 = $this$dispatchAsync;
|
|
692
|
+
i.jcz_1 = store;
|
|
650
693
|
return i;
|
|
651
694
|
};
|
|
652
695
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
653
696
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
654
697
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
655
|
-
return i.
|
|
698
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
656
699
|
};
|
|
657
700
|
l.$arity = 2;
|
|
658
701
|
return l;
|
|
659
702
|
}
|
|
660
703
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
661
|
-
this.
|
|
704
|
+
this.scz_1 = $playerId;
|
|
662
705
|
CoroutineImpl.call(this, resultContinuation);
|
|
663
706
|
}
|
|
664
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
665
|
-
var tmp = this.
|
|
666
|
-
tmp.
|
|
667
|
-
tmp.
|
|
668
|
-
return tmp.
|
|
707
|
+
protoOf(GameServer$playerLostConnection$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
708
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
709
|
+
tmp.j9_1 = Unit_instance;
|
|
710
|
+
tmp.k9_1 = null;
|
|
711
|
+
return tmp.p9();
|
|
669
712
|
};
|
|
670
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
713
|
+
protoOf(GameServer$playerLostConnection$slambda).aa = function (p1, p2, $completion) {
|
|
671
714
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
672
|
-
return this.
|
|
715
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
673
716
|
};
|
|
674
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
675
|
-
var suspendResult = this.
|
|
717
|
+
protoOf(GameServer$playerLostConnection$slambda).p9 = function () {
|
|
718
|
+
var suspendResult = this.j9_1;
|
|
676
719
|
$sm: do
|
|
677
720
|
try {
|
|
678
|
-
var tmp = this.
|
|
721
|
+
var tmp = this.h9_1;
|
|
679
722
|
if (tmp === 0) {
|
|
680
|
-
this.
|
|
681
|
-
var tmp_0 = this.
|
|
682
|
-
var
|
|
683
|
-
tmp_0(new PlayerConnectionUpdateAction(
|
|
723
|
+
this.i9_1 = 1;
|
|
724
|
+
var tmp_0 = this.ucz_1.dispatch;
|
|
725
|
+
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
726
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.scz_1));
|
|
684
727
|
return Unit_instance;
|
|
685
728
|
} else if (tmp === 1) {
|
|
686
|
-
throw this.
|
|
729
|
+
throw this.k9_1;
|
|
687
730
|
}
|
|
688
731
|
} catch ($p) {
|
|
689
732
|
var e = $p;
|
|
@@ -691,47 +734,47 @@
|
|
|
691
734
|
}
|
|
692
735
|
while (true);
|
|
693
736
|
};
|
|
694
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
695
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
696
|
-
i.
|
|
697
|
-
i.
|
|
737
|
+
protoOf(GameServer$playerLostConnection$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
738
|
+
var i = new GameServer$playerLostConnection$slambda(this.scz_1, completion);
|
|
739
|
+
i.tcz_1 = $this$dispatchAsync;
|
|
740
|
+
i.ucz_1 = store;
|
|
698
741
|
return i;
|
|
699
742
|
};
|
|
700
743
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
701
744
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
702
745
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
703
|
-
return i.
|
|
746
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
704
747
|
};
|
|
705
748
|
l.$arity = 2;
|
|
706
749
|
return l;
|
|
707
750
|
}
|
|
708
751
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
709
|
-
this.
|
|
752
|
+
this.dd0_1 = $playerId;
|
|
710
753
|
CoroutineImpl.call(this, resultContinuation);
|
|
711
754
|
}
|
|
712
|
-
protoOf(GameServer$playerLive$slambda).
|
|
713
|
-
var tmp = this.
|
|
714
|
-
tmp.
|
|
715
|
-
tmp.
|
|
716
|
-
return tmp.
|
|
755
|
+
protoOf(GameServer$playerLive$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
756
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
757
|
+
tmp.j9_1 = Unit_instance;
|
|
758
|
+
tmp.k9_1 = null;
|
|
759
|
+
return tmp.p9();
|
|
717
760
|
};
|
|
718
|
-
protoOf(GameServer$playerLive$slambda).
|
|
761
|
+
protoOf(GameServer$playerLive$slambda).aa = function (p1, p2, $completion) {
|
|
719
762
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
720
|
-
return this.
|
|
763
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
721
764
|
};
|
|
722
|
-
protoOf(GameServer$playerLive$slambda).
|
|
723
|
-
var suspendResult = this.
|
|
765
|
+
protoOf(GameServer$playerLive$slambda).p9 = function () {
|
|
766
|
+
var suspendResult = this.j9_1;
|
|
724
767
|
$sm: do
|
|
725
768
|
try {
|
|
726
|
-
var tmp = this.
|
|
769
|
+
var tmp = this.h9_1;
|
|
727
770
|
if (tmp === 0) {
|
|
728
|
-
this.
|
|
729
|
-
var tmp_0 = this.
|
|
730
|
-
var
|
|
731
|
-
tmp_0(new PlayerConnectionUpdateAction(
|
|
771
|
+
this.i9_1 = 1;
|
|
772
|
+
var tmp_0 = this.fd0_1.dispatch;
|
|
773
|
+
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
774
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.dd0_1));
|
|
732
775
|
return Unit_instance;
|
|
733
776
|
} else if (tmp === 1) {
|
|
734
|
-
throw this.
|
|
777
|
+
throw this.k9_1;
|
|
735
778
|
}
|
|
736
779
|
} catch ($p) {
|
|
737
780
|
var e = $p;
|
|
@@ -739,47 +782,47 @@
|
|
|
739
782
|
}
|
|
740
783
|
while (true);
|
|
741
784
|
};
|
|
742
|
-
protoOf(GameServer$playerLive$slambda).
|
|
743
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
744
|
-
i.
|
|
745
|
-
i.
|
|
785
|
+
protoOf(GameServer$playerLive$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
786
|
+
var i = new GameServer$playerLive$slambda(this.dd0_1, completion);
|
|
787
|
+
i.ed0_1 = $this$dispatchAsync;
|
|
788
|
+
i.fd0_1 = store;
|
|
746
789
|
return i;
|
|
747
790
|
};
|
|
748
791
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
749
792
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
750
793
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
751
|
-
return i.
|
|
794
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
752
795
|
};
|
|
753
796
|
l.$arity = 2;
|
|
754
797
|
return l;
|
|
755
798
|
}
|
|
756
799
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
757
|
-
this.
|
|
800
|
+
this.od0_1 = $playerId;
|
|
758
801
|
CoroutineImpl.call(this, resultContinuation);
|
|
759
802
|
}
|
|
760
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
761
|
-
var tmp = this.
|
|
762
|
-
tmp.
|
|
763
|
-
tmp.
|
|
764
|
-
return tmp.
|
|
803
|
+
protoOf(GameServer$playerLeft$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
804
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
805
|
+
tmp.j9_1 = Unit_instance;
|
|
806
|
+
tmp.k9_1 = null;
|
|
807
|
+
return tmp.p9();
|
|
765
808
|
};
|
|
766
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
809
|
+
protoOf(GameServer$playerLeft$slambda).aa = function (p1, p2, $completion) {
|
|
767
810
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
768
|
-
return this.
|
|
811
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
769
812
|
};
|
|
770
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
771
|
-
var suspendResult = this.
|
|
813
|
+
protoOf(GameServer$playerLeft$slambda).p9 = function () {
|
|
814
|
+
var suspendResult = this.j9_1;
|
|
772
815
|
$sm: do
|
|
773
816
|
try {
|
|
774
|
-
var tmp = this.
|
|
817
|
+
var tmp = this.h9_1;
|
|
775
818
|
if (tmp === 0) {
|
|
776
|
-
this.
|
|
777
|
-
var tmp_0 = this.
|
|
778
|
-
var
|
|
779
|
-
tmp_0(new PlayerConnectionUpdateAction(
|
|
819
|
+
this.i9_1 = 1;
|
|
820
|
+
var tmp_0 = this.qd0_1.dispatch;
|
|
821
|
+
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
822
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.od0_1));
|
|
780
823
|
return Unit_instance;
|
|
781
824
|
} else if (tmp === 1) {
|
|
782
|
-
throw this.
|
|
825
|
+
throw this.k9_1;
|
|
783
826
|
}
|
|
784
827
|
} catch ($p) {
|
|
785
828
|
var e = $p;
|
|
@@ -787,53 +830,53 @@
|
|
|
787
830
|
}
|
|
788
831
|
while (true);
|
|
789
832
|
};
|
|
790
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
791
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
792
|
-
i.
|
|
793
|
-
i.
|
|
833
|
+
protoOf(GameServer$playerLeft$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
834
|
+
var i = new GameServer$playerLeft$slambda(this.od0_1, completion);
|
|
835
|
+
i.pd0_1 = $this$dispatchAsync;
|
|
836
|
+
i.qd0_1 = store;
|
|
794
837
|
return i;
|
|
795
838
|
};
|
|
796
839
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
797
840
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
798
841
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
799
|
-
return i.
|
|
842
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
800
843
|
};
|
|
801
844
|
l.$arity = 2;
|
|
802
845
|
return l;
|
|
803
846
|
}
|
|
804
847
|
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, $config, $roomId, resultContinuation) {
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
848
|
+
this.zd0_1 = $users;
|
|
849
|
+
this.ad1_1 = $gameCreatorId;
|
|
850
|
+
this.bd1_1 = $config;
|
|
851
|
+
this.cd1_1 = $roomId;
|
|
809
852
|
CoroutineImpl.call(this, resultContinuation);
|
|
810
853
|
}
|
|
811
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
812
|
-
var tmp = this.
|
|
813
|
-
tmp.
|
|
814
|
-
tmp.
|
|
815
|
-
return tmp.
|
|
854
|
+
protoOf(GameServer$roomOnCreate$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
855
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
856
|
+
tmp.j9_1 = Unit_instance;
|
|
857
|
+
tmp.k9_1 = null;
|
|
858
|
+
return tmp.p9();
|
|
816
859
|
};
|
|
817
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
860
|
+
protoOf(GameServer$roomOnCreate$slambda).aa = function (p1, p2, $completion) {
|
|
818
861
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
819
|
-
return this.
|
|
862
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
820
863
|
};
|
|
821
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
822
|
-
var suspendResult = this.
|
|
864
|
+
protoOf(GameServer$roomOnCreate$slambda).p9 = function () {
|
|
865
|
+
var suspendResult = this.j9_1;
|
|
823
866
|
$sm: do
|
|
824
867
|
try {
|
|
825
|
-
var tmp = this.
|
|
868
|
+
var tmp = this.h9_1;
|
|
826
869
|
if (tmp === 0) {
|
|
827
|
-
this.
|
|
828
|
-
var usersList = toList(this.
|
|
829
|
-
var gameCreatorUser = getPlayer(usersList, this.
|
|
830
|
-
var tmp_0 = this.
|
|
831
|
-
var
|
|
832
|
-
var
|
|
833
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
870
|
+
this.i9_1 = 1;
|
|
871
|
+
var usersList = toList(this.zd0_1);
|
|
872
|
+
var gameCreatorUser = getPlayer(usersList, this.ad1_1);
|
|
873
|
+
var tmp_0 = this.ed1_1.dispatch;
|
|
874
|
+
var tmp0_version = GameEngineConfig_instance.version;
|
|
875
|
+
var tmp1_users = sortWithItem(usersList, gameCreatorUser);
|
|
876
|
+
tmp_0(new StartGameMechanicAction(this.bd1_1, this.cd1_1, tmp0_version, this.ad1_1, tmp1_users));
|
|
834
877
|
return Unit_instance;
|
|
835
878
|
} else if (tmp === 1) {
|
|
836
|
-
throw this.
|
|
879
|
+
throw this.k9_1;
|
|
837
880
|
}
|
|
838
881
|
} catch ($p) {
|
|
839
882
|
var e = $p;
|
|
@@ -841,47 +884,47 @@
|
|
|
841
884
|
}
|
|
842
885
|
while (true);
|
|
843
886
|
};
|
|
844
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
845
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
846
|
-
i.
|
|
847
|
-
i.
|
|
887
|
+
protoOf(GameServer$roomOnCreate$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
888
|
+
var i = new GameServer$roomOnCreate$slambda(this.zd0_1, this.ad1_1, this.bd1_1, this.cd1_1, completion);
|
|
889
|
+
i.dd1_1 = $this$dispatchAsync;
|
|
890
|
+
i.ed1_1 = store;
|
|
848
891
|
return i;
|
|
849
892
|
};
|
|
850
893
|
function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, $config, $roomId, resultContinuation) {
|
|
851
894
|
var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, $config, $roomId, resultContinuation);
|
|
852
895
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
853
|
-
return i.
|
|
896
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
854
897
|
};
|
|
855
898
|
l.$arity = 2;
|
|
856
899
|
return l;
|
|
857
900
|
}
|
|
858
901
|
function GameServer$roomRefreshPlayerState$slambda(this$0, $playerId, resultContinuation) {
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
902
|
+
this.nd1_1 = this$0;
|
|
903
|
+
this.od1_1 = $playerId;
|
|
861
904
|
CoroutineImpl.call(this, resultContinuation);
|
|
862
905
|
}
|
|
863
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
864
|
-
var tmp = this.
|
|
865
|
-
tmp.
|
|
866
|
-
tmp.
|
|
867
|
-
return tmp.
|
|
906
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
907
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
908
|
+
tmp.j9_1 = Unit_instance;
|
|
909
|
+
tmp.k9_1 = null;
|
|
910
|
+
return tmp.p9();
|
|
868
911
|
};
|
|
869
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
912
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).aa = function (p1, p2, $completion) {
|
|
870
913
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
871
|
-
return this.
|
|
914
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
872
915
|
};
|
|
873
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
874
|
-
var suspendResult = this.
|
|
916
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).p9 = function () {
|
|
917
|
+
var suspendResult = this.j9_1;
|
|
875
918
|
$sm: do
|
|
876
919
|
try {
|
|
877
|
-
var tmp = this.
|
|
920
|
+
var tmp = this.h9_1;
|
|
878
921
|
if (tmp === 0) {
|
|
879
|
-
this.
|
|
880
|
-
var table = this.
|
|
881
|
-
this.
|
|
922
|
+
this.i9_1 = 1;
|
|
923
|
+
var table = this.qd1_1.state.k6w();
|
|
924
|
+
this.qd1_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.nd1_1).o91(getPlayer(table.players, this.od1_1), table));
|
|
882
925
|
return Unit_instance;
|
|
883
926
|
} else if (tmp === 1) {
|
|
884
|
-
throw this.
|
|
927
|
+
throw this.k9_1;
|
|
885
928
|
}
|
|
886
929
|
} catch ($p) {
|
|
887
930
|
var e = $p;
|
|
@@ -889,54 +932,54 @@
|
|
|
889
932
|
}
|
|
890
933
|
while (true);
|
|
891
934
|
};
|
|
892
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
893
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
894
|
-
i.
|
|
895
|
-
i.
|
|
935
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
936
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.nd1_1, this.od1_1, completion);
|
|
937
|
+
i.pd1_1 = $this$dispatchAsync;
|
|
938
|
+
i.qd1_1 = store;
|
|
896
939
|
return i;
|
|
897
940
|
};
|
|
898
941
|
function GameServer$roomRefreshPlayerState$slambda_0(this$0, $playerId, resultContinuation) {
|
|
899
942
|
var i = new GameServer$roomRefreshPlayerState$slambda(this$0, $playerId, resultContinuation);
|
|
900
943
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
901
|
-
return i.
|
|
944
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
902
945
|
};
|
|
903
946
|
l.$arity = 2;
|
|
904
947
|
return l;
|
|
905
948
|
}
|
|
906
949
|
function GameServer$roomOnDelete$slambda(this$0, resultContinuation) {
|
|
907
|
-
this.
|
|
950
|
+
this.zd1_1 = this$0;
|
|
908
951
|
CoroutineImpl.call(this, resultContinuation);
|
|
909
952
|
}
|
|
910
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
911
|
-
var tmp = this.
|
|
912
|
-
tmp.
|
|
913
|
-
tmp.
|
|
914
|
-
return tmp.
|
|
953
|
+
protoOf(GameServer$roomOnDelete$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
954
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
955
|
+
tmp.j9_1 = Unit_instance;
|
|
956
|
+
tmp.k9_1 = null;
|
|
957
|
+
return tmp.p9();
|
|
915
958
|
};
|
|
916
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
959
|
+
protoOf(GameServer$roomOnDelete$slambda).aa = function (p1, p2, $completion) {
|
|
917
960
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
918
|
-
return this.
|
|
961
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
919
962
|
};
|
|
920
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
921
|
-
var suspendResult = this.
|
|
963
|
+
protoOf(GameServer$roomOnDelete$slambda).p9 = function () {
|
|
964
|
+
var suspendResult = this.j9_1;
|
|
922
965
|
$sm: do
|
|
923
966
|
try {
|
|
924
|
-
var tmp = this.
|
|
967
|
+
var tmp = this.h9_1;
|
|
925
968
|
if (tmp === 0) {
|
|
926
|
-
this.
|
|
927
|
-
var it = this.
|
|
969
|
+
this.i9_1 = 1;
|
|
970
|
+
var it = this.zd1_1.d6e().l6v_1;
|
|
928
971
|
var tmp_0;
|
|
929
972
|
if (it == null) {
|
|
930
|
-
_get_logger__rkp4sl(this.
|
|
973
|
+
_get_logger__rkp4sl(this.zd1_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
931
974
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
932
975
|
} else {
|
|
933
976
|
tmp_0 = it;
|
|
934
977
|
}
|
|
935
978
|
var terminationState = tmp_0;
|
|
936
|
-
this.
|
|
979
|
+
this.bd2_1.dispatch(new FinishGameMechanicAction(terminationState.g88_1, this.zd1_1.d6e().k6w().isGameFinished));
|
|
937
980
|
return Unit_instance;
|
|
938
981
|
} else if (tmp === 1) {
|
|
939
|
-
throw this.
|
|
982
|
+
throw this.k9_1;
|
|
940
983
|
}
|
|
941
984
|
} catch ($p) {
|
|
942
985
|
var e = $p;
|
|
@@ -944,45 +987,45 @@
|
|
|
944
987
|
}
|
|
945
988
|
while (true);
|
|
946
989
|
};
|
|
947
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
948
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
949
|
-
i.
|
|
950
|
-
i.
|
|
990
|
+
protoOf(GameServer$roomOnDelete$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
991
|
+
var i = new GameServer$roomOnDelete$slambda(this.zd1_1, completion);
|
|
992
|
+
i.ad2_1 = $this$dispatchAsync;
|
|
993
|
+
i.bd2_1 = store;
|
|
951
994
|
return i;
|
|
952
995
|
};
|
|
953
996
|
function GameServer$roomOnDelete$slambda_0(this$0, resultContinuation) {
|
|
954
997
|
var i = new GameServer$roomOnDelete$slambda(this$0, resultContinuation);
|
|
955
998
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
956
|
-
return i.
|
|
999
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
957
1000
|
};
|
|
958
1001
|
l.$arity = 2;
|
|
959
1002
|
return l;
|
|
960
1003
|
}
|
|
961
1004
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
962
|
-
this.
|
|
1005
|
+
this.kd2_1 = $enabled;
|
|
963
1006
|
CoroutineImpl.call(this, resultContinuation);
|
|
964
1007
|
}
|
|
965
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
966
|
-
var tmp = this.
|
|
967
|
-
tmp.
|
|
968
|
-
tmp.
|
|
969
|
-
return tmp.
|
|
1008
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
1009
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
1010
|
+
tmp.j9_1 = Unit_instance;
|
|
1011
|
+
tmp.k9_1 = null;
|
|
1012
|
+
return tmp.p9();
|
|
970
1013
|
};
|
|
971
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1014
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).aa = function (p1, p2, $completion) {
|
|
972
1015
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
973
|
-
return this.
|
|
1016
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
974
1017
|
};
|
|
975
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
976
|
-
var suspendResult = this.
|
|
1018
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).p9 = function () {
|
|
1019
|
+
var suspendResult = this.j9_1;
|
|
977
1020
|
$sm: do
|
|
978
1021
|
try {
|
|
979
|
-
var tmp = this.
|
|
1022
|
+
var tmp = this.h9_1;
|
|
980
1023
|
if (tmp === 0) {
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
1024
|
+
this.i9_1 = 1;
|
|
1025
|
+
this.md2_1.dispatch(new UpdateServerConfigAction(get_serverState(this.md2_1.state).nd2_1.pd2(this.kd2_1)));
|
|
983
1026
|
return Unit_instance;
|
|
984
1027
|
} else if (tmp === 1) {
|
|
985
|
-
throw this.
|
|
1028
|
+
throw this.k9_1;
|
|
986
1029
|
}
|
|
987
1030
|
} catch ($p) {
|
|
988
1031
|
var e = $p;
|
|
@@ -990,47 +1033,47 @@
|
|
|
990
1033
|
}
|
|
991
1034
|
while (true);
|
|
992
1035
|
};
|
|
993
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
994
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
995
|
-
i.
|
|
996
|
-
i.
|
|
1036
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
1037
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.kd2_1, completion);
|
|
1038
|
+
i.ld2_1 = $this$dispatchAsync;
|
|
1039
|
+
i.md2_1 = store;
|
|
997
1040
|
return i;
|
|
998
1041
|
};
|
|
999
1042
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1000
1043
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1001
1044
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1002
|
-
return i.
|
|
1045
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
1003
1046
|
};
|
|
1004
1047
|
l.$arity = 2;
|
|
1005
1048
|
return l;
|
|
1006
1049
|
}
|
|
1007
1050
|
function GameServer$shutdown$slambda($reason, this$0, resultContinuation) {
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1051
|
+
this.yd2_1 = $reason;
|
|
1052
|
+
this.zd2_1 = this$0;
|
|
1010
1053
|
CoroutineImpl.call(this, resultContinuation);
|
|
1011
1054
|
}
|
|
1012
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1013
|
-
var tmp = this.
|
|
1014
|
-
tmp.
|
|
1015
|
-
tmp.
|
|
1016
|
-
return tmp.
|
|
1055
|
+
protoOf(GameServer$shutdown$slambda).lay = function ($this$dispatchAsync, store, $completion) {
|
|
1056
|
+
var tmp = this.may($this$dispatchAsync, store, $completion);
|
|
1057
|
+
tmp.j9_1 = Unit_instance;
|
|
1058
|
+
tmp.k9_1 = null;
|
|
1059
|
+
return tmp.p9();
|
|
1017
1060
|
};
|
|
1018
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1061
|
+
protoOf(GameServer$shutdown$slambda).aa = function (p1, p2, $completion) {
|
|
1019
1062
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1020
|
-
return this.
|
|
1063
|
+
return this.lay(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1021
1064
|
};
|
|
1022
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1023
|
-
var suspendResult = this.
|
|
1065
|
+
protoOf(GameServer$shutdown$slambda).p9 = function () {
|
|
1066
|
+
var suspendResult = this.j9_1;
|
|
1024
1067
|
$sm: do
|
|
1025
1068
|
try {
|
|
1026
|
-
var tmp = this.
|
|
1069
|
+
var tmp = this.h9_1;
|
|
1027
1070
|
if (tmp === 0) {
|
|
1028
|
-
this.
|
|
1029
|
-
var state = this.
|
|
1030
|
-
if (state.
|
|
1031
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1071
|
+
this.i9_1 = 1;
|
|
1072
|
+
var state = this.bd3_1.store.state;
|
|
1073
|
+
if (state.l6w()) {
|
|
1074
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.yd2_1, get_serverShutdownReasonMapping());
|
|
1032
1075
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1033
|
-
var tmp_0 = this.
|
|
1076
|
+
var tmp_0 = this.bd3_1.dispatch;
|
|
1034
1077
|
var tmp_1 = Companion_instance;
|
|
1035
1078
|
var tmp_2;
|
|
1036
1079
|
switch (shutdownReason.o2_1) {
|
|
@@ -1044,14 +1087,14 @@
|
|
|
1044
1087
|
noWhenBranchMatchedException();
|
|
1045
1088
|
break;
|
|
1046
1089
|
}
|
|
1047
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1090
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.zd2_1.table.isGameFinished, this.zd2_1.table));
|
|
1048
1091
|
} else {
|
|
1049
|
-
_get_logger__rkp4sl(this.
|
|
1050
|
-
this.
|
|
1092
|
+
_get_logger__rkp4sl(this.zd2_1).w('GameEngine_API', "GameServer: can't shutdown engine without table");
|
|
1093
|
+
this.bd3_1.dispatch(ClearAction_instance);
|
|
1051
1094
|
}
|
|
1052
1095
|
return Unit_instance;
|
|
1053
1096
|
} else if (tmp === 1) {
|
|
1054
|
-
throw this.
|
|
1097
|
+
throw this.k9_1;
|
|
1055
1098
|
}
|
|
1056
1099
|
} catch ($p) {
|
|
1057
1100
|
var e = $p;
|
|
@@ -1059,22 +1102,22 @@
|
|
|
1059
1102
|
}
|
|
1060
1103
|
while (true);
|
|
1061
1104
|
};
|
|
1062
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1063
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1064
|
-
i.
|
|
1065
|
-
i.
|
|
1105
|
+
protoOf(GameServer$shutdown$slambda).may = function ($this$dispatchAsync, store, completion) {
|
|
1106
|
+
var i = new GameServer$shutdown$slambda(this.yd2_1, this.zd2_1, completion);
|
|
1107
|
+
i.ad3_1 = $this$dispatchAsync;
|
|
1108
|
+
i.bd3_1 = store;
|
|
1066
1109
|
return i;
|
|
1067
1110
|
};
|
|
1068
1111
|
function GameServer$shutdown$slambda_0($reason, this$0, resultContinuation) {
|
|
1069
1112
|
var i = new GameServer$shutdown$slambda($reason, this$0, resultContinuation);
|
|
1070
1113
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1071
|
-
return i.
|
|
1114
|
+
return i.lay($this$dispatchAsync, store, $completion);
|
|
1072
1115
|
};
|
|
1073
1116
|
l.$arity = 2;
|
|
1074
1117
|
return l;
|
|
1075
1118
|
}
|
|
1076
1119
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1077
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1120
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.cd3()) : preloadedState;
|
|
1078
1121
|
var tmp;
|
|
1079
1122
|
if (externalReducers === VOID) {
|
|
1080
1123
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1097,77 +1140,77 @@
|
|
|
1097
1140
|
// Inline function 'org.kodein.type.generic' call
|
|
1098
1141
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1099
1142
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1100
|
-
tmp_1.
|
|
1143
|
+
tmp_1.wcx_1 = Instance(di, tmp$ret$2, null).p67(this, logger$factory());
|
|
1101
1144
|
var tmp_3 = this;
|
|
1102
1145
|
// Inline function 'org.kodein.di.instance' call
|
|
1103
1146
|
// Inline function 'org.kodein.type.generic' call
|
|
1104
1147
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1105
1148
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1106
|
-
tmp_3.
|
|
1149
|
+
tmp_3.xcx_1 = Instance(di, tmp$ret$4, null).p67(this, toClientEventsObserver$factory());
|
|
1107
1150
|
var tmp_5 = this;
|
|
1108
1151
|
// Inline function 'org.kodein.di.instance' call
|
|
1109
1152
|
// Inline function 'org.kodein.type.generic' call
|
|
1110
1153
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1111
1154
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1112
|
-
tmp_5.
|
|
1155
|
+
tmp_5.ycx_1 = Instance(di, tmp$ret$6, null).p67(this, playerConnectionInteractor$factory());
|
|
1113
1156
|
var tmp_7 = this;
|
|
1114
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1115
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1116
|
-
tmp_7.
|
|
1157
|
+
var tmp0_externalMiddlewares = plus(storeContract.e97(), externalMiddlewares);
|
|
1158
|
+
var tmp1_externalReducers = plus(storeContract.d97(), externalReducers);
|
|
1159
|
+
tmp_7.zcx_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1117
1160
|
}
|
|
1118
|
-
protoOf(GameServer).
|
|
1119
|
-
return this.
|
|
1161
|
+
protoOf(GameServer).x6u = function () {
|
|
1162
|
+
return this.zcx_1;
|
|
1120
1163
|
};
|
|
1121
|
-
protoOf(GameServer).
|
|
1122
|
-
return this.
|
|
1164
|
+
protoOf(GameServer).a5p = function () {
|
|
1165
|
+
return this.d6e().k6w().id;
|
|
1123
1166
|
};
|
|
1124
|
-
protoOf(GameServer).
|
|
1125
|
-
return this.
|
|
1167
|
+
protoOf(GameServer).k6w = function () {
|
|
1168
|
+
return this.d6e().k6w();
|
|
1126
1169
|
};
|
|
1127
|
-
protoOf(GameServer).
|
|
1128
|
-
return this.
|
|
1170
|
+
protoOf(GameServer).l6w = function () {
|
|
1171
|
+
return this.d6e().l6w();
|
|
1129
1172
|
};
|
|
1130
|
-
protoOf(GameServer).
|
|
1131
|
-
return this.
|
|
1173
|
+
protoOf(GameServer).m6w = function () {
|
|
1174
|
+
return this.d6e().k6v_1;
|
|
1132
1175
|
};
|
|
1133
1176
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
1134
|
-
var tmp = this.
|
|
1135
|
-
tmp.
|
|
1177
|
+
var tmp = this.v6u();
|
|
1178
|
+
tmp.d6k(VOID, GameServer$subscribeToClientAction$slambda_0(this, subscriber, null));
|
|
1136
1179
|
};
|
|
1137
1180
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
1138
|
-
var tmp = this.
|
|
1139
|
-
tmp.
|
|
1181
|
+
var tmp = this.v6u();
|
|
1182
|
+
tmp.d6k(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
1140
1183
|
};
|
|
1141
1184
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1142
1185
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1143
|
-
this.
|
|
1186
|
+
this.zcx_1.j6w(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1144
1187
|
};
|
|
1145
1188
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1146
1189
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1147
|
-
this.
|
|
1190
|
+
this.zcx_1.j6w(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1148
1191
|
};
|
|
1149
1192
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1150
1193
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1151
|
-
this.
|
|
1194
|
+
this.zcx_1.j6w(GameServer$playerLive$slambda_0(playerId, null));
|
|
1152
1195
|
};
|
|
1153
1196
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1154
1197
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1155
|
-
this.
|
|
1198
|
+
this.zcx_1.j6w(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1156
1199
|
};
|
|
1157
1200
|
protoOf(GameServer).roomOnCreate = function (roomId, gameCreatorId, config, users) {
|
|
1158
|
-
this.
|
|
1201
|
+
this.zcx_1.j6w(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, config, roomId, null));
|
|
1159
1202
|
};
|
|
1160
1203
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1161
|
-
this.
|
|
1204
|
+
this.zcx_1.j6w(GameServer$roomRefreshPlayerState$slambda_0(this, playerId, null));
|
|
1162
1205
|
};
|
|
1163
1206
|
protoOf(GameServer).roomOnDelete = function () {
|
|
1164
|
-
this.
|
|
1207
|
+
this.zcx_1.j6w(GameServer$roomOnDelete$slambda_0(this, null));
|
|
1165
1208
|
};
|
|
1166
1209
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1167
|
-
this.
|
|
1210
|
+
this.zcx_1.j6w(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1168
1211
|
};
|
|
1169
1212
|
protoOf(GameServer).shutdown = function (reason) {
|
|
1170
|
-
this.
|
|
1213
|
+
this.zcx_1.j6w(GameServer$shutdown$slambda_0(reason, this, null));
|
|
1171
1214
|
};
|
|
1172
1215
|
protoOf(GameServer).clear = function () {
|
|
1173
1216
|
return this.a2();
|
|
@@ -1236,16 +1279,16 @@
|
|
|
1236
1279
|
return ServerShutdownReason_ERROR_instance;
|
|
1237
1280
|
}
|
|
1238
1281
|
function ServerConfig(canStartNewGame) {
|
|
1239
|
-
this.
|
|
1282
|
+
this.od2_1 = canStartNewGame;
|
|
1240
1283
|
}
|
|
1241
|
-
protoOf(ServerConfig).
|
|
1284
|
+
protoOf(ServerConfig).pd2 = function (canStartNewGame) {
|
|
1242
1285
|
return new ServerConfig(canStartNewGame);
|
|
1243
1286
|
};
|
|
1244
1287
|
protoOf(ServerConfig).toString = function () {
|
|
1245
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1288
|
+
return 'ServerConfig(canStartNewGame=' + this.od2_1 + ')';
|
|
1246
1289
|
};
|
|
1247
1290
|
protoOf(ServerConfig).hashCode = function () {
|
|
1248
|
-
return getBooleanHashCode(this.
|
|
1291
|
+
return getBooleanHashCode(this.od2_1);
|
|
1249
1292
|
};
|
|
1250
1293
|
protoOf(ServerConfig).equals = function (other) {
|
|
1251
1294
|
if (this === other)
|
|
@@ -1253,7 +1296,7 @@
|
|
|
1253
1296
|
if (!(other instanceof ServerConfig))
|
|
1254
1297
|
return false;
|
|
1255
1298
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1256
|
-
if (!(this.
|
|
1299
|
+
if (!(this.od2_1 === tmp0_other_with_cast.od2_1))
|
|
1257
1300
|
return false;
|
|
1258
1301
|
return true;
|
|
1259
1302
|
};
|
|
@@ -1271,27 +1314,27 @@
|
|
|
1271
1314
|
};
|
|
1272
1315
|
}
|
|
1273
1316
|
function createGameServerDI$lambda$lambda_0($this$singleton) {
|
|
1274
|
-
return new ServerGameStoreContract($this$singleton.
|
|
1317
|
+
return new ServerGameStoreContract($this$singleton.e62());
|
|
1275
1318
|
}
|
|
1276
1319
|
function createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares) {
|
|
1277
1320
|
return function ($this$singleton) {
|
|
1278
|
-
var tmp = $this$singleton.
|
|
1321
|
+
var tmp = $this$singleton.e62();
|
|
1279
1322
|
// Inline function 'org.kodein.di.instance' call
|
|
1280
|
-
var tmp_0 = $this$singleton.
|
|
1323
|
+
var tmp_0 = $this$singleton.h63();
|
|
1281
1324
|
// Inline function 'org.kodein.type.generic' call
|
|
1282
1325
|
var tmp_1 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
1283
1326
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
1284
|
-
var tmp$ret$1 = tmp_0.
|
|
1327
|
+
var tmp$ret$1 = tmp_0.g63(tmp$ret$0, null);
|
|
1285
1328
|
return new GameServer(tmp, 'Game server', tmp$ret$1, VOID, $externalReducers, $externalMiddlewares);
|
|
1286
1329
|
};
|
|
1287
1330
|
}
|
|
1288
1331
|
function createGameServerDI$lambda$lambda_2($this$provider) {
|
|
1289
1332
|
// Inline function 'org.kodein.di.instance' call
|
|
1290
|
-
var tmp = $this$provider.
|
|
1333
|
+
var tmp = $this$provider.h63();
|
|
1291
1334
|
// Inline function 'org.kodein.type.generic' call
|
|
1292
1335
|
var tmp_0 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1293
1336
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1294
|
-
return tmp.
|
|
1337
|
+
return tmp.g63(tmp$ret$0, null);
|
|
1295
1338
|
}
|
|
1296
1339
|
function createGameServerDI$lambda($botConfig, $logicConfig, $dealerConfig, $serverConfig, $externalReducers, $externalMiddlewares) {
|
|
1297
1340
|
return function ($this$Module) {
|
|
@@ -1299,184 +1342,184 @@
|
|
|
1299
1342
|
// Inline function 'org.kodein.type.generic' call
|
|
1300
1343
|
var tmp = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1301
1344
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
1302
|
-
var tmp_0 = $this$Module.
|
|
1345
|
+
var tmp_0 = $this$Module.u61(tmp$ret$0, null, null);
|
|
1303
1346
|
// Inline function 'org.kodein.di.singleton' call
|
|
1304
1347
|
var creator = createGameServerDI$lambda$lambda($serverConfig);
|
|
1305
|
-
var tmp_1 = $this$Module.
|
|
1306
|
-
var tmp_2 = $this$Module.
|
|
1307
|
-
var tmp_3 = $this$Module.
|
|
1348
|
+
var tmp_1 = $this$Module.z61();
|
|
1349
|
+
var tmp_2 = $this$Module.x61();
|
|
1350
|
+
var tmp_3 = $this$Module.y61();
|
|
1308
1351
|
// Inline function 'org.kodein.type.generic' call
|
|
1309
1352
|
var tmp_4 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1310
1353
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1311
1354
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
1312
|
-
tmp_0.
|
|
1313
|
-
$this$Module.
|
|
1355
|
+
tmp_0.s65(tmp$ret$3);
|
|
1356
|
+
$this$Module.w61(getServerEngineGameDI($botConfig, $logicConfig, $dealerConfig));
|
|
1314
1357
|
// Inline function 'org.kodein.di.bind' call
|
|
1315
1358
|
// Inline function 'org.kodein.type.generic' call
|
|
1316
1359
|
var tmp_5 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
1317
1360
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
1318
|
-
var tmp_6 = $this$Module.
|
|
1361
|
+
var tmp_6 = $this$Module.u61(tmp$ret$4, null, null);
|
|
1319
1362
|
// Inline function 'org.kodein.di.singleton' call
|
|
1320
1363
|
var creator_0 = createGameServerDI$lambda$lambda_0;
|
|
1321
|
-
var tmp_7 = $this$Module.
|
|
1322
|
-
var tmp_8 = $this$Module.
|
|
1323
|
-
var tmp_9 = $this$Module.
|
|
1364
|
+
var tmp_7 = $this$Module.z61();
|
|
1365
|
+
var tmp_8 = $this$Module.x61();
|
|
1366
|
+
var tmp_9 = $this$Module.y61();
|
|
1324
1367
|
// Inline function 'org.kodein.type.generic' call
|
|
1325
1368
|
var tmp_10 = typeToken(createKType(getKClass(ServerGameStoreContract), arrayOf([]), false));
|
|
1326
1369
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1327
1370
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
1328
|
-
tmp_6.
|
|
1371
|
+
tmp_6.s65(tmp$ret$7);
|
|
1329
1372
|
// Inline function 'org.kodein.di.bind' call
|
|
1330
1373
|
// Inline function 'org.kodein.type.generic' call
|
|
1331
1374
|
var tmp_11 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1332
1375
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
1333
|
-
var tmp_12 = $this$Module.
|
|
1376
|
+
var tmp_12 = $this$Module.u61(tmp$ret$8, null, null);
|
|
1334
1377
|
// Inline function 'org.kodein.di.singleton' call
|
|
1335
1378
|
var creator_1 = createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares);
|
|
1336
|
-
var tmp_13 = $this$Module.
|
|
1337
|
-
var tmp_14 = $this$Module.
|
|
1338
|
-
var tmp_15 = $this$Module.
|
|
1379
|
+
var tmp_13 = $this$Module.z61();
|
|
1380
|
+
var tmp_14 = $this$Module.x61();
|
|
1381
|
+
var tmp_15 = $this$Module.y61();
|
|
1339
1382
|
// Inline function 'org.kodein.type.generic' call
|
|
1340
1383
|
var tmp_16 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1341
1384
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
1342
1385
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
1343
|
-
tmp_12.
|
|
1386
|
+
tmp_12.s65(tmp$ret$11);
|
|
1344
1387
|
// Inline function 'org.kodein.di.bind' call
|
|
1345
1388
|
// Inline function 'org.kodein.type.generic' call
|
|
1346
1389
|
var tmp_17 = typeToken(createKType(getKClass(StateProvider), arrayOf([]), false));
|
|
1347
1390
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
1348
|
-
var tmp_18 = $this$Module.
|
|
1391
|
+
var tmp_18 = $this$Module.u61(tmp$ret$12, null, null);
|
|
1349
1392
|
// Inline function 'org.kodein.di.provider' call
|
|
1350
1393
|
var creator_2 = createGameServerDI$lambda$lambda_2;
|
|
1351
|
-
var tmp_19 = $this$Module.
|
|
1394
|
+
var tmp_19 = $this$Module.x61();
|
|
1352
1395
|
// Inline function 'org.kodein.type.generic' call
|
|
1353
1396
|
var tmp_20 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1354
1397
|
var tmp$ret$14 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
1355
1398
|
var tmp$ret$15 = new Provider(tmp_19, tmp$ret$14, creator_2);
|
|
1356
|
-
tmp_18.
|
|
1399
|
+
tmp_18.s65(tmp$ret$15);
|
|
1357
1400
|
return Unit_instance;
|
|
1358
1401
|
};
|
|
1359
1402
|
}
|
|
1360
1403
|
function getServerEngineGameDI$lambda$lambda($this$provider) {
|
|
1361
1404
|
// Inline function 'org.kodein.di.instance' call
|
|
1362
|
-
var tmp = $this$provider.
|
|
1405
|
+
var tmp = $this$provider.h63();
|
|
1363
1406
|
// Inline function 'org.kodein.type.generic' call
|
|
1364
1407
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1365
1408
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1366
|
-
var tmp_1 = tmp.
|
|
1409
|
+
var tmp_1 = tmp.g63(tmp$ret$0, null);
|
|
1367
1410
|
// Inline function 'org.kodein.di.instance' call
|
|
1368
|
-
var tmp_2 = $this$provider.
|
|
1411
|
+
var tmp_2 = $this$provider.h63();
|
|
1369
1412
|
// Inline function 'org.kodein.type.generic' call
|
|
1370
1413
|
var tmp_3 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
1371
1414
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1372
|
-
var tmp_4 = tmp_2.
|
|
1415
|
+
var tmp_4 = tmp_2.g63(tmp$ret$2, null);
|
|
1373
1416
|
// Inline function 'org.kodein.di.instance' call
|
|
1374
|
-
var tmp_5 = $this$provider.
|
|
1417
|
+
var tmp_5 = $this$provider.h63();
|
|
1375
1418
|
// Inline function 'org.kodein.type.generic' call
|
|
1376
1419
|
var tmp_6 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
1377
1420
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1378
|
-
var tmp$ret$5 = tmp_5.
|
|
1421
|
+
var tmp$ret$5 = tmp_5.g63(tmp$ret$4, null);
|
|
1379
1422
|
return new ServerMechanicLifecycleReducer(tmp_1, tmp_4, tmp$ret$5);
|
|
1380
1423
|
}
|
|
1381
1424
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
1382
1425
|
// Inline function 'org.kodein.di.instance' call
|
|
1383
|
-
var tmp = $this$provider.
|
|
1426
|
+
var tmp = $this$provider.h63();
|
|
1384
1427
|
// Inline function 'org.kodein.type.generic' call
|
|
1385
1428
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1386
1429
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1387
|
-
var
|
|
1430
|
+
var tmp0_serverConfig = tmp.g63(tmp$ret$0, null);
|
|
1388
1431
|
// Inline function 'org.kodein.di.instance' call
|
|
1389
|
-
var tmp_1 = $this$provider.
|
|
1432
|
+
var tmp_1 = $this$provider.h63();
|
|
1390
1433
|
// Inline function 'org.kodein.type.generic' call
|
|
1391
1434
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1392
1435
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1393
|
-
var
|
|
1436
|
+
var tmp1_logger = tmp_1.g63(tmp$ret$2, null);
|
|
1394
1437
|
// Inline function 'org.kodein.di.instance' call
|
|
1395
|
-
var tmp_3 = $this$provider.
|
|
1438
|
+
var tmp_3 = $this$provider.h63();
|
|
1396
1439
|
// Inline function 'org.kodein.type.generic' call
|
|
1397
1440
|
var tmp_4 = typeToken(createKType(getKClass(PlayerTurnMechanicReducer), arrayOf([]), false));
|
|
1398
1441
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1399
|
-
var
|
|
1442
|
+
var tmp2_playerTurnMechanicReducer = tmp_3.g63(tmp$ret$4, null);
|
|
1400
1443
|
// Inline function 'org.kodein.di.instance' call
|
|
1401
|
-
var tmp_5 = $this$provider.
|
|
1444
|
+
var tmp_5 = $this$provider.h63();
|
|
1402
1445
|
// Inline function 'org.kodein.type.generic' call
|
|
1403
1446
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
1404
1447
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1405
|
-
var
|
|
1448
|
+
var tmp3_idsProvider = tmp_5.g63(tmp$ret$6, null);
|
|
1406
1449
|
// Inline function 'org.kodein.di.instance' call
|
|
1407
|
-
var tmp_7 = $this$provider.
|
|
1450
|
+
var tmp_7 = $this$provider.h63();
|
|
1408
1451
|
// Inline function 'org.kodein.type.generic' call
|
|
1409
1452
|
var tmp_8 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
1410
1453
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1411
|
-
var
|
|
1412
|
-
return new PlayerConnectionInteractor(
|
|
1454
|
+
var tmp4_engineLogicConfig = tmp_7.g63(tmp$ret$8, null);
|
|
1455
|
+
return new PlayerConnectionInteractor(tmp0_serverConfig, tmp4_engineLogicConfig, tmp1_logger, tmp2_playerTurnMechanicReducer, tmp3_idsProvider);
|
|
1413
1456
|
}
|
|
1414
1457
|
function getServerEngineGameDI$lambda$lambda_1($this$singleton) {
|
|
1415
1458
|
// Inline function 'org.kodein.di.instance' call
|
|
1416
|
-
var tmp = $this$singleton.
|
|
1459
|
+
var tmp = $this$singleton.h63();
|
|
1417
1460
|
// Inline function 'org.kodein.type.generic' call
|
|
1418
1461
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1419
1462
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1420
|
-
var tmp_1 = tmp.
|
|
1463
|
+
var tmp_1 = tmp.g63(tmp$ret$0, null);
|
|
1421
1464
|
// Inline function 'org.kodein.di.instance' call
|
|
1422
|
-
var tmp_2 = $this$singleton.
|
|
1465
|
+
var tmp_2 = $this$singleton.h63();
|
|
1423
1466
|
// Inline function 'org.kodein.type.generic' call
|
|
1424
1467
|
var tmp_3 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1425
1468
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1426
|
-
var tmp_4 = tmp_2.
|
|
1469
|
+
var tmp_4 = tmp_2.g63(tmp$ret$2, null);
|
|
1427
1470
|
// Inline function 'org.kodein.di.instance' call
|
|
1428
|
-
var tmp_5 = $this$singleton.
|
|
1471
|
+
var tmp_5 = $this$singleton.h63();
|
|
1429
1472
|
// Inline function 'org.kodein.type.generic' call
|
|
1430
1473
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
1431
1474
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1432
|
-
var tmp$ret$5 = tmp_5.
|
|
1475
|
+
var tmp$ret$5 = tmp_5.g63(tmp$ret$4, null);
|
|
1433
1476
|
return new ToClientEventsObserverImpl(tmp_1, tmp_4, tmp$ret$5);
|
|
1434
1477
|
}
|
|
1435
1478
|
function getServerEngineGameDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig) {
|
|
1436
1479
|
return function ($this$Module) {
|
|
1437
|
-
$this$Module.
|
|
1438
|
-
$this$Module.
|
|
1480
|
+
$this$Module.w61(jsonModule(emptyList()));
|
|
1481
|
+
$this$Module.w61(getEngineGameModule($engineBotConfig, $engineLogicConfig, $dealerConfig));
|
|
1439
1482
|
// Inline function 'org.kodein.di.bind' call
|
|
1440
1483
|
// Inline function 'org.kodein.type.generic' call
|
|
1441
1484
|
var tmp = typeToken(createKType(getKClass(MechanicLifecycleReducer), arrayOf([]), false));
|
|
1442
1485
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
1443
|
-
var tmp_0 = $this$Module.
|
|
1486
|
+
var tmp_0 = $this$Module.u61(tmp$ret$0, null, null);
|
|
1444
1487
|
// Inline function 'org.kodein.di.provider' call
|
|
1445
1488
|
var creator = getServerEngineGameDI$lambda$lambda;
|
|
1446
|
-
var tmp_1 = $this$Module.
|
|
1489
|
+
var tmp_1 = $this$Module.x61();
|
|
1447
1490
|
// Inline function 'org.kodein.type.generic' call
|
|
1448
1491
|
var tmp_2 = typeToken(createKType(getKClass(ServerMechanicLifecycleReducer), arrayOf([]), false));
|
|
1449
1492
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1450
1493
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
1451
|
-
tmp_0.
|
|
1494
|
+
tmp_0.s65(tmp$ret$3);
|
|
1452
1495
|
// Inline function 'org.kodein.di.bind' call
|
|
1453
1496
|
// Inline function 'org.kodein.type.generic' call
|
|
1454
1497
|
var tmp_3 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1455
1498
|
var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1456
|
-
var tmp_4 = $this$Module.
|
|
1499
|
+
var tmp_4 = $this$Module.u61(tmp$ret$4, null, null);
|
|
1457
1500
|
// Inline function 'org.kodein.di.provider' call
|
|
1458
1501
|
var creator_0 = getServerEngineGameDI$lambda$lambda_0;
|
|
1459
|
-
var tmp_5 = $this$Module.
|
|
1502
|
+
var tmp_5 = $this$Module.x61();
|
|
1460
1503
|
// Inline function 'org.kodein.type.generic' call
|
|
1461
1504
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1462
1505
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1463
1506
|
var tmp$ret$7 = new Provider(tmp_5, tmp$ret$6, creator_0);
|
|
1464
|
-
tmp_4.
|
|
1507
|
+
tmp_4.s65(tmp$ret$7);
|
|
1465
1508
|
// Inline function 'org.kodein.di.bind' call
|
|
1466
1509
|
// Inline function 'org.kodein.type.generic' call
|
|
1467
1510
|
var tmp_7 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1468
1511
|
var tmp$ret$8 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
1469
|
-
var tmp_8 = $this$Module.
|
|
1512
|
+
var tmp_8 = $this$Module.u61(tmp$ret$8, null, null);
|
|
1470
1513
|
// Inline function 'org.kodein.di.singleton' call
|
|
1471
1514
|
var creator_1 = getServerEngineGameDI$lambda$lambda_1;
|
|
1472
|
-
var tmp_9 = $this$Module.
|
|
1473
|
-
var tmp_10 = $this$Module.
|
|
1474
|
-
var tmp_11 = $this$Module.
|
|
1515
|
+
var tmp_9 = $this$Module.z61();
|
|
1516
|
+
var tmp_10 = $this$Module.x61();
|
|
1517
|
+
var tmp_11 = $this$Module.y61();
|
|
1475
1518
|
// Inline function 'org.kodein.type.generic' call
|
|
1476
1519
|
var tmp_12 = typeToken(createKType(getKClass(ToClientEventsObserverImpl), arrayOf([]), false));
|
|
1477
1520
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
1478
1521
|
var tmp$ret$11 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$10, null, true, creator_1);
|
|
1479
|
-
tmp_8.
|
|
1522
|
+
tmp_8.s65(tmp$ret$11);
|
|
1480
1523
|
return Unit_instance;
|
|
1481
1524
|
};
|
|
1482
1525
|
}
|
|
@@ -1485,59 +1528,59 @@
|
|
|
1485
1528
|
function ToClientEventsObserver() {
|
|
1486
1529
|
}
|
|
1487
1530
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1531
|
+
this.md3_1 = this$0;
|
|
1532
|
+
this.nd3_1 = $actions;
|
|
1490
1533
|
CoroutineImpl.call(this, resultContinuation);
|
|
1491
1534
|
}
|
|
1492
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1493
|
-
var tmp = this.
|
|
1494
|
-
tmp.
|
|
1495
|
-
tmp.
|
|
1496
|
-
return tmp.
|
|
1535
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).ud3 = function ($this$flow, $completion) {
|
|
1536
|
+
var tmp = this.vd3($this$flow, $completion);
|
|
1537
|
+
tmp.j9_1 = Unit_instance;
|
|
1538
|
+
tmp.k9_1 = null;
|
|
1539
|
+
return tmp.p9();
|
|
1497
1540
|
};
|
|
1498
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1499
|
-
return this.
|
|
1541
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).z9 = function (p1, $completion) {
|
|
1542
|
+
return this.ud3((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1500
1543
|
};
|
|
1501
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1502
|
-
var suspendResult = this.
|
|
1544
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).p9 = function () {
|
|
1545
|
+
var suspendResult = this.j9_1;
|
|
1503
1546
|
$sm: do
|
|
1504
1547
|
try {
|
|
1505
|
-
var tmp = this.
|
|
1548
|
+
var tmp = this.h9_1;
|
|
1506
1549
|
switch (tmp) {
|
|
1507
1550
|
case 0:
|
|
1508
|
-
this.
|
|
1551
|
+
this.i9_1 = 4;
|
|
1509
1552
|
var tmp_0 = this;
|
|
1510
|
-
tmp_0.
|
|
1553
|
+
tmp_0.pd3_1 = this.md3_1.ad4_1;
|
|
1511
1554
|
var tmp_1 = this;
|
|
1512
|
-
tmp_1.
|
|
1513
|
-
this.
|
|
1514
|
-
this.
|
|
1555
|
+
tmp_1.qd3_1 = transformToEmits(this.md3_1, this.nd3_1);
|
|
1556
|
+
this.rd3_1 = this.qd3_1.j();
|
|
1557
|
+
this.h9_1 = 1;
|
|
1515
1558
|
continue $sm;
|
|
1516
1559
|
case 1:
|
|
1517
|
-
if (!this.
|
|
1518
|
-
this.
|
|
1560
|
+
if (!this.rd3_1.k()) {
|
|
1561
|
+
this.h9_1 = 3;
|
|
1519
1562
|
continue $sm;
|
|
1520
1563
|
}
|
|
1521
1564
|
|
|
1522
|
-
this.
|
|
1565
|
+
this.sd3_1 = this.rd3_1.l();
|
|
1523
1566
|
var tmp_2 = this;
|
|
1524
|
-
tmp_2.
|
|
1525
|
-
this.
|
|
1526
|
-
suspendResult = this.
|
|
1567
|
+
tmp_2.td3_1 = this.sd3_1;
|
|
1568
|
+
this.h9_1 = 2;
|
|
1569
|
+
suspendResult = this.od3_1.s18(this.td3_1, this);
|
|
1527
1570
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1528
1571
|
return suspendResult;
|
|
1529
1572
|
}
|
|
1530
1573
|
|
|
1531
1574
|
continue $sm;
|
|
1532
1575
|
case 2:
|
|
1533
|
-
this.
|
|
1576
|
+
this.h9_1 = 1;
|
|
1534
1577
|
continue $sm;
|
|
1535
1578
|
case 3:
|
|
1536
1579
|
l$ret$1: do {
|
|
1537
|
-
var this_0 = this.
|
|
1580
|
+
var this_0 = this.md3_1.zd3_1;
|
|
1538
1581
|
while (true) {
|
|
1539
1582
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1540
|
-
var upd = cur - this.
|
|
1583
|
+
var upd = cur - this.nd3_1.m() | 0;
|
|
1541
1584
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1542
1585
|
break l$ret$1;
|
|
1543
1586
|
}
|
|
@@ -1546,28 +1589,28 @@
|
|
|
1546
1589
|
while (false);
|
|
1547
1590
|
return Unit_instance;
|
|
1548
1591
|
case 4:
|
|
1549
|
-
throw this.
|
|
1592
|
+
throw this.k9_1;
|
|
1550
1593
|
}
|
|
1551
1594
|
} catch ($p) {
|
|
1552
1595
|
var e = $p;
|
|
1553
|
-
if (this.
|
|
1596
|
+
if (this.i9_1 === 4) {
|
|
1554
1597
|
throw e;
|
|
1555
1598
|
} else {
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1599
|
+
this.h9_1 = this.i9_1;
|
|
1600
|
+
this.k9_1 = e;
|
|
1558
1601
|
}
|
|
1559
1602
|
}
|
|
1560
1603
|
while (true);
|
|
1561
1604
|
};
|
|
1562
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1563
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1564
|
-
i.
|
|
1605
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).vd3 = function ($this$flow, completion) {
|
|
1606
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.md3_1, this.nd3_1, completion);
|
|
1607
|
+
i.od3_1 = $this$flow;
|
|
1565
1608
|
return i;
|
|
1566
1609
|
};
|
|
1567
1610
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1568
1611
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1569
1612
|
var l = function ($this$flow, $completion) {
|
|
1570
|
-
return i.
|
|
1613
|
+
return i.ud3($this$flow, $completion);
|
|
1571
1614
|
};
|
|
1572
1615
|
l.$arity = 1;
|
|
1573
1616
|
return l;
|
|
@@ -1625,8 +1668,8 @@
|
|
|
1625
1668
|
if (value_0.m() === 1) {
|
|
1626
1669
|
tmp_1 = single(value_0);
|
|
1627
1670
|
} else {
|
|
1628
|
-
var
|
|
1629
|
-
tmp_1 = new CombinedToClientAction(value_0,
|
|
1671
|
+
var tmp0_deliveryPayload = mapFromGroupKey(key_0, $this);
|
|
1672
|
+
tmp_1 = new CombinedToClientAction(value_0, tmp0_deliveryPayload);
|
|
1630
1673
|
}
|
|
1631
1674
|
var tmp$ret$8 = tmp_1;
|
|
1632
1675
|
destination_0.e(tmp$ret$8);
|
|
@@ -1640,29 +1683,29 @@
|
|
|
1640
1683
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1641
1684
|
}
|
|
1642
1685
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1643
|
-
var tmp = $this.
|
|
1686
|
+
var tmp = $this.yd3_1.g6l();
|
|
1644
1687
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1645
|
-
var this_0 = _this__u8e3s4.
|
|
1688
|
+
var this_0 = _this__u8e3s4.dd4_1;
|
|
1646
1689
|
var tmp_0 = copyToArray(this_0);
|
|
1647
1690
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1648
|
-
var this_1 = _this__u8e3s4.
|
|
1691
|
+
var this_1 = _this__u8e3s4.ed4_1;
|
|
1649
1692
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1650
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1693
|
+
return new ActionDeliveryPayload(_this__u8e3s4.cd4_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.fd4_1);
|
|
1651
1694
|
}
|
|
1652
1695
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1696
|
+
this.cd4_1 = tableId;
|
|
1697
|
+
this.dd4_1 = includePlayers;
|
|
1698
|
+
this.ed4_1 = excludePlayers;
|
|
1699
|
+
this.fd4_1 = deliveryType;
|
|
1657
1700
|
}
|
|
1658
1701
|
protoOf(GroupKey).toString = function () {
|
|
1659
|
-
return 'GroupKey(tableId=' + this.
|
|
1702
|
+
return 'GroupKey(tableId=' + this.cd4_1 + ', includePlayers=' + toString(this.dd4_1) + ', excludePlayers=' + toString(this.ed4_1) + ', deliveryType=' + this.fd4_1.toString() + ')';
|
|
1660
1703
|
};
|
|
1661
1704
|
protoOf(GroupKey).hashCode = function () {
|
|
1662
|
-
var result = getStringHashCode(this.
|
|
1663
|
-
result = imul(result, 31) + hashCode(this.
|
|
1664
|
-
result = imul(result, 31) + hashCode(this.
|
|
1665
|
-
result = imul(result, 31) + this.
|
|
1705
|
+
var result = getStringHashCode(this.cd4_1);
|
|
1706
|
+
result = imul(result, 31) + hashCode(this.dd4_1) | 0;
|
|
1707
|
+
result = imul(result, 31) + hashCode(this.ed4_1) | 0;
|
|
1708
|
+
result = imul(result, 31) + this.fd4_1.hashCode() | 0;
|
|
1666
1709
|
return result;
|
|
1667
1710
|
};
|
|
1668
1711
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1671,46 +1714,46 @@
|
|
|
1671
1714
|
if (!(other instanceof GroupKey))
|
|
1672
1715
|
return false;
|
|
1673
1716
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1674
|
-
if (!(this.
|
|
1717
|
+
if (!(this.cd4_1 === tmp0_other_with_cast.cd4_1))
|
|
1675
1718
|
return false;
|
|
1676
|
-
if (!equals(this.
|
|
1719
|
+
if (!equals(this.dd4_1, tmp0_other_with_cast.dd4_1))
|
|
1677
1720
|
return false;
|
|
1678
|
-
if (!equals(this.
|
|
1721
|
+
if (!equals(this.ed4_1, tmp0_other_with_cast.ed4_1))
|
|
1679
1722
|
return false;
|
|
1680
|
-
if (!this.
|
|
1723
|
+
if (!this.fd4_1.equals(tmp0_other_with_cast.fd4_1))
|
|
1681
1724
|
return false;
|
|
1682
1725
|
return true;
|
|
1683
1726
|
};
|
|
1684
1727
|
function Companion_0() {
|
|
1685
|
-
this.
|
|
1728
|
+
this.gd4_1 = 6;
|
|
1686
1729
|
}
|
|
1687
1730
|
var Companion_instance_8;
|
|
1688
1731
|
function Companion_getInstance_3() {
|
|
1689
1732
|
return Companion_instance_8;
|
|
1690
1733
|
}
|
|
1691
1734
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1692
|
-
this.
|
|
1735
|
+
this.pd4_1 = this$0;
|
|
1693
1736
|
CoroutineImpl.call(this, resultContinuation);
|
|
1694
1737
|
}
|
|
1695
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1696
|
-
var tmp = this.
|
|
1697
|
-
tmp.
|
|
1698
|
-
tmp.
|
|
1699
|
-
return tmp.
|
|
1738
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).rd4 = function (actions, $completion) {
|
|
1739
|
+
var tmp = this.sd4(actions, $completion);
|
|
1740
|
+
tmp.j9_1 = Unit_instance;
|
|
1741
|
+
tmp.k9_1 = null;
|
|
1742
|
+
return tmp.p9();
|
|
1700
1743
|
};
|
|
1701
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1702
|
-
return this.
|
|
1744
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).z9 = function (p1, $completion) {
|
|
1745
|
+
return this.rd4((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1703
1746
|
};
|
|
1704
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1705
|
-
var suspendResult = this.
|
|
1747
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).p9 = function () {
|
|
1748
|
+
var suspendResult = this.j9_1;
|
|
1706
1749
|
$sm: do
|
|
1707
1750
|
try {
|
|
1708
|
-
var tmp = this.
|
|
1751
|
+
var tmp = this.h9_1;
|
|
1709
1752
|
if (tmp === 0) {
|
|
1710
|
-
this.
|
|
1711
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1753
|
+
this.i9_1 = 1;
|
|
1754
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.pd4_1, this.qd4_1, null));
|
|
1712
1755
|
} else if (tmp === 1) {
|
|
1713
|
-
throw this.
|
|
1756
|
+
throw this.k9_1;
|
|
1714
1757
|
}
|
|
1715
1758
|
} catch ($p) {
|
|
1716
1759
|
var e = $p;
|
|
@@ -1718,36 +1761,36 @@
|
|
|
1718
1761
|
}
|
|
1719
1762
|
while (true);
|
|
1720
1763
|
};
|
|
1721
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1722
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1723
|
-
i.
|
|
1764
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).sd4 = function (actions, completion) {
|
|
1765
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.pd4_1, completion);
|
|
1766
|
+
i.qd4_1 = actions;
|
|
1724
1767
|
return i;
|
|
1725
1768
|
};
|
|
1726
1769
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1727
1770
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1728
1771
|
var l = function (actions, $completion) {
|
|
1729
|
-
return i.
|
|
1772
|
+
return i.rd4(actions, $completion);
|
|
1730
1773
|
};
|
|
1731
1774
|
l.$arity = 1;
|
|
1732
1775
|
return l;
|
|
1733
1776
|
}
|
|
1734
1777
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
1735
1778
|
CoroutineImpl.call(this, resultContinuation);
|
|
1736
|
-
this.
|
|
1737
|
-
this.
|
|
1779
|
+
this.bd5_1 = _this__u8e3s4;
|
|
1780
|
+
this.cd5_1 = fromEvent;
|
|
1738
1781
|
}
|
|
1739
|
-
protoOf($sentEventCOROUTINE$0).
|
|
1740
|
-
var suspendResult = this.
|
|
1782
|
+
protoOf($sentEventCOROUTINE$0).p9 = function () {
|
|
1783
|
+
var suspendResult = this.j9_1;
|
|
1741
1784
|
$sm: do
|
|
1742
1785
|
try {
|
|
1743
|
-
var tmp = this.
|
|
1786
|
+
var tmp = this.h9_1;
|
|
1744
1787
|
switch (tmp) {
|
|
1745
1788
|
case 0:
|
|
1746
|
-
this.
|
|
1789
|
+
this.i9_1 = 2;
|
|
1747
1790
|
var tmp_0 = this;
|
|
1748
|
-
tmp_0.
|
|
1791
|
+
tmp_0.dd5_1 = this.bd5_1.ad4_1;
|
|
1749
1792
|
l$ret$1: do {
|
|
1750
|
-
var this_0 = this.
|
|
1793
|
+
var this_0 = this.bd5_1.zd3_1;
|
|
1751
1794
|
while (true) {
|
|
1752
1795
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1753
1796
|
var upd = cur + 1 | 0;
|
|
@@ -1757,8 +1800,8 @@
|
|
|
1757
1800
|
}
|
|
1758
1801
|
}
|
|
1759
1802
|
while (false);
|
|
1760
|
-
this.
|
|
1761
|
-
suspendResult = this.
|
|
1803
|
+
this.h9_1 = 1;
|
|
1804
|
+
suspendResult = this.bd5_1.bd4_1.s18(this.cd5_1, this);
|
|
1762
1805
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1763
1806
|
return suspendResult;
|
|
1764
1807
|
}
|
|
@@ -1767,43 +1810,43 @@
|
|
|
1767
1810
|
case 1:
|
|
1768
1811
|
return Unit_instance;
|
|
1769
1812
|
case 2:
|
|
1770
|
-
throw this.
|
|
1813
|
+
throw this.k9_1;
|
|
1771
1814
|
}
|
|
1772
1815
|
} catch ($p) {
|
|
1773
1816
|
var e = $p;
|
|
1774
|
-
if (this.
|
|
1817
|
+
if (this.i9_1 === 2) {
|
|
1775
1818
|
throw e;
|
|
1776
1819
|
} else {
|
|
1777
|
-
this.
|
|
1778
|
-
this.
|
|
1820
|
+
this.h9_1 = this.i9_1;
|
|
1821
|
+
this.k9_1 = e;
|
|
1779
1822
|
}
|
|
1780
1823
|
}
|
|
1781
1824
|
while (true);
|
|
1782
1825
|
};
|
|
1783
1826
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
1784
1827
|
CoroutineImpl.call(this, resultContinuation);
|
|
1785
|
-
this.
|
|
1828
|
+
this.md5_1 = _this__u8e3s4;
|
|
1786
1829
|
}
|
|
1787
|
-
protoOf($waitForCOROUTINE$1).
|
|
1788
|
-
var suspendResult = this.
|
|
1830
|
+
protoOf($waitForCOROUTINE$1).p9 = function () {
|
|
1831
|
+
var suspendResult = this.j9_1;
|
|
1789
1832
|
$sm: do
|
|
1790
1833
|
try {
|
|
1791
|
-
var tmp = this.
|
|
1834
|
+
var tmp = this.h9_1;
|
|
1792
1835
|
switch (tmp) {
|
|
1793
1836
|
case 0:
|
|
1794
|
-
this.
|
|
1837
|
+
this.i9_1 = 5;
|
|
1795
1838
|
var tmp_0 = this;
|
|
1796
|
-
tmp_0.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1839
|
+
tmp_0.nd5_1 = this.md5_1.ad4_1;
|
|
1840
|
+
this.od5_1 = 0;
|
|
1841
|
+
this.h9_1 = 1;
|
|
1799
1842
|
continue $sm;
|
|
1800
1843
|
case 1:
|
|
1801
|
-
if (!!(this.
|
|
1802
|
-
this.
|
|
1844
|
+
if (!!(this.md5_1.zd3_1.kotlinx$atomicfu$value === 0)) {
|
|
1845
|
+
this.h9_1 = 4;
|
|
1803
1846
|
continue $sm;
|
|
1804
1847
|
}
|
|
1805
1848
|
|
|
1806
|
-
this.
|
|
1849
|
+
this.h9_1 = 2;
|
|
1807
1850
|
suspendResult = delay(new Long(150, 0), this);
|
|
1808
1851
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1809
1852
|
return suspendResult;
|
|
@@ -1811,72 +1854,72 @@
|
|
|
1811
1854
|
|
|
1812
1855
|
continue $sm;
|
|
1813
1856
|
case 2:
|
|
1814
|
-
this.
|
|
1815
|
-
if (this.
|
|
1816
|
-
this.
|
|
1817
|
-
this.
|
|
1857
|
+
this.od5_1 = this.od5_1 + 1 | 0;
|
|
1858
|
+
if (this.od5_1 > 6) {
|
|
1859
|
+
this.md5_1.xd3_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.md5_1.zd3_1.kotlinx$atomicfu$value);
|
|
1860
|
+
this.h9_1 = 4;
|
|
1818
1861
|
continue $sm;
|
|
1819
1862
|
} else {
|
|
1820
|
-
this.
|
|
1863
|
+
this.h9_1 = 3;
|
|
1821
1864
|
continue $sm;
|
|
1822
1865
|
}
|
|
1823
1866
|
|
|
1824
1867
|
case 3:
|
|
1825
|
-
this.
|
|
1868
|
+
this.h9_1 = 1;
|
|
1826
1869
|
continue $sm;
|
|
1827
1870
|
case 4:
|
|
1828
1871
|
return Unit_instance;
|
|
1829
1872
|
case 5:
|
|
1830
|
-
throw this.
|
|
1873
|
+
throw this.k9_1;
|
|
1831
1874
|
}
|
|
1832
1875
|
} catch ($p) {
|
|
1833
1876
|
var e = $p;
|
|
1834
|
-
if (this.
|
|
1877
|
+
if (this.i9_1 === 5) {
|
|
1835
1878
|
throw e;
|
|
1836
1879
|
} else {
|
|
1837
|
-
this.
|
|
1838
|
-
this.
|
|
1880
|
+
this.h9_1 = this.i9_1;
|
|
1881
|
+
this.k9_1 = e;
|
|
1839
1882
|
}
|
|
1840
1883
|
}
|
|
1841
1884
|
while (true);
|
|
1842
1885
|
};
|
|
1843
1886
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
1844
|
-
this.
|
|
1845
|
-
this.
|
|
1846
|
-
this.
|
|
1847
|
-
this.
|
|
1887
|
+
this.wd3_1 = serverReduxConfig;
|
|
1888
|
+
this.xd3_1 = logger;
|
|
1889
|
+
this.yd3_1 = idsProvider;
|
|
1890
|
+
this.zd3_1 = atomic$ref$1(0);
|
|
1848
1891
|
var tmp = this;
|
|
1849
1892
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
1850
|
-
tmp.
|
|
1851
|
-
this.
|
|
1893
|
+
tmp.ad4_1 = get_atomicfu$reentrantLock();
|
|
1894
|
+
this.bd4_1 = MutableSharedFlow();
|
|
1852
1895
|
}
|
|
1853
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1896
|
+
protoOf(ToClientEventsObserverImpl).dd3 = function (fromEvent, $completion) {
|
|
1854
1897
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
1855
|
-
tmp.
|
|
1856
|
-
tmp.
|
|
1857
|
-
return tmp.
|
|
1898
|
+
tmp.j9_1 = Unit_instance;
|
|
1899
|
+
tmp.k9_1 = null;
|
|
1900
|
+
return tmp.p9();
|
|
1858
1901
|
};
|
|
1859
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1902
|
+
protoOf(ToClientEventsObserverImpl).k9e = function ($completion) {
|
|
1860
1903
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
1861
|
-
tmp.
|
|
1862
|
-
tmp.
|
|
1863
|
-
return tmp.
|
|
1904
|
+
tmp.j9_1 = Unit_instance;
|
|
1905
|
+
tmp.k9_1 = null;
|
|
1906
|
+
return tmp.p9();
|
|
1864
1907
|
};
|
|
1865
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1866
|
-
if (!this.
|
|
1867
|
-
return this.
|
|
1908
|
+
protoOf(ToClientEventsObserverImpl).zb2 = function () {
|
|
1909
|
+
if (!this.wd3_1.enabledCombinedEvents) {
|
|
1910
|
+
return this.bd4_1;
|
|
1868
1911
|
}
|
|
1869
|
-
var tmp = windowedByInterval(this.
|
|
1912
|
+
var tmp = windowedByInterval(this.bd4_1, toLong(this.wd3_1.combinedEventsPeriod));
|
|
1870
1913
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
1871
1914
|
};
|
|
1872
1915
|
function UpdateServerConfigAction(serverConfig) {
|
|
1873
|
-
this.
|
|
1916
|
+
this.pd5_1 = serverConfig;
|
|
1874
1917
|
}
|
|
1875
1918
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
1876
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
1919
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.pd5_1.toString() + ')';
|
|
1877
1920
|
};
|
|
1878
1921
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
1879
|
-
return this.
|
|
1922
|
+
return this.pd5_1.hashCode();
|
|
1880
1923
|
};
|
|
1881
1924
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
1882
1925
|
if (this === other)
|
|
@@ -1884,72 +1927,72 @@
|
|
|
1884
1927
|
if (!(other instanceof UpdateServerConfigAction))
|
|
1885
1928
|
return false;
|
|
1886
1929
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
1887
|
-
if (!this.
|
|
1930
|
+
if (!this.pd5_1.equals(tmp0_other_with_cast.pd5_1))
|
|
1888
1931
|
return false;
|
|
1889
1932
|
return true;
|
|
1890
1933
|
};
|
|
1891
1934
|
function _get_asyncProvider__jbpyhw($this) {
|
|
1892
1935
|
// Inline function 'kotlin.getValue' call
|
|
1893
|
-
var this_0 = $this.
|
|
1936
|
+
var this_0 = $this.vd5_1;
|
|
1894
1937
|
asyncProvider$factory_0();
|
|
1895
1938
|
return this_0.u();
|
|
1896
1939
|
}
|
|
1897
1940
|
function _get_logger__rkp4sl_0($this) {
|
|
1898
1941
|
// Inline function 'kotlin.getValue' call
|
|
1899
|
-
var this_0 = $this.
|
|
1942
|
+
var this_0 = $this.wd5_1;
|
|
1900
1943
|
logger$factory_2();
|
|
1901
1944
|
return this_0.u();
|
|
1902
1945
|
}
|
|
1903
1946
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
1904
1947
|
// Inline function 'kotlin.getValue' call
|
|
1905
|
-
var this_0 = $this.
|
|
1948
|
+
var this_0 = $this.xd5_1;
|
|
1906
1949
|
playerConnectionInteractor$factory_2();
|
|
1907
1950
|
return this_0.u();
|
|
1908
1951
|
}
|
|
1909
1952
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
1910
1953
|
// Inline function 'kotlin.getValue' call
|
|
1911
|
-
var this_0 = $this.
|
|
1954
|
+
var this_0 = $this.yd5_1;
|
|
1912
1955
|
lastCardInteractor$factory_0();
|
|
1913
1956
|
return this_0.u();
|
|
1914
1957
|
}
|
|
1915
1958
|
function _get_serverConfig__rk2g06($this) {
|
|
1916
1959
|
// Inline function 'kotlin.getValue' call
|
|
1917
|
-
var this_0 = $this.
|
|
1960
|
+
var this_0 = $this.zd5_1;
|
|
1918
1961
|
serverConfig$factory_0();
|
|
1919
1962
|
return this_0.u();
|
|
1920
1963
|
}
|
|
1921
1964
|
function _get_logicConfig__52ww9d($this) {
|
|
1922
1965
|
// Inline function 'kotlin.getValue' call
|
|
1923
|
-
var this_0 = $this.
|
|
1966
|
+
var this_0 = $this.ad6_1;
|
|
1924
1967
|
logicConfig$factory_0();
|
|
1925
1968
|
return this_0.u();
|
|
1926
1969
|
}
|
|
1927
1970
|
function _get_idsProvider__fnfajc($this) {
|
|
1928
1971
|
// Inline function 'kotlin.getValue' call
|
|
1929
|
-
var this_0 = $this.
|
|
1972
|
+
var this_0 = $this.bd6_1;
|
|
1930
1973
|
idsProvider$factory_0();
|
|
1931
1974
|
return this_0.u();
|
|
1932
1975
|
}
|
|
1933
1976
|
function _get_botConfig__cpaxzc($this) {
|
|
1934
1977
|
// Inline function 'kotlin.getValue' call
|
|
1935
|
-
var this_0 = $this.
|
|
1978
|
+
var this_0 = $this.cd6_1;
|
|
1936
1979
|
botConfig$factory_0();
|
|
1937
1980
|
return this_0.u();
|
|
1938
1981
|
}
|
|
1939
1982
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
1940
1983
|
// Inline function 'kotlin.getValue' call
|
|
1941
|
-
var this_0 = $this.
|
|
1984
|
+
var this_0 = $this.dd6_1;
|
|
1942
1985
|
scenePositionProvider$factory_0();
|
|
1943
1986
|
return this_0.u();
|
|
1944
1987
|
}
|
|
1945
1988
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
1946
1989
|
// Inline function 'kotlin.getValue' call
|
|
1947
|
-
var this_0 = $this.
|
|
1990
|
+
var this_0 = $this.ed6_1;
|
|
1948
1991
|
toClientEventsObserver$factory_2();
|
|
1949
1992
|
return this_0.u();
|
|
1950
1993
|
}
|
|
1951
1994
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
1952
|
-
return !player.
|
|
1995
|
+
return !player.r72();
|
|
1953
1996
|
}
|
|
1954
1997
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
1955
1998
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -1957,79 +2000,82 @@
|
|
|
1957
2000
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
1958
2001
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
1959
2002
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
1960
|
-
this.
|
|
1961
|
-
this.
|
|
1962
|
-
this.
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
2003
|
+
this.qd5_1 = validationStoreContract;
|
|
2004
|
+
this.rd5_1 = timersStoreContract;
|
|
2005
|
+
this.sd5_1 = botGameStoreContract;
|
|
2006
|
+
this.td5_1 = gameMechanicStoreContract;
|
|
2007
|
+
this.ud5_1 = fileLoggerStoreContract;
|
|
1965
2008
|
var tmp = this;
|
|
1966
2009
|
// Inline function 'org.kodein.di.instance' call
|
|
1967
2010
|
// Inline function 'org.kodein.type.generic' call
|
|
1968
2011
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
1969
2012
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1970
|
-
tmp.
|
|
2013
|
+
tmp.vd5_1 = Instance(di, tmp$ret$0, null).p67(this, asyncProvider$factory());
|
|
1971
2014
|
var tmp_1 = this;
|
|
1972
2015
|
// Inline function 'org.kodein.di.instance' call
|
|
1973
2016
|
// Inline function 'org.kodein.type.generic' call
|
|
1974
2017
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1975
2018
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1976
|
-
tmp_1.
|
|
2019
|
+
tmp_1.wd5_1 = Instance(di, tmp$ret$2, null).p67(this, logger$factory_1());
|
|
1977
2020
|
var tmp_3 = this;
|
|
1978
2021
|
// Inline function 'org.kodein.di.instance' call
|
|
1979
2022
|
// Inline function 'org.kodein.type.generic' call
|
|
1980
2023
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1981
2024
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1982
|
-
tmp_3.
|
|
2025
|
+
tmp_3.xd5_1 = Instance(di, tmp$ret$4, null).p67(this, playerConnectionInteractor$factory_1());
|
|
1983
2026
|
var tmp_5 = this;
|
|
1984
2027
|
// Inline function 'org.kodein.di.instance' call
|
|
1985
2028
|
// Inline function 'org.kodein.type.generic' call
|
|
1986
2029
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
1987
2030
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1988
|
-
tmp_5.
|
|
2031
|
+
tmp_5.yd5_1 = Instance(di, tmp$ret$6, null).p67(this, lastCardInteractor$factory());
|
|
1989
2032
|
var tmp_7 = this;
|
|
1990
2033
|
// Inline function 'org.kodein.di.instance' call
|
|
1991
2034
|
// Inline function 'org.kodein.type.generic' call
|
|
1992
2035
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1993
2036
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1994
|
-
tmp_7.
|
|
2037
|
+
tmp_7.zd5_1 = Instance(di, tmp$ret$8, null).p67(this, serverConfig$factory());
|
|
1995
2038
|
var tmp_9 = this;
|
|
1996
2039
|
// Inline function 'org.kodein.di.instance' call
|
|
1997
2040
|
// Inline function 'org.kodein.type.generic' call
|
|
1998
2041
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
1999
2042
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2000
|
-
tmp_9.
|
|
2043
|
+
tmp_9.ad6_1 = Instance(di, tmp$ret$10, null).p67(this, logicConfig$factory());
|
|
2001
2044
|
var tmp_11 = this;
|
|
2002
2045
|
// Inline function 'org.kodein.di.instance' call
|
|
2003
2046
|
// Inline function 'org.kodein.type.generic' call
|
|
2004
2047
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2005
2048
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2006
|
-
tmp_11.
|
|
2049
|
+
tmp_11.bd6_1 = Instance(di, tmp$ret$12, null).p67(this, idsProvider$factory());
|
|
2007
2050
|
var tmp_13 = this;
|
|
2008
2051
|
// Inline function 'org.kodein.di.instance' call
|
|
2009
2052
|
// Inline function 'org.kodein.type.generic' call
|
|
2010
2053
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2011
2054
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2012
|
-
tmp_13.
|
|
2055
|
+
tmp_13.cd6_1 = Instance(di, tmp$ret$14, null).p67(this, botConfig$factory());
|
|
2013
2056
|
var tmp_15 = this;
|
|
2014
2057
|
// Inline function 'org.kodein.di.instance' call
|
|
2015
2058
|
// Inline function 'org.kodein.type.generic' call
|
|
2016
2059
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2017
2060
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2018
|
-
tmp_15.
|
|
2061
|
+
tmp_15.dd6_1 = Instance(di, tmp$ret$16, null).p67(this, scenePositionProvider$factory());
|
|
2019
2062
|
var tmp_17 = this;
|
|
2020
2063
|
// Inline function 'org.kodein.di.instance' call
|
|
2021
2064
|
// Inline function 'org.kodein.type.generic' call
|
|
2022
2065
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2023
2066
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2024
|
-
tmp_17.
|
|
2067
|
+
tmp_17.ed6_1 = Instance(di, tmp$ret$18, null).p67(this, toClientEventsObserver$factory_1());
|
|
2025
2068
|
}
|
|
2026
|
-
protoOf(ServerGameStoreContract).
|
|
2027
|
-
return plus(plus(plus(plus(plus(this.
|
|
2069
|
+
protoOf(ServerGameStoreContract).d97 = function () {
|
|
2070
|
+
return plus(plus(plus(plus(plus(this.qd5_1.d97(), this.rd5_1.d97()), this.sd5_1.d97()), this.td5_1.d97()), this.ud5_1.d97()), listOf(serverConfigReducer()));
|
|
2028
2071
|
};
|
|
2029
|
-
protoOf(ServerGameStoreContract).
|
|
2030
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2072
|
+
protoOf(ServerGameStoreContract).e97 = function () {
|
|
2073
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.qd5_1.e97(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.rd5_1.e97()), this.sd5_1.e97()), this.td5_1.e97()), this.ud5_1.e97()), 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))).w98(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2031
2074
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2032
|
-
var
|
|
2075
|
+
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2076
|
+
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
2077
|
+
var tmp2_asyncProvider = _get_asyncProvider__jbpyhw(this);
|
|
2078
|
+
var tmp_1 = playerTurnTimeoutWhenHostMiddleware(tmp0_serverConfig, tmp2_asyncProvider, tmp1_logger);
|
|
2033
2079
|
var tmp_2 = clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this), listOf(_get_toClientEventsObserver__6rp51y_0(this)));
|
|
2034
2080
|
var tmp_3;
|
|
2035
2081
|
if (_get_botConfig__cpaxzc(this).autoStepLastCard) {
|
|
@@ -2146,33 +2192,33 @@
|
|
|
2146
2192
|
}
|
|
2147
2193
|
function _no_name_provided__qut3iv() {
|
|
2148
2194
|
}
|
|
2149
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2195
|
+
protoOf(_no_name_provided__qut3iv).h6n = function (action) {
|
|
2150
2196
|
return action instanceof RoundEndedAction;
|
|
2151
2197
|
};
|
|
2152
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2198
|
+
protoOf(_no_name_provided__qut3iv).y6o = function (store, next, action) {
|
|
2153
2199
|
// Inline function 'games.jass.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
2154
2200
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2155
2201
|
next(action_0);
|
|
2156
2202
|
var state = store.state;
|
|
2157
|
-
if (!get_serverState(state).
|
|
2158
|
-
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.
|
|
2203
|
+
if (!get_serverState(state).nd2_1.od2_1 && action_0.isGameFinished) {
|
|
2204
|
+
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.i6v_1));
|
|
2159
2205
|
}
|
|
2160
2206
|
};
|
|
2161
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2162
|
-
return this.
|
|
2207
|
+
protoOf(_no_name_provided__qut3iv).g6n = function (store, next, action) {
|
|
2208
|
+
return this.y6o(store, next, action);
|
|
2163
2209
|
};
|
|
2164
2210
|
function ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda($$this$with) {
|
|
2165
2211
|
return function () {
|
|
2166
|
-
return $$this$with.
|
|
2212
|
+
return $$this$with.k6w().playersConnections;
|
|
2167
2213
|
};
|
|
2168
2214
|
}
|
|
2169
2215
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2170
|
-
this.
|
|
2216
|
+
this.hd6_1 = this$0;
|
|
2171
2217
|
}
|
|
2172
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2218
|
+
protoOf(_no_name_provided__qut3iv_0).h6n = function (action) {
|
|
2173
2219
|
return action instanceof MechanicAction;
|
|
2174
2220
|
};
|
|
2175
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2221
|
+
protoOf(_no_name_provided__qut3iv_0).y6o = function (store, next, action) {
|
|
2176
2222
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>' call
|
|
2177
2223
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
2178
2224
|
var state = store.state;
|
|
@@ -2182,18 +2228,18 @@
|
|
|
2182
2228
|
var tmp;
|
|
2183
2229
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2184
2230
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2185
|
-
var this_0 = this.
|
|
2186
|
-
var tableId = action_0.
|
|
2187
|
-
var gameCreatorPlayerId = action_0.
|
|
2231
|
+
var this_0 = this.hd6_1;
|
|
2232
|
+
var tableId = action_0.p83_1;
|
|
2233
|
+
var gameCreatorPlayerId = action_0.r83_1;
|
|
2188
2234
|
// Inline function 'kotlin.collections.map' call
|
|
2189
|
-
var this_1 = action_0.
|
|
2235
|
+
var this_1 = action_0.s83_1;
|
|
2190
2236
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2191
2237
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2192
2238
|
var tmp0_iterator = this_1.j();
|
|
2193
2239
|
while (tmp0_iterator.k()) {
|
|
2194
2240
|
var item = tmp0_iterator.l();
|
|
2195
2241
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2196
|
-
var tmp$ret$0 = to(item.
|
|
2242
|
+
var tmp$ret$0 = to(item.v6d_1, PlayerConnectionState_LIVE_getInstance());
|
|
2197
2243
|
destination.e(tmp$ret$0);
|
|
2198
2244
|
}
|
|
2199
2245
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2205,7 +2251,7 @@
|
|
|
2205
2251
|
while (tmp0_iterator_0.k()) {
|
|
2206
2252
|
var element = tmp0_iterator_0.l();
|
|
2207
2253
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2208
|
-
if (element.
|
|
2254
|
+
if (element.re_1.isLive) {
|
|
2209
2255
|
destination_0.e(element);
|
|
2210
2256
|
}
|
|
2211
2257
|
}
|
|
@@ -2215,7 +2261,7 @@
|
|
|
2215
2261
|
while (tmp0_iterator_1.k()) {
|
|
2216
2262
|
var item_0 = tmp0_iterator_1.l();
|
|
2217
2263
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2218
|
-
var tmp$ret$6 = item_0.
|
|
2264
|
+
var tmp$ret$6 = item_0.qe_1;
|
|
2219
2265
|
destination_1.e(tmp$ret$6);
|
|
2220
2266
|
}
|
|
2221
2267
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2227,7 +2273,7 @@
|
|
|
2227
2273
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2228
2274
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2229
2275
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2230
|
-
var
|
|
2276
|
+
var tmp0_aid = this_0.gd6_1.g6l();
|
|
2231
2277
|
// Inline function 'kotlin.collections.map' call
|
|
2232
2278
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2233
2279
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
@@ -2235,10 +2281,10 @@
|
|
|
2235
2281
|
while (tmp0_iterator_3.k()) {
|
|
2236
2282
|
var item_1 = tmp0_iterator_3.l();
|
|
2237
2283
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2238
|
-
var tmp$ret$9 = item_1.
|
|
2284
|
+
var tmp$ret$9 = item_1.qe_1;
|
|
2239
2285
|
destination_3.e(tmp$ret$9);
|
|
2240
2286
|
}
|
|
2241
|
-
var sendToPlayer = UserActionPayload_init_$Create$(
|
|
2287
|
+
var sendToPlayer = UserActionPayload_init_$Create$(tmp0_aid, tableId, gameCreatorPlayerId, element_0, destination_3);
|
|
2242
2288
|
var tmp0_safe_receiver = mapToClient_17(action_0, sendToPlayer);
|
|
2243
2289
|
if (tmp0_safe_receiver == null)
|
|
2244
2290
|
null;
|
|
@@ -2252,17 +2298,17 @@
|
|
|
2252
2298
|
} else {
|
|
2253
2299
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2254
2300
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2255
|
-
var this_2 = this.
|
|
2256
|
-
var table = state.
|
|
2301
|
+
var this_2 = this.hd6_1;
|
|
2302
|
+
var table = state.k6w();
|
|
2257
2303
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2258
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2304
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.gd6_1.g6l(), table.id, null);
|
|
2259
2305
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2260
2306
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2261
2307
|
} else {
|
|
2262
2308
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2263
2309
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2264
|
-
var this_3 = this.
|
|
2265
|
-
var tableId_0 = action_0.
|
|
2310
|
+
var this_3 = this.hd6_1;
|
|
2311
|
+
var tableId_0 = action_0.v83_1.id;
|
|
2266
2312
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2267
2313
|
var players = getPlayers();
|
|
2268
2314
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2274,7 +2320,7 @@
|
|
|
2274
2320
|
while (tmp0_iterator_4.k()) {
|
|
2275
2321
|
var element_1 = tmp0_iterator_4.l();
|
|
2276
2322
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2277
|
-
if (element_1.
|
|
2323
|
+
if (element_1.re_1.isLive) {
|
|
2278
2324
|
destination_4.e(element_1);
|
|
2279
2325
|
}
|
|
2280
2326
|
}
|
|
@@ -2284,7 +2330,7 @@
|
|
|
2284
2330
|
while (tmp0_iterator_5.k()) {
|
|
2285
2331
|
var item_2 = tmp0_iterator_5.l();
|
|
2286
2332
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2287
|
-
var tmp$ret$23 = item_2.
|
|
2333
|
+
var tmp$ret$23 = item_2.qe_1;
|
|
2288
2334
|
destination_5.e(tmp$ret$23);
|
|
2289
2335
|
}
|
|
2290
2336
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2296,7 +2342,7 @@
|
|
|
2296
2342
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2297
2343
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2298
2344
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2299
|
-
var
|
|
2345
|
+
var tmp0_aid_0 = this_3.gd6_1.g6l();
|
|
2300
2346
|
// Inline function 'kotlin.collections.map' call
|
|
2301
2347
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2302
2348
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -2304,10 +2350,10 @@
|
|
|
2304
2350
|
while (tmp0_iterator_7.k()) {
|
|
2305
2351
|
var item_3 = tmp0_iterator_7.l();
|
|
2306
2352
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2307
|
-
var tmp$ret$26 = item_3.
|
|
2353
|
+
var tmp$ret$26 = item_3.qe_1;
|
|
2308
2354
|
destination_7.e(tmp$ret$26);
|
|
2309
2355
|
}
|
|
2310
|
-
var sendToPlayer_1 = UserActionPayload_init_$Create$(
|
|
2356
|
+
var sendToPlayer_1 = UserActionPayload_init_$Create$(tmp0_aid_0, tableId_0, gameCreatorPlayerId_0, element_2, destination_7);
|
|
2311
2357
|
var tmp0_safe_receiver_0 = mapToClient_15(action_0, sendToPlayer_1);
|
|
2312
2358
|
if (tmp0_safe_receiver_0 == null)
|
|
2313
2359
|
null;
|
|
@@ -2321,44 +2367,44 @@
|
|
|
2321
2367
|
} else {
|
|
2322
2368
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2323
2369
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2324
|
-
var this_4 = this.
|
|
2325
|
-
var table_0 = state.
|
|
2370
|
+
var this_4 = this.hd6_1;
|
|
2371
|
+
var table_0 = state.k6w();
|
|
2326
2372
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2327
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2373
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.gd6_1.g6l(), table_0.id, null);
|
|
2328
2374
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2329
2375
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2330
2376
|
} else {
|
|
2331
2377
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2332
2378
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2333
|
-
var this_5 = this.
|
|
2334
|
-
var table_1 = state.
|
|
2379
|
+
var this_5 = this.hd6_1;
|
|
2380
|
+
var table_1 = state.k6w();
|
|
2335
2381
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2336
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2382
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.gd6_1.g6l(), table_1.id, null);
|
|
2337
2383
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2338
2384
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2339
2385
|
} else {
|
|
2340
2386
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2341
2387
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2342
|
-
var this_6 = this.
|
|
2343
|
-
var table_2 = state.
|
|
2388
|
+
var this_6 = this.hd6_1;
|
|
2389
|
+
var table_2 = state.k6w();
|
|
2344
2390
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2345
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2391
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.gd6_1.g6l(), table_2.id, null);
|
|
2346
2392
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2347
2393
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2348
2394
|
} else {
|
|
2349
2395
|
if (action_0 instanceof ErrorAction) {
|
|
2350
2396
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2351
|
-
var this_7 = this.
|
|
2352
|
-
var table_3 = state.
|
|
2397
|
+
var this_7 = this.hd6_1;
|
|
2398
|
+
var table_3 = state.k6w();
|
|
2353
2399
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2354
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2400
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.gd6_1.g6l(), table_3.id, null);
|
|
2355
2401
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2356
2402
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2357
2403
|
} else {
|
|
2358
2404
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2359
2405
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2360
|
-
var this_8 = this.
|
|
2361
|
-
var table_4 = state.
|
|
2406
|
+
var this_8 = this.hd6_1;
|
|
2407
|
+
var table_4 = state.k6w();
|
|
2362
2408
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2363
2409
|
var tableId_1 = table_4.id;
|
|
2364
2410
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -2372,7 +2418,7 @@
|
|
|
2372
2418
|
while (tmp0_iterator_8.k()) {
|
|
2373
2419
|
var element_3 = tmp0_iterator_8.l();
|
|
2374
2420
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2375
|
-
if (element_3.
|
|
2421
|
+
if (element_3.re_1.isLive) {
|
|
2376
2422
|
destination_8.e(element_3);
|
|
2377
2423
|
}
|
|
2378
2424
|
}
|
|
@@ -2382,7 +2428,7 @@
|
|
|
2382
2428
|
while (tmp0_iterator_9.k()) {
|
|
2383
2429
|
var item_4 = tmp0_iterator_9.l();
|
|
2384
2430
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2385
|
-
var tmp$ret$46 = item_4.
|
|
2431
|
+
var tmp$ret$46 = item_4.qe_1;
|
|
2386
2432
|
destination_9.e(tmp$ret$46);
|
|
2387
2433
|
}
|
|
2388
2434
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2394,7 +2440,7 @@
|
|
|
2394
2440
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2395
2441
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2396
2442
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2397
|
-
var
|
|
2443
|
+
var tmp0_aid_1 = this_8.gd6_1.g6l();
|
|
2398
2444
|
// Inline function 'kotlin.collections.map' call
|
|
2399
2445
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2400
2446
|
var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2402,10 +2448,10 @@
|
|
|
2402
2448
|
while (tmp0_iterator_11.k()) {
|
|
2403
2449
|
var item_5 = tmp0_iterator_11.l();
|
|
2404
2450
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2405
|
-
var tmp$ret$49 = item_5.
|
|
2451
|
+
var tmp$ret$49 = item_5.qe_1;
|
|
2406
2452
|
destination_11.e(tmp$ret$49);
|
|
2407
2453
|
}
|
|
2408
|
-
var sendToPlayer_6 = UserActionPayload_init_$Create$(
|
|
2454
|
+
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tableId_1, gameCreatorPlayerId_1, element_4, destination_11);
|
|
2409
2455
|
var tmp0_safe_receiver_1 = mapToClient_10(action_0, sendToPlayer_6);
|
|
2410
2456
|
if (tmp0_safe_receiver_1 == null)
|
|
2411
2457
|
null;
|
|
@@ -2419,8 +2465,8 @@
|
|
|
2419
2465
|
} else {
|
|
2420
2466
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2421
2467
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2422
|
-
var this_9 = this.
|
|
2423
|
-
var table_5 = state.
|
|
2468
|
+
var this_9 = this.hd6_1;
|
|
2469
|
+
var table_5 = state.k6w();
|
|
2424
2470
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2425
2471
|
var tableId_2 = table_5.id;
|
|
2426
2472
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -2434,7 +2480,7 @@
|
|
|
2434
2480
|
while (tmp0_iterator_12.k()) {
|
|
2435
2481
|
var element_5 = tmp0_iterator_12.l();
|
|
2436
2482
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2437
|
-
if (element_5.
|
|
2483
|
+
if (element_5.re_1.isLive) {
|
|
2438
2484
|
destination_12.e(element_5);
|
|
2439
2485
|
}
|
|
2440
2486
|
}
|
|
@@ -2444,7 +2490,7 @@
|
|
|
2444
2490
|
while (tmp0_iterator_13.k()) {
|
|
2445
2491
|
var item_6 = tmp0_iterator_13.l();
|
|
2446
2492
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2447
|
-
var tmp$ret$62 = item_6.
|
|
2493
|
+
var tmp$ret$62 = item_6.qe_1;
|
|
2448
2494
|
destination_13.e(tmp$ret$62);
|
|
2449
2495
|
}
|
|
2450
2496
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2456,7 +2502,7 @@
|
|
|
2456
2502
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2457
2503
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2458
2504
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2459
|
-
var
|
|
2505
|
+
var tmp0_aid_2 = this_9.gd6_1.g6l();
|
|
2460
2506
|
// Inline function 'kotlin.collections.map' call
|
|
2461
2507
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2462
2508
|
var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2464,10 +2510,10 @@
|
|
|
2464
2510
|
while (tmp0_iterator_15.k()) {
|
|
2465
2511
|
var item_7 = tmp0_iterator_15.l();
|
|
2466
2512
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2467
|
-
var tmp$ret$65 = item_7.
|
|
2513
|
+
var tmp$ret$65 = item_7.qe_1;
|
|
2468
2514
|
destination_15.e(tmp$ret$65);
|
|
2469
2515
|
}
|
|
2470
|
-
var sendToPlayer_7 = UserActionPayload_init_$Create$(
|
|
2516
|
+
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tableId_2, gameCreatorPlayerId_2, element_6, destination_15);
|
|
2471
2517
|
var tmp0_safe_receiver_2 = mapToClient_9(action_0, sendToPlayer_7);
|
|
2472
2518
|
if (tmp0_safe_receiver_2 == null)
|
|
2473
2519
|
null;
|
|
@@ -2481,8 +2527,8 @@
|
|
|
2481
2527
|
} else {
|
|
2482
2528
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2483
2529
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2484
|
-
var this_10 = this.
|
|
2485
|
-
var table_6 = state.
|
|
2530
|
+
var this_10 = this.hd6_1;
|
|
2531
|
+
var table_6 = state.k6w();
|
|
2486
2532
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2487
2533
|
var tableId_3 = table_6.id;
|
|
2488
2534
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -2496,7 +2542,7 @@
|
|
|
2496
2542
|
while (tmp0_iterator_16.k()) {
|
|
2497
2543
|
var element_7 = tmp0_iterator_16.l();
|
|
2498
2544
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2499
|
-
if (element_7.
|
|
2545
|
+
if (element_7.re_1.isLive) {
|
|
2500
2546
|
destination_16.e(element_7);
|
|
2501
2547
|
}
|
|
2502
2548
|
}
|
|
@@ -2506,7 +2552,7 @@
|
|
|
2506
2552
|
while (tmp0_iterator_17.k()) {
|
|
2507
2553
|
var item_8 = tmp0_iterator_17.l();
|
|
2508
2554
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2509
|
-
var tmp$ret$78 = item_8.
|
|
2555
|
+
var tmp$ret$78 = item_8.qe_1;
|
|
2510
2556
|
destination_17.e(tmp$ret$78);
|
|
2511
2557
|
}
|
|
2512
2558
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2518,7 +2564,7 @@
|
|
|
2518
2564
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2519
2565
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2520
2566
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2521
|
-
var
|
|
2567
|
+
var tmp0_aid_3 = this_10.gd6_1.g6l();
|
|
2522
2568
|
// Inline function 'kotlin.collections.map' call
|
|
2523
2569
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2524
2570
|
var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2526,12 +2572,12 @@
|
|
|
2526
2572
|
while (tmp0_iterator_19.k()) {
|
|
2527
2573
|
var item_9 = tmp0_iterator_19.l();
|
|
2528
2574
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2529
|
-
var tmp$ret$81 = item_9.
|
|
2575
|
+
var tmp$ret$81 = item_9.qe_1;
|
|
2530
2576
|
destination_19.e(tmp$ret$81);
|
|
2531
2577
|
}
|
|
2532
|
-
var sendToPlayer_8 = UserActionPayload_init_$Create$(
|
|
2578
|
+
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2533
2579
|
var tmp_0;
|
|
2534
|
-
if (this.
|
|
2580
|
+
if (this.hd6_1.fd6_1.supportBackwardActions && getPlayer(state.k6w().players, sendToPlayer_8.u7i_1).o72_1.t72_1) {
|
|
2535
2581
|
tmp_0 = null;
|
|
2536
2582
|
} else {
|
|
2537
2583
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2549,79 +2595,79 @@
|
|
|
2549
2595
|
} else {
|
|
2550
2596
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2551
2597
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2552
|
-
var this_11 = this.
|
|
2553
|
-
var table_7 = state.
|
|
2554
|
-
var exceptPlayerId = this.
|
|
2598
|
+
var this_11 = this.hd6_1;
|
|
2599
|
+
var table_7 = state.k6w();
|
|
2600
|
+
var exceptPlayerId = this.hd6_1.fd6_1.supportBackwardActions ? action_0.s84_1 : null;
|
|
2555
2601
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2556
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2602
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.gd6_1.g6l(), table_7.id, exceptPlayerId);
|
|
2557
2603
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2558
2604
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2559
2605
|
} else {
|
|
2560
2606
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2561
2607
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2562
|
-
var this_12 = this.
|
|
2563
|
-
var table_8 = state.
|
|
2564
|
-
var exceptPlayerId_0 = this.
|
|
2608
|
+
var this_12 = this.hd6_1;
|
|
2609
|
+
var table_8 = state.k6w();
|
|
2610
|
+
var exceptPlayerId_0 = this.hd6_1.fd6_1.supportBackwardActions ? action_0.w84_1 : null;
|
|
2565
2611
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2566
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2612
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.gd6_1.g6l(), table_8.id, exceptPlayerId_0);
|
|
2567
2613
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2568
2614
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2569
2615
|
} else {
|
|
2570
2616
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2571
2617
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2572
|
-
var this_13 = this.
|
|
2573
|
-
var table_9 = state.
|
|
2618
|
+
var this_13 = this.hd6_1;
|
|
2619
|
+
var table_9 = state.k6w();
|
|
2574
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2575
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2621
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.gd6_1.g6l(), table_9.id, null);
|
|
2576
2622
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2577
2623
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2578
2624
|
} else {
|
|
2579
2625
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2580
2626
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2581
|
-
var this_14 = this.
|
|
2582
|
-
var table_10 = state.
|
|
2583
|
-
var exceptPlayerId_1 = this.
|
|
2627
|
+
var this_14 = this.hd6_1;
|
|
2628
|
+
var table_10 = state.k6w();
|
|
2629
|
+
var exceptPlayerId_1 = this.hd6_1.fd6_1.supportBackwardActions ? action_0.d85_1 : null;
|
|
2584
2630
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2585
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2631
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.gd6_1.g6l(), table_10.id, exceptPlayerId_1);
|
|
2586
2632
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2587
2633
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2588
2634
|
} else {
|
|
2589
2635
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2590
2636
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2591
|
-
var this_15 = this.
|
|
2592
|
-
var table_11 = state.
|
|
2593
|
-
var exceptPlayerId_2 = this.
|
|
2637
|
+
var this_15 = this.hd6_1;
|
|
2638
|
+
var table_11 = state.k6w();
|
|
2639
|
+
var exceptPlayerId_2 = this.hd6_1.fd6_1.supportBackwardActions ? action_0.h85_1 : null;
|
|
2594
2640
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2595
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2641
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.gd6_1.g6l(), table_11.id, exceptPlayerId_2);
|
|
2596
2642
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2597
2643
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2598
2644
|
} else {
|
|
2599
2645
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2600
2646
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2601
|
-
var this_16 = this.
|
|
2602
|
-
var table_12 = state.
|
|
2647
|
+
var this_16 = this.hd6_1;
|
|
2648
|
+
var table_12 = state.k6w();
|
|
2603
2649
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2604
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2650
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.gd6_1.g6l(), table_12.id, null);
|
|
2605
2651
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2606
2652
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2607
2653
|
} else {
|
|
2608
2654
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2609
2655
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2610
|
-
var this_17 = this.
|
|
2611
|
-
var table_13 = state.
|
|
2656
|
+
var this_17 = this.hd6_1;
|
|
2657
|
+
var table_13 = state.k6w();
|
|
2612
2658
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2613
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2659
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.gd6_1.g6l(), table_13.id, null);
|
|
2614
2660
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2615
2661
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2616
2662
|
} else {
|
|
2617
2663
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2618
|
-
var message = action_0.
|
|
2664
|
+
var message = action_0.p85_1;
|
|
2619
2665
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2620
|
-
var this_18 = this.
|
|
2621
|
-
var table_14 = state.
|
|
2666
|
+
var this_18 = this.hd6_1;
|
|
2667
|
+
var table_14 = state.k6w();
|
|
2622
2668
|
var tmp_1;
|
|
2623
2669
|
var tmp_2;
|
|
2624
|
-
if (this.
|
|
2670
|
+
if (this.hd6_1.fd6_1.supportBackwardActions) {
|
|
2625
2671
|
tmp_2 = isInterface(message, UserMessage);
|
|
2626
2672
|
} else {
|
|
2627
2673
|
tmp_2 = false;
|
|
@@ -2633,17 +2679,17 @@
|
|
|
2633
2679
|
}
|
|
2634
2680
|
var exceptPlayerId_3 = tmp_1;
|
|
2635
2681
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2636
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2682
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.gd6_1.g6l(), table_14.id, exceptPlayerId_3);
|
|
2637
2683
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2638
2684
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2639
2685
|
} else {
|
|
2640
2686
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2641
2687
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2642
|
-
var this_19 = this.
|
|
2643
|
-
var table_15 = state.
|
|
2688
|
+
var this_19 = this.hd6_1;
|
|
2689
|
+
var table_15 = state.k6w();
|
|
2644
2690
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2645
2691
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2646
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
2692
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.gd6_1.g6l(), table_15.id, exceptPlayerId_4);
|
|
2647
2693
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2648
2694
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2649
2695
|
} else {
|
|
@@ -2677,14 +2723,14 @@
|
|
|
2677
2723
|
}
|
|
2678
2724
|
next(action_0);
|
|
2679
2725
|
};
|
|
2680
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2681
|
-
return this.
|
|
2726
|
+
protoOf(_no_name_provided__qut3iv_0).g6n = function (store, next, action) {
|
|
2727
|
+
return this.y6o(store, next, action);
|
|
2682
2728
|
};
|
|
2683
2729
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2684
|
-
this.
|
|
2685
|
-
this.
|
|
2730
|
+
this.fd6_1 = logicConfig;
|
|
2731
|
+
this.gd6_1 = idsProvider;
|
|
2686
2732
|
}
|
|
2687
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
2733
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).w98 = function () {
|
|
2688
2734
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2689
2735
|
return new _no_name_provided__qut3iv_0(this);
|
|
2690
2736
|
};
|
|
@@ -2693,29 +2739,29 @@
|
|
|
2693
2739
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2694
2740
|
}
|
|
2695
2741
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2742
|
+
this.qd6_1 = $provider;
|
|
2743
|
+
this.rd6_1 = $action;
|
|
2698
2744
|
CoroutineImpl.call(this, resultContinuation);
|
|
2699
2745
|
}
|
|
2700
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2701
|
-
var tmp = this.
|
|
2702
|
-
tmp.
|
|
2703
|
-
tmp.
|
|
2704
|
-
return tmp.
|
|
2746
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1f = function ($this$launchDefault, $completion) {
|
|
2747
|
+
var tmp = this.i1f($this$launchDefault, $completion);
|
|
2748
|
+
tmp.j9_1 = Unit_instance;
|
|
2749
|
+
tmp.k9_1 = null;
|
|
2750
|
+
return tmp.p9();
|
|
2705
2751
|
};
|
|
2706
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2707
|
-
return this.
|
|
2752
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).z9 = function (p1, $completion) {
|
|
2753
|
+
return this.h1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2708
2754
|
};
|
|
2709
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2710
|
-
var suspendResult = this.
|
|
2755
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).p9 = function () {
|
|
2756
|
+
var suspendResult = this.j9_1;
|
|
2711
2757
|
$sm: do
|
|
2712
2758
|
try {
|
|
2713
|
-
var tmp = this.
|
|
2759
|
+
var tmp = this.h9_1;
|
|
2714
2760
|
switch (tmp) {
|
|
2715
2761
|
case 0:
|
|
2716
|
-
this.
|
|
2717
|
-
this.
|
|
2718
|
-
suspendResult = this.
|
|
2762
|
+
this.i9_1 = 2;
|
|
2763
|
+
this.h9_1 = 1;
|
|
2764
|
+
suspendResult = this.qd6_1.dd3(this.rd6_1, this);
|
|
2719
2765
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2720
2766
|
return suspendResult;
|
|
2721
2767
|
}
|
|
@@ -2724,47 +2770,47 @@
|
|
|
2724
2770
|
case 1:
|
|
2725
2771
|
return Unit_instance;
|
|
2726
2772
|
case 2:
|
|
2727
|
-
throw this.
|
|
2773
|
+
throw this.k9_1;
|
|
2728
2774
|
}
|
|
2729
2775
|
} catch ($p) {
|
|
2730
2776
|
var e = $p;
|
|
2731
|
-
if (this.
|
|
2777
|
+
if (this.i9_1 === 2) {
|
|
2732
2778
|
throw e;
|
|
2733
2779
|
} else {
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2780
|
+
this.h9_1 = this.i9_1;
|
|
2781
|
+
this.k9_1 = e;
|
|
2736
2782
|
}
|
|
2737
2783
|
}
|
|
2738
2784
|
while (true);
|
|
2739
2785
|
};
|
|
2740
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2741
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
2742
|
-
i.
|
|
2786
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1f = function ($this$launchDefault, completion) {
|
|
2787
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.qd6_1, this.rd6_1, completion);
|
|
2788
|
+
i.sd6_1 = $this$launchDefault;
|
|
2743
2789
|
return i;
|
|
2744
2790
|
};
|
|
2745
2791
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
2746
2792
|
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation);
|
|
2747
2793
|
var l = function ($this$launchDefault, $completion) {
|
|
2748
|
-
return i.
|
|
2794
|
+
return i.h1f($this$launchDefault, $completion);
|
|
2749
2795
|
};
|
|
2750
2796
|
l.$arity = 1;
|
|
2751
2797
|
return l;
|
|
2752
2798
|
}
|
|
2753
2799
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2800
|
+
this.td6_1 = $asyncProvider;
|
|
2801
|
+
this.ud6_1 = $provider;
|
|
2756
2802
|
}
|
|
2757
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2803
|
+
protoOf(_no_name_provided__qut3iv_1).h6n = function (action) {
|
|
2758
2804
|
return action instanceof ToClientAction;
|
|
2759
2805
|
};
|
|
2760
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2806
|
+
protoOf(_no_name_provided__qut3iv_1).y6o = function (store, next, action) {
|
|
2761
2807
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
2762
2808
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
2763
|
-
this.
|
|
2809
|
+
this.td6_1.d6k(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.ud6_1, action_0, null));
|
|
2764
2810
|
next(action_0);
|
|
2765
2811
|
};
|
|
2766
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2767
|
-
return this.
|
|
2812
|
+
protoOf(_no_name_provided__qut3iv_1).g6n = function (store, next, action) {
|
|
2813
|
+
return this.y6o(store, next, action);
|
|
2768
2814
|
};
|
|
2769
2815
|
function serverConfigReducer() {
|
|
2770
2816
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -2772,90 +2818,90 @@
|
|
|
2772
2818
|
}
|
|
2773
2819
|
function _no_name_provided__qut3iv_2() {
|
|
2774
2820
|
}
|
|
2775
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2821
|
+
protoOf(_no_name_provided__qut3iv_2).h6n = function (action) {
|
|
2776
2822
|
return action instanceof UpdateServerConfigAction;
|
|
2777
2823
|
};
|
|
2778
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2824
|
+
protoOf(_no_name_provided__qut3iv_2).c9g = function (state, action) {
|
|
2779
2825
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
2780
2826
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
2781
|
-
return state.
|
|
2827
|
+
return state.m94(VOID, get_serverState(state).vd6(action_0.pd5_1));
|
|
2782
2828
|
};
|
|
2783
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2784
|
-
return this.
|
|
2829
|
+
protoOf(_no_name_provided__qut3iv_2).z6o = function (state, action) {
|
|
2830
|
+
return this.c9g((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
2785
2831
|
};
|
|
2786
2832
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
2787
2833
|
return function (it) {
|
|
2788
2834
|
var tmp = Companion_instance_0;
|
|
2789
2835
|
var tmp_0;
|
|
2790
2836
|
if (it.isBot) {
|
|
2791
|
-
tmp_0 = Companion_instance_1.
|
|
2837
|
+
tmp_0 = Companion_instance_1.v6e(PlayerConnectionState_LEFT_getInstance());
|
|
2792
2838
|
} else {
|
|
2793
2839
|
var tmp_1 = Companion_instance_1;
|
|
2794
2840
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
2795
2841
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2796
2842
|
Companion_getInstance();
|
|
2797
|
-
var this_0 = $action.
|
|
2843
|
+
var this_0 = $action.o83_1.timeoutTimeMillis;
|
|
2798
2844
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
2799
|
-
tmp_0 = tmp_1.
|
|
2845
|
+
tmp_0 = tmp_1.u6e(tmp_2, tmp$ret$0);
|
|
2800
2846
|
}
|
|
2801
|
-
return tmp.
|
|
2847
|
+
return tmp.c6g(tmp_0);
|
|
2802
2848
|
};
|
|
2803
2849
|
}
|
|
2804
2850
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
2805
2851
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
2806
|
-
this.
|
|
2807
|
-
}
|
|
2808
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
2809
|
-
var serverState = get_serverStateOrNull(state.
|
|
2810
|
-
var
|
|
2811
|
-
var
|
|
2812
|
-
var
|
|
2813
|
-
var
|
|
2814
|
-
var
|
|
2815
|
-
var
|
|
2816
|
-
var
|
|
2817
|
-
var
|
|
2818
|
-
var
|
|
2852
|
+
this.yd6_1 = logger;
|
|
2853
|
+
}
|
|
2854
|
+
protoOf(ServerMechanicLifecycleReducer).o9h = function (state, action) {
|
|
2855
|
+
var serverState = get_serverStateOrNull(state.j6v_1);
|
|
2856
|
+
var tmp7_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
2857
|
+
var tmp0_$this = this.p9h_1;
|
|
2858
|
+
var tmp1_tableId = action.p83_1;
|
|
2859
|
+
var tmp2_gameId = action.p83_1;
|
|
2860
|
+
var tmp3_version = action.q83_1;
|
|
2861
|
+
var tmp4_config = action.o83_1;
|
|
2862
|
+
var tmp5_users = action.s83_1;
|
|
2863
|
+
var tmp6_gameCreatorPlayerId = action.r83_1;
|
|
2864
|
+
var tmp8_tableOrNull = tmp0_$this.v9i(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
2819
2865
|
var tmp;
|
|
2820
2866
|
if (serverState == null) {
|
|
2821
|
-
this.
|
|
2822
|
-
tmp = Companion_instance_9.
|
|
2867
|
+
this.yd6_1.w(VOID, 'ServerPayload is not onStart');
|
|
2868
|
+
tmp = Companion_instance_9.cd3();
|
|
2823
2869
|
} else {
|
|
2824
2870
|
tmp = serverState;
|
|
2825
2871
|
}
|
|
2826
|
-
var
|
|
2827
|
-
return state.
|
|
2872
|
+
var tmp9_payload = tmp;
|
|
2873
|
+
return state.m94(tmp8_tableOrNull, tmp9_payload, tmp7_gameLifecycleState);
|
|
2828
2874
|
};
|
|
2829
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
2830
|
-
this.
|
|
2831
|
-
var
|
|
2832
|
-
var
|
|
2833
|
-
return state.
|
|
2875
|
+
protoOf(ServerMechanicLifecycleReducer).n9h = function (state, action) {
|
|
2876
|
+
this.q9h_1.c5v(action.previousGameId);
|
|
2877
|
+
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
2878
|
+
var tmp1_tableOrNull = this.p9h_1.x9i(state.k6w(), action.gameId);
|
|
2879
|
+
return state.m94(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
2834
2880
|
};
|
|
2835
2881
|
function Companion_1() {
|
|
2836
2882
|
}
|
|
2837
|
-
protoOf(Companion_1).
|
|
2883
|
+
protoOf(Companion_1).zd6 = function (config) {
|
|
2838
2884
|
return new ServerState(config);
|
|
2839
2885
|
};
|
|
2840
|
-
protoOf(Companion_1).
|
|
2886
|
+
protoOf(Companion_1).cd3 = function (config, $super) {
|
|
2841
2887
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
2842
|
-
return $super === VOID ? this.
|
|
2888
|
+
return $super === VOID ? this.zd6(config) : $super.zd6.call(this, config);
|
|
2843
2889
|
};
|
|
2844
2890
|
var Companion_instance_9;
|
|
2845
2891
|
function Companion_getInstance_4() {
|
|
2846
2892
|
return Companion_instance_9;
|
|
2847
2893
|
}
|
|
2848
2894
|
function ServerState(config) {
|
|
2849
|
-
this.
|
|
2895
|
+
this.nd2_1 = config;
|
|
2850
2896
|
}
|
|
2851
|
-
protoOf(ServerState).
|
|
2897
|
+
protoOf(ServerState).vd6 = function (config) {
|
|
2852
2898
|
return new ServerState(config);
|
|
2853
2899
|
};
|
|
2854
2900
|
protoOf(ServerState).toString = function () {
|
|
2855
|
-
return 'ServerState(config=' + this.
|
|
2901
|
+
return 'ServerState(config=' + this.nd2_1.toString() + ')';
|
|
2856
2902
|
};
|
|
2857
2903
|
protoOf(ServerState).hashCode = function () {
|
|
2858
|
-
return this.
|
|
2904
|
+
return this.nd2_1.hashCode();
|
|
2859
2905
|
};
|
|
2860
2906
|
protoOf(ServerState).equals = function (other) {
|
|
2861
2907
|
if (this === other)
|
|
@@ -2863,13 +2909,13 @@
|
|
|
2863
2909
|
if (!(other instanceof ServerState))
|
|
2864
2910
|
return false;
|
|
2865
2911
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
2866
|
-
if (!this.
|
|
2912
|
+
if (!this.nd2_1.equals(tmp0_other_with_cast.nd2_1))
|
|
2867
2913
|
return false;
|
|
2868
2914
|
return true;
|
|
2869
2915
|
};
|
|
2870
2916
|
function get_serverState(_this__u8e3s4) {
|
|
2871
2917
|
// Inline function 'kotlin.requireNotNull' call
|
|
2872
|
-
var value = _this__u8e3s4.
|
|
2918
|
+
var value = _this__u8e3s4.j6v_1;
|
|
2873
2919
|
// Inline function 'kotlin.contracts.contract' call
|
|
2874
2920
|
var tmp$ret$1;
|
|
2875
2921
|
$l$block: {
|
|
@@ -2898,9 +2944,9 @@
|
|
|
2898
2944
|
function prepareConfigObjectInternal($this, map) {
|
|
2899
2945
|
var jsObject = {};
|
|
2900
2946
|
var tmp = map.h2('players');
|
|
2901
|
-
var
|
|
2947
|
+
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
2902
2948
|
var tmp_0;
|
|
2903
|
-
if (
|
|
2949
|
+
if (tmp0_safe_receiver == null) {
|
|
2904
2950
|
tmp_0 = null;
|
|
2905
2951
|
} else {
|
|
2906
2952
|
// Inline function 'kotlin.collections.onEach' call
|
|
@@ -2908,18 +2954,18 @@
|
|
|
2908
2954
|
// Inline function 'kotlin.contracts.contract' call
|
|
2909
2955
|
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
2910
2956
|
var inductionVariable = 0;
|
|
2911
|
-
var last =
|
|
2957
|
+
var last = tmp0_safe_receiver.length;
|
|
2912
2958
|
while (inductionVariable < last) {
|
|
2913
|
-
var element =
|
|
2959
|
+
var element = tmp0_safe_receiver[inductionVariable];
|
|
2914
2960
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2915
2961
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
2916
2962
|
validatePlayers($this, element);
|
|
2917
2963
|
}
|
|
2918
|
-
tmp_0 =
|
|
2964
|
+
tmp_0 = tmp0_safe_receiver;
|
|
2919
2965
|
}
|
|
2920
|
-
var
|
|
2966
|
+
var tmp1_safe_receiver = tmp_0;
|
|
2921
2967
|
var tmp_1;
|
|
2922
|
-
if (
|
|
2968
|
+
if (tmp1_safe_receiver == null) {
|
|
2923
2969
|
tmp_1 = null;
|
|
2924
2970
|
} else {
|
|
2925
2971
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2928,8 +2974,8 @@
|
|
|
2928
2974
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
2929
2975
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2930
2976
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
2931
|
-
if (!(
|
|
2932
|
-
tmp_2 =
|
|
2977
|
+
if (!(tmp1_safe_receiver.length === 0)) {
|
|
2978
|
+
tmp_2 = tmp1_safe_receiver;
|
|
2933
2979
|
} else {
|
|
2934
2980
|
tmp_2 = null;
|
|
2935
2981
|
}
|
|
@@ -2937,9 +2983,9 @@
|
|
|
2937
2983
|
}
|
|
2938
2984
|
var players = tmp_1;
|
|
2939
2985
|
var tmp_3 = map.h2('points');
|
|
2940
|
-
var
|
|
2986
|
+
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
2941
2987
|
var tmp_4;
|
|
2942
|
-
if (
|
|
2988
|
+
if (tmp2_safe_receiver == null) {
|
|
2943
2989
|
tmp_4 = null;
|
|
2944
2990
|
} else {
|
|
2945
2991
|
// Inline function 'kotlin.collections.onEach' call
|
|
@@ -2947,18 +2993,18 @@
|
|
|
2947
2993
|
// Inline function 'kotlin.contracts.contract' call
|
|
2948
2994
|
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
2949
2995
|
var inductionVariable_0 = 0;
|
|
2950
|
-
var last_0 =
|
|
2996
|
+
var last_0 = tmp2_safe_receiver.length;
|
|
2951
2997
|
while (inductionVariable_0 < last_0) {
|
|
2952
|
-
var element_0 =
|
|
2998
|
+
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
2953
2999
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2954
3000
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
2955
3001
|
validatePoints($this, element_0);
|
|
2956
3002
|
}
|
|
2957
|
-
tmp_4 =
|
|
3003
|
+
tmp_4 = tmp2_safe_receiver;
|
|
2958
3004
|
}
|
|
2959
|
-
var
|
|
3005
|
+
var tmp3_safe_receiver = tmp_4;
|
|
2960
3006
|
var tmp_5;
|
|
2961
|
-
if (
|
|
3007
|
+
if (tmp3_safe_receiver == null) {
|
|
2962
3008
|
tmp_5 = null;
|
|
2963
3009
|
} else {
|
|
2964
3010
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2967,8 +3013,8 @@
|
|
|
2967
3013
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
2968
3014
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2969
3015
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
2970
|
-
if (!(
|
|
2971
|
-
tmp_6 =
|
|
3016
|
+
if (!(tmp3_safe_receiver.length === 0)) {
|
|
3017
|
+
tmp_6 = tmp3_safe_receiver;
|
|
2972
3018
|
} else {
|
|
2973
3019
|
tmp_6 = null;
|
|
2974
3020
|
}
|
|
@@ -2976,9 +3022,9 @@
|
|
|
2976
3022
|
}
|
|
2977
3023
|
var points = tmp_5;
|
|
2978
3024
|
var tmp_7 = map.h2('timeoutTime');
|
|
2979
|
-
var
|
|
3025
|
+
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
2980
3026
|
var tmp_8;
|
|
2981
|
-
if (
|
|
3027
|
+
if (tmp4_safe_receiver == null) {
|
|
2982
3028
|
tmp_8 = null;
|
|
2983
3029
|
} else {
|
|
2984
3030
|
// Inline function 'kotlin.collections.onEach' call
|
|
@@ -2986,18 +3032,18 @@
|
|
|
2986
3032
|
// Inline function 'kotlin.contracts.contract' call
|
|
2987
3033
|
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
2988
3034
|
var inductionVariable_1 = 0;
|
|
2989
|
-
var last_1 =
|
|
3035
|
+
var last_1 = tmp4_safe_receiver.length;
|
|
2990
3036
|
while (inductionVariable_1 < last_1) {
|
|
2991
|
-
var element_1 =
|
|
3037
|
+
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
2992
3038
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
2993
3039
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
2994
3040
|
validateTimeoutTime($this, element_1);
|
|
2995
3041
|
}
|
|
2996
|
-
tmp_8 =
|
|
3042
|
+
tmp_8 = tmp4_safe_receiver;
|
|
2997
3043
|
}
|
|
2998
|
-
var
|
|
3044
|
+
var tmp5_safe_receiver = tmp_8;
|
|
2999
3045
|
var tmp_9;
|
|
3000
|
-
if (
|
|
3046
|
+
if (tmp5_safe_receiver == null) {
|
|
3001
3047
|
tmp_9 = null;
|
|
3002
3048
|
} else {
|
|
3003
3049
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3006,8 +3052,8 @@
|
|
|
3006
3052
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3007
3053
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3008
3054
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
3009
|
-
if (!(
|
|
3010
|
-
tmp_10 =
|
|
3055
|
+
if (!(tmp5_safe_receiver.length === 0)) {
|
|
3056
|
+
tmp_10 = tmp5_safe_receiver;
|
|
3011
3057
|
} else {
|
|
3012
3058
|
tmp_10 = null;
|
|
3013
3059
|
}
|
|
@@ -3015,9 +3061,9 @@
|
|
|
3015
3061
|
}
|
|
3016
3062
|
var timeoutTime = tmp_9;
|
|
3017
3063
|
var tmp_11 = map.h2('rulesPreset');
|
|
3018
|
-
var
|
|
3064
|
+
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
3019
3065
|
var tmp_12;
|
|
3020
|
-
if (
|
|
3066
|
+
if (tmp6_safe_receiver == null) {
|
|
3021
3067
|
tmp_12 = null;
|
|
3022
3068
|
} else {
|
|
3023
3069
|
// Inline function 'kotlin.collections.onEach' call
|
|
@@ -3025,18 +3071,18 @@
|
|
|
3025
3071
|
// Inline function 'kotlin.contracts.contract' call
|
|
3026
3072
|
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3027
3073
|
var inductionVariable_2 = 0;
|
|
3028
|
-
var last_2 =
|
|
3074
|
+
var last_2 = tmp6_safe_receiver.length;
|
|
3029
3075
|
while (inductionVariable_2 < last_2) {
|
|
3030
|
-
var element_2 =
|
|
3076
|
+
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
3031
3077
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
3032
3078
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3033
3079
|
validateRulesSetType($this, element_2);
|
|
3034
3080
|
}
|
|
3035
|
-
tmp_12 =
|
|
3081
|
+
tmp_12 = tmp6_safe_receiver;
|
|
3036
3082
|
}
|
|
3037
|
-
var
|
|
3083
|
+
var tmp7_safe_receiver = tmp_12;
|
|
3038
3084
|
var tmp_13;
|
|
3039
|
-
if (
|
|
3085
|
+
if (tmp7_safe_receiver == null) {
|
|
3040
3086
|
tmp_13 = null;
|
|
3041
3087
|
} else {
|
|
3042
3088
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -3045,8 +3091,8 @@
|
|
|
3045
3091
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3046
3092
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3047
3093
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
3048
|
-
if (!(
|
|
3049
|
-
tmp_14 =
|
|
3094
|
+
if (!(tmp7_safe_receiver.length === 0)) {
|
|
3095
|
+
tmp_14 = tmp7_safe_receiver;
|
|
3050
3096
|
} else {
|
|
3051
3097
|
tmp_14 = null;
|
|
3052
3098
|
}
|
|
@@ -3175,7 +3221,7 @@
|
|
|
3175
3221
|
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
3176
3222
|
var state = store.state;
|
|
3177
3223
|
var tmp;
|
|
3178
|
-
if (!state.
|
|
3224
|
+
if (!state.l6w()) {
|
|
3179
3225
|
tmp = true;
|
|
3180
3226
|
} else {
|
|
3181
3227
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3184,7 +3230,7 @@
|
|
|
3184
3230
|
if (tmp) {
|
|
3185
3231
|
return playerIds;
|
|
3186
3232
|
}
|
|
3187
|
-
var players = state.
|
|
3233
|
+
var players = state.k6w().players;
|
|
3188
3234
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3189
3235
|
// Inline function 'kotlin.collections.map' call
|
|
3190
3236
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3206,7 +3252,7 @@
|
|
|
3206
3252
|
while (tmp0_iterator.k()) {
|
|
3207
3253
|
var element = tmp0_iterator.l();
|
|
3208
3254
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3209
|
-
if (element.
|
|
3255
|
+
if (element.m72_1.g6g().x6e_1.isLive) {
|
|
3210
3256
|
destination_0.e(element);
|
|
3211
3257
|
}
|
|
3212
3258
|
}
|
|
@@ -3224,7 +3270,7 @@
|
|
|
3224
3270
|
protoOf(GameHelperImpl).filterLiveDuringGamePlayers = function (store, playerIds) {
|
|
3225
3271
|
var state = store.state;
|
|
3226
3272
|
var tmp;
|
|
3227
|
-
if (!state.
|
|
3273
|
+
if (!state.l6w()) {
|
|
3228
3274
|
tmp = true;
|
|
3229
3275
|
} else {
|
|
3230
3276
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3233,7 +3279,7 @@
|
|
|
3233
3279
|
if (tmp) {
|
|
3234
3280
|
return playerIds;
|
|
3235
3281
|
}
|
|
3236
|
-
var players = state.
|
|
3282
|
+
var players = state.k6w().players;
|
|
3237
3283
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3238
3284
|
// Inline function 'kotlin.collections.map' call
|
|
3239
3285
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3255,7 +3301,7 @@
|
|
|
3255
3301
|
while (tmp0_iterator.k()) {
|
|
3256
3302
|
var element = tmp0_iterator.l();
|
|
3257
3303
|
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3258
|
-
if (element.
|
|
3304
|
+
if (element.m72_1.g6g().i6f(state.k6w().gameDuration)) {
|
|
3259
3305
|
destination_0.e(element);
|
|
3260
3306
|
}
|
|
3261
3307
|
}
|
|
@@ -3273,7 +3319,7 @@
|
|
|
3273
3319
|
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
3274
3320
|
var state = store.state;
|
|
3275
3321
|
var tmp;
|
|
3276
|
-
if (!state.
|
|
3322
|
+
if (!state.l6w()) {
|
|
3277
3323
|
tmp = true;
|
|
3278
3324
|
} else {
|
|
3279
3325
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3282,7 +3328,7 @@
|
|
|
3282
3328
|
if (tmp) {
|
|
3283
3329
|
return playerIds;
|
|
3284
3330
|
}
|
|
3285
|
-
var players = state.
|
|
3331
|
+
var players = state.k6w().players;
|
|
3286
3332
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3287
3333
|
// Inline function 'kotlin.collections.map' call
|
|
3288
3334
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3304,7 +3350,7 @@
|
|
|
3304
3350
|
while (tmp0_iterator.k()) {
|
|
3305
3351
|
var element = tmp0_iterator.l();
|
|
3306
3352
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3307
|
-
if (element.
|
|
3353
|
+
if (element.l72_1.isBot) {
|
|
3308
3354
|
destination_0.e(element);
|
|
3309
3355
|
}
|
|
3310
3356
|
}
|
|
@@ -3322,7 +3368,7 @@
|
|
|
3322
3368
|
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
3323
3369
|
var state = store.state;
|
|
3324
3370
|
var tmp;
|
|
3325
|
-
if (!state.
|
|
3371
|
+
if (!state.l6w()) {
|
|
3326
3372
|
tmp = true;
|
|
3327
3373
|
} else {
|
|
3328
3374
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3331,7 +3377,7 @@
|
|
|
3331
3377
|
if (tmp) {
|
|
3332
3378
|
return playerIds;
|
|
3333
3379
|
}
|
|
3334
|
-
var players = state.
|
|
3380
|
+
var players = state.k6w().players;
|
|
3335
3381
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3336
3382
|
// Inline function 'kotlin.collections.map' call
|
|
3337
3383
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3353,7 +3399,7 @@
|
|
|
3353
3399
|
while (tmp0_iterator.k()) {
|
|
3354
3400
|
var element = tmp0_iterator.l();
|
|
3355
3401
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3356
|
-
if (!element.
|
|
3402
|
+
if (!element.l72_1.isBot) {
|
|
3357
3403
|
destination_0.e(element);
|
|
3358
3404
|
}
|
|
3359
3405
|
}
|
|
@@ -3370,21 +3416,21 @@
|
|
|
3370
3416
|
};
|
|
3371
3417
|
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
3372
3418
|
var state = store.state;
|
|
3373
|
-
if (!state.
|
|
3419
|
+
if (!state.l6w()) {
|
|
3374
3420
|
return null;
|
|
3375
3421
|
}
|
|
3376
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.
|
|
3422
|
+
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.k6w().players, playerId).l72_1);
|
|
3377
3423
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3378
3424
|
};
|
|
3379
3425
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
3380
3426
|
var state = store.state;
|
|
3381
|
-
if (!state.
|
|
3427
|
+
if (!state.l6w()) {
|
|
3382
3428
|
return null;
|
|
3383
3429
|
}
|
|
3384
3430
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3385
3431
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3386
3432
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3387
|
-
var this_0 = state.
|
|
3433
|
+
var this_0 = state.k6w().players;
|
|
3388
3434
|
var destination = ArrayList_init_$Create$();
|
|
3389
3435
|
// Inline function 'kotlin.collections.forEach' call
|
|
3390
3436
|
var tmp0_iterator = this_0.j();
|
|
@@ -3392,14 +3438,14 @@
|
|
|
3392
3438
|
var element = tmp0_iterator.l();
|
|
3393
3439
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3394
3440
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
3395
|
-
var
|
|
3396
|
-
var
|
|
3397
|
-
if (
|
|
3441
|
+
var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.l72_1);
|
|
3442
|
+
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3443
|
+
if (tmp0_safe_receiver_0 == null)
|
|
3398
3444
|
null;
|
|
3399
3445
|
else {
|
|
3400
3446
|
// Inline function 'kotlin.let' call
|
|
3401
3447
|
// Inline function 'kotlin.contracts.contract' call
|
|
3402
|
-
destination.e(
|
|
3448
|
+
destination.e(tmp0_safe_receiver_0);
|
|
3403
3449
|
}
|
|
3404
3450
|
}
|
|
3405
3451
|
return copyToArray(destination);
|
|
@@ -3467,41 +3513,41 @@
|
|
|
3467
3513
|
var map = mapOfObject(rules);
|
|
3468
3514
|
var tmp = map.h2('needToPutHigherTrump');
|
|
3469
3515
|
var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : null;
|
|
3470
|
-
var
|
|
3516
|
+
var tmp29_needToPutHigherTrump = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
3471
3517
|
var tmp_0 = map.h2('playerWhoChooseSuitGoFirst');
|
|
3472
3518
|
var tmp1_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : null;
|
|
3473
|
-
var
|
|
3519
|
+
var tmp30_playerWhoChooseSuitGoFirst = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
3474
3520
|
var tmp_1 = map.h2('winnerShuffleCards');
|
|
3475
3521
|
var tmp2_elvis_lhs = (!(tmp_1 == null) ? typeof tmp_1 === 'boolean' : false) ? tmp_1 : null;
|
|
3476
|
-
var
|
|
3522
|
+
var tmp31_winnerShuffleCards = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
3477
3523
|
var tmp_2 = map.h2('playWithoutLiabilities');
|
|
3478
3524
|
var tmp3_elvis_lhs = (!(tmp_2 == null) ? typeof tmp_2 === 'boolean' : false) ? tmp_2 : null;
|
|
3479
|
-
var
|
|
3525
|
+
var tmp32_playWithoutLiabilities = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
3480
3526
|
var tmp_3 = map.h2('trumpCardGoToPlayerWhoShuffleCards');
|
|
3481
3527
|
var tmp4_elvis_lhs = (!(tmp_3 == null) ? typeof tmp_3 === 'boolean' : false) ? tmp_3 : null;
|
|
3482
|
-
var
|
|
3528
|
+
var tmp33_trumpCardGoToPlayerWhoShuffleCards = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
3483
3529
|
var tmp_4 = map.h2('dealerCounterClockwise');
|
|
3484
3530
|
var tmp5_elvis_lhs = (!(tmp_4 == null) ? typeof tmp_4 === 'boolean' : false) ? tmp_4 : null;
|
|
3485
|
-
var
|
|
3531
|
+
var tmp34_dealerCounterClockwise = tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs;
|
|
3486
3532
|
var tmp_5 = map.h2('dealerInitialCardsCount');
|
|
3487
3533
|
var tmp6_elvis_lhs = (!(tmp_5 == null) ? typeof tmp_5 === 'number' : false) ? tmp_5 : null;
|
|
3488
|
-
var
|
|
3534
|
+
var tmp35_dealerInitialCardsCount = tmp6_elvis_lhs == null ? 6 : tmp6_elvis_lhs;
|
|
3489
3535
|
var tmp_6 = map.h2('dealerFinalCardsCount');
|
|
3490
3536
|
var tmp7_elvis_lhs = (!(tmp_6 == null) ? typeof tmp_6 === 'number' : false) ? tmp_6 : null;
|
|
3491
|
-
var
|
|
3537
|
+
var tmp36_dealerFinalCardsCount = tmp7_elvis_lhs == null ? 9 : tmp7_elvis_lhs;
|
|
3492
3538
|
var tmp_7 = map.h2('contractTypes');
|
|
3493
|
-
var
|
|
3539
|
+
var tmp8_safe_receiver = (!(tmp_7 == null) ? isArray(tmp_7) : false) ? tmp_7 : null;
|
|
3494
3540
|
var tmp_8;
|
|
3495
|
-
if (
|
|
3541
|
+
if (tmp8_safe_receiver == null) {
|
|
3496
3542
|
tmp_8 = null;
|
|
3497
3543
|
} else {
|
|
3498
3544
|
// Inline function 'kotlin.collections.map' call
|
|
3499
3545
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3500
|
-
var destination = ArrayList_init_$Create$_0(
|
|
3546
|
+
var destination = ArrayList_init_$Create$_0(tmp8_safe_receiver.length);
|
|
3501
3547
|
var inductionVariable = 0;
|
|
3502
|
-
var last =
|
|
3548
|
+
var last = tmp8_safe_receiver.length;
|
|
3503
3549
|
while (inductionVariable < last) {
|
|
3504
|
-
var item =
|
|
3550
|
+
var item = tmp8_safe_receiver[inductionVariable];
|
|
3505
3551
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3506
3552
|
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
3507
3553
|
var tmp$ret$0 = toRoundContractType(item);
|
|
@@ -3509,37 +3555,37 @@
|
|
|
3509
3555
|
}
|
|
3510
3556
|
tmp_8 = destination;
|
|
3511
3557
|
}
|
|
3512
|
-
var
|
|
3558
|
+
var tmp9_safe_receiver = tmp_8;
|
|
3513
3559
|
var tmp_9;
|
|
3514
|
-
if (
|
|
3560
|
+
if (tmp9_safe_receiver == null) {
|
|
3515
3561
|
tmp_9 = null;
|
|
3516
3562
|
} else {
|
|
3517
3563
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3518
|
-
tmp_9 = copyToArray(
|
|
3564
|
+
tmp_9 = copyToArray(tmp9_safe_receiver);
|
|
3519
3565
|
}
|
|
3520
|
-
var
|
|
3566
|
+
var tmp10_elvis_lhs = tmp_9;
|
|
3521
3567
|
var tmp_10;
|
|
3522
|
-
if (
|
|
3568
|
+
if (tmp10_elvis_lhs == null) {
|
|
3523
3569
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3524
3570
|
var this_0 = Companion_getInstance_0().debertzContractTypes;
|
|
3525
3571
|
tmp_10 = copyToArray(this_0);
|
|
3526
3572
|
} else {
|
|
3527
|
-
tmp_10 =
|
|
3573
|
+
tmp_10 = tmp10_elvis_lhs;
|
|
3528
3574
|
}
|
|
3529
|
-
var
|
|
3575
|
+
var tmp37_contractTypes = tmp_10;
|
|
3530
3576
|
var tmp_11 = map.h2('bidTypes');
|
|
3531
|
-
var
|
|
3577
|
+
var tmp11_safe_receiver = (!(tmp_11 == null) ? isArray(tmp_11) : false) ? tmp_11 : null;
|
|
3532
3578
|
var tmp_12;
|
|
3533
|
-
if (
|
|
3579
|
+
if (tmp11_safe_receiver == null) {
|
|
3534
3580
|
tmp_12 = null;
|
|
3535
3581
|
} else {
|
|
3536
3582
|
// Inline function 'kotlin.collections.map' call
|
|
3537
3583
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3538
|
-
var destination_0 = ArrayList_init_$Create$_0(
|
|
3584
|
+
var destination_0 = ArrayList_init_$Create$_0(tmp11_safe_receiver.length);
|
|
3539
3585
|
var inductionVariable_0 = 0;
|
|
3540
|
-
var last_0 =
|
|
3586
|
+
var last_0 = tmp11_safe_receiver.length;
|
|
3541
3587
|
while (inductionVariable_0 < last_0) {
|
|
3542
|
-
var item_0 =
|
|
3588
|
+
var item_0 = tmp11_safe_receiver[inductionVariable_0];
|
|
3543
3589
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3544
3590
|
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
3545
3591
|
var tmp$ret$5 = toBidType(item_0);
|
|
@@ -3547,36 +3593,36 @@
|
|
|
3547
3593
|
}
|
|
3548
3594
|
tmp_12 = destination_0;
|
|
3549
3595
|
}
|
|
3550
|
-
var
|
|
3596
|
+
var tmp12_safe_receiver = tmp_12;
|
|
3551
3597
|
var tmp_13;
|
|
3552
|
-
if (
|
|
3598
|
+
if (tmp12_safe_receiver == null) {
|
|
3553
3599
|
tmp_13 = null;
|
|
3554
3600
|
} else {
|
|
3555
3601
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3556
|
-
tmp_13 = copyToArray(
|
|
3602
|
+
tmp_13 = copyToArray(tmp12_safe_receiver);
|
|
3557
3603
|
}
|
|
3558
|
-
var
|
|
3604
|
+
var tmp13_elvis_lhs = tmp_13;
|
|
3559
3605
|
var tmp_14;
|
|
3560
|
-
if (
|
|
3606
|
+
if (tmp13_elvis_lhs == null) {
|
|
3561
3607
|
// Inline function 'kotlin.emptyArray' call
|
|
3562
3608
|
tmp_14 = [];
|
|
3563
3609
|
} else {
|
|
3564
|
-
tmp_14 =
|
|
3610
|
+
tmp_14 = tmp13_elvis_lhs;
|
|
3565
3611
|
}
|
|
3566
|
-
var
|
|
3612
|
+
var tmp38_bidTypes = tmp_14;
|
|
3567
3613
|
var tmp_15 = map.h2('combinationsWithFirstCard');
|
|
3568
|
-
var
|
|
3614
|
+
var tmp14_safe_receiver = (!(tmp_15 == null) ? isArray(tmp_15) : false) ? tmp_15 : null;
|
|
3569
3615
|
var tmp_16;
|
|
3570
|
-
if (
|
|
3616
|
+
if (tmp14_safe_receiver == null) {
|
|
3571
3617
|
tmp_16 = null;
|
|
3572
3618
|
} else {
|
|
3573
3619
|
// Inline function 'kotlin.collections.map' call
|
|
3574
3620
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3575
|
-
var destination_1 = ArrayList_init_$Create$_0(
|
|
3621
|
+
var destination_1 = ArrayList_init_$Create$_0(tmp14_safe_receiver.length);
|
|
3576
3622
|
var inductionVariable_1 = 0;
|
|
3577
|
-
var last_1 =
|
|
3623
|
+
var last_1 = tmp14_safe_receiver.length;
|
|
3578
3624
|
while (inductionVariable_1 < last_1) {
|
|
3579
|
-
var item_1 =
|
|
3625
|
+
var item_1 = tmp14_safe_receiver[inductionVariable_1];
|
|
3580
3626
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
3581
3627
|
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
3582
3628
|
var tmp$ret$10 = mapToCombinationType(item_1);
|
|
@@ -3584,75 +3630,75 @@
|
|
|
3584
3630
|
}
|
|
3585
3631
|
tmp_16 = destination_1;
|
|
3586
3632
|
}
|
|
3587
|
-
var
|
|
3633
|
+
var tmp15_safe_receiver = tmp_16;
|
|
3588
3634
|
var tmp_17;
|
|
3589
|
-
if (
|
|
3635
|
+
if (tmp15_safe_receiver == null) {
|
|
3590
3636
|
tmp_17 = null;
|
|
3591
3637
|
} else {
|
|
3592
3638
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3593
|
-
tmp_17 = copyToArray(
|
|
3639
|
+
tmp_17 = copyToArray(tmp15_safe_receiver);
|
|
3594
3640
|
}
|
|
3595
|
-
var
|
|
3641
|
+
var tmp16_elvis_lhs = tmp_17;
|
|
3596
3642
|
var tmp_18;
|
|
3597
|
-
if (
|
|
3643
|
+
if (tmp16_elvis_lhs == null) {
|
|
3598
3644
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3599
3645
|
var this_1 = Companion_getInstance_1().debertzWithFirstCardCombinations;
|
|
3600
3646
|
tmp_18 = copyToArray(this_1);
|
|
3601
3647
|
} else {
|
|
3602
|
-
tmp_18 =
|
|
3648
|
+
tmp_18 = tmp16_elvis_lhs;
|
|
3603
3649
|
}
|
|
3604
|
-
var
|
|
3650
|
+
var tmp39_combinationsWithFirstCard = tmp_18;
|
|
3605
3651
|
var tmp_19 = map.h2('protectBella');
|
|
3606
|
-
var
|
|
3607
|
-
var
|
|
3652
|
+
var tmp17_elvis_lhs = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
|
|
3653
|
+
var tmp40_protectBella = tmp17_elvis_lhs == null ? false : tmp17_elvis_lhs;
|
|
3608
3654
|
var tmp_20 = map.h2('oneTryToProtectBella');
|
|
3609
|
-
var
|
|
3610
|
-
var
|
|
3655
|
+
var tmp18_elvis_lhs = (!(tmp_20 == null) ? typeof tmp_20 === 'boolean' : false) ? tmp_20 : null;
|
|
3656
|
+
var tmp41_oneTryToProtectBella = tmp18_elvis_lhs == null ? false : tmp18_elvis_lhs;
|
|
3611
3657
|
var tmp_21 = map.h2('enableFourSevensCombination');
|
|
3612
|
-
var
|
|
3613
|
-
var
|
|
3658
|
+
var tmp19_elvis_lhs = (!(tmp_21 == null) ? typeof tmp_21 === 'boolean' : false) ? tmp_21 : null;
|
|
3659
|
+
var tmp42_enableFourSevensCombination = tmp19_elvis_lhs == null ? false : tmp19_elvis_lhs;
|
|
3614
3660
|
var tmp_22 = map.h2('enableTrumpSevenCombination');
|
|
3615
|
-
var
|
|
3616
|
-
var
|
|
3661
|
+
var tmp20_elvis_lhs = (!(tmp_22 == null) ? typeof tmp_22 === 'boolean' : false) ? tmp_22 : null;
|
|
3662
|
+
var tmp43_enableTrumpSevenCombination = tmp20_elvis_lhs == null ? false : tmp20_elvis_lhs;
|
|
3617
3663
|
var tmp_23 = map.h2('enableTrumpSevenCombinationAfterDistribution');
|
|
3618
|
-
var
|
|
3619
|
-
var
|
|
3664
|
+
var tmp21_elvis_lhs = (!(tmp_23 == null) ? typeof tmp_23 === 'boolean' : false) ? tmp_23 : null;
|
|
3665
|
+
var tmp44_enableTrumpSevenCombinationAfterDistribution = tmp21_elvis_lhs == null ? false : tmp21_elvis_lhs;
|
|
3620
3666
|
var tmp_24 = map.h2('checkTrumpCombination');
|
|
3621
|
-
var
|
|
3622
|
-
var
|
|
3667
|
+
var tmp22_elvis_lhs = (!(tmp_24 == null) ? typeof tmp_24 === 'boolean' : false) ? tmp_24 : null;
|
|
3668
|
+
var tmp45_checkTrumpCombination = tmp22_elvis_lhs == null ? false : tmp22_elvis_lhs;
|
|
3623
3669
|
var tmp_25 = map.h2('checkOnlyTrumpDebertz');
|
|
3624
|
-
var
|
|
3625
|
-
var
|
|
3670
|
+
var tmp23_elvis_lhs = (!(tmp_25 == null) ? typeof tmp_25 === 'boolean' : false) ? tmp_25 : null;
|
|
3671
|
+
var tmp46_checkOnlyTrumpDebertz = tmp23_elvis_lhs == null ? false : tmp23_elvis_lhs;
|
|
3626
3672
|
var tmp_26 = map.h2('distributePoints');
|
|
3627
|
-
var
|
|
3628
|
-
var
|
|
3673
|
+
var tmp24_elvis_lhs = (!(tmp_26 == null) ? typeof tmp_26 === 'boolean' : false) ? tmp_26 : null;
|
|
3674
|
+
var tmp47_distributePoints = tmp24_elvis_lhs == null ? false : tmp24_elvis_lhs;
|
|
3629
3675
|
var tmp_27 = map.h2('enableFineIfNoBribes');
|
|
3630
|
-
var
|
|
3631
|
-
var
|
|
3676
|
+
var tmp25_elvis_lhs = (!(tmp_27 == null) ? typeof tmp_27 === 'boolean' : false) ? tmp_27 : null;
|
|
3677
|
+
var tmp48_enableFineIfNoBribes = tmp25_elvis_lhs == null ? false : tmp25_elvis_lhs;
|
|
3632
3678
|
var tmp_28 = map.h2('fineIfNoBribes');
|
|
3633
|
-
var
|
|
3634
|
-
var
|
|
3679
|
+
var tmp26_elvis_lhs = (!(tmp_28 == null) ? typeof tmp_28 === 'number' : false) ? tmp_28 : null;
|
|
3680
|
+
var tmp49_fineIfNoBribes = tmp26_elvis_lhs == null ? 50 : tmp26_elvis_lhs;
|
|
3635
3681
|
var tmp_29 = map.h2('enableFineAfterThirdByte');
|
|
3636
|
-
var
|
|
3637
|
-
var
|
|
3682
|
+
var tmp27_elvis_lhs = (!(tmp_29 == null) ? typeof tmp_29 === 'boolean' : false) ? tmp_29 : null;
|
|
3683
|
+
var tmp50_enableFineAfterThirdFailedContract = tmp27_elvis_lhs == null ? false : tmp27_elvis_lhs;
|
|
3638
3684
|
var tmp_30 = map.h2('fineAfterThirdFailedContract');
|
|
3639
|
-
var
|
|
3640
|
-
var
|
|
3641
|
-
return new Rules(
|
|
3685
|
+
var tmp28_elvis_lhs = (!(tmp_30 == null) ? typeof tmp_30 === 'number' : false) ? tmp_30 : null;
|
|
3686
|
+
var tmp51_fineAfterThirdFailedContract = tmp28_elvis_lhs == null ? 0 : tmp28_elvis_lhs;
|
|
3687
|
+
return new Rules(tmp29_needToPutHigherTrump, tmp30_playerWhoChooseSuitGoFirst, tmp31_winnerShuffleCards, tmp32_playWithoutLiabilities, tmp33_trumpCardGoToPlayerWhoShuffleCards, tmp35_dealerInitialCardsCount, tmp36_dealerFinalCardsCount, tmp34_dealerCounterClockwise, tmp37_contractTypes, tmp38_bidTypes, tmp39_combinationsWithFirstCard, tmp40_protectBella, tmp41_oneTryToProtectBella, tmp42_enableFourSevensCombination, tmp43_enableTrumpSevenCombination, tmp44_enableTrumpSevenCombinationAfterDistribution, tmp45_checkTrumpCombination, tmp46_checkOnlyTrumpDebertz, tmp47_distributePoints, tmp50_enableFineAfterThirdFailedContract, tmp51_fineAfterThirdFailedContract, tmp48_enableFineIfNoBribes, tmp49_fineIfNoBribes);
|
|
3642
3688
|
};
|
|
3643
3689
|
protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
|
|
3644
3690
|
var map = mapOfObject(config);
|
|
3645
3691
|
var tmp = map.h2('limit');
|
|
3646
|
-
var
|
|
3692
|
+
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
3647
3693
|
var tmp_0;
|
|
3648
|
-
if (
|
|
3694
|
+
if (tmp0_safe_receiver == null) {
|
|
3649
3695
|
tmp_0 = null;
|
|
3650
3696
|
} else {
|
|
3651
3697
|
// Inline function 'kotlin.also' call
|
|
3652
3698
|
// Inline function 'kotlin.contracts.contract' call
|
|
3653
3699
|
// Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
|
|
3654
|
-
validateLimit(this,
|
|
3655
|
-
tmp_0 =
|
|
3700
|
+
validateLimit(this, tmp0_safe_receiver);
|
|
3701
|
+
tmp_0 = tmp0_safe_receiver;
|
|
3656
3702
|
}
|
|
3657
3703
|
var limit = tmp_0;
|
|
3658
3704
|
var jsObject = prepareConfigObjectInternal(this, map);
|
|
@@ -3786,42 +3832,42 @@
|
|
|
3786
3832
|
return data;
|
|
3787
3833
|
}
|
|
3788
3834
|
function getRandomAvatarData_0($this) {
|
|
3789
|
-
var avatarSetNumber = Default_getInstance().
|
|
3835
|
+
var avatarSetNumber = Default_getInstance().rg(values().length);
|
|
3790
3836
|
var avatarSet = values()[avatarSetNumber];
|
|
3791
|
-
return new AvatarData(Default_getInstance().
|
|
3837
|
+
return new AvatarData(Default_getInstance().rg(avatarSet.dd7()), avatarSet);
|
|
3792
3838
|
}
|
|
3793
3839
|
function getAvatarUrlByIndex($this, data) {
|
|
3794
3840
|
return mapToPattern($this, data);
|
|
3795
3841
|
}
|
|
3796
3842
|
function getNicknameByIndex($this, data) {
|
|
3797
|
-
return data.
|
|
3843
|
+
return data.fd7_1.gd7(data.ed7_1);
|
|
3798
3844
|
}
|
|
3799
3845
|
function mapToPattern($this, data) {
|
|
3800
|
-
return 'debertz://raspberry.games/' + data.
|
|
3846
|
+
return 'debertz://raspberry.games/' + data.fd7_1.o2_1 + '/' + data.ed7_1;
|
|
3801
3847
|
}
|
|
3802
3848
|
function Companion_2() {
|
|
3803
3849
|
Companion_instance_10 = this;
|
|
3804
|
-
this.
|
|
3850
|
+
this.hd7_1 = 'debertz://raspberry.games';
|
|
3805
3851
|
var tmp = this;
|
|
3806
3852
|
// Inline function 'kotlin.arrayOf' call
|
|
3807
3853
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3808
3854
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3809
|
-
tmp.
|
|
3855
|
+
tmp.id7_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
3810
3856
|
var tmp_0 = this;
|
|
3811
3857
|
// Inline function 'kotlin.arrayOf' call
|
|
3812
3858
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3813
3859
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3814
|
-
tmp_0.
|
|
3860
|
+
tmp_0.jd7_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
3815
3861
|
var tmp_1 = this;
|
|
3816
3862
|
// Inline function 'kotlin.arrayOf' call
|
|
3817
3863
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3818
3864
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3819
|
-
tmp_1.
|
|
3865
|
+
tmp_1.kd7_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
3820
3866
|
var tmp_2 = this;
|
|
3821
3867
|
// Inline function 'kotlin.arrayOf' call
|
|
3822
3868
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3823
3869
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3824
|
-
tmp_2.
|
|
3870
|
+
tmp_2.ld7_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
3825
3871
|
}
|
|
3826
3872
|
var Companion_instance_10;
|
|
3827
3873
|
function Companion_getInstance_5() {
|
|
@@ -3832,14 +3878,14 @@
|
|
|
3832
3878
|
function AvatarSet(name, ordinal) {
|
|
3833
3879
|
Enum.call(this, name, ordinal);
|
|
3834
3880
|
}
|
|
3835
|
-
protoOf(AvatarSet).
|
|
3881
|
+
protoOf(AvatarSet).dd7 = function () {
|
|
3836
3882
|
var tmp;
|
|
3837
3883
|
switch (this.o2_1) {
|
|
3838
3884
|
case 0:
|
|
3839
|
-
tmp = Companion_getInstance_5().
|
|
3885
|
+
tmp = Companion_getInstance_5().jd7_1.length;
|
|
3840
3886
|
break;
|
|
3841
3887
|
case 1:
|
|
3842
|
-
tmp = Companion_getInstance_5().
|
|
3888
|
+
tmp = Companion_getInstance_5().ld7_1.length;
|
|
3843
3889
|
break;
|
|
3844
3890
|
default:
|
|
3845
3891
|
noWhenBranchMatchedException();
|
|
@@ -3847,14 +3893,14 @@
|
|
|
3847
3893
|
}
|
|
3848
3894
|
return tmp;
|
|
3849
3895
|
};
|
|
3850
|
-
protoOf(AvatarSet).
|
|
3896
|
+
protoOf(AvatarSet).gd7 = function (index) {
|
|
3851
3897
|
var tmp;
|
|
3852
3898
|
switch (this.o2_1) {
|
|
3853
3899
|
case 0:
|
|
3854
|
-
tmp = Companion_getInstance_5().
|
|
3900
|
+
tmp = Companion_getInstance_5().jd7_1[index];
|
|
3855
3901
|
break;
|
|
3856
3902
|
case 1:
|
|
3857
|
-
tmp = Companion_getInstance_5().
|
|
3903
|
+
tmp = Companion_getInstance_5().ld7_1[index];
|
|
3858
3904
|
break;
|
|
3859
3905
|
default:
|
|
3860
3906
|
noWhenBranchMatchedException();
|
|
@@ -3863,8 +3909,8 @@
|
|
|
3863
3909
|
return tmp;
|
|
3864
3910
|
};
|
|
3865
3911
|
function AvatarData(index, avatarSet) {
|
|
3866
|
-
this.
|
|
3867
|
-
this.
|
|
3912
|
+
this.ed7_1 = index;
|
|
3913
|
+
this.fd7_1 = avatarSet;
|
|
3868
3914
|
}
|
|
3869
3915
|
function AvatarSet_ORIGIN_getInstance() {
|
|
3870
3916
|
AvatarSet_initEntries();
|
|
@@ -3877,7 +3923,7 @@
|
|
|
3877
3923
|
function GameResourcesImpl() {
|
|
3878
3924
|
Companion_getInstance_5();
|
|
3879
3925
|
}
|
|
3880
|
-
protoOf(GameResourcesImpl).
|
|
3926
|
+
protoOf(GameResourcesImpl).ad7 = function (playerId, existingNicknames) {
|
|
3881
3927
|
var data = getRandomAvatarData(this, existingNicknames);
|
|
3882
3928
|
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
3883
3929
|
};
|
|
@@ -3915,33 +3961,33 @@
|
|
|
3915
3961
|
}
|
|
3916
3962
|
function _get_controllerLogger__nbd727($this) {
|
|
3917
3963
|
// Inline function 'kotlin.getValue' call
|
|
3918
|
-
var this_0 = $this.
|
|
3964
|
+
var this_0 = $this.td7_1;
|
|
3919
3965
|
controllerLogger$factory();
|
|
3920
3966
|
return this_0.u();
|
|
3921
3967
|
}
|
|
3922
3968
|
function _get_di__ndbzja($this) {
|
|
3923
3969
|
// Inline function 'kotlin.getValue' call
|
|
3924
|
-
var this_0 = $this.
|
|
3970
|
+
var this_0 = $this.ud7_1;
|
|
3925
3971
|
di$factory();
|
|
3926
3972
|
return this_0.u();
|
|
3927
3973
|
}
|
|
3928
3974
|
function createDI($this, combinedLogger, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
3929
3975
|
var tmp = Companion_instance_3;
|
|
3930
|
-
return tmp.
|
|
3976
|
+
return tmp.d62(VOID, GameServerEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, $this, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
3931
3977
|
}
|
|
3932
3978
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3933
3979
|
return function () {
|
|
3934
3980
|
var tmp;
|
|
3935
|
-
if (this$0.
|
|
3981
|
+
if (this$0.rd7_1 == null) {
|
|
3936
3982
|
tmp = null;
|
|
3937
3983
|
} else {
|
|
3938
3984
|
// Inline function 'kotlin.let' call
|
|
3939
3985
|
// Inline function 'kotlin.contracts.contract' call
|
|
3940
3986
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3941
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3987
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.rd7_1)]));
|
|
3942
3988
|
}
|
|
3943
|
-
var
|
|
3944
|
-
return
|
|
3989
|
+
var tmp1_elvis_lhs = tmp;
|
|
3990
|
+
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
3945
3991
|
};
|
|
3946
3992
|
}
|
|
3947
3993
|
function GameServerEngineControllerImpl$di$delegate$lambda$lambda$lambda(this$0) {
|
|
@@ -3955,38 +4001,38 @@
|
|
|
3955
4001
|
// Inline function 'org.kodein.type.generic' call
|
|
3956
4002
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3957
4003
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
3958
|
-
var tmp_0 = $this$DI.
|
|
4004
|
+
var tmp_0 = $this$DI.u61(tmp$ret$0, null, null);
|
|
3959
4005
|
// Inline function 'org.kodein.di.provider' call
|
|
3960
4006
|
var creator = GameServerEngineControllerImpl$di$delegate$lambda$lambda$lambda(this$0);
|
|
3961
|
-
var tmp_1 = $this$DI.
|
|
4007
|
+
var tmp_1 = $this$DI.x61();
|
|
3962
4008
|
// Inline function 'org.kodein.type.generic' call
|
|
3963
4009
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
3964
4010
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3965
4011
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
3966
|
-
tmp_0.
|
|
3967
|
-
$this$DI.
|
|
3968
|
-
$this$DI.
|
|
3969
|
-
$this$DI.
|
|
4012
|
+
tmp_0.s65(tmp$ret$3);
|
|
4013
|
+
$this$DI.w61(jsonModule());
|
|
4014
|
+
$this$DI.w61(serverHelpersModule());
|
|
4015
|
+
$this$DI.w61(randomOrgModule(this$0.sd7_1));
|
|
3970
4016
|
return Unit_instance;
|
|
3971
4017
|
};
|
|
3972
4018
|
}
|
|
3973
4019
|
function GameServerEngineControllerImpl$di$delegate$lambda(this$0) {
|
|
3974
4020
|
return function () {
|
|
3975
4021
|
var tmp = Companion_instance_3;
|
|
3976
|
-
return tmp.
|
|
4022
|
+
return tmp.d62(VOID, GameServerEngineControllerImpl$di$delegate$lambda$lambda(this$0));
|
|
3977
4023
|
};
|
|
3978
4024
|
}
|
|
3979
4025
|
function _no_name_provided__qut3iv_3($item) {
|
|
3980
|
-
this.
|
|
4026
|
+
this.ad8_1 = $item;
|
|
3981
4027
|
}
|
|
3982
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
4028
|
+
protoOf(_no_name_provided__qut3iv_3).h6n = function (action) {
|
|
3983
4029
|
return isInterface(action, Action);
|
|
3984
4030
|
};
|
|
3985
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3986
|
-
return this.
|
|
4031
|
+
protoOf(_no_name_provided__qut3iv_3).c9g = function (state, action) {
|
|
4032
|
+
return this.ad8_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3987
4033
|
};
|
|
3988
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3989
|
-
return this.
|
|
4034
|
+
protoOf(_no_name_provided__qut3iv_3).z6o = function (state, action) {
|
|
4035
|
+
return this.c9g((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3990
4036
|
};
|
|
3991
4037
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3992
4038
|
return function ($this$singleton) {
|
|
@@ -4006,17 +4052,17 @@
|
|
|
4006
4052
|
// Inline function 'org.kodein.type.generic' call
|
|
4007
4053
|
var tmp_0 = typeToken(createKType(getKClass(FileLoggerOutput), arrayOf([]), false));
|
|
4008
4054
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4009
|
-
var tmp_1 = $this$Module.
|
|
4055
|
+
var tmp_1 = $this$Module.u61(tmp$ret$0, null, null);
|
|
4010
4056
|
// Inline function 'org.kodein.di.singleton' call
|
|
4011
4057
|
var creator = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput);
|
|
4012
|
-
var tmp_2 = $this$Module.
|
|
4013
|
-
var tmp_3 = $this$Module.
|
|
4014
|
-
var tmp_4 = $this$Module.
|
|
4058
|
+
var tmp_2 = $this$Module.z61();
|
|
4059
|
+
var tmp_3 = $this$Module.x61();
|
|
4060
|
+
var tmp_4 = $this$Module.y61();
|
|
4015
4061
|
// Inline function 'org.kodein.type.generic' call
|
|
4016
4062
|
var tmp_5 = typeToken(createKType(getKClass(FileLoggerOutputImpl), arrayOf([]), false));
|
|
4017
4063
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4018
4064
|
var tmp$ret$3 = new Singleton(tmp_2, tmp_3, tmp_4, tmp$ret$2, null, true, creator);
|
|
4019
|
-
tmp_1.
|
|
4065
|
+
tmp_1.s65(tmp$ret$3);
|
|
4020
4066
|
tmp = Unit_instance;
|
|
4021
4067
|
}
|
|
4022
4068
|
var tmp_6;
|
|
@@ -4025,17 +4071,17 @@
|
|
|
4025
4071
|
// Inline function 'org.kodein.type.generic' call
|
|
4026
4072
|
var tmp_7 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4027
4073
|
var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
4028
|
-
var tmp_8 = $this$Module.
|
|
4074
|
+
var tmp_8 = $this$Module.u61(tmp$ret$4, null, null);
|
|
4029
4075
|
// Inline function 'org.kodein.di.singleton' call
|
|
4030
4076
|
var creator_0 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda_0($callbackWrapperLoggerOutput);
|
|
4031
|
-
var tmp_9 = $this$Module.
|
|
4032
|
-
var tmp_10 = $this$Module.
|
|
4033
|
-
var tmp_11 = $this$Module.
|
|
4077
|
+
var tmp_9 = $this$Module.z61();
|
|
4078
|
+
var tmp_10 = $this$Module.x61();
|
|
4079
|
+
var tmp_11 = $this$Module.y61();
|
|
4034
4080
|
// Inline function 'org.kodein.type.generic' call
|
|
4035
4081
|
var tmp_12 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4036
4082
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
4037
4083
|
var tmp$ret$7 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$6, null, true, creator_0);
|
|
4038
|
-
tmp_8.
|
|
4084
|
+
tmp_8.s65(tmp$ret$7);
|
|
4039
4085
|
tmp_6 = Unit_instance;
|
|
4040
4086
|
}
|
|
4041
4087
|
return Unit_instance;
|
|
@@ -4043,11 +4089,11 @@
|
|
|
4043
4089
|
}
|
|
4044
4090
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4045
4091
|
return function (it) {
|
|
4046
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4092
|
+
var tmp0_elvis_lhs = Companion_instance_4.z9k(it);
|
|
4047
4093
|
var tmp;
|
|
4048
4094
|
if (tmp0_elvis_lhs == null) {
|
|
4049
|
-
var
|
|
4050
|
-
tmp =
|
|
4095
|
+
var tmp1_safe_receiver = $gameServer.d6e().i6v_1;
|
|
4096
|
+
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
4051
4097
|
} else {
|
|
4052
4098
|
tmp = tmp0_elvis_lhs;
|
|
4053
4099
|
}
|
|
@@ -4056,11 +4102,11 @@
|
|
|
4056
4102
|
}
|
|
4057
4103
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4058
4104
|
return function (it) {
|
|
4059
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4105
|
+
var tmp0_elvis_lhs = Companion_instance_5.k9j(it);
|
|
4060
4106
|
var tmp;
|
|
4061
4107
|
if (tmp0_elvis_lhs == null) {
|
|
4062
|
-
var
|
|
4063
|
-
tmp =
|
|
4108
|
+
var tmp1_safe_receiver = $gameServer.d6e().i6v_1;
|
|
4109
|
+
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
4064
4110
|
} else {
|
|
4065
4111
|
tmp = tmp0_elvis_lhs;
|
|
4066
4112
|
}
|
|
@@ -4069,105 +4115,105 @@
|
|
|
4069
4115
|
}
|
|
4070
4116
|
function GameServerEngineControllerImpl$createDI$lambda($combinedLogger, $externalModule, this$0, $coreConfig, $serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares) {
|
|
4071
4117
|
return function ($this$DI) {
|
|
4072
|
-
$this$DI.
|
|
4073
|
-
var
|
|
4074
|
-
if (
|
|
4118
|
+
$this$DI.w61(combinedLoggerModule($combinedLogger));
|
|
4119
|
+
var tmp0_safe_receiver = $externalModule;
|
|
4120
|
+
if (tmp0_safe_receiver == null)
|
|
4075
4121
|
null;
|
|
4076
4122
|
else {
|
|
4077
4123
|
// Inline function 'kotlin.let' call
|
|
4078
4124
|
// Inline function 'kotlin.contracts.contract' call
|
|
4079
|
-
$this$DI.
|
|
4125
|
+
$this$DI.w61(tmp0_safe_receiver);
|
|
4080
4126
|
}
|
|
4081
|
-
$this$DI.
|
|
4082
|
-
$this$DI.
|
|
4083
|
-
$this$DI.
|
|
4127
|
+
$this$DI.w61(dealerModule(this$0.randomPoolProvider, this$0.sd7_1));
|
|
4128
|
+
$this$DI.w61(coreModule($coreConfig));
|
|
4129
|
+
$this$DI.w61(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4084
4130
|
return Unit_instance;
|
|
4085
4131
|
};
|
|
4086
4132
|
}
|
|
4087
4133
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4088
4134
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4089
4135
|
production = production === VOID ? true : production;
|
|
4090
|
-
this.
|
|
4091
|
-
this.
|
|
4092
|
-
AppEnvironment_getInstance().
|
|
4136
|
+
this.rd7_1 = loggerCallback;
|
|
4137
|
+
this.sd7_1 = randomOrgConfig;
|
|
4138
|
+
AppEnvironment_getInstance().q6u(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4093
4139
|
var tmp = this;
|
|
4094
|
-
tmp.
|
|
4140
|
+
tmp.td7_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4095
4141
|
var tmp_0 = this;
|
|
4096
|
-
tmp_0.
|
|
4142
|
+
tmp_0.ud7_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4097
4143
|
var tmp_1 = this;
|
|
4098
4144
|
// Inline function 'org.kodein.di.instance' call
|
|
4099
4145
|
var this_0 = _get_di__ndbzja(this);
|
|
4100
4146
|
// Inline function 'org.kodein.type.generic' call
|
|
4101
4147
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4102
4148
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4103
|
-
tmp_1.
|
|
4149
|
+
tmp_1.vd7_1 = Instance(this_0, tmp$ret$0, null).p67(this, parser$factory());
|
|
4104
4150
|
var tmp_3 = this;
|
|
4105
4151
|
// Inline function 'org.kodein.di.instance' call
|
|
4106
4152
|
var this_1 = _get_di__ndbzja(this);
|
|
4107
4153
|
// Inline function 'org.kodein.type.generic' call
|
|
4108
4154
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4109
4155
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4110
|
-
tmp_3.
|
|
4156
|
+
tmp_3.wd7_1 = Instance(this_1, tmp$ret$2, null).p67(this, helper$factory());
|
|
4111
4157
|
var tmp_5 = this;
|
|
4112
4158
|
// Inline function 'org.kodein.di.instance' call
|
|
4113
4159
|
var this_2 = _get_di__ndbzja(this);
|
|
4114
4160
|
// Inline function 'org.kodein.type.generic' call
|
|
4115
4161
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4116
4162
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4117
|
-
tmp_5.
|
|
4163
|
+
tmp_5.xd7_1 = Instance(this_2, tmp$ret$4, null).p67(this, resources$factory());
|
|
4118
4164
|
var tmp_7 = this;
|
|
4119
4165
|
// Inline function 'org.kodein.di.instance' call
|
|
4120
4166
|
var this_3 = _get_di__ndbzja(this);
|
|
4121
4167
|
// Inline function 'org.kodein.type.generic' call
|
|
4122
4168
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4123
4169
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4124
|
-
tmp_7.
|
|
4170
|
+
tmp_7.yd7_1 = Instance(this_3, tmp$ret$6, null).p67(this, test$factory());
|
|
4125
4171
|
var tmp_9 = this;
|
|
4126
4172
|
// Inline function 'org.kodein.di.instance' call
|
|
4127
4173
|
var this_4 = _get_di__ndbzja(this);
|
|
4128
4174
|
// Inline function 'org.kodein.type.generic' call
|
|
4129
4175
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4130
4176
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4131
|
-
tmp_9.
|
|
4177
|
+
tmp_9.zd7_1 = Instance(this_4, tmp$ret$8, null).p67(this, randomPoolProvider$factory());
|
|
4132
4178
|
}
|
|
4133
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4179
|
+
protoOf(GameServerEngineControllerImpl).pcw = function () {
|
|
4134
4180
|
// Inline function 'kotlin.getValue' call
|
|
4135
|
-
var this_0 = this.
|
|
4181
|
+
var this_0 = this.vd7_1;
|
|
4136
4182
|
parser$factory_0();
|
|
4137
4183
|
return this_0.u();
|
|
4138
4184
|
};
|
|
4139
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4185
|
+
protoOf(GameServerEngineControllerImpl).nd7 = function () {
|
|
4140
4186
|
// Inline function 'kotlin.getValue' call
|
|
4141
|
-
var this_0 = this.
|
|
4187
|
+
var this_0 = this.wd7_1;
|
|
4142
4188
|
helper$factory_0();
|
|
4143
4189
|
return this_0.u();
|
|
4144
4190
|
};
|
|
4145
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4191
|
+
protoOf(GameServerEngineControllerImpl).od7 = function () {
|
|
4146
4192
|
// Inline function 'kotlin.getValue' call
|
|
4147
|
-
var this_0 = this.
|
|
4193
|
+
var this_0 = this.xd7_1;
|
|
4148
4194
|
resources$factory_0();
|
|
4149
4195
|
return this_0.u();
|
|
4150
4196
|
};
|
|
4151
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4197
|
+
protoOf(GameServerEngineControllerImpl).md7 = function () {
|
|
4152
4198
|
// Inline function 'kotlin.getValue' call
|
|
4153
|
-
var this_0 = this.
|
|
4199
|
+
var this_0 = this.yd7_1;
|
|
4154
4200
|
test$factory_0();
|
|
4155
4201
|
return this_0.u();
|
|
4156
4202
|
};
|
|
4157
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4203
|
+
protoOf(GameServerEngineControllerImpl).pd7 = function () {
|
|
4158
4204
|
// Inline function 'kotlin.getValue' call
|
|
4159
|
-
var this_0 = this.
|
|
4205
|
+
var this_0 = this.zd7_1;
|
|
4160
4206
|
randomPoolProvider$factory_0();
|
|
4161
4207
|
return this_0.u();
|
|
4162
4208
|
};
|
|
4163
4209
|
protoOf(GameServerEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
4164
|
-
Logger_getInstance().
|
|
4210
|
+
Logger_getInstance().fn_1 = enabled;
|
|
4165
4211
|
};
|
|
4166
4212
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4167
4213
|
return this.createGameEngineWithLogic();
|
|
4168
4214
|
};
|
|
4169
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4170
|
-
var combinedLogger = Companion_instance_6.
|
|
4215
|
+
protoOf(GameServerEngineControllerImpl).qd7 = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4216
|
+
var combinedLogger = Companion_instance_6.tm();
|
|
4171
4217
|
var tmp;
|
|
4172
4218
|
if (coreConfig.fileLogsEnabled) {
|
|
4173
4219
|
tmp = new FileLoggerOutputImpl();
|
|
@@ -4176,13 +4222,13 @@
|
|
|
4176
4222
|
}
|
|
4177
4223
|
var fileLoggerOutput = tmp;
|
|
4178
4224
|
var tmp_0;
|
|
4179
|
-
if (!(this.
|
|
4180
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4225
|
+
if (!(this.rd7_1 == null)) {
|
|
4226
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.rd7_1));
|
|
4181
4227
|
} else {
|
|
4182
4228
|
tmp_0 = null;
|
|
4183
4229
|
}
|
|
4184
4230
|
var callbackWrapperLoggerOutput = tmp_0;
|
|
4185
|
-
var
|
|
4231
|
+
var tmp0_botConfig = new EngineBotConfig(VOID, VOID, VOID, false);
|
|
4186
4232
|
// Inline function 'kotlin.collections.map' call
|
|
4187
4233
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4188
4234
|
var destination = ArrayList_init_$Create$_0(reducers.length);
|
|
@@ -4196,7 +4242,7 @@
|
|
|
4196
4242
|
var tmp$ret$1 = new _no_name_provided__qut3iv_3(item);
|
|
4197
4243
|
destination.e(tmp$ret$1);
|
|
4198
4244
|
}
|
|
4199
|
-
var
|
|
4245
|
+
var tmp1_externalReducers = toList_0(destination);
|
|
4200
4246
|
// Inline function 'kotlin.collections.map' call
|
|
4201
4247
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4202
4248
|
var destination_0 = ArrayList_init_$Create$_0(middlewares.length);
|
|
@@ -4209,24 +4255,24 @@
|
|
|
4209
4255
|
var tmp$ret$4 = middleware(item_0);
|
|
4210
4256
|
destination_0.e(tmp$ret$4);
|
|
4211
4257
|
}
|
|
4212
|
-
var
|
|
4213
|
-
var
|
|
4214
|
-
var di = createDI(this, combinedLogger, coreConfig, serverConfig, logicConfig,
|
|
4258
|
+
var tmp2_externalMiddlewares = toList_0(destination_0);
|
|
4259
|
+
var tmp3_externalModule = Module_init_$Create$('External Module', VOID, VOID, GameServerEngineControllerImpl$createGameEngineWithLogic$lambda(fileLoggerOutput, callbackWrapperLoggerOutput));
|
|
4260
|
+
var di = createDI(this, combinedLogger, coreConfig, serverConfig, logicConfig, tmp0_botConfig, dealerConfig, tmp1_externalReducers, tmp2_externalMiddlewares, tmp3_externalModule);
|
|
4215
4261
|
// Inline function 'org.kodein.di.instance' call
|
|
4216
|
-
var tmp_1 = get_direct(di).
|
|
4262
|
+
var tmp_1 = get_direct(di).h63();
|
|
4217
4263
|
// Inline function 'org.kodein.type.generic' call
|
|
4218
4264
|
var tmp_2 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
4219
4265
|
var tmp$ret$7 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4220
|
-
var gameServer = tmp_1.
|
|
4266
|
+
var gameServer = tmp_1.g63(tmp$ret$7, null);
|
|
4221
4267
|
if (!(fileLoggerOutput == null)) {
|
|
4222
4268
|
var tmp_3 = fileLoggerOutput;
|
|
4223
|
-
tmp_3.
|
|
4224
|
-
combinedLogger.
|
|
4269
|
+
tmp_3.o9k_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4270
|
+
combinedLogger.vm(fileLoggerOutput);
|
|
4225
4271
|
}
|
|
4226
4272
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4227
4273
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4228
|
-
tmp_4.
|
|
4229
|
-
combinedLogger.
|
|
4274
|
+
tmp_4.m9j_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4275
|
+
combinedLogger.vm(callbackWrapperLoggerOutput);
|
|
4230
4276
|
}
|
|
4231
4277
|
return gameServer;
|
|
4232
4278
|
};
|
|
@@ -4301,12 +4347,12 @@
|
|
|
4301
4347
|
} else {
|
|
4302
4348
|
tmp = null;
|
|
4303
4349
|
}
|
|
4304
|
-
var
|
|
4305
|
-
var
|
|
4306
|
-
var
|
|
4307
|
-
var
|
|
4308
|
-
var
|
|
4309
|
-
var
|
|
4350
|
+
var tmp0_safe_receiver = tmp;
|
|
4351
|
+
var tmp1_rules = tmp0_safe_receiver == null ? null : mapToDto(tmp0_safe_receiver);
|
|
4352
|
+
var tmp2_rulesPreset = _this__u8e3s4.rulesSetType.value;
|
|
4353
|
+
var tmp3_players = _this__u8e3s4.playersMode.value;
|
|
4354
|
+
var tmp4_points = _this__u8e3s4.pointsMode.value;
|
|
4355
|
+
var tmp5_timeoutTime = _this__u8e3s4.timeoutTimeMillis / 1000 | 0;
|
|
4310
4356
|
// Inline function 'kotlin.takeIf' call
|
|
4311
4357
|
var this_1 = _this__u8e3s4.isPrivate;
|
|
4312
4358
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4317,7 +4363,7 @@
|
|
|
4317
4363
|
} else {
|
|
4318
4364
|
tmp_0 = null;
|
|
4319
4365
|
}
|
|
4320
|
-
var
|
|
4366
|
+
var tmp6_isPrivate = tmp_0;
|
|
4321
4367
|
// Inline function 'kotlin.takeIf' call
|
|
4322
4368
|
var this_2 = _this__u8e3s4.options.isEnableChat;
|
|
4323
4369
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4328,20 +4374,20 @@
|
|
|
4328
4374
|
} else {
|
|
4329
4375
|
tmp_1 = null;
|
|
4330
4376
|
}
|
|
4331
|
-
var
|
|
4332
|
-
return new RoomConfig(
|
|
4377
|
+
var tmp7_isChatEnabled = tmp_1;
|
|
4378
|
+
return new RoomConfig(tmp3_players, tmp4_points, tmp5_timeoutTime, tmp2_rulesPreset, tmp6_isPrivate, tmp7_isChatEnabled, tmp1_rules);
|
|
4333
4379
|
}
|
|
4334
4380
|
function TestHelper() {
|
|
4335
4381
|
}
|
|
4336
4382
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4337
4383
|
// Inline function 'kotlin.getValue' call
|
|
4338
|
-
var this_0 = $this.
|
|
4384
|
+
var this_0 = $this.dd8_1;
|
|
4339
4385
|
playerAnswerInteractor$factory_0();
|
|
4340
4386
|
return this_0.u();
|
|
4341
4387
|
}
|
|
4342
4388
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4343
4389
|
return function ($this$singleton) {
|
|
4344
|
-
return this$0.
|
|
4390
|
+
return this$0.bd8_1;
|
|
4345
4391
|
};
|
|
4346
4392
|
}
|
|
4347
4393
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4350,19 +4396,19 @@
|
|
|
4350
4396
|
// Inline function 'org.kodein.type.generic' call
|
|
4351
4397
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4352
4398
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4353
|
-
var tmp_0 = $this$DI.
|
|
4399
|
+
var tmp_0 = $this$DI.u61(tmp$ret$0, null, null);
|
|
4354
4400
|
// Inline function 'org.kodein.di.singleton' call
|
|
4355
4401
|
var creator = TestHelperImpl$di$lambda$lambda(this$0);
|
|
4356
|
-
var tmp_1 = $this$DI.
|
|
4357
|
-
var tmp_2 = $this$DI.
|
|
4358
|
-
var tmp_3 = $this$DI.
|
|
4402
|
+
var tmp_1 = $this$DI.z61();
|
|
4403
|
+
var tmp_2 = $this$DI.x61();
|
|
4404
|
+
var tmp_3 = $this$DI.y61();
|
|
4359
4405
|
// Inline function 'org.kodein.type.generic' call
|
|
4360
4406
|
var tmp_4 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4361
4407
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4362
4408
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
4363
|
-
tmp_0.
|
|
4364
|
-
$this$DI.
|
|
4365
|
-
$this$DI.
|
|
4409
|
+
tmp_0.s65(tmp$ret$3);
|
|
4410
|
+
$this$DI.w61(jsonModule(emptyList()));
|
|
4411
|
+
$this$DI.w61(get_botGameModule());
|
|
4366
4412
|
return Unit_instance;
|
|
4367
4413
|
};
|
|
4368
4414
|
}
|
|
@@ -4370,20 +4416,20 @@
|
|
|
4370
4416
|
return emptyMap();
|
|
4371
4417
|
}
|
|
4372
4418
|
function TestHelperImpl(logger) {
|
|
4373
|
-
this.
|
|
4419
|
+
this.bd8_1 = logger;
|
|
4374
4420
|
var tmp = this;
|
|
4375
4421
|
var tmp_0 = Companion_instance_3;
|
|
4376
|
-
tmp.
|
|
4422
|
+
tmp.cd8_1 = tmp_0.d62(VOID, TestHelperImpl$di$lambda(this));
|
|
4377
4423
|
var tmp_1 = this;
|
|
4378
4424
|
// Inline function 'org.kodein.di.instance' call
|
|
4379
|
-
var this_0 = this.
|
|
4425
|
+
var this_0 = this.cd8_1;
|
|
4380
4426
|
// Inline function 'org.kodein.type.generic' call
|
|
4381
4427
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4382
4428
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4383
|
-
tmp_1.
|
|
4429
|
+
tmp_1.dd8_1 = Instance(this_0, tmp$ret$0, null).p67(this, playerAnswerInteractor$factory());
|
|
4384
4430
|
}
|
|
4385
4431
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4386
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
4432
|
+
return _get_playerAnswerInteractor__msggz1(this).a8w(playerId, table, botConfig);
|
|
4387
4433
|
};
|
|
4388
4434
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4389
4435
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4391,7 +4437,7 @@
|
|
|
4391
4437
|
var tmp$ret$0;
|
|
4392
4438
|
$l$block_0: {
|
|
4393
4439
|
// Inline function 'kotlin.collections.any' call
|
|
4394
|
-
var this_0 = mechanicAction.
|
|
4440
|
+
var this_0 = mechanicAction.g96();
|
|
4395
4441
|
var tmp;
|
|
4396
4442
|
if (isInterface(this_0, Collection)) {
|
|
4397
4443
|
tmp = this_0.p();
|
|
@@ -4424,7 +4470,7 @@
|
|
|
4424
4470
|
var tmp$ret$0;
|
|
4425
4471
|
$l$block_0: {
|
|
4426
4472
|
// Inline function 'kotlin.collections.any' call
|
|
4427
|
-
var this_0 = action.
|
|
4473
|
+
var this_0 = action.g96();
|
|
4428
4474
|
var tmp;
|
|
4429
4475
|
if (isInterface(this_0, Collection)) {
|
|
4430
4476
|
tmp = this_0.p();
|
|
@@ -4470,77 +4516,77 @@
|
|
|
4470
4516
|
// Inline function 'org.kodein.type.generic' call
|
|
4471
4517
|
var tmp = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4472
4518
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4473
|
-
var tmp_0 = $this$Module.
|
|
4519
|
+
var tmp_0 = $this$Module.u61(tmp$ret$0, null, null);
|
|
4474
4520
|
// Inline function 'org.kodein.di.singleton' call
|
|
4475
4521
|
var creator = serverHelpersModule$lambda$lambda;
|
|
4476
|
-
var tmp_1 = $this$Module.
|
|
4477
|
-
var tmp_2 = $this$Module.
|
|
4478
|
-
var tmp_3 = $this$Module.
|
|
4522
|
+
var tmp_1 = $this$Module.z61();
|
|
4523
|
+
var tmp_2 = $this$Module.x61();
|
|
4524
|
+
var tmp_3 = $this$Module.y61();
|
|
4479
4525
|
// Inline function 'org.kodein.type.generic' call
|
|
4480
4526
|
var tmp_4 = typeToken(createKType(getKClass(ParserHelperImpl), arrayOf([]), false));
|
|
4481
4527
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4482
4528
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
4483
|
-
tmp_0.
|
|
4529
|
+
tmp_0.s65(tmp$ret$3);
|
|
4484
4530
|
// Inline function 'org.kodein.di.bind' call
|
|
4485
4531
|
// Inline function 'org.kodein.type.generic' call
|
|
4486
4532
|
var tmp_5 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4487
4533
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4488
|
-
var tmp_6 = $this$Module.
|
|
4534
|
+
var tmp_6 = $this$Module.u61(tmp$ret$4, null, null);
|
|
4489
4535
|
// Inline function 'org.kodein.di.singleton' call
|
|
4490
4536
|
var creator_0 = serverHelpersModule$lambda$lambda_0;
|
|
4491
|
-
var tmp_7 = $this$Module.
|
|
4492
|
-
var tmp_8 = $this$Module.
|
|
4493
|
-
var tmp_9 = $this$Module.
|
|
4537
|
+
var tmp_7 = $this$Module.z61();
|
|
4538
|
+
var tmp_8 = $this$Module.x61();
|
|
4539
|
+
var tmp_9 = $this$Module.y61();
|
|
4494
4540
|
// Inline function 'org.kodein.type.generic' call
|
|
4495
4541
|
var tmp_10 = typeToken(createKType(getKClass(GameHelperImpl), arrayOf([]), false));
|
|
4496
4542
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4497
4543
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
4498
|
-
tmp_6.
|
|
4544
|
+
tmp_6.s65(tmp$ret$7);
|
|
4499
4545
|
// Inline function 'org.kodein.di.bind' call
|
|
4500
4546
|
// Inline function 'org.kodein.type.generic' call
|
|
4501
4547
|
var tmp_11 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4502
4548
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
4503
|
-
var tmp_12 = $this$Module.
|
|
4549
|
+
var tmp_12 = $this$Module.u61(tmp$ret$8, null, null);
|
|
4504
4550
|
// Inline function 'org.kodein.di.singleton' call
|
|
4505
4551
|
var creator_1 = serverHelpersModule$lambda$lambda_1;
|
|
4506
|
-
var tmp_13 = $this$Module.
|
|
4507
|
-
var tmp_14 = $this$Module.
|
|
4508
|
-
var tmp_15 = $this$Module.
|
|
4552
|
+
var tmp_13 = $this$Module.z61();
|
|
4553
|
+
var tmp_14 = $this$Module.x61();
|
|
4554
|
+
var tmp_15 = $this$Module.y61();
|
|
4509
4555
|
// Inline function 'org.kodein.type.generic' call
|
|
4510
4556
|
var tmp_16 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
4511
4557
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
4512
4558
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
4513
|
-
tmp_12.
|
|
4559
|
+
tmp_12.s65(tmp$ret$11);
|
|
4514
4560
|
// Inline function 'org.kodein.di.bind' call
|
|
4515
4561
|
// Inline function 'org.kodein.type.generic' call
|
|
4516
4562
|
var tmp_17 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4517
4563
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
4518
|
-
var tmp_18 = $this$Module.
|
|
4564
|
+
var tmp_18 = $this$Module.u61(tmp$ret$12, null, null);
|
|
4519
4565
|
// Inline function 'org.kodein.di.singleton' call
|
|
4520
4566
|
var creator_2 = serverHelpersModule$lambda$lambda_2;
|
|
4521
|
-
var tmp_19 = $this$Module.
|
|
4522
|
-
var tmp_20 = $this$Module.
|
|
4523
|
-
var tmp_21 = $this$Module.
|
|
4567
|
+
var tmp_19 = $this$Module.z61();
|
|
4568
|
+
var tmp_20 = $this$Module.x61();
|
|
4569
|
+
var tmp_21 = $this$Module.y61();
|
|
4524
4570
|
// Inline function 'org.kodein.type.generic' call
|
|
4525
4571
|
var tmp_22 = typeToken(createKType(getKClass(GameResourcesImpl), arrayOf([]), false));
|
|
4526
4572
|
var tmp$ret$14 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
4527
4573
|
var tmp$ret$15 = new Singleton(tmp_19, tmp_20, tmp_21, tmp$ret$14, null, true, creator_2);
|
|
4528
|
-
tmp_18.
|
|
4574
|
+
tmp_18.s65(tmp$ret$15);
|
|
4529
4575
|
return Unit_instance;
|
|
4530
4576
|
}
|
|
4531
4577
|
function serverHelpersModule$lambda$lambda($this$singleton) {
|
|
4532
4578
|
// Inline function 'org.kodein.di.instance' call
|
|
4533
|
-
var tmp = $this$singleton.
|
|
4579
|
+
var tmp = $this$singleton.h63();
|
|
4534
4580
|
// Inline function 'org.kodein.type.generic' call
|
|
4535
4581
|
var tmp_0 = typeToken(createKType(getKClass(Json), arrayOf([]), false));
|
|
4536
4582
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4537
|
-
var tmp_1 = tmp.
|
|
4583
|
+
var tmp_1 = tmp.g63(tmp$ret$0, null);
|
|
4538
4584
|
// Inline function 'org.kodein.di.instance' call
|
|
4539
|
-
var tmp_2 = $this$singleton.
|
|
4585
|
+
var tmp_2 = $this$singleton.h63();
|
|
4540
4586
|
// Inline function 'org.kodein.type.generic' call
|
|
4541
4587
|
var tmp_3 = typeToken(createKType(getKClass(EncoderDecoderProvider), arrayOf([]), false));
|
|
4542
4588
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
4543
|
-
var tmp$ret$3 = tmp_2.
|
|
4589
|
+
var tmp$ret$3 = tmp_2.g63(tmp$ret$2, null);
|
|
4544
4590
|
return new ParserHelperImpl(tmp_1, tmp$ret$3);
|
|
4545
4591
|
}
|
|
4546
4592
|
function serverHelpersModule$lambda$lambda_0($this$singleton) {
|
|
@@ -4548,11 +4594,11 @@
|
|
|
4548
4594
|
}
|
|
4549
4595
|
function serverHelpersModule$lambda$lambda_1($this$singleton) {
|
|
4550
4596
|
// Inline function 'org.kodein.di.instance' call
|
|
4551
|
-
var tmp = $this$singleton.
|
|
4597
|
+
var tmp = $this$singleton.h63();
|
|
4552
4598
|
// Inline function 'org.kodein.type.generic' call
|
|
4553
4599
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4554
4600
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4555
|
-
var tmp$ret$1 = tmp.
|
|
4601
|
+
var tmp$ret$1 = tmp.g63(tmp$ret$0, null);
|
|
4556
4602
|
return new TestHelperImpl(tmp$ret$1);
|
|
4557
4603
|
}
|
|
4558
4604
|
function serverHelpersModule$lambda$lambda_2($this$singleton) {
|
|
@@ -4560,37 +4606,37 @@
|
|
|
4560
4606
|
}
|
|
4561
4607
|
//region block: post-declaration
|
|
4562
4608
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
4563
|
-
return this.
|
|
4609
|
+
return this.a5p();
|
|
4564
4610
|
});
|
|
4565
4611
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
4566
|
-
return this.
|
|
4612
|
+
return this.k6w();
|
|
4567
4613
|
});
|
|
4568
4614
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
4569
|
-
return this.
|
|
4615
|
+
return this.l6w();
|
|
4570
4616
|
});
|
|
4571
4617
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
4572
|
-
return this.
|
|
4618
|
+
return this.m6w();
|
|
4573
4619
|
});
|
|
4574
|
-
protoOf(UpdateServerConfigAction).
|
|
4620
|
+
protoOf(UpdateServerConfigAction).u6m = get_actionTag;
|
|
4575
4621
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
4576
|
-
return this.
|
|
4622
|
+
return this.u6m();
|
|
4577
4623
|
});
|
|
4578
4624
|
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
4579
4625
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4580
4626
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4581
|
-
return this.
|
|
4627
|
+
return this.pcw();
|
|
4582
4628
|
});
|
|
4583
4629
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4584
|
-
return this.
|
|
4630
|
+
return this.nd7();
|
|
4585
4631
|
});
|
|
4586
4632
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4587
|
-
return this.
|
|
4633
|
+
return this.od7();
|
|
4588
4634
|
});
|
|
4589
4635
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4590
|
-
return this.
|
|
4636
|
+
return this.md7();
|
|
4591
4637
|
});
|
|
4592
4638
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
4593
|
-
return this.
|
|
4639
|
+
return this.pd7();
|
|
4594
4640
|
});
|
|
4595
4641
|
//endregion
|
|
4596
4642
|
//region block: init
|