client_plugin_logic_deb 1.8.225 → 1.8.243
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +82 -82
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +735 -730
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1556 -1521
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +59 -22
- package/Logic_Debertz-client_plugin.js +4714 -4696
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2117 -2097
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18045 -17296
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +11311 -11053
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1574 -1124
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2360 -2623
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3158 -3164
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +976 -575
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2026 -2047
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1556 -1556
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2533 -2533
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +747 -747
- package/ktor-ktor-io.js +1650 -1650
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +273 -273
- package/ktor-ktor-serialization.js +131 -131
- package/ktor-ktor-utils.js +727 -727
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +273 -273
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +1001 -1006
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +20 -20
- package/uuid.js +32 -32
|
@@ -40,245 +40,256 @@
|
|
|
40
40
|
'use strict';
|
|
41
41
|
//region block: imports
|
|
42
42
|
var imul = Math.imul;
|
|
43
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
44
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
45
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
47
|
-
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
48
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
43
|
+
var CoroutineImpl = kotlin_kotlin.$_$.va;
|
|
44
|
+
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
45
|
+
var protoOf = kotlin_kotlin.$_$.uc;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.sg;
|
|
47
|
+
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.f5;
|
|
48
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.xb;
|
|
49
49
|
var VOID = kotlin_kotlin.$_$.f;
|
|
50
|
-
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
51
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
52
|
-
var equals = kotlin_kotlin.$_$.
|
|
53
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
54
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
50
|
+
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.g8;
|
|
51
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
52
|
+
var equals = kotlin_kotlin.$_$.lb;
|
|
53
|
+
var FunctionAdapter = kotlin_kotlin.$_$.za;
|
|
54
|
+
var isInterface = kotlin_kotlin.$_$.hc;
|
|
55
55
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
56
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
56
|
+
var hashCode = kotlin_kotlin.$_$.sb;
|
|
57
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
58
58
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
59
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
59
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
60
60
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
61
61
|
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
|
|
62
|
+
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.l8;
|
|
63
|
+
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z4;
|
|
62
64
|
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.l4;
|
|
63
|
-
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
65
|
+
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i7;
|
|
64
66
|
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k4;
|
|
65
67
|
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j4;
|
|
66
|
-
var toList = kotlin_kotlin.$_$.
|
|
68
|
+
var toList = kotlin_kotlin.$_$.t9;
|
|
67
69
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.p;
|
|
68
70
|
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.t5;
|
|
71
|
+
var toMutableList = kotlin_kotlin.$_$.w9;
|
|
69
72
|
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.y3;
|
|
70
|
-
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
73
|
+
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x6;
|
|
71
74
|
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.o4;
|
|
72
75
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.t1;
|
|
73
|
-
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
74
|
-
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
75
|
-
var
|
|
76
|
+
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.h8;
|
|
77
|
+
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h6;
|
|
78
|
+
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h7;
|
|
76
79
|
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
|
|
77
|
-
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
80
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.qa;
|
|
78
81
|
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t4;
|
|
79
82
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.u1;
|
|
80
83
|
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r4;
|
|
81
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
82
|
-
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
83
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
84
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.qh;
|
|
85
|
+
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.m8;
|
|
86
|
+
var emptyList = kotlin_kotlin.$_$.n7;
|
|
84
87
|
var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
|
|
85
88
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
86
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
89
|
+
var arrayOf = kotlin_kotlin.$_$.gh;
|
|
87
90
|
var createKType = kotlin_kotlin.$_$.b;
|
|
88
91
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
89
92
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
90
93
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
91
|
-
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
94
|
+
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.n4;
|
|
95
|
+
var CustomRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
96
|
+
var plus = kotlin_kotlin.$_$.z8;
|
|
97
|
+
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.o8;
|
|
98
|
+
var defineProp = kotlin_kotlin.$_$.kb;
|
|
99
|
+
var KProperty1 = kotlin_kotlin.$_$.pd;
|
|
100
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
|
|
101
|
+
var to = kotlin_kotlin.$_$.xh;
|
|
102
|
+
var mapOf = kotlin_kotlin.$_$.t8;
|
|
103
|
+
var Enum = kotlin_kotlin.$_$.hg;
|
|
104
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.ob;
|
|
101
105
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
102
|
-
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
106
|
+
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.n7;
|
|
103
107
|
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
104
108
|
var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
|
|
105
|
-
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
109
|
+
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.p8;
|
|
106
110
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
107
|
-
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
111
|
+
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.e8;
|
|
108
112
|
var RandomPoolProvider = kotlin_io_raspberryapps_cardgame_random.$_$.i;
|
|
109
|
-
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
113
|
+
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.c8;
|
|
110
114
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.e2;
|
|
111
|
-
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
112
|
-
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
113
|
-
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
114
|
-
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
115
|
-
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
116
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
115
|
+
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
116
|
+
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.e4;
|
|
117
|
+
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
118
|
+
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.b8;
|
|
119
|
+
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.n8;
|
|
120
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
117
121
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
118
122
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
119
123
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
120
|
-
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
121
|
-
var single = kotlin_kotlin.$_$.
|
|
122
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
123
|
-
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
124
|
-
var toString = kotlin_kotlin.$_$.
|
|
125
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
126
|
-
var KtList = kotlin_kotlin.$_$.
|
|
124
|
+
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d5;
|
|
125
|
+
var single = kotlin_kotlin.$_$.i9;
|
|
126
|
+
var copyToArray = kotlin_kotlin.$_$.i7;
|
|
127
|
+
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.c5;
|
|
128
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
129
|
+
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
130
|
+
var KtList = kotlin_kotlin.$_$.x5;
|
|
127
131
|
var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
128
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
129
|
-
var Long = kotlin_kotlin.$_$.
|
|
132
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
|
|
133
|
+
var Long = kotlin_kotlin.$_$.mg;
|
|
130
134
|
var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
131
135
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
132
136
|
var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
133
137
|
var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
134
|
-
var toLong = kotlin_kotlin.$_$.
|
|
138
|
+
var toLong = kotlin_kotlin.$_$.wc;
|
|
135
139
|
var windowedByInterval = kotlin_io_raspberryapps_game_engine_core.$_$.a;
|
|
136
140
|
var flatMapConcat = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
137
141
|
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
|
|
138
142
|
var Action = kotlin_io_raspberryapps_game_engine_core.$_$.g3;
|
|
139
|
-
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
140
|
-
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
141
|
-
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
142
|
-
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
143
|
-
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
143
|
+
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.p7;
|
|
144
|
+
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.o7;
|
|
145
|
+
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.j7;
|
|
146
|
+
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.l7;
|
|
147
|
+
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.k7;
|
|
144
148
|
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.d2;
|
|
145
|
-
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
146
|
-
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
147
|
-
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
148
|
-
var listOf = kotlin_kotlin.$_$.
|
|
149
|
-
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
150
|
-
var listOfNotNull = kotlin_kotlin.$_$.
|
|
151
|
-
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
152
|
-
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
153
|
-
var listOfNotNull_0 = kotlin_kotlin.$_$.
|
|
154
|
-
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
155
|
-
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
156
|
-
var
|
|
157
|
-
var
|
|
158
|
-
var
|
|
149
|
+
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.h4;
|
|
150
|
+
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
151
|
+
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.r4;
|
|
152
|
+
var listOf = kotlin_kotlin.$_$.q8;
|
|
153
|
+
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.y7;
|
|
154
|
+
var listOfNotNull = kotlin_kotlin.$_$.n8;
|
|
155
|
+
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.s7;
|
|
156
|
+
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.t7;
|
|
157
|
+
var listOfNotNull_0 = kotlin_kotlin.$_$.o8;
|
|
158
|
+
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.q7;
|
|
159
|
+
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.w7;
|
|
160
|
+
var listOf_0 = kotlin_kotlin.$_$.p8;
|
|
161
|
+
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.x7;
|
|
162
|
+
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.r7;
|
|
163
|
+
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b6;
|
|
159
164
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.h3;
|
|
160
|
-
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
161
|
-
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
162
|
-
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
163
|
-
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
165
|
+
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l6;
|
|
166
|
+
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.e5;
|
|
167
|
+
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.p5;
|
|
168
|
+
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q6;
|
|
164
169
|
var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
|
|
165
|
-
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
166
|
-
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
167
|
-
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
168
|
-
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
169
|
-
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
170
|
-
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
171
|
-
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
172
|
-
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
173
|
-
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
174
|
-
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
175
|
-
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
176
|
-
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
177
|
-
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
178
|
-
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
179
|
-
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
180
|
-
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
181
|
-
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
182
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
183
|
-
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
184
|
-
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
185
|
-
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
186
|
-
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
187
|
-
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
188
|
-
var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
189
|
-
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
190
|
-
var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
191
|
-
var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
192
|
-
var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
193
|
-
var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
194
|
-
var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
195
|
-
var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
196
|
-
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
197
|
-
var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
198
|
-
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
199
|
-
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
200
|
-
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
201
|
-
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
170
|
+
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.u5;
|
|
171
|
+
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m6;
|
|
172
|
+
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.n5;
|
|
173
|
+
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d7;
|
|
174
|
+
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.l5;
|
|
175
|
+
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p6;
|
|
176
|
+
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.s5;
|
|
177
|
+
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t6;
|
|
178
|
+
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.h5;
|
|
179
|
+
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e6;
|
|
180
|
+
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.v5;
|
|
181
|
+
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c7;
|
|
182
|
+
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.z5;
|
|
183
|
+
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z6;
|
|
184
|
+
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.y5;
|
|
185
|
+
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r6;
|
|
186
|
+
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
|
|
187
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
188
|
+
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.p9;
|
|
189
|
+
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.w5;
|
|
190
|
+
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a7;
|
|
191
|
+
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.t5;
|
|
192
|
+
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v6;
|
|
193
|
+
var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.x5;
|
|
194
|
+
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w6;
|
|
195
|
+
var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.q5;
|
|
196
|
+
var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g6;
|
|
197
|
+
var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.j5;
|
|
198
|
+
var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u6;
|
|
199
|
+
var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.o5;
|
|
200
|
+
var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.r5;
|
|
201
|
+
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i6;
|
|
202
|
+
var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.k5;
|
|
203
|
+
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.f6;
|
|
204
|
+
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.m5;
|
|
205
|
+
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y6;
|
|
206
|
+
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.i5;
|
|
202
207
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
|
|
203
208
|
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.f5;
|
|
204
209
|
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
|
|
205
|
-
var Companion_getInstance = kotlin_kotlin.$_$.
|
|
210
|
+
var Companion_getInstance = kotlin_kotlin.$_$.g5;
|
|
206
211
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
207
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
208
|
-
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
209
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
210
|
-
var
|
|
211
|
-
var
|
|
212
|
-
var
|
|
213
|
-
var
|
|
214
|
-
var
|
|
215
|
-
var
|
|
216
|
-
var
|
|
217
|
-
var
|
|
218
|
-
var
|
|
219
|
-
var
|
|
220
|
-
var
|
|
221
|
-
var
|
|
222
|
-
var
|
|
223
|
-
var
|
|
224
|
-
var
|
|
225
|
-
var
|
|
226
|
-
var
|
|
227
|
-
var
|
|
228
|
-
var
|
|
229
|
-
var
|
|
230
|
-
var
|
|
212
|
+
var toDuration = kotlin_kotlin.$_$.zf;
|
|
213
|
+
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.a8;
|
|
214
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.k9;
|
|
215
|
+
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
216
|
+
var singleOrNull = kotlin_kotlin.$_$.h9;
|
|
217
|
+
var Collection = kotlin_kotlin.$_$.r5;
|
|
218
|
+
var toSet = kotlin_kotlin.$_$.z9;
|
|
219
|
+
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
220
|
+
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.f8;
|
|
221
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
222
|
+
var isArray = kotlin_kotlin.$_$.zb;
|
|
223
|
+
var get_entries = kotlin_io_raspberryapps_game_engine_engine.$_$.z;
|
|
224
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
225
|
+
var get_entries_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
|
|
226
|
+
var get_entries_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
227
|
+
var getUserProfilePayloadOrNull = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
|
|
228
|
+
var BotIntelligenceLevel_SUPER_HARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.b9;
|
|
229
|
+
var Options = kotlin_io_raspberryapps_game_engine_engine.$_$.j3;
|
|
230
|
+
var Config = kotlin_io_raspberryapps_game_engine_engine.$_$.i3;
|
|
231
|
+
var PointsMode_SMALL_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.i9;
|
|
232
|
+
var PointsMode_MEDIUM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.h9;
|
|
233
|
+
var PointsMode_BIG_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.g9;
|
|
234
|
+
var PointsMode_TEST_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.j9;
|
|
235
|
+
var PlayersMode_TWO_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.f9;
|
|
236
|
+
var PlayersMode_THREE_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.e9;
|
|
237
|
+
var PlayersMode_FOUR_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.d9;
|
|
238
|
+
var PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.c9;
|
|
239
|
+
var Rules = kotlin_io_raspberryapps_game_engine_engine.$_$.c1;
|
|
231
240
|
var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.w3;
|
|
232
|
-
var toRoundContractType = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
233
|
-
var Companion_getInstance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
234
|
-
var toBidType = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
235
|
-
var mapToCombinationType = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
236
|
-
var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
237
|
-
var
|
|
238
|
-
var
|
|
239
|
-
var
|
|
240
|
-
var
|
|
241
|
+
var toRoundContractType = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
|
|
242
|
+
var Companion_getInstance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.r9;
|
|
243
|
+
var toBidType = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
|
|
244
|
+
var mapToCombinationType = kotlin_io_raspberryapps_game_engine_engine.$_$.c2;
|
|
245
|
+
var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.ma;
|
|
246
|
+
var toPointsDistributeMode = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
|
|
247
|
+
var PointsDistributeMode_HIGHEST_PLAYER_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.x8;
|
|
248
|
+
var PointsDistributeMode_ALL_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.w8;
|
|
249
|
+
var getValue = kotlin_kotlin.$_$.a8;
|
|
250
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.s9;
|
|
251
|
+
var valueOf = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
|
|
252
|
+
var Default_getInstance = kotlin_kotlin.$_$.d5;
|
|
241
253
|
var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.c;
|
|
242
|
-
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
254
|
+
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
|
|
243
255
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.r1;
|
|
244
256
|
var RandomOrgConfig = kotlin_io_raspberryapps_cardgame_random.$_$.b;
|
|
245
257
|
var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
246
258
|
var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
247
|
-
var mutableListOf = kotlin_kotlin.$_$.
|
|
259
|
+
var mutableListOf = kotlin_kotlin.$_$.v8;
|
|
248
260
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
249
261
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
250
262
|
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.j2;
|
|
251
|
-
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
252
|
-
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
253
|
-
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
254
|
-
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
255
|
-
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
256
|
-
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
263
|
+
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.k8;
|
|
264
|
+
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.j8;
|
|
265
|
+
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.i8;
|
|
266
|
+
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.sa;
|
|
267
|
+
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.ra;
|
|
268
|
+
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
|
|
257
269
|
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.g2;
|
|
258
270
|
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
259
271
|
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
260
272
|
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v5;
|
|
261
273
|
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.b5;
|
|
262
274
|
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c5;
|
|
263
|
-
var lazy = kotlin_kotlin.$_$.
|
|
275
|
+
var lazy = kotlin_kotlin.$_$.ph;
|
|
264
276
|
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.c;
|
|
265
277
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
266
278
|
var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
267
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
279
|
+
var toList_0 = kotlin_kotlin.$_$.s9;
|
|
268
280
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
|
|
269
281
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.g;
|
|
270
|
-
var mapToDto = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
271
|
-
var RoomConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
272
|
-
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
273
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
274
|
-
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
275
|
-
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
276
|
-
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
277
|
-
var
|
|
278
|
-
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l6;
|
|
282
|
+
var mapToDto = kotlin_io_raspberryapps_game_engine_engine.$_$.i2;
|
|
283
|
+
var RoomConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.ta;
|
|
284
|
+
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.c4;
|
|
285
|
+
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
286
|
+
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.i4;
|
|
287
|
+
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.v4;
|
|
288
|
+
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.g5;
|
|
289
|
+
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o6;
|
|
279
290
|
var ParserHelperImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
280
291
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
281
|
-
var EncoderDecoderProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
292
|
+
var EncoderDecoderProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
|
|
282
293
|
//endregion
|
|
283
294
|
//region block: pre-declaration
|
|
284
295
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -293,10 +304,31 @@
|
|
|
293
304
|
initMetadataForLambda(GameServer$playerLive$slambda, CoroutineImpl, VOID, [2]);
|
|
294
305
|
initMetadataForLambda(GameServer$playerLeft$slambda, CoroutineImpl, VOID, [2]);
|
|
295
306
|
initMetadataForLambda(GameServer$roomOnCreate$slambda, CoroutineImpl, VOID, [2]);
|
|
307
|
+
initMetadataForLambda(GameServer$addSpectatorsToRoom$slambda, CoroutineImpl, VOID, [2]);
|
|
308
|
+
initMetadataForLambda(GameServer$removeSpectatorsFromRoom$slambda, CoroutineImpl, VOID, [2]);
|
|
296
309
|
initMetadataForLambda(GameServer$roomRefreshPlayerState$slambda, CoroutineImpl, VOID, [2]);
|
|
297
310
|
initMetadataForLambda(GameServer$roomOnDelete$slambda, CoroutineImpl, VOID, [2]);
|
|
298
311
|
initMetadataForLambda(GameServer$setCanStartNewGameEnabled$slambda, CoroutineImpl, VOID, [2]);
|
|
299
312
|
initMetadataForLambda(GameServer$shutdown$slambda, CoroutineImpl, VOID, [2]);
|
|
313
|
+
function roomOnCreate(roomId, gameCreatorId, config, users, spectators, $super) {
|
|
314
|
+
var tmp;
|
|
315
|
+
if (spectators === VOID) {
|
|
316
|
+
// Inline function 'kotlin.emptyArray' call
|
|
317
|
+
tmp = [];
|
|
318
|
+
} else {
|
|
319
|
+
tmp = spectators;
|
|
320
|
+
}
|
|
321
|
+
spectators = tmp;
|
|
322
|
+
return this.gd6(roomId, gameCreatorId, config, users, spectators);
|
|
323
|
+
}
|
|
324
|
+
function roomOnDelete(newRid, $super) {
|
|
325
|
+
newRid = newRid === VOID ? null : newRid;
|
|
326
|
+
return this.hd6(newRid);
|
|
327
|
+
}
|
|
328
|
+
function shutdown(reason, roomId, $super) {
|
|
329
|
+
roomId = roomId === VOID ? null : roomId;
|
|
330
|
+
return this.id6(reason, roomId);
|
|
331
|
+
}
|
|
300
332
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
301
333
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
302
334
|
initMetadataForClass(ServerShutdownReason, 'ServerShutdownReason', VOID, Enum);
|
|
@@ -310,6 +342,9 @@
|
|
|
310
342
|
initMetadataForCoroutine($waitForCOROUTINE$1, CoroutineImpl);
|
|
311
343
|
initMetadataForClass(ToClientEventsObserverImpl, 'ToClientEventsObserverImpl', VOID, VOID, [ToClientEventsObserver], [1, 0]);
|
|
312
344
|
initMetadataForClass(UpdateServerConfigAction, 'UpdateServerConfigAction', VOID, VOID, [Action]);
|
|
345
|
+
initMetadataForInterface(SpectatorsAction, 'SpectatorsAction', VOID, VOID, [Action]);
|
|
346
|
+
initMetadataForClass(AddSpectatorsAction, 'AddSpectatorsAction', VOID, VOID, [SpectatorsAction]);
|
|
347
|
+
initMetadataForClass(RemoveSpectatorsAction, 'RemoveSpectatorsAction', VOID, VOID, [SpectatorsAction]);
|
|
313
348
|
initMetadataForClass(ServerGameStoreContract, 'ServerGameStoreContract', VOID, VOID, [StoreContract]);
|
|
314
349
|
initMetadataForClass(_no_name_provided__qut3iv, VOID, VOID, VOID, [Middleware]);
|
|
315
350
|
initMetadataForClass(_no_name_provided__qut3iv_0, VOID, VOID, VOID, [Middleware]);
|
|
@@ -318,6 +353,7 @@
|
|
|
318
353
|
initMetadataForClass(_no_name_provided__qut3iv_1, VOID, VOID, VOID, [Middleware]);
|
|
319
354
|
initMetadataForClass(_no_name_provided__qut3iv_2, VOID, VOID, VOID, [Reducer]);
|
|
320
355
|
initMetadataForClass(ServerMechanicLifecycleReducer, 'ServerMechanicLifecycleReducer', VOID, BaseMechanicLifecycleReducer, [BaseMechanicLifecycleReducer, MechanicLifecycleReducer]);
|
|
356
|
+
initMetadataForClass(_no_name_provided__qut3iv_3, VOID, VOID, VOID, [Reducer]);
|
|
321
357
|
initMetadataForCompanion(Companion_1);
|
|
322
358
|
initMetadataForClass(ServerState, 'ServerState', VOID, VOID, [AppStatePayload]);
|
|
323
359
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
@@ -331,7 +367,7 @@
|
|
|
331
367
|
tmp = existingNicknames;
|
|
332
368
|
}
|
|
333
369
|
existingNicknames = tmp;
|
|
334
|
-
return this.
|
|
370
|
+
return this.jda(playerId, existingNicknames);
|
|
335
371
|
}
|
|
336
372
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
337
373
|
initMetadataForCompanion(Companion_2);
|
|
@@ -359,38 +395,38 @@
|
|
|
359
395
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
360
396
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
361
397
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
362
|
-
return this.
|
|
398
|
+
return this.zda(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
363
399
|
}
|
|
364
400
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
365
|
-
initMetadataForClass(
|
|
401
|
+
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
366
402
|
initMetadataForClass(GameServerEngineControllerImpl, 'GameServerEngineControllerImpl', VOID, VOID, [GameEngineController]);
|
|
367
403
|
initMetadataForInterface(TestHelper, 'TestHelper');
|
|
368
404
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
369
405
|
//endregion
|
|
370
406
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
371
|
-
this.
|
|
407
|
+
this.hcz_1 = $subscriber;
|
|
372
408
|
CoroutineImpl.call(this, resultContinuation);
|
|
373
409
|
}
|
|
374
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
375
|
-
var tmp = this.
|
|
376
|
-
tmp.
|
|
377
|
-
tmp.
|
|
378
|
-
return tmp.
|
|
410
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).jcz = function (it, $completion) {
|
|
411
|
+
var tmp = this.kcz(it, $completion);
|
|
412
|
+
tmp.g9_1 = Unit_instance;
|
|
413
|
+
tmp.h9_1 = null;
|
|
414
|
+
return tmp.m9();
|
|
379
415
|
};
|
|
380
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
381
|
-
return this.
|
|
416
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
417
|
+
return this.jcz(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
382
418
|
};
|
|
383
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
384
|
-
var suspendResult = this.
|
|
419
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
420
|
+
var suspendResult = this.g9_1;
|
|
385
421
|
$sm: do
|
|
386
422
|
try {
|
|
387
|
-
var tmp = this.
|
|
423
|
+
var tmp = this.e9_1;
|
|
388
424
|
if (tmp === 0) {
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
425
|
+
this.f9_1 = 1;
|
|
426
|
+
this.hcz_1(this.icz_1);
|
|
391
427
|
return Unit_instance;
|
|
392
428
|
} else if (tmp === 1) {
|
|
393
|
-
throw this.
|
|
429
|
+
throw this.h9_1;
|
|
394
430
|
}
|
|
395
431
|
} catch ($p) {
|
|
396
432
|
var e = $p;
|
|
@@ -398,43 +434,43 @@
|
|
|
398
434
|
}
|
|
399
435
|
while (true);
|
|
400
436
|
};
|
|
401
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
402
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
403
|
-
i.
|
|
437
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).kcz = function (it, completion) {
|
|
438
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.hcz_1, completion);
|
|
439
|
+
i.icz_1 = it;
|
|
404
440
|
return i;
|
|
405
441
|
};
|
|
406
442
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
407
443
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
408
444
|
var l = function (it, $completion) {
|
|
409
|
-
return i.
|
|
445
|
+
return i.jcz(it, $completion);
|
|
410
446
|
};
|
|
411
447
|
l.$arity = 1;
|
|
412
448
|
return l;
|
|
413
449
|
}
|
|
414
450
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
415
|
-
this.
|
|
451
|
+
this.tcz_1 = $subscriber;
|
|
416
452
|
CoroutineImpl.call(this, resultContinuation);
|
|
417
453
|
}
|
|
418
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
419
|
-
var tmp = this.
|
|
420
|
-
tmp.
|
|
421
|
-
tmp.
|
|
422
|
-
return tmp.
|
|
454
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).vcz = function (it, $completion) {
|
|
455
|
+
var tmp = this.wcz(it, $completion);
|
|
456
|
+
tmp.g9_1 = Unit_instance;
|
|
457
|
+
tmp.h9_1 = null;
|
|
458
|
+
return tmp.m9();
|
|
423
459
|
};
|
|
424
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
425
|
-
return this.
|
|
460
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
461
|
+
return this.vcz(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
426
462
|
};
|
|
427
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
428
|
-
var suspendResult = this.
|
|
463
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
464
|
+
var suspendResult = this.g9_1;
|
|
429
465
|
$sm: do
|
|
430
466
|
try {
|
|
431
|
-
var tmp = this.
|
|
467
|
+
var tmp = this.e9_1;
|
|
432
468
|
if (tmp === 0) {
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
469
|
+
this.f9_1 = 1;
|
|
470
|
+
this.tcz_1(this.ucz_1);
|
|
435
471
|
return Unit_instance;
|
|
436
472
|
} else if (tmp === 1) {
|
|
437
|
-
throw this.
|
|
473
|
+
throw this.h9_1;
|
|
438
474
|
}
|
|
439
475
|
} catch ($p) {
|
|
440
476
|
var e = $p;
|
|
@@ -442,59 +478,65 @@
|
|
|
442
478
|
}
|
|
443
479
|
while (true);
|
|
444
480
|
};
|
|
445
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
446
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
447
|
-
i.
|
|
481
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).wcz = function (it, completion) {
|
|
482
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.tcz_1, completion);
|
|
483
|
+
i.ucz_1 = it;
|
|
448
484
|
return i;
|
|
449
485
|
};
|
|
450
486
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
451
487
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
452
488
|
var l = function (it, $completion) {
|
|
453
|
-
return i.
|
|
489
|
+
return i.vcz(it, $completion);
|
|
454
490
|
};
|
|
455
491
|
l.$arity = 1;
|
|
456
492
|
return l;
|
|
457
493
|
}
|
|
458
494
|
function _get_logger__rkp4sl($this) {
|
|
459
495
|
// Inline function 'kotlin.getValue' call
|
|
460
|
-
var this_0 = $this.
|
|
496
|
+
var this_0 = $this.zcz_1;
|
|
461
497
|
logger$factory_0();
|
|
462
498
|
return this_0.u();
|
|
463
499
|
}
|
|
464
500
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
465
501
|
// Inline function 'kotlin.getValue' call
|
|
466
|
-
var this_0 = $this.
|
|
502
|
+
var this_0 = $this.ad0_1;
|
|
467
503
|
toClientEventsObserver$factory_0();
|
|
468
504
|
return this_0.u();
|
|
469
505
|
}
|
|
470
506
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
471
507
|
// Inline function 'kotlin.getValue' call
|
|
472
|
-
var this_0 = $this.
|
|
508
|
+
var this_0 = $this.bd0_1;
|
|
473
509
|
playerConnectionInteractor$factory_0();
|
|
474
510
|
return this_0.u();
|
|
475
511
|
}
|
|
512
|
+
function _get_random__h29cgo($this) {
|
|
513
|
+
// Inline function 'kotlin.getValue' call
|
|
514
|
+
var this_0 = $this.cd0_1;
|
|
515
|
+
random$factory_0();
|
|
516
|
+
return this_0.u();
|
|
517
|
+
}
|
|
476
518
|
function Companion() {
|
|
477
|
-
this.
|
|
519
|
+
this.ed0_1 = 'GameEngine_API';
|
|
478
520
|
}
|
|
479
521
|
var Companion_instance_7;
|
|
480
522
|
function Companion_getInstance_2() {
|
|
481
523
|
return Companion_instance_7;
|
|
482
524
|
}
|
|
483
525
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
484
|
-
this.
|
|
526
|
+
this.fd0_1 = function_0;
|
|
485
527
|
}
|
|
486
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
487
|
-
return this.
|
|
528
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
529
|
+
return this.fd0_1(value, $completion);
|
|
488
530
|
};
|
|
489
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
490
|
-
return this.
|
|
531
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
532
|
+
return this.fd0_1;
|
|
491
533
|
};
|
|
492
534
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
493
535
|
var tmp;
|
|
494
536
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
495
537
|
var tmp_0;
|
|
496
538
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
497
|
-
tmp_0 = equals(this.
|
|
539
|
+
tmp_0 = equals(this.o3(), other.o3());
|
|
498
540
|
} else {
|
|
499
541
|
tmp_0 = false;
|
|
500
542
|
}
|
|
@@ -505,23 +547,23 @@
|
|
|
505
547
|
return tmp;
|
|
506
548
|
};
|
|
507
549
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
508
|
-
return hashCode(this.
|
|
550
|
+
return hashCode(this.o3());
|
|
509
551
|
};
|
|
510
552
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
511
|
-
this.
|
|
553
|
+
this.gd0_1 = function_0;
|
|
512
554
|
}
|
|
513
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
514
|
-
return this.
|
|
555
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
556
|
+
return this.gd0_1(value, $completion);
|
|
515
557
|
};
|
|
516
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
517
|
-
return this.
|
|
558
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
559
|
+
return this.gd0_1;
|
|
518
560
|
};
|
|
519
561
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
520
562
|
var tmp;
|
|
521
563
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
522
564
|
var tmp_0;
|
|
523
565
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
524
|
-
tmp_0 = equals(this.
|
|
566
|
+
tmp_0 = equals(this.o3(), other.o3());
|
|
525
567
|
} else {
|
|
526
568
|
tmp_0 = false;
|
|
527
569
|
}
|
|
@@ -532,34 +574,34 @@
|
|
|
532
574
|
return tmp;
|
|
533
575
|
};
|
|
534
576
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
|
|
535
|
-
return hashCode(this.
|
|
577
|
+
return hashCode(this.o3());
|
|
536
578
|
};
|
|
537
579
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
538
|
-
this.
|
|
539
|
-
this.
|
|
580
|
+
this.pd0_1 = this$0;
|
|
581
|
+
this.qd0_1 = $subscriber;
|
|
540
582
|
CoroutineImpl.call(this, resultContinuation);
|
|
541
583
|
}
|
|
542
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
543
|
-
var tmp = this.
|
|
544
|
-
tmp.
|
|
545
|
-
tmp.
|
|
546
|
-
return tmp.
|
|
584
|
+
protoOf(GameServer$subscribeToClientAction$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
585
|
+
var tmp = this.f1f($this$launchDefault, $completion);
|
|
586
|
+
tmp.g9_1 = Unit_instance;
|
|
587
|
+
tmp.h9_1 = null;
|
|
588
|
+
return tmp.m9();
|
|
547
589
|
};
|
|
548
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
549
|
-
return this.
|
|
590
|
+
protoOf(GameServer$subscribeToClientAction$slambda).w9 = function (p1, $completion) {
|
|
591
|
+
return this.e1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
550
592
|
};
|
|
551
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
552
|
-
var suspendResult = this.
|
|
593
|
+
protoOf(GameServer$subscribeToClientAction$slambda).m9 = function () {
|
|
594
|
+
var suspendResult = this.g9_1;
|
|
553
595
|
$sm: do
|
|
554
596
|
try {
|
|
555
|
-
var tmp = this.
|
|
597
|
+
var tmp = this.e9_1;
|
|
556
598
|
switch (tmp) {
|
|
557
599
|
case 0:
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
561
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
562
|
-
suspendResult = tmp_0.
|
|
600
|
+
this.f9_1 = 2;
|
|
601
|
+
this.e9_1 = 1;
|
|
602
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.pd0_1).bb5();
|
|
603
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.qd0_1, null);
|
|
604
|
+
suspendResult = tmp_0.l17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
563
605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
564
606
|
return suspendResult;
|
|
565
607
|
}
|
|
@@ -568,58 +610,58 @@
|
|
|
568
610
|
case 1:
|
|
569
611
|
return Unit_instance;
|
|
570
612
|
case 2:
|
|
571
|
-
throw this.
|
|
613
|
+
throw this.h9_1;
|
|
572
614
|
}
|
|
573
615
|
} catch ($p) {
|
|
574
616
|
var e = $p;
|
|
575
|
-
if (this.
|
|
617
|
+
if (this.f9_1 === 2) {
|
|
576
618
|
throw e;
|
|
577
619
|
} else {
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
620
|
+
this.e9_1 = this.f9_1;
|
|
621
|
+
this.h9_1 = e;
|
|
580
622
|
}
|
|
581
623
|
}
|
|
582
624
|
while (true);
|
|
583
625
|
};
|
|
584
|
-
protoOf(GameServer$subscribeToClientAction$slambda).
|
|
585
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
586
|
-
i.
|
|
626
|
+
protoOf(GameServer$subscribeToClientAction$slambda).f1f = function ($this$launchDefault, completion) {
|
|
627
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.pd0_1, this.qd0_1, completion);
|
|
628
|
+
i.rd0_1 = $this$launchDefault;
|
|
587
629
|
return i;
|
|
588
630
|
};
|
|
589
631
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
590
632
|
var i = new GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation);
|
|
591
633
|
var l = function ($this$launchDefault, $completion) {
|
|
592
|
-
return i.
|
|
634
|
+
return i.e1f($this$launchDefault, $completion);
|
|
593
635
|
};
|
|
594
636
|
l.$arity = 1;
|
|
595
637
|
return l;
|
|
596
638
|
}
|
|
597
639
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
640
|
+
this.ad1_1 = this$0;
|
|
641
|
+
this.bd1_1 = $subscriber;
|
|
600
642
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
643
|
}
|
|
602
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
603
|
-
var tmp = this.
|
|
604
|
-
tmp.
|
|
605
|
-
tmp.
|
|
606
|
-
return tmp.
|
|
644
|
+
protoOf(GameServer$subscribeWith$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
645
|
+
var tmp = this.f1f($this$launchDefault, $completion);
|
|
646
|
+
tmp.g9_1 = Unit_instance;
|
|
647
|
+
tmp.h9_1 = null;
|
|
648
|
+
return tmp.m9();
|
|
607
649
|
};
|
|
608
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
609
|
-
return this.
|
|
650
|
+
protoOf(GameServer$subscribeWith$slambda).w9 = function (p1, $completion) {
|
|
651
|
+
return this.e1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
610
652
|
};
|
|
611
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
612
|
-
var suspendResult = this.
|
|
653
|
+
protoOf(GameServer$subscribeWith$slambda).m9 = function () {
|
|
654
|
+
var suspendResult = this.g9_1;
|
|
613
655
|
$sm: do
|
|
614
656
|
try {
|
|
615
|
-
var tmp = this.
|
|
657
|
+
var tmp = this.e9_1;
|
|
616
658
|
switch (tmp) {
|
|
617
659
|
case 0:
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
621
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
622
|
-
suspendResult = tmp_0.
|
|
660
|
+
this.f9_1 = 2;
|
|
661
|
+
this.e9_1 = 1;
|
|
662
|
+
var tmp_0 = distinctUntilChanged(this.ad1_1.b6w());
|
|
663
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.bd1_1, null);
|
|
664
|
+
suspendResult = tmp_0.l17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
623
665
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
624
666
|
return suspendResult;
|
|
625
667
|
}
|
|
@@ -628,57 +670,61 @@
|
|
|
628
670
|
case 1:
|
|
629
671
|
return Unit_instance;
|
|
630
672
|
case 2:
|
|
631
|
-
throw this.
|
|
673
|
+
throw this.h9_1;
|
|
632
674
|
}
|
|
633
675
|
} catch ($p) {
|
|
634
676
|
var e = $p;
|
|
635
|
-
if (this.
|
|
677
|
+
if (this.f9_1 === 2) {
|
|
636
678
|
throw e;
|
|
637
679
|
} else {
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
680
|
+
this.e9_1 = this.f9_1;
|
|
681
|
+
this.h9_1 = e;
|
|
640
682
|
}
|
|
641
683
|
}
|
|
642
684
|
while (true);
|
|
643
685
|
};
|
|
644
|
-
protoOf(GameServer$subscribeWith$slambda).
|
|
645
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
646
|
-
i.
|
|
686
|
+
protoOf(GameServer$subscribeWith$slambda).f1f = function ($this$launchDefault, completion) {
|
|
687
|
+
var i = new GameServer$subscribeWith$slambda(this.ad1_1, this.bd1_1, completion);
|
|
688
|
+
i.cd1_1 = $this$launchDefault;
|
|
647
689
|
return i;
|
|
648
690
|
};
|
|
649
691
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
650
692
|
var i = new GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation);
|
|
651
693
|
var l = function ($this$launchDefault, $completion) {
|
|
652
|
-
return i.
|
|
694
|
+
return i.e1f($this$launchDefault, $completion);
|
|
653
695
|
};
|
|
654
696
|
l.$arity = 1;
|
|
655
697
|
return l;
|
|
656
698
|
}
|
|
657
699
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
658
|
-
this.
|
|
700
|
+
this.ld1_1 = $action;
|
|
659
701
|
CoroutineImpl.call(this, resultContinuation);
|
|
660
702
|
}
|
|
661
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
662
|
-
var tmp = this.
|
|
663
|
-
tmp.
|
|
664
|
-
tmp.
|
|
665
|
-
return tmp.
|
|
703
|
+
protoOf(GameServer$fromClientEvent$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
704
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
705
|
+
tmp.g9_1 = Unit_instance;
|
|
706
|
+
tmp.h9_1 = null;
|
|
707
|
+
return tmp.m9();
|
|
666
708
|
};
|
|
667
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
709
|
+
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
668
710
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
669
|
-
return this.
|
|
711
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
670
712
|
};
|
|
671
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
672
|
-
var suspendResult = this.
|
|
713
|
+
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
714
|
+
var suspendResult = this.g9_1;
|
|
673
715
|
$sm: do
|
|
674
716
|
try {
|
|
675
|
-
var tmp = this.
|
|
717
|
+
var tmp = this.e9_1;
|
|
676
718
|
if (tmp === 0) {
|
|
677
|
-
this.
|
|
678
|
-
|
|
719
|
+
this.f9_1 = 1;
|
|
720
|
+
if (this.ld1_1 instanceof PlayerReadyFromClientAction)
|
|
721
|
+
if (!get_isCreated(this.nd1_1.state)) {
|
|
722
|
+
return Unit_instance;
|
|
723
|
+
}
|
|
724
|
+
this.nd1_1.dispatch(this.ld1_1);
|
|
679
725
|
return Unit_instance;
|
|
680
726
|
} else if (tmp === 1) {
|
|
681
|
-
throw this.
|
|
727
|
+
throw this.h9_1;
|
|
682
728
|
}
|
|
683
729
|
} catch ($p) {
|
|
684
730
|
var e = $p;
|
|
@@ -686,47 +732,50 @@
|
|
|
686
732
|
}
|
|
687
733
|
while (true);
|
|
688
734
|
};
|
|
689
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
690
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
691
|
-
i.
|
|
692
|
-
i.
|
|
735
|
+
protoOf(GameServer$fromClientEvent$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
736
|
+
var i = new GameServer$fromClientEvent$slambda(this.ld1_1, completion);
|
|
737
|
+
i.md1_1 = $this$dispatchAsync;
|
|
738
|
+
i.nd1_1 = store;
|
|
693
739
|
return i;
|
|
694
740
|
};
|
|
695
741
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
696
742
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
697
743
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
698
|
-
return i.
|
|
744
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
699
745
|
};
|
|
700
746
|
l.$arity = 2;
|
|
701
747
|
return l;
|
|
702
748
|
}
|
|
703
749
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
704
|
-
this.
|
|
750
|
+
this.wd1_1 = $playerId;
|
|
705
751
|
CoroutineImpl.call(this, resultContinuation);
|
|
706
752
|
}
|
|
707
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
708
|
-
var tmp = this.
|
|
709
|
-
tmp.
|
|
710
|
-
tmp.
|
|
711
|
-
return tmp.
|
|
753
|
+
protoOf(GameServer$playerLostConnection$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
754
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
755
|
+
tmp.g9_1 = Unit_instance;
|
|
756
|
+
tmp.h9_1 = null;
|
|
757
|
+
return tmp.m9();
|
|
712
758
|
};
|
|
713
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
759
|
+
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
714
760
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
715
|
-
return this.
|
|
761
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
716
762
|
};
|
|
717
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
718
|
-
var suspendResult = this.
|
|
763
|
+
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
764
|
+
var suspendResult = this.g9_1;
|
|
719
765
|
$sm: do
|
|
720
766
|
try {
|
|
721
|
-
var tmp = this.
|
|
767
|
+
var tmp = this.e9_1;
|
|
722
768
|
if (tmp === 0) {
|
|
723
|
-
this.
|
|
724
|
-
|
|
769
|
+
this.f9_1 = 1;
|
|
770
|
+
if (!get_isCreated(this.yd1_1.state)) {
|
|
771
|
+
return Unit_instance;
|
|
772
|
+
}
|
|
773
|
+
var tmp_0 = this.yd1_1.dispatch;
|
|
725
774
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
726
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
775
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.wd1_1));
|
|
727
776
|
return Unit_instance;
|
|
728
777
|
} else if (tmp === 1) {
|
|
729
|
-
throw this.
|
|
778
|
+
throw this.h9_1;
|
|
730
779
|
}
|
|
731
780
|
} catch ($p) {
|
|
732
781
|
var e = $p;
|
|
@@ -734,47 +783,47 @@
|
|
|
734
783
|
}
|
|
735
784
|
while (true);
|
|
736
785
|
};
|
|
737
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
738
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
739
|
-
i.
|
|
740
|
-
i.
|
|
786
|
+
protoOf(GameServer$playerLostConnection$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
787
|
+
var i = new GameServer$playerLostConnection$slambda(this.wd1_1, completion);
|
|
788
|
+
i.xd1_1 = $this$dispatchAsync;
|
|
789
|
+
i.yd1_1 = store;
|
|
741
790
|
return i;
|
|
742
791
|
};
|
|
743
792
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
744
793
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
745
794
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
746
|
-
return i.
|
|
795
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
747
796
|
};
|
|
748
797
|
l.$arity = 2;
|
|
749
798
|
return l;
|
|
750
799
|
}
|
|
751
800
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
752
|
-
this.
|
|
801
|
+
this.hd2_1 = $playerId;
|
|
753
802
|
CoroutineImpl.call(this, resultContinuation);
|
|
754
803
|
}
|
|
755
|
-
protoOf(GameServer$playerLive$slambda).
|
|
756
|
-
var tmp = this.
|
|
757
|
-
tmp.
|
|
758
|
-
tmp.
|
|
759
|
-
return tmp.
|
|
804
|
+
protoOf(GameServer$playerLive$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
805
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
806
|
+
tmp.g9_1 = Unit_instance;
|
|
807
|
+
tmp.h9_1 = null;
|
|
808
|
+
return tmp.m9();
|
|
760
809
|
};
|
|
761
|
-
protoOf(GameServer$playerLive$slambda).
|
|
810
|
+
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
762
811
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
763
|
-
return this.
|
|
812
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
764
813
|
};
|
|
765
|
-
protoOf(GameServer$playerLive$slambda).
|
|
766
|
-
var suspendResult = this.
|
|
814
|
+
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
815
|
+
var suspendResult = this.g9_1;
|
|
767
816
|
$sm: do
|
|
768
817
|
try {
|
|
769
|
-
var tmp = this.
|
|
818
|
+
var tmp = this.e9_1;
|
|
770
819
|
if (tmp === 0) {
|
|
771
|
-
this.
|
|
772
|
-
var tmp_0 = this.
|
|
820
|
+
this.f9_1 = 1;
|
|
821
|
+
var tmp_0 = this.jd2_1.dispatch;
|
|
773
822
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
774
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
823
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.hd2_1));
|
|
775
824
|
return Unit_instance;
|
|
776
825
|
} else if (tmp === 1) {
|
|
777
|
-
throw this.
|
|
826
|
+
throw this.h9_1;
|
|
778
827
|
}
|
|
779
828
|
} catch ($p) {
|
|
780
829
|
var e = $p;
|
|
@@ -782,47 +831,47 @@
|
|
|
782
831
|
}
|
|
783
832
|
while (true);
|
|
784
833
|
};
|
|
785
|
-
protoOf(GameServer$playerLive$slambda).
|
|
786
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
787
|
-
i.
|
|
788
|
-
i.
|
|
834
|
+
protoOf(GameServer$playerLive$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
835
|
+
var i = new GameServer$playerLive$slambda(this.hd2_1, completion);
|
|
836
|
+
i.id2_1 = $this$dispatchAsync;
|
|
837
|
+
i.jd2_1 = store;
|
|
789
838
|
return i;
|
|
790
839
|
};
|
|
791
840
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
792
841
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
793
842
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
794
|
-
return i.
|
|
843
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
795
844
|
};
|
|
796
845
|
l.$arity = 2;
|
|
797
846
|
return l;
|
|
798
847
|
}
|
|
799
848
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
800
|
-
this.
|
|
849
|
+
this.sd2_1 = $playerId;
|
|
801
850
|
CoroutineImpl.call(this, resultContinuation);
|
|
802
851
|
}
|
|
803
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
804
|
-
var tmp = this.
|
|
805
|
-
tmp.
|
|
806
|
-
tmp.
|
|
807
|
-
return tmp.
|
|
852
|
+
protoOf(GameServer$playerLeft$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
853
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
854
|
+
tmp.g9_1 = Unit_instance;
|
|
855
|
+
tmp.h9_1 = null;
|
|
856
|
+
return tmp.m9();
|
|
808
857
|
};
|
|
809
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
858
|
+
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
810
859
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
811
|
-
return this.
|
|
860
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
812
861
|
};
|
|
813
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
814
|
-
var suspendResult = this.
|
|
862
|
+
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
863
|
+
var suspendResult = this.g9_1;
|
|
815
864
|
$sm: do
|
|
816
865
|
try {
|
|
817
|
-
var tmp = this.
|
|
866
|
+
var tmp = this.e9_1;
|
|
818
867
|
if (tmp === 0) {
|
|
819
|
-
this.
|
|
820
|
-
var tmp_0 = this.
|
|
868
|
+
this.f9_1 = 1;
|
|
869
|
+
var tmp_0 = this.ud2_1.dispatch;
|
|
821
870
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
822
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
871
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.sd2_1));
|
|
823
872
|
return Unit_instance;
|
|
824
873
|
} else if (tmp === 1) {
|
|
825
|
-
throw this.
|
|
874
|
+
throw this.h9_1;
|
|
826
875
|
}
|
|
827
876
|
} catch ($p) {
|
|
828
877
|
var e = $p;
|
|
@@ -830,53 +879,148 @@
|
|
|
830
879
|
}
|
|
831
880
|
while (true);
|
|
832
881
|
};
|
|
833
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
834
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
835
|
-
i.
|
|
836
|
-
i.
|
|
882
|
+
protoOf(GameServer$playerLeft$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
883
|
+
var i = new GameServer$playerLeft$slambda(this.sd2_1, completion);
|
|
884
|
+
i.td2_1 = $this$dispatchAsync;
|
|
885
|
+
i.ud2_1 = store;
|
|
837
886
|
return i;
|
|
838
887
|
};
|
|
839
888
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
840
889
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
841
890
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
842
|
-
return i.
|
|
891
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
843
892
|
};
|
|
844
893
|
l.$arity = 2;
|
|
845
894
|
return l;
|
|
846
895
|
}
|
|
847
|
-
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, $config, $roomId, resultContinuation) {
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
896
|
+
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
897
|
+
this.dd3_1 = $users;
|
|
898
|
+
this.ed3_1 = $gameCreatorId;
|
|
899
|
+
this.fd3_1 = this$0;
|
|
900
|
+
this.gd3_1 = $spectators;
|
|
901
|
+
this.hd3_1 = $config;
|
|
902
|
+
this.id3_1 = $roomId;
|
|
852
903
|
CoroutineImpl.call(this, resultContinuation);
|
|
853
904
|
}
|
|
854
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
855
|
-
var tmp = this.
|
|
856
|
-
tmp.
|
|
857
|
-
tmp.
|
|
858
|
-
return tmp.
|
|
905
|
+
protoOf(GameServer$roomOnCreate$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
906
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
907
|
+
tmp.g9_1 = Unit_instance;
|
|
908
|
+
tmp.h9_1 = null;
|
|
909
|
+
return tmp.m9();
|
|
859
910
|
};
|
|
860
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
911
|
+
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
861
912
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
862
|
-
return this.
|
|
913
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
863
914
|
};
|
|
864
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
865
|
-
var suspendResult = this.
|
|
915
|
+
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
916
|
+
var suspendResult = this.g9_1;
|
|
866
917
|
$sm: do
|
|
867
918
|
try {
|
|
868
|
-
var tmp = this.
|
|
919
|
+
var tmp = this.e9_1;
|
|
869
920
|
if (tmp === 0) {
|
|
870
|
-
this.
|
|
871
|
-
var usersList = toList(this.
|
|
872
|
-
var gameCreatorUser = getPlayer(usersList, this.
|
|
873
|
-
var tmp_0 = this.
|
|
921
|
+
this.f9_1 = 1;
|
|
922
|
+
var usersList = toList(this.dd3_1);
|
|
923
|
+
var gameCreatorUser = getPlayer(usersList, this.ed3_1);
|
|
924
|
+
var tmp_0 = this.kd3_1.dispatch;
|
|
874
925
|
var tmp0_version = GameEngineConfig_instance.version;
|
|
875
|
-
var tmp1_users = sortWithItem(usersList, gameCreatorUser);
|
|
876
|
-
|
|
926
|
+
var tmp1_users = sortWithItem(_get_random__h29cgo(this.fd3_1).x5z(toMutableList(usersList)), gameCreatorUser);
|
|
927
|
+
var tmp2_spectators = toList(this.gd3_1);
|
|
928
|
+
tmp_0(new StartGameMechanicAction(this.hd3_1, this.id3_1, tmp0_version, this.ed3_1, tmp1_users, VOID, tmp2_spectators));
|
|
929
|
+
return Unit_instance;
|
|
930
|
+
} else if (tmp === 1) {
|
|
931
|
+
throw this.h9_1;
|
|
932
|
+
}
|
|
933
|
+
} catch ($p) {
|
|
934
|
+
var e = $p;
|
|
935
|
+
throw e;
|
|
936
|
+
}
|
|
937
|
+
while (true);
|
|
938
|
+
};
|
|
939
|
+
protoOf(GameServer$roomOnCreate$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
940
|
+
var i = new GameServer$roomOnCreate$slambda(this.dd3_1, this.ed3_1, this.fd3_1, this.gd3_1, this.hd3_1, this.id3_1, completion);
|
|
941
|
+
i.jd3_1 = $this$dispatchAsync;
|
|
942
|
+
i.kd3_1 = store;
|
|
943
|
+
return i;
|
|
944
|
+
};
|
|
945
|
+
function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
946
|
+
var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation);
|
|
947
|
+
var l = function ($this$dispatchAsync, store, $completion) {
|
|
948
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
949
|
+
};
|
|
950
|
+
l.$arity = 2;
|
|
951
|
+
return l;
|
|
952
|
+
}
|
|
953
|
+
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
954
|
+
this.td3_1 = $spectators;
|
|
955
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
956
|
+
}
|
|
957
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
958
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
959
|
+
tmp.g9_1 = Unit_instance;
|
|
960
|
+
tmp.h9_1 = null;
|
|
961
|
+
return tmp.m9();
|
|
962
|
+
};
|
|
963
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
964
|
+
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
965
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
966
|
+
};
|
|
967
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
968
|
+
var suspendResult = this.g9_1;
|
|
969
|
+
$sm: do
|
|
970
|
+
try {
|
|
971
|
+
var tmp = this.e9_1;
|
|
972
|
+
if (tmp === 0) {
|
|
973
|
+
this.f9_1 = 1;
|
|
974
|
+
this.vd3_1.dispatch(new AddSpectatorsAction(toList(this.td3_1)));
|
|
975
|
+
return Unit_instance;
|
|
976
|
+
} else if (tmp === 1) {
|
|
977
|
+
throw this.h9_1;
|
|
978
|
+
}
|
|
979
|
+
} catch ($p) {
|
|
980
|
+
var e = $p;
|
|
981
|
+
throw e;
|
|
982
|
+
}
|
|
983
|
+
while (true);
|
|
984
|
+
};
|
|
985
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
986
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.td3_1, completion);
|
|
987
|
+
i.ud3_1 = $this$dispatchAsync;
|
|
988
|
+
i.vd3_1 = store;
|
|
989
|
+
return i;
|
|
990
|
+
};
|
|
991
|
+
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
992
|
+
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
993
|
+
var l = function ($this$dispatchAsync, store, $completion) {
|
|
994
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
995
|
+
};
|
|
996
|
+
l.$arity = 2;
|
|
997
|
+
return l;
|
|
998
|
+
}
|
|
999
|
+
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1000
|
+
this.ed4_1 = $spectators;
|
|
1001
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1002
|
+
}
|
|
1003
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
1004
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
1005
|
+
tmp.g9_1 = Unit_instance;
|
|
1006
|
+
tmp.h9_1 = null;
|
|
1007
|
+
return tmp.m9();
|
|
1008
|
+
};
|
|
1009
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1010
|
+
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1011
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1012
|
+
};
|
|
1013
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1014
|
+
var suspendResult = this.g9_1;
|
|
1015
|
+
$sm: do
|
|
1016
|
+
try {
|
|
1017
|
+
var tmp = this.e9_1;
|
|
1018
|
+
if (tmp === 0) {
|
|
1019
|
+
this.f9_1 = 1;
|
|
1020
|
+
this.gd4_1.dispatch(new RemoveSpectatorsAction(toList(this.ed4_1)));
|
|
877
1021
|
return Unit_instance;
|
|
878
1022
|
} else if (tmp === 1) {
|
|
879
|
-
throw this.
|
|
1023
|
+
throw this.h9_1;
|
|
880
1024
|
}
|
|
881
1025
|
} catch ($p) {
|
|
882
1026
|
var e = $p;
|
|
@@ -884,47 +1028,54 @@
|
|
|
884
1028
|
}
|
|
885
1029
|
while (true);
|
|
886
1030
|
};
|
|
887
|
-
protoOf(GameServer$
|
|
888
|
-
var i = new GameServer$
|
|
889
|
-
i.
|
|
890
|
-
i.
|
|
1031
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
1032
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.ed4_1, completion);
|
|
1033
|
+
i.fd4_1 = $this$dispatchAsync;
|
|
1034
|
+
i.gd4_1 = store;
|
|
891
1035
|
return i;
|
|
892
1036
|
};
|
|
893
|
-
function GameServer$
|
|
894
|
-
var i = new GameServer$
|
|
1037
|
+
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1038
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
895
1039
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
896
|
-
return i.
|
|
1040
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
897
1041
|
};
|
|
898
1042
|
l.$arity = 2;
|
|
899
1043
|
return l;
|
|
900
1044
|
}
|
|
901
|
-
function GameServer$roomRefreshPlayerState$slambda(
|
|
902
|
-
this.
|
|
903
|
-
this.
|
|
1045
|
+
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1046
|
+
this.pd4_1 = $playerId;
|
|
1047
|
+
this.qd4_1 = this$0;
|
|
904
1048
|
CoroutineImpl.call(this, resultContinuation);
|
|
905
1049
|
}
|
|
906
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
907
|
-
var tmp = this.
|
|
908
|
-
tmp.
|
|
909
|
-
tmp.
|
|
910
|
-
return tmp.
|
|
1050
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
1051
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
1052
|
+
tmp.g9_1 = Unit_instance;
|
|
1053
|
+
tmp.h9_1 = null;
|
|
1054
|
+
return tmp.m9();
|
|
911
1055
|
};
|
|
912
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1056
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
913
1057
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
914
|
-
return this.
|
|
1058
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
915
1059
|
};
|
|
916
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
917
|
-
var suspendResult = this.
|
|
1060
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1061
|
+
var suspendResult = this.g9_1;
|
|
918
1062
|
$sm: do
|
|
919
1063
|
try {
|
|
920
|
-
var tmp = this.
|
|
1064
|
+
var tmp = this.e9_1;
|
|
921
1065
|
if (tmp === 0) {
|
|
922
|
-
this.
|
|
923
|
-
var table = this.
|
|
924
|
-
|
|
1066
|
+
this.f9_1 = 1;
|
|
1067
|
+
var table = this.sd4_1.state.e6x();
|
|
1068
|
+
var player = getPlayer(table.players, this.pd4_1);
|
|
1069
|
+
if (player.j73_1.z6g().q6f_1.isLive) {
|
|
1070
|
+
this.sd4_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.qd4_1).v92(player, table));
|
|
1071
|
+
} else {
|
|
1072
|
+
var tmp_0 = this.sd4_1.dispatch;
|
|
1073
|
+
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1074
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.pd4_1));
|
|
1075
|
+
}
|
|
925
1076
|
return Unit_instance;
|
|
926
1077
|
} else if (tmp === 1) {
|
|
927
|
-
throw this.
|
|
1078
|
+
throw this.h9_1;
|
|
928
1079
|
}
|
|
929
1080
|
} catch ($p) {
|
|
930
1081
|
var e = $p;
|
|
@@ -932,54 +1083,54 @@
|
|
|
932
1083
|
}
|
|
933
1084
|
while (true);
|
|
934
1085
|
};
|
|
935
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
936
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
937
|
-
i.
|
|
938
|
-
i.
|
|
1086
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
1087
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.pd4_1, this.qd4_1, completion);
|
|
1088
|
+
i.rd4_1 = $this$dispatchAsync;
|
|
1089
|
+
i.sd4_1 = store;
|
|
939
1090
|
return i;
|
|
940
1091
|
};
|
|
941
|
-
function GameServer$roomRefreshPlayerState$slambda_0(
|
|
942
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(
|
|
1092
|
+
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1093
|
+
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
943
1094
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
944
|
-
return i.
|
|
1095
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
945
1096
|
};
|
|
946
1097
|
l.$arity = 2;
|
|
947
1098
|
return l;
|
|
948
1099
|
}
|
|
949
1100
|
function GameServer$roomOnDelete$slambda(this$0, resultContinuation) {
|
|
950
|
-
this.
|
|
1101
|
+
this.bd5_1 = this$0;
|
|
951
1102
|
CoroutineImpl.call(this, resultContinuation);
|
|
952
1103
|
}
|
|
953
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
954
|
-
var tmp = this.
|
|
955
|
-
tmp.
|
|
956
|
-
tmp.
|
|
957
|
-
return tmp.
|
|
1104
|
+
protoOf(GameServer$roomOnDelete$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
1105
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
1106
|
+
tmp.g9_1 = Unit_instance;
|
|
1107
|
+
tmp.h9_1 = null;
|
|
1108
|
+
return tmp.m9();
|
|
958
1109
|
};
|
|
959
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1110
|
+
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
960
1111
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
961
|
-
return this.
|
|
1112
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
962
1113
|
};
|
|
963
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
964
|
-
var suspendResult = this.
|
|
1114
|
+
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1115
|
+
var suspendResult = this.g9_1;
|
|
965
1116
|
$sm: do
|
|
966
1117
|
try {
|
|
967
|
-
var tmp = this.
|
|
1118
|
+
var tmp = this.e9_1;
|
|
968
1119
|
if (tmp === 0) {
|
|
969
|
-
this.
|
|
970
|
-
var it = this.
|
|
1120
|
+
this.f9_1 = 1;
|
|
1121
|
+
var it = this.bd5_1.w6e().f6w_1;
|
|
971
1122
|
var tmp_0;
|
|
972
1123
|
if (it == null) {
|
|
973
|
-
_get_logger__rkp4sl(this.
|
|
1124
|
+
_get_logger__rkp4sl(this.bd5_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
974
1125
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
975
1126
|
} else {
|
|
976
1127
|
tmp_0 = it;
|
|
977
1128
|
}
|
|
978
1129
|
var terminationState = tmp_0;
|
|
979
|
-
this.
|
|
1130
|
+
this.dd5_1.dispatch(new FinishGameMechanicAction(terminationState.k89_1, this.bd5_1.w6e().e6x().isGameFinished));
|
|
980
1131
|
return Unit_instance;
|
|
981
1132
|
} else if (tmp === 1) {
|
|
982
|
-
throw this.
|
|
1133
|
+
throw this.h9_1;
|
|
983
1134
|
}
|
|
984
1135
|
} catch ($p) {
|
|
985
1136
|
var e = $p;
|
|
@@ -987,45 +1138,45 @@
|
|
|
987
1138
|
}
|
|
988
1139
|
while (true);
|
|
989
1140
|
};
|
|
990
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
991
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
992
|
-
i.
|
|
993
|
-
i.
|
|
1141
|
+
protoOf(GameServer$roomOnDelete$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
1142
|
+
var i = new GameServer$roomOnDelete$slambda(this.bd5_1, completion);
|
|
1143
|
+
i.cd5_1 = $this$dispatchAsync;
|
|
1144
|
+
i.dd5_1 = store;
|
|
994
1145
|
return i;
|
|
995
1146
|
};
|
|
996
1147
|
function GameServer$roomOnDelete$slambda_0(this$0, resultContinuation) {
|
|
997
1148
|
var i = new GameServer$roomOnDelete$slambda(this$0, resultContinuation);
|
|
998
1149
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
999
|
-
return i.
|
|
1150
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
1000
1151
|
};
|
|
1001
1152
|
l.$arity = 2;
|
|
1002
1153
|
return l;
|
|
1003
1154
|
}
|
|
1004
1155
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1005
|
-
this.
|
|
1156
|
+
this.md5_1 = $enabled;
|
|
1006
1157
|
CoroutineImpl.call(this, resultContinuation);
|
|
1007
1158
|
}
|
|
1008
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1009
|
-
var tmp = this.
|
|
1010
|
-
tmp.
|
|
1011
|
-
tmp.
|
|
1012
|
-
return tmp.
|
|
1159
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
1160
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
1161
|
+
tmp.g9_1 = Unit_instance;
|
|
1162
|
+
tmp.h9_1 = null;
|
|
1163
|
+
return tmp.m9();
|
|
1013
1164
|
};
|
|
1014
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1165
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1015
1166
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1016
|
-
return this.
|
|
1167
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1017
1168
|
};
|
|
1018
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1019
|
-
var suspendResult = this.
|
|
1169
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1170
|
+
var suspendResult = this.g9_1;
|
|
1020
1171
|
$sm: do
|
|
1021
1172
|
try {
|
|
1022
|
-
var tmp = this.
|
|
1173
|
+
var tmp = this.e9_1;
|
|
1023
1174
|
if (tmp === 0) {
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1175
|
+
this.f9_1 = 1;
|
|
1176
|
+
this.od5_1.dispatch(new UpdateServerConfigAction(get_serverState(this.od5_1.state).pd5_1.rd5(this.md5_1)));
|
|
1026
1177
|
return Unit_instance;
|
|
1027
1178
|
} else if (tmp === 1) {
|
|
1028
|
-
throw this.
|
|
1179
|
+
throw this.h9_1;
|
|
1029
1180
|
}
|
|
1030
1181
|
} catch ($p) {
|
|
1031
1182
|
var e = $p;
|
|
@@ -1033,50 +1184,51 @@
|
|
|
1033
1184
|
}
|
|
1034
1185
|
while (true);
|
|
1035
1186
|
};
|
|
1036
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1037
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1038
|
-
i.
|
|
1039
|
-
i.
|
|
1187
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
1188
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.md5_1, completion);
|
|
1189
|
+
i.nd5_1 = $this$dispatchAsync;
|
|
1190
|
+
i.od5_1 = store;
|
|
1040
1191
|
return i;
|
|
1041
1192
|
};
|
|
1042
1193
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1043
1194
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1044
1195
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1045
|
-
return i.
|
|
1196
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
1046
1197
|
};
|
|
1047
1198
|
l.$arity = 2;
|
|
1048
1199
|
return l;
|
|
1049
1200
|
}
|
|
1050
|
-
function GameServer$shutdown$slambda($reason, this$0, resultContinuation) {
|
|
1051
|
-
this.
|
|
1052
|
-
this.
|
|
1201
|
+
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1202
|
+
this.ad6_1 = $reason;
|
|
1203
|
+
this.bd6_1 = this$0;
|
|
1204
|
+
this.cd6_1 = $roomId;
|
|
1053
1205
|
CoroutineImpl.call(this, resultContinuation);
|
|
1054
1206
|
}
|
|
1055
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1056
|
-
var tmp = this.
|
|
1057
|
-
tmp.
|
|
1058
|
-
tmp.
|
|
1059
|
-
return tmp.
|
|
1207
|
+
protoOf(GameServer$shutdown$slambda).cb0 = function ($this$dispatchAsync, store, $completion) {
|
|
1208
|
+
var tmp = this.db0($this$dispatchAsync, store, $completion);
|
|
1209
|
+
tmp.g9_1 = Unit_instance;
|
|
1210
|
+
tmp.h9_1 = null;
|
|
1211
|
+
return tmp.m9();
|
|
1060
1212
|
};
|
|
1061
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1213
|
+
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1062
1214
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1063
|
-
return this.
|
|
1215
|
+
return this.cb0(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1064
1216
|
};
|
|
1065
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1066
|
-
var suspendResult = this.
|
|
1217
|
+
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1218
|
+
var suspendResult = this.g9_1;
|
|
1067
1219
|
$sm: do
|
|
1068
1220
|
try {
|
|
1069
|
-
var tmp = this.
|
|
1221
|
+
var tmp = this.e9_1;
|
|
1070
1222
|
if (tmp === 0) {
|
|
1071
|
-
this.
|
|
1072
|
-
var state = this.
|
|
1073
|
-
if (state.
|
|
1074
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1223
|
+
this.f9_1 = 1;
|
|
1224
|
+
var state = this.ed6_1.store.state;
|
|
1225
|
+
if (state.f6x()) {
|
|
1226
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.ad6_1, get_serverShutdownReasonMapping());
|
|
1075
1227
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1076
|
-
var tmp_0 = this.
|
|
1228
|
+
var tmp_0 = this.ed6_1.dispatch;
|
|
1077
1229
|
var tmp_1 = Companion_instance;
|
|
1078
1230
|
var tmp_2;
|
|
1079
|
-
switch (shutdownReason.
|
|
1231
|
+
switch (shutdownReason.n2_1) {
|
|
1080
1232
|
case 0:
|
|
1081
1233
|
tmp_2 = new GameFinishedReason(Reason_DEPLOY_getInstance());
|
|
1082
1234
|
break;
|
|
@@ -1087,14 +1239,14 @@
|
|
|
1087
1239
|
noWhenBranchMatchedException();
|
|
1088
1240
|
break;
|
|
1089
1241
|
}
|
|
1090
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1242
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.bd6_1.table.isGameFinished, this.bd6_1.table));
|
|
1091
1243
|
} else {
|
|
1092
|
-
_get_logger__rkp4sl(this.
|
|
1093
|
-
this.
|
|
1244
|
+
_get_logger__rkp4sl(this.bd6_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.cd6_1);
|
|
1245
|
+
this.ed6_1.dispatch(new ClearAction());
|
|
1094
1246
|
}
|
|
1095
1247
|
return Unit_instance;
|
|
1096
1248
|
} else if (tmp === 1) {
|
|
1097
|
-
throw this.
|
|
1249
|
+
throw this.h9_1;
|
|
1098
1250
|
}
|
|
1099
1251
|
} catch ($p) {
|
|
1100
1252
|
var e = $p;
|
|
@@ -1102,22 +1254,22 @@
|
|
|
1102
1254
|
}
|
|
1103
1255
|
while (true);
|
|
1104
1256
|
};
|
|
1105
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1106
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1107
|
-
i.
|
|
1108
|
-
i.
|
|
1257
|
+
protoOf(GameServer$shutdown$slambda).db0 = function ($this$dispatchAsync, store, completion) {
|
|
1258
|
+
var i = new GameServer$shutdown$slambda(this.ad6_1, this.bd6_1, this.cd6_1, completion);
|
|
1259
|
+
i.dd6_1 = $this$dispatchAsync;
|
|
1260
|
+
i.ed6_1 = store;
|
|
1109
1261
|
return i;
|
|
1110
1262
|
};
|
|
1111
|
-
function GameServer$shutdown$slambda_0($reason, this$0, resultContinuation) {
|
|
1112
|
-
var i = new GameServer$shutdown$slambda($reason, this$0, resultContinuation);
|
|
1263
|
+
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1264
|
+
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1113
1265
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1114
|
-
return i.
|
|
1266
|
+
return i.cb0($this$dispatchAsync, store, $completion);
|
|
1115
1267
|
};
|
|
1116
1268
|
l.$arity = 2;
|
|
1117
1269
|
return l;
|
|
1118
1270
|
}
|
|
1119
1271
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1120
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.
|
|
1272
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.fd6()) : preloadedState;
|
|
1121
1273
|
var tmp;
|
|
1122
1274
|
if (externalReducers === VOID) {
|
|
1123
1275
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1140,77 +1292,90 @@
|
|
|
1140
1292
|
// Inline function 'org.kodein.type.generic' call
|
|
1141
1293
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1142
1294
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1143
|
-
tmp_1.
|
|
1295
|
+
tmp_1.zcz_1 = Instance(di, tmp$ret$2, null).m67(this, logger$factory());
|
|
1144
1296
|
var tmp_3 = this;
|
|
1145
1297
|
// Inline function 'org.kodein.di.instance' call
|
|
1146
1298
|
// Inline function 'org.kodein.type.generic' call
|
|
1147
1299
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1148
1300
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1149
|
-
tmp_3.
|
|
1301
|
+
tmp_3.ad0_1 = Instance(di, tmp$ret$4, null).m67(this, toClientEventsObserver$factory());
|
|
1150
1302
|
var tmp_5 = this;
|
|
1151
1303
|
// Inline function 'org.kodein.di.instance' call
|
|
1152
1304
|
// Inline function 'org.kodein.type.generic' call
|
|
1153
1305
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1154
1306
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1155
|
-
tmp_5.
|
|
1307
|
+
tmp_5.bd0_1 = Instance(di, tmp$ret$6, null).m67(this, playerConnectionInteractor$factory());
|
|
1156
1308
|
var tmp_7 = this;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1309
|
+
// Inline function 'org.kodein.di.instance' call
|
|
1310
|
+
// Inline function 'org.kodein.type.generic' call
|
|
1311
|
+
var tmp_8 = typeToken(createKType(getKClass(CustomRandom), arrayOf([]), false));
|
|
1312
|
+
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1313
|
+
tmp_7.cd0_1 = Instance(di, tmp$ret$8, null).m67(this, random$factory());
|
|
1314
|
+
var tmp_9 = this;
|
|
1315
|
+
var tmp0_externalMiddlewares = plus(storeContract.p98(), externalMiddlewares);
|
|
1316
|
+
var tmp1_externalReducers = plus(storeContract.o98(), externalReducers);
|
|
1317
|
+
tmp_9.dd0_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1160
1318
|
}
|
|
1161
|
-
protoOf(GameServer).
|
|
1162
|
-
return this.
|
|
1319
|
+
protoOf(GameServer).r6v = function () {
|
|
1320
|
+
return this.dd0_1;
|
|
1163
1321
|
};
|
|
1164
|
-
protoOf(GameServer).
|
|
1165
|
-
return this.
|
|
1322
|
+
protoOf(GameServer).w5o = function () {
|
|
1323
|
+
return this.w6e().e6x().id;
|
|
1166
1324
|
};
|
|
1167
|
-
protoOf(GameServer).
|
|
1168
|
-
return this.
|
|
1325
|
+
protoOf(GameServer).e6x = function () {
|
|
1326
|
+
return this.w6e().e6x();
|
|
1169
1327
|
};
|
|
1170
|
-
protoOf(GameServer).
|
|
1171
|
-
return this.
|
|
1328
|
+
protoOf(GameServer).f6x = function () {
|
|
1329
|
+
return this.w6e().f6x();
|
|
1172
1330
|
};
|
|
1173
|
-
protoOf(GameServer).
|
|
1174
|
-
return this.
|
|
1331
|
+
protoOf(GameServer).g6x = function () {
|
|
1332
|
+
return this.w6e().e6w_1;
|
|
1175
1333
|
};
|
|
1176
1334
|
protoOf(GameServer).subscribeToClientAction = function (subscriber) {
|
|
1177
|
-
var tmp = this.
|
|
1178
|
-
tmp.
|
|
1335
|
+
var tmp = this.p6v();
|
|
1336
|
+
tmp.x6k(VOID, GameServer$subscribeToClientAction$slambda_0(this, subscriber, null));
|
|
1179
1337
|
};
|
|
1180
1338
|
protoOf(GameServer).subscribeWith = function (subscriber) {
|
|
1181
|
-
var tmp = this.
|
|
1182
|
-
tmp.
|
|
1339
|
+
var tmp = this.p6v();
|
|
1340
|
+
tmp.x6k(VOID, GameServer$subscribeWith$slambda_0(this, subscriber, null));
|
|
1183
1341
|
};
|
|
1184
1342
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1185
1343
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1186
|
-
this.
|
|
1344
|
+
this.dd0_1.d6x(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1187
1345
|
};
|
|
1188
1346
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1189
1347
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1190
|
-
this.
|
|
1348
|
+
this.dd0_1.d6x(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1191
1349
|
};
|
|
1192
1350
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1193
1351
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1194
|
-
this.
|
|
1352
|
+
this.dd0_1.d6x(GameServer$playerLive$slambda_0(playerId, null));
|
|
1195
1353
|
};
|
|
1196
1354
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1197
1355
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1198
|
-
this.
|
|
1356
|
+
this.dd0_1.d6x(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1357
|
+
};
|
|
1358
|
+
protoOf(GameServer).gd6 = function (roomId, gameCreatorId, config, users, spectators) {
|
|
1359
|
+
this.dd0_1.d6x(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, this, spectators, config, roomId, null));
|
|
1199
1360
|
};
|
|
1200
|
-
protoOf(GameServer).
|
|
1201
|
-
this.
|
|
1361
|
+
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1362
|
+
this.dd0_1.d6x(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1363
|
+
};
|
|
1364
|
+
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1365
|
+
this.dd0_1.d6x(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1202
1366
|
};
|
|
1203
1367
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1204
|
-
this.
|
|
1368
|
+
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1369
|
+
this.dd0_1.d6x(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1205
1370
|
};
|
|
1206
|
-
protoOf(GameServer).
|
|
1207
|
-
this.
|
|
1371
|
+
protoOf(GameServer).hd6 = function (newRid) {
|
|
1372
|
+
this.dd0_1.d6x(GameServer$roomOnDelete$slambda_0(this, null));
|
|
1208
1373
|
};
|
|
1209
1374
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1210
|
-
this.
|
|
1375
|
+
this.dd0_1.d6x(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1211
1376
|
};
|
|
1212
|
-
protoOf(GameServer).
|
|
1213
|
-
this.
|
|
1377
|
+
protoOf(GameServer).id6 = function (reason, roomId) {
|
|
1378
|
+
this.dd0_1.d6x(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1214
1379
|
};
|
|
1215
1380
|
protoOf(GameServer).clear = function () {
|
|
1216
1381
|
return this.a2();
|
|
@@ -1230,6 +1395,11 @@
|
|
|
1230
1395
|
return _get_playerConnectionInteractor__si6cxf(receiver);
|
|
1231
1396
|
}, null);
|
|
1232
1397
|
}
|
|
1398
|
+
function random$factory() {
|
|
1399
|
+
return getPropertyCallableRef('random', 1, KProperty1, function (receiver) {
|
|
1400
|
+
return _get_random__h29cgo(receiver);
|
|
1401
|
+
}, null);
|
|
1402
|
+
}
|
|
1233
1403
|
function logger$factory_0() {
|
|
1234
1404
|
return getPropertyCallableRef('logger', 1, KProperty1, function (receiver) {
|
|
1235
1405
|
return _get_logger__rkp4sl(receiver);
|
|
@@ -1245,6 +1415,11 @@
|
|
|
1245
1415
|
return _get_playerConnectionInteractor__si6cxf(receiver);
|
|
1246
1416
|
}, null);
|
|
1247
1417
|
}
|
|
1418
|
+
function random$factory_0() {
|
|
1419
|
+
return getPropertyCallableRef('random', 1, KProperty1, function (receiver) {
|
|
1420
|
+
return _get_random__h29cgo(receiver);
|
|
1421
|
+
}, null);
|
|
1422
|
+
}
|
|
1248
1423
|
function get_serverShutdownReasonMapping() {
|
|
1249
1424
|
_init_properties_ReasonsMappers_kt__p6o0hv();
|
|
1250
1425
|
return serverShutdownReasonMapping;
|
|
@@ -1279,16 +1454,16 @@
|
|
|
1279
1454
|
return ServerShutdownReason_ERROR_instance;
|
|
1280
1455
|
}
|
|
1281
1456
|
function ServerConfig(canStartNewGame) {
|
|
1282
|
-
this.
|
|
1457
|
+
this.qd5_1 = canStartNewGame;
|
|
1283
1458
|
}
|
|
1284
|
-
protoOf(ServerConfig).
|
|
1459
|
+
protoOf(ServerConfig).rd5 = function (canStartNewGame) {
|
|
1285
1460
|
return new ServerConfig(canStartNewGame);
|
|
1286
1461
|
};
|
|
1287
1462
|
protoOf(ServerConfig).toString = function () {
|
|
1288
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1463
|
+
return 'ServerConfig(canStartNewGame=' + this.qd5_1 + ')';
|
|
1289
1464
|
};
|
|
1290
1465
|
protoOf(ServerConfig).hashCode = function () {
|
|
1291
|
-
return getBooleanHashCode(this.
|
|
1466
|
+
return getBooleanHashCode(this.qd5_1);
|
|
1292
1467
|
};
|
|
1293
1468
|
protoOf(ServerConfig).equals = function (other) {
|
|
1294
1469
|
if (this === other)
|
|
@@ -1296,7 +1471,7 @@
|
|
|
1296
1471
|
if (!(other instanceof ServerConfig))
|
|
1297
1472
|
return false;
|
|
1298
1473
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1299
|
-
if (!(this.
|
|
1474
|
+
if (!(this.qd5_1 === tmp0_other_with_cast.qd5_1))
|
|
1300
1475
|
return false;
|
|
1301
1476
|
return true;
|
|
1302
1477
|
};
|
|
@@ -1314,27 +1489,27 @@
|
|
|
1314
1489
|
};
|
|
1315
1490
|
}
|
|
1316
1491
|
function createGameServerDI$lambda$lambda_0($this$singleton) {
|
|
1317
|
-
return new ServerGameStoreContract($this$singleton.
|
|
1492
|
+
return new ServerGameStoreContract($this$singleton.b62());
|
|
1318
1493
|
}
|
|
1319
1494
|
function createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares) {
|
|
1320
1495
|
return function ($this$singleton) {
|
|
1321
|
-
var tmp = $this$singleton.
|
|
1496
|
+
var tmp = $this$singleton.b62();
|
|
1322
1497
|
// Inline function 'org.kodein.di.instance' call
|
|
1323
|
-
var tmp_0 = $this$singleton.
|
|
1498
|
+
var tmp_0 = $this$singleton.e63();
|
|
1324
1499
|
// Inline function 'org.kodein.type.generic' call
|
|
1325
1500
|
var tmp_1 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
1326
1501
|
var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE();
|
|
1327
|
-
var tmp$ret$1 = tmp_0.
|
|
1502
|
+
var tmp$ret$1 = tmp_0.d63(tmp$ret$0, null);
|
|
1328
1503
|
return new GameServer(tmp, 'Game server', tmp$ret$1, VOID, $externalReducers, $externalMiddlewares);
|
|
1329
1504
|
};
|
|
1330
1505
|
}
|
|
1331
1506
|
function createGameServerDI$lambda$lambda_2($this$provider) {
|
|
1332
1507
|
// Inline function 'org.kodein.di.instance' call
|
|
1333
|
-
var tmp = $this$provider.
|
|
1508
|
+
var tmp = $this$provider.e63();
|
|
1334
1509
|
// Inline function 'org.kodein.type.generic' call
|
|
1335
1510
|
var tmp_0 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1336
1511
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1337
|
-
return tmp.
|
|
1512
|
+
return tmp.d63(tmp$ret$0, null);
|
|
1338
1513
|
}
|
|
1339
1514
|
function createGameServerDI$lambda($botConfig, $logicConfig, $dealerConfig, $serverConfig, $externalReducers, $externalMiddlewares) {
|
|
1340
1515
|
return function ($this$Module) {
|
|
@@ -1342,184 +1517,184 @@
|
|
|
1342
1517
|
// Inline function 'org.kodein.type.generic' call
|
|
1343
1518
|
var tmp = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1344
1519
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
1345
|
-
var tmp_0 = $this$Module.
|
|
1520
|
+
var tmp_0 = $this$Module.r61(tmp$ret$0, null, null);
|
|
1346
1521
|
// Inline function 'org.kodein.di.singleton' call
|
|
1347
1522
|
var creator = createGameServerDI$lambda$lambda($serverConfig);
|
|
1348
|
-
var tmp_1 = $this$Module.
|
|
1349
|
-
var tmp_2 = $this$Module.
|
|
1350
|
-
var tmp_3 = $this$Module.
|
|
1523
|
+
var tmp_1 = $this$Module.w61();
|
|
1524
|
+
var tmp_2 = $this$Module.u61();
|
|
1525
|
+
var tmp_3 = $this$Module.v61();
|
|
1351
1526
|
// Inline function 'org.kodein.type.generic' call
|
|
1352
1527
|
var tmp_4 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1353
1528
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1354
1529
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
1355
|
-
tmp_0.
|
|
1356
|
-
$this$Module.
|
|
1530
|
+
tmp_0.p65(tmp$ret$3);
|
|
1531
|
+
$this$Module.t61(getServerEngineGameDI($botConfig, $logicConfig, $dealerConfig));
|
|
1357
1532
|
// Inline function 'org.kodein.di.bind' call
|
|
1358
1533
|
// Inline function 'org.kodein.type.generic' call
|
|
1359
1534
|
var tmp_5 = typeToken(createKType(getKClass(StoreContract), arrayOf([]), false));
|
|
1360
1535
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
1361
|
-
var tmp_6 = $this$Module.
|
|
1536
|
+
var tmp_6 = $this$Module.r61(tmp$ret$4, null, null);
|
|
1362
1537
|
// Inline function 'org.kodein.di.singleton' call
|
|
1363
1538
|
var creator_0 = createGameServerDI$lambda$lambda_0;
|
|
1364
|
-
var tmp_7 = $this$Module.
|
|
1365
|
-
var tmp_8 = $this$Module.
|
|
1366
|
-
var tmp_9 = $this$Module.
|
|
1539
|
+
var tmp_7 = $this$Module.w61();
|
|
1540
|
+
var tmp_8 = $this$Module.u61();
|
|
1541
|
+
var tmp_9 = $this$Module.v61();
|
|
1367
1542
|
// Inline function 'org.kodein.type.generic' call
|
|
1368
1543
|
var tmp_10 = typeToken(createKType(getKClass(ServerGameStoreContract), arrayOf([]), false));
|
|
1369
1544
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1370
1545
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
1371
|
-
tmp_6.
|
|
1546
|
+
tmp_6.p65(tmp$ret$7);
|
|
1372
1547
|
// Inline function 'org.kodein.di.bind' call
|
|
1373
1548
|
// Inline function 'org.kodein.type.generic' call
|
|
1374
1549
|
var tmp_11 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1375
1550
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
1376
|
-
var tmp_12 = $this$Module.
|
|
1551
|
+
var tmp_12 = $this$Module.r61(tmp$ret$8, null, null);
|
|
1377
1552
|
// Inline function 'org.kodein.di.singleton' call
|
|
1378
1553
|
var creator_1 = createGameServerDI$lambda$lambda_1($externalReducers, $externalMiddlewares);
|
|
1379
|
-
var tmp_13 = $this$Module.
|
|
1380
|
-
var tmp_14 = $this$Module.
|
|
1381
|
-
var tmp_15 = $this$Module.
|
|
1554
|
+
var tmp_13 = $this$Module.w61();
|
|
1555
|
+
var tmp_14 = $this$Module.u61();
|
|
1556
|
+
var tmp_15 = $this$Module.v61();
|
|
1382
1557
|
// Inline function 'org.kodein.type.generic' call
|
|
1383
1558
|
var tmp_16 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1384
1559
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
1385
1560
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
1386
|
-
tmp_12.
|
|
1561
|
+
tmp_12.p65(tmp$ret$11);
|
|
1387
1562
|
// Inline function 'org.kodein.di.bind' call
|
|
1388
1563
|
// Inline function 'org.kodein.type.generic' call
|
|
1389
1564
|
var tmp_17 = typeToken(createKType(getKClass(StateProvider), arrayOf([]), false));
|
|
1390
1565
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
1391
|
-
var tmp_18 = $this$Module.
|
|
1566
|
+
var tmp_18 = $this$Module.r61(tmp$ret$12, null, null);
|
|
1392
1567
|
// Inline function 'org.kodein.di.provider' call
|
|
1393
1568
|
var creator_2 = createGameServerDI$lambda$lambda_2;
|
|
1394
|
-
var tmp_19 = $this$Module.
|
|
1569
|
+
var tmp_19 = $this$Module.u61();
|
|
1395
1570
|
// Inline function 'org.kodein.type.generic' call
|
|
1396
1571
|
var tmp_20 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
1397
1572
|
var tmp$ret$14 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
1398
1573
|
var tmp$ret$15 = new Provider(tmp_19, tmp$ret$14, creator_2);
|
|
1399
|
-
tmp_18.
|
|
1574
|
+
tmp_18.p65(tmp$ret$15);
|
|
1400
1575
|
return Unit_instance;
|
|
1401
1576
|
};
|
|
1402
1577
|
}
|
|
1403
1578
|
function getServerEngineGameDI$lambda$lambda($this$provider) {
|
|
1404
1579
|
// Inline function 'org.kodein.di.instance' call
|
|
1405
|
-
var tmp = $this$provider.
|
|
1580
|
+
var tmp = $this$provider.e63();
|
|
1406
1581
|
// Inline function 'org.kodein.type.generic' call
|
|
1407
1582
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1408
1583
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1409
|
-
var tmp_1 = tmp.
|
|
1584
|
+
var tmp_1 = tmp.d63(tmp$ret$0, null);
|
|
1410
1585
|
// Inline function 'org.kodein.di.instance' call
|
|
1411
|
-
var tmp_2 = $this$provider.
|
|
1586
|
+
var tmp_2 = $this$provider.e63();
|
|
1412
1587
|
// Inline function 'org.kodein.type.generic' call
|
|
1413
1588
|
var tmp_3 = typeToken(createKType(getKClass(TableLifecycleReducer), arrayOf([]), false));
|
|
1414
1589
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1415
|
-
var tmp_4 = tmp_2.
|
|
1590
|
+
var tmp_4 = tmp_2.d63(tmp$ret$2, null);
|
|
1416
1591
|
// Inline function 'org.kodein.di.instance' call
|
|
1417
|
-
var tmp_5 = $this$provider.
|
|
1592
|
+
var tmp_5 = $this$provider.e63();
|
|
1418
1593
|
// Inline function 'org.kodein.type.generic' call
|
|
1419
1594
|
var tmp_6 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
1420
1595
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1421
|
-
var tmp$ret$5 = tmp_5.
|
|
1596
|
+
var tmp$ret$5 = tmp_5.d63(tmp$ret$4, null);
|
|
1422
1597
|
return new ServerMechanicLifecycleReducer(tmp_1, tmp_4, tmp$ret$5);
|
|
1423
1598
|
}
|
|
1424
1599
|
function getServerEngineGameDI$lambda$lambda_0($this$provider) {
|
|
1425
1600
|
// Inline function 'org.kodein.di.instance' call
|
|
1426
|
-
var tmp = $this$provider.
|
|
1601
|
+
var tmp = $this$provider.e63();
|
|
1427
1602
|
// Inline function 'org.kodein.type.generic' call
|
|
1428
1603
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1429
1604
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1430
|
-
var tmp0_serverConfig = tmp.
|
|
1605
|
+
var tmp0_serverConfig = tmp.d63(tmp$ret$0, null);
|
|
1431
1606
|
// Inline function 'org.kodein.di.instance' call
|
|
1432
|
-
var tmp_1 = $this$provider.
|
|
1607
|
+
var tmp_1 = $this$provider.e63();
|
|
1433
1608
|
// Inline function 'org.kodein.type.generic' call
|
|
1434
1609
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1435
1610
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1436
|
-
var tmp1_logger = tmp_1.
|
|
1611
|
+
var tmp1_logger = tmp_1.d63(tmp$ret$2, null);
|
|
1437
1612
|
// Inline function 'org.kodein.di.instance' call
|
|
1438
|
-
var tmp_3 = $this$provider.
|
|
1613
|
+
var tmp_3 = $this$provider.e63();
|
|
1439
1614
|
// Inline function 'org.kodein.type.generic' call
|
|
1440
1615
|
var tmp_4 = typeToken(createKType(getKClass(PlayerTurnMechanicReducer), arrayOf([]), false));
|
|
1441
1616
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1442
|
-
var tmp2_playerTurnMechanicReducer = tmp_3.
|
|
1617
|
+
var tmp2_playerTurnMechanicReducer = tmp_3.d63(tmp$ret$4, null);
|
|
1443
1618
|
// Inline function 'org.kodein.di.instance' call
|
|
1444
|
-
var tmp_5 = $this$provider.
|
|
1619
|
+
var tmp_5 = $this$provider.e63();
|
|
1445
1620
|
// Inline function 'org.kodein.type.generic' call
|
|
1446
1621
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
1447
1622
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1448
|
-
var tmp3_idsProvider = tmp_5.
|
|
1623
|
+
var tmp3_idsProvider = tmp_5.d63(tmp$ret$6, null);
|
|
1449
1624
|
// Inline function 'org.kodein.di.instance' call
|
|
1450
|
-
var tmp_7 = $this$provider.
|
|
1625
|
+
var tmp_7 = $this$provider.e63();
|
|
1451
1626
|
// Inline function 'org.kodein.type.generic' call
|
|
1452
1627
|
var tmp_8 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
1453
1628
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
1454
|
-
var tmp4_engineLogicConfig = tmp_7.
|
|
1629
|
+
var tmp4_engineLogicConfig = tmp_7.d63(tmp$ret$8, null);
|
|
1455
1630
|
return new PlayerConnectionInteractor(tmp0_serverConfig, tmp4_engineLogicConfig, tmp1_logger, tmp2_playerTurnMechanicReducer, tmp3_idsProvider);
|
|
1456
1631
|
}
|
|
1457
1632
|
function getServerEngineGameDI$lambda$lambda_1($this$singleton) {
|
|
1458
1633
|
// Inline function 'org.kodein.di.instance' call
|
|
1459
|
-
var tmp = $this$singleton.
|
|
1634
|
+
var tmp = $this$singleton.e63();
|
|
1460
1635
|
// Inline function 'org.kodein.type.generic' call
|
|
1461
1636
|
var tmp_0 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
1462
1637
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1463
|
-
var tmp_1 = tmp.
|
|
1638
|
+
var tmp_1 = tmp.d63(tmp$ret$0, null);
|
|
1464
1639
|
// Inline function 'org.kodein.di.instance' call
|
|
1465
|
-
var tmp_2 = $this$singleton.
|
|
1640
|
+
var tmp_2 = $this$singleton.e63();
|
|
1466
1641
|
// Inline function 'org.kodein.type.generic' call
|
|
1467
1642
|
var tmp_3 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1468
1643
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1469
|
-
var tmp_4 = tmp_2.
|
|
1644
|
+
var tmp_4 = tmp_2.d63(tmp$ret$2, null);
|
|
1470
1645
|
// Inline function 'org.kodein.di.instance' call
|
|
1471
|
-
var tmp_5 = $this$singleton.
|
|
1646
|
+
var tmp_5 = $this$singleton.e63();
|
|
1472
1647
|
// Inline function 'org.kodein.type.generic' call
|
|
1473
1648
|
var tmp_6 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
1474
1649
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1475
|
-
var tmp$ret$5 = tmp_5.
|
|
1650
|
+
var tmp$ret$5 = tmp_5.d63(tmp$ret$4, null);
|
|
1476
1651
|
return new ToClientEventsObserverImpl(tmp_1, tmp_4, tmp$ret$5);
|
|
1477
1652
|
}
|
|
1478
1653
|
function getServerEngineGameDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig) {
|
|
1479
1654
|
return function ($this$Module) {
|
|
1480
|
-
$this$Module.
|
|
1481
|
-
$this$Module.
|
|
1655
|
+
$this$Module.t61(jsonModule(emptyList()));
|
|
1656
|
+
$this$Module.t61(getEngineGameModule($engineBotConfig, $engineLogicConfig, $dealerConfig));
|
|
1482
1657
|
// Inline function 'org.kodein.di.bind' call
|
|
1483
1658
|
// Inline function 'org.kodein.type.generic' call
|
|
1484
1659
|
var tmp = typeToken(createKType(getKClass(MechanicLifecycleReducer), arrayOf([]), false));
|
|
1485
1660
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
1486
|
-
var tmp_0 = $this$Module.
|
|
1661
|
+
var tmp_0 = $this$Module.r61(tmp$ret$0, null, null);
|
|
1487
1662
|
// Inline function 'org.kodein.di.provider' call
|
|
1488
1663
|
var creator = getServerEngineGameDI$lambda$lambda;
|
|
1489
|
-
var tmp_1 = $this$Module.
|
|
1664
|
+
var tmp_1 = $this$Module.u61();
|
|
1490
1665
|
// Inline function 'org.kodein.type.generic' call
|
|
1491
1666
|
var tmp_2 = typeToken(createKType(getKClass(ServerMechanicLifecycleReducer), arrayOf([]), false));
|
|
1492
1667
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1493
1668
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
1494
|
-
tmp_0.
|
|
1669
|
+
tmp_0.p65(tmp$ret$3);
|
|
1495
1670
|
// Inline function 'org.kodein.di.bind' call
|
|
1496
1671
|
// Inline function 'org.kodein.type.generic' call
|
|
1497
1672
|
var tmp_3 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1498
1673
|
var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1499
|
-
var tmp_4 = $this$Module.
|
|
1674
|
+
var tmp_4 = $this$Module.r61(tmp$ret$4, null, null);
|
|
1500
1675
|
// Inline function 'org.kodein.di.provider' call
|
|
1501
1676
|
var creator_0 = getServerEngineGameDI$lambda$lambda_0;
|
|
1502
|
-
var tmp_5 = $this$Module.
|
|
1677
|
+
var tmp_5 = $this$Module.u61();
|
|
1503
1678
|
// Inline function 'org.kodein.type.generic' call
|
|
1504
1679
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1505
1680
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1506
1681
|
var tmp$ret$7 = new Provider(tmp_5, tmp$ret$6, creator_0);
|
|
1507
|
-
tmp_4.
|
|
1682
|
+
tmp_4.p65(tmp$ret$7);
|
|
1508
1683
|
// Inline function 'org.kodein.di.bind' call
|
|
1509
1684
|
// Inline function 'org.kodein.type.generic' call
|
|
1510
1685
|
var tmp_7 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1511
1686
|
var tmp$ret$8 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
1512
|
-
var tmp_8 = $this$Module.
|
|
1687
|
+
var tmp_8 = $this$Module.r61(tmp$ret$8, null, null);
|
|
1513
1688
|
// Inline function 'org.kodein.di.singleton' call
|
|
1514
1689
|
var creator_1 = getServerEngineGameDI$lambda$lambda_1;
|
|
1515
|
-
var tmp_9 = $this$Module.
|
|
1516
|
-
var tmp_10 = $this$Module.
|
|
1517
|
-
var tmp_11 = $this$Module.
|
|
1690
|
+
var tmp_9 = $this$Module.w61();
|
|
1691
|
+
var tmp_10 = $this$Module.u61();
|
|
1692
|
+
var tmp_11 = $this$Module.v61();
|
|
1518
1693
|
// Inline function 'org.kodein.type.generic' call
|
|
1519
1694
|
var tmp_12 = typeToken(createKType(getKClass(ToClientEventsObserverImpl), arrayOf([]), false));
|
|
1520
1695
|
var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
1521
1696
|
var tmp$ret$11 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$10, null, true, creator_1);
|
|
1522
|
-
tmp_8.
|
|
1697
|
+
tmp_8.p65(tmp$ret$11);
|
|
1523
1698
|
return Unit_instance;
|
|
1524
1699
|
};
|
|
1525
1700
|
}
|
|
@@ -1528,59 +1703,59 @@
|
|
|
1528
1703
|
function ToClientEventsObserver() {
|
|
1529
1704
|
}
|
|
1530
1705
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1531
|
-
this.
|
|
1532
|
-
this.
|
|
1706
|
+
this.sd6_1 = this$0;
|
|
1707
|
+
this.td6_1 = $actions;
|
|
1533
1708
|
CoroutineImpl.call(this, resultContinuation);
|
|
1534
1709
|
}
|
|
1535
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1536
|
-
var tmp = this.
|
|
1537
|
-
tmp.
|
|
1538
|
-
tmp.
|
|
1539
|
-
return tmp.
|
|
1710
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).ad7 = function ($this$flow, $completion) {
|
|
1711
|
+
var tmp = this.bd7($this$flow, $completion);
|
|
1712
|
+
tmp.g9_1 = Unit_instance;
|
|
1713
|
+
tmp.h9_1 = null;
|
|
1714
|
+
return tmp.m9();
|
|
1540
1715
|
};
|
|
1541
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1542
|
-
return this.
|
|
1716
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1717
|
+
return this.ad7((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1543
1718
|
};
|
|
1544
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1545
|
-
var suspendResult = this.
|
|
1719
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1720
|
+
var suspendResult = this.g9_1;
|
|
1546
1721
|
$sm: do
|
|
1547
1722
|
try {
|
|
1548
|
-
var tmp = this.
|
|
1723
|
+
var tmp = this.e9_1;
|
|
1549
1724
|
switch (tmp) {
|
|
1550
1725
|
case 0:
|
|
1551
|
-
this.
|
|
1726
|
+
this.f9_1 = 4;
|
|
1552
1727
|
var tmp_0 = this;
|
|
1553
|
-
tmp_0.
|
|
1728
|
+
tmp_0.vd6_1 = this.sd6_1.gd7_1;
|
|
1554
1729
|
var tmp_1 = this;
|
|
1555
|
-
tmp_1.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1730
|
+
tmp_1.wd6_1 = transformToEmits(this.sd6_1, this.td6_1);
|
|
1731
|
+
this.xd6_1 = this.wd6_1.j();
|
|
1732
|
+
this.e9_1 = 1;
|
|
1558
1733
|
continue $sm;
|
|
1559
1734
|
case 1:
|
|
1560
|
-
if (!this.
|
|
1561
|
-
this.
|
|
1735
|
+
if (!this.xd6_1.k()) {
|
|
1736
|
+
this.e9_1 = 3;
|
|
1562
1737
|
continue $sm;
|
|
1563
1738
|
}
|
|
1564
1739
|
|
|
1565
|
-
this.
|
|
1740
|
+
this.yd6_1 = this.xd6_1.l();
|
|
1566
1741
|
var tmp_2 = this;
|
|
1567
|
-
tmp_2.
|
|
1568
|
-
this.
|
|
1569
|
-
suspendResult = this.
|
|
1742
|
+
tmp_2.zd6_1 = this.yd6_1;
|
|
1743
|
+
this.e9_1 = 2;
|
|
1744
|
+
suspendResult = this.ud6_1.p18(this.zd6_1, this);
|
|
1570
1745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1571
1746
|
return suspendResult;
|
|
1572
1747
|
}
|
|
1573
1748
|
|
|
1574
1749
|
continue $sm;
|
|
1575
1750
|
case 2:
|
|
1576
|
-
this.
|
|
1751
|
+
this.e9_1 = 1;
|
|
1577
1752
|
continue $sm;
|
|
1578
1753
|
case 3:
|
|
1579
1754
|
l$ret$1: do {
|
|
1580
|
-
var this_0 = this.
|
|
1755
|
+
var this_0 = this.sd6_1.fd7_1;
|
|
1581
1756
|
while (true) {
|
|
1582
1757
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1583
|
-
var upd = cur - this.
|
|
1758
|
+
var upd = cur - this.td6_1.m() | 0;
|
|
1584
1759
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1585
1760
|
break l$ret$1;
|
|
1586
1761
|
}
|
|
@@ -1589,28 +1764,28 @@
|
|
|
1589
1764
|
while (false);
|
|
1590
1765
|
return Unit_instance;
|
|
1591
1766
|
case 4:
|
|
1592
|
-
throw this.
|
|
1767
|
+
throw this.h9_1;
|
|
1593
1768
|
}
|
|
1594
1769
|
} catch ($p) {
|
|
1595
1770
|
var e = $p;
|
|
1596
|
-
if (this.
|
|
1771
|
+
if (this.f9_1 === 4) {
|
|
1597
1772
|
throw e;
|
|
1598
1773
|
} else {
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1774
|
+
this.e9_1 = this.f9_1;
|
|
1775
|
+
this.h9_1 = e;
|
|
1601
1776
|
}
|
|
1602
1777
|
}
|
|
1603
1778
|
while (true);
|
|
1604
1779
|
};
|
|
1605
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1606
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1607
|
-
i.
|
|
1780
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).bd7 = function ($this$flow, completion) {
|
|
1781
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.sd6_1, this.td6_1, completion);
|
|
1782
|
+
i.ud6_1 = $this$flow;
|
|
1608
1783
|
return i;
|
|
1609
1784
|
};
|
|
1610
1785
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1611
1786
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1612
1787
|
var l = function ($this$flow, $completion) {
|
|
1613
|
-
return i.
|
|
1788
|
+
return i.ad7($this$flow, $completion);
|
|
1614
1789
|
};
|
|
1615
1790
|
l.$arity = 1;
|
|
1616
1791
|
return l;
|
|
@@ -1634,12 +1809,12 @@
|
|
|
1634
1809
|
// Inline function 'games.jass.logic.server.domain.events.ToClientEventsObserverImpl.transformToEmits.<anonymous>' call
|
|
1635
1810
|
var key = mapToGroupKey(element.deliveryPayload, $this);
|
|
1636
1811
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1637
|
-
var value = destination.
|
|
1812
|
+
var value = destination.g2(key);
|
|
1638
1813
|
var tmp_0;
|
|
1639
1814
|
if (value == null) {
|
|
1640
1815
|
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
1641
1816
|
var answer = ArrayList_init_$Create$();
|
|
1642
|
-
destination.
|
|
1817
|
+
destination.j2(key, answer);
|
|
1643
1818
|
tmp_0 = answer;
|
|
1644
1819
|
} else {
|
|
1645
1820
|
tmp_0 = value;
|
|
@@ -1683,29 +1858,29 @@
|
|
|
1683
1858
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1684
1859
|
}
|
|
1685
1860
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1686
|
-
var tmp = $this.
|
|
1861
|
+
var tmp = $this.ed7_1.a6m();
|
|
1687
1862
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1688
|
-
var this_0 = _this__u8e3s4.
|
|
1863
|
+
var this_0 = _this__u8e3s4.jd7_1;
|
|
1689
1864
|
var tmp_0 = copyToArray(this_0);
|
|
1690
1865
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1691
|
-
var this_1 = _this__u8e3s4.
|
|
1866
|
+
var this_1 = _this__u8e3s4.kd7_1;
|
|
1692
1867
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1693
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1868
|
+
return new ActionDeliveryPayload(_this__u8e3s4.id7_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.ld7_1);
|
|
1694
1869
|
}
|
|
1695
1870
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1871
|
+
this.id7_1 = tableId;
|
|
1872
|
+
this.jd7_1 = includePlayers;
|
|
1873
|
+
this.kd7_1 = excludePlayers;
|
|
1874
|
+
this.ld7_1 = deliveryType;
|
|
1700
1875
|
}
|
|
1701
1876
|
protoOf(GroupKey).toString = function () {
|
|
1702
|
-
return 'GroupKey(tableId=' + this.
|
|
1877
|
+
return 'GroupKey(tableId=' + this.id7_1 + ', includePlayers=' + toString(this.jd7_1) + ', excludePlayers=' + toString(this.kd7_1) + ', deliveryType=' + this.ld7_1.toString() + ')';
|
|
1703
1878
|
};
|
|
1704
1879
|
protoOf(GroupKey).hashCode = function () {
|
|
1705
|
-
var result = getStringHashCode(this.
|
|
1706
|
-
result = imul(result, 31) + hashCode(this.
|
|
1707
|
-
result = imul(result, 31) + hashCode(this.
|
|
1708
|
-
result = imul(result, 31) + this.
|
|
1880
|
+
var result = getStringHashCode(this.id7_1);
|
|
1881
|
+
result = imul(result, 31) + hashCode(this.jd7_1) | 0;
|
|
1882
|
+
result = imul(result, 31) + hashCode(this.kd7_1) | 0;
|
|
1883
|
+
result = imul(result, 31) + this.ld7_1.hashCode() | 0;
|
|
1709
1884
|
return result;
|
|
1710
1885
|
};
|
|
1711
1886
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1714,46 +1889,46 @@
|
|
|
1714
1889
|
if (!(other instanceof GroupKey))
|
|
1715
1890
|
return false;
|
|
1716
1891
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1717
|
-
if (!(this.
|
|
1892
|
+
if (!(this.id7_1 === tmp0_other_with_cast.id7_1))
|
|
1718
1893
|
return false;
|
|
1719
|
-
if (!equals(this.
|
|
1894
|
+
if (!equals(this.jd7_1, tmp0_other_with_cast.jd7_1))
|
|
1720
1895
|
return false;
|
|
1721
|
-
if (!equals(this.
|
|
1896
|
+
if (!equals(this.kd7_1, tmp0_other_with_cast.kd7_1))
|
|
1722
1897
|
return false;
|
|
1723
|
-
if (!this.
|
|
1898
|
+
if (!this.ld7_1.equals(tmp0_other_with_cast.ld7_1))
|
|
1724
1899
|
return false;
|
|
1725
1900
|
return true;
|
|
1726
1901
|
};
|
|
1727
1902
|
function Companion_0() {
|
|
1728
|
-
this.
|
|
1903
|
+
this.md7_1 = 6;
|
|
1729
1904
|
}
|
|
1730
1905
|
var Companion_instance_8;
|
|
1731
1906
|
function Companion_getInstance_3() {
|
|
1732
1907
|
return Companion_instance_8;
|
|
1733
1908
|
}
|
|
1734
1909
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1735
|
-
this.
|
|
1910
|
+
this.vd7_1 = this$0;
|
|
1736
1911
|
CoroutineImpl.call(this, resultContinuation);
|
|
1737
1912
|
}
|
|
1738
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1739
|
-
var tmp = this.
|
|
1740
|
-
tmp.
|
|
1741
|
-
tmp.
|
|
1742
|
-
return tmp.
|
|
1913
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).xd7 = function (actions, $completion) {
|
|
1914
|
+
var tmp = this.yd7(actions, $completion);
|
|
1915
|
+
tmp.g9_1 = Unit_instance;
|
|
1916
|
+
tmp.h9_1 = null;
|
|
1917
|
+
return tmp.m9();
|
|
1743
1918
|
};
|
|
1744
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1745
|
-
return this.
|
|
1919
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
1920
|
+
return this.xd7((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1746
1921
|
};
|
|
1747
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1748
|
-
var suspendResult = this.
|
|
1922
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
1923
|
+
var suspendResult = this.g9_1;
|
|
1749
1924
|
$sm: do
|
|
1750
1925
|
try {
|
|
1751
|
-
var tmp = this.
|
|
1926
|
+
var tmp = this.e9_1;
|
|
1752
1927
|
if (tmp === 0) {
|
|
1753
|
-
this.
|
|
1754
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1928
|
+
this.f9_1 = 1;
|
|
1929
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.vd7_1, this.wd7_1, null));
|
|
1755
1930
|
} else if (tmp === 1) {
|
|
1756
|
-
throw this.
|
|
1931
|
+
throw this.h9_1;
|
|
1757
1932
|
}
|
|
1758
1933
|
} catch ($p) {
|
|
1759
1934
|
var e = $p;
|
|
@@ -1761,36 +1936,36 @@
|
|
|
1761
1936
|
}
|
|
1762
1937
|
while (true);
|
|
1763
1938
|
};
|
|
1764
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1765
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1766
|
-
i.
|
|
1939
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).yd7 = function (actions, completion) {
|
|
1940
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.vd7_1, completion);
|
|
1941
|
+
i.wd7_1 = actions;
|
|
1767
1942
|
return i;
|
|
1768
1943
|
};
|
|
1769
1944
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1770
1945
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1771
1946
|
var l = function (actions, $completion) {
|
|
1772
|
-
return i.
|
|
1947
|
+
return i.xd7(actions, $completion);
|
|
1773
1948
|
};
|
|
1774
1949
|
l.$arity = 1;
|
|
1775
1950
|
return l;
|
|
1776
1951
|
}
|
|
1777
1952
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
1778
1953
|
CoroutineImpl.call(this, resultContinuation);
|
|
1779
|
-
this.
|
|
1780
|
-
this.
|
|
1954
|
+
this.hd8_1 = _this__u8e3s4;
|
|
1955
|
+
this.id8_1 = fromEvent;
|
|
1781
1956
|
}
|
|
1782
|
-
protoOf($sentEventCOROUTINE$0).
|
|
1783
|
-
var suspendResult = this.
|
|
1957
|
+
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
1958
|
+
var suspendResult = this.g9_1;
|
|
1784
1959
|
$sm: do
|
|
1785
1960
|
try {
|
|
1786
|
-
var tmp = this.
|
|
1961
|
+
var tmp = this.e9_1;
|
|
1787
1962
|
switch (tmp) {
|
|
1788
1963
|
case 0:
|
|
1789
|
-
this.
|
|
1964
|
+
this.f9_1 = 2;
|
|
1790
1965
|
var tmp_0 = this;
|
|
1791
|
-
tmp_0.
|
|
1966
|
+
tmp_0.jd8_1 = this.hd8_1.gd7_1;
|
|
1792
1967
|
l$ret$1: do {
|
|
1793
|
-
var this_0 = this.
|
|
1968
|
+
var this_0 = this.hd8_1.fd7_1;
|
|
1794
1969
|
while (true) {
|
|
1795
1970
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1796
1971
|
var upd = cur + 1 | 0;
|
|
@@ -1800,8 +1975,8 @@
|
|
|
1800
1975
|
}
|
|
1801
1976
|
}
|
|
1802
1977
|
while (false);
|
|
1803
|
-
this.
|
|
1804
|
-
suspendResult = this.
|
|
1978
|
+
this.e9_1 = 1;
|
|
1979
|
+
suspendResult = this.hd8_1.hd7_1.p18(this.id8_1, this);
|
|
1805
1980
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1806
1981
|
return suspendResult;
|
|
1807
1982
|
}
|
|
@@ -1810,43 +1985,43 @@
|
|
|
1810
1985
|
case 1:
|
|
1811
1986
|
return Unit_instance;
|
|
1812
1987
|
case 2:
|
|
1813
|
-
throw this.
|
|
1988
|
+
throw this.h9_1;
|
|
1814
1989
|
}
|
|
1815
1990
|
} catch ($p) {
|
|
1816
1991
|
var e = $p;
|
|
1817
|
-
if (this.
|
|
1992
|
+
if (this.f9_1 === 2) {
|
|
1818
1993
|
throw e;
|
|
1819
1994
|
} else {
|
|
1820
|
-
this.
|
|
1821
|
-
this.
|
|
1995
|
+
this.e9_1 = this.f9_1;
|
|
1996
|
+
this.h9_1 = e;
|
|
1822
1997
|
}
|
|
1823
1998
|
}
|
|
1824
1999
|
while (true);
|
|
1825
2000
|
};
|
|
1826
2001
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
1827
2002
|
CoroutineImpl.call(this, resultContinuation);
|
|
1828
|
-
this.
|
|
2003
|
+
this.sd8_1 = _this__u8e3s4;
|
|
1829
2004
|
}
|
|
1830
|
-
protoOf($waitForCOROUTINE$1).
|
|
1831
|
-
var suspendResult = this.
|
|
2005
|
+
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2006
|
+
var suspendResult = this.g9_1;
|
|
1832
2007
|
$sm: do
|
|
1833
2008
|
try {
|
|
1834
|
-
var tmp = this.
|
|
2009
|
+
var tmp = this.e9_1;
|
|
1835
2010
|
switch (tmp) {
|
|
1836
2011
|
case 0:
|
|
1837
|
-
this.
|
|
2012
|
+
this.f9_1 = 5;
|
|
1838
2013
|
var tmp_0 = this;
|
|
1839
|
-
tmp_0.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
2014
|
+
tmp_0.td8_1 = this.sd8_1.gd7_1;
|
|
2015
|
+
this.ud8_1 = 0;
|
|
2016
|
+
this.e9_1 = 1;
|
|
1842
2017
|
continue $sm;
|
|
1843
2018
|
case 1:
|
|
1844
|
-
if (!!(this.
|
|
1845
|
-
this.
|
|
2019
|
+
if (!!(this.sd8_1.fd7_1.kotlinx$atomicfu$value === 0)) {
|
|
2020
|
+
this.e9_1 = 4;
|
|
1846
2021
|
continue $sm;
|
|
1847
2022
|
}
|
|
1848
2023
|
|
|
1849
|
-
this.
|
|
2024
|
+
this.e9_1 = 2;
|
|
1850
2025
|
suspendResult = delay(new Long(150, 0), this);
|
|
1851
2026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1852
2027
|
return suspendResult;
|
|
@@ -1854,72 +2029,72 @@
|
|
|
1854
2029
|
|
|
1855
2030
|
continue $sm;
|
|
1856
2031
|
case 2:
|
|
1857
|
-
this.
|
|
1858
|
-
if (this.
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
2032
|
+
this.ud8_1 = this.ud8_1 + 1 | 0;
|
|
2033
|
+
if (this.ud8_1 > 6) {
|
|
2034
|
+
this.sd8_1.dd7_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.sd8_1.fd7_1.kotlinx$atomicfu$value);
|
|
2035
|
+
this.e9_1 = 4;
|
|
1861
2036
|
continue $sm;
|
|
1862
2037
|
} else {
|
|
1863
|
-
this.
|
|
2038
|
+
this.e9_1 = 3;
|
|
1864
2039
|
continue $sm;
|
|
1865
2040
|
}
|
|
1866
2041
|
|
|
1867
2042
|
case 3:
|
|
1868
|
-
this.
|
|
2043
|
+
this.e9_1 = 1;
|
|
1869
2044
|
continue $sm;
|
|
1870
2045
|
case 4:
|
|
1871
2046
|
return Unit_instance;
|
|
1872
2047
|
case 5:
|
|
1873
|
-
throw this.
|
|
2048
|
+
throw this.h9_1;
|
|
1874
2049
|
}
|
|
1875
2050
|
} catch ($p) {
|
|
1876
2051
|
var e = $p;
|
|
1877
|
-
if (this.
|
|
2052
|
+
if (this.f9_1 === 5) {
|
|
1878
2053
|
throw e;
|
|
1879
2054
|
} else {
|
|
1880
|
-
this.
|
|
1881
|
-
this.
|
|
2055
|
+
this.e9_1 = this.f9_1;
|
|
2056
|
+
this.h9_1 = e;
|
|
1882
2057
|
}
|
|
1883
2058
|
}
|
|
1884
2059
|
while (true);
|
|
1885
2060
|
};
|
|
1886
2061
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1890
|
-
this.
|
|
2062
|
+
this.cd7_1 = serverReduxConfig;
|
|
2063
|
+
this.dd7_1 = logger;
|
|
2064
|
+
this.ed7_1 = idsProvider;
|
|
2065
|
+
this.fd7_1 = atomic$ref$1(0);
|
|
1891
2066
|
var tmp = this;
|
|
1892
2067
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
1893
|
-
tmp.
|
|
1894
|
-
this.
|
|
2068
|
+
tmp.gd7_1 = get_atomicfu$reentrantLock();
|
|
2069
|
+
this.hd7_1 = MutableSharedFlow();
|
|
1895
2070
|
}
|
|
1896
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2071
|
+
protoOf(ToClientEventsObserverImpl).jd6 = function (fromEvent, $completion) {
|
|
1897
2072
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
1898
|
-
tmp.
|
|
1899
|
-
tmp.
|
|
1900
|
-
return tmp.
|
|
2073
|
+
tmp.g9_1 = Unit_instance;
|
|
2074
|
+
tmp.h9_1 = null;
|
|
2075
|
+
return tmp.m9();
|
|
1901
2076
|
};
|
|
1902
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2077
|
+
protoOf(ToClientEventsObserverImpl).w9f = function ($completion) {
|
|
1903
2078
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
1904
|
-
tmp.
|
|
1905
|
-
tmp.
|
|
1906
|
-
return tmp.
|
|
2079
|
+
tmp.g9_1 = Unit_instance;
|
|
2080
|
+
tmp.h9_1 = null;
|
|
2081
|
+
return tmp.m9();
|
|
1907
2082
|
};
|
|
1908
|
-
protoOf(ToClientEventsObserverImpl).
|
|
1909
|
-
if (!this.
|
|
1910
|
-
return this.
|
|
2083
|
+
protoOf(ToClientEventsObserverImpl).bb5 = function () {
|
|
2084
|
+
if (!this.cd7_1.enabledCombinedEvents) {
|
|
2085
|
+
return this.hd7_1;
|
|
1911
2086
|
}
|
|
1912
|
-
var tmp = windowedByInterval(this.
|
|
2087
|
+
var tmp = windowedByInterval(this.hd7_1, toLong(this.cd7_1.combinedEventsPeriod));
|
|
1913
2088
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
1914
2089
|
};
|
|
1915
2090
|
function UpdateServerConfigAction(serverConfig) {
|
|
1916
|
-
this.
|
|
2091
|
+
this.vd8_1 = serverConfig;
|
|
1917
2092
|
}
|
|
1918
2093
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
1919
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2094
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.vd8_1.toString() + ')';
|
|
1920
2095
|
};
|
|
1921
2096
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
1922
|
-
return this.
|
|
2097
|
+
return this.vd8_1.hashCode();
|
|
1923
2098
|
};
|
|
1924
2099
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
1925
2100
|
if (this === other)
|
|
@@ -1927,72 +2102,112 @@
|
|
|
1927
2102
|
if (!(other instanceof UpdateServerConfigAction))
|
|
1928
2103
|
return false;
|
|
1929
2104
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
1930
|
-
if (!this.
|
|
2105
|
+
if (!this.vd8_1.equals(tmp0_other_with_cast.vd8_1))
|
|
2106
|
+
return false;
|
|
2107
|
+
return true;
|
|
2108
|
+
};
|
|
2109
|
+
function AddSpectatorsAction(spectators) {
|
|
2110
|
+
this.wd8_1 = spectators;
|
|
2111
|
+
}
|
|
2112
|
+
protoOf(AddSpectatorsAction).toString = function () {
|
|
2113
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.wd8_1) + ')';
|
|
2114
|
+
};
|
|
2115
|
+
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2116
|
+
return hashCode(this.wd8_1);
|
|
2117
|
+
};
|
|
2118
|
+
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2119
|
+
if (this === other)
|
|
2120
|
+
return true;
|
|
2121
|
+
if (!(other instanceof AddSpectatorsAction))
|
|
2122
|
+
return false;
|
|
2123
|
+
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2124
|
+
if (!equals(this.wd8_1, tmp0_other_with_cast.wd8_1))
|
|
1931
2125
|
return false;
|
|
1932
2126
|
return true;
|
|
1933
2127
|
};
|
|
2128
|
+
function RemoveSpectatorsAction(spectators) {
|
|
2129
|
+
this.xd8_1 = spectators;
|
|
2130
|
+
}
|
|
2131
|
+
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2132
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.xd8_1) + ')';
|
|
2133
|
+
};
|
|
2134
|
+
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2135
|
+
return hashCode(this.xd8_1);
|
|
2136
|
+
};
|
|
2137
|
+
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2138
|
+
if (this === other)
|
|
2139
|
+
return true;
|
|
2140
|
+
if (!(other instanceof RemoveSpectatorsAction))
|
|
2141
|
+
return false;
|
|
2142
|
+
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2143
|
+
if (!equals(this.xd8_1, tmp0_other_with_cast.xd8_1))
|
|
2144
|
+
return false;
|
|
2145
|
+
return true;
|
|
2146
|
+
};
|
|
2147
|
+
function SpectatorsAction() {
|
|
2148
|
+
}
|
|
1934
2149
|
function _get_asyncProvider__jbpyhw($this) {
|
|
1935
2150
|
// Inline function 'kotlin.getValue' call
|
|
1936
|
-
var this_0 = $this.
|
|
2151
|
+
var this_0 = $this.dd9_1;
|
|
1937
2152
|
asyncProvider$factory_0();
|
|
1938
2153
|
return this_0.u();
|
|
1939
2154
|
}
|
|
1940
2155
|
function _get_logger__rkp4sl_0($this) {
|
|
1941
2156
|
// Inline function 'kotlin.getValue' call
|
|
1942
|
-
var this_0 = $this.
|
|
2157
|
+
var this_0 = $this.ed9_1;
|
|
1943
2158
|
logger$factory_2();
|
|
1944
2159
|
return this_0.u();
|
|
1945
2160
|
}
|
|
1946
2161
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
1947
2162
|
// Inline function 'kotlin.getValue' call
|
|
1948
|
-
var this_0 = $this.
|
|
2163
|
+
var this_0 = $this.fd9_1;
|
|
1949
2164
|
playerConnectionInteractor$factory_2();
|
|
1950
2165
|
return this_0.u();
|
|
1951
2166
|
}
|
|
1952
2167
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
1953
2168
|
// Inline function 'kotlin.getValue' call
|
|
1954
|
-
var this_0 = $this.
|
|
2169
|
+
var this_0 = $this.gd9_1;
|
|
1955
2170
|
lastCardInteractor$factory_0();
|
|
1956
2171
|
return this_0.u();
|
|
1957
2172
|
}
|
|
1958
2173
|
function _get_serverConfig__rk2g06($this) {
|
|
1959
2174
|
// Inline function 'kotlin.getValue' call
|
|
1960
|
-
var this_0 = $this.
|
|
2175
|
+
var this_0 = $this.hd9_1;
|
|
1961
2176
|
serverConfig$factory_0();
|
|
1962
2177
|
return this_0.u();
|
|
1963
2178
|
}
|
|
1964
2179
|
function _get_logicConfig__52ww9d($this) {
|
|
1965
2180
|
// Inline function 'kotlin.getValue' call
|
|
1966
|
-
var this_0 = $this.
|
|
2181
|
+
var this_0 = $this.id9_1;
|
|
1967
2182
|
logicConfig$factory_0();
|
|
1968
2183
|
return this_0.u();
|
|
1969
2184
|
}
|
|
1970
2185
|
function _get_idsProvider__fnfajc($this) {
|
|
1971
2186
|
// Inline function 'kotlin.getValue' call
|
|
1972
|
-
var this_0 = $this.
|
|
2187
|
+
var this_0 = $this.jd9_1;
|
|
1973
2188
|
idsProvider$factory_0();
|
|
1974
2189
|
return this_0.u();
|
|
1975
2190
|
}
|
|
1976
2191
|
function _get_botConfig__cpaxzc($this) {
|
|
1977
2192
|
// Inline function 'kotlin.getValue' call
|
|
1978
|
-
var this_0 = $this.
|
|
2193
|
+
var this_0 = $this.kd9_1;
|
|
1979
2194
|
botConfig$factory_0();
|
|
1980
2195
|
return this_0.u();
|
|
1981
2196
|
}
|
|
1982
2197
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
1983
2198
|
// Inline function 'kotlin.getValue' call
|
|
1984
|
-
var this_0 = $this.
|
|
2199
|
+
var this_0 = $this.ld9_1;
|
|
1985
2200
|
scenePositionProvider$factory_0();
|
|
1986
2201
|
return this_0.u();
|
|
1987
2202
|
}
|
|
1988
2203
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
1989
2204
|
// Inline function 'kotlin.getValue' call
|
|
1990
|
-
var this_0 = $this.
|
|
2205
|
+
var this_0 = $this.md9_1;
|
|
1991
2206
|
toClientEventsObserver$factory_2();
|
|
1992
2207
|
return this_0.u();
|
|
1993
2208
|
}
|
|
1994
2209
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
1995
|
-
return !player.
|
|
2210
|
+
return !player.o73();
|
|
1996
2211
|
}
|
|
1997
2212
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
1998
2213
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -2000,83 +2215,83 @@
|
|
|
2000
2215
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2001
2216
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2002
2217
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2003
|
-
this.
|
|
2004
|
-
this.
|
|
2005
|
-
this.
|
|
2006
|
-
this.
|
|
2007
|
-
this.
|
|
2218
|
+
this.yd8_1 = validationStoreContract;
|
|
2219
|
+
this.zd8_1 = timersStoreContract;
|
|
2220
|
+
this.ad9_1 = botGameStoreContract;
|
|
2221
|
+
this.bd9_1 = gameMechanicStoreContract;
|
|
2222
|
+
this.cd9_1 = fileLoggerStoreContract;
|
|
2008
2223
|
var tmp = this;
|
|
2009
2224
|
// Inline function 'org.kodein.di.instance' call
|
|
2010
2225
|
// Inline function 'org.kodein.type.generic' call
|
|
2011
2226
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2012
2227
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2013
|
-
tmp.
|
|
2228
|
+
tmp.dd9_1 = Instance(di, tmp$ret$0, null).m67(this, asyncProvider$factory());
|
|
2014
2229
|
var tmp_1 = this;
|
|
2015
2230
|
// Inline function 'org.kodein.di.instance' call
|
|
2016
2231
|
// Inline function 'org.kodein.type.generic' call
|
|
2017
2232
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2018
2233
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2019
|
-
tmp_1.
|
|
2234
|
+
tmp_1.ed9_1 = Instance(di, tmp$ret$2, null).m67(this, logger$factory_1());
|
|
2020
2235
|
var tmp_3 = this;
|
|
2021
2236
|
// Inline function 'org.kodein.di.instance' call
|
|
2022
2237
|
// Inline function 'org.kodein.type.generic' call
|
|
2023
2238
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2024
2239
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2025
|
-
tmp_3.
|
|
2240
|
+
tmp_3.fd9_1 = Instance(di, tmp$ret$4, null).m67(this, playerConnectionInteractor$factory_1());
|
|
2026
2241
|
var tmp_5 = this;
|
|
2027
2242
|
// Inline function 'org.kodein.di.instance' call
|
|
2028
2243
|
// Inline function 'org.kodein.type.generic' call
|
|
2029
2244
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2030
2245
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2031
|
-
tmp_5.
|
|
2246
|
+
tmp_5.gd9_1 = Instance(di, tmp$ret$6, null).m67(this, lastCardInteractor$factory());
|
|
2032
2247
|
var tmp_7 = this;
|
|
2033
2248
|
// Inline function 'org.kodein.di.instance' call
|
|
2034
2249
|
// Inline function 'org.kodein.type.generic' call
|
|
2035
2250
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2036
2251
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2037
|
-
tmp_7.
|
|
2252
|
+
tmp_7.hd9_1 = Instance(di, tmp$ret$8, null).m67(this, serverConfig$factory());
|
|
2038
2253
|
var tmp_9 = this;
|
|
2039
2254
|
// Inline function 'org.kodein.di.instance' call
|
|
2040
2255
|
// Inline function 'org.kodein.type.generic' call
|
|
2041
2256
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2042
2257
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2043
|
-
tmp_9.
|
|
2258
|
+
tmp_9.id9_1 = Instance(di, tmp$ret$10, null).m67(this, logicConfig$factory());
|
|
2044
2259
|
var tmp_11 = this;
|
|
2045
2260
|
// Inline function 'org.kodein.di.instance' call
|
|
2046
2261
|
// Inline function 'org.kodein.type.generic' call
|
|
2047
2262
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2048
2263
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2049
|
-
tmp_11.
|
|
2264
|
+
tmp_11.jd9_1 = Instance(di, tmp$ret$12, null).m67(this, idsProvider$factory());
|
|
2050
2265
|
var tmp_13 = this;
|
|
2051
2266
|
// Inline function 'org.kodein.di.instance' call
|
|
2052
2267
|
// Inline function 'org.kodein.type.generic' call
|
|
2053
2268
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2054
2269
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2055
|
-
tmp_13.
|
|
2270
|
+
tmp_13.kd9_1 = Instance(di, tmp$ret$14, null).m67(this, botConfig$factory());
|
|
2056
2271
|
var tmp_15 = this;
|
|
2057
2272
|
// Inline function 'org.kodein.di.instance' call
|
|
2058
2273
|
// Inline function 'org.kodein.type.generic' call
|
|
2059
2274
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2060
2275
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2061
|
-
tmp_15.
|
|
2276
|
+
tmp_15.ld9_1 = Instance(di, tmp$ret$16, null).m67(this, scenePositionProvider$factory());
|
|
2062
2277
|
var tmp_17 = this;
|
|
2063
2278
|
// Inline function 'org.kodein.di.instance' call
|
|
2064
2279
|
// Inline function 'org.kodein.type.generic' call
|
|
2065
2280
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2066
2281
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2067
|
-
tmp_17.
|
|
2282
|
+
tmp_17.md9_1 = Instance(di, tmp$ret$18, null).m67(this, toClientEventsObserver$factory_1());
|
|
2068
2283
|
}
|
|
2069
|
-
protoOf(ServerGameStoreContract).
|
|
2070
|
-
return plus(plus(plus(plus(plus(this.
|
|
2284
|
+
protoOf(ServerGameStoreContract).o98 = function () {
|
|
2285
|
+
return plus(plus(plus(plus(plus(this.yd8_1.o98(), this.zd8_1.o98()), this.ad9_1.o98()), this.bd9_1.o98()), this.cd9_1.o98()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2071
2286
|
};
|
|
2072
|
-
protoOf(ServerGameStoreContract).
|
|
2073
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2287
|
+
protoOf(ServerGameStoreContract).p98 = function () {
|
|
2288
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.yd8_1.p98(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.zd8_1.p98()), this.ad9_1.p98()), this.bd9_1.p98()), this.cd9_1.p98()), 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))).h9a(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2074
2289
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2075
2290
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2076
2291
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
2077
2292
|
var tmp2_asyncProvider = _get_asyncProvider__jbpyhw(this);
|
|
2078
2293
|
var tmp_1 = playerTurnTimeoutWhenHostMiddleware(tmp0_serverConfig, tmp2_asyncProvider, tmp1_logger);
|
|
2079
|
-
var tmp_2 = clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this),
|
|
2294
|
+
var tmp_2 = clearOnFinishMiddleware(_get_asyncProvider__jbpyhw(this), listOf_0(_get_toClientEventsObserver__6rp51y_0(this)));
|
|
2080
2295
|
var tmp_3;
|
|
2081
2296
|
if (_get_botConfig__cpaxzc(this).autoStepLastCard) {
|
|
2082
2297
|
var tmp_4 = _get_lastCardInteractor__h6lq3w(this);
|
|
@@ -2192,33 +2407,33 @@
|
|
|
2192
2407
|
}
|
|
2193
2408
|
function _no_name_provided__qut3iv() {
|
|
2194
2409
|
}
|
|
2195
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2410
|
+
protoOf(_no_name_provided__qut3iv).b6o = function (action) {
|
|
2196
2411
|
return action instanceof RoundEndedAction;
|
|
2197
2412
|
};
|
|
2198
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2413
|
+
protoOf(_no_name_provided__qut3iv).s6p = function (store, next, action) {
|
|
2199
2414
|
// Inline function 'games.jass.logic.server.redux.middlewares.finishingGameWhenCantStartNewMiddleware.<anonymous>' call
|
|
2200
2415
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2201
2416
|
next(action_0);
|
|
2202
2417
|
var state = store.state;
|
|
2203
|
-
if (!get_serverState(state).
|
|
2204
|
-
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.
|
|
2418
|
+
if (!get_serverState(state).pd5_1.qd5_1 && action_0.isGameFinished) {
|
|
2419
|
+
store.dispatch(Companion_instance.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.c6w_1));
|
|
2205
2420
|
}
|
|
2206
2421
|
};
|
|
2207
|
-
protoOf(_no_name_provided__qut3iv).
|
|
2208
|
-
return this.
|
|
2422
|
+
protoOf(_no_name_provided__qut3iv).a6o = function (store, next, action) {
|
|
2423
|
+
return this.s6p(store, next, action);
|
|
2209
2424
|
};
|
|
2210
2425
|
function ServerMapMechanicToClientActionMiddleware$middleware$o$handle$lambda($$this$with) {
|
|
2211
2426
|
return function () {
|
|
2212
|
-
return $$this$with.
|
|
2427
|
+
return $$this$with.e6x().playersConnections;
|
|
2213
2428
|
};
|
|
2214
2429
|
}
|
|
2215
2430
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2216
|
-
this.
|
|
2431
|
+
this.pd9_1 = this$0;
|
|
2217
2432
|
}
|
|
2218
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2433
|
+
protoOf(_no_name_provided__qut3iv_0).b6o = function (action) {
|
|
2219
2434
|
return action instanceof MechanicAction;
|
|
2220
2435
|
};
|
|
2221
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2436
|
+
protoOf(_no_name_provided__qut3iv_0).s6p = function (store, next, action) {
|
|
2222
2437
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>' call
|
|
2223
2438
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
2224
2439
|
var state = store.state;
|
|
@@ -2228,18 +2443,18 @@
|
|
|
2228
2443
|
var tmp;
|
|
2229
2444
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2230
2445
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2231
|
-
var this_0 = this.
|
|
2232
|
-
var tableId = action_0.
|
|
2233
|
-
var gameCreatorPlayerId = action_0.
|
|
2446
|
+
var this_0 = this.pd9_1;
|
|
2447
|
+
var tableId = action_0.r84_1;
|
|
2448
|
+
var gameCreatorPlayerId = action_0.t84_1;
|
|
2234
2449
|
// Inline function 'kotlin.collections.map' call
|
|
2235
|
-
var this_1 = action_0.
|
|
2450
|
+
var this_1 = action_0.u84_1;
|
|
2236
2451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2237
2452
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2238
2453
|
var tmp0_iterator = this_1.j();
|
|
2239
2454
|
while (tmp0_iterator.k()) {
|
|
2240
2455
|
var item = tmp0_iterator.l();
|
|
2241
2456
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2242
|
-
var tmp$ret$0 = to(item.
|
|
2457
|
+
var tmp$ret$0 = to(item.o6e_1, PlayerConnectionState_LIVE_getInstance());
|
|
2243
2458
|
destination.e(tmp$ret$0);
|
|
2244
2459
|
}
|
|
2245
2460
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2251,7 +2466,7 @@
|
|
|
2251
2466
|
while (tmp0_iterator_0.k()) {
|
|
2252
2467
|
var element = tmp0_iterator_0.l();
|
|
2253
2468
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2254
|
-
if (element.
|
|
2469
|
+
if (element.oe_1.isLive) {
|
|
2255
2470
|
destination_0.e(element);
|
|
2256
2471
|
}
|
|
2257
2472
|
}
|
|
@@ -2261,7 +2476,7 @@
|
|
|
2261
2476
|
while (tmp0_iterator_1.k()) {
|
|
2262
2477
|
var item_0 = tmp0_iterator_1.l();
|
|
2263
2478
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2264
|
-
var tmp$ret$6 = item_0.
|
|
2479
|
+
var tmp$ret$6 = item_0.ne_1;
|
|
2265
2480
|
destination_1.e(tmp$ret$6);
|
|
2266
2481
|
}
|
|
2267
2482
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2273,7 +2488,7 @@
|
|
|
2273
2488
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2274
2489
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2275
2490
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2276
|
-
var tmp0_aid = this_0.
|
|
2491
|
+
var tmp0_aid = this_0.od9_1.a6m();
|
|
2277
2492
|
// Inline function 'kotlin.collections.map' call
|
|
2278
2493
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2279
2494
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
@@ -2281,7 +2496,7 @@
|
|
|
2281
2496
|
while (tmp0_iterator_3.k()) {
|
|
2282
2497
|
var item_1 = tmp0_iterator_3.l();
|
|
2283
2498
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2284
|
-
var tmp$ret$9 = item_1.
|
|
2499
|
+
var tmp$ret$9 = item_1.ne_1;
|
|
2285
2500
|
destination_3.e(tmp$ret$9);
|
|
2286
2501
|
}
|
|
2287
2502
|
var sendToPlayer = UserActionPayload_init_$Create$(tmp0_aid, tableId, gameCreatorPlayerId, element_0, destination_3);
|
|
@@ -2298,17 +2513,17 @@
|
|
|
2298
2513
|
} else {
|
|
2299
2514
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2300
2515
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2301
|
-
var this_2 = this.
|
|
2302
|
-
var table = state.
|
|
2516
|
+
var this_2 = this.pd9_1;
|
|
2517
|
+
var table = state.e6x();
|
|
2303
2518
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2304
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2519
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.od9_1.a6m(), table.id, null);
|
|
2305
2520
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2306
2521
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2307
2522
|
} else {
|
|
2308
2523
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2309
2524
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2310
|
-
var this_3 = this.
|
|
2311
|
-
var tableId_0 = action_0.
|
|
2525
|
+
var this_3 = this.pd9_1;
|
|
2526
|
+
var tableId_0 = action_0.x84_1.id;
|
|
2312
2527
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2313
2528
|
var players = getPlayers();
|
|
2314
2529
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2320,7 +2535,7 @@
|
|
|
2320
2535
|
while (tmp0_iterator_4.k()) {
|
|
2321
2536
|
var element_1 = tmp0_iterator_4.l();
|
|
2322
2537
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2323
|
-
if (element_1.
|
|
2538
|
+
if (element_1.oe_1.isLive) {
|
|
2324
2539
|
destination_4.e(element_1);
|
|
2325
2540
|
}
|
|
2326
2541
|
}
|
|
@@ -2330,7 +2545,7 @@
|
|
|
2330
2545
|
while (tmp0_iterator_5.k()) {
|
|
2331
2546
|
var item_2 = tmp0_iterator_5.l();
|
|
2332
2547
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2333
|
-
var tmp$ret$23 = item_2.
|
|
2548
|
+
var tmp$ret$23 = item_2.ne_1;
|
|
2334
2549
|
destination_5.e(tmp$ret$23);
|
|
2335
2550
|
}
|
|
2336
2551
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2342,7 +2557,7 @@
|
|
|
2342
2557
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2343
2558
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2344
2559
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2345
|
-
var tmp0_aid_0 = this_3.
|
|
2560
|
+
var tmp0_aid_0 = this_3.od9_1.a6m();
|
|
2346
2561
|
// Inline function 'kotlin.collections.map' call
|
|
2347
2562
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2348
2563
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -2350,7 +2565,7 @@
|
|
|
2350
2565
|
while (tmp0_iterator_7.k()) {
|
|
2351
2566
|
var item_3 = tmp0_iterator_7.l();
|
|
2352
2567
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2353
|
-
var tmp$ret$26 = item_3.
|
|
2568
|
+
var tmp$ret$26 = item_3.ne_1;
|
|
2354
2569
|
destination_7.e(tmp$ret$26);
|
|
2355
2570
|
}
|
|
2356
2571
|
var sendToPlayer_1 = UserActionPayload_init_$Create$(tmp0_aid_0, tableId_0, gameCreatorPlayerId_0, element_2, destination_7);
|
|
@@ -2367,44 +2582,44 @@
|
|
|
2367
2582
|
} else {
|
|
2368
2583
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2369
2584
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2370
|
-
var this_4 = this.
|
|
2371
|
-
var table_0 = state.
|
|
2585
|
+
var this_4 = this.pd9_1;
|
|
2586
|
+
var table_0 = state.e6x();
|
|
2372
2587
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2373
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2588
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.od9_1.a6m(), table_0.id, null);
|
|
2374
2589
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2375
2590
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2376
2591
|
} else {
|
|
2377
2592
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2378
2593
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2379
|
-
var this_5 = this.
|
|
2380
|
-
var table_1 = state.
|
|
2594
|
+
var this_5 = this.pd9_1;
|
|
2595
|
+
var table_1 = state.e6x();
|
|
2381
2596
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2382
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2597
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.od9_1.a6m(), table_1.id, null);
|
|
2383
2598
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2384
2599
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2385
2600
|
} else {
|
|
2386
2601
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2387
2602
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2388
|
-
var this_6 = this.
|
|
2389
|
-
var table_2 = state.
|
|
2603
|
+
var this_6 = this.pd9_1;
|
|
2604
|
+
var table_2 = state.e6x();
|
|
2390
2605
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2391
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2606
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.od9_1.a6m(), table_2.id, null);
|
|
2392
2607
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2393
2608
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2394
2609
|
} else {
|
|
2395
2610
|
if (action_0 instanceof ErrorAction) {
|
|
2396
2611
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2397
|
-
var this_7 = this.
|
|
2398
|
-
var table_3 = state.
|
|
2612
|
+
var this_7 = this.pd9_1;
|
|
2613
|
+
var table_3 = state.e6x();
|
|
2399
2614
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2400
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2615
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.od9_1.a6m(), table_3.id, null);
|
|
2401
2616
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2402
2617
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2403
2618
|
} else {
|
|
2404
2619
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2405
2620
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2406
|
-
var this_8 = this.
|
|
2407
|
-
var table_4 = state.
|
|
2621
|
+
var this_8 = this.pd9_1;
|
|
2622
|
+
var table_4 = state.e6x();
|
|
2408
2623
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2409
2624
|
var tableId_1 = table_4.id;
|
|
2410
2625
|
var gameCreatorPlayerId_1 = getGameCreator(table_4.players).playerId;
|
|
@@ -2418,7 +2633,7 @@
|
|
|
2418
2633
|
while (tmp0_iterator_8.k()) {
|
|
2419
2634
|
var element_3 = tmp0_iterator_8.l();
|
|
2420
2635
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2421
|
-
if (element_3.
|
|
2636
|
+
if (element_3.oe_1.isLive) {
|
|
2422
2637
|
destination_8.e(element_3);
|
|
2423
2638
|
}
|
|
2424
2639
|
}
|
|
@@ -2428,7 +2643,7 @@
|
|
|
2428
2643
|
while (tmp0_iterator_9.k()) {
|
|
2429
2644
|
var item_4 = tmp0_iterator_9.l();
|
|
2430
2645
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2431
|
-
var tmp$ret$46 = item_4.
|
|
2646
|
+
var tmp$ret$46 = item_4.ne_1;
|
|
2432
2647
|
destination_9.e(tmp$ret$46);
|
|
2433
2648
|
}
|
|
2434
2649
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2440,7 +2655,7 @@
|
|
|
2440
2655
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2441
2656
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2442
2657
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2443
|
-
var tmp0_aid_1 = this_8.
|
|
2658
|
+
var tmp0_aid_1 = this_8.od9_1.a6m();
|
|
2444
2659
|
// Inline function 'kotlin.collections.map' call
|
|
2445
2660
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2446
2661
|
var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2448,7 +2663,7 @@
|
|
|
2448
2663
|
while (tmp0_iterator_11.k()) {
|
|
2449
2664
|
var item_5 = tmp0_iterator_11.l();
|
|
2450
2665
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2451
|
-
var tmp$ret$49 = item_5.
|
|
2666
|
+
var tmp$ret$49 = item_5.ne_1;
|
|
2452
2667
|
destination_11.e(tmp$ret$49);
|
|
2453
2668
|
}
|
|
2454
2669
|
var sendToPlayer_6 = UserActionPayload_init_$Create$(tmp0_aid_1, tableId_1, gameCreatorPlayerId_1, element_4, destination_11);
|
|
@@ -2465,8 +2680,8 @@
|
|
|
2465
2680
|
} else {
|
|
2466
2681
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2467
2682
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2468
|
-
var this_9 = this.
|
|
2469
|
-
var table_5 = state.
|
|
2683
|
+
var this_9 = this.pd9_1;
|
|
2684
|
+
var table_5 = state.e6x();
|
|
2470
2685
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2471
2686
|
var tableId_2 = table_5.id;
|
|
2472
2687
|
var gameCreatorPlayerId_2 = getGameCreator(table_5.players).playerId;
|
|
@@ -2480,7 +2695,7 @@
|
|
|
2480
2695
|
while (tmp0_iterator_12.k()) {
|
|
2481
2696
|
var element_5 = tmp0_iterator_12.l();
|
|
2482
2697
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2483
|
-
if (element_5.
|
|
2698
|
+
if (element_5.oe_1.isLive) {
|
|
2484
2699
|
destination_12.e(element_5);
|
|
2485
2700
|
}
|
|
2486
2701
|
}
|
|
@@ -2490,7 +2705,7 @@
|
|
|
2490
2705
|
while (tmp0_iterator_13.k()) {
|
|
2491
2706
|
var item_6 = tmp0_iterator_13.l();
|
|
2492
2707
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2493
|
-
var tmp$ret$62 = item_6.
|
|
2708
|
+
var tmp$ret$62 = item_6.ne_1;
|
|
2494
2709
|
destination_13.e(tmp$ret$62);
|
|
2495
2710
|
}
|
|
2496
2711
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2502,7 +2717,7 @@
|
|
|
2502
2717
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2503
2718
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2504
2719
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2505
|
-
var tmp0_aid_2 = this_9.
|
|
2720
|
+
var tmp0_aid_2 = this_9.od9_1.a6m();
|
|
2506
2721
|
// Inline function 'kotlin.collections.map' call
|
|
2507
2722
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2508
2723
|
var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2510,7 +2725,7 @@
|
|
|
2510
2725
|
while (tmp0_iterator_15.k()) {
|
|
2511
2726
|
var item_7 = tmp0_iterator_15.l();
|
|
2512
2727
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2513
|
-
var tmp$ret$65 = item_7.
|
|
2728
|
+
var tmp$ret$65 = item_7.ne_1;
|
|
2514
2729
|
destination_15.e(tmp$ret$65);
|
|
2515
2730
|
}
|
|
2516
2731
|
var sendToPlayer_7 = UserActionPayload_init_$Create$(tmp0_aid_2, tableId_2, gameCreatorPlayerId_2, element_6, destination_15);
|
|
@@ -2527,8 +2742,8 @@
|
|
|
2527
2742
|
} else {
|
|
2528
2743
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2529
2744
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2530
|
-
var this_10 = this.
|
|
2531
|
-
var table_6 = state.
|
|
2745
|
+
var this_10 = this.pd9_1;
|
|
2746
|
+
var table_6 = state.e6x();
|
|
2532
2747
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2533
2748
|
var tableId_3 = table_6.id;
|
|
2534
2749
|
var gameCreatorPlayerId_3 = getGameCreator(table_6.players).playerId;
|
|
@@ -2542,7 +2757,7 @@
|
|
|
2542
2757
|
while (tmp0_iterator_16.k()) {
|
|
2543
2758
|
var element_7 = tmp0_iterator_16.l();
|
|
2544
2759
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2545
|
-
if (element_7.
|
|
2760
|
+
if (element_7.oe_1.isLive) {
|
|
2546
2761
|
destination_16.e(element_7);
|
|
2547
2762
|
}
|
|
2548
2763
|
}
|
|
@@ -2552,7 +2767,7 @@
|
|
|
2552
2767
|
while (tmp0_iterator_17.k()) {
|
|
2553
2768
|
var item_8 = tmp0_iterator_17.l();
|
|
2554
2769
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2555
|
-
var tmp$ret$78 = item_8.
|
|
2770
|
+
var tmp$ret$78 = item_8.ne_1;
|
|
2556
2771
|
destination_17.e(tmp$ret$78);
|
|
2557
2772
|
}
|
|
2558
2773
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -2564,7 +2779,7 @@
|
|
|
2564
2779
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2565
2780
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2566
2781
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2567
|
-
var tmp0_aid_3 = this_10.
|
|
2782
|
+
var tmp0_aid_3 = this_10.od9_1.a6m();
|
|
2568
2783
|
// Inline function 'kotlin.collections.map' call
|
|
2569
2784
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2570
2785
|
var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2572,12 +2787,12 @@
|
|
|
2572
2787
|
while (tmp0_iterator_19.k()) {
|
|
2573
2788
|
var item_9 = tmp0_iterator_19.l();
|
|
2574
2789
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>.<anonymous>' call
|
|
2575
|
-
var tmp$ret$81 = item_9.
|
|
2790
|
+
var tmp$ret$81 = item_9.ne_1;
|
|
2576
2791
|
destination_19.e(tmp$ret$81);
|
|
2577
2792
|
}
|
|
2578
2793
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2579
2794
|
var tmp_0;
|
|
2580
|
-
if (this.
|
|
2795
|
+
if (this.pd9_1.nd9_1.supportBackwardActions && getPlayer(state.e6x().players, sendToPlayer_8.w7j_1).l73_1.q73_1) {
|
|
2581
2796
|
tmp_0 = null;
|
|
2582
2797
|
} else {
|
|
2583
2798
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2595,79 +2810,79 @@
|
|
|
2595
2810
|
} else {
|
|
2596
2811
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2597
2812
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2598
|
-
var this_11 = this.
|
|
2599
|
-
var table_7 = state.
|
|
2600
|
-
var exceptPlayerId = this.
|
|
2813
|
+
var this_11 = this.pd9_1;
|
|
2814
|
+
var table_7 = state.e6x();
|
|
2815
|
+
var exceptPlayerId = this.pd9_1.nd9_1.supportBackwardActions ? action_0.u85_1 : null;
|
|
2601
2816
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2602
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2817
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.od9_1.a6m(), table_7.id, exceptPlayerId);
|
|
2603
2818
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2604
2819
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2605
2820
|
} else {
|
|
2606
2821
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2607
2822
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2608
|
-
var this_12 = this.
|
|
2609
|
-
var table_8 = state.
|
|
2610
|
-
var exceptPlayerId_0 = this.
|
|
2823
|
+
var this_12 = this.pd9_1;
|
|
2824
|
+
var table_8 = state.e6x();
|
|
2825
|
+
var exceptPlayerId_0 = this.pd9_1.nd9_1.supportBackwardActions ? action_0.y85_1 : null;
|
|
2611
2826
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2612
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2827
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.od9_1.a6m(), table_8.id, exceptPlayerId_0);
|
|
2613
2828
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2614
2829
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2615
2830
|
} else {
|
|
2616
2831
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2617
2832
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2618
|
-
var this_13 = this.
|
|
2619
|
-
var table_9 = state.
|
|
2833
|
+
var this_13 = this.pd9_1;
|
|
2834
|
+
var table_9 = state.e6x();
|
|
2620
2835
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2621
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2836
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.od9_1.a6m(), table_9.id, null);
|
|
2622
2837
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2623
2838
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2624
2839
|
} else {
|
|
2625
2840
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2626
2841
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2627
|
-
var this_14 = this.
|
|
2628
|
-
var table_10 = state.
|
|
2629
|
-
var exceptPlayerId_1 = this.
|
|
2842
|
+
var this_14 = this.pd9_1;
|
|
2843
|
+
var table_10 = state.e6x();
|
|
2844
|
+
var exceptPlayerId_1 = this.pd9_1.nd9_1.supportBackwardActions ? action_0.f86_1 : null;
|
|
2630
2845
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2631
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2846
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.od9_1.a6m(), table_10.id, exceptPlayerId_1);
|
|
2632
2847
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2633
2848
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2634
2849
|
} else {
|
|
2635
2850
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2636
2851
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2637
|
-
var this_15 = this.
|
|
2638
|
-
var table_11 = state.
|
|
2639
|
-
var exceptPlayerId_2 = this.
|
|
2852
|
+
var this_15 = this.pd9_1;
|
|
2853
|
+
var table_11 = state.e6x();
|
|
2854
|
+
var exceptPlayerId_2 = this.pd9_1.nd9_1.supportBackwardActions ? action_0.j86_1 : null;
|
|
2640
2855
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2641
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2856
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.od9_1.a6m(), table_11.id, exceptPlayerId_2);
|
|
2642
2857
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2643
2858
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2644
2859
|
} else {
|
|
2645
2860
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2646
2861
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2647
|
-
var this_16 = this.
|
|
2648
|
-
var table_12 = state.
|
|
2862
|
+
var this_16 = this.pd9_1;
|
|
2863
|
+
var table_12 = state.e6x();
|
|
2649
2864
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2650
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2865
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.od9_1.a6m(), table_12.id, null);
|
|
2651
2866
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2652
2867
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2653
2868
|
} else {
|
|
2654
2869
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2655
2870
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2656
|
-
var this_17 = this.
|
|
2657
|
-
var table_13 = state.
|
|
2871
|
+
var this_17 = this.pd9_1;
|
|
2872
|
+
var table_13 = state.e6x();
|
|
2658
2873
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2659
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2874
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.od9_1.a6m(), table_13.id, null);
|
|
2660
2875
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2661
2876
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2662
2877
|
} else {
|
|
2663
2878
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2664
|
-
var message = action_0.
|
|
2879
|
+
var message = action_0.r86_1;
|
|
2665
2880
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2666
|
-
var this_18 = this.
|
|
2667
|
-
var table_14 = state.
|
|
2881
|
+
var this_18 = this.pd9_1;
|
|
2882
|
+
var table_14 = state.e6x();
|
|
2668
2883
|
var tmp_1;
|
|
2669
2884
|
var tmp_2;
|
|
2670
|
-
if (this.
|
|
2885
|
+
if (this.pd9_1.nd9_1.supportBackwardActions) {
|
|
2671
2886
|
tmp_2 = isInterface(message, UserMessage);
|
|
2672
2887
|
} else {
|
|
2673
2888
|
tmp_2 = false;
|
|
@@ -2679,17 +2894,17 @@
|
|
|
2679
2894
|
}
|
|
2680
2895
|
var exceptPlayerId_3 = tmp_1;
|
|
2681
2896
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2682
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2897
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.od9_1.a6m(), table_14.id, exceptPlayerId_3);
|
|
2683
2898
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2684
2899
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2685
2900
|
} else {
|
|
2686
2901
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2687
2902
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2688
|
-
var this_19 = this.
|
|
2689
|
-
var table_15 = state.
|
|
2903
|
+
var this_19 = this.pd9_1;
|
|
2904
|
+
var table_15 = state.e6x();
|
|
2690
2905
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2691
2906
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2692
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
2907
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.od9_1.a6m(), table_15.id, exceptPlayerId_4);
|
|
2693
2908
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2694
2909
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2695
2910
|
} else {
|
|
@@ -2723,14 +2938,14 @@
|
|
|
2723
2938
|
}
|
|
2724
2939
|
next(action_0);
|
|
2725
2940
|
};
|
|
2726
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
2727
|
-
return this.
|
|
2941
|
+
protoOf(_no_name_provided__qut3iv_0).a6o = function (store, next, action) {
|
|
2942
|
+
return this.s6p(store, next, action);
|
|
2728
2943
|
};
|
|
2729
2944
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2945
|
+
this.nd9_1 = logicConfig;
|
|
2946
|
+
this.od9_1 = idsProvider;
|
|
2732
2947
|
}
|
|
2733
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
2948
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).h9a = function () {
|
|
2734
2949
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2735
2950
|
return new _no_name_provided__qut3iv_0(this);
|
|
2736
2951
|
};
|
|
@@ -2739,29 +2954,29 @@
|
|
|
2739
2954
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
2740
2955
|
}
|
|
2741
2956
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
2742
|
-
this.
|
|
2743
|
-
this.
|
|
2957
|
+
this.yd9_1 = $provider;
|
|
2958
|
+
this.zd9_1 = $action;
|
|
2744
2959
|
CoroutineImpl.call(this, resultContinuation);
|
|
2745
2960
|
}
|
|
2746
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2747
|
-
var tmp = this.
|
|
2748
|
-
tmp.
|
|
2749
|
-
tmp.
|
|
2750
|
-
return tmp.
|
|
2961
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
2962
|
+
var tmp = this.f1f($this$launchDefault, $completion);
|
|
2963
|
+
tmp.g9_1 = Unit_instance;
|
|
2964
|
+
tmp.h9_1 = null;
|
|
2965
|
+
return tmp.m9();
|
|
2751
2966
|
};
|
|
2752
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2753
|
-
return this.
|
|
2967
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).w9 = function (p1, $completion) {
|
|
2968
|
+
return this.e1f((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2754
2969
|
};
|
|
2755
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2756
|
-
var suspendResult = this.
|
|
2970
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).m9 = function () {
|
|
2971
|
+
var suspendResult = this.g9_1;
|
|
2757
2972
|
$sm: do
|
|
2758
2973
|
try {
|
|
2759
|
-
var tmp = this.
|
|
2974
|
+
var tmp = this.e9_1;
|
|
2760
2975
|
switch (tmp) {
|
|
2761
2976
|
case 0:
|
|
2762
|
-
this.
|
|
2763
|
-
this.
|
|
2764
|
-
suspendResult = this.
|
|
2977
|
+
this.f9_1 = 2;
|
|
2978
|
+
this.e9_1 = 1;
|
|
2979
|
+
suspendResult = this.yd9_1.jd6(this.zd9_1, this);
|
|
2765
2980
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2766
2981
|
return suspendResult;
|
|
2767
2982
|
}
|
|
@@ -2770,47 +2985,47 @@
|
|
|
2770
2985
|
case 1:
|
|
2771
2986
|
return Unit_instance;
|
|
2772
2987
|
case 2:
|
|
2773
|
-
throw this.
|
|
2988
|
+
throw this.h9_1;
|
|
2774
2989
|
}
|
|
2775
2990
|
} catch ($p) {
|
|
2776
2991
|
var e = $p;
|
|
2777
|
-
if (this.
|
|
2992
|
+
if (this.f9_1 === 2) {
|
|
2778
2993
|
throw e;
|
|
2779
2994
|
} else {
|
|
2780
|
-
this.
|
|
2781
|
-
this.
|
|
2995
|
+
this.e9_1 = this.f9_1;
|
|
2996
|
+
this.h9_1 = e;
|
|
2782
2997
|
}
|
|
2783
2998
|
}
|
|
2784
2999
|
while (true);
|
|
2785
3000
|
};
|
|
2786
|
-
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).
|
|
2787
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
2788
|
-
i.
|
|
3001
|
+
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).f1f = function ($this$launchDefault, completion) {
|
|
3002
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.yd9_1, this.zd9_1, completion);
|
|
3003
|
+
i.ada_1 = $this$launchDefault;
|
|
2789
3004
|
return i;
|
|
2790
3005
|
};
|
|
2791
3006
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
2792
3007
|
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation);
|
|
2793
3008
|
var l = function ($this$launchDefault, $completion) {
|
|
2794
|
-
return i.
|
|
3009
|
+
return i.e1f($this$launchDefault, $completion);
|
|
2795
3010
|
};
|
|
2796
3011
|
l.$arity = 1;
|
|
2797
3012
|
return l;
|
|
2798
3013
|
}
|
|
2799
3014
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
2800
|
-
this.
|
|
2801
|
-
this.
|
|
3015
|
+
this.bda_1 = $asyncProvider;
|
|
3016
|
+
this.cda_1 = $provider;
|
|
2802
3017
|
}
|
|
2803
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3018
|
+
protoOf(_no_name_provided__qut3iv_1).b6o = function (action) {
|
|
2804
3019
|
return action instanceof ToClientAction;
|
|
2805
3020
|
};
|
|
2806
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
3021
|
+
protoOf(_no_name_provided__qut3iv_1).s6p = function (store, next, action) {
|
|
2807
3022
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
2808
3023
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
2809
|
-
this.
|
|
3024
|
+
this.bda_1.x6k(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.cda_1, action_0, null));
|
|
2810
3025
|
next(action_0);
|
|
2811
3026
|
};
|
|
2812
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
2813
|
-
return this.
|
|
3027
|
+
protoOf(_no_name_provided__qut3iv_1).a6o = function (store, next, action) {
|
|
3028
|
+
return this.s6p(store, next, action);
|
|
2814
3029
|
};
|
|
2815
3030
|
function serverConfigReducer() {
|
|
2816
3031
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -2818,90 +3033,297 @@
|
|
|
2818
3033
|
}
|
|
2819
3034
|
function _no_name_provided__qut3iv_2() {
|
|
2820
3035
|
}
|
|
2821
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3036
|
+
protoOf(_no_name_provided__qut3iv_2).b6o = function (action) {
|
|
2822
3037
|
return action instanceof UpdateServerConfigAction;
|
|
2823
3038
|
};
|
|
2824
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3039
|
+
protoOf(_no_name_provided__qut3iv_2).o9h = function (state, action) {
|
|
2825
3040
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
2826
3041
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
2827
|
-
return state.
|
|
3042
|
+
return state.t95(VOID, get_serverState(state).dda(action_0.vd8_1));
|
|
2828
3043
|
};
|
|
2829
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
2830
|
-
return this.
|
|
3044
|
+
protoOf(_no_name_provided__qut3iv_2).t6p = function (state, action) {
|
|
3045
|
+
return this.o9h((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
2831
3046
|
};
|
|
2832
3047
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
2833
3048
|
return function (it) {
|
|
2834
3049
|
var tmp = Companion_instance_0;
|
|
2835
3050
|
var tmp_0;
|
|
2836
3051
|
if (it.isBot) {
|
|
2837
|
-
tmp_0 = Companion_instance_1.
|
|
3052
|
+
tmp_0 = Companion_instance_1.o6f(PlayerConnectionState_LEFT_getInstance());
|
|
2838
3053
|
} else {
|
|
2839
3054
|
var tmp_1 = Companion_instance_1;
|
|
2840
3055
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
2841
3056
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2842
3057
|
Companion_getInstance();
|
|
2843
|
-
var this_0 = $action.
|
|
3058
|
+
var this_0 = $action.q84_1.timeoutTimeMillis;
|
|
2844
3059
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
2845
|
-
tmp_0 = tmp_1.
|
|
3060
|
+
tmp_0 = tmp_1.n6f(tmp_2, tmp$ret$0);
|
|
2846
3061
|
}
|
|
2847
|
-
return tmp.
|
|
3062
|
+
return tmp.v6g(tmp_0);
|
|
2848
3063
|
};
|
|
2849
3064
|
}
|
|
2850
3065
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
2851
3066
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
2852
|
-
this.
|
|
2853
|
-
}
|
|
2854
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
2855
|
-
var serverState = get_serverStateOrNull(state.
|
|
2856
|
-
var
|
|
2857
|
-
var tmp0_$this = this.
|
|
2858
|
-
var tmp1_tableId = action.
|
|
2859
|
-
var tmp2_gameId = action.
|
|
2860
|
-
var tmp3_version = action.
|
|
2861
|
-
var tmp4_config = action.
|
|
2862
|
-
var tmp5_users = action.
|
|
2863
|
-
var
|
|
2864
|
-
var
|
|
3067
|
+
this.gda_1 = logger;
|
|
3068
|
+
}
|
|
3069
|
+
protoOf(ServerMechanicLifecycleReducer).a9j = function (state, action) {
|
|
3070
|
+
var serverState = get_serverStateOrNull(state.d6w_1);
|
|
3071
|
+
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3072
|
+
var tmp0_$this = this.b9j_1;
|
|
3073
|
+
var tmp1_tableId = action.r84_1;
|
|
3074
|
+
var tmp2_gameId = action.r84_1;
|
|
3075
|
+
var tmp3_version = action.s84_1;
|
|
3076
|
+
var tmp4_config = action.q84_1;
|
|
3077
|
+
var tmp5_users = action.u84_1;
|
|
3078
|
+
var tmp6_spectators = action.spectators;
|
|
3079
|
+
var tmp7_gameCreatorPlayerId = action.t84_1;
|
|
3080
|
+
var tmp9_tableOrNull = tmp0_$this.h9k(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
2865
3081
|
var tmp;
|
|
2866
3082
|
if (serverState == null) {
|
|
2867
|
-
this.
|
|
2868
|
-
tmp = Companion_instance_9.
|
|
3083
|
+
this.gda_1.w(VOID, 'ServerPayload is not onStart');
|
|
3084
|
+
tmp = Companion_instance_9.fd6();
|
|
2869
3085
|
} else {
|
|
2870
3086
|
tmp = serverState;
|
|
2871
3087
|
}
|
|
2872
|
-
var
|
|
2873
|
-
return state.
|
|
3088
|
+
var tmp10_payload = tmp;
|
|
3089
|
+
return state.t95(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
2874
3090
|
};
|
|
2875
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
2876
|
-
this.
|
|
3091
|
+
protoOf(ServerMechanicLifecycleReducer).z9i = function (state, action) {
|
|
3092
|
+
this.c9j_1.z5u(action.previousGameId);
|
|
2877
3093
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
2878
|
-
var tmp1_tableOrNull = this.
|
|
2879
|
-
return state.
|
|
3094
|
+
var tmp1_tableOrNull = this.b9j_1.i9k(state.e6x(), action.gameId);
|
|
3095
|
+
return state.t95(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3096
|
+
};
|
|
3097
|
+
function spectatorsReducer(logger) {
|
|
3098
|
+
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3099
|
+
return new _no_name_provided__qut3iv_3(logger);
|
|
3100
|
+
}
|
|
3101
|
+
function _no_name_provided__qut3iv_3($logger) {
|
|
3102
|
+
this.hda_1 = $logger;
|
|
3103
|
+
}
|
|
3104
|
+
protoOf(_no_name_provided__qut3iv_3).b6o = function (action) {
|
|
3105
|
+
return isInterface(action, SpectatorsAction);
|
|
3106
|
+
};
|
|
3107
|
+
protoOf(_no_name_provided__qut3iv_3).o9h = function (state, action) {
|
|
3108
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3109
|
+
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3110
|
+
var table = state.e6x();
|
|
3111
|
+
var tmp;
|
|
3112
|
+
if (action_0 instanceof AddSpectatorsAction) {
|
|
3113
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3114
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3115
|
+
var this_0 = action_0.wd8_1;
|
|
3116
|
+
var destination = ArrayList_init_$Create$();
|
|
3117
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
3118
|
+
var tmp0_iterator = this_0.j();
|
|
3119
|
+
while (tmp0_iterator.k()) {
|
|
3120
|
+
var element = tmp0_iterator.l();
|
|
3121
|
+
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3122
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
3123
|
+
var tmp0_safe_receiver = singleOrNull(filterByPlayerId(table.spectators, element.o6e_1));
|
|
3124
|
+
if (tmp0_safe_receiver == null)
|
|
3125
|
+
null;
|
|
3126
|
+
else {
|
|
3127
|
+
// Inline function 'kotlin.let' call
|
|
3128
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3129
|
+
destination.e(tmp0_safe_receiver);
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
var sameSpectators = destination;
|
|
3133
|
+
// Inline function 'kotlin.collections.map' call
|
|
3134
|
+
var tmp_0;
|
|
3135
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3136
|
+
if (!sameSpectators.p()) {
|
|
3137
|
+
this.hda_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3138
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
3139
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3140
|
+
var this_1 = action_0.wd8_1;
|
|
3141
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
3142
|
+
var tmp0_iterator_0 = this_1.j();
|
|
3143
|
+
while (tmp0_iterator_0.k()) {
|
|
3144
|
+
var element_0 = tmp0_iterator_0.l();
|
|
3145
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
3146
|
+
var tmp$ret$5;
|
|
3147
|
+
$l$block_0: {
|
|
3148
|
+
// Inline function 'kotlin.collections.any' call
|
|
3149
|
+
var tmp_1;
|
|
3150
|
+
if (isInterface(sameSpectators, Collection)) {
|
|
3151
|
+
tmp_1 = sameSpectators.p();
|
|
3152
|
+
} else {
|
|
3153
|
+
tmp_1 = false;
|
|
3154
|
+
}
|
|
3155
|
+
if (tmp_1) {
|
|
3156
|
+
tmp$ret$5 = false;
|
|
3157
|
+
break $l$block_0;
|
|
3158
|
+
}
|
|
3159
|
+
var tmp0_iterator_1 = sameSpectators.j();
|
|
3160
|
+
while (tmp0_iterator_1.k()) {
|
|
3161
|
+
var element_1 = tmp0_iterator_1.l();
|
|
3162
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
3163
|
+
if (element_0.o6e_1 === element_1.playerId) {
|
|
3164
|
+
tmp$ret$5 = true;
|
|
3165
|
+
break $l$block_0;
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
tmp$ret$5 = false;
|
|
3169
|
+
}
|
|
3170
|
+
if (!tmp$ret$5) {
|
|
3171
|
+
destination_0.e(element_0);
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
tmp_0 = destination_0;
|
|
3175
|
+
} else {
|
|
3176
|
+
tmp_0 = action_0.wd8_1;
|
|
3177
|
+
}
|
|
3178
|
+
var this_2 = tmp_0;
|
|
3179
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3180
|
+
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3181
|
+
var tmp0_iterator_2 = this_2.j();
|
|
3182
|
+
while (tmp0_iterator_2.k()) {
|
|
3183
|
+
var item = tmp0_iterator_2.l();
|
|
3184
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
3185
|
+
var tmp$ret$10 = new Spectator(item);
|
|
3186
|
+
destination_1.e(tmp$ret$10);
|
|
3187
|
+
}
|
|
3188
|
+
var spectatorsToAdd = toSet(destination_1);
|
|
3189
|
+
tmp = state.t95(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3190
|
+
} else {
|
|
3191
|
+
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3192
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3193
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3194
|
+
var this_3 = action_0.xd8_1;
|
|
3195
|
+
var destination_2 = ArrayList_init_$Create$();
|
|
3196
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
3197
|
+
var tmp0_iterator_3 = this_3.j();
|
|
3198
|
+
while (tmp0_iterator_3.k()) {
|
|
3199
|
+
var element_2 = tmp0_iterator_3.l();
|
|
3200
|
+
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3201
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
3202
|
+
var tmp0_safe_receiver_0 = singleOrNull(filterByPlayerId(table.spectators, element_2.o6e_1));
|
|
3203
|
+
if (tmp0_safe_receiver_0 == null)
|
|
3204
|
+
null;
|
|
3205
|
+
else {
|
|
3206
|
+
// Inline function 'kotlin.let' call
|
|
3207
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3208
|
+
destination_2.e(tmp0_safe_receiver_0);
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
var sameSpectators_0 = destination_2;
|
|
3212
|
+
var tmp_2;
|
|
3213
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3214
|
+
if (!sameSpectators_0.p()) {
|
|
3215
|
+
this.hda_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3216
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
3217
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3218
|
+
var this_4 = action_0.xd8_1;
|
|
3219
|
+
var destination_3 = ArrayList_init_$Create$();
|
|
3220
|
+
var tmp0_iterator_4 = this_4.j();
|
|
3221
|
+
while (tmp0_iterator_4.k()) {
|
|
3222
|
+
var element_3 = tmp0_iterator_4.l();
|
|
3223
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
3224
|
+
var tmp$ret$18;
|
|
3225
|
+
$l$block_2: {
|
|
3226
|
+
// Inline function 'kotlin.collections.any' call
|
|
3227
|
+
var tmp_3;
|
|
3228
|
+
if (isInterface(sameSpectators_0, Collection)) {
|
|
3229
|
+
tmp_3 = sameSpectators_0.p();
|
|
3230
|
+
} else {
|
|
3231
|
+
tmp_3 = false;
|
|
3232
|
+
}
|
|
3233
|
+
if (tmp_3) {
|
|
3234
|
+
tmp$ret$18 = false;
|
|
3235
|
+
break $l$block_2;
|
|
3236
|
+
}
|
|
3237
|
+
var tmp0_iterator_5 = sameSpectators_0.j();
|
|
3238
|
+
while (tmp0_iterator_5.k()) {
|
|
3239
|
+
var element_4 = tmp0_iterator_5.l();
|
|
3240
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
3241
|
+
if (element_3.o6e_1 === element_4.playerId) {
|
|
3242
|
+
tmp$ret$18 = true;
|
|
3243
|
+
break $l$block_2;
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
tmp$ret$18 = false;
|
|
3247
|
+
}
|
|
3248
|
+
if (!tmp$ret$18) {
|
|
3249
|
+
destination_3.e(element_3);
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
tmp_2 = destination_3;
|
|
3253
|
+
} else {
|
|
3254
|
+
tmp_2 = action_0.xd8_1;
|
|
3255
|
+
}
|
|
3256
|
+
var spectatorsToRemove = toSet(tmp_2);
|
|
3257
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
3258
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3259
|
+
var this_5 = table.spectators;
|
|
3260
|
+
var destination_4 = ArrayList_init_$Create$();
|
|
3261
|
+
var tmp0_iterator_6 = this_5.j();
|
|
3262
|
+
while (tmp0_iterator_6.k()) {
|
|
3263
|
+
var element_5 = tmp0_iterator_6.l();
|
|
3264
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>' call
|
|
3265
|
+
var tmp$ret$23;
|
|
3266
|
+
$l$block_4: {
|
|
3267
|
+
// Inline function 'kotlin.collections.any' call
|
|
3268
|
+
var tmp_4;
|
|
3269
|
+
if (isInterface(spectatorsToRemove, Collection)) {
|
|
3270
|
+
tmp_4 = spectatorsToRemove.p();
|
|
3271
|
+
} else {
|
|
3272
|
+
tmp_4 = false;
|
|
3273
|
+
}
|
|
3274
|
+
if (tmp_4) {
|
|
3275
|
+
tmp$ret$23 = false;
|
|
3276
|
+
break $l$block_4;
|
|
3277
|
+
}
|
|
3278
|
+
var tmp0_iterator_7 = spectatorsToRemove.j();
|
|
3279
|
+
while (tmp0_iterator_7.k()) {
|
|
3280
|
+
var element_6 = tmp0_iterator_7.l();
|
|
3281
|
+
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>.<anonymous>.<anonymous>' call
|
|
3282
|
+
if (element_5.playerId === element_6.o6e_1) {
|
|
3283
|
+
tmp$ret$23 = true;
|
|
3284
|
+
break $l$block_4;
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
tmp$ret$23 = false;
|
|
3288
|
+
}
|
|
3289
|
+
if (!tmp$ret$23) {
|
|
3290
|
+
destination_4.e(element_5);
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
tmp = state.t95(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3294
|
+
} else {
|
|
3295
|
+
noWhenBranchMatchedException();
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
return tmp;
|
|
3299
|
+
};
|
|
3300
|
+
protoOf(_no_name_provided__qut3iv_3).t6p = function (state, action) {
|
|
3301
|
+
return this.o9h((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
2880
3302
|
};
|
|
2881
3303
|
function Companion_1() {
|
|
2882
3304
|
}
|
|
2883
|
-
protoOf(Companion_1).
|
|
3305
|
+
protoOf(Companion_1).ida = function (config) {
|
|
2884
3306
|
return new ServerState(config);
|
|
2885
3307
|
};
|
|
2886
|
-
protoOf(Companion_1).
|
|
3308
|
+
protoOf(Companion_1).fd6 = function (config, $super) {
|
|
2887
3309
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
2888
|
-
return $super === VOID ? this.
|
|
3310
|
+
return $super === VOID ? this.ida(config) : $super.ida.call(this, config);
|
|
2889
3311
|
};
|
|
2890
3312
|
var Companion_instance_9;
|
|
2891
3313
|
function Companion_getInstance_4() {
|
|
2892
3314
|
return Companion_instance_9;
|
|
2893
3315
|
}
|
|
2894
3316
|
function ServerState(config) {
|
|
2895
|
-
this.
|
|
3317
|
+
this.pd5_1 = config;
|
|
2896
3318
|
}
|
|
2897
|
-
protoOf(ServerState).
|
|
3319
|
+
protoOf(ServerState).dda = function (config) {
|
|
2898
3320
|
return new ServerState(config);
|
|
2899
3321
|
};
|
|
2900
3322
|
protoOf(ServerState).toString = function () {
|
|
2901
|
-
return 'ServerState(config=' + this.
|
|
3323
|
+
return 'ServerState(config=' + this.pd5_1.toString() + ')';
|
|
2902
3324
|
};
|
|
2903
3325
|
protoOf(ServerState).hashCode = function () {
|
|
2904
|
-
return this.
|
|
3326
|
+
return this.pd5_1.hashCode();
|
|
2905
3327
|
};
|
|
2906
3328
|
protoOf(ServerState).equals = function (other) {
|
|
2907
3329
|
if (this === other)
|
|
@@ -2909,13 +3331,13 @@
|
|
|
2909
3331
|
if (!(other instanceof ServerState))
|
|
2910
3332
|
return false;
|
|
2911
3333
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
2912
|
-
if (!this.
|
|
3334
|
+
if (!this.pd5_1.equals(tmp0_other_with_cast.pd5_1))
|
|
2913
3335
|
return false;
|
|
2914
3336
|
return true;
|
|
2915
3337
|
};
|
|
2916
3338
|
function get_serverState(_this__u8e3s4) {
|
|
2917
3339
|
// Inline function 'kotlin.requireNotNull' call
|
|
2918
|
-
var value = _this__u8e3s4.
|
|
3340
|
+
var value = _this__u8e3s4.d6w_1;
|
|
2919
3341
|
// Inline function 'kotlin.contracts.contract' call
|
|
2920
3342
|
var tmp$ret$1;
|
|
2921
3343
|
$l$block: {
|
|
@@ -2943,7 +3365,7 @@
|
|
|
2943
3365
|
}
|
|
2944
3366
|
function prepareConfigObjectInternal($this, map) {
|
|
2945
3367
|
var jsObject = {};
|
|
2946
|
-
var tmp = map.
|
|
3368
|
+
var tmp = map.g2('players');
|
|
2947
3369
|
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
2948
3370
|
var tmp_0;
|
|
2949
3371
|
if (tmp0_safe_receiver == null) {
|
|
@@ -2982,7 +3404,7 @@
|
|
|
2982
3404
|
tmp_1 = tmp_2;
|
|
2983
3405
|
}
|
|
2984
3406
|
var players = tmp_1;
|
|
2985
|
-
var tmp_3 = map.
|
|
3407
|
+
var tmp_3 = map.g2('points');
|
|
2986
3408
|
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
2987
3409
|
var tmp_4;
|
|
2988
3410
|
if (tmp2_safe_receiver == null) {
|
|
@@ -3021,7 +3443,7 @@
|
|
|
3021
3443
|
tmp_5 = tmp_6;
|
|
3022
3444
|
}
|
|
3023
3445
|
var points = tmp_5;
|
|
3024
|
-
var tmp_7 = map.
|
|
3446
|
+
var tmp_7 = map.g2('timeoutTime');
|
|
3025
3447
|
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
3026
3448
|
var tmp_8;
|
|
3027
3449
|
if (tmp4_safe_receiver == null) {
|
|
@@ -3060,7 +3482,7 @@
|
|
|
3060
3482
|
tmp_9 = tmp_10;
|
|
3061
3483
|
}
|
|
3062
3484
|
var timeoutTime = tmp_9;
|
|
3063
|
-
var tmp_11 = map.
|
|
3485
|
+
var tmp_11 = map.g2('rulesPreset');
|
|
3064
3486
|
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
3065
3487
|
var tmp_12;
|
|
3066
3488
|
if (tmp6_safe_receiver == null) {
|
|
@@ -3099,7 +3521,7 @@
|
|
|
3099
3521
|
tmp_13 = tmp_14;
|
|
3100
3522
|
}
|
|
3101
3523
|
var rulesPreset = tmp_13;
|
|
3102
|
-
var tmp_15 = map.
|
|
3524
|
+
var tmp_15 = map.g2('isChatEnabled');
|
|
3103
3525
|
var isChatEnabled = (!(tmp_15 == null) ? typeof tmp_15 === 'boolean' : false) ? tmp_15 : null;
|
|
3104
3526
|
var tmp_16;
|
|
3105
3527
|
if (players == null) {
|
|
@@ -3142,7 +3564,7 @@
|
|
|
3142
3564
|
while (tmp0_iterator.k()) {
|
|
3143
3565
|
var item = tmp0_iterator.l();
|
|
3144
3566
|
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3145
|
-
var tmp$ret$33 = item.
|
|
3567
|
+
var tmp$ret$33 = item.m2_1;
|
|
3146
3568
|
destination.e(tmp$ret$33);
|
|
3147
3569
|
}
|
|
3148
3570
|
tmp_19 = copyToArray(destination);
|
|
@@ -3154,7 +3576,7 @@
|
|
|
3154
3576
|
return jsObject;
|
|
3155
3577
|
}
|
|
3156
3578
|
function validateTimeoutTime($this, timeoutTime) {
|
|
3157
|
-
if (!
|
|
3579
|
+
if (!listOf([15, 30, 45]).s1(timeoutTime)) {
|
|
3158
3580
|
throw IllegalStateException_init_$Create$("Time out time allowed: 20, 40, 60, but it's " + timeoutTime);
|
|
3159
3581
|
}
|
|
3160
3582
|
}
|
|
@@ -3199,7 +3621,7 @@
|
|
|
3199
3621
|
while (tmp0_iterator.k()) {
|
|
3200
3622
|
var item = tmp0_iterator.l();
|
|
3201
3623
|
// Inline function 'GameHelperImpl.validateRulesSetType.<anonymous>' call
|
|
3202
|
-
var tmp$ret$0 = item.
|
|
3624
|
+
var tmp$ret$0 = item.m2_1;
|
|
3203
3625
|
destination.e(tmp$ret$0);
|
|
3204
3626
|
}
|
|
3205
3627
|
if (!destination.s1(rulesSetType)) {
|
|
@@ -3221,7 +3643,7 @@
|
|
|
3221
3643
|
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
3222
3644
|
var state = store.state;
|
|
3223
3645
|
var tmp;
|
|
3224
|
-
if (!state.
|
|
3646
|
+
if (!state.f6x()) {
|
|
3225
3647
|
tmp = true;
|
|
3226
3648
|
} else {
|
|
3227
3649
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3230,7 +3652,7 @@
|
|
|
3230
3652
|
if (tmp) {
|
|
3231
3653
|
return playerIds;
|
|
3232
3654
|
}
|
|
3233
|
-
var players = state.
|
|
3655
|
+
var players = state.e6x().players;
|
|
3234
3656
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3235
3657
|
// Inline function 'kotlin.collections.map' call
|
|
3236
3658
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3252,7 +3674,7 @@
|
|
|
3252
3674
|
while (tmp0_iterator.k()) {
|
|
3253
3675
|
var element = tmp0_iterator.l();
|
|
3254
3676
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3255
|
-
if (element.
|
|
3677
|
+
if (element.j73_1.z6g().q6f_1.isLive) {
|
|
3256
3678
|
destination_0.e(element);
|
|
3257
3679
|
}
|
|
3258
3680
|
}
|
|
@@ -3270,7 +3692,7 @@
|
|
|
3270
3692
|
protoOf(GameHelperImpl).filterLiveDuringGamePlayers = function (store, playerIds) {
|
|
3271
3693
|
var state = store.state;
|
|
3272
3694
|
var tmp;
|
|
3273
|
-
if (!state.
|
|
3695
|
+
if (!state.f6x()) {
|
|
3274
3696
|
tmp = true;
|
|
3275
3697
|
} else {
|
|
3276
3698
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3279,7 +3701,7 @@
|
|
|
3279
3701
|
if (tmp) {
|
|
3280
3702
|
return playerIds;
|
|
3281
3703
|
}
|
|
3282
|
-
var players = state.
|
|
3704
|
+
var players = state.e6x().players;
|
|
3283
3705
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3284
3706
|
// Inline function 'kotlin.collections.map' call
|
|
3285
3707
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3301,7 +3723,7 @@
|
|
|
3301
3723
|
while (tmp0_iterator.k()) {
|
|
3302
3724
|
var element = tmp0_iterator.l();
|
|
3303
3725
|
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3304
|
-
if (element.
|
|
3726
|
+
if (element.j73_1.z6g().b6g(state.e6x().gameDuration)) {
|
|
3305
3727
|
destination_0.e(element);
|
|
3306
3728
|
}
|
|
3307
3729
|
}
|
|
@@ -3319,7 +3741,7 @@
|
|
|
3319
3741
|
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
3320
3742
|
var state = store.state;
|
|
3321
3743
|
var tmp;
|
|
3322
|
-
if (!state.
|
|
3744
|
+
if (!state.f6x()) {
|
|
3323
3745
|
tmp = true;
|
|
3324
3746
|
} else {
|
|
3325
3747
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3328,7 +3750,7 @@
|
|
|
3328
3750
|
if (tmp) {
|
|
3329
3751
|
return playerIds;
|
|
3330
3752
|
}
|
|
3331
|
-
var players = state.
|
|
3753
|
+
var players = state.e6x().players;
|
|
3332
3754
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3333
3755
|
// Inline function 'kotlin.collections.map' call
|
|
3334
3756
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3350,7 +3772,7 @@
|
|
|
3350
3772
|
while (tmp0_iterator.k()) {
|
|
3351
3773
|
var element = tmp0_iterator.l();
|
|
3352
3774
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3353
|
-
if (element.
|
|
3775
|
+
if (element.i73_1.isBot) {
|
|
3354
3776
|
destination_0.e(element);
|
|
3355
3777
|
}
|
|
3356
3778
|
}
|
|
@@ -3368,7 +3790,7 @@
|
|
|
3368
3790
|
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
3369
3791
|
var state = store.state;
|
|
3370
3792
|
var tmp;
|
|
3371
|
-
if (!state.
|
|
3793
|
+
if (!state.f6x()) {
|
|
3372
3794
|
tmp = true;
|
|
3373
3795
|
} else {
|
|
3374
3796
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
@@ -3377,7 +3799,7 @@
|
|
|
3377
3799
|
if (tmp) {
|
|
3378
3800
|
return playerIds;
|
|
3379
3801
|
}
|
|
3380
|
-
var players = state.
|
|
3802
|
+
var players = state.e6x().players;
|
|
3381
3803
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3382
3804
|
// Inline function 'kotlin.collections.map' call
|
|
3383
3805
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3399,7 +3821,7 @@
|
|
|
3399
3821
|
while (tmp0_iterator.k()) {
|
|
3400
3822
|
var element = tmp0_iterator.l();
|
|
3401
3823
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3402
|
-
if (!element.
|
|
3824
|
+
if (!element.i73_1.isBot) {
|
|
3403
3825
|
destination_0.e(element);
|
|
3404
3826
|
}
|
|
3405
3827
|
}
|
|
@@ -3416,21 +3838,21 @@
|
|
|
3416
3838
|
};
|
|
3417
3839
|
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
3418
3840
|
var state = store.state;
|
|
3419
|
-
if (!state.
|
|
3841
|
+
if (!state.f6x()) {
|
|
3420
3842
|
return null;
|
|
3421
3843
|
}
|
|
3422
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.
|
|
3844
|
+
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.e6x().players, playerId).i73_1);
|
|
3423
3845
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3424
3846
|
};
|
|
3425
3847
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
3426
3848
|
var state = store.state;
|
|
3427
|
-
if (!state.
|
|
3849
|
+
if (!state.f6x()) {
|
|
3428
3850
|
return null;
|
|
3429
3851
|
}
|
|
3430
3852
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3431
3853
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3432
3854
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3433
|
-
var this_0 = state.
|
|
3855
|
+
var this_0 = state.e6x().players;
|
|
3434
3856
|
var destination = ArrayList_init_$Create$();
|
|
3435
3857
|
// Inline function 'kotlin.collections.forEach' call
|
|
3436
3858
|
var tmp0_iterator = this_0.j();
|
|
@@ -3438,7 +3860,7 @@
|
|
|
3438
3860
|
var element = tmp0_iterator.l();
|
|
3439
3861
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3440
3862
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
3441
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.
|
|
3863
|
+
var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.i73_1);
|
|
3442
3864
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3443
3865
|
if (tmp0_safe_receiver_0 == null)
|
|
3444
3866
|
null;
|
|
@@ -3511,31 +3933,31 @@
|
|
|
3511
3933
|
return rules instanceof Rules ? rules : THROW_CCE();
|
|
3512
3934
|
}
|
|
3513
3935
|
var map = mapOfObject(rules);
|
|
3514
|
-
var tmp = map.
|
|
3936
|
+
var tmp = map.g2('needToPutHigherTrump');
|
|
3515
3937
|
var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : null;
|
|
3516
|
-
var
|
|
3517
|
-
var tmp_0 = map.
|
|
3938
|
+
var tmp31_needToPutHigherTrump = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
3939
|
+
var tmp_0 = map.g2('playerWhoChooseSuitGoFirst');
|
|
3518
3940
|
var tmp1_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : null;
|
|
3519
|
-
var
|
|
3520
|
-
var tmp_1 = map.
|
|
3941
|
+
var tmp32_playerWhoChooseSuitGoFirst = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
3942
|
+
var tmp_1 = map.g2('winnerShuffleCards');
|
|
3521
3943
|
var tmp2_elvis_lhs = (!(tmp_1 == null) ? typeof tmp_1 === 'boolean' : false) ? tmp_1 : null;
|
|
3522
|
-
var
|
|
3523
|
-
var tmp_2 = map.
|
|
3944
|
+
var tmp33_winnerShuffleCards = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
3945
|
+
var tmp_2 = map.g2('playWithoutLiabilities');
|
|
3524
3946
|
var tmp3_elvis_lhs = (!(tmp_2 == null) ? typeof tmp_2 === 'boolean' : false) ? tmp_2 : null;
|
|
3525
|
-
var
|
|
3526
|
-
var tmp_3 = map.
|
|
3947
|
+
var tmp34_playWithoutLiabilities = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
3948
|
+
var tmp_3 = map.g2('trumpCardGoToPlayerWhoShuffleCards');
|
|
3527
3949
|
var tmp4_elvis_lhs = (!(tmp_3 == null) ? typeof tmp_3 === 'boolean' : false) ? tmp_3 : null;
|
|
3528
|
-
var
|
|
3529
|
-
var tmp_4 = map.
|
|
3950
|
+
var tmp35_trumpCardGoToPlayerWhoShuffleCards = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
3951
|
+
var tmp_4 = map.g2('dealerCounterClockwise');
|
|
3530
3952
|
var tmp5_elvis_lhs = (!(tmp_4 == null) ? typeof tmp_4 === 'boolean' : false) ? tmp_4 : null;
|
|
3531
|
-
var
|
|
3532
|
-
var tmp_5 = map.
|
|
3953
|
+
var tmp36_dealerCounterClockwise = tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs;
|
|
3954
|
+
var tmp_5 = map.g2('dealerInitialCardsCount');
|
|
3533
3955
|
var tmp6_elvis_lhs = (!(tmp_5 == null) ? typeof tmp_5 === 'number' : false) ? tmp_5 : null;
|
|
3534
|
-
var
|
|
3535
|
-
var tmp_6 = map.
|
|
3956
|
+
var tmp37_dealerInitialCardsCount = tmp6_elvis_lhs == null ? 6 : tmp6_elvis_lhs;
|
|
3957
|
+
var tmp_6 = map.g2('dealerFinalCardsCount');
|
|
3536
3958
|
var tmp7_elvis_lhs = (!(tmp_6 == null) ? typeof tmp_6 === 'number' : false) ? tmp_6 : null;
|
|
3537
|
-
var
|
|
3538
|
-
var tmp_7 = map.
|
|
3959
|
+
var tmp38_dealerFinalCardsCount = tmp7_elvis_lhs == null ? 9 : tmp7_elvis_lhs;
|
|
3960
|
+
var tmp_7 = map.g2('contractTypes');
|
|
3539
3961
|
var tmp8_safe_receiver = (!(tmp_7 == null) ? isArray(tmp_7) : false) ? tmp_7 : null;
|
|
3540
3962
|
var tmp_8;
|
|
3541
3963
|
if (tmp8_safe_receiver == null) {
|
|
@@ -3572,8 +3994,8 @@
|
|
|
3572
3994
|
} else {
|
|
3573
3995
|
tmp_10 = tmp10_elvis_lhs;
|
|
3574
3996
|
}
|
|
3575
|
-
var
|
|
3576
|
-
var tmp_11 = map.
|
|
3997
|
+
var tmp39_contractTypes = tmp_10;
|
|
3998
|
+
var tmp_11 = map.g2('bidTypes');
|
|
3577
3999
|
var tmp11_safe_receiver = (!(tmp_11 == null) ? isArray(tmp_11) : false) ? tmp_11 : null;
|
|
3578
4000
|
var tmp_12;
|
|
3579
4001
|
if (tmp11_safe_receiver == null) {
|
|
@@ -3609,8 +4031,8 @@
|
|
|
3609
4031
|
} else {
|
|
3610
4032
|
tmp_14 = tmp13_elvis_lhs;
|
|
3611
4033
|
}
|
|
3612
|
-
var
|
|
3613
|
-
var tmp_15 = map.
|
|
4034
|
+
var tmp40_bidTypes = tmp_14;
|
|
4035
|
+
var tmp_15 = map.g2('combinationsWithFirstCard');
|
|
3614
4036
|
var tmp14_safe_receiver = (!(tmp_15 == null) ? isArray(tmp_15) : false) ? tmp_15 : null;
|
|
3615
4037
|
var tmp_16;
|
|
3616
4038
|
if (tmp14_safe_receiver == null) {
|
|
@@ -3647,48 +4069,65 @@
|
|
|
3647
4069
|
} else {
|
|
3648
4070
|
tmp_18 = tmp16_elvis_lhs;
|
|
3649
4071
|
}
|
|
3650
|
-
var
|
|
3651
|
-
var tmp_19 = map.
|
|
4072
|
+
var tmp41_combinationsWithFirstCard = tmp_18;
|
|
4073
|
+
var tmp_19 = map.g2('protectBella');
|
|
3652
4074
|
var tmp17_elvis_lhs = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
|
|
3653
|
-
var
|
|
3654
|
-
var tmp_20 = map.
|
|
4075
|
+
var tmp42_protectBella = tmp17_elvis_lhs == null ? false : tmp17_elvis_lhs;
|
|
4076
|
+
var tmp_20 = map.g2('oneTryToProtectBella');
|
|
3655
4077
|
var tmp18_elvis_lhs = (!(tmp_20 == null) ? typeof tmp_20 === 'boolean' : false) ? tmp_20 : null;
|
|
3656
|
-
var
|
|
3657
|
-
var tmp_21 = map.
|
|
4078
|
+
var tmp43_oneTryToProtectBella = tmp18_elvis_lhs == null ? false : tmp18_elvis_lhs;
|
|
4079
|
+
var tmp_21 = map.g2('enableFourSevensCombination');
|
|
3658
4080
|
var tmp19_elvis_lhs = (!(tmp_21 == null) ? typeof tmp_21 === 'boolean' : false) ? tmp_21 : null;
|
|
3659
|
-
var
|
|
3660
|
-
var tmp_22 = map.
|
|
4081
|
+
var tmp44_enableFourSevensCombination = tmp19_elvis_lhs == null ? false : tmp19_elvis_lhs;
|
|
4082
|
+
var tmp_22 = map.g2('enableTrumpSevenCombination');
|
|
3661
4083
|
var tmp20_elvis_lhs = (!(tmp_22 == null) ? typeof tmp_22 === 'boolean' : false) ? tmp_22 : null;
|
|
3662
|
-
var
|
|
3663
|
-
var tmp_23 = map.
|
|
4084
|
+
var tmp45_enableTrumpSevenCombination = tmp20_elvis_lhs == null ? false : tmp20_elvis_lhs;
|
|
4085
|
+
var tmp_23 = map.g2('enableTrumpSevenCombinationAfterDistribution');
|
|
3664
4086
|
var tmp21_elvis_lhs = (!(tmp_23 == null) ? typeof tmp_23 === 'boolean' : false) ? tmp_23 : null;
|
|
3665
|
-
var
|
|
3666
|
-
var tmp_24 = map.
|
|
4087
|
+
var tmp46_enableTrumpSevenCombinationAfterDistribution = tmp21_elvis_lhs == null ? false : tmp21_elvis_lhs;
|
|
4088
|
+
var tmp_24 = map.g2('checkTrumpCombination');
|
|
3667
4089
|
var tmp22_elvis_lhs = (!(tmp_24 == null) ? typeof tmp_24 === 'boolean' : false) ? tmp_24 : null;
|
|
3668
|
-
var
|
|
3669
|
-
var tmp_25 = map.
|
|
4090
|
+
var tmp47_checkTrumpCombination = tmp22_elvis_lhs == null ? false : tmp22_elvis_lhs;
|
|
4091
|
+
var tmp_25 = map.g2('checkOnlyTrumpDebertz');
|
|
3670
4092
|
var tmp23_elvis_lhs = (!(tmp_25 == null) ? typeof tmp_25 === 'boolean' : false) ? tmp_25 : null;
|
|
3671
|
-
var
|
|
3672
|
-
var tmp_26 = map.
|
|
4093
|
+
var tmp48_checkOnlyTrumpDebertz = tmp23_elvis_lhs == null ? false : tmp23_elvis_lhs;
|
|
4094
|
+
var tmp_26 = map.g2('distributePoints');
|
|
3673
4095
|
var tmp24_elvis_lhs = (!(tmp_26 == null) ? typeof tmp_26 === 'boolean' : false) ? tmp_26 : null;
|
|
3674
|
-
var
|
|
3675
|
-
var tmp_27 = map.
|
|
3676
|
-
var
|
|
3677
|
-
var
|
|
3678
|
-
var tmp_28
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
4096
|
+
var tmp49_distributePoints = tmp24_elvis_lhs == null ? false : tmp24_elvis_lhs;
|
|
4097
|
+
var tmp_27 = map.g2('pointsDistributeMode');
|
|
4098
|
+
var tmp25_safe_receiver = (!(tmp_27 == null) ? typeof tmp_27 === 'string' : false) ? tmp_27 : null;
|
|
4099
|
+
var tmp26_elvis_lhs = tmp25_safe_receiver == null ? null : toPointsDistributeMode(tmp25_safe_receiver);
|
|
4100
|
+
var tmp_28;
|
|
4101
|
+
if (tmp26_elvis_lhs == null) {
|
|
4102
|
+
var tmp_29;
|
|
4103
|
+
var tmp_30 = map.g2('distributePoints');
|
|
4104
|
+
if (((!(tmp_30 == null) ? typeof tmp_30 === 'boolean' : false) ? tmp_30 : null) === true) {
|
|
4105
|
+
tmp_29 = PointsDistributeMode_ALL_getInstance();
|
|
4106
|
+
} else {
|
|
4107
|
+
tmp_29 = PointsDistributeMode_HIGHEST_PLAYER_getInstance();
|
|
4108
|
+
}
|
|
4109
|
+
tmp_28 = tmp_29;
|
|
4110
|
+
} else {
|
|
4111
|
+
tmp_28 = tmp26_elvis_lhs;
|
|
4112
|
+
}
|
|
4113
|
+
var tmp50_pointsDistributeMode = tmp_28;
|
|
4114
|
+
var tmp_31 = map.g2('enableFineIfNoBribes');
|
|
4115
|
+
var tmp27_elvis_lhs = (!(tmp_31 == null) ? typeof tmp_31 === 'boolean' : false) ? tmp_31 : null;
|
|
4116
|
+
var tmp51_enableFineIfNoBribes = tmp27_elvis_lhs == null ? false : tmp27_elvis_lhs;
|
|
4117
|
+
var tmp_32 = map.g2('fineIfNoBribes');
|
|
4118
|
+
var tmp28_elvis_lhs = (!(tmp_32 == null) ? typeof tmp_32 === 'number' : false) ? tmp_32 : null;
|
|
4119
|
+
var tmp52_fineIfNoBribes = tmp28_elvis_lhs == null ? 50 : tmp28_elvis_lhs;
|
|
4120
|
+
var tmp_33 = map.g2('enableFineAfterThirdByte');
|
|
4121
|
+
var tmp29_elvis_lhs = (!(tmp_33 == null) ? typeof tmp_33 === 'boolean' : false) ? tmp_33 : null;
|
|
4122
|
+
var tmp53_enableFineAfterThirdFailedContract = tmp29_elvis_lhs == null ? false : tmp29_elvis_lhs;
|
|
4123
|
+
var tmp_34 = map.g2('fineAfterThirdFailedContract');
|
|
4124
|
+
var tmp30_elvis_lhs = (!(tmp_34 == null) ? typeof tmp_34 === 'number' : false) ? tmp_34 : null;
|
|
4125
|
+
var tmp54_fineAfterThirdFailedContract = tmp30_elvis_lhs == null ? 100 : tmp30_elvis_lhs;
|
|
4126
|
+
return new Rules(tmp31_needToPutHigherTrump, tmp32_playerWhoChooseSuitGoFirst, tmp33_winnerShuffleCards, tmp34_playWithoutLiabilities, tmp35_trumpCardGoToPlayerWhoShuffleCards, tmp37_dealerInitialCardsCount, tmp38_dealerFinalCardsCount, tmp36_dealerCounterClockwise, tmp39_contractTypes, tmp40_bidTypes, tmp41_combinationsWithFirstCard, tmp42_protectBella, tmp43_oneTryToProtectBella, tmp44_enableFourSevensCombination, tmp45_enableTrumpSevenCombination, tmp46_enableTrumpSevenCombinationAfterDistribution, tmp47_checkTrumpCombination, tmp48_checkOnlyTrumpDebertz, tmp49_distributePoints, tmp50_pointsDistributeMode, tmp53_enableFineAfterThirdFailedContract, tmp54_fineAfterThirdFailedContract, tmp51_enableFineIfNoBribes, tmp52_fineIfNoBribes);
|
|
3688
4127
|
};
|
|
3689
4128
|
protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
|
|
3690
4129
|
var map = mapOfObject(config);
|
|
3691
|
-
var tmp = map.
|
|
4130
|
+
var tmp = map.g2('limit');
|
|
3692
4131
|
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
3693
4132
|
var tmp_0;
|
|
3694
4133
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3711,7 +4150,7 @@
|
|
|
3711
4150
|
};
|
|
3712
4151
|
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
3713
4152
|
var map = mapOfObject(config);
|
|
3714
|
-
var rules = map.
|
|
4153
|
+
var rules = map.g2('rules');
|
|
3715
4154
|
var tmp = getValue(map, 'players');
|
|
3716
4155
|
var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
|
|
3717
4156
|
var tmp_1 = getValue(map, 'points');
|
|
@@ -3738,7 +4177,7 @@
|
|
|
3738
4177
|
};
|
|
3739
4178
|
protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
|
|
3740
4179
|
var tmp;
|
|
3741
|
-
switch (rulesSetType.
|
|
4180
|
+
switch (rulesSetType.n2_1) {
|
|
3742
4181
|
case 0:
|
|
3743
4182
|
tmp = Companion_instance_2.belot();
|
|
3744
4183
|
break;
|
|
@@ -3832,42 +4271,42 @@
|
|
|
3832
4271
|
return data;
|
|
3833
4272
|
}
|
|
3834
4273
|
function getRandomAvatarData_0($this) {
|
|
3835
|
-
var avatarSetNumber = Default_getInstance().
|
|
4274
|
+
var avatarSetNumber = Default_getInstance().og(values().length);
|
|
3836
4275
|
var avatarSet = values()[avatarSetNumber];
|
|
3837
|
-
return new AvatarData(Default_getInstance().
|
|
4276
|
+
return new AvatarData(Default_getInstance().og(avatarSet.mda()), avatarSet);
|
|
3838
4277
|
}
|
|
3839
4278
|
function getAvatarUrlByIndex($this, data) {
|
|
3840
4279
|
return mapToPattern($this, data);
|
|
3841
4280
|
}
|
|
3842
4281
|
function getNicknameByIndex($this, data) {
|
|
3843
|
-
return data.
|
|
4282
|
+
return data.oda_1.pda(data.nda_1);
|
|
3844
4283
|
}
|
|
3845
4284
|
function mapToPattern($this, data) {
|
|
3846
|
-
return 'debertz://raspberry.games/' + data.
|
|
4285
|
+
return 'debertz://raspberry.games/' + data.oda_1.n2_1 + '/' + data.nda_1;
|
|
3847
4286
|
}
|
|
3848
4287
|
function Companion_2() {
|
|
3849
4288
|
Companion_instance_10 = this;
|
|
3850
|
-
this.
|
|
4289
|
+
this.qda_1 = 'debertz://raspberry.games';
|
|
3851
4290
|
var tmp = this;
|
|
3852
4291
|
// Inline function 'kotlin.arrayOf' call
|
|
3853
4292
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3854
4293
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3855
|
-
tmp.
|
|
4294
|
+
tmp.rda_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
3856
4295
|
var tmp_0 = this;
|
|
3857
4296
|
// Inline function 'kotlin.arrayOf' call
|
|
3858
4297
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3859
4298
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3860
|
-
tmp_0.
|
|
4299
|
+
tmp_0.sda_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
3861
4300
|
var tmp_1 = this;
|
|
3862
4301
|
// Inline function 'kotlin.arrayOf' call
|
|
3863
4302
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3864
4303
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3865
|
-
tmp_1.
|
|
4304
|
+
tmp_1.tda_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
3866
4305
|
var tmp_2 = this;
|
|
3867
4306
|
// Inline function 'kotlin.arrayOf' call
|
|
3868
4307
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3869
4308
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3870
|
-
tmp_2.
|
|
4309
|
+
tmp_2.uda_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
3871
4310
|
}
|
|
3872
4311
|
var Companion_instance_10;
|
|
3873
4312
|
function Companion_getInstance_5() {
|
|
@@ -3878,14 +4317,14 @@
|
|
|
3878
4317
|
function AvatarSet(name, ordinal) {
|
|
3879
4318
|
Enum.call(this, name, ordinal);
|
|
3880
4319
|
}
|
|
3881
|
-
protoOf(AvatarSet).
|
|
4320
|
+
protoOf(AvatarSet).mda = function () {
|
|
3882
4321
|
var tmp;
|
|
3883
|
-
switch (this.
|
|
4322
|
+
switch (this.n2_1) {
|
|
3884
4323
|
case 0:
|
|
3885
|
-
tmp = Companion_getInstance_5().
|
|
4324
|
+
tmp = Companion_getInstance_5().sda_1.length;
|
|
3886
4325
|
break;
|
|
3887
4326
|
case 1:
|
|
3888
|
-
tmp = Companion_getInstance_5().
|
|
4327
|
+
tmp = Companion_getInstance_5().uda_1.length;
|
|
3889
4328
|
break;
|
|
3890
4329
|
default:
|
|
3891
4330
|
noWhenBranchMatchedException();
|
|
@@ -3893,14 +4332,14 @@
|
|
|
3893
4332
|
}
|
|
3894
4333
|
return tmp;
|
|
3895
4334
|
};
|
|
3896
|
-
protoOf(AvatarSet).
|
|
4335
|
+
protoOf(AvatarSet).pda = function (index) {
|
|
3897
4336
|
var tmp;
|
|
3898
|
-
switch (this.
|
|
4337
|
+
switch (this.n2_1) {
|
|
3899
4338
|
case 0:
|
|
3900
|
-
tmp = Companion_getInstance_5().
|
|
4339
|
+
tmp = Companion_getInstance_5().sda_1[index];
|
|
3901
4340
|
break;
|
|
3902
4341
|
case 1:
|
|
3903
|
-
tmp = Companion_getInstance_5().
|
|
4342
|
+
tmp = Companion_getInstance_5().uda_1[index];
|
|
3904
4343
|
break;
|
|
3905
4344
|
default:
|
|
3906
4345
|
noWhenBranchMatchedException();
|
|
@@ -3909,8 +4348,8 @@
|
|
|
3909
4348
|
return tmp;
|
|
3910
4349
|
};
|
|
3911
4350
|
function AvatarData(index, avatarSet) {
|
|
3912
|
-
this.
|
|
3913
|
-
this.
|
|
4351
|
+
this.nda_1 = index;
|
|
4352
|
+
this.oda_1 = avatarSet;
|
|
3914
4353
|
}
|
|
3915
4354
|
function AvatarSet_ORIGIN_getInstance() {
|
|
3916
4355
|
AvatarSet_initEntries();
|
|
@@ -3923,7 +4362,7 @@
|
|
|
3923
4362
|
function GameResourcesImpl() {
|
|
3924
4363
|
Companion_getInstance_5();
|
|
3925
4364
|
}
|
|
3926
|
-
protoOf(GameResourcesImpl).
|
|
4365
|
+
protoOf(GameResourcesImpl).jda = function (playerId, existingNicknames) {
|
|
3927
4366
|
var data = getRandomAvatarData(this, existingNicknames);
|
|
3928
4367
|
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
3929
4368
|
};
|
|
@@ -3961,30 +4400,30 @@
|
|
|
3961
4400
|
}
|
|
3962
4401
|
function _get_controllerLogger__nbd727($this) {
|
|
3963
4402
|
// Inline function 'kotlin.getValue' call
|
|
3964
|
-
var this_0 = $this.
|
|
4403
|
+
var this_0 = $this.cdb_1;
|
|
3965
4404
|
controllerLogger$factory();
|
|
3966
4405
|
return this_0.u();
|
|
3967
4406
|
}
|
|
3968
4407
|
function _get_di__ndbzja($this) {
|
|
3969
4408
|
// Inline function 'kotlin.getValue' call
|
|
3970
|
-
var this_0 = $this.
|
|
4409
|
+
var this_0 = $this.ddb_1;
|
|
3971
4410
|
di$factory();
|
|
3972
4411
|
return this_0.u();
|
|
3973
4412
|
}
|
|
3974
4413
|
function createDI($this, combinedLogger, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
3975
4414
|
var tmp = Companion_instance_3;
|
|
3976
|
-
return tmp.
|
|
4415
|
+
return tmp.a62(VOID, GameServerEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, $this, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
3977
4416
|
}
|
|
3978
4417
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
3979
4418
|
return function () {
|
|
3980
4419
|
var tmp;
|
|
3981
|
-
if (this$0.
|
|
4420
|
+
if (this$0.adb_1 == null) {
|
|
3982
4421
|
tmp = null;
|
|
3983
4422
|
} else {
|
|
3984
4423
|
// Inline function 'kotlin.let' call
|
|
3985
4424
|
// Inline function 'kotlin.contracts.contract' call
|
|
3986
4425
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
3987
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
4426
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.adb_1)]));
|
|
3988
4427
|
}
|
|
3989
4428
|
var tmp1_elvis_lhs = tmp;
|
|
3990
4429
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4001,38 +4440,38 @@
|
|
|
4001
4440
|
// Inline function 'org.kodein.type.generic' call
|
|
4002
4441
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4003
4442
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4004
|
-
var tmp_0 = $this$DI.
|
|
4443
|
+
var tmp_0 = $this$DI.r61(tmp$ret$0, null, null);
|
|
4005
4444
|
// Inline function 'org.kodein.di.provider' call
|
|
4006
4445
|
var creator = GameServerEngineControllerImpl$di$delegate$lambda$lambda$lambda(this$0);
|
|
4007
|
-
var tmp_1 = $this$DI.
|
|
4446
|
+
var tmp_1 = $this$DI.u61();
|
|
4008
4447
|
// Inline function 'org.kodein.type.generic' call
|
|
4009
4448
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4010
4449
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4011
4450
|
var tmp$ret$3 = new Provider(tmp_1, tmp$ret$2, creator);
|
|
4012
|
-
tmp_0.
|
|
4013
|
-
$this$DI.
|
|
4014
|
-
$this$DI.
|
|
4015
|
-
$this$DI.
|
|
4451
|
+
tmp_0.p65(tmp$ret$3);
|
|
4452
|
+
$this$DI.t61(jsonModule());
|
|
4453
|
+
$this$DI.t61(serverHelpersModule());
|
|
4454
|
+
$this$DI.t61(randomOrgModule(this$0.bdb_1));
|
|
4016
4455
|
return Unit_instance;
|
|
4017
4456
|
};
|
|
4018
4457
|
}
|
|
4019
4458
|
function GameServerEngineControllerImpl$di$delegate$lambda(this$0) {
|
|
4020
4459
|
return function () {
|
|
4021
4460
|
var tmp = Companion_instance_3;
|
|
4022
|
-
return tmp.
|
|
4461
|
+
return tmp.a62(VOID, GameServerEngineControllerImpl$di$delegate$lambda$lambda(this$0));
|
|
4023
4462
|
};
|
|
4024
4463
|
}
|
|
4025
|
-
function
|
|
4026
|
-
this.
|
|
4464
|
+
function _no_name_provided__qut3iv_4($item) {
|
|
4465
|
+
this.jdb_1 = $item;
|
|
4027
4466
|
}
|
|
4028
|
-
protoOf(
|
|
4467
|
+
protoOf(_no_name_provided__qut3iv_4).b6o = function (action) {
|
|
4029
4468
|
return isInterface(action, Action);
|
|
4030
4469
|
};
|
|
4031
|
-
protoOf(
|
|
4032
|
-
return this.
|
|
4470
|
+
protoOf(_no_name_provided__qut3iv_4).o9h = function (state, action) {
|
|
4471
|
+
return this.jdb_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4033
4472
|
};
|
|
4034
|
-
protoOf(
|
|
4035
|
-
return this.
|
|
4473
|
+
protoOf(_no_name_provided__qut3iv_4).t6p = function (state, action) {
|
|
4474
|
+
return this.o9h((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4036
4475
|
};
|
|
4037
4476
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4038
4477
|
return function ($this$singleton) {
|
|
@@ -4052,17 +4491,17 @@
|
|
|
4052
4491
|
// Inline function 'org.kodein.type.generic' call
|
|
4053
4492
|
var tmp_0 = typeToken(createKType(getKClass(FileLoggerOutput), arrayOf([]), false));
|
|
4054
4493
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4055
|
-
var tmp_1 = $this$Module.
|
|
4494
|
+
var tmp_1 = $this$Module.r61(tmp$ret$0, null, null);
|
|
4056
4495
|
// Inline function 'org.kodein.di.singleton' call
|
|
4057
4496
|
var creator = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput);
|
|
4058
|
-
var tmp_2 = $this$Module.
|
|
4059
|
-
var tmp_3 = $this$Module.
|
|
4060
|
-
var tmp_4 = $this$Module.
|
|
4497
|
+
var tmp_2 = $this$Module.w61();
|
|
4498
|
+
var tmp_3 = $this$Module.u61();
|
|
4499
|
+
var tmp_4 = $this$Module.v61();
|
|
4061
4500
|
// Inline function 'org.kodein.type.generic' call
|
|
4062
4501
|
var tmp_5 = typeToken(createKType(getKClass(FileLoggerOutputImpl), arrayOf([]), false));
|
|
4063
4502
|
var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4064
4503
|
var tmp$ret$3 = new Singleton(tmp_2, tmp_3, tmp_4, tmp$ret$2, null, true, creator);
|
|
4065
|
-
tmp_1.
|
|
4504
|
+
tmp_1.p65(tmp$ret$3);
|
|
4066
4505
|
tmp = Unit_instance;
|
|
4067
4506
|
}
|
|
4068
4507
|
var tmp_6;
|
|
@@ -4071,17 +4510,17 @@
|
|
|
4071
4510
|
// Inline function 'org.kodein.type.generic' call
|
|
4072
4511
|
var tmp_7 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4073
4512
|
var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE();
|
|
4074
|
-
var tmp_8 = $this$Module.
|
|
4513
|
+
var tmp_8 = $this$Module.r61(tmp$ret$4, null, null);
|
|
4075
4514
|
// Inline function 'org.kodein.di.singleton' call
|
|
4076
4515
|
var creator_0 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda_0($callbackWrapperLoggerOutput);
|
|
4077
|
-
var tmp_9 = $this$Module.
|
|
4078
|
-
var tmp_10 = $this$Module.
|
|
4079
|
-
var tmp_11 = $this$Module.
|
|
4516
|
+
var tmp_9 = $this$Module.w61();
|
|
4517
|
+
var tmp_10 = $this$Module.u61();
|
|
4518
|
+
var tmp_11 = $this$Module.v61();
|
|
4080
4519
|
// Inline function 'org.kodein.type.generic' call
|
|
4081
4520
|
var tmp_12 = typeToken(createKType(getKClass(CallbackWrapperLoggerOutput), arrayOf([]), false));
|
|
4082
4521
|
var tmp$ret$6 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
4083
4522
|
var tmp$ret$7 = new Singleton(tmp_9, tmp_10, tmp_11, tmp$ret$6, null, true, creator_0);
|
|
4084
|
-
tmp_8.
|
|
4523
|
+
tmp_8.p65(tmp$ret$7);
|
|
4085
4524
|
tmp_6 = Unit_instance;
|
|
4086
4525
|
}
|
|
4087
4526
|
return Unit_instance;
|
|
@@ -4089,10 +4528,10 @@
|
|
|
4089
4528
|
}
|
|
4090
4529
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4091
4530
|
return function (it) {
|
|
4092
|
-
var tmp0_elvis_lhs = Companion_instance_4.
|
|
4531
|
+
var tmp0_elvis_lhs = Companion_instance_4.k9m(it);
|
|
4093
4532
|
var tmp;
|
|
4094
4533
|
if (tmp0_elvis_lhs == null) {
|
|
4095
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4534
|
+
var tmp1_safe_receiver = $gameServer.w6e().c6w_1;
|
|
4096
4535
|
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
4097
4536
|
} else {
|
|
4098
4537
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4102,10 +4541,10 @@
|
|
|
4102
4541
|
}
|
|
4103
4542
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4104
4543
|
return function (it) {
|
|
4105
|
-
var tmp0_elvis_lhs = Companion_instance_5.
|
|
4544
|
+
var tmp0_elvis_lhs = Companion_instance_5.v9k(it);
|
|
4106
4545
|
var tmp;
|
|
4107
4546
|
if (tmp0_elvis_lhs == null) {
|
|
4108
|
-
var tmp1_safe_receiver = $gameServer.
|
|
4547
|
+
var tmp1_safe_receiver = $gameServer.w6e().c6w_1;
|
|
4109
4548
|
tmp = tmp1_safe_receiver == null ? null : toLoggerPayload(tmp1_safe_receiver);
|
|
4110
4549
|
} else {
|
|
4111
4550
|
tmp = tmp0_elvis_lhs;
|
|
@@ -4115,105 +4554,105 @@
|
|
|
4115
4554
|
}
|
|
4116
4555
|
function GameServerEngineControllerImpl$createDI$lambda($combinedLogger, $externalModule, this$0, $coreConfig, $serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares) {
|
|
4117
4556
|
return function ($this$DI) {
|
|
4118
|
-
$this$DI.
|
|
4557
|
+
$this$DI.t61(combinedLoggerModule($combinedLogger));
|
|
4119
4558
|
var tmp0_safe_receiver = $externalModule;
|
|
4120
4559
|
if (tmp0_safe_receiver == null)
|
|
4121
4560
|
null;
|
|
4122
4561
|
else {
|
|
4123
4562
|
// Inline function 'kotlin.let' call
|
|
4124
4563
|
// Inline function 'kotlin.contracts.contract' call
|
|
4125
|
-
$this$DI.
|
|
4564
|
+
$this$DI.t61(tmp0_safe_receiver);
|
|
4126
4565
|
}
|
|
4127
|
-
$this$DI.
|
|
4128
|
-
$this$DI.
|
|
4129
|
-
$this$DI.
|
|
4566
|
+
$this$DI.t61(dealerModule(this$0.randomPoolProvider, this$0.bdb_1));
|
|
4567
|
+
$this$DI.t61(coreModule($coreConfig));
|
|
4568
|
+
$this$DI.t61(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4130
4569
|
return Unit_instance;
|
|
4131
4570
|
};
|
|
4132
4571
|
}
|
|
4133
4572
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4134
4573
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4135
4574
|
production = production === VOID ? true : production;
|
|
4136
|
-
this.
|
|
4137
|
-
this.
|
|
4138
|
-
AppEnvironment_getInstance().
|
|
4575
|
+
this.adb_1 = loggerCallback;
|
|
4576
|
+
this.bdb_1 = randomOrgConfig;
|
|
4577
|
+
AppEnvironment_getInstance().k6v(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4139
4578
|
var tmp = this;
|
|
4140
|
-
tmp.
|
|
4579
|
+
tmp.cdb_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4141
4580
|
var tmp_0 = this;
|
|
4142
|
-
tmp_0.
|
|
4581
|
+
tmp_0.ddb_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4143
4582
|
var tmp_1 = this;
|
|
4144
4583
|
// Inline function 'org.kodein.di.instance' call
|
|
4145
4584
|
var this_0 = _get_di__ndbzja(this);
|
|
4146
4585
|
// Inline function 'org.kodein.type.generic' call
|
|
4147
4586
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4148
4587
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4149
|
-
tmp_1.
|
|
4588
|
+
tmp_1.edb_1 = Instance(this_0, tmp$ret$0, null).m67(this, parser$factory());
|
|
4150
4589
|
var tmp_3 = this;
|
|
4151
4590
|
// Inline function 'org.kodein.di.instance' call
|
|
4152
4591
|
var this_1 = _get_di__ndbzja(this);
|
|
4153
4592
|
// Inline function 'org.kodein.type.generic' call
|
|
4154
4593
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4155
4594
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4156
|
-
tmp_3.
|
|
4595
|
+
tmp_3.fdb_1 = Instance(this_1, tmp$ret$2, null).m67(this, helper$factory());
|
|
4157
4596
|
var tmp_5 = this;
|
|
4158
4597
|
// Inline function 'org.kodein.di.instance' call
|
|
4159
4598
|
var this_2 = _get_di__ndbzja(this);
|
|
4160
4599
|
// Inline function 'org.kodein.type.generic' call
|
|
4161
4600
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4162
4601
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4163
|
-
tmp_5.
|
|
4602
|
+
tmp_5.gdb_1 = Instance(this_2, tmp$ret$4, null).m67(this, resources$factory());
|
|
4164
4603
|
var tmp_7 = this;
|
|
4165
4604
|
// Inline function 'org.kodein.di.instance' call
|
|
4166
4605
|
var this_3 = _get_di__ndbzja(this);
|
|
4167
4606
|
// Inline function 'org.kodein.type.generic' call
|
|
4168
4607
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4169
4608
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4170
|
-
tmp_7.
|
|
4609
|
+
tmp_7.hdb_1 = Instance(this_3, tmp$ret$6, null).m67(this, test$factory());
|
|
4171
4610
|
var tmp_9 = this;
|
|
4172
4611
|
// Inline function 'org.kodein.di.instance' call
|
|
4173
4612
|
var this_4 = _get_di__ndbzja(this);
|
|
4174
4613
|
// Inline function 'org.kodein.type.generic' call
|
|
4175
4614
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4176
4615
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4177
|
-
tmp_9.
|
|
4616
|
+
tmp_9.idb_1 = Instance(this_4, tmp$ret$8, null).m67(this, randomPoolProvider$factory());
|
|
4178
4617
|
}
|
|
4179
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4618
|
+
protoOf(GameServerEngineControllerImpl).scy = function () {
|
|
4180
4619
|
// Inline function 'kotlin.getValue' call
|
|
4181
|
-
var this_0 = this.
|
|
4620
|
+
var this_0 = this.edb_1;
|
|
4182
4621
|
parser$factory_0();
|
|
4183
4622
|
return this_0.u();
|
|
4184
4623
|
};
|
|
4185
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4624
|
+
protoOf(GameServerEngineControllerImpl).wda = function () {
|
|
4186
4625
|
// Inline function 'kotlin.getValue' call
|
|
4187
|
-
var this_0 = this.
|
|
4626
|
+
var this_0 = this.fdb_1;
|
|
4188
4627
|
helper$factory_0();
|
|
4189
4628
|
return this_0.u();
|
|
4190
4629
|
};
|
|
4191
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4630
|
+
protoOf(GameServerEngineControllerImpl).xda = function () {
|
|
4192
4631
|
// Inline function 'kotlin.getValue' call
|
|
4193
|
-
var this_0 = this.
|
|
4632
|
+
var this_0 = this.gdb_1;
|
|
4194
4633
|
resources$factory_0();
|
|
4195
4634
|
return this_0.u();
|
|
4196
4635
|
};
|
|
4197
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4636
|
+
protoOf(GameServerEngineControllerImpl).vda = function () {
|
|
4198
4637
|
// Inline function 'kotlin.getValue' call
|
|
4199
|
-
var this_0 = this.
|
|
4638
|
+
var this_0 = this.hdb_1;
|
|
4200
4639
|
test$factory_0();
|
|
4201
4640
|
return this_0.u();
|
|
4202
4641
|
};
|
|
4203
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4642
|
+
protoOf(GameServerEngineControllerImpl).yda = function () {
|
|
4204
4643
|
// Inline function 'kotlin.getValue' call
|
|
4205
|
-
var this_0 = this.
|
|
4644
|
+
var this_0 = this.idb_1;
|
|
4206
4645
|
randomPoolProvider$factory_0();
|
|
4207
4646
|
return this_0.u();
|
|
4208
4647
|
};
|
|
4209
4648
|
protoOf(GameServerEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
4210
|
-
Logger_getInstance().
|
|
4649
|
+
Logger_getInstance().cn_1 = enabled;
|
|
4211
4650
|
};
|
|
4212
4651
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4213
4652
|
return this.createGameEngineWithLogic();
|
|
4214
4653
|
};
|
|
4215
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4216
|
-
var combinedLogger = Companion_instance_6.
|
|
4654
|
+
protoOf(GameServerEngineControllerImpl).zda = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
4655
|
+
var combinedLogger = Companion_instance_6.qm();
|
|
4217
4656
|
var tmp;
|
|
4218
4657
|
if (coreConfig.fileLogsEnabled) {
|
|
4219
4658
|
tmp = new FileLoggerOutputImpl();
|
|
@@ -4222,8 +4661,8 @@
|
|
|
4222
4661
|
}
|
|
4223
4662
|
var fileLoggerOutput = tmp;
|
|
4224
4663
|
var tmp_0;
|
|
4225
|
-
if (!(this.
|
|
4226
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
4664
|
+
if (!(this.adb_1 == null)) {
|
|
4665
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.adb_1));
|
|
4227
4666
|
} else {
|
|
4228
4667
|
tmp_0 = null;
|
|
4229
4668
|
}
|
|
@@ -4239,7 +4678,7 @@
|
|
|
4239
4678
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4240
4679
|
// Inline function 'GameServerEngineControllerImpl.createGameEngineWithLogic.<anonymous>' call
|
|
4241
4680
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
4242
|
-
var tmp$ret$1 = new
|
|
4681
|
+
var tmp$ret$1 = new _no_name_provided__qut3iv_4(item);
|
|
4243
4682
|
destination.e(tmp$ret$1);
|
|
4244
4683
|
}
|
|
4245
4684
|
var tmp1_externalReducers = toList_0(destination);
|
|
@@ -4259,20 +4698,20 @@
|
|
|
4259
4698
|
var tmp3_externalModule = Module_init_$Create$('External Module', VOID, VOID, GameServerEngineControllerImpl$createGameEngineWithLogic$lambda(fileLoggerOutput, callbackWrapperLoggerOutput));
|
|
4260
4699
|
var di = createDI(this, combinedLogger, coreConfig, serverConfig, logicConfig, tmp0_botConfig, dealerConfig, tmp1_externalReducers, tmp2_externalMiddlewares, tmp3_externalModule);
|
|
4261
4700
|
// Inline function 'org.kodein.di.instance' call
|
|
4262
|
-
var tmp_1 = get_direct(di).
|
|
4701
|
+
var tmp_1 = get_direct(di).e63();
|
|
4263
4702
|
// Inline function 'org.kodein.type.generic' call
|
|
4264
4703
|
var tmp_2 = typeToken(createKType(getKClass(GameServer), arrayOf([]), false));
|
|
4265
4704
|
var tmp$ret$7 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4266
|
-
var gameServer = tmp_1.
|
|
4705
|
+
var gameServer = tmp_1.d63(tmp$ret$7, null);
|
|
4267
4706
|
if (!(fileLoggerOutput == null)) {
|
|
4268
4707
|
var tmp_3 = fileLoggerOutput;
|
|
4269
|
-
tmp_3.
|
|
4270
|
-
combinedLogger.
|
|
4708
|
+
tmp_3.z9l_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4709
|
+
combinedLogger.sm(fileLoggerOutput);
|
|
4271
4710
|
}
|
|
4272
4711
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4273
4712
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4274
|
-
tmp_4.
|
|
4275
|
-
combinedLogger.
|
|
4713
|
+
tmp_4.x9k_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4714
|
+
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
4276
4715
|
}
|
|
4277
4716
|
return gameServer;
|
|
4278
4717
|
};
|
|
@@ -4381,13 +4820,13 @@
|
|
|
4381
4820
|
}
|
|
4382
4821
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4383
4822
|
// Inline function 'kotlin.getValue' call
|
|
4384
|
-
var this_0 = $this.
|
|
4823
|
+
var this_0 = $this.mdb_1;
|
|
4385
4824
|
playerAnswerInteractor$factory_0();
|
|
4386
4825
|
return this_0.u();
|
|
4387
4826
|
}
|
|
4388
4827
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4389
4828
|
return function ($this$singleton) {
|
|
4390
|
-
return this$0.
|
|
4829
|
+
return this$0.kdb_1;
|
|
4391
4830
|
};
|
|
4392
4831
|
}
|
|
4393
4832
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4396,19 +4835,19 @@
|
|
|
4396
4835
|
// Inline function 'org.kodein.type.generic' call
|
|
4397
4836
|
var tmp = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4398
4837
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4399
|
-
var tmp_0 = $this$DI.
|
|
4838
|
+
var tmp_0 = $this$DI.r61(tmp$ret$0, null, null);
|
|
4400
4839
|
// Inline function 'org.kodein.di.singleton' call
|
|
4401
4840
|
var creator = TestHelperImpl$di$lambda$lambda(this$0);
|
|
4402
|
-
var tmp_1 = $this$DI.
|
|
4403
|
-
var tmp_2 = $this$DI.
|
|
4404
|
-
var tmp_3 = $this$DI.
|
|
4841
|
+
var tmp_1 = $this$DI.w61();
|
|
4842
|
+
var tmp_2 = $this$DI.u61();
|
|
4843
|
+
var tmp_3 = $this$DI.v61();
|
|
4405
4844
|
// Inline function 'org.kodein.type.generic' call
|
|
4406
4845
|
var tmp_4 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4407
4846
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4408
4847
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
4409
|
-
tmp_0.
|
|
4410
|
-
$this$DI.
|
|
4411
|
-
$this$DI.
|
|
4848
|
+
tmp_0.p65(tmp$ret$3);
|
|
4849
|
+
$this$DI.t61(jsonModule(emptyList()));
|
|
4850
|
+
$this$DI.t61(get_botGameModule());
|
|
4412
4851
|
return Unit_instance;
|
|
4413
4852
|
};
|
|
4414
4853
|
}
|
|
@@ -4416,20 +4855,20 @@
|
|
|
4416
4855
|
return emptyMap();
|
|
4417
4856
|
}
|
|
4418
4857
|
function TestHelperImpl(logger) {
|
|
4419
|
-
this.
|
|
4858
|
+
this.kdb_1 = logger;
|
|
4420
4859
|
var tmp = this;
|
|
4421
4860
|
var tmp_0 = Companion_instance_3;
|
|
4422
|
-
tmp.
|
|
4861
|
+
tmp.ldb_1 = tmp_0.a62(VOID, TestHelperImpl$di$lambda(this));
|
|
4423
4862
|
var tmp_1 = this;
|
|
4424
4863
|
// Inline function 'org.kodein.di.instance' call
|
|
4425
|
-
var this_0 = this.
|
|
4864
|
+
var this_0 = this.ldb_1;
|
|
4426
4865
|
// Inline function 'org.kodein.type.generic' call
|
|
4427
4866
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4428
4867
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4429
|
-
tmp_1.
|
|
4868
|
+
tmp_1.mdb_1 = Instance(this_0, tmp$ret$0, null).m67(this, playerAnswerInteractor$factory());
|
|
4430
4869
|
}
|
|
4431
4870
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4432
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
4871
|
+
return _get_playerAnswerInteractor__msggz1(this).h8x(playerId, table, botConfig);
|
|
4433
4872
|
};
|
|
4434
4873
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4435
4874
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4437,7 +4876,7 @@
|
|
|
4437
4876
|
var tmp$ret$0;
|
|
4438
4877
|
$l$block_0: {
|
|
4439
4878
|
// Inline function 'kotlin.collections.any' call
|
|
4440
|
-
var this_0 = mechanicAction.
|
|
4879
|
+
var this_0 = mechanicAction.q97();
|
|
4441
4880
|
var tmp;
|
|
4442
4881
|
if (isInterface(this_0, Collection)) {
|
|
4443
4882
|
tmp = this_0.p();
|
|
@@ -4470,7 +4909,7 @@
|
|
|
4470
4909
|
var tmp$ret$0;
|
|
4471
4910
|
$l$block_0: {
|
|
4472
4911
|
// Inline function 'kotlin.collections.any' call
|
|
4473
|
-
var this_0 = action.
|
|
4912
|
+
var this_0 = action.q97();
|
|
4474
4913
|
var tmp;
|
|
4475
4914
|
if (isInterface(this_0, Collection)) {
|
|
4476
4915
|
tmp = this_0.p();
|
|
@@ -4516,77 +4955,77 @@
|
|
|
4516
4955
|
// Inline function 'org.kodein.type.generic' call
|
|
4517
4956
|
var tmp = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4518
4957
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
4519
|
-
var tmp_0 = $this$Module.
|
|
4958
|
+
var tmp_0 = $this$Module.r61(tmp$ret$0, null, null);
|
|
4520
4959
|
// Inline function 'org.kodein.di.singleton' call
|
|
4521
4960
|
var creator = serverHelpersModule$lambda$lambda;
|
|
4522
|
-
var tmp_1 = $this$Module.
|
|
4523
|
-
var tmp_2 = $this$Module.
|
|
4524
|
-
var tmp_3 = $this$Module.
|
|
4961
|
+
var tmp_1 = $this$Module.w61();
|
|
4962
|
+
var tmp_2 = $this$Module.u61();
|
|
4963
|
+
var tmp_3 = $this$Module.v61();
|
|
4525
4964
|
// Inline function 'org.kodein.type.generic' call
|
|
4526
4965
|
var tmp_4 = typeToken(createKType(getKClass(ParserHelperImpl), arrayOf([]), false));
|
|
4527
4966
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4528
4967
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
4529
|
-
tmp_0.
|
|
4968
|
+
tmp_0.p65(tmp$ret$3);
|
|
4530
4969
|
// Inline function 'org.kodein.di.bind' call
|
|
4531
4970
|
// Inline function 'org.kodein.type.generic' call
|
|
4532
4971
|
var tmp_5 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4533
4972
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
4534
|
-
var tmp_6 = $this$Module.
|
|
4973
|
+
var tmp_6 = $this$Module.r61(tmp$ret$4, null, null);
|
|
4535
4974
|
// Inline function 'org.kodein.di.singleton' call
|
|
4536
4975
|
var creator_0 = serverHelpersModule$lambda$lambda_0;
|
|
4537
|
-
var tmp_7 = $this$Module.
|
|
4538
|
-
var tmp_8 = $this$Module.
|
|
4539
|
-
var tmp_9 = $this$Module.
|
|
4976
|
+
var tmp_7 = $this$Module.w61();
|
|
4977
|
+
var tmp_8 = $this$Module.u61();
|
|
4978
|
+
var tmp_9 = $this$Module.v61();
|
|
4540
4979
|
// Inline function 'org.kodein.type.generic' call
|
|
4541
4980
|
var tmp_10 = typeToken(createKType(getKClass(GameHelperImpl), arrayOf([]), false));
|
|
4542
4981
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4543
4982
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
4544
|
-
tmp_6.
|
|
4983
|
+
tmp_6.p65(tmp$ret$7);
|
|
4545
4984
|
// Inline function 'org.kodein.di.bind' call
|
|
4546
4985
|
// Inline function 'org.kodein.type.generic' call
|
|
4547
4986
|
var tmp_11 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4548
4987
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
4549
|
-
var tmp_12 = $this$Module.
|
|
4988
|
+
var tmp_12 = $this$Module.r61(tmp$ret$8, null, null);
|
|
4550
4989
|
// Inline function 'org.kodein.di.singleton' call
|
|
4551
4990
|
var creator_1 = serverHelpersModule$lambda$lambda_1;
|
|
4552
|
-
var tmp_13 = $this$Module.
|
|
4553
|
-
var tmp_14 = $this$Module.
|
|
4554
|
-
var tmp_15 = $this$Module.
|
|
4991
|
+
var tmp_13 = $this$Module.w61();
|
|
4992
|
+
var tmp_14 = $this$Module.u61();
|
|
4993
|
+
var tmp_15 = $this$Module.v61();
|
|
4555
4994
|
// Inline function 'org.kodein.type.generic' call
|
|
4556
4995
|
var tmp_16 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
4557
4996
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
4558
4997
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
4559
|
-
tmp_12.
|
|
4998
|
+
tmp_12.p65(tmp$ret$11);
|
|
4560
4999
|
// Inline function 'org.kodein.di.bind' call
|
|
4561
5000
|
// Inline function 'org.kodein.type.generic' call
|
|
4562
5001
|
var tmp_17 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4563
5002
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
4564
|
-
var tmp_18 = $this$Module.
|
|
5003
|
+
var tmp_18 = $this$Module.r61(tmp$ret$12, null, null);
|
|
4565
5004
|
// Inline function 'org.kodein.di.singleton' call
|
|
4566
5005
|
var creator_2 = serverHelpersModule$lambda$lambda_2;
|
|
4567
|
-
var tmp_19 = $this$Module.
|
|
4568
|
-
var tmp_20 = $this$Module.
|
|
4569
|
-
var tmp_21 = $this$Module.
|
|
5006
|
+
var tmp_19 = $this$Module.w61();
|
|
5007
|
+
var tmp_20 = $this$Module.u61();
|
|
5008
|
+
var tmp_21 = $this$Module.v61();
|
|
4570
5009
|
// Inline function 'org.kodein.type.generic' call
|
|
4571
5010
|
var tmp_22 = typeToken(createKType(getKClass(GameResourcesImpl), arrayOf([]), false));
|
|
4572
5011
|
var tmp$ret$14 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
4573
5012
|
var tmp$ret$15 = new Singleton(tmp_19, tmp_20, tmp_21, tmp$ret$14, null, true, creator_2);
|
|
4574
|
-
tmp_18.
|
|
5013
|
+
tmp_18.p65(tmp$ret$15);
|
|
4575
5014
|
return Unit_instance;
|
|
4576
5015
|
}
|
|
4577
5016
|
function serverHelpersModule$lambda$lambda($this$singleton) {
|
|
4578
5017
|
// Inline function 'org.kodein.di.instance' call
|
|
4579
|
-
var tmp = $this$singleton.
|
|
5018
|
+
var tmp = $this$singleton.e63();
|
|
4580
5019
|
// Inline function 'org.kodein.type.generic' call
|
|
4581
5020
|
var tmp_0 = typeToken(createKType(getKClass(Json), arrayOf([]), false));
|
|
4582
5021
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4583
|
-
var tmp_1 = tmp.
|
|
5022
|
+
var tmp_1 = tmp.d63(tmp$ret$0, null);
|
|
4584
5023
|
// Inline function 'org.kodein.di.instance' call
|
|
4585
|
-
var tmp_2 = $this$singleton.
|
|
5024
|
+
var tmp_2 = $this$singleton.e63();
|
|
4586
5025
|
// Inline function 'org.kodein.type.generic' call
|
|
4587
5026
|
var tmp_3 = typeToken(createKType(getKClass(EncoderDecoderProvider), arrayOf([]), false));
|
|
4588
5027
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
4589
|
-
var tmp$ret$3 = tmp_2.
|
|
5028
|
+
var tmp$ret$3 = tmp_2.d63(tmp$ret$2, null);
|
|
4590
5029
|
return new ParserHelperImpl(tmp_1, tmp$ret$3);
|
|
4591
5030
|
}
|
|
4592
5031
|
function serverHelpersModule$lambda$lambda_0($this$singleton) {
|
|
@@ -4594,49 +5033,60 @@
|
|
|
4594
5033
|
}
|
|
4595
5034
|
function serverHelpersModule$lambda$lambda_1($this$singleton) {
|
|
4596
5035
|
// Inline function 'org.kodein.di.instance' call
|
|
4597
|
-
var tmp = $this$singleton.
|
|
5036
|
+
var tmp = $this$singleton.e63();
|
|
4598
5037
|
// Inline function 'org.kodein.type.generic' call
|
|
4599
5038
|
var tmp_0 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
4600
5039
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
4601
|
-
var tmp$ret$1 = tmp.
|
|
5040
|
+
var tmp$ret$1 = tmp.d63(tmp$ret$0, null);
|
|
4602
5041
|
return new TestHelperImpl(tmp$ret$1);
|
|
4603
5042
|
}
|
|
4604
5043
|
function serverHelpersModule$lambda$lambda_2($this$singleton) {
|
|
4605
5044
|
return new GameResourcesImpl();
|
|
4606
5045
|
}
|
|
4607
5046
|
//region block: post-declaration
|
|
5047
|
+
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
5048
|
+
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
5049
|
+
protoOf(GameServer).shutdown = shutdown;
|
|
4608
5050
|
defineProp(protoOf(GameServer), 'id', function () {
|
|
4609
|
-
return this.
|
|
5051
|
+
return this.w5o();
|
|
4610
5052
|
});
|
|
4611
5053
|
defineProp(protoOf(GameServer), 'table', function () {
|
|
4612
|
-
return this.
|
|
5054
|
+
return this.e6x();
|
|
4613
5055
|
});
|
|
4614
5056
|
defineProp(protoOf(GameServer), 'isTableExists', function () {
|
|
4615
|
-
return this.
|
|
5057
|
+
return this.f6x();
|
|
4616
5058
|
});
|
|
4617
5059
|
defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
|
|
4618
|
-
return this.
|
|
5060
|
+
return this.g6x();
|
|
4619
5061
|
});
|
|
4620
|
-
protoOf(UpdateServerConfigAction).
|
|
5062
|
+
protoOf(UpdateServerConfigAction).o6n = get_actionTag;
|
|
4621
5063
|
defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {
|
|
4622
|
-
return this.
|
|
5064
|
+
return this.o6n();
|
|
5065
|
+
});
|
|
5066
|
+
protoOf(AddSpectatorsAction).o6n = get_actionTag;
|
|
5067
|
+
defineProp(protoOf(AddSpectatorsAction), 'actionTag', function () {
|
|
5068
|
+
return this.o6n();
|
|
5069
|
+
});
|
|
5070
|
+
protoOf(RemoveSpectatorsAction).o6n = get_actionTag;
|
|
5071
|
+
defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
|
|
5072
|
+
return this.o6n();
|
|
4623
5073
|
});
|
|
4624
5074
|
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
4625
5075
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
4626
5076
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
4627
|
-
return this.
|
|
5077
|
+
return this.scy();
|
|
4628
5078
|
});
|
|
4629
5079
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
4630
|
-
return this.
|
|
5080
|
+
return this.wda();
|
|
4631
5081
|
});
|
|
4632
5082
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
4633
|
-
return this.
|
|
5083
|
+
return this.xda();
|
|
4634
5084
|
});
|
|
4635
5085
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
4636
|
-
return this.
|
|
5086
|
+
return this.vda();
|
|
4637
5087
|
});
|
|
4638
5088
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
4639
|
-
return this.
|
|
5089
|
+
return this.yda();
|
|
4640
5090
|
});
|
|
4641
5091
|
//endregion
|
|
4642
5092
|
//region block: init
|