raspberry_games_server_game_logic 1.8.258 → 1.8.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +17 -17
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +11086 -10153
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +43 -12
- package/Logic_Debertz-game_server.js +721 -640
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +75 -75
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './Logic_Debertz-engine.js', './kotlinx-coroutines-core.js', './raspberry-cardgame-lib-random.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './Logic_Debertz-engine.js', './Logic_Debertz-core.js', './kotlinx-coroutines-core.js', './raspberry-cardgame-lib-random.js', './raspberry-cardgame-lib-logger.js', './Kosi-Kaverit-kaverit.js', './Kosi-Kodein-kodein-di.js', './kotlinx-atomicfu.js', './raspberry-cardgame-lib-core.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Logic_Debertz-engine.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Logic_Debertz-engine.js'), require('./Logic_Debertz-core.js'), require('./kotlinx-coroutines-core.js'), require('./raspberry-cardgame-lib-random.js'), require('./raspberry-cardgame-lib-logger.js'), require('./Kosi-Kaverit-kaverit.js'), require('./Kosi-Kodein-kodein-di.js'), require('./kotlinx-atomicfu.js'), require('./raspberry-cardgame-lib-core.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
if (typeof globalThis['Logic_Debertz-engine'] === 'undefined') {
|
|
11
11
|
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'Logic_Debertz-engine' was not found. Please, check whether 'Logic_Debertz-engine' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
12
12
|
}
|
|
13
|
+
if (typeof globalThis['Logic_Debertz-core'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'Logic_Debertz-core' was not found. Please, check whether 'Logic_Debertz-core' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
15
|
+
}
|
|
13
16
|
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
14
17
|
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
15
18
|
}
|
|
16
19
|
if (typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined') {
|
|
17
20
|
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'raspberry-cardgame-lib-random' was not found. Please, check whether 'raspberry-cardgame-lib-random' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
18
21
|
}
|
|
19
|
-
if (typeof globalThis['Logic_Debertz-core'] === 'undefined') {
|
|
20
|
-
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'Logic_Debertz-core' was not found. Please, check whether 'Logic_Debertz-core' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
21
|
-
}
|
|
22
22
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
24
24
|
}
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
if (typeof globalThis['raspberry-cardgame-lib-core'] === 'undefined') {
|
|
35
35
|
throw new Error("Error loading module 'io.raspberryapps.game-engine:game_server'. Its dependency 'raspberry-cardgame-lib-core' was not found. Please, check whether 'raspberry-cardgame-lib-core' is loaded prior to 'io.raspberryapps.game-engine:game_server'.");
|
|
36
36
|
}
|
|
37
|
-
globalThis['io.raspberryapps.game-engine:game_server'] = factory(typeof globalThis['io.raspberryapps.game-engine:game_server'] === 'undefined' ? {} : globalThis['io.raspberryapps.game-engine:game_server'], globalThis['kotlin-kotlin-stdlib'], globalThis['Logic_Debertz-engine'], globalThis['kotlinx-coroutines-core'], globalThis['raspberry-cardgame-lib-random'], globalThis['
|
|
37
|
+
globalThis['io.raspberryapps.game-engine:game_server'] = factory(typeof globalThis['io.raspberryapps.game-engine:game_server'] === 'undefined' ? {} : globalThis['io.raspberryapps.game-engine:game_server'], globalThis['kotlin-kotlin-stdlib'], globalThis['Logic_Debertz-engine'], globalThis['Logic_Debertz-core'], globalThis['kotlinx-coroutines-core'], globalThis['raspberry-cardgame-lib-random'], globalThis['raspberry-cardgame-lib-logger'], globalThis['Kosi-Kaverit-kaverit'], globalThis['Kosi-Kodein-kodein-di'], globalThis['kotlinx-atomicfu'], globalThis['raspberry-cardgame-lib-core']);
|
|
38
38
|
}
|
|
39
|
-
}(function (_, kotlin_kotlin, kotlin_io_raspberryapps_game_engine_engine, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_raspberryapps_cardgame_random,
|
|
39
|
+
}(function (_, kotlin_kotlin, kotlin_io_raspberryapps_game_engine_engine, kotlin_io_raspberryapps_game_engine_core, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_raspberryapps_cardgame_random, kotlin_io_raspberryapps_cardgame_logger, kotlin_org_kodein_type_kaverit, kotlin_org_kodein_di_kodein_di, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_raspberryapps_cardgame_core) {
|
|
40
40
|
'use strict';
|
|
41
41
|
//region block: imports
|
|
42
42
|
var imul = Math.imul;
|
|
@@ -44,52 +44,59 @@
|
|
|
44
44
|
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
45
45
|
var protoOf = kotlin_kotlin.$_$.uc;
|
|
46
46
|
var THROW_CCE = kotlin_kotlin.$_$.rg;
|
|
47
|
-
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
47
|
+
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
|
|
48
48
|
var initMetadataForLambda = kotlin_kotlin.$_$.xb;
|
|
49
49
|
var VOID = kotlin_kotlin.$_$.f;
|
|
50
|
-
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
50
|
+
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.n3;
|
|
51
|
+
var defineProp = kotlin_kotlin.$_$.kb;
|
|
52
|
+
var PlayerIdContract = kotlin_io_raspberryapps_game_engine_core.$_$.f;
|
|
53
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
51
54
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
52
55
|
var equals = kotlin_kotlin.$_$.lb;
|
|
53
56
|
var FunctionAdapter = kotlin_kotlin.$_$.za;
|
|
54
57
|
var isInterface = kotlin_kotlin.$_$.hc;
|
|
55
58
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
56
59
|
var hashCode = kotlin_kotlin.$_$.sb;
|
|
57
|
-
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
58
60
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
59
61
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
60
62
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
61
63
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
|
|
62
64
|
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.k2;
|
|
63
|
-
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
64
|
-
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
65
|
+
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
|
|
66
|
+
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
|
|
65
67
|
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k3;
|
|
66
|
-
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
68
|
+
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
|
|
67
69
|
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
|
|
68
70
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
|
|
69
71
|
var toList = kotlin_kotlin.$_$.t9;
|
|
70
72
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
|
|
71
|
-
var
|
|
73
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
74
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
75
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
|
|
76
|
+
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
77
|
+
var firstOrNull = kotlin_kotlin.$_$.r7;
|
|
72
78
|
var toMutableList = kotlin_kotlin.$_$.w9;
|
|
73
79
|
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
|
|
74
|
-
var
|
|
80
|
+
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
|
|
81
|
+
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m2;
|
|
75
82
|
var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
|
|
76
|
-
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
77
|
-
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
78
|
-
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
83
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
|
|
84
|
+
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y1;
|
|
85
|
+
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.s2;
|
|
79
86
|
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
|
|
80
87
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
|
|
81
|
-
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
88
|
+
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.o3;
|
|
82
89
|
var toString = kotlin_kotlin.$_$.yc;
|
|
83
90
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
84
|
-
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
85
|
-
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
91
|
+
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a2;
|
|
92
|
+
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t2;
|
|
86
93
|
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
|
|
87
|
-
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
94
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
|
|
88
95
|
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r3;
|
|
89
96
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.g1;
|
|
90
97
|
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
|
|
91
98
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ph;
|
|
92
|
-
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
99
|
+
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
93
100
|
var emptyList = kotlin_kotlin.$_$.n7;
|
|
94
101
|
var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
|
|
95
102
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
@@ -98,11 +105,11 @@
|
|
|
98
105
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
99
106
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
100
107
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
101
|
-
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
108
|
+
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
|
|
109
|
+
var TeamsLogicProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
|
|
102
110
|
var lazy = kotlin_kotlin.$_$.oh;
|
|
103
111
|
var plus = kotlin_kotlin.$_$.z8;
|
|
104
|
-
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
105
|
-
var defineProp = kotlin_kotlin.$_$.kb;
|
|
112
|
+
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
|
|
106
113
|
var KProperty1 = kotlin_kotlin.$_$.pd;
|
|
107
114
|
var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
|
|
108
115
|
var to = kotlin_kotlin.$_$.wh;
|
|
@@ -110,28 +117,26 @@
|
|
|
110
117
|
var Enum = kotlin_kotlin.$_$.hg;
|
|
111
118
|
var getBooleanHashCode = kotlin_kotlin.$_$.ob;
|
|
112
119
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
113
|
-
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
120
|
+
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
114
121
|
var RandomPoolProvider = kotlin_io_raspberryapps_cardgame_random.$_$.i;
|
|
115
122
|
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.f;
|
|
116
|
-
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
123
|
+
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
|
|
117
124
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
|
|
118
125
|
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.m;
|
|
119
|
-
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
120
|
-
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
121
|
-
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
126
|
+
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.q;
|
|
127
|
+
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
|
|
128
|
+
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.j3;
|
|
122
129
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
123
130
|
var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
|
|
124
|
-
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
125
|
-
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
126
|
-
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
131
|
+
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.y2;
|
|
132
|
+
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
133
|
+
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
127
134
|
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
128
135
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
129
|
-
var
|
|
130
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
131
|
-
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
136
|
+
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z;
|
|
132
137
|
var single = kotlin_kotlin.$_$.i9;
|
|
133
138
|
var copyToArray = kotlin_kotlin.$_$.i7;
|
|
134
|
-
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
139
|
+
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
135
140
|
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
136
141
|
var KtList = kotlin_kotlin.$_$.x5;
|
|
137
142
|
var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
@@ -146,83 +151,81 @@
|
|
|
146
151
|
var flatMapConcat = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
147
152
|
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.g2;
|
|
148
153
|
var Action = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
149
|
-
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
150
|
-
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
151
|
-
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
152
|
-
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
153
|
-
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
154
|
+
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.a3;
|
|
155
|
+
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
|
|
156
|
+
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
|
|
157
|
+
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.x2;
|
|
158
|
+
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
|
|
154
159
|
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.j1;
|
|
155
|
-
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
160
|
+
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
156
161
|
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.l;
|
|
157
|
-
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
162
|
+
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
|
|
158
163
|
var listOf = kotlin_kotlin.$_$.q8;
|
|
159
|
-
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
164
|
+
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.h3;
|
|
160
165
|
var listOfNotNull = kotlin_kotlin.$_$.n8;
|
|
161
|
-
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
162
|
-
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
166
|
+
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.d3;
|
|
167
|
+
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.e3;
|
|
163
168
|
var listOfNotNull_0 = kotlin_kotlin.$_$.o8;
|
|
164
|
-
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
165
|
-
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
169
|
+
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.b3;
|
|
170
|
+
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.f3;
|
|
166
171
|
var listOf_0 = kotlin_kotlin.$_$.p8;
|
|
167
|
-
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
168
|
-
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
169
|
-
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
172
|
+
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.g3;
|
|
173
|
+
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.c3;
|
|
174
|
+
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w1;
|
|
170
175
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
171
|
-
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
172
|
-
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
173
|
-
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
174
|
-
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
176
|
+
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c2;
|
|
177
|
+
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
|
|
178
|
+
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.l1;
|
|
179
|
+
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g2;
|
|
175
180
|
var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.g;
|
|
176
|
-
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
177
|
-
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
178
|
-
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
179
|
-
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
180
|
-
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
181
|
-
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
182
|
-
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
183
|
-
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
184
|
-
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
185
|
-
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
186
|
-
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
187
|
-
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
188
|
-
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
189
|
-
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
190
|
-
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
191
|
-
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
181
|
+
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.q1;
|
|
182
|
+
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
|
|
183
|
+
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.j1;
|
|
184
|
+
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r2;
|
|
185
|
+
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.h1;
|
|
186
|
+
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.f2;
|
|
187
|
+
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.o1;
|
|
188
|
+
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i2;
|
|
189
|
+
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.d1;
|
|
190
|
+
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x1;
|
|
191
|
+
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.r1;
|
|
192
|
+
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q2;
|
|
193
|
+
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.v1;
|
|
194
|
+
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
|
|
195
|
+
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.u1;
|
|
196
|
+
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h2;
|
|
192
197
|
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
|
|
193
|
-
var
|
|
194
|
-
var
|
|
195
|
-
var
|
|
196
|
-
var
|
|
197
|
-
var
|
|
198
|
-
var
|
|
199
|
-
var
|
|
200
|
-
var
|
|
201
|
-
var
|
|
202
|
-
var
|
|
203
|
-
var
|
|
204
|
-
var
|
|
205
|
-
var
|
|
206
|
-
var
|
|
207
|
-
var
|
|
208
|
-
var
|
|
209
|
-
var
|
|
210
|
-
var
|
|
211
|
-
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.d1;
|
|
198
|
+
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
|
|
199
|
+
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.s1;
|
|
200
|
+
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p2;
|
|
201
|
+
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.p1;
|
|
202
|
+
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.k2;
|
|
203
|
+
var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.t1;
|
|
204
|
+
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l2;
|
|
205
|
+
var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.m1;
|
|
206
|
+
var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
|
|
207
|
+
var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.f1;
|
|
208
|
+
var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j2;
|
|
209
|
+
var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.k1;
|
|
210
|
+
var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.n1;
|
|
211
|
+
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b2;
|
|
212
|
+
var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.g1;
|
|
213
|
+
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.i1;
|
|
214
|
+
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.n2;
|
|
215
|
+
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.e1;
|
|
212
216
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.j2;
|
|
213
217
|
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.d4;
|
|
214
218
|
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.b4;
|
|
215
219
|
var Companion_getInstance = kotlin_kotlin.$_$.g5;
|
|
216
220
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
217
221
|
var toDuration = kotlin_kotlin.$_$.zf;
|
|
218
|
-
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
219
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
220
|
-
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
222
|
+
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.i3;
|
|
223
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
|
|
221
224
|
var singleOrNull = kotlin_kotlin.$_$.h9;
|
|
222
225
|
var Collection = kotlin_kotlin.$_$.r5;
|
|
223
226
|
var toSet = kotlin_kotlin.$_$.z9;
|
|
224
227
|
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.h;
|
|
225
|
-
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
228
|
+
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.m3;
|
|
226
229
|
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.k;
|
|
227
230
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
|
|
228
231
|
var RandomOrgConfig = kotlin_io_raspberryapps_cardgame_random.$_$.b;
|
|
@@ -232,11 +235,11 @@
|
|
|
232
235
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
233
236
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
234
237
|
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.p1;
|
|
235
|
-
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
236
|
-
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
237
|
-
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
238
|
-
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
239
|
-
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
238
|
+
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
|
|
239
|
+
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.q3;
|
|
240
|
+
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.p3;
|
|
241
|
+
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.c4;
|
|
242
|
+
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.b4;
|
|
240
243
|
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
|
|
241
244
|
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.m1;
|
|
242
245
|
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
|
|
@@ -252,18 +255,19 @@
|
|
|
252
255
|
var toList_0 = kotlin_kotlin.$_$.s9;
|
|
253
256
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.m2;
|
|
254
257
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.g;
|
|
255
|
-
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
258
|
+
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.o;
|
|
256
259
|
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
257
|
-
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
258
|
-
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
259
|
-
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
260
|
-
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
261
|
-
var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
260
|
+
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.t;
|
|
261
|
+
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
|
|
262
|
+
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.c1;
|
|
263
|
+
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e2;
|
|
264
|
+
var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.r;
|
|
262
265
|
var engineHelpersModule = kotlin_io_raspberryapps_game_engine_engine.$_$.e;
|
|
263
266
|
//endregion
|
|
264
267
|
//region block: pre-declaration
|
|
265
268
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
266
269
|
initMetadataForLambda(GameServer$subscribeWith$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
270
|
+
initMetadataForClass(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1, VOID, VOID, VOID, [PlayerIdContract]);
|
|
267
271
|
initMetadataForCompanion(Companion);
|
|
268
272
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
269
273
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
@@ -281,7 +285,7 @@
|
|
|
281
285
|
initMetadataForLambda(GameServer$roomOnDelete$slambda, CoroutineImpl, VOID, [2]);
|
|
282
286
|
initMetadataForLambda(GameServer$setCanStartNewGameEnabled$slambda, CoroutineImpl, VOID, [2]);
|
|
283
287
|
initMetadataForLambda(GameServer$shutdown$slambda, CoroutineImpl, VOID, [2]);
|
|
284
|
-
function roomOnCreate(roomId, gameCreatorId, config,
|
|
288
|
+
function roomOnCreate(roomId, gameCreatorId, config, usersArray, transition, spectators, $super) {
|
|
285
289
|
transition = transition === VOID ? null : transition;
|
|
286
290
|
var tmp;
|
|
287
291
|
if (spectators === VOID) {
|
|
@@ -291,15 +295,15 @@
|
|
|
291
295
|
tmp = spectators;
|
|
292
296
|
}
|
|
293
297
|
spectators = tmp;
|
|
294
|
-
return this.
|
|
298
|
+
return this.q9f(roomId, gameCreatorId, config, usersArray, transition, spectators);
|
|
295
299
|
}
|
|
296
300
|
function roomOnDelete(newRid, $super) {
|
|
297
301
|
newRid = newRid === VOID ? null : newRid;
|
|
298
|
-
return this.
|
|
302
|
+
return this.r9f(newRid);
|
|
299
303
|
}
|
|
300
304
|
function shutdown(reason, roomId, $super) {
|
|
301
305
|
roomId = roomId === VOID ? null : roomId;
|
|
302
|
-
return this.
|
|
306
|
+
return this.s9f(reason, roomId);
|
|
303
307
|
}
|
|
304
308
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
305
309
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -349,7 +353,7 @@
|
|
|
349
353
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
350
354
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
351
355
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
352
|
-
return this.
|
|
356
|
+
return this.y9j(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
353
357
|
}
|
|
354
358
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
355
359
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -358,17 +362,17 @@
|
|
|
358
362
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
359
363
|
//endregion
|
|
360
364
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
361
|
-
this.
|
|
365
|
+
this.z97_1 = $subscriber;
|
|
362
366
|
CoroutineImpl.call(this, resultContinuation);
|
|
363
367
|
}
|
|
364
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
365
|
-
var tmp = this.
|
|
368
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).b98 = function (it, $completion) {
|
|
369
|
+
var tmp = this.c98(it, $completion);
|
|
366
370
|
tmp.g9_1 = Unit_instance;
|
|
367
371
|
tmp.h9_1 = null;
|
|
368
372
|
return tmp.m9();
|
|
369
373
|
};
|
|
370
374
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
371
|
-
return this.
|
|
375
|
+
return this.b98(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
372
376
|
};
|
|
373
377
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
374
378
|
var suspendResult = this.g9_1;
|
|
@@ -377,7 +381,7 @@
|
|
|
377
381
|
var tmp = this.e9_1;
|
|
378
382
|
if (tmp === 0) {
|
|
379
383
|
this.f9_1 = 1;
|
|
380
|
-
this.
|
|
384
|
+
this.z97_1(this.a98_1);
|
|
381
385
|
return Unit_instance;
|
|
382
386
|
} else if (tmp === 1) {
|
|
383
387
|
throw this.h9_1;
|
|
@@ -388,31 +392,31 @@
|
|
|
388
392
|
}
|
|
389
393
|
while (true);
|
|
390
394
|
};
|
|
391
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
392
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
393
|
-
i.
|
|
395
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).c98 = function (it, completion) {
|
|
396
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.z97_1, completion);
|
|
397
|
+
i.a98_1 = it;
|
|
394
398
|
return i;
|
|
395
399
|
};
|
|
396
400
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
397
401
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
398
402
|
var l = function (it, $completion) {
|
|
399
|
-
return i.
|
|
403
|
+
return i.b98(it, $completion);
|
|
400
404
|
};
|
|
401
405
|
l.$arity = 1;
|
|
402
406
|
return l;
|
|
403
407
|
}
|
|
404
408
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
405
|
-
this.
|
|
409
|
+
this.l98_1 = $subscriber;
|
|
406
410
|
CoroutineImpl.call(this, resultContinuation);
|
|
407
411
|
}
|
|
408
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
409
|
-
var tmp = this.
|
|
412
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).n98 = function (it, $completion) {
|
|
413
|
+
var tmp = this.o98(it, $completion);
|
|
410
414
|
tmp.g9_1 = Unit_instance;
|
|
411
415
|
tmp.h9_1 = null;
|
|
412
416
|
return tmp.m9();
|
|
413
417
|
};
|
|
414
418
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
415
|
-
return this.
|
|
419
|
+
return this.n98(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
416
420
|
};
|
|
417
421
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
418
422
|
var suspendResult = this.g9_1;
|
|
@@ -421,7 +425,7 @@
|
|
|
421
425
|
var tmp = this.e9_1;
|
|
422
426
|
if (tmp === 0) {
|
|
423
427
|
this.f9_1 = 1;
|
|
424
|
-
this.
|
|
428
|
+
this.l98_1(this.m98_1);
|
|
425
429
|
return Unit_instance;
|
|
426
430
|
} else if (tmp === 1) {
|
|
427
431
|
throw this.h9_1;
|
|
@@ -432,58 +436,70 @@
|
|
|
432
436
|
}
|
|
433
437
|
while (true);
|
|
434
438
|
};
|
|
435
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
436
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
437
|
-
i.
|
|
439
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).o98 = function (it, completion) {
|
|
440
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.l98_1, completion);
|
|
441
|
+
i.m98_1 = it;
|
|
438
442
|
return i;
|
|
439
443
|
};
|
|
440
444
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
441
445
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
442
446
|
var l = function (it, $completion) {
|
|
443
|
-
return i.
|
|
447
|
+
return i.n98(it, $completion);
|
|
444
448
|
};
|
|
445
449
|
l.$arity = 1;
|
|
446
450
|
return l;
|
|
447
451
|
}
|
|
452
|
+
function GameServer$roomOnCreate$1$updatedUsers$previousTeams$1($it) {
|
|
453
|
+
this.p98_1 = $it;
|
|
454
|
+
}
|
|
455
|
+
protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1).q66 = function () {
|
|
456
|
+
return this.p98_1;
|
|
457
|
+
};
|
|
448
458
|
function _get_logger__rkp4sl($this) {
|
|
449
459
|
// Inline function 'kotlin.getValue' call
|
|
450
|
-
var this_0 = $this.
|
|
460
|
+
var this_0 = $this.s98_1;
|
|
451
461
|
logger$factory_0();
|
|
452
462
|
return this_0.u();
|
|
453
463
|
}
|
|
454
464
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
455
465
|
// Inline function 'kotlin.getValue' call
|
|
456
|
-
var this_0 = $this.
|
|
466
|
+
var this_0 = $this.t98_1;
|
|
457
467
|
toClientEventsObserver$factory_0();
|
|
458
468
|
return this_0.u();
|
|
459
469
|
}
|
|
460
470
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
461
471
|
// Inline function 'kotlin.getValue' call
|
|
462
|
-
var this_0 = $this.
|
|
472
|
+
var this_0 = $this.u98_1;
|
|
463
473
|
playerConnectionInteractor$factory_0();
|
|
464
474
|
return this_0.u();
|
|
465
475
|
}
|
|
476
|
+
function _get_teamsLogicProvider__u10pm6($this) {
|
|
477
|
+
// Inline function 'kotlin.getValue' call
|
|
478
|
+
var this_0 = $this.v98_1;
|
|
479
|
+
teamsLogicProvider$factory_0();
|
|
480
|
+
return this_0.u();
|
|
481
|
+
}
|
|
466
482
|
function _get_random__h29cgo($this) {
|
|
467
483
|
// Inline function 'kotlin.getValue' call
|
|
468
|
-
var this_0 = $this.
|
|
484
|
+
var this_0 = $this.w98_1;
|
|
469
485
|
random$factory();
|
|
470
486
|
return this_0.u();
|
|
471
487
|
}
|
|
472
488
|
function Companion() {
|
|
473
|
-
this.
|
|
489
|
+
this.y98_1 = 'GameEngine_API';
|
|
474
490
|
}
|
|
475
491
|
var Companion_instance_7;
|
|
476
492
|
function Companion_getInstance_0() {
|
|
477
493
|
return Companion_instance_7;
|
|
478
494
|
}
|
|
479
495
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
480
|
-
this.
|
|
496
|
+
this.z98_1 = function_0;
|
|
481
497
|
}
|
|
482
498
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
483
|
-
return this.
|
|
499
|
+
return this.z98_1(value, $completion);
|
|
484
500
|
};
|
|
485
501
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
486
|
-
return this.
|
|
502
|
+
return this.z98_1;
|
|
487
503
|
};
|
|
488
504
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
489
505
|
var tmp;
|
|
@@ -504,13 +520,13 @@
|
|
|
504
520
|
return hashCode(this.o3());
|
|
505
521
|
};
|
|
506
522
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
507
|
-
this.
|
|
523
|
+
this.a99_1 = function_0;
|
|
508
524
|
}
|
|
509
525
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
510
|
-
return this.
|
|
526
|
+
return this.a99_1(value, $completion);
|
|
511
527
|
};
|
|
512
528
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
513
|
-
return this.
|
|
529
|
+
return this.a99_1;
|
|
514
530
|
};
|
|
515
531
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
516
532
|
var tmp;
|
|
@@ -536,8 +552,8 @@
|
|
|
536
552
|
};
|
|
537
553
|
}
|
|
538
554
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
555
|
+
this.j99_1 = this$0;
|
|
556
|
+
this.k99_1 = $subscriber;
|
|
541
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
542
558
|
}
|
|
543
559
|
protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -558,8 +574,8 @@
|
|
|
558
574
|
case 0:
|
|
559
575
|
this.f9_1 = 2;
|
|
560
576
|
this.e9_1 = 1;
|
|
561
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
562
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
577
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.j99_1).m99();
|
|
578
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.k99_1, null);
|
|
563
579
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
564
580
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
565
581
|
return suspendResult;
|
|
@@ -583,8 +599,8 @@
|
|
|
583
599
|
while (true);
|
|
584
600
|
};
|
|
585
601
|
protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
|
|
586
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
587
|
-
i.
|
|
602
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.j99_1, this.k99_1, completion);
|
|
603
|
+
i.l99_1 = $this$launchDefault;
|
|
588
604
|
return i;
|
|
589
605
|
};
|
|
590
606
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -596,8 +612,8 @@
|
|
|
596
612
|
return l;
|
|
597
613
|
}
|
|
598
614
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
615
|
+
this.v99_1 = this$0;
|
|
616
|
+
this.w99_1 = $subscriber;
|
|
601
617
|
CoroutineImpl.call(this, resultContinuation);
|
|
602
618
|
}
|
|
603
619
|
protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -618,8 +634,8 @@
|
|
|
618
634
|
case 0:
|
|
619
635
|
this.f9_1 = 2;
|
|
620
636
|
this.e9_1 = 1;
|
|
621
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
622
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
637
|
+
var tmp_0 = distinctUntilChanged(this.v99_1.x6l());
|
|
638
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.w99_1, null);
|
|
623
639
|
suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
624
640
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
625
641
|
return suspendResult;
|
|
@@ -643,8 +659,8 @@
|
|
|
643
659
|
while (true);
|
|
644
660
|
};
|
|
645
661
|
protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
|
|
646
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
647
|
-
i.
|
|
662
|
+
var i = new GameServer$subscribeWith$slambda(this.v99_1, this.w99_1, completion);
|
|
663
|
+
i.x99_1 = $this$launchDefault;
|
|
648
664
|
return i;
|
|
649
665
|
};
|
|
650
666
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -656,18 +672,18 @@
|
|
|
656
672
|
return l;
|
|
657
673
|
}
|
|
658
674
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
659
|
-
this.
|
|
675
|
+
this.g9a_1 = $action;
|
|
660
676
|
CoroutineImpl.call(this, resultContinuation);
|
|
661
677
|
}
|
|
662
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
663
|
-
var tmp = this.
|
|
678
|
+
protoOf(GameServer$fromClientEvent$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
679
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
664
680
|
tmp.g9_1 = Unit_instance;
|
|
665
681
|
tmp.h9_1 = null;
|
|
666
682
|
return tmp.m9();
|
|
667
683
|
};
|
|
668
684
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
669
685
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
670
|
-
return this.
|
|
686
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
671
687
|
};
|
|
672
688
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
673
689
|
var suspendResult = this.g9_1;
|
|
@@ -676,11 +692,11 @@
|
|
|
676
692
|
var tmp = this.e9_1;
|
|
677
693
|
if (tmp === 0) {
|
|
678
694
|
this.f9_1 = 1;
|
|
679
|
-
if (this.
|
|
680
|
-
if (!get_isCreated(this.
|
|
695
|
+
if (this.g9a_1 instanceof PlayerReadyFromClientAction)
|
|
696
|
+
if (!get_isCreated(this.i9a_1.state)) {
|
|
681
697
|
return Unit_instance;
|
|
682
698
|
}
|
|
683
|
-
this.
|
|
699
|
+
this.i9a_1.dispatch(this.g9a_1);
|
|
684
700
|
return Unit_instance;
|
|
685
701
|
} else if (tmp === 1) {
|
|
686
702
|
throw this.h9_1;
|
|
@@ -691,33 +707,33 @@
|
|
|
691
707
|
}
|
|
692
708
|
while (true);
|
|
693
709
|
};
|
|
694
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
695
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
696
|
-
i.
|
|
697
|
-
i.
|
|
710
|
+
protoOf(GameServer$fromClientEvent$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
711
|
+
var i = new GameServer$fromClientEvent$slambda(this.g9a_1, completion);
|
|
712
|
+
i.h9a_1 = $this$dispatchAsync;
|
|
713
|
+
i.i9a_1 = store;
|
|
698
714
|
return i;
|
|
699
715
|
};
|
|
700
716
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
701
717
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
702
718
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
703
|
-
return i.
|
|
719
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
704
720
|
};
|
|
705
721
|
l.$arity = 2;
|
|
706
722
|
return l;
|
|
707
723
|
}
|
|
708
724
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
709
|
-
this.
|
|
725
|
+
this.t9a_1 = $playerId;
|
|
710
726
|
CoroutineImpl.call(this, resultContinuation);
|
|
711
727
|
}
|
|
712
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
713
|
-
var tmp = this.
|
|
728
|
+
protoOf(GameServer$playerLostConnection$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
729
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
714
730
|
tmp.g9_1 = Unit_instance;
|
|
715
731
|
tmp.h9_1 = null;
|
|
716
732
|
return tmp.m9();
|
|
717
733
|
};
|
|
718
734
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
719
735
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
720
|
-
return this.
|
|
736
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
721
737
|
};
|
|
722
738
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
723
739
|
var suspendResult = this.g9_1;
|
|
@@ -726,12 +742,12 @@
|
|
|
726
742
|
var tmp = this.e9_1;
|
|
727
743
|
if (tmp === 0) {
|
|
728
744
|
this.f9_1 = 1;
|
|
729
|
-
if (!get_isCreated(this.
|
|
745
|
+
if (!get_isCreated(this.v9a_1.state)) {
|
|
730
746
|
return Unit_instance;
|
|
731
747
|
}
|
|
732
|
-
var tmp_0 = this.
|
|
748
|
+
var tmp_0 = this.v9a_1.dispatch;
|
|
733
749
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
734
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
750
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.t9a_1));
|
|
735
751
|
return Unit_instance;
|
|
736
752
|
} else if (tmp === 1) {
|
|
737
753
|
throw this.h9_1;
|
|
@@ -742,33 +758,33 @@
|
|
|
742
758
|
}
|
|
743
759
|
while (true);
|
|
744
760
|
};
|
|
745
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
746
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
747
|
-
i.
|
|
748
|
-
i.
|
|
761
|
+
protoOf(GameServer$playerLostConnection$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
762
|
+
var i = new GameServer$playerLostConnection$slambda(this.t9a_1, completion);
|
|
763
|
+
i.u9a_1 = $this$dispatchAsync;
|
|
764
|
+
i.v9a_1 = store;
|
|
749
765
|
return i;
|
|
750
766
|
};
|
|
751
767
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
752
768
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
753
769
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
754
|
-
return i.
|
|
770
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
755
771
|
};
|
|
756
772
|
l.$arity = 2;
|
|
757
773
|
return l;
|
|
758
774
|
}
|
|
759
775
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
760
|
-
this.
|
|
776
|
+
this.e9b_1 = $playerId;
|
|
761
777
|
CoroutineImpl.call(this, resultContinuation);
|
|
762
778
|
}
|
|
763
|
-
protoOf(GameServer$playerLive$slambda).
|
|
764
|
-
var tmp = this.
|
|
779
|
+
protoOf(GameServer$playerLive$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
780
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
765
781
|
tmp.g9_1 = Unit_instance;
|
|
766
782
|
tmp.h9_1 = null;
|
|
767
783
|
return tmp.m9();
|
|
768
784
|
};
|
|
769
785
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
770
786
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
771
|
-
return this.
|
|
787
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
772
788
|
};
|
|
773
789
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
774
790
|
var suspendResult = this.g9_1;
|
|
@@ -777,9 +793,9 @@
|
|
|
777
793
|
var tmp = this.e9_1;
|
|
778
794
|
if (tmp === 0) {
|
|
779
795
|
this.f9_1 = 1;
|
|
780
|
-
var tmp_0 = this.
|
|
796
|
+
var tmp_0 = this.g9b_1.dispatch;
|
|
781
797
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
782
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
798
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.e9b_1));
|
|
783
799
|
return Unit_instance;
|
|
784
800
|
} else if (tmp === 1) {
|
|
785
801
|
throw this.h9_1;
|
|
@@ -790,33 +806,33 @@
|
|
|
790
806
|
}
|
|
791
807
|
while (true);
|
|
792
808
|
};
|
|
793
|
-
protoOf(GameServer$playerLive$slambda).
|
|
794
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
795
|
-
i.
|
|
796
|
-
i.
|
|
809
|
+
protoOf(GameServer$playerLive$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
810
|
+
var i = new GameServer$playerLive$slambda(this.e9b_1, completion);
|
|
811
|
+
i.f9b_1 = $this$dispatchAsync;
|
|
812
|
+
i.g9b_1 = store;
|
|
797
813
|
return i;
|
|
798
814
|
};
|
|
799
815
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
800
816
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
801
817
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
802
|
-
return i.
|
|
818
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
803
819
|
};
|
|
804
820
|
l.$arity = 2;
|
|
805
821
|
return l;
|
|
806
822
|
}
|
|
807
823
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
808
|
-
this.
|
|
824
|
+
this.p9b_1 = $playerId;
|
|
809
825
|
CoroutineImpl.call(this, resultContinuation);
|
|
810
826
|
}
|
|
811
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
812
|
-
var tmp = this.
|
|
827
|
+
protoOf(GameServer$playerLeft$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
828
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
813
829
|
tmp.g9_1 = Unit_instance;
|
|
814
830
|
tmp.h9_1 = null;
|
|
815
831
|
return tmp.m9();
|
|
816
832
|
};
|
|
817
833
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
818
834
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
819
|
-
return this.
|
|
835
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
820
836
|
};
|
|
821
837
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
822
838
|
var suspendResult = this.g9_1;
|
|
@@ -825,9 +841,9 @@
|
|
|
825
841
|
var tmp = this.e9_1;
|
|
826
842
|
if (tmp === 0) {
|
|
827
843
|
this.f9_1 = 1;
|
|
828
|
-
var tmp_0 = this.
|
|
844
|
+
var tmp_0 = this.r9b_1.dispatch;
|
|
829
845
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
830
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
846
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.p9b_1));
|
|
831
847
|
return Unit_instance;
|
|
832
848
|
} else if (tmp === 1) {
|
|
833
849
|
throw this.h9_1;
|
|
@@ -838,38 +854,39 @@
|
|
|
838
854
|
}
|
|
839
855
|
while (true);
|
|
840
856
|
};
|
|
841
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
842
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
843
|
-
i.
|
|
844
|
-
i.
|
|
857
|
+
protoOf(GameServer$playerLeft$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
858
|
+
var i = new GameServer$playerLeft$slambda(this.p9b_1, completion);
|
|
859
|
+
i.q9b_1 = $this$dispatchAsync;
|
|
860
|
+
i.r9b_1 = store;
|
|
845
861
|
return i;
|
|
846
862
|
};
|
|
847
863
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
848
864
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
849
865
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
850
|
-
return i.
|
|
866
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
851
867
|
};
|
|
852
868
|
l.$arity = 2;
|
|
853
869
|
return l;
|
|
854
870
|
}
|
|
855
|
-
function GameServer$roomOnCreate$slambda($
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
871
|
+
function GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
872
|
+
this.a9c_1 = $usersArray;
|
|
873
|
+
this.b9c_1 = $gameCreatorId;
|
|
874
|
+
this.c9c_1 = $config;
|
|
875
|
+
this.d9c_1 = $transition;
|
|
876
|
+
this.e9c_1 = this$0;
|
|
877
|
+
this.f9c_1 = $spectators;
|
|
878
|
+
this.g9c_1 = $roomId;
|
|
862
879
|
CoroutineImpl.call(this, resultContinuation);
|
|
863
880
|
}
|
|
864
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
865
|
-
var tmp = this.
|
|
881
|
+
protoOf(GameServer$roomOnCreate$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
882
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
866
883
|
tmp.g9_1 = Unit_instance;
|
|
867
884
|
tmp.h9_1 = null;
|
|
868
885
|
return tmp.m9();
|
|
869
886
|
};
|
|
870
887
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
871
888
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
872
|
-
return this.
|
|
889
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
873
890
|
};
|
|
874
891
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
875
892
|
var suspendResult = this.g9_1;
|
|
@@ -878,13 +895,58 @@
|
|
|
878
895
|
var tmp = this.e9_1;
|
|
879
896
|
if (tmp === 0) {
|
|
880
897
|
this.f9_1 = 1;
|
|
881
|
-
var
|
|
882
|
-
var gameCreatorUser = getPlayer(
|
|
883
|
-
var tmp_0
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
898
|
+
var users = toList(this.a9c_1);
|
|
899
|
+
var gameCreatorUser = getPlayer(users, this.b9c_1);
|
|
900
|
+
var tmp_0;
|
|
901
|
+
if (this.c9c_1.mode.shufflePlayers && this.d9c_1 == null) {
|
|
902
|
+
tmp_0 = sortWithItem(_get_random__h29cgo(this.e9c_1).s5s(toMutableList(users)), gameCreatorUser);
|
|
903
|
+
} else {
|
|
904
|
+
var tmp0_safe_receiver = this.d9c_1;
|
|
905
|
+
var previousPlayers = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.previousPlayers;
|
|
906
|
+
var tmp_1;
|
|
907
|
+
if (!(previousPlayers == null) && this.c9c_1.playersMode.isTeamGame) {
|
|
908
|
+
var tmp_2 = _get_teamsLogicProvider__u10pm6(this.e9c_1);
|
|
909
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(previousPlayers, 10));
|
|
910
|
+
var tmp0_iterator = previousPlayers.j();
|
|
911
|
+
while (tmp0_iterator.k()) {
|
|
912
|
+
var item = tmp0_iterator.l();
|
|
913
|
+
destination.e(new GameServer$roomOnCreate$1$updatedUsers$previousTeams$1(item));
|
|
914
|
+
}
|
|
915
|
+
var previousTeams = tmp_2.s8d(destination);
|
|
916
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
917
|
+
var tmp0_iterator_0 = users.j();
|
|
918
|
+
while (tmp0_iterator_0.k()) {
|
|
919
|
+
var element = tmp0_iterator_0.l();
|
|
920
|
+
if (!previousPlayers.s1(element.f67_1)) {
|
|
921
|
+
destination_0.e(element);
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
var newUsers = destination_0.j();
|
|
925
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(previousTeams, 10));
|
|
926
|
+
var tmp0_iterator_1 = previousTeams.j();
|
|
927
|
+
while (tmp0_iterator_1.k()) {
|
|
928
|
+
var item_0 = tmp0_iterator_1.l();
|
|
929
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(item_0, 10));
|
|
930
|
+
var tmp0_iterator_2 = item_0.j();
|
|
931
|
+
while (tmp0_iterator_2.k()) {
|
|
932
|
+
var item_1 = tmp0_iterator_2.l();
|
|
933
|
+
var tmp0_elvis_lhs = firstOrNull(filterByPlayerId(users, item_1.playerId));
|
|
934
|
+
destination_2.e(tmp0_elvis_lhs == null ? newUsers.l() : tmp0_elvis_lhs);
|
|
935
|
+
}
|
|
936
|
+
destination_1.e(destination_2);
|
|
937
|
+
}
|
|
938
|
+
var updatedTeams = destination_1;
|
|
939
|
+
tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9c_1).w8d(updatedTeams);
|
|
940
|
+
} else {
|
|
941
|
+
tmp_1 = users;
|
|
942
|
+
}
|
|
943
|
+
tmp_0 = tmp_1;
|
|
944
|
+
}
|
|
945
|
+
var updatedUsers = tmp_0;
|
|
946
|
+
var tmp_3 = this.i9c_1.dispatch;
|
|
947
|
+
var tmp1_version = GameEngineConfig_instance.version;
|
|
948
|
+
var tmp2_spectators = toList(this.f9c_1);
|
|
949
|
+
tmp_3(new StartGameMechanicAction(this.c9c_1, this.g9c_1, tmp1_version, this.b9c_1, updatedUsers, VOID, tmp2_spectators));
|
|
888
950
|
return Unit_instance;
|
|
889
951
|
} else if (tmp === 1) {
|
|
890
952
|
throw this.h9_1;
|
|
@@ -895,33 +957,33 @@
|
|
|
895
957
|
}
|
|
896
958
|
while (true);
|
|
897
959
|
};
|
|
898
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
899
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
900
|
-
i.
|
|
901
|
-
i.
|
|
960
|
+
protoOf(GameServer$roomOnCreate$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
961
|
+
var i = new GameServer$roomOnCreate$slambda(this.a9c_1, this.b9c_1, this.c9c_1, this.d9c_1, this.e9c_1, this.f9c_1, this.g9c_1, completion);
|
|
962
|
+
i.h9c_1 = $this$dispatchAsync;
|
|
963
|
+
i.i9c_1 = store;
|
|
902
964
|
return i;
|
|
903
965
|
};
|
|
904
|
-
function GameServer$roomOnCreate$slambda_0($
|
|
905
|
-
var i = new GameServer$roomOnCreate$slambda($
|
|
966
|
+
function GameServer$roomOnCreate$slambda_0($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation) {
|
|
967
|
+
var i = new GameServer$roomOnCreate$slambda($usersArray, $gameCreatorId, $config, $transition, this$0, $spectators, $roomId, resultContinuation);
|
|
906
968
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
907
|
-
return i.
|
|
969
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
908
970
|
};
|
|
909
971
|
l.$arity = 2;
|
|
910
972
|
return l;
|
|
911
973
|
}
|
|
912
974
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
913
|
-
this.
|
|
975
|
+
this.r9c_1 = $tableLite;
|
|
914
976
|
CoroutineImpl.call(this, resultContinuation);
|
|
915
977
|
}
|
|
916
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
917
|
-
var tmp = this.
|
|
978
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
979
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
918
980
|
tmp.g9_1 = Unit_instance;
|
|
919
981
|
tmp.h9_1 = null;
|
|
920
982
|
return tmp.m9();
|
|
921
983
|
};
|
|
922
984
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
923
985
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
924
|
-
return this.
|
|
986
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
925
987
|
};
|
|
926
988
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
927
989
|
var suspendResult = this.g9_1;
|
|
@@ -930,11 +992,11 @@
|
|
|
930
992
|
var tmp = this.e9_1;
|
|
931
993
|
if (tmp === 0) {
|
|
932
994
|
this.f9_1 = 1;
|
|
933
|
-
var tmp_0 = this.
|
|
995
|
+
var tmp_0 = this.t9c_1.dispatch;
|
|
934
996
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
935
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
997
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.r9c_1);
|
|
936
998
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
937
|
-
this.
|
|
999
|
+
this.t9c_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
938
1000
|
return Unit_instance;
|
|
939
1001
|
} else if (tmp === 1) {
|
|
940
1002
|
throw this.h9_1;
|
|
@@ -945,33 +1007,33 @@
|
|
|
945
1007
|
}
|
|
946
1008
|
while (true);
|
|
947
1009
|
};
|
|
948
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
949
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
950
|
-
i.
|
|
951
|
-
i.
|
|
1010
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
1011
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.r9c_1, completion);
|
|
1012
|
+
i.s9c_1 = $this$dispatchAsync;
|
|
1013
|
+
i.t9c_1 = store;
|
|
952
1014
|
return i;
|
|
953
1015
|
};
|
|
954
1016
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
955
1017
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
956
1018
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
957
|
-
return i.
|
|
1019
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
958
1020
|
};
|
|
959
1021
|
l.$arity = 2;
|
|
960
1022
|
return l;
|
|
961
1023
|
}
|
|
962
1024
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
963
|
-
this.
|
|
1025
|
+
this.c9d_1 = $spectators;
|
|
964
1026
|
CoroutineImpl.call(this, resultContinuation);
|
|
965
1027
|
}
|
|
966
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
967
|
-
var tmp = this.
|
|
1028
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
1029
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
968
1030
|
tmp.g9_1 = Unit_instance;
|
|
969
1031
|
tmp.h9_1 = null;
|
|
970
1032
|
return tmp.m9();
|
|
971
1033
|
};
|
|
972
1034
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
973
1035
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
974
|
-
return this.
|
|
1036
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
975
1037
|
};
|
|
976
1038
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
977
1039
|
var suspendResult = this.g9_1;
|
|
@@ -980,7 +1042,7 @@
|
|
|
980
1042
|
var tmp = this.e9_1;
|
|
981
1043
|
if (tmp === 0) {
|
|
982
1044
|
this.f9_1 = 1;
|
|
983
|
-
this.
|
|
1045
|
+
this.e9d_1.dispatch(new AddSpectatorsAction(toList(this.c9d_1)));
|
|
984
1046
|
return Unit_instance;
|
|
985
1047
|
} else if (tmp === 1) {
|
|
986
1048
|
throw this.h9_1;
|
|
@@ -991,33 +1053,33 @@
|
|
|
991
1053
|
}
|
|
992
1054
|
while (true);
|
|
993
1055
|
};
|
|
994
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
995
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
996
|
-
i.
|
|
997
|
-
i.
|
|
1056
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
1057
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.c9d_1, completion);
|
|
1058
|
+
i.d9d_1 = $this$dispatchAsync;
|
|
1059
|
+
i.e9d_1 = store;
|
|
998
1060
|
return i;
|
|
999
1061
|
};
|
|
1000
1062
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1001
1063
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1002
1064
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1003
|
-
return i.
|
|
1065
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
1004
1066
|
};
|
|
1005
1067
|
l.$arity = 2;
|
|
1006
1068
|
return l;
|
|
1007
1069
|
}
|
|
1008
1070
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1009
|
-
this.
|
|
1071
|
+
this.n9d_1 = $spectators;
|
|
1010
1072
|
CoroutineImpl.call(this, resultContinuation);
|
|
1011
1073
|
}
|
|
1012
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1013
|
-
var tmp = this.
|
|
1074
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
1075
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
1014
1076
|
tmp.g9_1 = Unit_instance;
|
|
1015
1077
|
tmp.h9_1 = null;
|
|
1016
1078
|
return tmp.m9();
|
|
1017
1079
|
};
|
|
1018
1080
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1019
1081
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1020
|
-
return this.
|
|
1082
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1021
1083
|
};
|
|
1022
1084
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1023
1085
|
var suspendResult = this.g9_1;
|
|
@@ -1026,7 +1088,7 @@
|
|
|
1026
1088
|
var tmp = this.e9_1;
|
|
1027
1089
|
if (tmp === 0) {
|
|
1028
1090
|
this.f9_1 = 1;
|
|
1029
|
-
this.
|
|
1091
|
+
this.p9d_1.dispatch(new RemoveSpectatorsAction(toList(this.n9d_1)));
|
|
1030
1092
|
return Unit_instance;
|
|
1031
1093
|
} else if (tmp === 1) {
|
|
1032
1094
|
throw this.h9_1;
|
|
@@ -1037,34 +1099,34 @@
|
|
|
1037
1099
|
}
|
|
1038
1100
|
while (true);
|
|
1039
1101
|
};
|
|
1040
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1041
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1042
|
-
i.
|
|
1043
|
-
i.
|
|
1102
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
1103
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.n9d_1, completion);
|
|
1104
|
+
i.o9d_1 = $this$dispatchAsync;
|
|
1105
|
+
i.p9d_1 = store;
|
|
1044
1106
|
return i;
|
|
1045
1107
|
};
|
|
1046
1108
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1047
1109
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1048
1110
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1049
|
-
return i.
|
|
1111
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
1050
1112
|
};
|
|
1051
1113
|
l.$arity = 2;
|
|
1052
1114
|
return l;
|
|
1053
1115
|
}
|
|
1054
1116
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1117
|
+
this.y9d_1 = $playerId;
|
|
1118
|
+
this.z9d_1 = this$0;
|
|
1057
1119
|
CoroutineImpl.call(this, resultContinuation);
|
|
1058
1120
|
}
|
|
1059
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1060
|
-
var tmp = this.
|
|
1121
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
1122
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
1061
1123
|
tmp.g9_1 = Unit_instance;
|
|
1062
1124
|
tmp.h9_1 = null;
|
|
1063
1125
|
return tmp.m9();
|
|
1064
1126
|
};
|
|
1065
1127
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1066
1128
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1067
|
-
return this.
|
|
1129
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1068
1130
|
};
|
|
1069
1131
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1070
1132
|
var suspendResult = this.g9_1;
|
|
@@ -1073,14 +1135,14 @@
|
|
|
1073
1135
|
var tmp = this.e9_1;
|
|
1074
1136
|
if (tmp === 0) {
|
|
1075
1137
|
this.f9_1 = 1;
|
|
1076
|
-
var table = this.
|
|
1077
|
-
var player = getPlayer(table.players, this.
|
|
1138
|
+
var table = this.b9e_1.state.a6n();
|
|
1139
|
+
var player = getPlayer(table.players, this.y9d_1);
|
|
1078
1140
|
if (player.s6s_1.q69().h68_1.isLive) {
|
|
1079
|
-
this.
|
|
1141
|
+
this.b9e_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.z9d_1).l8k(player, table));
|
|
1080
1142
|
} else {
|
|
1081
|
-
var tmp_0 = this.
|
|
1143
|
+
var tmp_0 = this.b9e_1.dispatch;
|
|
1082
1144
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1083
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1145
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.y9d_1));
|
|
1084
1146
|
}
|
|
1085
1147
|
return Unit_instance;
|
|
1086
1148
|
} else if (tmp === 1) {
|
|
@@ -1092,34 +1154,34 @@
|
|
|
1092
1154
|
}
|
|
1093
1155
|
while (true);
|
|
1094
1156
|
};
|
|
1095
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1096
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1097
|
-
i.
|
|
1098
|
-
i.
|
|
1157
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
1158
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.y9d_1, this.z9d_1, completion);
|
|
1159
|
+
i.a9e_1 = $this$dispatchAsync;
|
|
1160
|
+
i.b9e_1 = store;
|
|
1099
1161
|
return i;
|
|
1100
1162
|
};
|
|
1101
1163
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1102
1164
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1103
1165
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1104
|
-
return i.
|
|
1166
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
1105
1167
|
};
|
|
1106
1168
|
l.$arity = 2;
|
|
1107
1169
|
return l;
|
|
1108
1170
|
}
|
|
1109
1171
|
function GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation) {
|
|
1110
|
-
this.
|
|
1111
|
-
this.
|
|
1172
|
+
this.k9e_1 = this$0;
|
|
1173
|
+
this.l9e_1 = $newRid;
|
|
1112
1174
|
CoroutineImpl.call(this, resultContinuation);
|
|
1113
1175
|
}
|
|
1114
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1115
|
-
var tmp = this.
|
|
1176
|
+
protoOf(GameServer$roomOnDelete$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
1177
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
1116
1178
|
tmp.g9_1 = Unit_instance;
|
|
1117
1179
|
tmp.h9_1 = null;
|
|
1118
1180
|
return tmp.m9();
|
|
1119
1181
|
};
|
|
1120
1182
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1121
1183
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1122
|
-
return this.
|
|
1184
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1123
1185
|
};
|
|
1124
1186
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1125
1187
|
var suspendResult = this.g9_1;
|
|
@@ -1128,23 +1190,23 @@
|
|
|
1128
1190
|
var tmp = this.e9_1;
|
|
1129
1191
|
if (tmp === 0) {
|
|
1130
1192
|
this.f9_1 = 1;
|
|
1131
|
-
var it = this.
|
|
1193
|
+
var it = this.k9e_1.n67().b6m_1;
|
|
1132
1194
|
var tmp_0;
|
|
1133
1195
|
if (it == null) {
|
|
1134
|
-
_get_logger__rkp4sl(this.
|
|
1196
|
+
_get_logger__rkp4sl(this.k9e_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1135
1197
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1136
1198
|
} else {
|
|
1137
1199
|
tmp_0 = it;
|
|
1138
1200
|
}
|
|
1139
1201
|
var terminationState = tmp_0;
|
|
1140
|
-
var tmp_1 = this.
|
|
1141
|
-
var tmp1_reason = terminationState.
|
|
1142
|
-
var tmp0_safe_receiver = terminationState.
|
|
1202
|
+
var tmp_1 = this.n9e_1.dispatch;
|
|
1203
|
+
var tmp1_reason = terminationState.m8o_1;
|
|
1204
|
+
var tmp0_safe_receiver = terminationState.n8o_1;
|
|
1143
1205
|
var tmp_2;
|
|
1144
1206
|
if (tmp0_safe_receiver == null) {
|
|
1145
1207
|
tmp_2 = null;
|
|
1146
1208
|
} else {
|
|
1147
|
-
var value = this.
|
|
1209
|
+
var value = this.l9e_1;
|
|
1148
1210
|
var tmp$ret$0 = Unit_instance;
|
|
1149
1211
|
l$ret$1: do {
|
|
1150
1212
|
if (value == null) {
|
|
@@ -1159,7 +1221,7 @@
|
|
|
1159
1221
|
tmp_2 = tmp0_safe_receiver.copy(tmp$ret$0);
|
|
1160
1222
|
}
|
|
1161
1223
|
var tmp2_transition = tmp_2;
|
|
1162
|
-
var tmp3_isGameFinished = this.
|
|
1224
|
+
var tmp3_isGameFinished = this.k9e_1.n67().a6n().isGameFinished;
|
|
1163
1225
|
tmp_1(new FinishGameMechanicAction(tmp1_reason, tmp3_isGameFinished, VOID, tmp2_transition));
|
|
1164
1226
|
return Unit_instance;
|
|
1165
1227
|
} else if (tmp === 1) {
|
|
@@ -1171,33 +1233,33 @@
|
|
|
1171
1233
|
}
|
|
1172
1234
|
while (true);
|
|
1173
1235
|
};
|
|
1174
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1175
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1176
|
-
i.
|
|
1177
|
-
i.
|
|
1236
|
+
protoOf(GameServer$roomOnDelete$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
1237
|
+
var i = new GameServer$roomOnDelete$slambda(this.k9e_1, this.l9e_1, completion);
|
|
1238
|
+
i.m9e_1 = $this$dispatchAsync;
|
|
1239
|
+
i.n9e_1 = store;
|
|
1178
1240
|
return i;
|
|
1179
1241
|
};
|
|
1180
1242
|
function GameServer$roomOnDelete$slambda_0(this$0, $newRid, resultContinuation) {
|
|
1181
1243
|
var i = new GameServer$roomOnDelete$slambda(this$0, $newRid, resultContinuation);
|
|
1182
1244
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1183
|
-
return i.
|
|
1245
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
1184
1246
|
};
|
|
1185
1247
|
l.$arity = 2;
|
|
1186
1248
|
return l;
|
|
1187
1249
|
}
|
|
1188
1250
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1189
|
-
this.
|
|
1251
|
+
this.w9e_1 = $enabled;
|
|
1190
1252
|
CoroutineImpl.call(this, resultContinuation);
|
|
1191
1253
|
}
|
|
1192
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1193
|
-
var tmp = this.
|
|
1254
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
1255
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
1194
1256
|
tmp.g9_1 = Unit_instance;
|
|
1195
1257
|
tmp.h9_1 = null;
|
|
1196
1258
|
return tmp.m9();
|
|
1197
1259
|
};
|
|
1198
1260
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1199
1261
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1200
|
-
return this.
|
|
1262
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1201
1263
|
};
|
|
1202
1264
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1203
1265
|
var suspendResult = this.g9_1;
|
|
@@ -1206,7 +1268,7 @@
|
|
|
1206
1268
|
var tmp = this.e9_1;
|
|
1207
1269
|
if (tmp === 0) {
|
|
1208
1270
|
this.f9_1 = 1;
|
|
1209
|
-
this.
|
|
1271
|
+
this.y9e_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.y9e_1.state).z9e_1.b9f(this.w9e_1)));
|
|
1210
1272
|
return Unit_instance;
|
|
1211
1273
|
} else if (tmp === 1) {
|
|
1212
1274
|
throw this.h9_1;
|
|
@@ -1217,35 +1279,35 @@
|
|
|
1217
1279
|
}
|
|
1218
1280
|
while (true);
|
|
1219
1281
|
};
|
|
1220
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1221
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1222
|
-
i.
|
|
1223
|
-
i.
|
|
1282
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
1283
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.w9e_1, completion);
|
|
1284
|
+
i.x9e_1 = $this$dispatchAsync;
|
|
1285
|
+
i.y9e_1 = store;
|
|
1224
1286
|
return i;
|
|
1225
1287
|
};
|
|
1226
1288
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1227
1289
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1228
1290
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1229
|
-
return i.
|
|
1291
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
1230
1292
|
};
|
|
1231
1293
|
l.$arity = 2;
|
|
1232
1294
|
return l;
|
|
1233
1295
|
}
|
|
1234
1296
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1235
|
-
this.
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1297
|
+
this.k9f_1 = $reason;
|
|
1298
|
+
this.l9f_1 = this$0;
|
|
1299
|
+
this.m9f_1 = $roomId;
|
|
1238
1300
|
CoroutineImpl.call(this, resultContinuation);
|
|
1239
1301
|
}
|
|
1240
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1241
|
-
var tmp = this.
|
|
1302
|
+
protoOf(GameServer$shutdown$slambda).j9a = function ($this$dispatchAsync, store, $completion) {
|
|
1303
|
+
var tmp = this.k9a($this$dispatchAsync, store, $completion);
|
|
1242
1304
|
tmp.g9_1 = Unit_instance;
|
|
1243
1305
|
tmp.h9_1 = null;
|
|
1244
1306
|
return tmp.m9();
|
|
1245
1307
|
};
|
|
1246
1308
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1247
1309
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1248
|
-
return this.
|
|
1310
|
+
return this.j9a(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1249
1311
|
};
|
|
1250
1312
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1251
1313
|
var suspendResult = this.g9_1;
|
|
@@ -1254,11 +1316,11 @@
|
|
|
1254
1316
|
var tmp = this.e9_1;
|
|
1255
1317
|
if (tmp === 0) {
|
|
1256
1318
|
this.f9_1 = 1;
|
|
1257
|
-
var state = this.
|
|
1319
|
+
var state = this.o9f_1.store.state;
|
|
1258
1320
|
if (state.b6n()) {
|
|
1259
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1321
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.k9f_1, get_serverShutdownReasonMapping());
|
|
1260
1322
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1261
|
-
var tmp_0 = this.
|
|
1323
|
+
var tmp_0 = this.o9f_1.dispatch;
|
|
1262
1324
|
var tmp_1 = Companion_instance_0;
|
|
1263
1325
|
var tmp_2;
|
|
1264
1326
|
switch (shutdownReason.n2_1) {
|
|
@@ -1272,10 +1334,10 @@
|
|
|
1272
1334
|
noWhenBranchMatchedException();
|
|
1273
1335
|
break;
|
|
1274
1336
|
}
|
|
1275
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1337
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.l9f_1.table.isGameFinished, this.l9f_1.table));
|
|
1276
1338
|
} else {
|
|
1277
|
-
_get_logger__rkp4sl(this.
|
|
1278
|
-
this.
|
|
1339
|
+
_get_logger__rkp4sl(this.l9f_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.m9f_1);
|
|
1340
|
+
this.o9f_1.dispatch(new ClearAction());
|
|
1279
1341
|
}
|
|
1280
1342
|
return Unit_instance;
|
|
1281
1343
|
} else if (tmp === 1) {
|
|
@@ -1287,22 +1349,22 @@
|
|
|
1287
1349
|
}
|
|
1288
1350
|
while (true);
|
|
1289
1351
|
};
|
|
1290
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1291
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1292
|
-
i.
|
|
1293
|
-
i.
|
|
1352
|
+
protoOf(GameServer$shutdown$slambda).k9a = function ($this$dispatchAsync, store, completion) {
|
|
1353
|
+
var i = new GameServer$shutdown$slambda(this.k9f_1, this.l9f_1, this.m9f_1, completion);
|
|
1354
|
+
i.n9f_1 = $this$dispatchAsync;
|
|
1355
|
+
i.o9f_1 = store;
|
|
1294
1356
|
return i;
|
|
1295
1357
|
};
|
|
1296
1358
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1297
1359
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1298
1360
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1299
|
-
return i.
|
|
1361
|
+
return i.j9a($this$dispatchAsync, store, $completion);
|
|
1300
1362
|
};
|
|
1301
1363
|
l.$arity = 2;
|
|
1302
1364
|
return l;
|
|
1303
1365
|
}
|
|
1304
1366
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1305
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1367
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.p9f()) : preloadedState;
|
|
1306
1368
|
var tmp;
|
|
1307
1369
|
if (externalReducers === VOID) {
|
|
1308
1370
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1325,28 +1387,34 @@
|
|
|
1325
1387
|
// Inline function 'org.kodein.type.generic' call
|
|
1326
1388
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1327
1389
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1328
|
-
tmp_1.
|
|
1390
|
+
tmp_1.s98_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
|
|
1329
1391
|
var tmp_3 = this;
|
|
1330
1392
|
// Inline function 'org.kodein.di.instance' call
|
|
1331
1393
|
// Inline function 'org.kodein.type.generic' call
|
|
1332
1394
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1333
1395
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1334
|
-
tmp_3.
|
|
1396
|
+
tmp_3.t98_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
|
|
1335
1397
|
var tmp_5 = this;
|
|
1336
1398
|
// Inline function 'org.kodein.di.instance' call
|
|
1337
1399
|
// Inline function 'org.kodein.type.generic' call
|
|
1338
1400
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1339
1401
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1340
|
-
tmp_5.
|
|
1402
|
+
tmp_5.u98_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
|
|
1341
1403
|
var tmp_7 = this;
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
var
|
|
1345
|
-
var
|
|
1346
|
-
|
|
1404
|
+
// Inline function 'org.kodein.di.instance' call
|
|
1405
|
+
// Inline function 'org.kodein.type.generic' call
|
|
1406
|
+
var tmp_8 = typeToken(createKType(getKClass(TeamsLogicProvider), arrayOf([]), false));
|
|
1407
|
+
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1408
|
+
tmp_7.v98_1 = Instance(di, tmp$ret$8, null).e60(this, teamsLogicProvider$factory());
|
|
1409
|
+
var tmp_9 = this;
|
|
1410
|
+
tmp_9.w98_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1411
|
+
var tmp_10 = this;
|
|
1412
|
+
var tmp0_externalMiddlewares = plus(storeContract.u8s(), externalMiddlewares);
|
|
1413
|
+
var tmp1_externalReducers = plus(storeContract.t8s(), externalReducers);
|
|
1414
|
+
tmp_10.x98_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1347
1415
|
}
|
|
1348
1416
|
protoOf(GameServer).n6l = function () {
|
|
1349
|
-
return this.
|
|
1417
|
+
return this.x98_1;
|
|
1350
1418
|
};
|
|
1351
1419
|
protoOf(GameServer).o5h = function () {
|
|
1352
1420
|
return this.n67().a6n().id;
|
|
@@ -1370,44 +1438,44 @@
|
|
|
1370
1438
|
};
|
|
1371
1439
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1372
1440
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1373
|
-
this.
|
|
1441
|
+
this.x98_1.z6m(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1374
1442
|
};
|
|
1375
1443
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1376
1444
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1377
|
-
this.
|
|
1445
|
+
this.x98_1.z6m(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1378
1446
|
};
|
|
1379
1447
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1380
1448
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1381
|
-
this.
|
|
1449
|
+
this.x98_1.z6m(GameServer$playerLive$slambda_0(playerId, null));
|
|
1382
1450
|
};
|
|
1383
1451
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1384
1452
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1385
|
-
this.
|
|
1453
|
+
this.x98_1.z6m(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1386
1454
|
};
|
|
1387
|
-
protoOf(GameServer).
|
|
1388
|
-
this.
|
|
1455
|
+
protoOf(GameServer).q9f = function (roomId, gameCreatorId, config, usersArray, transition, spectators) {
|
|
1456
|
+
this.x98_1.z6m(GameServer$roomOnCreate$slambda_0(usersArray, gameCreatorId, config, transition, this, spectators, roomId, null));
|
|
1389
1457
|
};
|
|
1390
1458
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1391
|
-
this.
|
|
1459
|
+
this.x98_1.z6m(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1392
1460
|
};
|
|
1393
1461
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1394
|
-
this.
|
|
1462
|
+
this.x98_1.z6m(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1395
1463
|
};
|
|
1396
1464
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1397
|
-
this.
|
|
1465
|
+
this.x98_1.z6m(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1398
1466
|
};
|
|
1399
1467
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1400
1468
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1401
|
-
this.
|
|
1469
|
+
this.x98_1.z6m(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1402
1470
|
};
|
|
1403
|
-
protoOf(GameServer).
|
|
1404
|
-
this.
|
|
1471
|
+
protoOf(GameServer).r9f = function (newRid) {
|
|
1472
|
+
this.x98_1.z6m(GameServer$roomOnDelete$slambda_0(this, newRid, null));
|
|
1405
1473
|
};
|
|
1406
1474
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1407
|
-
this.
|
|
1475
|
+
this.x98_1.z6m(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1408
1476
|
};
|
|
1409
|
-
protoOf(GameServer).
|
|
1410
|
-
this.
|
|
1477
|
+
protoOf(GameServer).s9f = function (reason, roomId) {
|
|
1478
|
+
this.x98_1.z6m(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1411
1479
|
};
|
|
1412
1480
|
protoOf(GameServer).clear = function () {
|
|
1413
1481
|
return this.a2();
|
|
@@ -1427,6 +1495,11 @@
|
|
|
1427
1495
|
return _get_playerConnectionInteractor__si6cxf(receiver);
|
|
1428
1496
|
}, null);
|
|
1429
1497
|
}
|
|
1498
|
+
function teamsLogicProvider$factory() {
|
|
1499
|
+
return getPropertyCallableRef('teamsLogicProvider', 1, KProperty1, function (receiver) {
|
|
1500
|
+
return _get_teamsLogicProvider__u10pm6(receiver);
|
|
1501
|
+
}, null);
|
|
1502
|
+
}
|
|
1430
1503
|
function logger$factory_0() {
|
|
1431
1504
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
1432
1505
|
return _get_logger__rkp4sl(receiver);
|
|
@@ -1442,6 +1515,11 @@
|
|
|
1442
1515
|
return _get_playerConnectionInteractor__si6cxf(receiver);
|
|
1443
1516
|
}, null);
|
|
1444
1517
|
}
|
|
1518
|
+
function teamsLogicProvider$factory_0() {
|
|
1519
|
+
return getPropertyCallableRef('teamsLogicProvider', 1, KProperty1, function (receiver) {
|
|
1520
|
+
return _get_teamsLogicProvider__u10pm6(receiver);
|
|
1521
|
+
}, null);
|
|
1522
|
+
}
|
|
1445
1523
|
function random$factory() {
|
|
1446
1524
|
return getPropertyCallableRef('random', 1, KProperty1, function (receiver) {
|
|
1447
1525
|
return _get_random__h29cgo(receiver);
|
|
@@ -1481,16 +1559,16 @@
|
|
|
1481
1559
|
return ServerShutdownReason_ERROR_instance;
|
|
1482
1560
|
}
|
|
1483
1561
|
function ServerConfig(canStartNewGame) {
|
|
1484
|
-
this.
|
|
1562
|
+
this.a9f_1 = canStartNewGame;
|
|
1485
1563
|
}
|
|
1486
|
-
protoOf(ServerConfig).
|
|
1564
|
+
protoOf(ServerConfig).b9f = function (canStartNewGame) {
|
|
1487
1565
|
return new ServerConfig(canStartNewGame);
|
|
1488
1566
|
};
|
|
1489
1567
|
protoOf(ServerConfig).toString = function () {
|
|
1490
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1568
|
+
return 'ServerConfig(canStartNewGame=' + this.a9f_1 + ')';
|
|
1491
1569
|
};
|
|
1492
1570
|
protoOf(ServerConfig).hashCode = function () {
|
|
1493
|
-
return getBooleanHashCode(this.
|
|
1571
|
+
return getBooleanHashCode(this.a9f_1);
|
|
1494
1572
|
};
|
|
1495
1573
|
protoOf(ServerConfig).equals = function (other) {
|
|
1496
1574
|
if (this === other)
|
|
@@ -1498,7 +1576,7 @@
|
|
|
1498
1576
|
if (!(other instanceof ServerConfig))
|
|
1499
1577
|
return false;
|
|
1500
1578
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1501
|
-
if (!(this.
|
|
1579
|
+
if (!(this.a9f_1 === tmp0_other_with_cast.a9f_1))
|
|
1502
1580
|
return false;
|
|
1503
1581
|
return true;
|
|
1504
1582
|
};
|
|
@@ -1730,18 +1808,18 @@
|
|
|
1730
1808
|
function ToClientEventsObserver() {
|
|
1731
1809
|
}
|
|
1732
1810
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1733
|
-
this.
|
|
1734
|
-
this.
|
|
1811
|
+
this.c9g_1 = this$0;
|
|
1812
|
+
this.d9g_1 = $actions;
|
|
1735
1813
|
CoroutineImpl.call(this, resultContinuation);
|
|
1736
1814
|
}
|
|
1737
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1738
|
-
var tmp = this.
|
|
1815
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).k9g = function ($this$flow, $completion) {
|
|
1816
|
+
var tmp = this.l9g($this$flow, $completion);
|
|
1739
1817
|
tmp.g9_1 = Unit_instance;
|
|
1740
1818
|
tmp.h9_1 = null;
|
|
1741
1819
|
return tmp.m9();
|
|
1742
1820
|
};
|
|
1743
1821
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1744
|
-
return this.
|
|
1822
|
+
return this.k9g((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1745
1823
|
};
|
|
1746
1824
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1747
1825
|
var suspendResult = this.g9_1;
|
|
@@ -1752,23 +1830,23 @@
|
|
|
1752
1830
|
case 0:
|
|
1753
1831
|
this.f9_1 = 4;
|
|
1754
1832
|
var tmp_0 = this;
|
|
1755
|
-
tmp_0.
|
|
1833
|
+
tmp_0.f9g_1 = this.c9g_1.q9g_1;
|
|
1756
1834
|
var tmp_1 = this;
|
|
1757
|
-
tmp_1.
|
|
1758
|
-
this.
|
|
1835
|
+
tmp_1.g9g_1 = transformToEmits(this.c9g_1, this.d9g_1);
|
|
1836
|
+
this.h9g_1 = this.g9g_1.j();
|
|
1759
1837
|
this.e9_1 = 1;
|
|
1760
1838
|
continue $sm;
|
|
1761
1839
|
case 1:
|
|
1762
|
-
if (!this.
|
|
1840
|
+
if (!this.h9g_1.k()) {
|
|
1763
1841
|
this.e9_1 = 3;
|
|
1764
1842
|
continue $sm;
|
|
1765
1843
|
}
|
|
1766
1844
|
|
|
1767
|
-
this.
|
|
1845
|
+
this.i9g_1 = this.h9g_1.l();
|
|
1768
1846
|
var tmp_2 = this;
|
|
1769
|
-
tmp_2.
|
|
1847
|
+
tmp_2.j9g_1 = this.i9g_1;
|
|
1770
1848
|
this.e9_1 = 2;
|
|
1771
|
-
suspendResult = this.
|
|
1849
|
+
suspendResult = this.e9g_1.p18(this.j9g_1, this);
|
|
1772
1850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1773
1851
|
return suspendResult;
|
|
1774
1852
|
}
|
|
@@ -1779,10 +1857,10 @@
|
|
|
1779
1857
|
continue $sm;
|
|
1780
1858
|
case 3:
|
|
1781
1859
|
l$ret$1: do {
|
|
1782
|
-
var this_0 = this.
|
|
1860
|
+
var this_0 = this.c9g_1.p9g_1;
|
|
1783
1861
|
while (true) {
|
|
1784
1862
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1785
|
-
var upd = cur - this.
|
|
1863
|
+
var upd = cur - this.d9g_1.m() | 0;
|
|
1786
1864
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1787
1865
|
break l$ret$1;
|
|
1788
1866
|
}
|
|
@@ -1804,15 +1882,15 @@
|
|
|
1804
1882
|
}
|
|
1805
1883
|
while (true);
|
|
1806
1884
|
};
|
|
1807
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1808
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1809
|
-
i.
|
|
1885
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).l9g = function ($this$flow, completion) {
|
|
1886
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.c9g_1, this.d9g_1, completion);
|
|
1887
|
+
i.e9g_1 = $this$flow;
|
|
1810
1888
|
return i;
|
|
1811
1889
|
};
|
|
1812
1890
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1813
1891
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1814
1892
|
var l = function ($this$flow, $completion) {
|
|
1815
|
-
return i.
|
|
1893
|
+
return i.k9g($this$flow, $completion);
|
|
1816
1894
|
};
|
|
1817
1895
|
l.$arity = 1;
|
|
1818
1896
|
return l;
|
|
@@ -1840,7 +1918,7 @@
|
|
|
1840
1918
|
var tmp_0;
|
|
1841
1919
|
if (value == null) {
|
|
1842
1920
|
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
1843
|
-
var answer = ArrayList_init_$Create$();
|
|
1921
|
+
var answer = ArrayList_init_$Create$_0();
|
|
1844
1922
|
destination.j2(key, answer);
|
|
1845
1923
|
tmp_0 = answer;
|
|
1846
1924
|
} else {
|
|
@@ -1855,7 +1933,7 @@
|
|
|
1855
1933
|
|
|
1856
1934
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1857
1935
|
|
|
1858
|
-
var destination_0 = ArrayList_init_$Create$
|
|
1936
|
+
var destination_0 = ArrayList_init_$Create$(groups.m());
|
|
1859
1937
|
// Inline function 'kotlin.collections.iterator' call
|
|
1860
1938
|
|
|
1861
1939
|
var tmp0_iterator_0 = groups.s().j();
|
|
@@ -1885,29 +1963,29 @@
|
|
|
1885
1963
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1886
1964
|
}
|
|
1887
1965
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1888
|
-
var tmp = $this.
|
|
1966
|
+
var tmp = $this.o9g_1.g6d();
|
|
1889
1967
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1890
|
-
var this_0 = _this__u8e3s4.
|
|
1968
|
+
var this_0 = _this__u8e3s4.t9g_1;
|
|
1891
1969
|
var tmp_0 = copyToArray(this_0);
|
|
1892
1970
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1893
|
-
var this_1 = _this__u8e3s4.
|
|
1971
|
+
var this_1 = _this__u8e3s4.u9g_1;
|
|
1894
1972
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1895
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1973
|
+
return new ActionDeliveryPayload(_this__u8e3s4.s9g_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.v9g_1);
|
|
1896
1974
|
}
|
|
1897
1975
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1901
|
-
this.
|
|
1976
|
+
this.s9g_1 = tableId;
|
|
1977
|
+
this.t9g_1 = includePlayers;
|
|
1978
|
+
this.u9g_1 = excludePlayers;
|
|
1979
|
+
this.v9g_1 = deliveryType;
|
|
1902
1980
|
}
|
|
1903
1981
|
protoOf(GroupKey).toString = function () {
|
|
1904
|
-
return 'GroupKey(tableId=' + this.
|
|
1982
|
+
return 'GroupKey(tableId=' + this.s9g_1 + ', includePlayers=' + toString(this.t9g_1) + ', excludePlayers=' + toString(this.u9g_1) + ', deliveryType=' + this.v9g_1.toString() + ')';
|
|
1905
1983
|
};
|
|
1906
1984
|
protoOf(GroupKey).hashCode = function () {
|
|
1907
|
-
var result = getStringHashCode(this.
|
|
1908
|
-
result = imul(result, 31) + hashCode(this.
|
|
1909
|
-
result = imul(result, 31) + hashCode(this.
|
|
1910
|
-
result = imul(result, 31) + this.
|
|
1985
|
+
var result = getStringHashCode(this.s9g_1);
|
|
1986
|
+
result = imul(result, 31) + hashCode(this.t9g_1) | 0;
|
|
1987
|
+
result = imul(result, 31) + hashCode(this.u9g_1) | 0;
|
|
1988
|
+
result = imul(result, 31) + this.v9g_1.hashCode() | 0;
|
|
1911
1989
|
return result;
|
|
1912
1990
|
};
|
|
1913
1991
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1916,35 +1994,35 @@
|
|
|
1916
1994
|
if (!(other instanceof GroupKey))
|
|
1917
1995
|
return false;
|
|
1918
1996
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1919
|
-
if (!(this.
|
|
1997
|
+
if (!(this.s9g_1 === tmp0_other_with_cast.s9g_1))
|
|
1920
1998
|
return false;
|
|
1921
|
-
if (!equals(this.
|
|
1999
|
+
if (!equals(this.t9g_1, tmp0_other_with_cast.t9g_1))
|
|
1922
2000
|
return false;
|
|
1923
|
-
if (!equals(this.
|
|
2001
|
+
if (!equals(this.u9g_1, tmp0_other_with_cast.u9g_1))
|
|
1924
2002
|
return false;
|
|
1925
|
-
if (!this.
|
|
2003
|
+
if (!this.v9g_1.equals(tmp0_other_with_cast.v9g_1))
|
|
1926
2004
|
return false;
|
|
1927
2005
|
return true;
|
|
1928
2006
|
};
|
|
1929
2007
|
function Companion_0() {
|
|
1930
|
-
this.
|
|
2008
|
+
this.w9g_1 = 6;
|
|
1931
2009
|
}
|
|
1932
2010
|
var Companion_instance_8;
|
|
1933
2011
|
function Companion_getInstance_1() {
|
|
1934
2012
|
return Companion_instance_8;
|
|
1935
2013
|
}
|
|
1936
2014
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1937
|
-
this.
|
|
2015
|
+
this.f9h_1 = this$0;
|
|
1938
2016
|
CoroutineImpl.call(this, resultContinuation);
|
|
1939
2017
|
}
|
|
1940
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1941
|
-
var tmp = this.
|
|
2018
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).h9h = function (actions, $completion) {
|
|
2019
|
+
var tmp = this.i9h(actions, $completion);
|
|
1942
2020
|
tmp.g9_1 = Unit_instance;
|
|
1943
2021
|
tmp.h9_1 = null;
|
|
1944
2022
|
return tmp.m9();
|
|
1945
2023
|
};
|
|
1946
2024
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
1947
|
-
return this.
|
|
2025
|
+
return this.h9h((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1948
2026
|
};
|
|
1949
2027
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
1950
2028
|
var suspendResult = this.g9_1;
|
|
@@ -1953,7 +2031,7 @@
|
|
|
1953
2031
|
var tmp = this.e9_1;
|
|
1954
2032
|
if (tmp === 0) {
|
|
1955
2033
|
this.f9_1 = 1;
|
|
1956
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
2034
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.f9h_1, this.g9h_1, null));
|
|
1957
2035
|
} else if (tmp === 1) {
|
|
1958
2036
|
throw this.h9_1;
|
|
1959
2037
|
}
|
|
@@ -1963,23 +2041,23 @@
|
|
|
1963
2041
|
}
|
|
1964
2042
|
while (true);
|
|
1965
2043
|
};
|
|
1966
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1967
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1968
|
-
i.
|
|
2044
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).i9h = function (actions, completion) {
|
|
2045
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.f9h_1, completion);
|
|
2046
|
+
i.g9h_1 = actions;
|
|
1969
2047
|
return i;
|
|
1970
2048
|
};
|
|
1971
2049
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1972
2050
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1973
2051
|
var l = function (actions, $completion) {
|
|
1974
|
-
return i.
|
|
2052
|
+
return i.h9h(actions, $completion);
|
|
1975
2053
|
};
|
|
1976
2054
|
l.$arity = 1;
|
|
1977
2055
|
return l;
|
|
1978
2056
|
}
|
|
1979
2057
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
1980
2058
|
CoroutineImpl.call(this, resultContinuation);
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
2059
|
+
this.r9h_1 = _this__u8e3s4;
|
|
2060
|
+
this.s9h_1 = fromEvent;
|
|
1983
2061
|
}
|
|
1984
2062
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
1985
2063
|
var suspendResult = this.g9_1;
|
|
@@ -1990,9 +2068,9 @@
|
|
|
1990
2068
|
case 0:
|
|
1991
2069
|
this.f9_1 = 2;
|
|
1992
2070
|
var tmp_0 = this;
|
|
1993
|
-
tmp_0.
|
|
2071
|
+
tmp_0.t9h_1 = this.r9h_1.q9g_1;
|
|
1994
2072
|
l$ret$1: do {
|
|
1995
|
-
var this_0 = this.
|
|
2073
|
+
var this_0 = this.r9h_1.p9g_1;
|
|
1996
2074
|
while (true) {
|
|
1997
2075
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1998
2076
|
var upd = cur + 1 | 0;
|
|
@@ -2003,7 +2081,7 @@
|
|
|
2003
2081
|
}
|
|
2004
2082
|
while (false);
|
|
2005
2083
|
this.e9_1 = 1;
|
|
2006
|
-
suspendResult = this.
|
|
2084
|
+
suspendResult = this.r9h_1.r9g_1.p18(this.s9h_1, this);
|
|
2007
2085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2008
2086
|
return suspendResult;
|
|
2009
2087
|
}
|
|
@@ -2027,7 +2105,7 @@
|
|
|
2027
2105
|
};
|
|
2028
2106
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2029
2107
|
CoroutineImpl.call(this, resultContinuation);
|
|
2030
|
-
this.
|
|
2108
|
+
this.c9i_1 = _this__u8e3s4;
|
|
2031
2109
|
}
|
|
2032
2110
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2033
2111
|
var suspendResult = this.g9_1;
|
|
@@ -2038,12 +2116,12 @@
|
|
|
2038
2116
|
case 0:
|
|
2039
2117
|
this.f9_1 = 5;
|
|
2040
2118
|
var tmp_0 = this;
|
|
2041
|
-
tmp_0.
|
|
2042
|
-
this.
|
|
2119
|
+
tmp_0.d9i_1 = this.c9i_1.q9g_1;
|
|
2120
|
+
this.e9i_1 = 0;
|
|
2043
2121
|
this.e9_1 = 1;
|
|
2044
2122
|
continue $sm;
|
|
2045
2123
|
case 1:
|
|
2046
|
-
if (!!(this.p9g_1.
|
|
2124
|
+
if (!!(this.c9i_1.p9g_1.kotlinx$atomicfu$value === 0)) {
|
|
2047
2125
|
this.e9_1 = 4;
|
|
2048
2126
|
continue $sm;
|
|
2049
2127
|
}
|
|
@@ -2056,9 +2134,9 @@
|
|
|
2056
2134
|
|
|
2057
2135
|
continue $sm;
|
|
2058
2136
|
case 2:
|
|
2059
|
-
this.
|
|
2060
|
-
if (this.
|
|
2061
|
-
this.
|
|
2137
|
+
this.e9i_1 = this.e9i_1 + 1 | 0;
|
|
2138
|
+
if (this.e9i_1 > 6) {
|
|
2139
|
+
this.c9i_1.n9g_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.c9i_1.p9g_1.kotlinx$atomicfu$value);
|
|
2062
2140
|
this.e9_1 = 4;
|
|
2063
2141
|
continue $sm;
|
|
2064
2142
|
} else {
|
|
@@ -2086,42 +2164,42 @@
|
|
|
2086
2164
|
while (true);
|
|
2087
2165
|
};
|
|
2088
2166
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2167
|
+
this.m9g_1 = serverReduxConfig;
|
|
2168
|
+
this.n9g_1 = logger;
|
|
2169
|
+
this.o9g_1 = idsProvider;
|
|
2170
|
+
this.p9g_1 = atomic$ref$1(0);
|
|
2093
2171
|
var tmp = this;
|
|
2094
2172
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2095
|
-
tmp.
|
|
2096
|
-
this.
|
|
2173
|
+
tmp.q9g_1 = get_atomicfu$reentrantLock();
|
|
2174
|
+
this.r9g_1 = MutableSharedFlow();
|
|
2097
2175
|
}
|
|
2098
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2176
|
+
protoOf(ToClientEventsObserverImpl).t9f = function (fromEvent, $completion) {
|
|
2099
2177
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2100
2178
|
tmp.g9_1 = Unit_instance;
|
|
2101
2179
|
tmp.h9_1 = null;
|
|
2102
2180
|
return tmp.m9();
|
|
2103
2181
|
};
|
|
2104
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2182
|
+
protoOf(ToClientEventsObserverImpl).p8z = function ($completion) {
|
|
2105
2183
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2106
2184
|
tmp.g9_1 = Unit_instance;
|
|
2107
2185
|
tmp.h9_1 = null;
|
|
2108
2186
|
return tmp.m9();
|
|
2109
2187
|
};
|
|
2110
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2111
|
-
if (!this.
|
|
2112
|
-
return this.
|
|
2188
|
+
protoOf(ToClientEventsObserverImpl).m99 = function () {
|
|
2189
|
+
if (!this.m9g_1.enabledCombinedEvents) {
|
|
2190
|
+
return this.r9g_1;
|
|
2113
2191
|
}
|
|
2114
|
-
var tmp = windowedByInterval(this.
|
|
2192
|
+
var tmp = windowedByInterval(this.r9g_1, toLong(this.m9g_1.combinedEventsPeriod));
|
|
2115
2193
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2116
2194
|
};
|
|
2117
2195
|
function UpdateServerConfigAction(serverConfig) {
|
|
2118
|
-
this.
|
|
2196
|
+
this.f9i_1 = serverConfig;
|
|
2119
2197
|
}
|
|
2120
2198
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2121
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2199
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.f9i_1.toString() + ')';
|
|
2122
2200
|
};
|
|
2123
2201
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2124
|
-
return this.
|
|
2202
|
+
return this.f9i_1.hashCode();
|
|
2125
2203
|
};
|
|
2126
2204
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2127
2205
|
if (this === other)
|
|
@@ -2129,20 +2207,20 @@
|
|
|
2129
2207
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2130
2208
|
return false;
|
|
2131
2209
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2132
|
-
if (!this.
|
|
2210
|
+
if (!this.f9i_1.equals(tmp0_other_with_cast.f9i_1))
|
|
2133
2211
|
return false;
|
|
2134
2212
|
return true;
|
|
2135
2213
|
};
|
|
2136
2214
|
function SpectatorsAction() {
|
|
2137
2215
|
}
|
|
2138
2216
|
function AddSpectatorsAction(spectators) {
|
|
2139
|
-
this.
|
|
2217
|
+
this.g9i_1 = spectators;
|
|
2140
2218
|
}
|
|
2141
2219
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2142
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2220
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.g9i_1) + ')';
|
|
2143
2221
|
};
|
|
2144
2222
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2145
|
-
return hashCode(this.
|
|
2223
|
+
return hashCode(this.g9i_1);
|
|
2146
2224
|
};
|
|
2147
2225
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2148
2226
|
if (this === other)
|
|
@@ -2150,18 +2228,18 @@
|
|
|
2150
2228
|
if (!(other instanceof AddSpectatorsAction))
|
|
2151
2229
|
return false;
|
|
2152
2230
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2153
|
-
if (!equals(this.
|
|
2231
|
+
if (!equals(this.g9i_1, tmp0_other_with_cast.g9i_1))
|
|
2154
2232
|
return false;
|
|
2155
2233
|
return true;
|
|
2156
2234
|
};
|
|
2157
2235
|
function RemoveSpectatorsAction(spectators) {
|
|
2158
|
-
this.
|
|
2236
|
+
this.h9i_1 = spectators;
|
|
2159
2237
|
}
|
|
2160
2238
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2161
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2239
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.h9i_1) + ')';
|
|
2162
2240
|
};
|
|
2163
2241
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2164
|
-
return hashCode(this.
|
|
2242
|
+
return hashCode(this.h9i_1);
|
|
2165
2243
|
};
|
|
2166
2244
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2167
2245
|
if (this === other)
|
|
@@ -2169,72 +2247,72 @@
|
|
|
2169
2247
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2170
2248
|
return false;
|
|
2171
2249
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2172
|
-
if (!equals(this.
|
|
2250
|
+
if (!equals(this.h9i_1, tmp0_other_with_cast.h9i_1))
|
|
2173
2251
|
return false;
|
|
2174
2252
|
return true;
|
|
2175
2253
|
};
|
|
2176
2254
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2177
2255
|
// Inline function 'kotlin.getValue' call
|
|
2178
|
-
var this_0 = $this.
|
|
2256
|
+
var this_0 = $this.n9i_1;
|
|
2179
2257
|
asyncProvider$factory_0();
|
|
2180
2258
|
return this_0.u();
|
|
2181
2259
|
}
|
|
2182
2260
|
function _get_logger__rkp4sl_0($this) {
|
|
2183
2261
|
// Inline function 'kotlin.getValue' call
|
|
2184
|
-
var this_0 = $this.
|
|
2262
|
+
var this_0 = $this.o9i_1;
|
|
2185
2263
|
logger$factory_2();
|
|
2186
2264
|
return this_0.u();
|
|
2187
2265
|
}
|
|
2188
2266
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2189
2267
|
// Inline function 'kotlin.getValue' call
|
|
2190
|
-
var this_0 = $this.
|
|
2268
|
+
var this_0 = $this.p9i_1;
|
|
2191
2269
|
playerConnectionInteractor$factory_2();
|
|
2192
2270
|
return this_0.u();
|
|
2193
2271
|
}
|
|
2194
2272
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2195
2273
|
// Inline function 'kotlin.getValue' call
|
|
2196
|
-
var this_0 = $this.
|
|
2274
|
+
var this_0 = $this.q9i_1;
|
|
2197
2275
|
lastCardInteractor$factory_0();
|
|
2198
2276
|
return this_0.u();
|
|
2199
2277
|
}
|
|
2200
2278
|
function _get_serverConfig__rk2g06($this) {
|
|
2201
2279
|
// Inline function 'kotlin.getValue' call
|
|
2202
|
-
var this_0 = $this.
|
|
2280
|
+
var this_0 = $this.r9i_1;
|
|
2203
2281
|
serverConfig$factory_0();
|
|
2204
2282
|
return this_0.u();
|
|
2205
2283
|
}
|
|
2206
2284
|
function _get_logicConfig__52ww9d($this) {
|
|
2207
2285
|
// Inline function 'kotlin.getValue' call
|
|
2208
|
-
var this_0 = $this.
|
|
2286
|
+
var this_0 = $this.s9i_1;
|
|
2209
2287
|
logicConfig$factory_0();
|
|
2210
2288
|
return this_0.u();
|
|
2211
2289
|
}
|
|
2212
2290
|
function _get_idsProvider__fnfajc($this) {
|
|
2213
2291
|
// Inline function 'kotlin.getValue' call
|
|
2214
|
-
var this_0 = $this.
|
|
2292
|
+
var this_0 = $this.t9i_1;
|
|
2215
2293
|
idsProvider$factory_0();
|
|
2216
2294
|
return this_0.u();
|
|
2217
2295
|
}
|
|
2218
2296
|
function _get_botConfig__cpaxzc($this) {
|
|
2219
2297
|
// Inline function 'kotlin.getValue' call
|
|
2220
|
-
var this_0 = $this.
|
|
2298
|
+
var this_0 = $this.u9i_1;
|
|
2221
2299
|
botConfig$factory_0();
|
|
2222
2300
|
return this_0.u();
|
|
2223
2301
|
}
|
|
2224
2302
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2225
2303
|
// Inline function 'kotlin.getValue' call
|
|
2226
|
-
var this_0 = $this.
|
|
2304
|
+
var this_0 = $this.v9i_1;
|
|
2227
2305
|
scenePositionProvider$factory_0();
|
|
2228
2306
|
return this_0.u();
|
|
2229
2307
|
}
|
|
2230
2308
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2231
2309
|
// Inline function 'kotlin.getValue' call
|
|
2232
|
-
var this_0 = $this.
|
|
2310
|
+
var this_0 = $this.w9i_1;
|
|
2233
2311
|
toClientEventsObserver$factory_2();
|
|
2234
2312
|
return this_0.u();
|
|
2235
2313
|
}
|
|
2236
2314
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
2237
|
-
return !player.
|
|
2315
|
+
return !player.w68();
|
|
2238
2316
|
}
|
|
2239
2317
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
2240
2318
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -2242,77 +2320,77 @@
|
|
|
2242
2320
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2243
2321
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2244
2322
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2248
|
-
this.
|
|
2249
|
-
this.
|
|
2323
|
+
this.i9i_1 = validationStoreContract;
|
|
2324
|
+
this.j9i_1 = timersStoreContract;
|
|
2325
|
+
this.k9i_1 = botGameStoreContract;
|
|
2326
|
+
this.l9i_1 = gameMechanicStoreContract;
|
|
2327
|
+
this.m9i_1 = fileLoggerStoreContract;
|
|
2250
2328
|
var tmp = this;
|
|
2251
2329
|
// Inline function 'org.kodein.di.instance' call
|
|
2252
2330
|
// Inline function 'org.kodein.type.generic' call
|
|
2253
2331
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2254
2332
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2255
|
-
tmp.
|
|
2333
|
+
tmp.n9i_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
|
|
2256
2334
|
var tmp_1 = this;
|
|
2257
2335
|
// Inline function 'org.kodein.di.instance' call
|
|
2258
2336
|
// Inline function 'org.kodein.type.generic' call
|
|
2259
2337
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2260
2338
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2261
|
-
tmp_1.
|
|
2339
|
+
tmp_1.o9i_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
|
|
2262
2340
|
var tmp_3 = this;
|
|
2263
2341
|
// Inline function 'org.kodein.di.instance' call
|
|
2264
2342
|
// Inline function 'org.kodein.type.generic' call
|
|
2265
2343
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2266
2344
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2267
|
-
tmp_3.
|
|
2345
|
+
tmp_3.p9i_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
|
|
2268
2346
|
var tmp_5 = this;
|
|
2269
2347
|
// Inline function 'org.kodein.di.instance' call
|
|
2270
2348
|
// Inline function 'org.kodein.type.generic' call
|
|
2271
2349
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2272
2350
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2273
|
-
tmp_5.
|
|
2351
|
+
tmp_5.q9i_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
|
|
2274
2352
|
var tmp_7 = this;
|
|
2275
2353
|
// Inline function 'org.kodein.di.instance' call
|
|
2276
2354
|
// Inline function 'org.kodein.type.generic' call
|
|
2277
2355
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2278
2356
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2279
|
-
tmp_7.
|
|
2357
|
+
tmp_7.r9i_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
|
|
2280
2358
|
var tmp_9 = this;
|
|
2281
2359
|
// Inline function 'org.kodein.di.instance' call
|
|
2282
2360
|
// Inline function 'org.kodein.type.generic' call
|
|
2283
2361
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2284
2362
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2285
|
-
tmp_9.
|
|
2363
|
+
tmp_9.s9i_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
|
|
2286
2364
|
var tmp_11 = this;
|
|
2287
2365
|
// Inline function 'org.kodein.di.instance' call
|
|
2288
2366
|
// Inline function 'org.kodein.type.generic' call
|
|
2289
2367
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2290
2368
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2291
|
-
tmp_11.
|
|
2369
|
+
tmp_11.t9i_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
|
|
2292
2370
|
var tmp_13 = this;
|
|
2293
2371
|
// Inline function 'org.kodein.di.instance' call
|
|
2294
2372
|
// Inline function 'org.kodein.type.generic' call
|
|
2295
2373
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2296
2374
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2297
|
-
tmp_13.
|
|
2375
|
+
tmp_13.u9i_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
|
|
2298
2376
|
var tmp_15 = this;
|
|
2299
2377
|
// Inline function 'org.kodein.di.instance' call
|
|
2300
2378
|
// Inline function 'org.kodein.type.generic' call
|
|
2301
2379
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2302
2380
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2303
|
-
tmp_15.
|
|
2381
|
+
tmp_15.v9i_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
|
|
2304
2382
|
var tmp_17 = this;
|
|
2305
2383
|
// Inline function 'org.kodein.di.instance' call
|
|
2306
2384
|
// Inline function 'org.kodein.type.generic' call
|
|
2307
2385
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2308
2386
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2309
|
-
tmp_17.
|
|
2387
|
+
tmp_17.w9i_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
|
|
2310
2388
|
}
|
|
2311
|
-
protoOf(ServerGameStoreContract).
|
|
2312
|
-
return plus(plus(plus(plus(plus(this.
|
|
2389
|
+
protoOf(ServerGameStoreContract).t8s = function () {
|
|
2390
|
+
return plus(plus(plus(plus(plus(this.i9i_1.t8s(), this.j9i_1.t8s()), this.k9i_1.t8s()), this.l9i_1.t8s()), this.m9i_1.t8s()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2313
2391
|
};
|
|
2314
|
-
protoOf(ServerGameStoreContract).
|
|
2315
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2392
|
+
protoOf(ServerGameStoreContract).u8s = function () {
|
|
2393
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.i9i_1.u8s(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.j9i_1.u8s()), this.k9i_1.u8s()), this.l9i_1.u8s()), this.m9i_1.u8s()), 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))).m8u(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2316
2394
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2317
2395
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2318
2396
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2442,7 +2520,7 @@
|
|
|
2442
2520
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2443
2521
|
next(action_0);
|
|
2444
2522
|
var state = store.state;
|
|
2445
|
-
if (!get_serverState_0(state).
|
|
2523
|
+
if (!get_serverState_0(state).z9e_1.a9f_1 && action_0.isGameFinished) {
|
|
2446
2524
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.y6l_1));
|
|
2447
2525
|
}
|
|
2448
2526
|
};
|
|
@@ -2455,7 +2533,7 @@
|
|
|
2455
2533
|
};
|
|
2456
2534
|
}
|
|
2457
2535
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2458
|
-
this.
|
|
2536
|
+
this.z9i_1 = this$0;
|
|
2459
2537
|
}
|
|
2460
2538
|
protoOf(_no_name_provided__qut3iv_0).d6f = function (action) {
|
|
2461
2539
|
return action instanceof MechanicAction;
|
|
@@ -2470,13 +2548,13 @@
|
|
|
2470
2548
|
var tmp;
|
|
2471
2549
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2472
2550
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2473
|
-
var this_0 = this.
|
|
2474
|
-
var tableId = action_0.
|
|
2475
|
-
var gameCreatorPlayerId = action_0.
|
|
2551
|
+
var this_0 = this.z9i_1;
|
|
2552
|
+
var tableId = action_0.k8p_1;
|
|
2553
|
+
var gameCreatorPlayerId = action_0.m8p_1;
|
|
2476
2554
|
// Inline function 'kotlin.collections.map' call
|
|
2477
|
-
var this_1 = action_0.
|
|
2555
|
+
var this_1 = action_0.n8p_1;
|
|
2478
2556
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2479
|
-
var destination = ArrayList_init_$Create$
|
|
2557
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
2480
2558
|
var tmp0_iterator = this_1.j();
|
|
2481
2559
|
while (tmp0_iterator.k()) {
|
|
2482
2560
|
var item = tmp0_iterator.l();
|
|
@@ -2488,7 +2566,7 @@
|
|
|
2488
2566
|
// Inline function 'kotlin.collections.map' call
|
|
2489
2567
|
// Inline function 'kotlin.collections.filter' call
|
|
2490
2568
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2491
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
2569
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
2492
2570
|
var tmp0_iterator_0 = destination.j();
|
|
2493
2571
|
while (tmp0_iterator_0.k()) {
|
|
2494
2572
|
var element = tmp0_iterator_0.l();
|
|
@@ -2498,7 +2576,7 @@
|
|
|
2498
2576
|
}
|
|
2499
2577
|
}
|
|
2500
2578
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2501
|
-
var destination_1 = ArrayList_init_$Create$
|
|
2579
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_0, 10));
|
|
2502
2580
|
var tmp0_iterator_1 = destination_0.j();
|
|
2503
2581
|
while (tmp0_iterator_1.k()) {
|
|
2504
2582
|
var item_0 = tmp0_iterator_1.l();
|
|
@@ -2507,7 +2585,7 @@
|
|
|
2507
2585
|
destination_1.e(tmp$ret$6);
|
|
2508
2586
|
}
|
|
2509
2587
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2510
|
-
var destination_2 = ArrayList_init_$Create$();
|
|
2588
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
2511
2589
|
// Inline function 'kotlin.collections.forEach' call
|
|
2512
2590
|
var tmp0_iterator_2 = destination_1.j();
|
|
2513
2591
|
while (tmp0_iterator_2.k()) {
|
|
@@ -2515,10 +2593,10 @@
|
|
|
2515
2593
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2516
2594
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2517
2595
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2518
|
-
var tmp0_aid = this_0.
|
|
2596
|
+
var tmp0_aid = this_0.y9i_1.g6d();
|
|
2519
2597
|
// Inline function 'kotlin.collections.map' call
|
|
2520
2598
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2521
|
-
var destination_3 = ArrayList_init_$Create$
|
|
2599
|
+
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
2522
2600
|
var tmp0_iterator_3 = destination.j();
|
|
2523
2601
|
while (tmp0_iterator_3.k()) {
|
|
2524
2602
|
var item_1 = tmp0_iterator_3.l();
|
|
@@ -2540,24 +2618,24 @@
|
|
|
2540
2618
|
} else {
|
|
2541
2619
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2542
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2543
|
-
var this_2 = this.
|
|
2621
|
+
var this_2 = this.z9i_1;
|
|
2544
2622
|
var table = state.a6n();
|
|
2545
2623
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2546
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2624
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.y9i_1.g6d(), table.id, null);
|
|
2547
2625
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2548
2626
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2549
2627
|
} else {
|
|
2550
2628
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2551
2629
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2552
|
-
var this_3 = this.
|
|
2553
|
-
var tableId_0 = action_0.
|
|
2630
|
+
var this_3 = this.z9i_1;
|
|
2631
|
+
var tableId_0 = action_0.q8p_1.id;
|
|
2554
2632
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2555
2633
|
var players = getPlayers();
|
|
2556
2634
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2557
2635
|
// Inline function 'kotlin.collections.map' call
|
|
2558
2636
|
// Inline function 'kotlin.collections.filter' call
|
|
2559
2637
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2560
|
-
var destination_4 = ArrayList_init_$Create$();
|
|
2638
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
2561
2639
|
var tmp0_iterator_4 = players.j();
|
|
2562
2640
|
while (tmp0_iterator_4.k()) {
|
|
2563
2641
|
var element_1 = tmp0_iterator_4.l();
|
|
@@ -2567,7 +2645,7 @@
|
|
|
2567
2645
|
}
|
|
2568
2646
|
}
|
|
2569
2647
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2570
|
-
var destination_5 = ArrayList_init_$Create$
|
|
2648
|
+
var destination_5 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_4, 10));
|
|
2571
2649
|
var tmp0_iterator_5 = destination_4.j();
|
|
2572
2650
|
while (tmp0_iterator_5.k()) {
|
|
2573
2651
|
var item_2 = tmp0_iterator_5.l();
|
|
@@ -2576,7 +2654,7 @@
|
|
|
2576
2654
|
destination_5.e(tmp$ret$23);
|
|
2577
2655
|
}
|
|
2578
2656
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2579
|
-
var destination_6 = ArrayList_init_$Create$();
|
|
2657
|
+
var destination_6 = ArrayList_init_$Create$_0();
|
|
2580
2658
|
// Inline function 'kotlin.collections.forEach' call
|
|
2581
2659
|
var tmp0_iterator_6 = destination_5.j();
|
|
2582
2660
|
while (tmp0_iterator_6.k()) {
|
|
@@ -2584,10 +2662,10 @@
|
|
|
2584
2662
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2585
2663
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2586
2664
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2587
|
-
var tmp0_aid_0 = this_3.
|
|
2665
|
+
var tmp0_aid_0 = this_3.y9i_1.g6d();
|
|
2588
2666
|
// Inline function 'kotlin.collections.map' call
|
|
2589
2667
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2590
|
-
var destination_7 = ArrayList_init_$Create$
|
|
2668
|
+
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(players, 10));
|
|
2591
2669
|
var tmp0_iterator_7 = players.j();
|
|
2592
2670
|
while (tmp0_iterator_7.k()) {
|
|
2593
2671
|
var item_3 = tmp0_iterator_7.l();
|
|
@@ -2609,43 +2687,43 @@
|
|
|
2609
2687
|
} else {
|
|
2610
2688
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2611
2689
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2612
|
-
var this_4 = this.
|
|
2690
|
+
var this_4 = this.z9i_1;
|
|
2613
2691
|
var table_0 = state.a6n();
|
|
2614
2692
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2615
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2693
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.y9i_1.g6d(), table_0.id, null);
|
|
2616
2694
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2617
2695
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2618
2696
|
} else {
|
|
2619
2697
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2620
2698
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2621
|
-
var this_5 = this.
|
|
2699
|
+
var this_5 = this.z9i_1;
|
|
2622
2700
|
var table_1 = state.a6n();
|
|
2623
2701
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2624
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2702
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.y9i_1.g6d(), table_1.id, null);
|
|
2625
2703
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2626
2704
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2627
2705
|
} else {
|
|
2628
2706
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2629
2707
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2630
|
-
var this_6 = this.
|
|
2708
|
+
var this_6 = this.z9i_1;
|
|
2631
2709
|
var table_2 = state.a6n();
|
|
2632
2710
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2633
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2711
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.y9i_1.g6d(), table_2.id, null);
|
|
2634
2712
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2635
2713
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2636
2714
|
} else {
|
|
2637
2715
|
if (action_0 instanceof ErrorAction) {
|
|
2638
2716
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2639
|
-
var this_7 = this.
|
|
2717
|
+
var this_7 = this.z9i_1;
|
|
2640
2718
|
var table_3 = state.a6n();
|
|
2641
2719
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2642
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2720
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.y9i_1.g6d(), table_3.id, null);
|
|
2643
2721
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2644
2722
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2645
2723
|
} else {
|
|
2646
2724
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2647
2725
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2648
|
-
var this_8 = this.
|
|
2726
|
+
var this_8 = this.z9i_1;
|
|
2649
2727
|
var table_4 = state.a6n();
|
|
2650
2728
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2651
2729
|
var tableId_1 = table_4.id;
|
|
@@ -2655,7 +2733,7 @@
|
|
|
2655
2733
|
// Inline function 'kotlin.collections.map' call
|
|
2656
2734
|
// Inline function 'kotlin.collections.filter' call
|
|
2657
2735
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2658
|
-
var destination_8 = ArrayList_init_$Create$();
|
|
2736
|
+
var destination_8 = ArrayList_init_$Create$_0();
|
|
2659
2737
|
var tmp0_iterator_8 = players_0.j();
|
|
2660
2738
|
while (tmp0_iterator_8.k()) {
|
|
2661
2739
|
var element_3 = tmp0_iterator_8.l();
|
|
@@ -2665,7 +2743,7 @@
|
|
|
2665
2743
|
}
|
|
2666
2744
|
}
|
|
2667
2745
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2668
|
-
var destination_9 = ArrayList_init_$Create$
|
|
2746
|
+
var destination_9 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_8, 10));
|
|
2669
2747
|
var tmp0_iterator_9 = destination_8.j();
|
|
2670
2748
|
while (tmp0_iterator_9.k()) {
|
|
2671
2749
|
var item_4 = tmp0_iterator_9.l();
|
|
@@ -2674,7 +2752,7 @@
|
|
|
2674
2752
|
destination_9.e(tmp$ret$46);
|
|
2675
2753
|
}
|
|
2676
2754
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2677
|
-
var destination_10 = ArrayList_init_$Create$();
|
|
2755
|
+
var destination_10 = ArrayList_init_$Create$_0();
|
|
2678
2756
|
// Inline function 'kotlin.collections.forEach' call
|
|
2679
2757
|
var tmp0_iterator_10 = destination_9.j();
|
|
2680
2758
|
while (tmp0_iterator_10.k()) {
|
|
@@ -2682,10 +2760,10 @@
|
|
|
2682
2760
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2683
2761
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2684
2762
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2685
|
-
var tmp0_aid_1 = this_8.
|
|
2763
|
+
var tmp0_aid_1 = this_8.y9i_1.g6d();
|
|
2686
2764
|
// Inline function 'kotlin.collections.map' call
|
|
2687
2765
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2688
|
-
var destination_11 = ArrayList_init_$Create$
|
|
2766
|
+
var destination_11 = ArrayList_init_$Create$(collectionSizeOrDefault(players_0, 10));
|
|
2689
2767
|
var tmp0_iterator_11 = players_0.j();
|
|
2690
2768
|
while (tmp0_iterator_11.k()) {
|
|
2691
2769
|
var item_5 = tmp0_iterator_11.l();
|
|
@@ -2707,7 +2785,7 @@
|
|
|
2707
2785
|
} else {
|
|
2708
2786
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2709
2787
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2710
|
-
var this_9 = this.
|
|
2788
|
+
var this_9 = this.z9i_1;
|
|
2711
2789
|
var table_5 = state.a6n();
|
|
2712
2790
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2713
2791
|
var tableId_2 = table_5.id;
|
|
@@ -2717,7 +2795,7 @@
|
|
|
2717
2795
|
// Inline function 'kotlin.collections.map' call
|
|
2718
2796
|
// Inline function 'kotlin.collections.filter' call
|
|
2719
2797
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2720
|
-
var destination_12 = ArrayList_init_$Create$();
|
|
2798
|
+
var destination_12 = ArrayList_init_$Create$_0();
|
|
2721
2799
|
var tmp0_iterator_12 = players_1.j();
|
|
2722
2800
|
while (tmp0_iterator_12.k()) {
|
|
2723
2801
|
var element_5 = tmp0_iterator_12.l();
|
|
@@ -2727,7 +2805,7 @@
|
|
|
2727
2805
|
}
|
|
2728
2806
|
}
|
|
2729
2807
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2730
|
-
var destination_13 = ArrayList_init_$Create$
|
|
2808
|
+
var destination_13 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_12, 10));
|
|
2731
2809
|
var tmp0_iterator_13 = destination_12.j();
|
|
2732
2810
|
while (tmp0_iterator_13.k()) {
|
|
2733
2811
|
var item_6 = tmp0_iterator_13.l();
|
|
@@ -2736,7 +2814,7 @@
|
|
|
2736
2814
|
destination_13.e(tmp$ret$62);
|
|
2737
2815
|
}
|
|
2738
2816
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2739
|
-
var destination_14 = ArrayList_init_$Create$();
|
|
2817
|
+
var destination_14 = ArrayList_init_$Create$_0();
|
|
2740
2818
|
// Inline function 'kotlin.collections.forEach' call
|
|
2741
2819
|
var tmp0_iterator_14 = destination_13.j();
|
|
2742
2820
|
while (tmp0_iterator_14.k()) {
|
|
@@ -2744,10 +2822,10 @@
|
|
|
2744
2822
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2745
2823
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2746
2824
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2747
|
-
var tmp0_aid_2 = this_9.
|
|
2825
|
+
var tmp0_aid_2 = this_9.y9i_1.g6d();
|
|
2748
2826
|
// Inline function 'kotlin.collections.map' call
|
|
2749
2827
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2750
|
-
var destination_15 = ArrayList_init_$Create$
|
|
2828
|
+
var destination_15 = ArrayList_init_$Create$(collectionSizeOrDefault(players_1, 10));
|
|
2751
2829
|
var tmp0_iterator_15 = players_1.j();
|
|
2752
2830
|
while (tmp0_iterator_15.k()) {
|
|
2753
2831
|
var item_7 = tmp0_iterator_15.l();
|
|
@@ -2769,7 +2847,7 @@
|
|
|
2769
2847
|
} else {
|
|
2770
2848
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2771
2849
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2772
|
-
var this_10 = this.
|
|
2850
|
+
var this_10 = this.z9i_1;
|
|
2773
2851
|
var table_6 = state.a6n();
|
|
2774
2852
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2775
2853
|
var tableId_3 = table_6.id;
|
|
@@ -2779,7 +2857,7 @@
|
|
|
2779
2857
|
// Inline function 'kotlin.collections.map' call
|
|
2780
2858
|
// Inline function 'kotlin.collections.filter' call
|
|
2781
2859
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2782
|
-
var destination_16 = ArrayList_init_$Create$();
|
|
2860
|
+
var destination_16 = ArrayList_init_$Create$_0();
|
|
2783
2861
|
var tmp0_iterator_16 = players_2.j();
|
|
2784
2862
|
while (tmp0_iterator_16.k()) {
|
|
2785
2863
|
var element_7 = tmp0_iterator_16.l();
|
|
@@ -2789,7 +2867,7 @@
|
|
|
2789
2867
|
}
|
|
2790
2868
|
}
|
|
2791
2869
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2792
|
-
var destination_17 = ArrayList_init_$Create$
|
|
2870
|
+
var destination_17 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_16, 10));
|
|
2793
2871
|
var tmp0_iterator_17 = destination_16.j();
|
|
2794
2872
|
while (tmp0_iterator_17.k()) {
|
|
2795
2873
|
var item_8 = tmp0_iterator_17.l();
|
|
@@ -2798,7 +2876,7 @@
|
|
|
2798
2876
|
destination_17.e(tmp$ret$78);
|
|
2799
2877
|
}
|
|
2800
2878
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2801
|
-
var destination_18 = ArrayList_init_$Create$();
|
|
2879
|
+
var destination_18 = ArrayList_init_$Create$_0();
|
|
2802
2880
|
// Inline function 'kotlin.collections.forEach' call
|
|
2803
2881
|
var tmp0_iterator_18 = destination_17.j();
|
|
2804
2882
|
while (tmp0_iterator_18.k()) {
|
|
@@ -2806,10 +2884,10 @@
|
|
|
2806
2884
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2807
2885
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2808
2886
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2809
|
-
var tmp0_aid_3 = this_10.
|
|
2887
|
+
var tmp0_aid_3 = this_10.y9i_1.g6d();
|
|
2810
2888
|
// Inline function 'kotlin.collections.map' call
|
|
2811
2889
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2812
|
-
var destination_19 = ArrayList_init_$Create$
|
|
2890
|
+
var destination_19 = ArrayList_init_$Create$(collectionSizeOrDefault(players_2, 10));
|
|
2813
2891
|
var tmp0_iterator_19 = players_2.j();
|
|
2814
2892
|
while (tmp0_iterator_19.k()) {
|
|
2815
2893
|
var item_9 = tmp0_iterator_19.l();
|
|
@@ -2819,7 +2897,7 @@
|
|
|
2819
2897
|
}
|
|
2820
2898
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2821
2899
|
var tmp_0;
|
|
2822
|
-
if (this.
|
|
2900
|
+
if (this.z9i_1.x9i_1.supportBackwardActions && getPlayer(state.a6n().players, sendToPlayer_8.h79_1).u6s_1.z6s_1) {
|
|
2823
2901
|
tmp_0 = null;
|
|
2824
2902
|
} else {
|
|
2825
2903
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2837,79 +2915,79 @@
|
|
|
2837
2915
|
} else {
|
|
2838
2916
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2839
2917
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2840
|
-
var this_11 = this.
|
|
2918
|
+
var this_11 = this.z9i_1;
|
|
2841
2919
|
var table_7 = state.a6n();
|
|
2842
|
-
var exceptPlayerId = this.
|
|
2920
|
+
var exceptPlayerId = this.z9i_1.x9i_1.supportBackwardActions ? action_0.k8q_1 : null;
|
|
2843
2921
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2844
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2922
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.y9i_1.g6d(), table_7.id, exceptPlayerId);
|
|
2845
2923
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2846
2924
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2847
2925
|
} else {
|
|
2848
2926
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2849
2927
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2850
|
-
var this_12 = this.
|
|
2928
|
+
var this_12 = this.z9i_1;
|
|
2851
2929
|
var table_8 = state.a6n();
|
|
2852
|
-
var exceptPlayerId_0 = this.
|
|
2930
|
+
var exceptPlayerId_0 = this.z9i_1.x9i_1.supportBackwardActions ? action_0.i8l_1 : null;
|
|
2853
2931
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2854
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2932
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.y9i_1.g6d(), table_8.id, exceptPlayerId_0);
|
|
2855
2933
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2856
2934
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2857
2935
|
} else {
|
|
2858
2936
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2859
2937
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2860
|
-
var this_13 = this.
|
|
2938
|
+
var this_13 = this.z9i_1;
|
|
2861
2939
|
var table_9 = state.a6n();
|
|
2862
2940
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2863
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2941
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.y9i_1.g6d(), table_9.id, null);
|
|
2864
2942
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2865
2943
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2866
2944
|
} else {
|
|
2867
2945
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2868
2946
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2869
|
-
var this_14 = this.
|
|
2947
|
+
var this_14 = this.z9i_1;
|
|
2870
2948
|
var table_10 = state.a6n();
|
|
2871
|
-
var exceptPlayerId_1 = this.
|
|
2949
|
+
var exceptPlayerId_1 = this.z9i_1.x9i_1.supportBackwardActions ? action_0.q8q_1 : null;
|
|
2872
2950
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2873
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2951
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.y9i_1.g6d(), table_10.id, exceptPlayerId_1);
|
|
2874
2952
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2875
2953
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2876
2954
|
} else {
|
|
2877
2955
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2878
2956
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2879
|
-
var this_15 = this.
|
|
2957
|
+
var this_15 = this.z9i_1;
|
|
2880
2958
|
var table_11 = state.a6n();
|
|
2881
|
-
var exceptPlayerId_2 = this.
|
|
2959
|
+
var exceptPlayerId_2 = this.z9i_1.x9i_1.supportBackwardActions ? action_0.n8l_1 : null;
|
|
2882
2960
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2883
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2961
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.y9i_1.g6d(), table_11.id, exceptPlayerId_2);
|
|
2884
2962
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2885
2963
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2886
2964
|
} else {
|
|
2887
2965
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2888
2966
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2889
|
-
var this_16 = this.
|
|
2967
|
+
var this_16 = this.z9i_1;
|
|
2890
2968
|
var table_12 = state.a6n();
|
|
2891
2969
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2892
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2970
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.y9i_1.g6d(), table_12.id, null);
|
|
2893
2971
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2894
2972
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2895
2973
|
} else {
|
|
2896
2974
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2897
2975
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2898
|
-
var this_17 = this.
|
|
2976
|
+
var this_17 = this.z9i_1;
|
|
2899
2977
|
var table_13 = state.a6n();
|
|
2900
2978
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2901
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2979
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.y9i_1.g6d(), table_13.id, null);
|
|
2902
2980
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2903
2981
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2904
2982
|
} else {
|
|
2905
2983
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2906
|
-
var message = action_0.
|
|
2984
|
+
var message = action_0.u8q_1;
|
|
2907
2985
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2908
|
-
var this_18 = this.
|
|
2986
|
+
var this_18 = this.z9i_1;
|
|
2909
2987
|
var table_14 = state.a6n();
|
|
2910
2988
|
var tmp_1;
|
|
2911
2989
|
var tmp_2;
|
|
2912
|
-
if (this.
|
|
2990
|
+
if (this.z9i_1.x9i_1.supportBackwardActions) {
|
|
2913
2991
|
tmp_2 = isInterface(message, UserMessage);
|
|
2914
2992
|
} else {
|
|
2915
2993
|
tmp_2 = false;
|
|
@@ -2921,17 +2999,17 @@
|
|
|
2921
2999
|
}
|
|
2922
3000
|
var exceptPlayerId_3 = tmp_1;
|
|
2923
3001
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2924
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
3002
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.y9i_1.g6d(), table_14.id, exceptPlayerId_3);
|
|
2925
3003
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2926
3004
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2927
3005
|
} else {
|
|
2928
3006
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2929
3007
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2930
|
-
var this_19 = this.
|
|
3008
|
+
var this_19 = this.z9i_1;
|
|
2931
3009
|
var table_15 = state.a6n();
|
|
2932
3010
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2933
3011
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2934
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
3012
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.y9i_1.g6d(), table_15.id, exceptPlayerId_4);
|
|
2935
3013
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2936
3014
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2937
3015
|
} else {
|
|
@@ -2969,10 +3047,10 @@
|
|
|
2969
3047
|
return this.u6g(store, next, action);
|
|
2970
3048
|
};
|
|
2971
3049
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2972
|
-
this.
|
|
2973
|
-
this.
|
|
3050
|
+
this.x9i_1 = logicConfig;
|
|
3051
|
+
this.y9i_1 = idsProvider;
|
|
2974
3052
|
}
|
|
2975
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
3053
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).m8u = function () {
|
|
2976
3054
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2977
3055
|
return new _no_name_provided__qut3iv_0(this);
|
|
2978
3056
|
};
|
|
@@ -2981,8 +3059,8 @@
|
|
|
2981
3059
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2982
3060
|
}
|
|
2983
3061
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
2984
|
-
this.
|
|
2985
|
-
this.
|
|
3062
|
+
this.i9j_1 = $provider;
|
|
3063
|
+
this.j9j_1 = $action;
|
|
2986
3064
|
CoroutineImpl.call(this, resultContinuation);
|
|
2987
3065
|
}
|
|
2988
3066
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
|
|
@@ -3003,7 +3081,7 @@
|
|
|
3003
3081
|
case 0:
|
|
3004
3082
|
this.f9_1 = 2;
|
|
3005
3083
|
this.e9_1 = 1;
|
|
3006
|
-
suspendResult = this.
|
|
3084
|
+
suspendResult = this.i9j_1.t9f(this.j9j_1, this);
|
|
3007
3085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3008
3086
|
return suspendResult;
|
|
3009
3087
|
}
|
|
@@ -3026,8 +3104,8 @@
|
|
|
3026
3104
|
while (true);
|
|
3027
3105
|
};
|
|
3028
3106
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
|
|
3029
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3030
|
-
i.
|
|
3107
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.i9j_1, this.j9j_1, completion);
|
|
3108
|
+
i.k9j_1 = $this$launchDefault;
|
|
3031
3109
|
return i;
|
|
3032
3110
|
};
|
|
3033
3111
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3039,8 +3117,8 @@
|
|
|
3039
3117
|
return l;
|
|
3040
3118
|
}
|
|
3041
3119
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3042
|
-
this.
|
|
3043
|
-
this.
|
|
3120
|
+
this.l9j_1 = $asyncProvider;
|
|
3121
|
+
this.m9j_1 = $provider;
|
|
3044
3122
|
}
|
|
3045
3123
|
protoOf(_no_name_provided__qut3iv_1).d6f = function (action) {
|
|
3046
3124
|
return action instanceof ToClientAction;
|
|
@@ -3048,7 +3126,7 @@
|
|
|
3048
3126
|
protoOf(_no_name_provided__qut3iv_1).u6g = function (store, next, action) {
|
|
3049
3127
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3050
3128
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3051
|
-
this.
|
|
3129
|
+
this.l9j_1.d6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.m9j_1, action_0, null));
|
|
3052
3130
|
next(action_0);
|
|
3053
3131
|
};
|
|
3054
3132
|
protoOf(_no_name_provided__qut3iv_1).c6f = function (store, next, action) {
|
|
@@ -3063,13 +3141,13 @@
|
|
|
3063
3141
|
protoOf(_no_name_provided__qut3iv_2).d6f = function (action) {
|
|
3064
3142
|
return action instanceof UpdateServerConfigAction;
|
|
3065
3143
|
};
|
|
3066
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3144
|
+
protoOf(_no_name_provided__qut3iv_2).h91 = function (state, action) {
|
|
3067
3145
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3068
3146
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3069
|
-
return state.
|
|
3147
|
+
return state.l8o(VOID, get_serverState_0(state).n9j(action_0.f9i_1));
|
|
3070
3148
|
};
|
|
3071
3149
|
protoOf(_no_name_provided__qut3iv_2).v6g = function (state, action) {
|
|
3072
|
-
return this.
|
|
3150
|
+
return this.h91((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3073
3151
|
};
|
|
3074
3152
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3075
3153
|
return function (it) {
|
|
@@ -3082,7 +3160,7 @@
|
|
|
3082
3160
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3083
3161
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3084
3162
|
Companion_getInstance();
|
|
3085
|
-
var this_0 = $action.
|
|
3163
|
+
var this_0 = $action.j8p_1.timeoutTimeMillis;
|
|
3086
3164
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3087
3165
|
tmp_0 = tmp_1.e68(tmp_2, tmp$ret$0);
|
|
3088
3166
|
}
|
|
@@ -3091,47 +3169,47 @@
|
|
|
3091
3169
|
}
|
|
3092
3170
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3093
3171
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3094
|
-
this.
|
|
3172
|
+
this.q9j_1 = logger;
|
|
3095
3173
|
}
|
|
3096
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3174
|
+
protoOf(ServerMechanicLifecycleReducer).t92 = function (state, action) {
|
|
3097
3175
|
var serverState = get_serverStateOrNull(state.z6l_1);
|
|
3098
3176
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3099
|
-
var tmp0_$this = this.
|
|
3100
|
-
var tmp1_tableId = action.
|
|
3101
|
-
var tmp2_gameId = action.
|
|
3102
|
-
var tmp3_version = action.
|
|
3103
|
-
var tmp4_config = action.
|
|
3104
|
-
var tmp5_users = action.
|
|
3177
|
+
var tmp0_$this = this.u92_1;
|
|
3178
|
+
var tmp1_tableId = action.k8p_1;
|
|
3179
|
+
var tmp2_gameId = action.k8p_1;
|
|
3180
|
+
var tmp3_version = action.l8p_1;
|
|
3181
|
+
var tmp4_config = action.j8p_1;
|
|
3182
|
+
var tmp5_users = action.n8p_1;
|
|
3105
3183
|
var tmp6_spectators = action.spectators;
|
|
3106
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3107
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3184
|
+
var tmp7_gameCreatorPlayerId = action.m8p_1;
|
|
3185
|
+
var tmp9_tableOrNull = tmp0_$this.a94(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3108
3186
|
var tmp;
|
|
3109
3187
|
if (serverState == null) {
|
|
3110
|
-
this.
|
|
3111
|
-
tmp = Companion_instance_9.
|
|
3188
|
+
this.q9j_1.w(VOID, 'ServerPayload is not onStart');
|
|
3189
|
+
tmp = Companion_instance_9.p9f();
|
|
3112
3190
|
} else {
|
|
3113
3191
|
tmp = serverState;
|
|
3114
3192
|
}
|
|
3115
3193
|
var tmp10_payload = tmp;
|
|
3116
|
-
return state.
|
|
3194
|
+
return state.l8o(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3117
3195
|
};
|
|
3118
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3119
|
-
this.
|
|
3196
|
+
protoOf(ServerMechanicLifecycleReducer).s92 = function (state, action) {
|
|
3197
|
+
this.v92_1.r5n(action.previousGameId);
|
|
3120
3198
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3121
|
-
var tmp1_tableOrNull = this.
|
|
3122
|
-
return state.
|
|
3199
|
+
var tmp1_tableOrNull = this.u92_1.b94(state.a6n(), action.gameId);
|
|
3200
|
+
return state.l8o(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3123
3201
|
};
|
|
3124
3202
|
function spectatorsReducer(logger) {
|
|
3125
3203
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3126
3204
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3127
3205
|
}
|
|
3128
3206
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3129
|
-
this.
|
|
3207
|
+
this.r9j_1 = $logger;
|
|
3130
3208
|
}
|
|
3131
3209
|
protoOf(_no_name_provided__qut3iv_3).d6f = function (action) {
|
|
3132
3210
|
return isInterface(action, SpectatorsAction);
|
|
3133
3211
|
};
|
|
3134
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3212
|
+
protoOf(_no_name_provided__qut3iv_3).h91 = function (state, action) {
|
|
3135
3213
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3136
3214
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3137
3215
|
var table = state.a6n();
|
|
@@ -3139,8 +3217,8 @@
|
|
|
3139
3217
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3140
3218
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3141
3219
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3142
|
-
var this_0 = action_0.
|
|
3143
|
-
var destination = ArrayList_init_$Create$();
|
|
3220
|
+
var this_0 = action_0.g9i_1;
|
|
3221
|
+
var destination = ArrayList_init_$Create$_0();
|
|
3144
3222
|
// Inline function 'kotlin.collections.forEach' call
|
|
3145
3223
|
var tmp0_iterator = this_0.j();
|
|
3146
3224
|
while (tmp0_iterator.k()) {
|
|
@@ -3161,11 +3239,11 @@
|
|
|
3161
3239
|
var tmp_0;
|
|
3162
3240
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3163
3241
|
if (!sameSpectators.p()) {
|
|
3164
|
-
this.
|
|
3242
|
+
this.r9j_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3165
3243
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3166
3244
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3167
|
-
var this_1 = action_0.
|
|
3168
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3245
|
+
var this_1 = action_0.g9i_1;
|
|
3246
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
3169
3247
|
var tmp0_iterator_0 = this_1.j();
|
|
3170
3248
|
while (tmp0_iterator_0.k()) {
|
|
3171
3249
|
var element_0 = tmp0_iterator_0.l();
|
|
@@ -3200,11 +3278,11 @@
|
|
|
3200
3278
|
}
|
|
3201
3279
|
tmp_0 = destination_0;
|
|
3202
3280
|
} else {
|
|
3203
|
-
tmp_0 = action_0.
|
|
3281
|
+
tmp_0 = action_0.g9i_1;
|
|
3204
3282
|
}
|
|
3205
3283
|
var this_2 = tmp_0;
|
|
3206
3284
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3207
|
-
var destination_1 = ArrayList_init_$Create$
|
|
3285
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
3208
3286
|
var tmp0_iterator_2 = this_2.j();
|
|
3209
3287
|
while (tmp0_iterator_2.k()) {
|
|
3210
3288
|
var item = tmp0_iterator_2.l();
|
|
@@ -3213,13 +3291,13 @@
|
|
|
3213
3291
|
destination_1.e(tmp$ret$10);
|
|
3214
3292
|
}
|
|
3215
3293
|
var spectatorsToAdd = toSet(destination_1);
|
|
3216
|
-
tmp = state.
|
|
3294
|
+
tmp = state.l8o(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3217
3295
|
} else {
|
|
3218
3296
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3219
3297
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3220
3298
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3221
|
-
var this_3 = action_0.
|
|
3222
|
-
var destination_2 = ArrayList_init_$Create$();
|
|
3299
|
+
var this_3 = action_0.h9i_1;
|
|
3300
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
3223
3301
|
// Inline function 'kotlin.collections.forEach' call
|
|
3224
3302
|
var tmp0_iterator_3 = this_3.j();
|
|
3225
3303
|
while (tmp0_iterator_3.k()) {
|
|
@@ -3239,11 +3317,11 @@
|
|
|
3239
3317
|
var tmp_2;
|
|
3240
3318
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3241
3319
|
if (!sameSpectators_0.p()) {
|
|
3242
|
-
this.
|
|
3320
|
+
this.r9j_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3243
3321
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3244
3322
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3245
|
-
var this_4 = action_0.
|
|
3246
|
-
var destination_3 = ArrayList_init_$Create$();
|
|
3323
|
+
var this_4 = action_0.h9i_1;
|
|
3324
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
3247
3325
|
var tmp0_iterator_4 = this_4.j();
|
|
3248
3326
|
while (tmp0_iterator_4.k()) {
|
|
3249
3327
|
var element_3 = tmp0_iterator_4.l();
|
|
@@ -3278,13 +3356,13 @@
|
|
|
3278
3356
|
}
|
|
3279
3357
|
tmp_2 = destination_3;
|
|
3280
3358
|
} else {
|
|
3281
|
-
tmp_2 = action_0.
|
|
3359
|
+
tmp_2 = action_0.h9i_1;
|
|
3282
3360
|
}
|
|
3283
3361
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3284
3362
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3285
3363
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3286
3364
|
var this_5 = table.spectators;
|
|
3287
|
-
var destination_4 = ArrayList_init_$Create$();
|
|
3365
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
3288
3366
|
var tmp0_iterator_6 = this_5.j();
|
|
3289
3367
|
while (tmp0_iterator_6.k()) {
|
|
3290
3368
|
var element_5 = tmp0_iterator_6.l();
|
|
@@ -3317,7 +3395,7 @@
|
|
|
3317
3395
|
destination_4.e(element_5);
|
|
3318
3396
|
}
|
|
3319
3397
|
}
|
|
3320
|
-
tmp = state.
|
|
3398
|
+
tmp = state.l8o(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3321
3399
|
} else {
|
|
3322
3400
|
noWhenBranchMatchedException();
|
|
3323
3401
|
}
|
|
@@ -3325,32 +3403,32 @@
|
|
|
3325
3403
|
return tmp;
|
|
3326
3404
|
};
|
|
3327
3405
|
protoOf(_no_name_provided__qut3iv_3).v6g = function (state, action) {
|
|
3328
|
-
return this.
|
|
3406
|
+
return this.h91((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3329
3407
|
};
|
|
3330
3408
|
function Companion_1() {
|
|
3331
3409
|
}
|
|
3332
|
-
protoOf(Companion_1).
|
|
3410
|
+
protoOf(Companion_1).s9j = function (config) {
|
|
3333
3411
|
return new ServerState(config);
|
|
3334
3412
|
};
|
|
3335
|
-
protoOf(Companion_1).
|
|
3413
|
+
protoOf(Companion_1).p9f = function (config, $super) {
|
|
3336
3414
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3337
|
-
return $super === VOID ? this.
|
|
3415
|
+
return $super === VOID ? this.s9j(config) : $super.s9j.call(this, config);
|
|
3338
3416
|
};
|
|
3339
3417
|
var Companion_instance_9;
|
|
3340
3418
|
function Companion_getInstance_2() {
|
|
3341
3419
|
return Companion_instance_9;
|
|
3342
3420
|
}
|
|
3343
3421
|
function ServerState(config) {
|
|
3344
|
-
this.
|
|
3422
|
+
this.z9e_1 = config;
|
|
3345
3423
|
}
|
|
3346
|
-
protoOf(ServerState).
|
|
3424
|
+
protoOf(ServerState).n9j = function (config) {
|
|
3347
3425
|
return new ServerState(config);
|
|
3348
3426
|
};
|
|
3349
3427
|
protoOf(ServerState).toString = function () {
|
|
3350
|
-
return 'ServerState(config=' + this.
|
|
3428
|
+
return 'ServerState(config=' + this.z9e_1.toString() + ')';
|
|
3351
3429
|
};
|
|
3352
3430
|
protoOf(ServerState).hashCode = function () {
|
|
3353
|
-
return this.
|
|
3431
|
+
return this.z9e_1.hashCode();
|
|
3354
3432
|
};
|
|
3355
3433
|
protoOf(ServerState).equals = function (other) {
|
|
3356
3434
|
if (this === other)
|
|
@@ -3358,7 +3436,7 @@
|
|
|
3358
3436
|
if (!(other instanceof ServerState))
|
|
3359
3437
|
return false;
|
|
3360
3438
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3361
|
-
if (!this.
|
|
3439
|
+
if (!this.z9e_1.equals(tmp0_other_with_cast.z9e_1))
|
|
3362
3440
|
return false;
|
|
3363
3441
|
return true;
|
|
3364
3442
|
};
|
|
@@ -3396,13 +3474,13 @@
|
|
|
3396
3474
|
}
|
|
3397
3475
|
function _get_controllerLogger__nbd727($this) {
|
|
3398
3476
|
// Inline function 'kotlin.getValue' call
|
|
3399
|
-
var this_0 = $this.
|
|
3477
|
+
var this_0 = $this.b9k_1;
|
|
3400
3478
|
controllerLogger$factory();
|
|
3401
3479
|
return this_0.u();
|
|
3402
3480
|
}
|
|
3403
3481
|
function _get_di__ndbzja($this) {
|
|
3404
3482
|
// Inline function 'kotlin.getValue' call
|
|
3405
|
-
var this_0 = $this.
|
|
3483
|
+
var this_0 = $this.c9k_1;
|
|
3406
3484
|
di$factory();
|
|
3407
3485
|
return this_0.u();
|
|
3408
3486
|
}
|
|
@@ -3413,13 +3491,13 @@
|
|
|
3413
3491
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3414
3492
|
return function () {
|
|
3415
3493
|
var tmp;
|
|
3416
|
-
if (this$0.
|
|
3494
|
+
if (this$0.z9j_1 == null) {
|
|
3417
3495
|
tmp = null;
|
|
3418
3496
|
} else {
|
|
3419
3497
|
// Inline function 'kotlin.let' call
|
|
3420
3498
|
// Inline function 'kotlin.contracts.contract' call
|
|
3421
3499
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3422
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3500
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.z9j_1)]));
|
|
3423
3501
|
}
|
|
3424
3502
|
var tmp1_elvis_lhs = tmp;
|
|
3425
3503
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -3447,7 +3525,7 @@
|
|
|
3447
3525
|
tmp_0.h5y(tmp$ret$3);
|
|
3448
3526
|
$this$DI.l5u(jsonModule());
|
|
3449
3527
|
$this$DI.l5u(serverHelpersModule());
|
|
3450
|
-
$this$DI.l5u(randomOrgModule(this$0.
|
|
3528
|
+
$this$DI.l5u(randomOrgModule(this$0.a9k_1));
|
|
3451
3529
|
return Unit_instance;
|
|
3452
3530
|
};
|
|
3453
3531
|
}
|
|
@@ -3458,16 +3536,16 @@
|
|
|
3458
3536
|
};
|
|
3459
3537
|
}
|
|
3460
3538
|
function _no_name_provided__qut3iv_4($item) {
|
|
3461
|
-
this.
|
|
3539
|
+
this.i9k_1 = $item;
|
|
3462
3540
|
}
|
|
3463
3541
|
protoOf(_no_name_provided__qut3iv_4).d6f = function (action) {
|
|
3464
3542
|
return isInterface(action, Action);
|
|
3465
3543
|
};
|
|
3466
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
3467
|
-
return this.
|
|
3544
|
+
protoOf(_no_name_provided__qut3iv_4).h91 = function (state, action) {
|
|
3545
|
+
return this.i9k_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
3468
3546
|
};
|
|
3469
3547
|
protoOf(_no_name_provided__qut3iv_4).v6g = function (state, action) {
|
|
3470
|
-
return this.
|
|
3548
|
+
return this.h91((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3471
3549
|
};
|
|
3472
3550
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
3473
3551
|
return function ($this$singleton) {
|
|
@@ -3524,7 +3602,7 @@
|
|
|
3524
3602
|
}
|
|
3525
3603
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
3526
3604
|
return function (it) {
|
|
3527
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
3605
|
+
var tmp0_elvis_lhs = Companion_instance_4.d96(it);
|
|
3528
3606
|
var tmp;
|
|
3529
3607
|
if (tmp0_elvis_lhs == null) {
|
|
3530
3608
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3537,7 +3615,7 @@
|
|
|
3537
3615
|
}
|
|
3538
3616
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
3539
3617
|
return function (it) {
|
|
3540
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
3618
|
+
var tmp0_elvis_lhs = Companion_instance_5.o94(it);
|
|
3541
3619
|
var tmp;
|
|
3542
3620
|
if (tmp0_elvis_lhs == null) {
|
|
3543
3621
|
var tmp1_safe_receiver = $gameServer.n67().y6l_1;
|
|
@@ -3559,7 +3637,7 @@
|
|
|
3559
3637
|
// Inline function 'kotlin.contracts.contract' call
|
|
3560
3638
|
$this$DI.l5u(tmp0_safe_receiver);
|
|
3561
3639
|
}
|
|
3562
|
-
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3640
|
+
$this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.a9k_1));
|
|
3563
3641
|
$this$DI.l5u(coreModule($coreConfig));
|
|
3564
3642
|
$this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
3565
3643
|
return Unit_instance;
|
|
@@ -3568,76 +3646,76 @@
|
|
|
3568
3646
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
3569
3647
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
3570
3648
|
production = production === VOID ? true : production;
|
|
3571
|
-
this.
|
|
3572
|
-
this.
|
|
3649
|
+
this.z9j_1 = loggerCallback;
|
|
3650
|
+
this.a9k_1 = randomOrgConfig;
|
|
3573
3651
|
AppEnvironment_getInstance().g6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
3574
3652
|
var tmp = this;
|
|
3575
|
-
tmp.
|
|
3653
|
+
tmp.b9k_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
3576
3654
|
var tmp_0 = this;
|
|
3577
|
-
tmp_0.
|
|
3655
|
+
tmp_0.c9k_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
3578
3656
|
var tmp_1 = this;
|
|
3579
3657
|
// Inline function 'org.kodein.di.instance' call
|
|
3580
3658
|
var this_0 = _get_di__ndbzja(this);
|
|
3581
3659
|
// Inline function 'org.kodein.type.generic' call
|
|
3582
3660
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
3583
3661
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3584
|
-
tmp_1.
|
|
3662
|
+
tmp_1.d9k_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
|
|
3585
3663
|
var tmp_3 = this;
|
|
3586
3664
|
// Inline function 'org.kodein.di.instance' call
|
|
3587
3665
|
var this_1 = _get_di__ndbzja(this);
|
|
3588
3666
|
// Inline function 'org.kodein.type.generic' call
|
|
3589
3667
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
3590
3668
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
3591
|
-
tmp_3.
|
|
3669
|
+
tmp_3.e9k_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
|
|
3592
3670
|
var tmp_5 = this;
|
|
3593
3671
|
// Inline function 'org.kodein.di.instance' call
|
|
3594
3672
|
var this_2 = _get_di__ndbzja(this);
|
|
3595
3673
|
// Inline function 'org.kodein.type.generic' call
|
|
3596
3674
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
3597
3675
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
3598
|
-
tmp_5.
|
|
3676
|
+
tmp_5.f9k_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
|
|
3599
3677
|
var tmp_7 = this;
|
|
3600
3678
|
// Inline function 'org.kodein.di.instance' call
|
|
3601
3679
|
var this_3 = _get_di__ndbzja(this);
|
|
3602
3680
|
// Inline function 'org.kodein.type.generic' call
|
|
3603
3681
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
3604
3682
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
3605
|
-
tmp_7.
|
|
3683
|
+
tmp_7.g9k_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
|
|
3606
3684
|
var tmp_9 = this;
|
|
3607
3685
|
// Inline function 'org.kodein.di.instance' call
|
|
3608
3686
|
var this_4 = _get_di__ndbzja(this);
|
|
3609
3687
|
// Inline function 'org.kodein.type.generic' call
|
|
3610
3688
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
3611
3689
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
3612
|
-
tmp_9.
|
|
3690
|
+
tmp_9.h9k_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
|
|
3613
3691
|
}
|
|
3614
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3692
|
+
protoOf(GameServerEngineControllerImpl).t9j = function () {
|
|
3615
3693
|
// Inline function 'kotlin.getValue' call
|
|
3616
|
-
var this_0 = this.
|
|
3694
|
+
var this_0 = this.d9k_1;
|
|
3617
3695
|
parser$factory_0();
|
|
3618
3696
|
return this_0.u();
|
|
3619
3697
|
};
|
|
3620
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3698
|
+
protoOf(GameServerEngineControllerImpl).v9j = function () {
|
|
3621
3699
|
// Inline function 'kotlin.getValue' call
|
|
3622
|
-
var this_0 = this.
|
|
3700
|
+
var this_0 = this.e9k_1;
|
|
3623
3701
|
helper$factory_0();
|
|
3624
3702
|
return this_0.u();
|
|
3625
3703
|
};
|
|
3626
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3704
|
+
protoOf(GameServerEngineControllerImpl).w9j = function () {
|
|
3627
3705
|
// Inline function 'kotlin.getValue' call
|
|
3628
|
-
var this_0 = this.
|
|
3706
|
+
var this_0 = this.f9k_1;
|
|
3629
3707
|
resources$factory_0();
|
|
3630
3708
|
return this_0.u();
|
|
3631
3709
|
};
|
|
3632
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3710
|
+
protoOf(GameServerEngineControllerImpl).u9j = function () {
|
|
3633
3711
|
// Inline function 'kotlin.getValue' call
|
|
3634
|
-
var this_0 = this.
|
|
3712
|
+
var this_0 = this.g9k_1;
|
|
3635
3713
|
test$factory_0();
|
|
3636
3714
|
return this_0.u();
|
|
3637
3715
|
};
|
|
3638
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3716
|
+
protoOf(GameServerEngineControllerImpl).x9j = function () {
|
|
3639
3717
|
// Inline function 'kotlin.getValue' call
|
|
3640
|
-
var this_0 = this.
|
|
3718
|
+
var this_0 = this.h9k_1;
|
|
3641
3719
|
randomPoolProvider$factory_0();
|
|
3642
3720
|
return this_0.u();
|
|
3643
3721
|
};
|
|
@@ -3647,7 +3725,7 @@
|
|
|
3647
3725
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
3648
3726
|
return this.createGameEngineWithLogic();
|
|
3649
3727
|
};
|
|
3650
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3728
|
+
protoOf(GameServerEngineControllerImpl).y9j = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3651
3729
|
var combinedLogger = Companion_instance_6.qm();
|
|
3652
3730
|
var tmp;
|
|
3653
3731
|
if (coreConfig.fileLogsEnabled) {
|
|
@@ -3657,8 +3735,8 @@
|
|
|
3657
3735
|
}
|
|
3658
3736
|
var fileLoggerOutput = tmp;
|
|
3659
3737
|
var tmp_0;
|
|
3660
|
-
if (!(this.
|
|
3661
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3738
|
+
if (!(this.z9j_1 == null)) {
|
|
3739
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.z9j_1));
|
|
3662
3740
|
} else {
|
|
3663
3741
|
tmp_0 = null;
|
|
3664
3742
|
}
|
|
@@ -3666,7 +3744,7 @@
|
|
|
3666
3744
|
var tmp0_botConfig = new EngineBotConfig(VOID, VOID, VOID, false);
|
|
3667
3745
|
// Inline function 'kotlin.collections.map' call
|
|
3668
3746
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3669
|
-
var destination = ArrayList_init_$Create$
|
|
3747
|
+
var destination = ArrayList_init_$Create$(reducers.length);
|
|
3670
3748
|
var inductionVariable = 0;
|
|
3671
3749
|
var last = reducers.length;
|
|
3672
3750
|
while (inductionVariable < last) {
|
|
@@ -3680,7 +3758,7 @@
|
|
|
3680
3758
|
var tmp1_externalReducers = toList_0(destination);
|
|
3681
3759
|
// Inline function 'kotlin.collections.map' call
|
|
3682
3760
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3683
|
-
var destination_0 = ArrayList_init_$Create$
|
|
3761
|
+
var destination_0 = ArrayList_init_$Create$(middlewares.length);
|
|
3684
3762
|
var inductionVariable_0 = 0;
|
|
3685
3763
|
var last_0 = middlewares.length;
|
|
3686
3764
|
while (inductionVariable_0 < last_0) {
|
|
@@ -3701,12 +3779,12 @@
|
|
|
3701
3779
|
var gameServer = tmp_1.v5v(tmp$ret$7, null);
|
|
3702
3780
|
if (!(fileLoggerOutput == null)) {
|
|
3703
3781
|
var tmp_3 = fileLoggerOutput;
|
|
3704
|
-
tmp_3.
|
|
3782
|
+
tmp_3.s95_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
3705
3783
|
combinedLogger.sm(fileLoggerOutput);
|
|
3706
3784
|
}
|
|
3707
3785
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
3708
3786
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
3709
|
-
tmp_4.
|
|
3787
|
+
tmp_4.q94_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
3710
3788
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
3711
3789
|
}
|
|
3712
3790
|
return gameServer;
|
|
@@ -3775,13 +3853,13 @@
|
|
|
3775
3853
|
}
|
|
3776
3854
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
3777
3855
|
// Inline function 'kotlin.getValue' call
|
|
3778
|
-
var this_0 = $this.
|
|
3856
|
+
var this_0 = $this.l9k_1;
|
|
3779
3857
|
playerAnswerInteractor$factory_0();
|
|
3780
3858
|
return this_0.u();
|
|
3781
3859
|
}
|
|
3782
3860
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
3783
3861
|
return function ($this$singleton) {
|
|
3784
|
-
return this$0.
|
|
3862
|
+
return this$0.j9k_1;
|
|
3785
3863
|
};
|
|
3786
3864
|
}
|
|
3787
3865
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -3810,20 +3888,20 @@
|
|
|
3810
3888
|
return emptyMap();
|
|
3811
3889
|
}
|
|
3812
3890
|
function TestHelperImpl(logger) {
|
|
3813
|
-
this.
|
|
3891
|
+
this.j9k_1 = logger;
|
|
3814
3892
|
var tmp = this;
|
|
3815
3893
|
var tmp_0 = Companion_instance_3;
|
|
3816
|
-
tmp.
|
|
3894
|
+
tmp.k9k_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
|
|
3817
3895
|
var tmp_1 = this;
|
|
3818
3896
|
// Inline function 'org.kodein.di.instance' call
|
|
3819
|
-
var this_0 = this.
|
|
3897
|
+
var this_0 = this.k9k_1;
|
|
3820
3898
|
// Inline function 'org.kodein.type.generic' call
|
|
3821
3899
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
3822
3900
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
3823
|
-
tmp_1.
|
|
3901
|
+
tmp_1.l9k_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
|
|
3824
3902
|
}
|
|
3825
3903
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
3826
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3904
|
+
return _get_playerAnswerInteractor__msggz1(this).o8e(playerId, table, botConfig);
|
|
3827
3905
|
};
|
|
3828
3906
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
3829
3907
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -3831,7 +3909,7 @@
|
|
|
3831
3909
|
var tmp$ret$0;
|
|
3832
3910
|
$l$block_0: {
|
|
3833
3911
|
// Inline function 'kotlin.collections.any' call
|
|
3834
|
-
var this_0 = mechanicAction.
|
|
3912
|
+
var this_0 = mechanicAction.y8r();
|
|
3835
3913
|
var tmp;
|
|
3836
3914
|
if (isInterface(this_0, Collection)) {
|
|
3837
3915
|
tmp = this_0.p();
|
|
@@ -3864,7 +3942,7 @@
|
|
|
3864
3942
|
var tmp$ret$0;
|
|
3865
3943
|
$l$block_0: {
|
|
3866
3944
|
// Inline function 'kotlin.collections.any' call
|
|
3867
|
-
var this_0 = action.
|
|
3945
|
+
var this_0 = action.y8r();
|
|
3868
3946
|
var tmp;
|
|
3869
3947
|
if (isInterface(this_0, Collection)) {
|
|
3870
3948
|
tmp = this_0.p();
|
|
@@ -3935,6 +4013,9 @@
|
|
|
3935
4013
|
return new TestHelperImpl(tmp$ret$1);
|
|
3936
4014
|
}
|
|
3937
4015
|
//region block: post-declaration
|
|
4016
|
+
defineProp(protoOf(GameServer$roomOnCreate$1$updatedUsers$previousTeams$1), 'playerId', function () {
|
|
4017
|
+
return this.q66();
|
|
4018
|
+
});
|
|
3938
4019
|
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
3939
4020
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
3940
4021
|
protoOf(GameServer).shutdown = shutdown;
|
|
@@ -3964,19 +4045,19 @@
|
|
|
3964
4045
|
});
|
|
3965
4046
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
3966
4047
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
3967
|
-
return this.
|
|
4048
|
+
return this.t9j();
|
|
3968
4049
|
});
|
|
3969
4050
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
3970
|
-
return this.
|
|
4051
|
+
return this.v9j();
|
|
3971
4052
|
});
|
|
3972
4053
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
3973
|
-
return this.
|
|
4054
|
+
return this.w9j();
|
|
3974
4055
|
});
|
|
3975
4056
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
3976
|
-
return this.
|
|
4057
|
+
return this.u9j();
|
|
3977
4058
|
});
|
|
3978
4059
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
3979
|
-
return this.
|
|
4060
|
+
return this.x9j();
|
|
3980
4061
|
});
|
|
3981
4062
|
//endregion
|
|
3982
4063
|
//region block: init
|