client_plugin_logic_deb 1.8.247 → 1.8.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-client_plugin.d.ts +62 -52
- package/Logic_Debertz-client_plugin.js +2023 -2023
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +63 -53
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14337 -12861
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5496 -5496
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +633 -1791
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
42
42
|
var protoOf = kotlin_kotlin.$_$.uc;
|
|
43
43
|
var THROW_CCE = kotlin_kotlin.$_$.sg;
|
|
44
|
-
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
44
|
+
var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w4;
|
|
45
45
|
var initMetadataForLambda = kotlin_kotlin.$_$.xb;
|
|
46
46
|
var VOID = kotlin_kotlin.$_$.f;
|
|
47
|
-
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
47
|
+
var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.x7;
|
|
48
48
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
49
49
|
var equals = kotlin_kotlin.$_$.lb;
|
|
50
50
|
var FunctionAdapter = kotlin_kotlin.$_$.za;
|
|
@@ -57,34 +57,34 @@
|
|
|
57
57
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
58
58
|
var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
59
59
|
var Store = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
|
|
60
|
-
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
61
|
-
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
62
|
-
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
63
|
-
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
64
|
-
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
65
|
-
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
60
|
+
var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.c8;
|
|
61
|
+
var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q4;
|
|
62
|
+
var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
|
|
63
|
+
var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z6;
|
|
64
|
+
var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
|
|
65
|
+
var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.l4;
|
|
66
66
|
var toList = kotlin_kotlin.$_$.t9;
|
|
67
67
|
var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.p;
|
|
68
|
-
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
68
|
+
var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.w5;
|
|
69
69
|
var toMutableList = kotlin_kotlin.$_$.w9;
|
|
70
|
-
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
71
|
-
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
72
|
-
var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
73
|
-
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
74
|
-
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
75
|
-
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
76
|
-
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
70
|
+
var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
|
|
71
|
+
var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o6;
|
|
72
|
+
var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v5;
|
|
73
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.s9;
|
|
74
|
+
var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w5;
|
|
75
|
+
var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w6;
|
|
76
|
+
var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.q4;
|
|
77
77
|
var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.t1;
|
|
78
|
-
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
79
|
-
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
80
|
-
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
81
|
-
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
82
|
-
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
83
|
-
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
78
|
+
var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.y7;
|
|
79
|
+
var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y5;
|
|
80
|
+
var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y6;
|
|
81
|
+
var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.c4;
|
|
82
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.u9;
|
|
83
|
+
var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v4;
|
|
84
84
|
var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.u1;
|
|
85
|
-
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
85
|
+
var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.t4;
|
|
86
86
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.qh;
|
|
87
|
-
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
87
|
+
var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.d8;
|
|
88
88
|
var emptyList = kotlin_kotlin.$_$.n7;
|
|
89
89
|
var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
|
|
90
90
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
94
94
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
95
95
|
var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
|
|
96
|
-
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
96
|
+
var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.e4;
|
|
97
97
|
var lazy = kotlin_kotlin.$_$.ph;
|
|
98
98
|
var plus = kotlin_kotlin.$_$.z8;
|
|
99
|
-
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
99
|
+
var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.f8;
|
|
100
100
|
var defineProp = kotlin_kotlin.$_$.kb;
|
|
101
101
|
var KProperty1 = kotlin_kotlin.$_$.pd;
|
|
102
102
|
var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
|
|
@@ -105,28 +105,28 @@
|
|
|
105
105
|
var Enum = kotlin_kotlin.$_$.hg;
|
|
106
106
|
var getBooleanHashCode = kotlin_kotlin.$_$.ob;
|
|
107
107
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
108
|
-
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
109
|
-
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
108
|
+
var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.e7;
|
|
109
|
+
var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.f;
|
|
110
110
|
var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
|
|
111
|
-
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
111
|
+
var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.g8;
|
|
112
112
|
var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
|
|
113
|
-
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
113
|
+
var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.v7;
|
|
114
114
|
var RandomPoolProvider = kotlin_io_raspberryapps_cardgame_random.$_$.i;
|
|
115
|
-
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
115
|
+
var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.t7;
|
|
116
116
|
var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.e2;
|
|
117
|
-
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
118
|
-
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
119
|
-
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
120
|
-
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
121
|
-
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
117
|
+
var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.m3;
|
|
118
|
+
var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
|
|
119
|
+
var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
120
|
+
var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.s7;
|
|
121
|
+
var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.e8;
|
|
122
122
|
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
123
123
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
124
124
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
125
125
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
126
|
-
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
126
|
+
var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u4;
|
|
127
127
|
var single = kotlin_kotlin.$_$.i9;
|
|
128
128
|
var copyToArray = kotlin_kotlin.$_$.i7;
|
|
129
|
-
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
129
|
+
var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.t4;
|
|
130
130
|
var toString = kotlin_kotlin.$_$.yc;
|
|
131
131
|
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
132
132
|
var KtList = kotlin_kotlin.$_$.x5;
|
|
@@ -142,152 +142,121 @@
|
|
|
142
142
|
var flatMapConcat = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
143
143
|
var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
|
|
144
144
|
var Action = kotlin_io_raspberryapps_game_engine_core.$_$.g3;
|
|
145
|
-
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
146
|
-
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
147
|
-
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
148
|
-
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
149
|
-
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
145
|
+
var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.g7;
|
|
146
|
+
var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.f7;
|
|
147
|
+
var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.a7;
|
|
148
|
+
var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.c7;
|
|
149
|
+
var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.b7;
|
|
150
150
|
var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.d2;
|
|
151
|
-
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
152
|
-
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
153
|
-
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
151
|
+
var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
|
|
152
|
+
var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
153
|
+
var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.i4;
|
|
154
154
|
var listOf = kotlin_kotlin.$_$.q8;
|
|
155
|
-
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
155
|
+
var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.p7;
|
|
156
156
|
var listOfNotNull = kotlin_kotlin.$_$.n8;
|
|
157
|
-
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
158
|
-
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
157
|
+
var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.j7;
|
|
158
|
+
var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.k7;
|
|
159
159
|
var listOfNotNull_0 = kotlin_kotlin.$_$.o8;
|
|
160
|
-
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
161
|
-
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
160
|
+
var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.h7;
|
|
161
|
+
var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.n7;
|
|
162
162
|
var listOf_0 = kotlin_kotlin.$_$.p8;
|
|
163
|
-
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
164
|
-
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
165
|
-
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
163
|
+
var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.o7;
|
|
164
|
+
var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.i7;
|
|
165
|
+
var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.s5;
|
|
166
166
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.h3;
|
|
167
|
-
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
168
|
-
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
169
|
-
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
170
|
-
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
171
|
-
var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
172
|
-
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
173
|
-
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
174
|
-
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
175
|
-
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
176
|
-
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
177
|
-
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
178
|
-
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
179
|
-
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
180
|
-
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
181
|
-
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
182
|
-
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
183
|
-
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
184
|
-
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
185
|
-
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
186
|
-
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
187
|
-
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
188
|
-
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
167
|
+
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c6;
|
|
168
|
+
var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.v4;
|
|
169
|
+
var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.g5;
|
|
170
|
+
var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h6;
|
|
171
|
+
var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
|
|
172
|
+
var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.l5;
|
|
173
|
+
var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d6;
|
|
174
|
+
var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.e5;
|
|
175
|
+
var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u6;
|
|
176
|
+
var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.c5;
|
|
177
|
+
var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g6;
|
|
178
|
+
var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.j5;
|
|
179
|
+
var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.k6;
|
|
180
|
+
var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.y4;
|
|
181
|
+
var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v5;
|
|
182
|
+
var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.m5;
|
|
183
|
+
var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t6;
|
|
184
|
+
var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.q5;
|
|
185
|
+
var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q6;
|
|
186
|
+
var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.p5;
|
|
187
|
+
var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i6;
|
|
188
|
+
var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
|
|
189
189
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
190
|
-
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
191
|
-
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
192
|
-
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
193
|
-
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
194
|
-
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
195
|
-
var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
196
|
-
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
197
|
-
var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
198
|
-
var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
199
|
-
var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
200
|
-
var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
201
|
-
var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
202
|
-
var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
203
|
-
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
204
|
-
var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
205
|
-
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
206
|
-
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
207
|
-
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
190
|
+
var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.v8;
|
|
191
|
+
var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.n5;
|
|
192
|
+
var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r6;
|
|
193
|
+
var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.k5;
|
|
194
|
+
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m6;
|
|
195
|
+
var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.o5;
|
|
196
|
+
var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.n6;
|
|
197
|
+
var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.h5;
|
|
198
|
+
var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x5;
|
|
199
|
+
var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.a5;
|
|
200
|
+
var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l6;
|
|
201
|
+
var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.f5;
|
|
202
|
+
var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.i5;
|
|
203
|
+
var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z5;
|
|
204
|
+
var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.b5;
|
|
205
|
+
var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.d5;
|
|
206
|
+
var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p6;
|
|
207
|
+
var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.z4;
|
|
208
208
|
var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
|
|
209
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
210
|
-
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
209
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.h5;
|
|
210
|
+
var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.f5;
|
|
211
211
|
var Companion_getInstance = kotlin_kotlin.$_$.g5;
|
|
212
212
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
213
213
|
var toDuration = kotlin_kotlin.$_$.zf;
|
|
214
|
-
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
215
|
-
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
214
|
+
var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.r7;
|
|
215
|
+
var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.q8;
|
|
216
216
|
var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
|
|
217
217
|
var singleOrNull = kotlin_kotlin.$_$.h9;
|
|
218
218
|
var Collection = kotlin_kotlin.$_$.r5;
|
|
219
219
|
var toSet = kotlin_kotlin.$_$.z9;
|
|
220
|
-
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
221
|
-
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
220
|
+
var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
|
|
221
|
+
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.w7;
|
|
222
222
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
223
|
-
var
|
|
224
|
-
var get_entries = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
|
|
225
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
226
|
-
var get_entries_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.m3;
|
|
227
|
-
var get_entries_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.n3;
|
|
228
|
-
var getUserProfilePayloadOrNull = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
|
|
229
|
-
var Companion_instance_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.na;
|
|
230
|
-
var Config = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
|
|
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.$_$.d1;
|
|
240
|
-
var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.w3;
|
|
241
|
-
var toRoundContractType = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
|
|
242
|
-
var Companion_getInstance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.r9;
|
|
243
|
-
var toBidType = kotlin_io_raspberryapps_game_engine_engine.$_$.x2;
|
|
244
|
-
var mapToCombinationType = kotlin_io_raspberryapps_game_engine_engine.$_$.e2;
|
|
245
|
-
var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.ma;
|
|
246
|
-
var toPointsDistributeMode = kotlin_io_raspberryapps_game_engine_engine.$_$.y2;
|
|
247
|
-
var PointsDistributeMode_HIGHEST_PLAYER_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.y8;
|
|
248
|
-
var PointsDistributeMode_ALL_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.x8;
|
|
249
|
-
var getValue = kotlin_kotlin.$_$.a8;
|
|
250
|
-
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.s9;
|
|
251
|
-
var valueOf = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
|
|
252
|
-
var Default_getInstance = kotlin_kotlin.$_$.d5;
|
|
253
|
-
var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.c;
|
|
254
|
-
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
|
|
223
|
+
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
|
|
255
224
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.r1;
|
|
256
225
|
var RandomOrgConfig = kotlin_io_raspberryapps_cardgame_random.$_$.b;
|
|
257
|
-
var
|
|
258
|
-
var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
226
|
+
var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
227
|
+
var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.c;
|
|
259
228
|
var mutableListOf = kotlin_kotlin.$_$.v8;
|
|
260
229
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
261
230
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
262
231
|
var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.j2;
|
|
263
|
-
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
264
|
-
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
265
|
-
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
266
|
-
var
|
|
267
|
-
var
|
|
268
|
-
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
232
|
+
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.b8;
|
|
233
|
+
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.a8;
|
|
234
|
+
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.z7;
|
|
235
|
+
var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.w9;
|
|
236
|
+
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.v9;
|
|
237
|
+
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j3;
|
|
269
238
|
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.g2;
|
|
270
239
|
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
|
|
271
240
|
var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
|
|
272
|
-
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
273
|
-
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
274
|
-
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.
|
|
275
|
-
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
241
|
+
var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.y5;
|
|
242
|
+
var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
|
|
243
|
+
var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.e5;
|
|
244
|
+
var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
245
|
+
var GameHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
246
|
+
var GameResources = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
|
|
276
247
|
var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
|
|
277
|
-
var
|
|
248
|
+
var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
278
249
|
var toList_0 = kotlin_kotlin.$_$.s9;
|
|
279
250
|
var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
|
|
280
251
|
var get_direct = kotlin_org_kodein_di_kodein_di.$_$.g;
|
|
281
|
-
var
|
|
282
|
-
var RoomConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.va;
|
|
283
|
-
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
|
|
252
|
+
var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
|
|
284
253
|
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
285
|
-
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
286
|
-
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
287
|
-
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
288
|
-
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
289
|
-
var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
290
|
-
var engineHelpersModule = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
254
|
+
var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
|
|
255
|
+
var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.m4;
|
|
256
|
+
var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.x4;
|
|
257
|
+
var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.f6;
|
|
258
|
+
var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
|
|
259
|
+
var engineHelpersModule = kotlin_io_raspberryapps_game_engine_engine.$_$.e;
|
|
291
260
|
//endregion
|
|
292
261
|
//region block: pre-declaration
|
|
293
262
|
initMetadataForLambda(GameServer$subscribeToClientAction$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -318,15 +287,15 @@
|
|
|
318
287
|
tmp = spectators;
|
|
319
288
|
}
|
|
320
289
|
spectators = tmp;
|
|
321
|
-
return this.
|
|
290
|
+
return this.lda(roomId, gameCreatorId, config, users, spectators);
|
|
322
291
|
}
|
|
323
292
|
function roomOnDelete(newRid, $super) {
|
|
324
293
|
newRid = newRid === VOID ? null : newRid;
|
|
325
|
-
return this.
|
|
294
|
+
return this.mda(newRid);
|
|
326
295
|
}
|
|
327
296
|
function shutdown(reason, roomId, $super) {
|
|
328
297
|
roomId = roomId === VOID ? null : roomId;
|
|
329
|
-
return this.
|
|
298
|
+
return this.nda(reason, roomId);
|
|
330
299
|
}
|
|
331
300
|
initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
|
|
332
301
|
initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
|
|
@@ -355,24 +324,6 @@
|
|
|
355
324
|
initMetadataForClass(_no_name_provided__qut3iv_3, VOID, VOID, VOID, [Reducer]);
|
|
356
325
|
initMetadataForCompanion(Companion_1);
|
|
357
326
|
initMetadataForClass(ServerState, 'ServerState', VOID, VOID, [AppStatePayload]);
|
|
358
|
-
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
359
|
-
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', GameHelperImpl, VOID, [GameHelper]);
|
|
360
|
-
function createBotUser(playerId, existingNicknames, $super) {
|
|
361
|
-
var tmp;
|
|
362
|
-
if (existingNicknames === VOID) {
|
|
363
|
-
// Inline function 'kotlin.emptyArray' call
|
|
364
|
-
tmp = [];
|
|
365
|
-
} else {
|
|
366
|
-
tmp = existingNicknames;
|
|
367
|
-
}
|
|
368
|
-
existingNicknames = tmp;
|
|
369
|
-
return this.kdd(playerId, existingNicknames);
|
|
370
|
-
}
|
|
371
|
-
initMetadataForInterface(GameResources, 'GameResources');
|
|
372
|
-
initMetadataForCompanion(Companion_2);
|
|
373
|
-
initMetadataForClass(AvatarSet, 'AvatarSet', VOID, Enum);
|
|
374
|
-
initMetadataForClass(AvatarData, 'AvatarData');
|
|
375
|
-
initMetadataForClass(GameResourcesImpl, 'GameResourcesImpl', GameResourcesImpl, VOID, [GameResources]);
|
|
376
327
|
function createGameEngineWithLogic(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig, $super) {
|
|
377
328
|
var tmp;
|
|
378
329
|
if (reducers === VOID) {
|
|
@@ -394,7 +345,7 @@
|
|
|
394
345
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
|
|
395
346
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
396
347
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
397
|
-
return this.
|
|
348
|
+
return this.sde(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
|
|
398
349
|
}
|
|
399
350
|
initMetadataForInterface(GameEngineController, 'GameEngineController');
|
|
400
351
|
initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
|
|
@@ -403,17 +354,17 @@
|
|
|
403
354
|
initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
|
|
404
355
|
//endregion
|
|
405
356
|
function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
|
|
406
|
-
this.
|
|
357
|
+
this.bd3_1 = $subscriber;
|
|
407
358
|
CoroutineImpl.call(this, resultContinuation);
|
|
408
359
|
}
|
|
409
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
410
|
-
var tmp = this.
|
|
360
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).dd3 = function (it, $completion) {
|
|
361
|
+
var tmp = this.ed3(it, $completion);
|
|
411
362
|
tmp.g9_1 = Unit_instance;
|
|
412
363
|
tmp.h9_1 = null;
|
|
413
364
|
return tmp.m9();
|
|
414
365
|
};
|
|
415
366
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
|
|
416
|
-
return this.
|
|
367
|
+
return this.dd3(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
|
|
417
368
|
};
|
|
418
369
|
protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
|
|
419
370
|
var suspendResult = this.g9_1;
|
|
@@ -422,7 +373,7 @@
|
|
|
422
373
|
var tmp = this.e9_1;
|
|
423
374
|
if (tmp === 0) {
|
|
424
375
|
this.f9_1 = 1;
|
|
425
|
-
this.
|
|
376
|
+
this.bd3_1(this.cd3_1);
|
|
426
377
|
return Unit_instance;
|
|
427
378
|
} else if (tmp === 1) {
|
|
428
379
|
throw this.h9_1;
|
|
@@ -433,31 +384,31 @@
|
|
|
433
384
|
}
|
|
434
385
|
while (true);
|
|
435
386
|
};
|
|
436
|
-
protoOf(GameServer$subscribeToClientAction$slambda$slambda).
|
|
437
|
-
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.
|
|
438
|
-
i.
|
|
387
|
+
protoOf(GameServer$subscribeToClientAction$slambda$slambda).ed3 = function (it, completion) {
|
|
388
|
+
var i = new GameServer$subscribeToClientAction$slambda$slambda(this.bd3_1, completion);
|
|
389
|
+
i.cd3_1 = it;
|
|
439
390
|
return i;
|
|
440
391
|
};
|
|
441
392
|
function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
|
|
442
393
|
var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
|
|
443
394
|
var l = function (it, $completion) {
|
|
444
|
-
return i.
|
|
395
|
+
return i.dd3(it, $completion);
|
|
445
396
|
};
|
|
446
397
|
l.$arity = 1;
|
|
447
398
|
return l;
|
|
448
399
|
}
|
|
449
400
|
function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
|
|
450
|
-
this.
|
|
401
|
+
this.nd3_1 = $subscriber;
|
|
451
402
|
CoroutineImpl.call(this, resultContinuation);
|
|
452
403
|
}
|
|
453
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
454
|
-
var tmp = this.
|
|
404
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).pd3 = function (it, $completion) {
|
|
405
|
+
var tmp = this.qd3(it, $completion);
|
|
455
406
|
tmp.g9_1 = Unit_instance;
|
|
456
407
|
tmp.h9_1 = null;
|
|
457
408
|
return tmp.m9();
|
|
458
409
|
};
|
|
459
410
|
protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
|
|
460
|
-
return this.
|
|
411
|
+
return this.pd3(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
|
|
461
412
|
};
|
|
462
413
|
protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
|
|
463
414
|
var suspendResult = this.g9_1;
|
|
@@ -466,7 +417,7 @@
|
|
|
466
417
|
var tmp = this.e9_1;
|
|
467
418
|
if (tmp === 0) {
|
|
468
419
|
this.f9_1 = 1;
|
|
469
|
-
this.
|
|
420
|
+
this.nd3_1(this.od3_1);
|
|
470
421
|
return Unit_instance;
|
|
471
422
|
} else if (tmp === 1) {
|
|
472
423
|
throw this.h9_1;
|
|
@@ -477,58 +428,58 @@
|
|
|
477
428
|
}
|
|
478
429
|
while (true);
|
|
479
430
|
};
|
|
480
|
-
protoOf(GameServer$subscribeWith$slambda$slambda).
|
|
481
|
-
var i = new GameServer$subscribeWith$slambda$slambda(this.
|
|
482
|
-
i.
|
|
431
|
+
protoOf(GameServer$subscribeWith$slambda$slambda).qd3 = function (it, completion) {
|
|
432
|
+
var i = new GameServer$subscribeWith$slambda$slambda(this.nd3_1, completion);
|
|
433
|
+
i.od3_1 = it;
|
|
483
434
|
return i;
|
|
484
435
|
};
|
|
485
436
|
function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
|
|
486
437
|
var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
|
|
487
438
|
var l = function (it, $completion) {
|
|
488
|
-
return i.
|
|
439
|
+
return i.pd3(it, $completion);
|
|
489
440
|
};
|
|
490
441
|
l.$arity = 1;
|
|
491
442
|
return l;
|
|
492
443
|
}
|
|
493
444
|
function _get_logger__rkp4sl($this) {
|
|
494
445
|
// Inline function 'kotlin.getValue' call
|
|
495
|
-
var this_0 = $this.
|
|
446
|
+
var this_0 = $this.td3_1;
|
|
496
447
|
logger$factory_0();
|
|
497
448
|
return this_0.u();
|
|
498
449
|
}
|
|
499
450
|
function _get_toClientEventsObserver__6rp51y($this) {
|
|
500
451
|
// Inline function 'kotlin.getValue' call
|
|
501
|
-
var this_0 = $this.
|
|
452
|
+
var this_0 = $this.ud3_1;
|
|
502
453
|
toClientEventsObserver$factory_0();
|
|
503
454
|
return this_0.u();
|
|
504
455
|
}
|
|
505
456
|
function _get_playerConnectionInteractor__si6cxf($this) {
|
|
506
457
|
// Inline function 'kotlin.getValue' call
|
|
507
|
-
var this_0 = $this.
|
|
458
|
+
var this_0 = $this.vd3_1;
|
|
508
459
|
playerConnectionInteractor$factory_0();
|
|
509
460
|
return this_0.u();
|
|
510
461
|
}
|
|
511
462
|
function _get_random__h29cgo($this) {
|
|
512
463
|
// Inline function 'kotlin.getValue' call
|
|
513
|
-
var this_0 = $this.
|
|
464
|
+
var this_0 = $this.wd3_1;
|
|
514
465
|
random$factory();
|
|
515
466
|
return this_0.u();
|
|
516
467
|
}
|
|
517
468
|
function Companion() {
|
|
518
|
-
this.
|
|
469
|
+
this.yd3_1 = 'GameEngine_API';
|
|
519
470
|
}
|
|
520
|
-
var
|
|
521
|
-
function
|
|
522
|
-
return
|
|
471
|
+
var Companion_instance_7;
|
|
472
|
+
function Companion_getInstance_0() {
|
|
473
|
+
return Companion_instance_7;
|
|
523
474
|
}
|
|
524
475
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
525
|
-
this.
|
|
476
|
+
this.zd3_1 = function_0;
|
|
526
477
|
}
|
|
527
478
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
|
|
528
|
-
return this.
|
|
479
|
+
return this.zd3_1(value, $completion);
|
|
529
480
|
};
|
|
530
481
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
|
|
531
|
-
return this.
|
|
482
|
+
return this.zd3_1;
|
|
532
483
|
};
|
|
533
484
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
534
485
|
var tmp;
|
|
@@ -549,13 +500,13 @@
|
|
|
549
500
|
return hashCode(this.o3());
|
|
550
501
|
};
|
|
551
502
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
552
|
-
this.
|
|
503
|
+
this.ad4_1 = function_0;
|
|
553
504
|
}
|
|
554
505
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
|
|
555
|
-
return this.
|
|
506
|
+
return this.ad4_1(value, $completion);
|
|
556
507
|
};
|
|
557
508
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
|
|
558
|
-
return this.
|
|
509
|
+
return this.ad4_1;
|
|
559
510
|
};
|
|
560
511
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
561
512
|
var tmp;
|
|
@@ -581,8 +532,8 @@
|
|
|
581
532
|
};
|
|
582
533
|
}
|
|
583
534
|
function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
535
|
+
this.jd4_1 = this$0;
|
|
536
|
+
this.kd4_1 = $subscriber;
|
|
586
537
|
CoroutineImpl.call(this, resultContinuation);
|
|
587
538
|
}
|
|
588
539
|
protoOf(GameServer$subscribeToClientAction$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
@@ -603,8 +554,8 @@
|
|
|
603
554
|
case 0:
|
|
604
555
|
this.f9_1 = 2;
|
|
605
556
|
this.e9_1 = 1;
|
|
606
|
-
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.
|
|
607
|
-
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.
|
|
557
|
+
var tmp_0 = _get_toClientEventsObserver__6rp51y(this.jd4_1).vb8();
|
|
558
|
+
var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.kd4_1, null);
|
|
608
559
|
suspendResult = tmp_0.l17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
609
560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
610
561
|
return suspendResult;
|
|
@@ -628,8 +579,8 @@
|
|
|
628
579
|
while (true);
|
|
629
580
|
};
|
|
630
581
|
protoOf(GameServer$subscribeToClientAction$slambda).f1f = function ($this$launchDefault, completion) {
|
|
631
|
-
var i = new GameServer$subscribeToClientAction$slambda(this.
|
|
632
|
-
i.
|
|
582
|
+
var i = new GameServer$subscribeToClientAction$slambda(this.jd4_1, this.kd4_1, completion);
|
|
583
|
+
i.ld4_1 = $this$launchDefault;
|
|
633
584
|
return i;
|
|
634
585
|
};
|
|
635
586
|
function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -641,8 +592,8 @@
|
|
|
641
592
|
return l;
|
|
642
593
|
}
|
|
643
594
|
function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
595
|
+
this.ud4_1 = this$0;
|
|
596
|
+
this.vd4_1 = $subscriber;
|
|
646
597
|
CoroutineImpl.call(this, resultContinuation);
|
|
647
598
|
}
|
|
648
599
|
protoOf(GameServer$subscribeWith$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
@@ -663,8 +614,8 @@
|
|
|
663
614
|
case 0:
|
|
664
615
|
this.f9_1 = 2;
|
|
665
616
|
this.e9_1 = 1;
|
|
666
|
-
var tmp_0 = distinctUntilChanged(this.
|
|
667
|
-
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.
|
|
617
|
+
var tmp_0 = distinctUntilChanged(this.ud4_1.c6w());
|
|
618
|
+
var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.vd4_1, null);
|
|
668
619
|
suspendResult = tmp_0.l17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
669
620
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
670
621
|
return suspendResult;
|
|
@@ -688,8 +639,8 @@
|
|
|
688
639
|
while (true);
|
|
689
640
|
};
|
|
690
641
|
protoOf(GameServer$subscribeWith$slambda).f1f = function ($this$launchDefault, completion) {
|
|
691
|
-
var i = new GameServer$subscribeWith$slambda(this.
|
|
692
|
-
i.
|
|
642
|
+
var i = new GameServer$subscribeWith$slambda(this.ud4_1, this.vd4_1, completion);
|
|
643
|
+
i.wd4_1 = $this$launchDefault;
|
|
693
644
|
return i;
|
|
694
645
|
};
|
|
695
646
|
function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
|
|
@@ -701,18 +652,18 @@
|
|
|
701
652
|
return l;
|
|
702
653
|
}
|
|
703
654
|
function GameServer$fromClientEvent$slambda($action, resultContinuation) {
|
|
704
|
-
this.
|
|
655
|
+
this.fd5_1 = $action;
|
|
705
656
|
CoroutineImpl.call(this, resultContinuation);
|
|
706
657
|
}
|
|
707
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
708
|
-
var tmp = this.
|
|
658
|
+
protoOf(GameServer$fromClientEvent$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
659
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
709
660
|
tmp.g9_1 = Unit_instance;
|
|
710
661
|
tmp.h9_1 = null;
|
|
711
662
|
return tmp.m9();
|
|
712
663
|
};
|
|
713
664
|
protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
|
|
714
665
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
715
|
-
return this.
|
|
666
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
716
667
|
};
|
|
717
668
|
protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
|
|
718
669
|
var suspendResult = this.g9_1;
|
|
@@ -721,11 +672,11 @@
|
|
|
721
672
|
var tmp = this.e9_1;
|
|
722
673
|
if (tmp === 0) {
|
|
723
674
|
this.f9_1 = 1;
|
|
724
|
-
if (this.
|
|
725
|
-
if (!get_isCreated(this.
|
|
675
|
+
if (this.fd5_1 instanceof PlayerReadyFromClientAction)
|
|
676
|
+
if (!get_isCreated(this.hd5_1.state)) {
|
|
726
677
|
return Unit_instance;
|
|
727
678
|
}
|
|
728
|
-
this.
|
|
679
|
+
this.hd5_1.dispatch(this.fd5_1);
|
|
729
680
|
return Unit_instance;
|
|
730
681
|
} else if (tmp === 1) {
|
|
731
682
|
throw this.h9_1;
|
|
@@ -736,33 +687,33 @@
|
|
|
736
687
|
}
|
|
737
688
|
while (true);
|
|
738
689
|
};
|
|
739
|
-
protoOf(GameServer$fromClientEvent$slambda).
|
|
740
|
-
var i = new GameServer$fromClientEvent$slambda(this.
|
|
741
|
-
i.
|
|
742
|
-
i.
|
|
690
|
+
protoOf(GameServer$fromClientEvent$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
691
|
+
var i = new GameServer$fromClientEvent$slambda(this.fd5_1, completion);
|
|
692
|
+
i.gd5_1 = $this$dispatchAsync;
|
|
693
|
+
i.hd5_1 = store;
|
|
743
694
|
return i;
|
|
744
695
|
};
|
|
745
696
|
function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
|
|
746
697
|
var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
|
|
747
698
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
748
|
-
return i.
|
|
699
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
749
700
|
};
|
|
750
701
|
l.$arity = 2;
|
|
751
702
|
return l;
|
|
752
703
|
}
|
|
753
704
|
function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
|
|
754
|
-
this.
|
|
705
|
+
this.qd5_1 = $playerId;
|
|
755
706
|
CoroutineImpl.call(this, resultContinuation);
|
|
756
707
|
}
|
|
757
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
758
|
-
var tmp = this.
|
|
708
|
+
protoOf(GameServer$playerLostConnection$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
709
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
759
710
|
tmp.g9_1 = Unit_instance;
|
|
760
711
|
tmp.h9_1 = null;
|
|
761
712
|
return tmp.m9();
|
|
762
713
|
};
|
|
763
714
|
protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
|
|
764
715
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
765
|
-
return this.
|
|
716
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
766
717
|
};
|
|
767
718
|
protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
|
|
768
719
|
var suspendResult = this.g9_1;
|
|
@@ -771,12 +722,12 @@
|
|
|
771
722
|
var tmp = this.e9_1;
|
|
772
723
|
if (tmp === 0) {
|
|
773
724
|
this.f9_1 = 1;
|
|
774
|
-
if (!get_isCreated(this.
|
|
725
|
+
if (!get_isCreated(this.sd5_1.state)) {
|
|
775
726
|
return Unit_instance;
|
|
776
727
|
}
|
|
777
|
-
var tmp_0 = this.
|
|
728
|
+
var tmp_0 = this.sd5_1.dispatch;
|
|
778
729
|
var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
|
|
779
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
730
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.qd5_1));
|
|
780
731
|
return Unit_instance;
|
|
781
732
|
} else if (tmp === 1) {
|
|
782
733
|
throw this.h9_1;
|
|
@@ -787,33 +738,33 @@
|
|
|
787
738
|
}
|
|
788
739
|
while (true);
|
|
789
740
|
};
|
|
790
|
-
protoOf(GameServer$playerLostConnection$slambda).
|
|
791
|
-
var i = new GameServer$playerLostConnection$slambda(this.
|
|
792
|
-
i.
|
|
793
|
-
i.
|
|
741
|
+
protoOf(GameServer$playerLostConnection$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
742
|
+
var i = new GameServer$playerLostConnection$slambda(this.qd5_1, completion);
|
|
743
|
+
i.rd5_1 = $this$dispatchAsync;
|
|
744
|
+
i.sd5_1 = store;
|
|
794
745
|
return i;
|
|
795
746
|
};
|
|
796
747
|
function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
|
|
797
748
|
var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
|
|
798
749
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
799
|
-
return i.
|
|
750
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
800
751
|
};
|
|
801
752
|
l.$arity = 2;
|
|
802
753
|
return l;
|
|
803
754
|
}
|
|
804
755
|
function GameServer$playerLive$slambda($playerId, resultContinuation) {
|
|
805
|
-
this.
|
|
756
|
+
this.bd6_1 = $playerId;
|
|
806
757
|
CoroutineImpl.call(this, resultContinuation);
|
|
807
758
|
}
|
|
808
|
-
protoOf(GameServer$playerLive$slambda).
|
|
809
|
-
var tmp = this.
|
|
759
|
+
protoOf(GameServer$playerLive$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
760
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
810
761
|
tmp.g9_1 = Unit_instance;
|
|
811
762
|
tmp.h9_1 = null;
|
|
812
763
|
return tmp.m9();
|
|
813
764
|
};
|
|
814
765
|
protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
|
|
815
766
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
816
|
-
return this.
|
|
767
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
817
768
|
};
|
|
818
769
|
protoOf(GameServer$playerLive$slambda).m9 = function () {
|
|
819
770
|
var suspendResult = this.g9_1;
|
|
@@ -822,9 +773,9 @@
|
|
|
822
773
|
var tmp = this.e9_1;
|
|
823
774
|
if (tmp === 0) {
|
|
824
775
|
this.f9_1 = 1;
|
|
825
|
-
var tmp_0 = this.
|
|
776
|
+
var tmp_0 = this.dd6_1.dispatch;
|
|
826
777
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
827
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
778
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.bd6_1));
|
|
828
779
|
return Unit_instance;
|
|
829
780
|
} else if (tmp === 1) {
|
|
830
781
|
throw this.h9_1;
|
|
@@ -835,33 +786,33 @@
|
|
|
835
786
|
}
|
|
836
787
|
while (true);
|
|
837
788
|
};
|
|
838
|
-
protoOf(GameServer$playerLive$slambda).
|
|
839
|
-
var i = new GameServer$playerLive$slambda(this.
|
|
840
|
-
i.
|
|
841
|
-
i.
|
|
789
|
+
protoOf(GameServer$playerLive$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
790
|
+
var i = new GameServer$playerLive$slambda(this.bd6_1, completion);
|
|
791
|
+
i.cd6_1 = $this$dispatchAsync;
|
|
792
|
+
i.dd6_1 = store;
|
|
842
793
|
return i;
|
|
843
794
|
};
|
|
844
795
|
function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
|
|
845
796
|
var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
|
|
846
797
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
847
|
-
return i.
|
|
798
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
848
799
|
};
|
|
849
800
|
l.$arity = 2;
|
|
850
801
|
return l;
|
|
851
802
|
}
|
|
852
803
|
function GameServer$playerLeft$slambda($playerId, resultContinuation) {
|
|
853
|
-
this.
|
|
804
|
+
this.md6_1 = $playerId;
|
|
854
805
|
CoroutineImpl.call(this, resultContinuation);
|
|
855
806
|
}
|
|
856
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
857
|
-
var tmp = this.
|
|
807
|
+
protoOf(GameServer$playerLeft$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
808
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
858
809
|
tmp.g9_1 = Unit_instance;
|
|
859
810
|
tmp.h9_1 = null;
|
|
860
811
|
return tmp.m9();
|
|
861
812
|
};
|
|
862
813
|
protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
|
|
863
814
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
864
|
-
return this.
|
|
815
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
865
816
|
};
|
|
866
817
|
protoOf(GameServer$playerLeft$slambda).m9 = function () {
|
|
867
818
|
var suspendResult = this.g9_1;
|
|
@@ -870,9 +821,9 @@
|
|
|
870
821
|
var tmp = this.e9_1;
|
|
871
822
|
if (tmp === 0) {
|
|
872
823
|
this.f9_1 = 1;
|
|
873
|
-
var tmp_0 = this.
|
|
824
|
+
var tmp_0 = this.od6_1.dispatch;
|
|
874
825
|
var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
|
|
875
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
826
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.md6_1));
|
|
876
827
|
return Unit_instance;
|
|
877
828
|
} else if (tmp === 1) {
|
|
878
829
|
throw this.h9_1;
|
|
@@ -883,38 +834,38 @@
|
|
|
883
834
|
}
|
|
884
835
|
while (true);
|
|
885
836
|
};
|
|
886
|
-
protoOf(GameServer$playerLeft$slambda).
|
|
887
|
-
var i = new GameServer$playerLeft$slambda(this.
|
|
888
|
-
i.
|
|
889
|
-
i.
|
|
837
|
+
protoOf(GameServer$playerLeft$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
838
|
+
var i = new GameServer$playerLeft$slambda(this.md6_1, completion);
|
|
839
|
+
i.nd6_1 = $this$dispatchAsync;
|
|
840
|
+
i.od6_1 = store;
|
|
890
841
|
return i;
|
|
891
842
|
};
|
|
892
843
|
function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
|
|
893
844
|
var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
|
|
894
845
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
895
|
-
return i.
|
|
846
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
896
847
|
};
|
|
897
848
|
l.$arity = 2;
|
|
898
849
|
return l;
|
|
899
850
|
}
|
|
900
851
|
function GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
901
|
-
this.
|
|
902
|
-
this.
|
|
903
|
-
this.
|
|
904
|
-
this.
|
|
905
|
-
this.
|
|
906
|
-
this.
|
|
852
|
+
this.xd6_1 = $users;
|
|
853
|
+
this.yd6_1 = $gameCreatorId;
|
|
854
|
+
this.zd6_1 = this$0;
|
|
855
|
+
this.ad7_1 = $spectators;
|
|
856
|
+
this.bd7_1 = $config;
|
|
857
|
+
this.cd7_1 = $roomId;
|
|
907
858
|
CoroutineImpl.call(this, resultContinuation);
|
|
908
859
|
}
|
|
909
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
910
|
-
var tmp = this.
|
|
860
|
+
protoOf(GameServer$roomOnCreate$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
861
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
911
862
|
tmp.g9_1 = Unit_instance;
|
|
912
863
|
tmp.h9_1 = null;
|
|
913
864
|
return tmp.m9();
|
|
914
865
|
};
|
|
915
866
|
protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
|
|
916
867
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
917
|
-
return this.
|
|
868
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
918
869
|
};
|
|
919
870
|
protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
|
|
920
871
|
var suspendResult = this.g9_1;
|
|
@@ -923,13 +874,13 @@
|
|
|
923
874
|
var tmp = this.e9_1;
|
|
924
875
|
if (tmp === 0) {
|
|
925
876
|
this.f9_1 = 1;
|
|
926
|
-
var usersList = toList(this.
|
|
927
|
-
var gameCreatorUser = getPlayer(usersList, this.
|
|
928
|
-
var tmp_0 = this.
|
|
877
|
+
var usersList = toList(this.xd6_1);
|
|
878
|
+
var gameCreatorUser = getPlayer(usersList, this.yd6_1);
|
|
879
|
+
var tmp_0 = this.ed7_1.dispatch;
|
|
929
880
|
var tmp0_version = GameEngineConfig_instance.version;
|
|
930
|
-
var tmp1_users = sortWithItem(_get_random__h29cgo(this.
|
|
931
|
-
var tmp2_spectators = toList(this.
|
|
932
|
-
tmp_0(new StartGameMechanicAction(this.
|
|
881
|
+
var tmp1_users = sortWithItem(_get_random__h29cgo(this.zd6_1).a60(toMutableList(usersList)), gameCreatorUser);
|
|
882
|
+
var tmp2_spectators = toList(this.ad7_1);
|
|
883
|
+
tmp_0(new StartGameMechanicAction(this.bd7_1, this.cd7_1, tmp0_version, this.yd6_1, tmp1_users, VOID, tmp2_spectators));
|
|
933
884
|
return Unit_instance;
|
|
934
885
|
} else if (tmp === 1) {
|
|
935
886
|
throw this.h9_1;
|
|
@@ -940,33 +891,33 @@
|
|
|
940
891
|
}
|
|
941
892
|
while (true);
|
|
942
893
|
};
|
|
943
|
-
protoOf(GameServer$roomOnCreate$slambda).
|
|
944
|
-
var i = new GameServer$roomOnCreate$slambda(this.
|
|
945
|
-
i.
|
|
946
|
-
i.
|
|
894
|
+
protoOf(GameServer$roomOnCreate$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
895
|
+
var i = new GameServer$roomOnCreate$slambda(this.xd6_1, this.yd6_1, this.zd6_1, this.ad7_1, this.bd7_1, this.cd7_1, completion);
|
|
896
|
+
i.dd7_1 = $this$dispatchAsync;
|
|
897
|
+
i.ed7_1 = store;
|
|
947
898
|
return i;
|
|
948
899
|
};
|
|
949
900
|
function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
|
|
950
901
|
var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation);
|
|
951
902
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
952
|
-
return i.
|
|
903
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
953
904
|
};
|
|
954
905
|
l.$arity = 2;
|
|
955
906
|
return l;
|
|
956
907
|
}
|
|
957
908
|
function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
|
|
958
|
-
this.
|
|
909
|
+
this.nd7_1 = $tableLite;
|
|
959
910
|
CoroutineImpl.call(this, resultContinuation);
|
|
960
911
|
}
|
|
961
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
962
|
-
var tmp = this.
|
|
912
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
913
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
963
914
|
tmp.g9_1 = Unit_instance;
|
|
964
915
|
tmp.h9_1 = null;
|
|
965
916
|
return tmp.m9();
|
|
966
917
|
};
|
|
967
918
|
protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
|
|
968
919
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
969
|
-
return this.
|
|
920
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
970
921
|
};
|
|
971
922
|
protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
|
|
972
923
|
var suspendResult = this.g9_1;
|
|
@@ -975,11 +926,11 @@
|
|
|
975
926
|
var tmp = this.e9_1;
|
|
976
927
|
if (tmp === 0) {
|
|
977
928
|
this.f9_1 = 1;
|
|
978
|
-
var tmp_0 = this.
|
|
929
|
+
var tmp_0 = this.pd7_1.dispatch;
|
|
979
930
|
var tmp0_reason = RestartRoundReason_getInstance();
|
|
980
|
-
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.
|
|
931
|
+
var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.nd7_1);
|
|
981
932
|
tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
|
|
982
|
-
this.
|
|
933
|
+
this.pd7_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
|
|
983
934
|
return Unit_instance;
|
|
984
935
|
} else if (tmp === 1) {
|
|
985
936
|
throw this.h9_1;
|
|
@@ -990,33 +941,33 @@
|
|
|
990
941
|
}
|
|
991
942
|
while (true);
|
|
992
943
|
};
|
|
993
|
-
protoOf(GameServer$roomOnContinueFromRound$slambda).
|
|
994
|
-
var i = new GameServer$roomOnContinueFromRound$slambda(this.
|
|
995
|
-
i.
|
|
996
|
-
i.
|
|
944
|
+
protoOf(GameServer$roomOnContinueFromRound$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
945
|
+
var i = new GameServer$roomOnContinueFromRound$slambda(this.nd7_1, completion);
|
|
946
|
+
i.od7_1 = $this$dispatchAsync;
|
|
947
|
+
i.pd7_1 = store;
|
|
997
948
|
return i;
|
|
998
949
|
};
|
|
999
950
|
function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
|
|
1000
951
|
var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
|
|
1001
952
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1002
|
-
return i.
|
|
953
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
1003
954
|
};
|
|
1004
955
|
l.$arity = 2;
|
|
1005
956
|
return l;
|
|
1006
957
|
}
|
|
1007
958
|
function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
|
|
1008
|
-
this.
|
|
959
|
+
this.yd7_1 = $spectators;
|
|
1009
960
|
CoroutineImpl.call(this, resultContinuation);
|
|
1010
961
|
}
|
|
1011
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1012
|
-
var tmp = this.
|
|
962
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
963
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
1013
964
|
tmp.g9_1 = Unit_instance;
|
|
1014
965
|
tmp.h9_1 = null;
|
|
1015
966
|
return tmp.m9();
|
|
1016
967
|
};
|
|
1017
968
|
protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1018
969
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1019
|
-
return this.
|
|
970
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1020
971
|
};
|
|
1021
972
|
protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
|
|
1022
973
|
var suspendResult = this.g9_1;
|
|
@@ -1025,7 +976,7 @@
|
|
|
1025
976
|
var tmp = this.e9_1;
|
|
1026
977
|
if (tmp === 0) {
|
|
1027
978
|
this.f9_1 = 1;
|
|
1028
|
-
this.
|
|
979
|
+
this.ad8_1.dispatch(new AddSpectatorsAction(toList(this.yd7_1)));
|
|
1029
980
|
return Unit_instance;
|
|
1030
981
|
} else if (tmp === 1) {
|
|
1031
982
|
throw this.h9_1;
|
|
@@ -1036,33 +987,33 @@
|
|
|
1036
987
|
}
|
|
1037
988
|
while (true);
|
|
1038
989
|
};
|
|
1039
|
-
protoOf(GameServer$addSpectatorsToRoom$slambda).
|
|
1040
|
-
var i = new GameServer$addSpectatorsToRoom$slambda(this.
|
|
1041
|
-
i.
|
|
1042
|
-
i.
|
|
990
|
+
protoOf(GameServer$addSpectatorsToRoom$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
991
|
+
var i = new GameServer$addSpectatorsToRoom$slambda(this.yd7_1, completion);
|
|
992
|
+
i.zd7_1 = $this$dispatchAsync;
|
|
993
|
+
i.ad8_1 = store;
|
|
1043
994
|
return i;
|
|
1044
995
|
};
|
|
1045
996
|
function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
|
|
1046
997
|
var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
|
|
1047
998
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1048
|
-
return i.
|
|
999
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
1049
1000
|
};
|
|
1050
1001
|
l.$arity = 2;
|
|
1051
1002
|
return l;
|
|
1052
1003
|
}
|
|
1053
1004
|
function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
|
|
1054
|
-
this.
|
|
1005
|
+
this.jd8_1 = $spectators;
|
|
1055
1006
|
CoroutineImpl.call(this, resultContinuation);
|
|
1056
1007
|
}
|
|
1057
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1058
|
-
var tmp = this.
|
|
1008
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
1009
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
1059
1010
|
tmp.g9_1 = Unit_instance;
|
|
1060
1011
|
tmp.h9_1 = null;
|
|
1061
1012
|
return tmp.m9();
|
|
1062
1013
|
};
|
|
1063
1014
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
|
|
1064
1015
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1065
|
-
return this.
|
|
1016
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1066
1017
|
};
|
|
1067
1018
|
protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
|
|
1068
1019
|
var suspendResult = this.g9_1;
|
|
@@ -1071,7 +1022,7 @@
|
|
|
1071
1022
|
var tmp = this.e9_1;
|
|
1072
1023
|
if (tmp === 0) {
|
|
1073
1024
|
this.f9_1 = 1;
|
|
1074
|
-
this.
|
|
1025
|
+
this.ld8_1.dispatch(new RemoveSpectatorsAction(toList(this.jd8_1)));
|
|
1075
1026
|
return Unit_instance;
|
|
1076
1027
|
} else if (tmp === 1) {
|
|
1077
1028
|
throw this.h9_1;
|
|
@@ -1082,34 +1033,34 @@
|
|
|
1082
1033
|
}
|
|
1083
1034
|
while (true);
|
|
1084
1035
|
};
|
|
1085
|
-
protoOf(GameServer$removeSpectatorsFromRoom$slambda).
|
|
1086
|
-
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.
|
|
1087
|
-
i.
|
|
1088
|
-
i.
|
|
1036
|
+
protoOf(GameServer$removeSpectatorsFromRoom$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
1037
|
+
var i = new GameServer$removeSpectatorsFromRoom$slambda(this.jd8_1, completion);
|
|
1038
|
+
i.kd8_1 = $this$dispatchAsync;
|
|
1039
|
+
i.ld8_1 = store;
|
|
1089
1040
|
return i;
|
|
1090
1041
|
};
|
|
1091
1042
|
function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
|
|
1092
1043
|
var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
|
|
1093
1044
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1094
|
-
return i.
|
|
1045
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
1095
1046
|
};
|
|
1096
1047
|
l.$arity = 2;
|
|
1097
1048
|
return l;
|
|
1098
1049
|
}
|
|
1099
1050
|
function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
|
|
1100
|
-
this.
|
|
1101
|
-
this.
|
|
1051
|
+
this.ud8_1 = $playerId;
|
|
1052
|
+
this.vd8_1 = this$0;
|
|
1102
1053
|
CoroutineImpl.call(this, resultContinuation);
|
|
1103
1054
|
}
|
|
1104
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1105
|
-
var tmp = this.
|
|
1055
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
1056
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
1106
1057
|
tmp.g9_1 = Unit_instance;
|
|
1107
1058
|
tmp.h9_1 = null;
|
|
1108
1059
|
return tmp.m9();
|
|
1109
1060
|
};
|
|
1110
1061
|
protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
|
|
1111
1062
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1112
|
-
return this.
|
|
1063
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1113
1064
|
};
|
|
1114
1065
|
protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
|
|
1115
1066
|
var suspendResult = this.g9_1;
|
|
@@ -1118,14 +1069,14 @@
|
|
|
1118
1069
|
var tmp = this.e9_1;
|
|
1119
1070
|
if (tmp === 0) {
|
|
1120
1071
|
this.f9_1 = 1;
|
|
1121
|
-
var table = this.
|
|
1122
|
-
var player = getPlayer(table.players, this.
|
|
1123
|
-
if (player.
|
|
1124
|
-
this.
|
|
1072
|
+
var table = this.xd8_1.state.f6x();
|
|
1073
|
+
var player = getPlayer(table.players, this.ud8_1);
|
|
1074
|
+
if (player.v73_1.a6h().r6f_1.isLive) {
|
|
1075
|
+
this.xd8_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.vd8_1).q95(player, table));
|
|
1125
1076
|
} else {
|
|
1126
|
-
var tmp_0 = this.
|
|
1077
|
+
var tmp_0 = this.xd8_1.dispatch;
|
|
1127
1078
|
var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
|
|
1128
|
-
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.
|
|
1079
|
+
tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.ud8_1));
|
|
1129
1080
|
}
|
|
1130
1081
|
return Unit_instance;
|
|
1131
1082
|
} else if (tmp === 1) {
|
|
@@ -1137,33 +1088,33 @@
|
|
|
1137
1088
|
}
|
|
1138
1089
|
while (true);
|
|
1139
1090
|
};
|
|
1140
|
-
protoOf(GameServer$roomRefreshPlayerState$slambda).
|
|
1141
|
-
var i = new GameServer$roomRefreshPlayerState$slambda(this.
|
|
1142
|
-
i.
|
|
1143
|
-
i.
|
|
1091
|
+
protoOf(GameServer$roomRefreshPlayerState$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
1092
|
+
var i = new GameServer$roomRefreshPlayerState$slambda(this.ud8_1, this.vd8_1, completion);
|
|
1093
|
+
i.wd8_1 = $this$dispatchAsync;
|
|
1094
|
+
i.xd8_1 = store;
|
|
1144
1095
|
return i;
|
|
1145
1096
|
};
|
|
1146
1097
|
function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
|
|
1147
1098
|
var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
|
|
1148
1099
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1149
|
-
return i.
|
|
1100
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
1150
1101
|
};
|
|
1151
1102
|
l.$arity = 2;
|
|
1152
1103
|
return l;
|
|
1153
1104
|
}
|
|
1154
1105
|
function GameServer$roomOnDelete$slambda(this$0, resultContinuation) {
|
|
1155
|
-
this.
|
|
1106
|
+
this.gd9_1 = this$0;
|
|
1156
1107
|
CoroutineImpl.call(this, resultContinuation);
|
|
1157
1108
|
}
|
|
1158
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1159
|
-
var tmp = this.
|
|
1109
|
+
protoOf(GameServer$roomOnDelete$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
1110
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
1160
1111
|
tmp.g9_1 = Unit_instance;
|
|
1161
1112
|
tmp.h9_1 = null;
|
|
1162
1113
|
return tmp.m9();
|
|
1163
1114
|
};
|
|
1164
1115
|
protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
|
|
1165
1116
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1166
|
-
return this.
|
|
1117
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1167
1118
|
};
|
|
1168
1119
|
protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
|
|
1169
1120
|
var suspendResult = this.g9_1;
|
|
@@ -1172,16 +1123,16 @@
|
|
|
1172
1123
|
var tmp = this.e9_1;
|
|
1173
1124
|
if (tmp === 0) {
|
|
1174
1125
|
this.f9_1 = 1;
|
|
1175
|
-
var it = this.
|
|
1126
|
+
var it = this.gd9_1.x6e().g6w_1;
|
|
1176
1127
|
var tmp_0;
|
|
1177
1128
|
if (it == null) {
|
|
1178
|
-
_get_logger__rkp4sl(this.
|
|
1129
|
+
_get_logger__rkp4sl(this.gd9_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
|
|
1179
1130
|
tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
1180
1131
|
} else {
|
|
1181
1132
|
tmp_0 = it;
|
|
1182
1133
|
}
|
|
1183
1134
|
var terminationState = tmp_0;
|
|
1184
|
-
this.
|
|
1135
|
+
this.id9_1.dispatch(new FinishGameMechanicAction(terminationState.y8b_1, this.gd9_1.x6e().f6x().isGameFinished));
|
|
1185
1136
|
return Unit_instance;
|
|
1186
1137
|
} else if (tmp === 1) {
|
|
1187
1138
|
throw this.h9_1;
|
|
@@ -1192,33 +1143,33 @@
|
|
|
1192
1143
|
}
|
|
1193
1144
|
while (true);
|
|
1194
1145
|
};
|
|
1195
|
-
protoOf(GameServer$roomOnDelete$slambda).
|
|
1196
|
-
var i = new GameServer$roomOnDelete$slambda(this.
|
|
1197
|
-
i.
|
|
1198
|
-
i.
|
|
1146
|
+
protoOf(GameServer$roomOnDelete$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
1147
|
+
var i = new GameServer$roomOnDelete$slambda(this.gd9_1, completion);
|
|
1148
|
+
i.hd9_1 = $this$dispatchAsync;
|
|
1149
|
+
i.id9_1 = store;
|
|
1199
1150
|
return i;
|
|
1200
1151
|
};
|
|
1201
1152
|
function GameServer$roomOnDelete$slambda_0(this$0, resultContinuation) {
|
|
1202
1153
|
var i = new GameServer$roomOnDelete$slambda(this$0, resultContinuation);
|
|
1203
1154
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1204
|
-
return i.
|
|
1155
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
1205
1156
|
};
|
|
1206
1157
|
l.$arity = 2;
|
|
1207
1158
|
return l;
|
|
1208
1159
|
}
|
|
1209
1160
|
function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
|
|
1210
|
-
this.
|
|
1161
|
+
this.rd9_1 = $enabled;
|
|
1211
1162
|
CoroutineImpl.call(this, resultContinuation);
|
|
1212
1163
|
}
|
|
1213
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1214
|
-
var tmp = this.
|
|
1164
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
1165
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
1215
1166
|
tmp.g9_1 = Unit_instance;
|
|
1216
1167
|
tmp.h9_1 = null;
|
|
1217
1168
|
return tmp.m9();
|
|
1218
1169
|
};
|
|
1219
1170
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
|
|
1220
1171
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1221
|
-
return this.
|
|
1172
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1222
1173
|
};
|
|
1223
1174
|
protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
|
|
1224
1175
|
var suspendResult = this.g9_1;
|
|
@@ -1227,7 +1178,7 @@
|
|
|
1227
1178
|
var tmp = this.e9_1;
|
|
1228
1179
|
if (tmp === 0) {
|
|
1229
1180
|
this.f9_1 = 1;
|
|
1230
|
-
this.
|
|
1181
|
+
this.td9_1.dispatch(new UpdateServerConfigAction(get_serverState(this.td9_1.state).ud9_1.wd9(this.rd9_1)));
|
|
1231
1182
|
return Unit_instance;
|
|
1232
1183
|
} else if (tmp === 1) {
|
|
1233
1184
|
throw this.h9_1;
|
|
@@ -1238,35 +1189,35 @@
|
|
|
1238
1189
|
}
|
|
1239
1190
|
while (true);
|
|
1240
1191
|
};
|
|
1241
|
-
protoOf(GameServer$setCanStartNewGameEnabled$slambda).
|
|
1242
|
-
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.
|
|
1243
|
-
i.
|
|
1244
|
-
i.
|
|
1192
|
+
protoOf(GameServer$setCanStartNewGameEnabled$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
1193
|
+
var i = new GameServer$setCanStartNewGameEnabled$slambda(this.rd9_1, completion);
|
|
1194
|
+
i.sd9_1 = $this$dispatchAsync;
|
|
1195
|
+
i.td9_1 = store;
|
|
1245
1196
|
return i;
|
|
1246
1197
|
};
|
|
1247
1198
|
function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
|
|
1248
1199
|
var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
|
|
1249
1200
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1250
|
-
return i.
|
|
1201
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
1251
1202
|
};
|
|
1252
1203
|
l.$arity = 2;
|
|
1253
1204
|
return l;
|
|
1254
1205
|
}
|
|
1255
1206
|
function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1207
|
+
this.fda_1 = $reason;
|
|
1208
|
+
this.gda_1 = this$0;
|
|
1209
|
+
this.hda_1 = $roomId;
|
|
1259
1210
|
CoroutineImpl.call(this, resultContinuation);
|
|
1260
1211
|
}
|
|
1261
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1262
|
-
var tmp = this.
|
|
1212
|
+
protoOf(GameServer$shutdown$slambda).wb3 = function ($this$dispatchAsync, store, $completion) {
|
|
1213
|
+
var tmp = this.xb3($this$dispatchAsync, store, $completion);
|
|
1263
1214
|
tmp.g9_1 = Unit_instance;
|
|
1264
1215
|
tmp.h9_1 = null;
|
|
1265
1216
|
return tmp.m9();
|
|
1266
1217
|
};
|
|
1267
1218
|
protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
|
|
1268
1219
|
var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
|
|
1269
|
-
return this.
|
|
1220
|
+
return this.wb3(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
|
|
1270
1221
|
};
|
|
1271
1222
|
protoOf(GameServer$shutdown$slambda).m9 = function () {
|
|
1272
1223
|
var suspendResult = this.g9_1;
|
|
@@ -1275,11 +1226,11 @@
|
|
|
1275
1226
|
var tmp = this.e9_1;
|
|
1276
1227
|
if (tmp === 0) {
|
|
1277
1228
|
this.f9_1 = 1;
|
|
1278
|
-
var state = this.
|
|
1229
|
+
var state = this.jda_1.store.state;
|
|
1279
1230
|
if (state.g6x()) {
|
|
1280
|
-
var tmp0_elvis_lhs = toDomainEnumSafe(this.
|
|
1231
|
+
var tmp0_elvis_lhs = toDomainEnumSafe(this.fda_1, get_serverShutdownReasonMapping());
|
|
1281
1232
|
var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
|
|
1282
|
-
var tmp_0 = this.
|
|
1233
|
+
var tmp_0 = this.jda_1.dispatch;
|
|
1283
1234
|
var tmp_1 = Companion_instance_0;
|
|
1284
1235
|
var tmp_2;
|
|
1285
1236
|
switch (shutdownReason.n2_1) {
|
|
@@ -1293,10 +1244,10 @@
|
|
|
1293
1244
|
noWhenBranchMatchedException();
|
|
1294
1245
|
break;
|
|
1295
1246
|
}
|
|
1296
|
-
tmp_0(tmp_1.withAnalytics(tmp_2, this.
|
|
1247
|
+
tmp_0(tmp_1.withAnalytics(tmp_2, this.gda_1.table.isGameFinished, this.gda_1.table));
|
|
1297
1248
|
} else {
|
|
1298
|
-
_get_logger__rkp4sl(this.
|
|
1299
|
-
this.
|
|
1249
|
+
_get_logger__rkp4sl(this.gda_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.hda_1);
|
|
1250
|
+
this.jda_1.dispatch(new ClearAction());
|
|
1300
1251
|
}
|
|
1301
1252
|
return Unit_instance;
|
|
1302
1253
|
} else if (tmp === 1) {
|
|
@@ -1308,22 +1259,22 @@
|
|
|
1308
1259
|
}
|
|
1309
1260
|
while (true);
|
|
1310
1261
|
};
|
|
1311
|
-
protoOf(GameServer$shutdown$slambda).
|
|
1312
|
-
var i = new GameServer$shutdown$slambda(this.
|
|
1313
|
-
i.
|
|
1314
|
-
i.
|
|
1262
|
+
protoOf(GameServer$shutdown$slambda).xb3 = function ($this$dispatchAsync, store, completion) {
|
|
1263
|
+
var i = new GameServer$shutdown$slambda(this.fda_1, this.gda_1, this.hda_1, completion);
|
|
1264
|
+
i.ida_1 = $this$dispatchAsync;
|
|
1265
|
+
i.jda_1 = store;
|
|
1315
1266
|
return i;
|
|
1316
1267
|
};
|
|
1317
1268
|
function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
|
|
1318
1269
|
var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
|
|
1319
1270
|
var l = function ($this$dispatchAsync, store, $completion) {
|
|
1320
|
-
return i.
|
|
1271
|
+
return i.wb3($this$dispatchAsync, store, $completion);
|
|
1321
1272
|
};
|
|
1322
1273
|
l.$arity = 2;
|
|
1323
1274
|
return l;
|
|
1324
1275
|
}
|
|
1325
1276
|
function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
|
|
1326
|
-
preloadedState = preloadedState === VOID ? new AppState(VOID,
|
|
1277
|
+
preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.kda()) : preloadedState;
|
|
1327
1278
|
var tmp;
|
|
1328
1279
|
if (externalReducers === VOID) {
|
|
1329
1280
|
// Inline function 'kotlin.collections.listOf' call
|
|
@@ -1346,28 +1297,28 @@
|
|
|
1346
1297
|
// Inline function 'org.kodein.type.generic' call
|
|
1347
1298
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
1348
1299
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
1349
|
-
tmp_1.
|
|
1300
|
+
tmp_1.td3_1 = Instance(di, tmp$ret$2, null).m67(this, logger$factory());
|
|
1350
1301
|
var tmp_3 = this;
|
|
1351
1302
|
// Inline function 'org.kodein.di.instance' call
|
|
1352
1303
|
// Inline function 'org.kodein.type.generic' call
|
|
1353
1304
|
var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
1354
1305
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1355
|
-
tmp_3.
|
|
1306
|
+
tmp_3.ud3_1 = Instance(di, tmp$ret$4, null).m67(this, toClientEventsObserver$factory());
|
|
1356
1307
|
var tmp_5 = this;
|
|
1357
1308
|
// Inline function 'org.kodein.di.instance' call
|
|
1358
1309
|
// Inline function 'org.kodein.type.generic' call
|
|
1359
1310
|
var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
1360
1311
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
1361
|
-
tmp_5.
|
|
1312
|
+
tmp_5.vd3_1 = Instance(di, tmp$ret$6, null).m67(this, playerConnectionInteractor$factory());
|
|
1362
1313
|
var tmp_7 = this;
|
|
1363
|
-
tmp_7.
|
|
1314
|
+
tmp_7.wd3_1 = lazy(GameServer$random$delegate$lambda(this));
|
|
1364
1315
|
var tmp_8 = this;
|
|
1365
|
-
var tmp0_externalMiddlewares = plus(storeContract.
|
|
1366
|
-
var tmp1_externalReducers = plus(storeContract.
|
|
1367
|
-
tmp_8.
|
|
1316
|
+
var tmp0_externalMiddlewares = plus(storeContract.k9b(), externalMiddlewares);
|
|
1317
|
+
var tmp1_externalReducers = plus(storeContract.j9b(), externalReducers);
|
|
1318
|
+
tmp_8.xd3_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
|
|
1368
1319
|
}
|
|
1369
1320
|
protoOf(GameServer).s6v = function () {
|
|
1370
|
-
return this.
|
|
1321
|
+
return this.xd3_1;
|
|
1371
1322
|
};
|
|
1372
1323
|
protoOf(GameServer).w5o = function () {
|
|
1373
1324
|
return this.x6e().f6x().id;
|
|
@@ -1391,44 +1342,44 @@
|
|
|
1391
1342
|
};
|
|
1392
1343
|
protoOf(GameServer).fromClientEvent = function (action) {
|
|
1393
1344
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
|
|
1394
|
-
this.
|
|
1345
|
+
this.xd3_1.e6x(GameServer$fromClientEvent$slambda_0(action, null));
|
|
1395
1346
|
};
|
|
1396
1347
|
protoOf(GameServer).playerLostConnection = function (playerId) {
|
|
1397
1348
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
|
|
1398
|
-
this.
|
|
1349
|
+
this.xd3_1.e6x(GameServer$playerLostConnection$slambda_0(playerId, null));
|
|
1399
1350
|
};
|
|
1400
1351
|
protoOf(GameServer).playerLive = function (playerId) {
|
|
1401
1352
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
|
|
1402
|
-
this.
|
|
1353
|
+
this.xd3_1.e6x(GameServer$playerLive$slambda_0(playerId, null));
|
|
1403
1354
|
};
|
|
1404
1355
|
protoOf(GameServer).playerLeft = function (playerId) {
|
|
1405
1356
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
|
|
1406
|
-
this.
|
|
1357
|
+
this.xd3_1.e6x(GameServer$playerLeft$slambda_0(playerId, null));
|
|
1407
1358
|
};
|
|
1408
|
-
protoOf(GameServer).
|
|
1409
|
-
this.
|
|
1359
|
+
protoOf(GameServer).lda = function (roomId, gameCreatorId, config, users, spectators) {
|
|
1360
|
+
this.xd3_1.e6x(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, this, spectators, config, roomId, null));
|
|
1410
1361
|
};
|
|
1411
1362
|
protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
|
|
1412
|
-
this.
|
|
1363
|
+
this.xd3_1.e6x(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
|
|
1413
1364
|
};
|
|
1414
1365
|
protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
|
|
1415
|
-
this.
|
|
1366
|
+
this.xd3_1.e6x(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
|
|
1416
1367
|
};
|
|
1417
1368
|
protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
|
|
1418
|
-
this.
|
|
1369
|
+
this.xd3_1.e6x(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
|
|
1419
1370
|
};
|
|
1420
1371
|
protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
|
|
1421
1372
|
_get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
|
|
1422
|
-
this.
|
|
1373
|
+
this.xd3_1.e6x(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
|
|
1423
1374
|
};
|
|
1424
|
-
protoOf(GameServer).
|
|
1425
|
-
this.
|
|
1375
|
+
protoOf(GameServer).mda = function (newRid) {
|
|
1376
|
+
this.xd3_1.e6x(GameServer$roomOnDelete$slambda_0(this, null));
|
|
1426
1377
|
};
|
|
1427
1378
|
protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
|
|
1428
|
-
this.
|
|
1379
|
+
this.xd3_1.e6x(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
|
|
1429
1380
|
};
|
|
1430
|
-
protoOf(GameServer).
|
|
1431
|
-
this.
|
|
1381
|
+
protoOf(GameServer).nda = function (reason, roomId) {
|
|
1382
|
+
this.xd3_1.e6x(GameServer$shutdown$slambda_0(reason, this, roomId, null));
|
|
1432
1383
|
};
|
|
1433
1384
|
protoOf(GameServer).clear = function () {
|
|
1434
1385
|
return this.a2();
|
|
@@ -1502,16 +1453,16 @@
|
|
|
1502
1453
|
return ServerShutdownReason_ERROR_instance;
|
|
1503
1454
|
}
|
|
1504
1455
|
function ServerConfig(canStartNewGame) {
|
|
1505
|
-
this.
|
|
1456
|
+
this.vd9_1 = canStartNewGame;
|
|
1506
1457
|
}
|
|
1507
|
-
protoOf(ServerConfig).
|
|
1458
|
+
protoOf(ServerConfig).wd9 = function (canStartNewGame) {
|
|
1508
1459
|
return new ServerConfig(canStartNewGame);
|
|
1509
1460
|
};
|
|
1510
1461
|
protoOf(ServerConfig).toString = function () {
|
|
1511
|
-
return 'ServerConfig(canStartNewGame=' + this.
|
|
1462
|
+
return 'ServerConfig(canStartNewGame=' + this.vd9_1 + ')';
|
|
1512
1463
|
};
|
|
1513
1464
|
protoOf(ServerConfig).hashCode = function () {
|
|
1514
|
-
return getBooleanHashCode(this.
|
|
1465
|
+
return getBooleanHashCode(this.vd9_1);
|
|
1515
1466
|
};
|
|
1516
1467
|
protoOf(ServerConfig).equals = function (other) {
|
|
1517
1468
|
if (this === other)
|
|
@@ -1519,7 +1470,7 @@
|
|
|
1519
1470
|
if (!(other instanceof ServerConfig))
|
|
1520
1471
|
return false;
|
|
1521
1472
|
var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
|
|
1522
|
-
if (!(this.
|
|
1473
|
+
if (!(this.vd9_1 === tmp0_other_with_cast.vd9_1))
|
|
1523
1474
|
return false;
|
|
1524
1475
|
return true;
|
|
1525
1476
|
};
|
|
@@ -1751,18 +1702,18 @@
|
|
|
1751
1702
|
function ToClientEventsObserver() {
|
|
1752
1703
|
}
|
|
1753
1704
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
|
|
1754
|
-
this.
|
|
1755
|
-
this.
|
|
1705
|
+
this.xda_1 = this$0;
|
|
1706
|
+
this.yda_1 = $actions;
|
|
1756
1707
|
CoroutineImpl.call(this, resultContinuation);
|
|
1757
1708
|
}
|
|
1758
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1759
|
-
var tmp = this.
|
|
1709
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).fdb = function ($this$flow, $completion) {
|
|
1710
|
+
var tmp = this.gdb($this$flow, $completion);
|
|
1760
1711
|
tmp.g9_1 = Unit_instance;
|
|
1761
1712
|
tmp.h9_1 = null;
|
|
1762
1713
|
return tmp.m9();
|
|
1763
1714
|
};
|
|
1764
1715
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
|
|
1765
|
-
return this.
|
|
1716
|
+
return this.fdb((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
1766
1717
|
};
|
|
1767
1718
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
|
|
1768
1719
|
var suspendResult = this.g9_1;
|
|
@@ -1773,23 +1724,23 @@
|
|
|
1773
1724
|
case 0:
|
|
1774
1725
|
this.f9_1 = 4;
|
|
1775
1726
|
var tmp_0 = this;
|
|
1776
|
-
tmp_0.
|
|
1727
|
+
tmp_0.adb_1 = this.xda_1.ldb_1;
|
|
1777
1728
|
var tmp_1 = this;
|
|
1778
|
-
tmp_1.
|
|
1779
|
-
this.
|
|
1729
|
+
tmp_1.bdb_1 = transformToEmits(this.xda_1, this.yda_1);
|
|
1730
|
+
this.cdb_1 = this.bdb_1.j();
|
|
1780
1731
|
this.e9_1 = 1;
|
|
1781
1732
|
continue $sm;
|
|
1782
1733
|
case 1:
|
|
1783
|
-
if (!this.
|
|
1734
|
+
if (!this.cdb_1.k()) {
|
|
1784
1735
|
this.e9_1 = 3;
|
|
1785
1736
|
continue $sm;
|
|
1786
1737
|
}
|
|
1787
1738
|
|
|
1788
|
-
this.
|
|
1739
|
+
this.ddb_1 = this.cdb_1.l();
|
|
1789
1740
|
var tmp_2 = this;
|
|
1790
|
-
tmp_2.
|
|
1741
|
+
tmp_2.edb_1 = this.ddb_1;
|
|
1791
1742
|
this.e9_1 = 2;
|
|
1792
|
-
suspendResult = this.
|
|
1743
|
+
suspendResult = this.zda_1.p18(this.edb_1, this);
|
|
1793
1744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1794
1745
|
return suspendResult;
|
|
1795
1746
|
}
|
|
@@ -1800,10 +1751,10 @@
|
|
|
1800
1751
|
continue $sm;
|
|
1801
1752
|
case 3:
|
|
1802
1753
|
l$ret$1: do {
|
|
1803
|
-
var this_0 = this.
|
|
1754
|
+
var this_0 = this.xda_1.kdb_1;
|
|
1804
1755
|
while (true) {
|
|
1805
1756
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
1806
|
-
var upd = cur - this.
|
|
1757
|
+
var upd = cur - this.yda_1.m() | 0;
|
|
1807
1758
|
if (this_0.atomicfu$compareAndSet(cur, upd)) {
|
|
1808
1759
|
break l$ret$1;
|
|
1809
1760
|
}
|
|
@@ -1825,15 +1776,15 @@
|
|
|
1825
1776
|
}
|
|
1826
1777
|
while (true);
|
|
1827
1778
|
};
|
|
1828
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).
|
|
1829
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.
|
|
1830
|
-
i.
|
|
1779
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).gdb = function ($this$flow, completion) {
|
|
1780
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.xda_1, this.yda_1, completion);
|
|
1781
|
+
i.zda_1 = $this$flow;
|
|
1831
1782
|
return i;
|
|
1832
1783
|
};
|
|
1833
1784
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
|
|
1834
1785
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
|
|
1835
1786
|
var l = function ($this$flow, $completion) {
|
|
1836
|
-
return i.
|
|
1787
|
+
return i.fdb($this$flow, $completion);
|
|
1837
1788
|
};
|
|
1838
1789
|
l.$arity = 1;
|
|
1839
1790
|
return l;
|
|
@@ -1906,29 +1857,29 @@
|
|
|
1906
1857
|
return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
|
|
1907
1858
|
}
|
|
1908
1859
|
function mapFromGroupKey(_this__u8e3s4, $this) {
|
|
1909
|
-
var tmp = $this.
|
|
1860
|
+
var tmp = $this.jdb_1.b6m();
|
|
1910
1861
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1911
|
-
var this_0 = _this__u8e3s4.
|
|
1862
|
+
var this_0 = _this__u8e3s4.odb_1;
|
|
1912
1863
|
var tmp_0 = copyToArray(this_0);
|
|
1913
1864
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1914
|
-
var this_1 = _this__u8e3s4.
|
|
1865
|
+
var this_1 = _this__u8e3s4.pdb_1;
|
|
1915
1866
|
var tmp$ret$1 = copyToArray(this_1);
|
|
1916
|
-
return new ActionDeliveryPayload(_this__u8e3s4.
|
|
1867
|
+
return new ActionDeliveryPayload(_this__u8e3s4.ndb_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.qdb_1);
|
|
1917
1868
|
}
|
|
1918
1869
|
function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1870
|
+
this.ndb_1 = tableId;
|
|
1871
|
+
this.odb_1 = includePlayers;
|
|
1872
|
+
this.pdb_1 = excludePlayers;
|
|
1873
|
+
this.qdb_1 = deliveryType;
|
|
1923
1874
|
}
|
|
1924
1875
|
protoOf(GroupKey).toString = function () {
|
|
1925
|
-
return 'GroupKey(tableId=' + this.
|
|
1876
|
+
return 'GroupKey(tableId=' + this.ndb_1 + ', includePlayers=' + toString(this.odb_1) + ', excludePlayers=' + toString(this.pdb_1) + ', deliveryType=' + this.qdb_1.toString() + ')';
|
|
1926
1877
|
};
|
|
1927
1878
|
protoOf(GroupKey).hashCode = function () {
|
|
1928
|
-
var result = getStringHashCode(this.
|
|
1929
|
-
result = imul(result, 31) + hashCode(this.
|
|
1930
|
-
result = imul(result, 31) + hashCode(this.
|
|
1931
|
-
result = imul(result, 31) + this.
|
|
1879
|
+
var result = getStringHashCode(this.ndb_1);
|
|
1880
|
+
result = imul(result, 31) + hashCode(this.odb_1) | 0;
|
|
1881
|
+
result = imul(result, 31) + hashCode(this.pdb_1) | 0;
|
|
1882
|
+
result = imul(result, 31) + this.qdb_1.hashCode() | 0;
|
|
1932
1883
|
return result;
|
|
1933
1884
|
};
|
|
1934
1885
|
protoOf(GroupKey).equals = function (other) {
|
|
@@ -1937,35 +1888,35 @@
|
|
|
1937
1888
|
if (!(other instanceof GroupKey))
|
|
1938
1889
|
return false;
|
|
1939
1890
|
var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
|
|
1940
|
-
if (!(this.
|
|
1891
|
+
if (!(this.ndb_1 === tmp0_other_with_cast.ndb_1))
|
|
1941
1892
|
return false;
|
|
1942
|
-
if (!equals(this.
|
|
1893
|
+
if (!equals(this.odb_1, tmp0_other_with_cast.odb_1))
|
|
1943
1894
|
return false;
|
|
1944
|
-
if (!equals(this.
|
|
1895
|
+
if (!equals(this.pdb_1, tmp0_other_with_cast.pdb_1))
|
|
1945
1896
|
return false;
|
|
1946
|
-
if (!this.
|
|
1897
|
+
if (!this.qdb_1.equals(tmp0_other_with_cast.qdb_1))
|
|
1947
1898
|
return false;
|
|
1948
1899
|
return true;
|
|
1949
1900
|
};
|
|
1950
1901
|
function Companion_0() {
|
|
1951
|
-
this.
|
|
1902
|
+
this.rdb_1 = 6;
|
|
1952
1903
|
}
|
|
1953
|
-
var
|
|
1954
|
-
function
|
|
1955
|
-
return
|
|
1904
|
+
var Companion_instance_8;
|
|
1905
|
+
function Companion_getInstance_1() {
|
|
1906
|
+
return Companion_instance_8;
|
|
1956
1907
|
}
|
|
1957
1908
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
|
|
1958
|
-
this.
|
|
1909
|
+
this.adc_1 = this$0;
|
|
1959
1910
|
CoroutineImpl.call(this, resultContinuation);
|
|
1960
1911
|
}
|
|
1961
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1962
|
-
var tmp = this.
|
|
1912
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).cdc = function (actions, $completion) {
|
|
1913
|
+
var tmp = this.ddc(actions, $completion);
|
|
1963
1914
|
tmp.g9_1 = Unit_instance;
|
|
1964
1915
|
tmp.h9_1 = null;
|
|
1965
1916
|
return tmp.m9();
|
|
1966
1917
|
};
|
|
1967
1918
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
|
|
1968
|
-
return this.
|
|
1919
|
+
return this.cdc((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
|
|
1969
1920
|
};
|
|
1970
1921
|
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
|
|
1971
1922
|
var suspendResult = this.g9_1;
|
|
@@ -1974,7 +1925,7 @@
|
|
|
1974
1925
|
var tmp = this.e9_1;
|
|
1975
1926
|
if (tmp === 0) {
|
|
1976
1927
|
this.f9_1 = 1;
|
|
1977
|
-
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.
|
|
1928
|
+
return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.adc_1, this.bdc_1, null));
|
|
1978
1929
|
} else if (tmp === 1) {
|
|
1979
1930
|
throw this.h9_1;
|
|
1980
1931
|
}
|
|
@@ -1984,23 +1935,23 @@
|
|
|
1984
1935
|
}
|
|
1985
1936
|
while (true);
|
|
1986
1937
|
};
|
|
1987
|
-
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).
|
|
1988
|
-
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.
|
|
1989
|
-
i.
|
|
1938
|
+
protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).ddc = function (actions, completion) {
|
|
1939
|
+
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.adc_1, completion);
|
|
1940
|
+
i.bdc_1 = actions;
|
|
1990
1941
|
return i;
|
|
1991
1942
|
};
|
|
1992
1943
|
function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
|
|
1993
1944
|
var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
|
|
1994
1945
|
var l = function (actions, $completion) {
|
|
1995
|
-
return i.
|
|
1946
|
+
return i.cdc(actions, $completion);
|
|
1996
1947
|
};
|
|
1997
1948
|
l.$arity = 1;
|
|
1998
1949
|
return l;
|
|
1999
1950
|
}
|
|
2000
1951
|
function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
|
|
2001
1952
|
CoroutineImpl.call(this, resultContinuation);
|
|
2002
|
-
this.
|
|
2003
|
-
this.
|
|
1953
|
+
this.mdc_1 = _this__u8e3s4;
|
|
1954
|
+
this.ndc_1 = fromEvent;
|
|
2004
1955
|
}
|
|
2005
1956
|
protoOf($sentEventCOROUTINE$0).m9 = function () {
|
|
2006
1957
|
var suspendResult = this.g9_1;
|
|
@@ -2011,9 +1962,9 @@
|
|
|
2011
1962
|
case 0:
|
|
2012
1963
|
this.f9_1 = 2;
|
|
2013
1964
|
var tmp_0 = this;
|
|
2014
|
-
tmp_0.
|
|
1965
|
+
tmp_0.odc_1 = this.mdc_1.ldb_1;
|
|
2015
1966
|
l$ret$1: do {
|
|
2016
|
-
var this_0 = this.
|
|
1967
|
+
var this_0 = this.mdc_1.kdb_1;
|
|
2017
1968
|
while (true) {
|
|
2018
1969
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2019
1970
|
var upd = cur + 1 | 0;
|
|
@@ -2024,7 +1975,7 @@
|
|
|
2024
1975
|
}
|
|
2025
1976
|
while (false);
|
|
2026
1977
|
this.e9_1 = 1;
|
|
2027
|
-
suspendResult = this.
|
|
1978
|
+
suspendResult = this.mdc_1.mdb_1.p18(this.ndc_1, this);
|
|
2028
1979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2029
1980
|
return suspendResult;
|
|
2030
1981
|
}
|
|
@@ -2048,7 +1999,7 @@
|
|
|
2048
1999
|
};
|
|
2049
2000
|
function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
2050
2001
|
CoroutineImpl.call(this, resultContinuation);
|
|
2051
|
-
this.
|
|
2002
|
+
this.xdc_1 = _this__u8e3s4;
|
|
2052
2003
|
}
|
|
2053
2004
|
protoOf($waitForCOROUTINE$1).m9 = function () {
|
|
2054
2005
|
var suspendResult = this.g9_1;
|
|
@@ -2059,12 +2010,12 @@
|
|
|
2059
2010
|
case 0:
|
|
2060
2011
|
this.f9_1 = 5;
|
|
2061
2012
|
var tmp_0 = this;
|
|
2062
|
-
tmp_0.
|
|
2063
|
-
this.
|
|
2013
|
+
tmp_0.ydc_1 = this.xdc_1.ldb_1;
|
|
2014
|
+
this.zdc_1 = 0;
|
|
2064
2015
|
this.e9_1 = 1;
|
|
2065
2016
|
continue $sm;
|
|
2066
2017
|
case 1:
|
|
2067
|
-
if (!!(this.
|
|
2018
|
+
if (!!(this.xdc_1.kdb_1.kotlinx$atomicfu$value === 0)) {
|
|
2068
2019
|
this.e9_1 = 4;
|
|
2069
2020
|
continue $sm;
|
|
2070
2021
|
}
|
|
@@ -2077,9 +2028,9 @@
|
|
|
2077
2028
|
|
|
2078
2029
|
continue $sm;
|
|
2079
2030
|
case 2:
|
|
2080
|
-
this.
|
|
2081
|
-
if (this.
|
|
2082
|
-
this.
|
|
2031
|
+
this.zdc_1 = this.zdc_1 + 1 | 0;
|
|
2032
|
+
if (this.zdc_1 > 6) {
|
|
2033
|
+
this.xdc_1.idb_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.xdc_1.kdb_1.kotlinx$atomicfu$value);
|
|
2083
2034
|
this.e9_1 = 4;
|
|
2084
2035
|
continue $sm;
|
|
2085
2036
|
} else {
|
|
@@ -2107,42 +2058,42 @@
|
|
|
2107
2058
|
while (true);
|
|
2108
2059
|
};
|
|
2109
2060
|
function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
|
|
2110
|
-
this.
|
|
2111
|
-
this.
|
|
2112
|
-
this.
|
|
2113
|
-
this.
|
|
2061
|
+
this.hdb_1 = serverReduxConfig;
|
|
2062
|
+
this.idb_1 = logger;
|
|
2063
|
+
this.jdb_1 = idsProvider;
|
|
2064
|
+
this.kdb_1 = atomic$ref$1(0);
|
|
2114
2065
|
var tmp = this;
|
|
2115
2066
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
2116
|
-
tmp.
|
|
2117
|
-
this.
|
|
2067
|
+
tmp.ldb_1 = get_atomicfu$reentrantLock();
|
|
2068
|
+
this.mdb_1 = MutableSharedFlow();
|
|
2118
2069
|
}
|
|
2119
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2070
|
+
protoOf(ToClientEventsObserverImpl).oda = function (fromEvent, $completion) {
|
|
2120
2071
|
var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
|
|
2121
2072
|
tmp.g9_1 = Unit_instance;
|
|
2122
2073
|
tmp.h9_1 = null;
|
|
2123
2074
|
return tmp.m9();
|
|
2124
2075
|
};
|
|
2125
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2076
|
+
protoOf(ToClientEventsObserverImpl).r9i = function ($completion) {
|
|
2126
2077
|
var tmp = new $waitForCOROUTINE$1(this, $completion);
|
|
2127
2078
|
tmp.g9_1 = Unit_instance;
|
|
2128
2079
|
tmp.h9_1 = null;
|
|
2129
2080
|
return tmp.m9();
|
|
2130
2081
|
};
|
|
2131
|
-
protoOf(ToClientEventsObserverImpl).
|
|
2132
|
-
if (!this.
|
|
2133
|
-
return this.
|
|
2082
|
+
protoOf(ToClientEventsObserverImpl).vb8 = function () {
|
|
2083
|
+
if (!this.hdb_1.enabledCombinedEvents) {
|
|
2084
|
+
return this.mdb_1;
|
|
2134
2085
|
}
|
|
2135
|
-
var tmp = windowedByInterval(this.
|
|
2086
|
+
var tmp = windowedByInterval(this.mdb_1, toLong(this.hdb_1.combinedEventsPeriod));
|
|
2136
2087
|
return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
|
|
2137
2088
|
};
|
|
2138
2089
|
function UpdateServerConfigAction(serverConfig) {
|
|
2139
|
-
this.
|
|
2090
|
+
this.add_1 = serverConfig;
|
|
2140
2091
|
}
|
|
2141
2092
|
protoOf(UpdateServerConfigAction).toString = function () {
|
|
2142
|
-
return 'UpdateServerConfigAction(serverConfig=' + this.
|
|
2093
|
+
return 'UpdateServerConfigAction(serverConfig=' + this.add_1.toString() + ')';
|
|
2143
2094
|
};
|
|
2144
2095
|
protoOf(UpdateServerConfigAction).hashCode = function () {
|
|
2145
|
-
return this.
|
|
2096
|
+
return this.add_1.hashCode();
|
|
2146
2097
|
};
|
|
2147
2098
|
protoOf(UpdateServerConfigAction).equals = function (other) {
|
|
2148
2099
|
if (this === other)
|
|
@@ -2150,18 +2101,18 @@
|
|
|
2150
2101
|
if (!(other instanceof UpdateServerConfigAction))
|
|
2151
2102
|
return false;
|
|
2152
2103
|
var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
|
|
2153
|
-
if (!this.
|
|
2104
|
+
if (!this.add_1.equals(tmp0_other_with_cast.add_1))
|
|
2154
2105
|
return false;
|
|
2155
2106
|
return true;
|
|
2156
2107
|
};
|
|
2157
2108
|
function AddSpectatorsAction(spectators) {
|
|
2158
|
-
this.
|
|
2109
|
+
this.bdd_1 = spectators;
|
|
2159
2110
|
}
|
|
2160
2111
|
protoOf(AddSpectatorsAction).toString = function () {
|
|
2161
|
-
return 'AddSpectatorsAction(spectators=' + toString(this.
|
|
2112
|
+
return 'AddSpectatorsAction(spectators=' + toString(this.bdd_1) + ')';
|
|
2162
2113
|
};
|
|
2163
2114
|
protoOf(AddSpectatorsAction).hashCode = function () {
|
|
2164
|
-
return hashCode(this.
|
|
2115
|
+
return hashCode(this.bdd_1);
|
|
2165
2116
|
};
|
|
2166
2117
|
protoOf(AddSpectatorsAction).equals = function (other) {
|
|
2167
2118
|
if (this === other)
|
|
@@ -2169,18 +2120,18 @@
|
|
|
2169
2120
|
if (!(other instanceof AddSpectatorsAction))
|
|
2170
2121
|
return false;
|
|
2171
2122
|
var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
|
|
2172
|
-
if (!equals(this.
|
|
2123
|
+
if (!equals(this.bdd_1, tmp0_other_with_cast.bdd_1))
|
|
2173
2124
|
return false;
|
|
2174
2125
|
return true;
|
|
2175
2126
|
};
|
|
2176
2127
|
function RemoveSpectatorsAction(spectators) {
|
|
2177
|
-
this.
|
|
2128
|
+
this.cdd_1 = spectators;
|
|
2178
2129
|
}
|
|
2179
2130
|
protoOf(RemoveSpectatorsAction).toString = function () {
|
|
2180
|
-
return 'RemoveSpectatorsAction(spectators=' + toString(this.
|
|
2131
|
+
return 'RemoveSpectatorsAction(spectators=' + toString(this.cdd_1) + ')';
|
|
2181
2132
|
};
|
|
2182
2133
|
protoOf(RemoveSpectatorsAction).hashCode = function () {
|
|
2183
|
-
return hashCode(this.
|
|
2134
|
+
return hashCode(this.cdd_1);
|
|
2184
2135
|
};
|
|
2185
2136
|
protoOf(RemoveSpectatorsAction).equals = function (other) {
|
|
2186
2137
|
if (this === other)
|
|
@@ -2188,7 +2139,7 @@
|
|
|
2188
2139
|
if (!(other instanceof RemoveSpectatorsAction))
|
|
2189
2140
|
return false;
|
|
2190
2141
|
var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
|
|
2191
|
-
if (!equals(this.
|
|
2142
|
+
if (!equals(this.cdd_1, tmp0_other_with_cast.cdd_1))
|
|
2192
2143
|
return false;
|
|
2193
2144
|
return true;
|
|
2194
2145
|
};
|
|
@@ -2196,66 +2147,66 @@
|
|
|
2196
2147
|
}
|
|
2197
2148
|
function _get_asyncProvider__jbpyhw($this) {
|
|
2198
2149
|
// Inline function 'kotlin.getValue' call
|
|
2199
|
-
var this_0 = $this.
|
|
2150
|
+
var this_0 = $this.idd_1;
|
|
2200
2151
|
asyncProvider$factory_0();
|
|
2201
2152
|
return this_0.u();
|
|
2202
2153
|
}
|
|
2203
2154
|
function _get_logger__rkp4sl_0($this) {
|
|
2204
2155
|
// Inline function 'kotlin.getValue' call
|
|
2205
|
-
var this_0 = $this.
|
|
2156
|
+
var this_0 = $this.jdd_1;
|
|
2206
2157
|
logger$factory_2();
|
|
2207
2158
|
return this_0.u();
|
|
2208
2159
|
}
|
|
2209
2160
|
function _get_playerConnectionInteractor__si6cxf_0($this) {
|
|
2210
2161
|
// Inline function 'kotlin.getValue' call
|
|
2211
|
-
var this_0 = $this.
|
|
2162
|
+
var this_0 = $this.kdd_1;
|
|
2212
2163
|
playerConnectionInteractor$factory_2();
|
|
2213
2164
|
return this_0.u();
|
|
2214
2165
|
}
|
|
2215
2166
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
2216
2167
|
// Inline function 'kotlin.getValue' call
|
|
2217
|
-
var this_0 = $this.
|
|
2168
|
+
var this_0 = $this.ldd_1;
|
|
2218
2169
|
lastCardInteractor$factory_0();
|
|
2219
2170
|
return this_0.u();
|
|
2220
2171
|
}
|
|
2221
2172
|
function _get_serverConfig__rk2g06($this) {
|
|
2222
2173
|
// Inline function 'kotlin.getValue' call
|
|
2223
|
-
var this_0 = $this.
|
|
2174
|
+
var this_0 = $this.mdd_1;
|
|
2224
2175
|
serverConfig$factory_0();
|
|
2225
2176
|
return this_0.u();
|
|
2226
2177
|
}
|
|
2227
2178
|
function _get_logicConfig__52ww9d($this) {
|
|
2228
2179
|
// Inline function 'kotlin.getValue' call
|
|
2229
|
-
var this_0 = $this.
|
|
2180
|
+
var this_0 = $this.ndd_1;
|
|
2230
2181
|
logicConfig$factory_0();
|
|
2231
2182
|
return this_0.u();
|
|
2232
2183
|
}
|
|
2233
2184
|
function _get_idsProvider__fnfajc($this) {
|
|
2234
2185
|
// Inline function 'kotlin.getValue' call
|
|
2235
|
-
var this_0 = $this.
|
|
2186
|
+
var this_0 = $this.odd_1;
|
|
2236
2187
|
idsProvider$factory_0();
|
|
2237
2188
|
return this_0.u();
|
|
2238
2189
|
}
|
|
2239
2190
|
function _get_botConfig__cpaxzc($this) {
|
|
2240
2191
|
// Inline function 'kotlin.getValue' call
|
|
2241
|
-
var this_0 = $this.
|
|
2192
|
+
var this_0 = $this.pdd_1;
|
|
2242
2193
|
botConfig$factory_0();
|
|
2243
2194
|
return this_0.u();
|
|
2244
2195
|
}
|
|
2245
2196
|
function _get_scenePositionProvider__kn0n1n($this) {
|
|
2246
2197
|
// Inline function 'kotlin.getValue' call
|
|
2247
|
-
var this_0 = $this.
|
|
2198
|
+
var this_0 = $this.qdd_1;
|
|
2248
2199
|
scenePositionProvider$factory_0();
|
|
2249
2200
|
return this_0.u();
|
|
2250
2201
|
}
|
|
2251
2202
|
function _get_toClientEventsObserver__6rp51y_0($this) {
|
|
2252
2203
|
// Inline function 'kotlin.getValue' call
|
|
2253
|
-
var this_0 = $this.
|
|
2204
|
+
var this_0 = $this.rdd_1;
|
|
2254
2205
|
toClientEventsObserver$factory_2();
|
|
2255
2206
|
return this_0.u();
|
|
2256
2207
|
}
|
|
2257
2208
|
function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
|
|
2258
|
-
return !player.
|
|
2209
|
+
return !player.a74();
|
|
2259
2210
|
}
|
|
2260
2211
|
function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
|
|
2261
2212
|
validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
|
|
@@ -2263,77 +2214,77 @@
|
|
|
2263
2214
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
|
|
2264
2215
|
gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
|
|
2265
2216
|
fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
|
|
2266
|
-
this.
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2270
|
-
this.
|
|
2217
|
+
this.ddd_1 = validationStoreContract;
|
|
2218
|
+
this.edd_1 = timersStoreContract;
|
|
2219
|
+
this.fdd_1 = botGameStoreContract;
|
|
2220
|
+
this.gdd_1 = gameMechanicStoreContract;
|
|
2221
|
+
this.hdd_1 = fileLoggerStoreContract;
|
|
2271
2222
|
var tmp = this;
|
|
2272
2223
|
// Inline function 'org.kodein.di.instance' call
|
|
2273
2224
|
// Inline function 'org.kodein.type.generic' call
|
|
2274
2225
|
var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
2275
2226
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2276
|
-
tmp.
|
|
2227
|
+
tmp.idd_1 = Instance(di, tmp$ret$0, null).m67(this, asyncProvider$factory());
|
|
2277
2228
|
var tmp_1 = this;
|
|
2278
2229
|
// Inline function 'org.kodein.di.instance' call
|
|
2279
2230
|
// Inline function 'org.kodein.type.generic' call
|
|
2280
2231
|
var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
2281
2232
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
2282
|
-
tmp_1.
|
|
2233
|
+
tmp_1.jdd_1 = Instance(di, tmp$ret$2, null).m67(this, logger$factory_1());
|
|
2283
2234
|
var tmp_3 = this;
|
|
2284
2235
|
// Inline function 'org.kodein.di.instance' call
|
|
2285
2236
|
// Inline function 'org.kodein.type.generic' call
|
|
2286
2237
|
var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
|
|
2287
2238
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
2288
|
-
tmp_3.
|
|
2239
|
+
tmp_3.kdd_1 = Instance(di, tmp$ret$4, null).m67(this, playerConnectionInteractor$factory_1());
|
|
2289
2240
|
var tmp_5 = this;
|
|
2290
2241
|
// Inline function 'org.kodein.di.instance' call
|
|
2291
2242
|
// Inline function 'org.kodein.type.generic' call
|
|
2292
2243
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
2293
2244
|
var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
2294
|
-
tmp_5.
|
|
2245
|
+
tmp_5.ldd_1 = Instance(di, tmp$ret$6, null).m67(this, lastCardInteractor$factory());
|
|
2295
2246
|
var tmp_7 = this;
|
|
2296
2247
|
// Inline function 'org.kodein.di.instance' call
|
|
2297
2248
|
// Inline function 'org.kodein.type.generic' call
|
|
2298
2249
|
var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
|
|
2299
2250
|
var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
2300
|
-
tmp_7.
|
|
2251
|
+
tmp_7.mdd_1 = Instance(di, tmp$ret$8, null).m67(this, serverConfig$factory());
|
|
2301
2252
|
var tmp_9 = this;
|
|
2302
2253
|
// Inline function 'org.kodein.di.instance' call
|
|
2303
2254
|
// Inline function 'org.kodein.type.generic' call
|
|
2304
2255
|
var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
|
|
2305
2256
|
var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
2306
|
-
tmp_9.
|
|
2257
|
+
tmp_9.ndd_1 = Instance(di, tmp$ret$10, null).m67(this, logicConfig$factory());
|
|
2307
2258
|
var tmp_11 = this;
|
|
2308
2259
|
// Inline function 'org.kodein.di.instance' call
|
|
2309
2260
|
// Inline function 'org.kodein.type.generic' call
|
|
2310
2261
|
var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
|
|
2311
2262
|
var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
2312
|
-
tmp_11.
|
|
2263
|
+
tmp_11.odd_1 = Instance(di, tmp$ret$12, null).m67(this, idsProvider$factory());
|
|
2313
2264
|
var tmp_13 = this;
|
|
2314
2265
|
// Inline function 'org.kodein.di.instance' call
|
|
2315
2266
|
// Inline function 'org.kodein.type.generic' call
|
|
2316
2267
|
var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
|
|
2317
2268
|
var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
2318
|
-
tmp_13.
|
|
2269
|
+
tmp_13.pdd_1 = Instance(di, tmp$ret$14, null).m67(this, botConfig$factory());
|
|
2319
2270
|
var tmp_15 = this;
|
|
2320
2271
|
// Inline function 'org.kodein.di.instance' call
|
|
2321
2272
|
// Inline function 'org.kodein.type.generic' call
|
|
2322
2273
|
var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
|
|
2323
2274
|
var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
2324
|
-
tmp_15.
|
|
2275
|
+
tmp_15.qdd_1 = Instance(di, tmp$ret$16, null).m67(this, scenePositionProvider$factory());
|
|
2325
2276
|
var tmp_17 = this;
|
|
2326
2277
|
// Inline function 'org.kodein.di.instance' call
|
|
2327
2278
|
// Inline function 'org.kodein.type.generic' call
|
|
2328
2279
|
var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
|
|
2329
2280
|
var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
2330
|
-
tmp_17.
|
|
2281
|
+
tmp_17.rdd_1 = Instance(di, tmp$ret$18, null).m67(this, toClientEventsObserver$factory_1());
|
|
2331
2282
|
}
|
|
2332
|
-
protoOf(ServerGameStoreContract).
|
|
2333
|
-
return plus(plus(plus(plus(plus(this.
|
|
2283
|
+
protoOf(ServerGameStoreContract).j9b = function () {
|
|
2284
|
+
return plus(plus(plus(plus(plus(this.ddd_1.j9b(), this.edd_1.j9b()), this.fdd_1.j9b()), this.gdd_1.j9b()), this.hdd_1.j9b()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
|
|
2334
2285
|
};
|
|
2335
|
-
protoOf(ServerGameStoreContract).
|
|
2336
|
-
var tmp = plus(plus(plus(plus(plus(plus(plus(this.
|
|
2286
|
+
protoOf(ServerGameStoreContract).k9b = function () {
|
|
2287
|
+
var tmp = plus(plus(plus(plus(plus(plus(plus(this.ddd_1.k9b(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.edd_1.k9b()), this.fdd_1.k9b()), this.gdd_1.k9b()), this.hdd_1.k9b()), 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))).c9d(), finishingGameWhenCantStartNewMiddleware()]));
|
|
2337
2288
|
var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
|
|
2338
2289
|
var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
|
|
2339
2290
|
var tmp1_logger = _get_logger__rkp4sl_0(this);
|
|
@@ -2463,7 +2414,7 @@
|
|
|
2463
2414
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
2464
2415
|
next(action_0);
|
|
2465
2416
|
var state = store.state;
|
|
2466
|
-
if (!get_serverState(state).
|
|
2417
|
+
if (!get_serverState(state).ud9_1.vd9_1 && action_0.isGameFinished) {
|
|
2467
2418
|
store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.d6w_1));
|
|
2468
2419
|
}
|
|
2469
2420
|
};
|
|
@@ -2476,7 +2427,7 @@
|
|
|
2476
2427
|
};
|
|
2477
2428
|
}
|
|
2478
2429
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
2479
|
-
this.
|
|
2430
|
+
this.udd_1 = this$0;
|
|
2480
2431
|
}
|
|
2481
2432
|
protoOf(_no_name_provided__qut3iv_0).c6o = function (action) {
|
|
2482
2433
|
return action instanceof MechanicAction;
|
|
@@ -2491,11 +2442,11 @@
|
|
|
2491
2442
|
var tmp;
|
|
2492
2443
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
2493
2444
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2494
|
-
var this_0 = this.
|
|
2495
|
-
var tableId = action_0.
|
|
2496
|
-
var gameCreatorPlayerId = action_0.
|
|
2445
|
+
var this_0 = this.udd_1;
|
|
2446
|
+
var tableId = action_0.d87_1;
|
|
2447
|
+
var gameCreatorPlayerId = action_0.f87_1;
|
|
2497
2448
|
// Inline function 'kotlin.collections.map' call
|
|
2498
|
-
var this_1 = action_0.
|
|
2449
|
+
var this_1 = action_0.g87_1;
|
|
2499
2450
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2500
2451
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
2501
2452
|
var tmp0_iterator = this_1.j();
|
|
@@ -2536,7 +2487,7 @@
|
|
|
2536
2487
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2537
2488
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2538
2489
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2539
|
-
var tmp0_aid = this_0.
|
|
2490
|
+
var tmp0_aid = this_0.tdd_1.b6m();
|
|
2540
2491
|
// Inline function 'kotlin.collections.map' call
|
|
2541
2492
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2542
2493
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
@@ -2561,17 +2512,17 @@
|
|
|
2561
2512
|
} else {
|
|
2562
2513
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
2563
2514
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2564
|
-
var this_2 = this.
|
|
2515
|
+
var this_2 = this.udd_1;
|
|
2565
2516
|
var table = state.f6x();
|
|
2566
2517
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2567
|
-
var sendToPlayer_0 = new RoomActionPayload(this_2.
|
|
2518
|
+
var sendToPlayer_0 = new RoomActionPayload(this_2.tdd_1.b6m(), table.id, null);
|
|
2568
2519
|
var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
|
|
2569
2520
|
tmp = listOfNotNull(tmp$ret$18);
|
|
2570
2521
|
} else {
|
|
2571
2522
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
2572
2523
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2573
|
-
var this_3 = this.
|
|
2574
|
-
var tableId_0 = action_0.
|
|
2524
|
+
var this_3 = this.udd_1;
|
|
2525
|
+
var tableId_0 = action_0.j87_1.id;
|
|
2575
2526
|
var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
|
|
2576
2527
|
var players = getPlayers();
|
|
2577
2528
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -2605,7 +2556,7 @@
|
|
|
2605
2556
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2606
2557
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2607
2558
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2608
|
-
var tmp0_aid_0 = this_3.
|
|
2559
|
+
var tmp0_aid_0 = this_3.tdd_1.b6m();
|
|
2609
2560
|
// Inline function 'kotlin.collections.map' call
|
|
2610
2561
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2611
2562
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
|
|
@@ -2630,43 +2581,43 @@
|
|
|
2630
2581
|
} else {
|
|
2631
2582
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
2632
2583
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2633
|
-
var this_4 = this.
|
|
2584
|
+
var this_4 = this.udd_1;
|
|
2634
2585
|
var table_0 = state.f6x();
|
|
2635
2586
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2636
|
-
var sendToPlayer_2 = new RoomActionPayload(this_4.
|
|
2587
|
+
var sendToPlayer_2 = new RoomActionPayload(this_4.tdd_1.b6m(), table_0.id, null);
|
|
2637
2588
|
var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
|
|
2638
2589
|
tmp = listOfNotNull(tmp$ret$35);
|
|
2639
2590
|
} else {
|
|
2640
2591
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
2641
2592
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2642
|
-
var this_5 = this.
|
|
2593
|
+
var this_5 = this.udd_1;
|
|
2643
2594
|
var table_1 = state.f6x();
|
|
2644
2595
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2645
|
-
var sendToPlayer_3 = new RoomActionPayload(this_5.
|
|
2596
|
+
var sendToPlayer_3 = new RoomActionPayload(this_5.tdd_1.b6m(), table_1.id, null);
|
|
2646
2597
|
var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
|
|
2647
2598
|
tmp = listOfNotNull(tmp$ret$37);
|
|
2648
2599
|
} else {
|
|
2649
2600
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
2650
2601
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2651
|
-
var this_6 = this.
|
|
2602
|
+
var this_6 = this.udd_1;
|
|
2652
2603
|
var table_2 = state.f6x();
|
|
2653
2604
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2654
|
-
var sendToPlayer_4 = new RoomActionPayload(this_6.
|
|
2605
|
+
var sendToPlayer_4 = new RoomActionPayload(this_6.tdd_1.b6m(), table_2.id, null);
|
|
2655
2606
|
var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
|
|
2656
2607
|
tmp = listOfNotNull(tmp$ret$39);
|
|
2657
2608
|
} else {
|
|
2658
2609
|
if (action_0 instanceof ErrorAction) {
|
|
2659
2610
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2660
|
-
var this_7 = this.
|
|
2611
|
+
var this_7 = this.udd_1;
|
|
2661
2612
|
var table_3 = state.f6x();
|
|
2662
2613
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2663
|
-
var sendToPlayer_5 = new RoomActionPayload(this_7.
|
|
2614
|
+
var sendToPlayer_5 = new RoomActionPayload(this_7.tdd_1.b6m(), table_3.id, null);
|
|
2664
2615
|
var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
|
|
2665
2616
|
tmp = listOfNotNull(tmp$ret$41);
|
|
2666
2617
|
} else {
|
|
2667
2618
|
if (action_0 instanceof SceneMechanicAction) {
|
|
2668
2619
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2669
|
-
var this_8 = this.
|
|
2620
|
+
var this_8 = this.udd_1;
|
|
2670
2621
|
var table_4 = state.f6x();
|
|
2671
2622
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2672
2623
|
var tableId_1 = table_4.id;
|
|
@@ -2703,7 +2654,7 @@
|
|
|
2703
2654
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2704
2655
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2705
2656
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2706
|
-
var tmp0_aid_1 = this_8.
|
|
2657
|
+
var tmp0_aid_1 = this_8.tdd_1.b6m();
|
|
2707
2658
|
// Inline function 'kotlin.collections.map' call
|
|
2708
2659
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2709
2660
|
var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
|
|
@@ -2728,7 +2679,7 @@
|
|
|
2728
2679
|
} else {
|
|
2729
2680
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
2730
2681
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2731
|
-
var this_9 = this.
|
|
2682
|
+
var this_9 = this.udd_1;
|
|
2732
2683
|
var table_5 = state.f6x();
|
|
2733
2684
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2734
2685
|
var tableId_2 = table_5.id;
|
|
@@ -2765,7 +2716,7 @@
|
|
|
2765
2716
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2766
2717
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2767
2718
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2768
|
-
var tmp0_aid_2 = this_9.
|
|
2719
|
+
var tmp0_aid_2 = this_9.tdd_1.b6m();
|
|
2769
2720
|
// Inline function 'kotlin.collections.map' call
|
|
2770
2721
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2771
2722
|
var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
|
|
@@ -2790,7 +2741,7 @@
|
|
|
2790
2741
|
} else {
|
|
2791
2742
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
2792
2743
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
|
|
2793
|
-
var this_10 = this.
|
|
2744
|
+
var this_10 = this.udd_1;
|
|
2794
2745
|
var table_6 = state.f6x();
|
|
2795
2746
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
|
|
2796
2747
|
var tableId_3 = table_6.id;
|
|
@@ -2827,7 +2778,7 @@
|
|
|
2827
2778
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2828
2779
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
|
|
2829
2780
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2830
|
-
var tmp0_aid_3 = this_10.
|
|
2781
|
+
var tmp0_aid_3 = this_10.tdd_1.b6m();
|
|
2831
2782
|
// Inline function 'kotlin.collections.map' call
|
|
2832
2783
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2833
2784
|
var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
|
|
@@ -2840,7 +2791,7 @@
|
|
|
2840
2791
|
}
|
|
2841
2792
|
var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
|
|
2842
2793
|
var tmp_0;
|
|
2843
|
-
if (this.
|
|
2794
|
+
if (this.udd_1.sdd_1.supportBackwardActions && getPlayer(state.f6x().players, sendToPlayer_8.o7k_1).x73_1.c74_1) {
|
|
2844
2795
|
tmp_0 = null;
|
|
2845
2796
|
} else {
|
|
2846
2797
|
tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
|
|
@@ -2858,79 +2809,79 @@
|
|
|
2858
2809
|
} else {
|
|
2859
2810
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
2860
2811
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2861
|
-
var this_11 = this.
|
|
2812
|
+
var this_11 = this.udd_1;
|
|
2862
2813
|
var table_7 = state.f6x();
|
|
2863
|
-
var exceptPlayerId = this.
|
|
2814
|
+
var exceptPlayerId = this.udd_1.sdd_1.supportBackwardActions ? action_0.g88_1 : null;
|
|
2864
2815
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2865
|
-
var sendToPlayer_9 = new RoomActionPayload(this_11.
|
|
2816
|
+
var sendToPlayer_9 = new RoomActionPayload(this_11.tdd_1.b6m(), table_7.id, exceptPlayerId);
|
|
2866
2817
|
var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
|
|
2867
2818
|
tmp = listOfNotNull(tmp$ret$91);
|
|
2868
2819
|
} else {
|
|
2869
2820
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
2870
2821
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2871
|
-
var this_12 = this.
|
|
2822
|
+
var this_12 = this.udd_1;
|
|
2872
2823
|
var table_8 = state.f6x();
|
|
2873
|
-
var exceptPlayerId_0 = this.
|
|
2824
|
+
var exceptPlayerId_0 = this.udd_1.sdd_1.supportBackwardActions ? action_0.k88_1 : null;
|
|
2874
2825
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2875
|
-
var sendToPlayer_10 = new RoomActionPayload(this_12.
|
|
2826
|
+
var sendToPlayer_10 = new RoomActionPayload(this_12.tdd_1.b6m(), table_8.id, exceptPlayerId_0);
|
|
2876
2827
|
var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
|
|
2877
2828
|
tmp = listOfNotNull(tmp$ret$93);
|
|
2878
2829
|
} else {
|
|
2879
2830
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
2880
2831
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2881
|
-
var this_13 = this.
|
|
2832
|
+
var this_13 = this.udd_1;
|
|
2882
2833
|
var table_9 = state.f6x();
|
|
2883
2834
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2884
|
-
var sendToPlayer_11 = new RoomActionPayload(this_13.
|
|
2835
|
+
var sendToPlayer_11 = new RoomActionPayload(this_13.tdd_1.b6m(), table_9.id, null);
|
|
2885
2836
|
var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
|
|
2886
2837
|
tmp = listOfNotNull(tmp$ret$95);
|
|
2887
2838
|
} else {
|
|
2888
2839
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
2889
2840
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2890
|
-
var this_14 = this.
|
|
2841
|
+
var this_14 = this.udd_1;
|
|
2891
2842
|
var table_10 = state.f6x();
|
|
2892
|
-
var exceptPlayerId_1 = this.
|
|
2843
|
+
var exceptPlayerId_1 = this.udd_1.sdd_1.supportBackwardActions ? action_0.r88_1 : null;
|
|
2893
2844
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2894
|
-
var sendToPlayer_12 = new RoomActionPayload(this_14.
|
|
2845
|
+
var sendToPlayer_12 = new RoomActionPayload(this_14.tdd_1.b6m(), table_10.id, exceptPlayerId_1);
|
|
2895
2846
|
var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
|
|
2896
2847
|
tmp = listOfNotNull(tmp$ret$97);
|
|
2897
2848
|
} else {
|
|
2898
2849
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
2899
2850
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2900
|
-
var this_15 = this.
|
|
2851
|
+
var this_15 = this.udd_1;
|
|
2901
2852
|
var table_11 = state.f6x();
|
|
2902
|
-
var exceptPlayerId_2 = this.
|
|
2853
|
+
var exceptPlayerId_2 = this.udd_1.sdd_1.supportBackwardActions ? action_0.v88_1 : null;
|
|
2903
2854
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2904
|
-
var sendToPlayer_13 = new RoomActionPayload(this_15.
|
|
2855
|
+
var sendToPlayer_13 = new RoomActionPayload(this_15.tdd_1.b6m(), table_11.id, exceptPlayerId_2);
|
|
2905
2856
|
var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
|
|
2906
2857
|
tmp = listOfNotNull(tmp$ret$99);
|
|
2907
2858
|
} else {
|
|
2908
2859
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
2909
2860
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2910
|
-
var this_16 = this.
|
|
2861
|
+
var this_16 = this.udd_1;
|
|
2911
2862
|
var table_12 = state.f6x();
|
|
2912
2863
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2913
|
-
var sendToPlayer_14 = new RoomActionPayload(this_16.
|
|
2864
|
+
var sendToPlayer_14 = new RoomActionPayload(this_16.tdd_1.b6m(), table_12.id, null);
|
|
2914
2865
|
var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
|
|
2915
2866
|
tmp = listOfNotNull(tmp$ret$101);
|
|
2916
2867
|
} else {
|
|
2917
2868
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
2918
2869
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2919
|
-
var this_17 = this.
|
|
2870
|
+
var this_17 = this.udd_1;
|
|
2920
2871
|
var table_13 = state.f6x();
|
|
2921
2872
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2922
|
-
var sendToPlayer_15 = new RoomActionPayload(this_17.
|
|
2873
|
+
var sendToPlayer_15 = new RoomActionPayload(this_17.tdd_1.b6m(), table_13.id, null);
|
|
2923
2874
|
var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
|
|
2924
2875
|
tmp = listOfNotNull(tmp$ret$103);
|
|
2925
2876
|
} else {
|
|
2926
2877
|
if (action_0 instanceof MessageMechanicAction) {
|
|
2927
|
-
var message = action_0.
|
|
2878
|
+
var message = action_0.d89_1;
|
|
2928
2879
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2929
|
-
var this_18 = this.
|
|
2880
|
+
var this_18 = this.udd_1;
|
|
2930
2881
|
var table_14 = state.f6x();
|
|
2931
2882
|
var tmp_1;
|
|
2932
2883
|
var tmp_2;
|
|
2933
|
-
if (this.
|
|
2884
|
+
if (this.udd_1.sdd_1.supportBackwardActions) {
|
|
2934
2885
|
tmp_2 = isInterface(message, UserMessage);
|
|
2935
2886
|
} else {
|
|
2936
2887
|
tmp_2 = false;
|
|
@@ -2942,17 +2893,17 @@
|
|
|
2942
2893
|
}
|
|
2943
2894
|
var exceptPlayerId_3 = tmp_1;
|
|
2944
2895
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2945
|
-
var sendToPlayer_16 = new RoomActionPayload(this_18.
|
|
2896
|
+
var sendToPlayer_16 = new RoomActionPayload(this_18.tdd_1.b6m(), table_14.id, exceptPlayerId_3);
|
|
2946
2897
|
var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
|
|
2947
2898
|
tmp = listOfNotNull(tmp$ret$105);
|
|
2948
2899
|
} else {
|
|
2949
2900
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
2950
2901
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
|
|
2951
|
-
var this_19 = this.
|
|
2902
|
+
var this_19 = this.udd_1;
|
|
2952
2903
|
var table_15 = state.f6x();
|
|
2953
2904
|
var exceptPlayerId_4 = action_0.playerId;
|
|
2954
2905
|
// Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
|
|
2955
|
-
var sendToPlayer_17 = new RoomActionPayload(this_19.
|
|
2906
|
+
var sendToPlayer_17 = new RoomActionPayload(this_19.tdd_1.b6m(), table_15.id, exceptPlayerId_4);
|
|
2956
2907
|
var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
|
|
2957
2908
|
tmp = listOfNotNull(tmp$ret$107);
|
|
2958
2909
|
} else {
|
|
@@ -2990,10 +2941,10 @@
|
|
|
2990
2941
|
return this.t6p(store, next, action);
|
|
2991
2942
|
};
|
|
2992
2943
|
function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
|
|
2993
|
-
this.
|
|
2994
|
-
this.
|
|
2944
|
+
this.sdd_1 = logicConfig;
|
|
2945
|
+
this.tdd_1 = idsProvider;
|
|
2995
2946
|
}
|
|
2996
|
-
protoOf(ServerMapMechanicToClientActionMiddleware).
|
|
2947
|
+
protoOf(ServerMapMechanicToClientActionMiddleware).c9d = function () {
|
|
2997
2948
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
2998
2949
|
return new _no_name_provided__qut3iv_0(this);
|
|
2999
2950
|
};
|
|
@@ -3002,8 +2953,8 @@
|
|
|
3002
2953
|
return new _no_name_provided__qut3iv_1(asyncProvider, provider);
|
|
3003
2954
|
}
|
|
3004
2955
|
function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
|
|
3005
|
-
this.
|
|
3006
|
-
this.
|
|
2956
|
+
this.dde_1 = $provider;
|
|
2957
|
+
this.ede_1 = $action;
|
|
3007
2958
|
CoroutineImpl.call(this, resultContinuation);
|
|
3008
2959
|
}
|
|
3009
2960
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).e1f = function ($this$launchDefault, $completion) {
|
|
@@ -3024,7 +2975,7 @@
|
|
|
3024
2975
|
case 0:
|
|
3025
2976
|
this.f9_1 = 2;
|
|
3026
2977
|
this.e9_1 = 1;
|
|
3027
|
-
suspendResult = this.
|
|
2978
|
+
suspendResult = this.dde_1.oda(this.ede_1, this);
|
|
3028
2979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3029
2980
|
return suspendResult;
|
|
3030
2981
|
}
|
|
@@ -3047,8 +2998,8 @@
|
|
|
3047
2998
|
while (true);
|
|
3048
2999
|
};
|
|
3049
3000
|
protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).f1f = function ($this$launchDefault, completion) {
|
|
3050
|
-
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.
|
|
3051
|
-
i.
|
|
3001
|
+
var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.dde_1, this.ede_1, completion);
|
|
3002
|
+
i.fde_1 = $this$launchDefault;
|
|
3052
3003
|
return i;
|
|
3053
3004
|
};
|
|
3054
3005
|
function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
|
|
@@ -3060,8 +3011,8 @@
|
|
|
3060
3011
|
return l;
|
|
3061
3012
|
}
|
|
3062
3013
|
function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
|
|
3063
|
-
this.
|
|
3064
|
-
this.
|
|
3014
|
+
this.gde_1 = $asyncProvider;
|
|
3015
|
+
this.hde_1 = $provider;
|
|
3065
3016
|
}
|
|
3066
3017
|
protoOf(_no_name_provided__qut3iv_1).c6o = function (action) {
|
|
3067
3018
|
return action instanceof ToClientAction;
|
|
@@ -3069,7 +3020,7 @@
|
|
|
3069
3020
|
protoOf(_no_name_provided__qut3iv_1).t6p = function (store, next, action) {
|
|
3070
3021
|
// Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
|
|
3071
3022
|
var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
|
|
3072
|
-
this.
|
|
3023
|
+
this.gde_1.y6k(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.hde_1, action_0, null));
|
|
3073
3024
|
next(action_0);
|
|
3074
3025
|
};
|
|
3075
3026
|
protoOf(_no_name_provided__qut3iv_1).b6o = function (store, next, action) {
|
|
@@ -3084,13 +3035,13 @@
|
|
|
3084
3035
|
protoOf(_no_name_provided__qut3iv_2).c6o = function (action) {
|
|
3085
3036
|
return action instanceof UpdateServerConfigAction;
|
|
3086
3037
|
};
|
|
3087
|
-
protoOf(_no_name_provided__qut3iv_2).
|
|
3038
|
+
protoOf(_no_name_provided__qut3iv_2).j9k = function (state, action) {
|
|
3088
3039
|
// Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
|
|
3089
3040
|
var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
|
|
3090
|
-
return state.
|
|
3041
|
+
return state.o98(VOID, get_serverState(state).ide(action_0.add_1));
|
|
3091
3042
|
};
|
|
3092
3043
|
protoOf(_no_name_provided__qut3iv_2).u6p = function (state, action) {
|
|
3093
|
-
return this.
|
|
3044
|
+
return this.j9k((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3094
3045
|
};
|
|
3095
3046
|
function ServerMechanicLifecycleReducer$onStart$lambda($action) {
|
|
3096
3047
|
return function (it) {
|
|
@@ -3103,7 +3054,7 @@
|
|
|
3103
3054
|
var tmp_2 = PlayerConnectionState_LIVE_getInstance();
|
|
3104
3055
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
3105
3056
|
Companion_getInstance();
|
|
3106
|
-
var this_0 = $action.
|
|
3057
|
+
var this_0 = $action.c87_1.timeoutTimeMillis;
|
|
3107
3058
|
var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
3108
3059
|
tmp_0 = tmp_1.o6f(tmp_2, tmp$ret$0);
|
|
3109
3060
|
}
|
|
@@ -3112,47 +3063,47 @@
|
|
|
3112
3063
|
}
|
|
3113
3064
|
function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
|
|
3114
3065
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
3115
|
-
this.
|
|
3066
|
+
this.lde_1 = logger;
|
|
3116
3067
|
}
|
|
3117
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3068
|
+
protoOf(ServerMechanicLifecycleReducer).v9l = function (state, action) {
|
|
3118
3069
|
var serverState = get_serverStateOrNull(state.e6w_1);
|
|
3119
3070
|
var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3120
|
-
var tmp0_$this = this.
|
|
3121
|
-
var tmp1_tableId = action.
|
|
3122
|
-
var tmp2_gameId = action.
|
|
3123
|
-
var tmp3_version = action.
|
|
3124
|
-
var tmp4_config = action.
|
|
3125
|
-
var tmp5_users = action.
|
|
3071
|
+
var tmp0_$this = this.w9l_1;
|
|
3072
|
+
var tmp1_tableId = action.d87_1;
|
|
3073
|
+
var tmp2_gameId = action.d87_1;
|
|
3074
|
+
var tmp3_version = action.e87_1;
|
|
3075
|
+
var tmp4_config = action.c87_1;
|
|
3076
|
+
var tmp5_users = action.g87_1;
|
|
3126
3077
|
var tmp6_spectators = action.spectators;
|
|
3127
|
-
var tmp7_gameCreatorPlayerId = action.
|
|
3128
|
-
var tmp9_tableOrNull = tmp0_$this.
|
|
3078
|
+
var tmp7_gameCreatorPlayerId = action.f87_1;
|
|
3079
|
+
var tmp9_tableOrNull = tmp0_$this.c9n(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
|
|
3129
3080
|
var tmp;
|
|
3130
3081
|
if (serverState == null) {
|
|
3131
|
-
this.
|
|
3132
|
-
tmp =
|
|
3082
|
+
this.lde_1.w(VOID, 'ServerPayload is not onStart');
|
|
3083
|
+
tmp = Companion_instance_9.kda();
|
|
3133
3084
|
} else {
|
|
3134
3085
|
tmp = serverState;
|
|
3135
3086
|
}
|
|
3136
3087
|
var tmp10_payload = tmp;
|
|
3137
|
-
return state.
|
|
3088
|
+
return state.o98(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
|
|
3138
3089
|
};
|
|
3139
|
-
protoOf(ServerMechanicLifecycleReducer).
|
|
3140
|
-
this.
|
|
3090
|
+
protoOf(ServerMechanicLifecycleReducer).u9l = function (state, action) {
|
|
3091
|
+
this.x9l_1.z5u(action.previousGameId);
|
|
3141
3092
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
3142
|
-
var tmp1_tableOrNull = this.
|
|
3143
|
-
return state.
|
|
3093
|
+
var tmp1_tableOrNull = this.w9l_1.d9n(state.f6x(), action.gameId);
|
|
3094
|
+
return state.o98(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
|
|
3144
3095
|
};
|
|
3145
3096
|
function spectatorsReducer(logger) {
|
|
3146
3097
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
3147
3098
|
return new _no_name_provided__qut3iv_3(logger);
|
|
3148
3099
|
}
|
|
3149
3100
|
function _no_name_provided__qut3iv_3($logger) {
|
|
3150
|
-
this.
|
|
3101
|
+
this.mde_1 = $logger;
|
|
3151
3102
|
}
|
|
3152
3103
|
protoOf(_no_name_provided__qut3iv_3).c6o = function (action) {
|
|
3153
3104
|
return isInterface(action, SpectatorsAction);
|
|
3154
3105
|
};
|
|
3155
|
-
protoOf(_no_name_provided__qut3iv_3).
|
|
3106
|
+
protoOf(_no_name_provided__qut3iv_3).j9k = function (state, action) {
|
|
3156
3107
|
// Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
|
|
3157
3108
|
var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
|
|
3158
3109
|
var table = state.f6x();
|
|
@@ -3160,7 +3111,7 @@
|
|
|
3160
3111
|
if (action_0 instanceof AddSpectatorsAction) {
|
|
3161
3112
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3162
3113
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3163
|
-
var this_0 = action_0.
|
|
3114
|
+
var this_0 = action_0.bdd_1;
|
|
3164
3115
|
var destination = ArrayList_init_$Create$();
|
|
3165
3116
|
// Inline function 'kotlin.collections.forEach' call
|
|
3166
3117
|
var tmp0_iterator = this_0.j();
|
|
@@ -3182,10 +3133,10 @@
|
|
|
3182
3133
|
var tmp_0;
|
|
3183
3134
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3184
3135
|
if (!sameSpectators.p()) {
|
|
3185
|
-
this.
|
|
3136
|
+
this.mde_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
|
|
3186
3137
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3187
3138
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3188
|
-
var this_1 = action_0.
|
|
3139
|
+
var this_1 = action_0.bdd_1;
|
|
3189
3140
|
var destination_0 = ArrayList_init_$Create$();
|
|
3190
3141
|
var tmp0_iterator_0 = this_1.j();
|
|
3191
3142
|
while (tmp0_iterator_0.k()) {
|
|
@@ -3221,7 +3172,7 @@
|
|
|
3221
3172
|
}
|
|
3222
3173
|
tmp_0 = destination_0;
|
|
3223
3174
|
} else {
|
|
3224
|
-
tmp_0 = action_0.
|
|
3175
|
+
tmp_0 = action_0.bdd_1;
|
|
3225
3176
|
}
|
|
3226
3177
|
var this_2 = tmp_0;
|
|
3227
3178
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3234,12 +3185,12 @@
|
|
|
3234
3185
|
destination_1.e(tmp$ret$10);
|
|
3235
3186
|
}
|
|
3236
3187
|
var spectatorsToAdd = toSet(destination_1);
|
|
3237
|
-
tmp = state.
|
|
3188
|
+
tmp = state.o98(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
|
|
3238
3189
|
} else {
|
|
3239
3190
|
if (action_0 instanceof RemoveSpectatorsAction) {
|
|
3240
3191
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3241
3192
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3242
|
-
var this_3 = action_0.
|
|
3193
|
+
var this_3 = action_0.cdd_1;
|
|
3243
3194
|
var destination_2 = ArrayList_init_$Create$();
|
|
3244
3195
|
// Inline function 'kotlin.collections.forEach' call
|
|
3245
3196
|
var tmp0_iterator_3 = this_3.j();
|
|
@@ -3260,10 +3211,10 @@
|
|
|
3260
3211
|
var tmp_2;
|
|
3261
3212
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3262
3213
|
if (!sameSpectators_0.p()) {
|
|
3263
|
-
this.
|
|
3214
|
+
this.mde_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
|
|
3264
3215
|
// Inline function 'kotlin.collections.filterNot' call
|
|
3265
3216
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
3266
|
-
var this_4 = action_0.
|
|
3217
|
+
var this_4 = action_0.cdd_1;
|
|
3267
3218
|
var destination_3 = ArrayList_init_$Create$();
|
|
3268
3219
|
var tmp0_iterator_4 = this_4.j();
|
|
3269
3220
|
while (tmp0_iterator_4.k()) {
|
|
@@ -3299,7 +3250,7 @@
|
|
|
3299
3250
|
}
|
|
3300
3251
|
tmp_2 = destination_3;
|
|
3301
3252
|
} else {
|
|
3302
|
-
tmp_2 = action_0.
|
|
3253
|
+
tmp_2 = action_0.cdd_1;
|
|
3303
3254
|
}
|
|
3304
3255
|
var spectatorsToRemove = toSet(tmp_2);
|
|
3305
3256
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -3338,7 +3289,7 @@
|
|
|
3338
3289
|
destination_4.e(element_5);
|
|
3339
3290
|
}
|
|
3340
3291
|
}
|
|
3341
|
-
tmp = state.
|
|
3292
|
+
tmp = state.o98(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
|
|
3342
3293
|
} else {
|
|
3343
3294
|
noWhenBranchMatchedException();
|
|
3344
3295
|
}
|
|
@@ -3346,32 +3297,32 @@
|
|
|
3346
3297
|
return tmp;
|
|
3347
3298
|
};
|
|
3348
3299
|
protoOf(_no_name_provided__qut3iv_3).u6p = function (state, action) {
|
|
3349
|
-
return this.
|
|
3300
|
+
return this.j9k((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
3350
3301
|
};
|
|
3351
3302
|
function Companion_1() {
|
|
3352
3303
|
}
|
|
3353
|
-
protoOf(Companion_1).
|
|
3304
|
+
protoOf(Companion_1).nde = function (config) {
|
|
3354
3305
|
return new ServerState(config);
|
|
3355
3306
|
};
|
|
3356
|
-
protoOf(Companion_1).
|
|
3307
|
+
protoOf(Companion_1).kda = function (config, $super) {
|
|
3357
3308
|
config = config === VOID ? new ServerConfig(true) : config;
|
|
3358
|
-
return $super === VOID ? this.
|
|
3309
|
+
return $super === VOID ? this.nde(config) : $super.nde.call(this, config);
|
|
3359
3310
|
};
|
|
3360
|
-
var
|
|
3361
|
-
function
|
|
3362
|
-
return
|
|
3311
|
+
var Companion_instance_9;
|
|
3312
|
+
function Companion_getInstance_2() {
|
|
3313
|
+
return Companion_instance_9;
|
|
3363
3314
|
}
|
|
3364
3315
|
function ServerState(config) {
|
|
3365
|
-
this.
|
|
3316
|
+
this.ud9_1 = config;
|
|
3366
3317
|
}
|
|
3367
|
-
protoOf(ServerState).
|
|
3318
|
+
protoOf(ServerState).ide = function (config) {
|
|
3368
3319
|
return new ServerState(config);
|
|
3369
3320
|
};
|
|
3370
3321
|
protoOf(ServerState).toString = function () {
|
|
3371
|
-
return 'ServerState(config=' + this.
|
|
3322
|
+
return 'ServerState(config=' + this.ud9_1.toString() + ')';
|
|
3372
3323
|
};
|
|
3373
3324
|
protoOf(ServerState).hashCode = function () {
|
|
3374
|
-
return this.
|
|
3325
|
+
return this.ud9_1.hashCode();
|
|
3375
3326
|
};
|
|
3376
3327
|
protoOf(ServerState).equals = function (other) {
|
|
3377
3328
|
if (this === other)
|
|
@@ -3379,7 +3330,7 @@
|
|
|
3379
3330
|
if (!(other instanceof ServerState))
|
|
3380
3331
|
return false;
|
|
3381
3332
|
var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
|
|
3382
|
-
if (!this.
|
|
3333
|
+
if (!this.ud9_1.equals(tmp0_other_with_cast.ud9_1))
|
|
3383
3334
|
return false;
|
|
3384
3335
|
return true;
|
|
3385
3336
|
};
|
|
@@ -3409,1037 +3360,6 @@
|
|
|
3409
3360
|
function get_serverStateOrNull(_this__u8e3s4) {
|
|
3410
3361
|
return _this__u8e3s4 instanceof ServerState ? _this__u8e3s4 : null;
|
|
3411
3362
|
}
|
|
3412
|
-
function GameHelper() {
|
|
3413
|
-
}
|
|
3414
|
-
function prepareConfigObjectInternal($this, map) {
|
|
3415
|
-
var jsObject = {};
|
|
3416
|
-
var tmp = map.g2('players');
|
|
3417
|
-
var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
|
|
3418
|
-
var tmp_0;
|
|
3419
|
-
if (tmp0_safe_receiver == null) {
|
|
3420
|
-
tmp_0 = null;
|
|
3421
|
-
} else {
|
|
3422
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3423
|
-
// Inline function 'kotlin.apply' call
|
|
3424
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3425
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3426
|
-
var inductionVariable = 0;
|
|
3427
|
-
var last = tmp0_safe_receiver.length;
|
|
3428
|
-
while (inductionVariable < last) {
|
|
3429
|
-
var element = tmp0_safe_receiver[inductionVariable];
|
|
3430
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3431
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3432
|
-
validatePlayers($this, element);
|
|
3433
|
-
}
|
|
3434
|
-
tmp_0 = tmp0_safe_receiver;
|
|
3435
|
-
}
|
|
3436
|
-
var tmp1_safe_receiver = tmp_0;
|
|
3437
|
-
var tmp_1;
|
|
3438
|
-
if (tmp1_safe_receiver == null) {
|
|
3439
|
-
tmp_1 = null;
|
|
3440
|
-
} else {
|
|
3441
|
-
// Inline function 'kotlin.takeIf' call
|
|
3442
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3443
|
-
var tmp_2;
|
|
3444
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3445
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3446
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3447
|
-
if (!(tmp1_safe_receiver.length === 0)) {
|
|
3448
|
-
tmp_2 = tmp1_safe_receiver;
|
|
3449
|
-
} else {
|
|
3450
|
-
tmp_2 = null;
|
|
3451
|
-
}
|
|
3452
|
-
tmp_1 = tmp_2;
|
|
3453
|
-
}
|
|
3454
|
-
var players = tmp_1;
|
|
3455
|
-
var tmp_3 = map.g2('points');
|
|
3456
|
-
var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
|
|
3457
|
-
var tmp_4;
|
|
3458
|
-
if (tmp2_safe_receiver == null) {
|
|
3459
|
-
tmp_4 = null;
|
|
3460
|
-
} else {
|
|
3461
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3462
|
-
// Inline function 'kotlin.apply' call
|
|
3463
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3464
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3465
|
-
var inductionVariable_0 = 0;
|
|
3466
|
-
var last_0 = tmp2_safe_receiver.length;
|
|
3467
|
-
while (inductionVariable_0 < last_0) {
|
|
3468
|
-
var element_0 = tmp2_safe_receiver[inductionVariable_0];
|
|
3469
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3470
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3471
|
-
validatePoints($this, element_0);
|
|
3472
|
-
}
|
|
3473
|
-
tmp_4 = tmp2_safe_receiver;
|
|
3474
|
-
}
|
|
3475
|
-
var tmp3_safe_receiver = tmp_4;
|
|
3476
|
-
var tmp_5;
|
|
3477
|
-
if (tmp3_safe_receiver == null) {
|
|
3478
|
-
tmp_5 = null;
|
|
3479
|
-
} else {
|
|
3480
|
-
// Inline function 'kotlin.takeIf' call
|
|
3481
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3482
|
-
var tmp_6;
|
|
3483
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3484
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3485
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3486
|
-
if (!(tmp3_safe_receiver.length === 0)) {
|
|
3487
|
-
tmp_6 = tmp3_safe_receiver;
|
|
3488
|
-
} else {
|
|
3489
|
-
tmp_6 = null;
|
|
3490
|
-
}
|
|
3491
|
-
tmp_5 = tmp_6;
|
|
3492
|
-
}
|
|
3493
|
-
var points = tmp_5;
|
|
3494
|
-
var tmp_7 = map.g2('timeoutTime');
|
|
3495
|
-
var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
|
|
3496
|
-
var tmp_8;
|
|
3497
|
-
if (tmp4_safe_receiver == null) {
|
|
3498
|
-
tmp_8 = null;
|
|
3499
|
-
} else {
|
|
3500
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3501
|
-
// Inline function 'kotlin.apply' call
|
|
3502
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3503
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3504
|
-
var inductionVariable_1 = 0;
|
|
3505
|
-
var last_1 = tmp4_safe_receiver.length;
|
|
3506
|
-
while (inductionVariable_1 < last_1) {
|
|
3507
|
-
var element_1 = tmp4_safe_receiver[inductionVariable_1];
|
|
3508
|
-
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
3509
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3510
|
-
validateTimeoutTime($this, element_1);
|
|
3511
|
-
}
|
|
3512
|
-
tmp_8 = tmp4_safe_receiver;
|
|
3513
|
-
}
|
|
3514
|
-
var tmp5_safe_receiver = tmp_8;
|
|
3515
|
-
var tmp_9;
|
|
3516
|
-
if (tmp5_safe_receiver == null) {
|
|
3517
|
-
tmp_9 = null;
|
|
3518
|
-
} else {
|
|
3519
|
-
// Inline function 'kotlin.takeIf' call
|
|
3520
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3521
|
-
var tmp_10;
|
|
3522
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3523
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3524
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3525
|
-
if (!(tmp5_safe_receiver.length === 0)) {
|
|
3526
|
-
tmp_10 = tmp5_safe_receiver;
|
|
3527
|
-
} else {
|
|
3528
|
-
tmp_10 = null;
|
|
3529
|
-
}
|
|
3530
|
-
tmp_9 = tmp_10;
|
|
3531
|
-
}
|
|
3532
|
-
var timeoutTime = tmp_9;
|
|
3533
|
-
var tmp_11 = map.g2('rulesPreset');
|
|
3534
|
-
var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
|
|
3535
|
-
var tmp_12;
|
|
3536
|
-
if (tmp6_safe_receiver == null) {
|
|
3537
|
-
tmp_12 = null;
|
|
3538
|
-
} else {
|
|
3539
|
-
// Inline function 'kotlin.collections.onEach' call
|
|
3540
|
-
// Inline function 'kotlin.apply' call
|
|
3541
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3542
|
-
// Inline function 'kotlin.collections.onEach.<anonymous>' call
|
|
3543
|
-
var inductionVariable_2 = 0;
|
|
3544
|
-
var last_2 = tmp6_safe_receiver.length;
|
|
3545
|
-
while (inductionVariable_2 < last_2) {
|
|
3546
|
-
var element_2 = tmp6_safe_receiver[inductionVariable_2];
|
|
3547
|
-
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
3548
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3549
|
-
validateRulesSetType($this, element_2);
|
|
3550
|
-
}
|
|
3551
|
-
tmp_12 = tmp6_safe_receiver;
|
|
3552
|
-
}
|
|
3553
|
-
var tmp7_safe_receiver = tmp_12;
|
|
3554
|
-
var tmp_13;
|
|
3555
|
-
if (tmp7_safe_receiver == null) {
|
|
3556
|
-
tmp_13 = null;
|
|
3557
|
-
} else {
|
|
3558
|
-
// Inline function 'kotlin.takeIf' call
|
|
3559
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3560
|
-
var tmp_14;
|
|
3561
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3562
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3563
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3564
|
-
if (!(tmp7_safe_receiver.length === 0)) {
|
|
3565
|
-
tmp_14 = tmp7_safe_receiver;
|
|
3566
|
-
} else {
|
|
3567
|
-
tmp_14 = null;
|
|
3568
|
-
}
|
|
3569
|
-
tmp_13 = tmp_14;
|
|
3570
|
-
}
|
|
3571
|
-
var rulesPreset = tmp_13;
|
|
3572
|
-
var tmp_15 = map.g2('isChatEnabled');
|
|
3573
|
-
var isChatEnabled = (!(tmp_15 == null) ? typeof tmp_15 === 'boolean' : false) ? tmp_15 : null;
|
|
3574
|
-
var tmp_16;
|
|
3575
|
-
if (players == null) {
|
|
3576
|
-
// Inline function 'kotlin.arrayOf' call
|
|
3577
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
3578
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3579
|
-
tmp_16 = [2, 3, 4, 5];
|
|
3580
|
-
} else {
|
|
3581
|
-
tmp_16 = players;
|
|
3582
|
-
}
|
|
3583
|
-
jsObject['players'] = tmp_16;
|
|
3584
|
-
var tmp_17;
|
|
3585
|
-
if (points == null) {
|
|
3586
|
-
// Inline function 'kotlin.arrayOf' call
|
|
3587
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
3588
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3589
|
-
tmp_17 = [301, 501, 1001];
|
|
3590
|
-
} else {
|
|
3591
|
-
tmp_17 = points;
|
|
3592
|
-
}
|
|
3593
|
-
jsObject['points'] = tmp_17;
|
|
3594
|
-
var tmp_18;
|
|
3595
|
-
if (timeoutTime == null) {
|
|
3596
|
-
// Inline function 'kotlin.arrayOf' call
|
|
3597
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
3598
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3599
|
-
tmp_18 = [15, 30, 45];
|
|
3600
|
-
} else {
|
|
3601
|
-
tmp_18 = timeoutTime;
|
|
3602
|
-
}
|
|
3603
|
-
jsObject['timeoutTime'] = tmp_18;
|
|
3604
|
-
var tmp_19;
|
|
3605
|
-
if (rulesPreset == null) {
|
|
3606
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3607
|
-
// Inline function 'kotlin.collections.map' call
|
|
3608
|
-
var this_0 = get_entries();
|
|
3609
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3610
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3611
|
-
var tmp0_iterator = this_0.j();
|
|
3612
|
-
while (tmp0_iterator.k()) {
|
|
3613
|
-
var item = tmp0_iterator.l();
|
|
3614
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
|
|
3615
|
-
var tmp$ret$33 = item.m2_1;
|
|
3616
|
-
destination.e(tmp$ret$33);
|
|
3617
|
-
}
|
|
3618
|
-
tmp_19 = copyToArray(destination);
|
|
3619
|
-
} else {
|
|
3620
|
-
tmp_19 = rulesPreset;
|
|
3621
|
-
}
|
|
3622
|
-
jsObject['rulesPreset'] = tmp_19;
|
|
3623
|
-
jsObject['isChatEnabled'] = isChatEnabled;
|
|
3624
|
-
return jsObject;
|
|
3625
|
-
}
|
|
3626
|
-
function validateTimeoutTime($this, timeoutTime) {
|
|
3627
|
-
if (!listOf([15, 30, 45]).s1(timeoutTime)) {
|
|
3628
|
-
throw IllegalStateException_init_$Create$("Time out time allowed: 20, 40, 60, but it's " + timeoutTime);
|
|
3629
|
-
}
|
|
3630
|
-
}
|
|
3631
|
-
function validatePlayers($this, players) {
|
|
3632
|
-
// Inline function 'kotlin.collections.map' call
|
|
3633
|
-
var this_0 = get_entries_0();
|
|
3634
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3635
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3636
|
-
var tmp0_iterator = this_0.j();
|
|
3637
|
-
while (tmp0_iterator.k()) {
|
|
3638
|
-
var item = tmp0_iterator.l();
|
|
3639
|
-
// Inline function 'GameHelperImpl.validatePlayers.<anonymous>' call
|
|
3640
|
-
var tmp$ret$0 = item.value;
|
|
3641
|
-
destination.e(tmp$ret$0);
|
|
3642
|
-
}
|
|
3643
|
-
if (!destination.s1(players)) {
|
|
3644
|
-
throw IllegalStateException_init_$Create$('Not valid players mode ' + players);
|
|
3645
|
-
}
|
|
3646
|
-
}
|
|
3647
|
-
function validatePoints($this, points) {
|
|
3648
|
-
// Inline function 'kotlin.collections.map' call
|
|
3649
|
-
var this_0 = get_entries_1();
|
|
3650
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3651
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3652
|
-
var tmp0_iterator = this_0.j();
|
|
3653
|
-
while (tmp0_iterator.k()) {
|
|
3654
|
-
var item = tmp0_iterator.l();
|
|
3655
|
-
// Inline function 'GameHelperImpl.validatePoints.<anonymous>' call
|
|
3656
|
-
var tmp$ret$0 = item.value;
|
|
3657
|
-
destination.e(tmp$ret$0);
|
|
3658
|
-
}
|
|
3659
|
-
if (!destination.s1(points)) {
|
|
3660
|
-
throw IllegalStateException_init_$Create$('Not valid points mode ' + points);
|
|
3661
|
-
}
|
|
3662
|
-
}
|
|
3663
|
-
function validateRulesSetType($this, rulesSetType) {
|
|
3664
|
-
// Inline function 'kotlin.collections.map' call
|
|
3665
|
-
var this_0 = get_entries();
|
|
3666
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3667
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3668
|
-
var tmp0_iterator = this_0.j();
|
|
3669
|
-
while (tmp0_iterator.k()) {
|
|
3670
|
-
var item = tmp0_iterator.l();
|
|
3671
|
-
// Inline function 'GameHelperImpl.validateRulesSetType.<anonymous>' call
|
|
3672
|
-
var tmp$ret$0 = item.m2_1;
|
|
3673
|
-
destination.e(tmp$ret$0);
|
|
3674
|
-
}
|
|
3675
|
-
if (!destination.s1(rulesSetType)) {
|
|
3676
|
-
throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
|
|
3677
|
-
}
|
|
3678
|
-
}
|
|
3679
|
-
function validateLimit($this, limit) {
|
|
3680
|
-
if (limit < 20) {
|
|
3681
|
-
throw IllegalStateException_init_$Create$('Limit should be bigger then 20');
|
|
3682
|
-
}
|
|
3683
|
-
}
|
|
3684
|
-
function validateRules($this, rules) {
|
|
3685
|
-
if (rules != null && rules != undefined) {
|
|
3686
|
-
$this.mapRules(rules);
|
|
3687
|
-
}
|
|
3688
|
-
}
|
|
3689
|
-
function GameHelperImpl() {
|
|
3690
|
-
}
|
|
3691
|
-
protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
|
|
3692
|
-
var state = store.state;
|
|
3693
|
-
var tmp;
|
|
3694
|
-
if (!state.g6x()) {
|
|
3695
|
-
tmp = true;
|
|
3696
|
-
} else {
|
|
3697
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3698
|
-
tmp = playerIds.length === 0;
|
|
3699
|
-
}
|
|
3700
|
-
if (tmp) {
|
|
3701
|
-
return playerIds;
|
|
3702
|
-
}
|
|
3703
|
-
var players = state.f6x().players;
|
|
3704
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3705
|
-
// Inline function 'kotlin.collections.map' call
|
|
3706
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3707
|
-
// Inline function 'kotlin.collections.map' call
|
|
3708
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3709
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3710
|
-
var inductionVariable = 0;
|
|
3711
|
-
var last = playerIds.length;
|
|
3712
|
-
while (inductionVariable < last) {
|
|
3713
|
-
var item = playerIds[inductionVariable];
|
|
3714
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3715
|
-
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3716
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3717
|
-
destination.e(tmp$ret$1);
|
|
3718
|
-
}
|
|
3719
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3720
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3721
|
-
var tmp0_iterator = destination.j();
|
|
3722
|
-
while (tmp0_iterator.k()) {
|
|
3723
|
-
var element = tmp0_iterator.l();
|
|
3724
|
-
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3725
|
-
if (element.t73_1.a6h().r6f_1.isLive) {
|
|
3726
|
-
destination_0.e(element);
|
|
3727
|
-
}
|
|
3728
|
-
}
|
|
3729
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3730
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3731
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3732
|
-
while (tmp0_iterator_0.k()) {
|
|
3733
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3734
|
-
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
3735
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3736
|
-
destination_1.e(tmp$ret$7);
|
|
3737
|
-
}
|
|
3738
|
-
return copyToArray(destination_1);
|
|
3739
|
-
};
|
|
3740
|
-
protoOf(GameHelperImpl).filterLiveDuringGamePlayers = function (store, playerIds) {
|
|
3741
|
-
var state = store.state;
|
|
3742
|
-
var tmp;
|
|
3743
|
-
if (!state.g6x()) {
|
|
3744
|
-
tmp = true;
|
|
3745
|
-
} else {
|
|
3746
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3747
|
-
tmp = playerIds.length === 0;
|
|
3748
|
-
}
|
|
3749
|
-
if (tmp) {
|
|
3750
|
-
return playerIds;
|
|
3751
|
-
}
|
|
3752
|
-
var players = state.f6x().players;
|
|
3753
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3754
|
-
// Inline function 'kotlin.collections.map' call
|
|
3755
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3756
|
-
// Inline function 'kotlin.collections.map' call
|
|
3757
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3758
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3759
|
-
var inductionVariable = 0;
|
|
3760
|
-
var last = playerIds.length;
|
|
3761
|
-
while (inductionVariable < last) {
|
|
3762
|
-
var item = playerIds[inductionVariable];
|
|
3763
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3764
|
-
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3765
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3766
|
-
destination.e(tmp$ret$1);
|
|
3767
|
-
}
|
|
3768
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3769
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3770
|
-
var tmp0_iterator = destination.j();
|
|
3771
|
-
while (tmp0_iterator.k()) {
|
|
3772
|
-
var element = tmp0_iterator.l();
|
|
3773
|
-
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3774
|
-
if (element.t73_1.a6h().c6g(state.f6x().gameDuration)) {
|
|
3775
|
-
destination_0.e(element);
|
|
3776
|
-
}
|
|
3777
|
-
}
|
|
3778
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3779
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3780
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3781
|
-
while (tmp0_iterator_0.k()) {
|
|
3782
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3783
|
-
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
3784
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3785
|
-
destination_1.e(tmp$ret$7);
|
|
3786
|
-
}
|
|
3787
|
-
return copyToArray(destination_1);
|
|
3788
|
-
};
|
|
3789
|
-
protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
|
|
3790
|
-
var state = store.state;
|
|
3791
|
-
var tmp;
|
|
3792
|
-
if (!state.g6x()) {
|
|
3793
|
-
tmp = true;
|
|
3794
|
-
} else {
|
|
3795
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3796
|
-
tmp = playerIds.length === 0;
|
|
3797
|
-
}
|
|
3798
|
-
if (tmp) {
|
|
3799
|
-
return playerIds;
|
|
3800
|
-
}
|
|
3801
|
-
var players = state.f6x().players;
|
|
3802
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3803
|
-
// Inline function 'kotlin.collections.map' call
|
|
3804
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3805
|
-
// Inline function 'kotlin.collections.map' call
|
|
3806
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3807
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3808
|
-
var inductionVariable = 0;
|
|
3809
|
-
var last = playerIds.length;
|
|
3810
|
-
while (inductionVariable < last) {
|
|
3811
|
-
var item = playerIds[inductionVariable];
|
|
3812
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3813
|
-
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3814
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3815
|
-
destination.e(tmp$ret$1);
|
|
3816
|
-
}
|
|
3817
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3818
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3819
|
-
var tmp0_iterator = destination.j();
|
|
3820
|
-
while (tmp0_iterator.k()) {
|
|
3821
|
-
var element = tmp0_iterator.l();
|
|
3822
|
-
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3823
|
-
if (element.s73_1.isBot) {
|
|
3824
|
-
destination_0.e(element);
|
|
3825
|
-
}
|
|
3826
|
-
}
|
|
3827
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3828
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3829
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3830
|
-
while (tmp0_iterator_0.k()) {
|
|
3831
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3832
|
-
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
3833
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3834
|
-
destination_1.e(tmp$ret$7);
|
|
3835
|
-
}
|
|
3836
|
-
return copyToArray(destination_1);
|
|
3837
|
-
};
|
|
3838
|
-
protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
|
|
3839
|
-
var state = store.state;
|
|
3840
|
-
var tmp;
|
|
3841
|
-
if (!state.g6x()) {
|
|
3842
|
-
tmp = true;
|
|
3843
|
-
} else {
|
|
3844
|
-
// Inline function 'kotlin.collections.isEmpty' call
|
|
3845
|
-
tmp = playerIds.length === 0;
|
|
3846
|
-
}
|
|
3847
|
-
if (tmp) {
|
|
3848
|
-
return playerIds;
|
|
3849
|
-
}
|
|
3850
|
-
var players = state.f6x().players;
|
|
3851
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3852
|
-
// Inline function 'kotlin.collections.map' call
|
|
3853
|
-
// Inline function 'kotlin.collections.filter' call
|
|
3854
|
-
// Inline function 'kotlin.collections.map' call
|
|
3855
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3856
|
-
var destination = ArrayList_init_$Create$_0(playerIds.length);
|
|
3857
|
-
var inductionVariable = 0;
|
|
3858
|
-
var last = playerIds.length;
|
|
3859
|
-
while (inductionVariable < last) {
|
|
3860
|
-
var item = playerIds[inductionVariable];
|
|
3861
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
3862
|
-
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3863
|
-
var tmp$ret$1 = getPlayer(players, item);
|
|
3864
|
-
destination.e(tmp$ret$1);
|
|
3865
|
-
}
|
|
3866
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
3867
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
3868
|
-
var tmp0_iterator = destination.j();
|
|
3869
|
-
while (tmp0_iterator.k()) {
|
|
3870
|
-
var element = tmp0_iterator.l();
|
|
3871
|
-
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3872
|
-
if (!element.s73_1.isBot) {
|
|
3873
|
-
destination_0.e(element);
|
|
3874
|
-
}
|
|
3875
|
-
}
|
|
3876
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
3877
|
-
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
|
|
3878
|
-
var tmp0_iterator_0 = destination_0.j();
|
|
3879
|
-
while (tmp0_iterator_0.k()) {
|
|
3880
|
-
var item_0 = tmp0_iterator_0.l();
|
|
3881
|
-
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
3882
|
-
var tmp$ret$7 = item_0.playerId;
|
|
3883
|
-
destination_1.e(tmp$ret$7);
|
|
3884
|
-
}
|
|
3885
|
-
return copyToArray(destination_1);
|
|
3886
|
-
};
|
|
3887
|
-
protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
|
|
3888
|
-
var state = store.state;
|
|
3889
|
-
if (!state.g6x()) {
|
|
3890
|
-
return null;
|
|
3891
|
-
}
|
|
3892
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.f6x().players, playerId).s73_1);
|
|
3893
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3894
|
-
};
|
|
3895
|
-
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
3896
|
-
var state = store.state;
|
|
3897
|
-
if (!state.g6x()) {
|
|
3898
|
-
return null;
|
|
3899
|
-
}
|
|
3900
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
3901
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3902
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3903
|
-
var this_0 = state.f6x().players;
|
|
3904
|
-
var destination = ArrayList_init_$Create$();
|
|
3905
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
3906
|
-
var tmp0_iterator = this_0.j();
|
|
3907
|
-
while (tmp0_iterator.k()) {
|
|
3908
|
-
var element = tmp0_iterator.l();
|
|
3909
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3910
|
-
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
3911
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.s73_1);
|
|
3912
|
-
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
3913
|
-
if (tmp0_safe_receiver_0 == null)
|
|
3914
|
-
null;
|
|
3915
|
-
else {
|
|
3916
|
-
// Inline function 'kotlin.let' call
|
|
3917
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3918
|
-
destination.e(tmp0_safe_receiver_0);
|
|
3919
|
-
}
|
|
3920
|
-
}
|
|
3921
|
-
return copyToArray(destination);
|
|
3922
|
-
};
|
|
3923
|
-
protoOf(GameHelperImpl).createConfig = function (points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate) {
|
|
3924
|
-
var options = Companion_instance_3.getServerOptions(isEnableChat, isBotsEnabled, true);
|
|
3925
|
-
var playersMode = this.mapPlayers(players);
|
|
3926
|
-
var pointsMode = this.mapPoints(points);
|
|
3927
|
-
var tmp;
|
|
3928
|
-
if (rules == null || rules == undefined) {
|
|
3929
|
-
tmp = this.getRulesByType(rulesSetType);
|
|
3930
|
-
} else {
|
|
3931
|
-
tmp = this.mapRules(rules);
|
|
3932
|
-
}
|
|
3933
|
-
var internalRules = tmp;
|
|
3934
|
-
return new Config(internalRules, rulesSetType, options, playersMode, pointsMode, timeoutTimeMillis, isPrivate);
|
|
3935
|
-
};
|
|
3936
|
-
protoOf(GameHelperImpl).mapToRoomConfig = function (config) {
|
|
3937
|
-
return mapToRoom(config);
|
|
3938
|
-
};
|
|
3939
|
-
protoOf(GameHelperImpl).mapPoints = function (points) {
|
|
3940
|
-
var tmp;
|
|
3941
|
-
switch (points) {
|
|
3942
|
-
case 301:
|
|
3943
|
-
tmp = PointsMode_SMALL_getInstance();
|
|
3944
|
-
break;
|
|
3945
|
-
case 501:
|
|
3946
|
-
tmp = PointsMode_MEDIUM_getInstance();
|
|
3947
|
-
break;
|
|
3948
|
-
case 1001:
|
|
3949
|
-
tmp = PointsMode_BIG_getInstance();
|
|
3950
|
-
break;
|
|
3951
|
-
case 10:
|
|
3952
|
-
tmp = PointsMode_TEST_getInstance();
|
|
3953
|
-
break;
|
|
3954
|
-
default:
|
|
3955
|
-
throw IllegalStateException_init_$Create$("mapPoints: can't support this type " + points);
|
|
3956
|
-
}
|
|
3957
|
-
return tmp;
|
|
3958
|
-
};
|
|
3959
|
-
protoOf(GameHelperImpl).mapPlayers = function (players) {
|
|
3960
|
-
var tmp;
|
|
3961
|
-
switch (players) {
|
|
3962
|
-
case 2:
|
|
3963
|
-
tmp = PlayersMode_TWO_PLAYERS_getInstance();
|
|
3964
|
-
break;
|
|
3965
|
-
case 3:
|
|
3966
|
-
tmp = PlayersMode_THREE_PLAYERS_getInstance();
|
|
3967
|
-
break;
|
|
3968
|
-
case 4:
|
|
3969
|
-
tmp = PlayersMode_FOUR_PLAYERS_getInstance();
|
|
3970
|
-
break;
|
|
3971
|
-
case 5:
|
|
3972
|
-
tmp = PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance();
|
|
3973
|
-
break;
|
|
3974
|
-
default:
|
|
3975
|
-
throw IllegalStateException_init_$Create$("mapPoints: can't support this type " + players);
|
|
3976
|
-
}
|
|
3977
|
-
return tmp;
|
|
3978
|
-
};
|
|
3979
|
-
protoOf(GameHelperImpl).mapRules = function (rules) {
|
|
3980
|
-
if (rules instanceof Rules) {
|
|
3981
|
-
return rules instanceof Rules ? rules : THROW_CCE();
|
|
3982
|
-
}
|
|
3983
|
-
var map = mapOfObject(rules);
|
|
3984
|
-
var tmp = map.g2('needToPutHigherTrump');
|
|
3985
|
-
var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : null;
|
|
3986
|
-
var tmp31_needToPutHigherTrump = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
3987
|
-
var tmp_0 = map.g2('playerWhoChooseSuitGoFirst');
|
|
3988
|
-
var tmp1_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : null;
|
|
3989
|
-
var tmp32_playerWhoChooseSuitGoFirst = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
3990
|
-
var tmp_1 = map.g2('winnerShuffleCards');
|
|
3991
|
-
var tmp2_elvis_lhs = (!(tmp_1 == null) ? typeof tmp_1 === 'boolean' : false) ? tmp_1 : null;
|
|
3992
|
-
var tmp33_winnerShuffleCards = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
3993
|
-
var tmp_2 = map.g2('playWithoutLiabilities');
|
|
3994
|
-
var tmp3_elvis_lhs = (!(tmp_2 == null) ? typeof tmp_2 === 'boolean' : false) ? tmp_2 : null;
|
|
3995
|
-
var tmp34_playWithoutLiabilities = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
3996
|
-
var tmp_3 = map.g2('trumpCardGoToPlayerWhoShuffleCards');
|
|
3997
|
-
var tmp4_elvis_lhs = (!(tmp_3 == null) ? typeof tmp_3 === 'boolean' : false) ? tmp_3 : null;
|
|
3998
|
-
var tmp35_trumpCardGoToPlayerWhoShuffleCards = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
3999
|
-
var tmp_4 = map.g2('dealerCounterClockwise');
|
|
4000
|
-
var tmp5_elvis_lhs = (!(tmp_4 == null) ? typeof tmp_4 === 'boolean' : false) ? tmp_4 : null;
|
|
4001
|
-
var tmp36_dealerCounterClockwise = tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs;
|
|
4002
|
-
var tmp_5 = map.g2('dealerInitialCardsCount');
|
|
4003
|
-
var tmp6_elvis_lhs = (!(tmp_5 == null) ? typeof tmp_5 === 'number' : false) ? tmp_5 : null;
|
|
4004
|
-
var tmp37_dealerInitialCardsCount = tmp6_elvis_lhs == null ? 6 : tmp6_elvis_lhs;
|
|
4005
|
-
var tmp_6 = map.g2('dealerFinalCardsCount');
|
|
4006
|
-
var tmp7_elvis_lhs = (!(tmp_6 == null) ? typeof tmp_6 === 'number' : false) ? tmp_6 : null;
|
|
4007
|
-
var tmp38_dealerFinalCardsCount = tmp7_elvis_lhs == null ? 9 : tmp7_elvis_lhs;
|
|
4008
|
-
var tmp_7 = map.g2('contractTypes');
|
|
4009
|
-
var tmp8_safe_receiver = (!(tmp_7 == null) ? isArray(tmp_7) : false) ? tmp_7 : null;
|
|
4010
|
-
var tmp_8;
|
|
4011
|
-
if (tmp8_safe_receiver == null) {
|
|
4012
|
-
tmp_8 = null;
|
|
4013
|
-
} else {
|
|
4014
|
-
// Inline function 'kotlin.collections.map' call
|
|
4015
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4016
|
-
var destination = ArrayList_init_$Create$_0(tmp8_safe_receiver.length);
|
|
4017
|
-
var inductionVariable = 0;
|
|
4018
|
-
var last = tmp8_safe_receiver.length;
|
|
4019
|
-
while (inductionVariable < last) {
|
|
4020
|
-
var item = tmp8_safe_receiver[inductionVariable];
|
|
4021
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
4022
|
-
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
4023
|
-
var tmp$ret$0 = toRoundContractType(item);
|
|
4024
|
-
destination.e(tmp$ret$0);
|
|
4025
|
-
}
|
|
4026
|
-
tmp_8 = destination;
|
|
4027
|
-
}
|
|
4028
|
-
var tmp9_safe_receiver = tmp_8;
|
|
4029
|
-
var tmp_9;
|
|
4030
|
-
if (tmp9_safe_receiver == null) {
|
|
4031
|
-
tmp_9 = null;
|
|
4032
|
-
} else {
|
|
4033
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4034
|
-
tmp_9 = copyToArray(tmp9_safe_receiver);
|
|
4035
|
-
}
|
|
4036
|
-
var tmp10_elvis_lhs = tmp_9;
|
|
4037
|
-
var tmp_10;
|
|
4038
|
-
if (tmp10_elvis_lhs == null) {
|
|
4039
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4040
|
-
var this_0 = Companion_getInstance_0().debertzContractTypes;
|
|
4041
|
-
tmp_10 = copyToArray(this_0);
|
|
4042
|
-
} else {
|
|
4043
|
-
tmp_10 = tmp10_elvis_lhs;
|
|
4044
|
-
}
|
|
4045
|
-
var tmp39_contractTypes = tmp_10;
|
|
4046
|
-
var tmp_11 = map.g2('bidTypes');
|
|
4047
|
-
var tmp11_safe_receiver = (!(tmp_11 == null) ? isArray(tmp_11) : false) ? tmp_11 : null;
|
|
4048
|
-
var tmp_12;
|
|
4049
|
-
if (tmp11_safe_receiver == null) {
|
|
4050
|
-
tmp_12 = null;
|
|
4051
|
-
} else {
|
|
4052
|
-
// Inline function 'kotlin.collections.map' call
|
|
4053
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4054
|
-
var destination_0 = ArrayList_init_$Create$_0(tmp11_safe_receiver.length);
|
|
4055
|
-
var inductionVariable_0 = 0;
|
|
4056
|
-
var last_0 = tmp11_safe_receiver.length;
|
|
4057
|
-
while (inductionVariable_0 < last_0) {
|
|
4058
|
-
var item_0 = tmp11_safe_receiver[inductionVariable_0];
|
|
4059
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
4060
|
-
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
4061
|
-
var tmp$ret$5 = toBidType(item_0);
|
|
4062
|
-
destination_0.e(tmp$ret$5);
|
|
4063
|
-
}
|
|
4064
|
-
tmp_12 = destination_0;
|
|
4065
|
-
}
|
|
4066
|
-
var tmp12_safe_receiver = tmp_12;
|
|
4067
|
-
var tmp_13;
|
|
4068
|
-
if (tmp12_safe_receiver == null) {
|
|
4069
|
-
tmp_13 = null;
|
|
4070
|
-
} else {
|
|
4071
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4072
|
-
tmp_13 = copyToArray(tmp12_safe_receiver);
|
|
4073
|
-
}
|
|
4074
|
-
var tmp13_elvis_lhs = tmp_13;
|
|
4075
|
-
var tmp_14;
|
|
4076
|
-
if (tmp13_elvis_lhs == null) {
|
|
4077
|
-
// Inline function 'kotlin.emptyArray' call
|
|
4078
|
-
tmp_14 = [];
|
|
4079
|
-
} else {
|
|
4080
|
-
tmp_14 = tmp13_elvis_lhs;
|
|
4081
|
-
}
|
|
4082
|
-
var tmp40_bidTypes = tmp_14;
|
|
4083
|
-
var tmp_15 = map.g2('combinationsWithFirstCard');
|
|
4084
|
-
var tmp14_safe_receiver = (!(tmp_15 == null) ? isArray(tmp_15) : false) ? tmp_15 : null;
|
|
4085
|
-
var tmp_16;
|
|
4086
|
-
if (tmp14_safe_receiver == null) {
|
|
4087
|
-
tmp_16 = null;
|
|
4088
|
-
} else {
|
|
4089
|
-
// Inline function 'kotlin.collections.map' call
|
|
4090
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4091
|
-
var destination_1 = ArrayList_init_$Create$_0(tmp14_safe_receiver.length);
|
|
4092
|
-
var inductionVariable_1 = 0;
|
|
4093
|
-
var last_1 = tmp14_safe_receiver.length;
|
|
4094
|
-
while (inductionVariable_1 < last_1) {
|
|
4095
|
-
var item_1 = tmp14_safe_receiver[inductionVariable_1];
|
|
4096
|
-
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
4097
|
-
// Inline function 'GameHelperImpl.mapRules.<anonymous>' call
|
|
4098
|
-
var tmp$ret$10 = mapToCombinationType(item_1);
|
|
4099
|
-
destination_1.e(tmp$ret$10);
|
|
4100
|
-
}
|
|
4101
|
-
tmp_16 = destination_1;
|
|
4102
|
-
}
|
|
4103
|
-
var tmp15_safe_receiver = tmp_16;
|
|
4104
|
-
var tmp_17;
|
|
4105
|
-
if (tmp15_safe_receiver == null) {
|
|
4106
|
-
tmp_17 = null;
|
|
4107
|
-
} else {
|
|
4108
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4109
|
-
tmp_17 = copyToArray(tmp15_safe_receiver);
|
|
4110
|
-
}
|
|
4111
|
-
var tmp16_elvis_lhs = tmp_17;
|
|
4112
|
-
var tmp_18;
|
|
4113
|
-
if (tmp16_elvis_lhs == null) {
|
|
4114
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4115
|
-
var this_1 = Companion_getInstance_1().debertzWithFirstCardCombinations;
|
|
4116
|
-
tmp_18 = copyToArray(this_1);
|
|
4117
|
-
} else {
|
|
4118
|
-
tmp_18 = tmp16_elvis_lhs;
|
|
4119
|
-
}
|
|
4120
|
-
var tmp41_combinationsWithFirstCard = tmp_18;
|
|
4121
|
-
var tmp_19 = map.g2('protectBella');
|
|
4122
|
-
var tmp17_elvis_lhs = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
|
|
4123
|
-
var tmp42_protectBella = tmp17_elvis_lhs == null ? false : tmp17_elvis_lhs;
|
|
4124
|
-
var tmp_20 = map.g2('oneTryToProtectBella');
|
|
4125
|
-
var tmp18_elvis_lhs = (!(tmp_20 == null) ? typeof tmp_20 === 'boolean' : false) ? tmp_20 : null;
|
|
4126
|
-
var tmp43_oneTryToProtectBella = tmp18_elvis_lhs == null ? false : tmp18_elvis_lhs;
|
|
4127
|
-
var tmp_21 = map.g2('enableFourSevensCombination');
|
|
4128
|
-
var tmp19_elvis_lhs = (!(tmp_21 == null) ? typeof tmp_21 === 'boolean' : false) ? tmp_21 : null;
|
|
4129
|
-
var tmp44_enableFourSevensCombination = tmp19_elvis_lhs == null ? false : tmp19_elvis_lhs;
|
|
4130
|
-
var tmp_22 = map.g2('enableTrumpSevenCombination');
|
|
4131
|
-
var tmp20_elvis_lhs = (!(tmp_22 == null) ? typeof tmp_22 === 'boolean' : false) ? tmp_22 : null;
|
|
4132
|
-
var tmp45_enableTrumpSevenCombination = tmp20_elvis_lhs == null ? false : tmp20_elvis_lhs;
|
|
4133
|
-
var tmp_23 = map.g2('enableTrumpSevenCombinationAfterDistribution');
|
|
4134
|
-
var tmp21_elvis_lhs = (!(tmp_23 == null) ? typeof tmp_23 === 'boolean' : false) ? tmp_23 : null;
|
|
4135
|
-
var tmp46_enableTrumpSevenCombinationAfterDistribution = tmp21_elvis_lhs == null ? false : tmp21_elvis_lhs;
|
|
4136
|
-
var tmp_24 = map.g2('checkTrumpCombination');
|
|
4137
|
-
var tmp22_elvis_lhs = (!(tmp_24 == null) ? typeof tmp_24 === 'boolean' : false) ? tmp_24 : null;
|
|
4138
|
-
var tmp47_checkTrumpCombination = tmp22_elvis_lhs == null ? false : tmp22_elvis_lhs;
|
|
4139
|
-
var tmp_25 = map.g2('checkOnlyTrumpDebertz');
|
|
4140
|
-
var tmp23_elvis_lhs = (!(tmp_25 == null) ? typeof tmp_25 === 'boolean' : false) ? tmp_25 : null;
|
|
4141
|
-
var tmp48_checkOnlyTrumpDebertz = tmp23_elvis_lhs == null ? false : tmp23_elvis_lhs;
|
|
4142
|
-
var tmp_26 = map.g2('distributePoints');
|
|
4143
|
-
var tmp24_elvis_lhs = (!(tmp_26 == null) ? typeof tmp_26 === 'boolean' : false) ? tmp_26 : null;
|
|
4144
|
-
var tmp49_distributePoints = tmp24_elvis_lhs == null ? false : tmp24_elvis_lhs;
|
|
4145
|
-
var tmp_27 = map.g2('pointsDistributeMode');
|
|
4146
|
-
var tmp25_safe_receiver = (!(tmp_27 == null) ? typeof tmp_27 === 'string' : false) ? tmp_27 : null;
|
|
4147
|
-
var tmp26_elvis_lhs = tmp25_safe_receiver == null ? null : toPointsDistributeMode(tmp25_safe_receiver);
|
|
4148
|
-
var tmp_28;
|
|
4149
|
-
if (tmp26_elvis_lhs == null) {
|
|
4150
|
-
var tmp_29;
|
|
4151
|
-
var tmp_30 = map.g2('distributePoints');
|
|
4152
|
-
if (((!(tmp_30 == null) ? typeof tmp_30 === 'boolean' : false) ? tmp_30 : null) === true) {
|
|
4153
|
-
tmp_29 = PointsDistributeMode_ALL_getInstance();
|
|
4154
|
-
} else {
|
|
4155
|
-
tmp_29 = PointsDistributeMode_HIGHEST_PLAYER_getInstance();
|
|
4156
|
-
}
|
|
4157
|
-
tmp_28 = tmp_29;
|
|
4158
|
-
} else {
|
|
4159
|
-
tmp_28 = tmp26_elvis_lhs;
|
|
4160
|
-
}
|
|
4161
|
-
var tmp50_pointsDistributeMode = tmp_28;
|
|
4162
|
-
var tmp_31 = map.g2('enableFineIfNoBribes');
|
|
4163
|
-
var tmp27_elvis_lhs = (!(tmp_31 == null) ? typeof tmp_31 === 'boolean' : false) ? tmp_31 : null;
|
|
4164
|
-
var tmp51_enableFineIfNoBribes = tmp27_elvis_lhs == null ? false : tmp27_elvis_lhs;
|
|
4165
|
-
var tmp_32 = map.g2('fineIfNoBribes');
|
|
4166
|
-
var tmp28_elvis_lhs = (!(tmp_32 == null) ? typeof tmp_32 === 'number' : false) ? tmp_32 : null;
|
|
4167
|
-
var tmp52_fineIfNoBribes = tmp28_elvis_lhs == null ? 50 : tmp28_elvis_lhs;
|
|
4168
|
-
var tmp_33 = map.g2('enableFineAfterThirdByte');
|
|
4169
|
-
var tmp29_elvis_lhs = (!(tmp_33 == null) ? typeof tmp_33 === 'boolean' : false) ? tmp_33 : null;
|
|
4170
|
-
var tmp53_enableFineAfterThirdFailedContract = tmp29_elvis_lhs == null ? false : tmp29_elvis_lhs;
|
|
4171
|
-
var tmp_34 = map.g2('fineAfterThirdFailedContract');
|
|
4172
|
-
var tmp30_elvis_lhs = (!(tmp_34 == null) ? typeof tmp_34 === 'number' : false) ? tmp_34 : null;
|
|
4173
|
-
var tmp54_fineAfterThirdFailedContract = tmp30_elvis_lhs == null ? 100 : tmp30_elvis_lhs;
|
|
4174
|
-
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);
|
|
4175
|
-
};
|
|
4176
|
-
protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
|
|
4177
|
-
var map = mapOfObject(config);
|
|
4178
|
-
var tmp = map.g2('limit');
|
|
4179
|
-
var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
|
|
4180
|
-
var tmp_0;
|
|
4181
|
-
if (tmp0_safe_receiver == null) {
|
|
4182
|
-
tmp_0 = null;
|
|
4183
|
-
} else {
|
|
4184
|
-
// Inline function 'kotlin.also' call
|
|
4185
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4186
|
-
// Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
|
|
4187
|
-
validateLimit(this, tmp0_safe_receiver);
|
|
4188
|
-
tmp_0 = tmp0_safe_receiver;
|
|
4189
|
-
}
|
|
4190
|
-
var limit = tmp_0;
|
|
4191
|
-
var jsObject = prepareConfigObjectInternal(this, map);
|
|
4192
|
-
jsObject['limit'] = limit == null ? 20 : limit;
|
|
4193
|
-
return jsObject;
|
|
4194
|
-
};
|
|
4195
|
-
protoOf(GameHelperImpl).prepareConfigObject = function (config) {
|
|
4196
|
-
var map = mapOfObject(config);
|
|
4197
|
-
return prepareConfigObjectInternal(this, map);
|
|
4198
|
-
};
|
|
4199
|
-
protoOf(GameHelperImpl).isValidConfigObject = function (config) {
|
|
4200
|
-
var map = mapOfObject(config);
|
|
4201
|
-
var rules = map.g2('rules');
|
|
4202
|
-
var tmp = getValue(map, 'players');
|
|
4203
|
-
var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
|
|
4204
|
-
var tmp_1 = getValue(map, 'points');
|
|
4205
|
-
var tmp_2 = (!(tmp_1 == null) ? typeof tmp_1 === 'number' : false) ? tmp_1 : THROW_CCE();
|
|
4206
|
-
var tmp_3 = getValue(map, 'timeoutTime');
|
|
4207
|
-
var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
|
|
4208
|
-
var tmp_5 = getValue(map, 'rulesPreset');
|
|
4209
|
-
var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
|
|
4210
|
-
var tmp_7;
|
|
4211
|
-
if (rules != null && rules != undefined) {
|
|
4212
|
-
tmp_7 = this.mapRules(rules);
|
|
4213
|
-
} else {
|
|
4214
|
-
tmp_7 = null;
|
|
4215
|
-
}
|
|
4216
|
-
return this.isValidConfig(tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
|
|
4217
|
-
};
|
|
4218
|
-
protoOf(GameHelperImpl).isValidConfig = function (players, points, timeoutTime, rulesPreset, rules) {
|
|
4219
|
-
validatePoints(this, points);
|
|
4220
|
-
validatePlayers(this, players);
|
|
4221
|
-
validateTimeoutTime(this, timeoutTime);
|
|
4222
|
-
validateRulesSetType(this, rulesPreset);
|
|
4223
|
-
validateRules(this, rules);
|
|
4224
|
-
return true;
|
|
4225
|
-
};
|
|
4226
|
-
protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
|
|
4227
|
-
var tmp;
|
|
4228
|
-
switch (rulesSetType.n2_1) {
|
|
4229
|
-
case 0:
|
|
4230
|
-
tmp = Companion_instance_4.belot();
|
|
4231
|
-
break;
|
|
4232
|
-
case 1:
|
|
4233
|
-
tmp = Companion_instance_4.klabor();
|
|
4234
|
-
break;
|
|
4235
|
-
case 2:
|
|
4236
|
-
tmp = Companion_instance_4.debertzCommon();
|
|
4237
|
-
break;
|
|
4238
|
-
case 3:
|
|
4239
|
-
tmp = Companion_instance_4.kharkiv();
|
|
4240
|
-
break;
|
|
4241
|
-
case 4:
|
|
4242
|
-
tmp = Companion_instance_4.saltivka();
|
|
4243
|
-
break;
|
|
4244
|
-
case 5:
|
|
4245
|
-
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
4246
|
-
default:
|
|
4247
|
-
noWhenBranchMatchedException();
|
|
4248
|
-
break;
|
|
4249
|
-
}
|
|
4250
|
-
return tmp;
|
|
4251
|
-
};
|
|
4252
|
-
protoOf(GameHelperImpl).getRulesByString = function (name) {
|
|
4253
|
-
var tmp;
|
|
4254
|
-
switch (name) {
|
|
4255
|
-
case 'belot':
|
|
4256
|
-
tmp = Companion_instance_4.belot();
|
|
4257
|
-
break;
|
|
4258
|
-
case 'klabor':
|
|
4259
|
-
tmp = Companion_instance_4.klabor();
|
|
4260
|
-
break;
|
|
4261
|
-
case 'debertzCommon':
|
|
4262
|
-
tmp = Companion_instance_4.debertzCommon();
|
|
4263
|
-
break;
|
|
4264
|
-
case 'debertzKharkiv':
|
|
4265
|
-
tmp = Companion_instance_4.kharkiv();
|
|
4266
|
-
break;
|
|
4267
|
-
case 'custom':
|
|
4268
|
-
throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
|
|
4269
|
-
default:
|
|
4270
|
-
throw IllegalStateException_init_$Create$("Can't support this " + name);
|
|
4271
|
-
}
|
|
4272
|
-
return tmp;
|
|
4273
|
-
};
|
|
4274
|
-
protoOf(GameHelperImpl).mapRulesSetType = function (name) {
|
|
4275
|
-
return valueOf(name);
|
|
4276
|
-
};
|
|
4277
|
-
function GameResources() {
|
|
4278
|
-
}
|
|
4279
|
-
var AvatarSet_ORIGIN_instance;
|
|
4280
|
-
var AvatarSet_NOSTALGIA_instance;
|
|
4281
|
-
function values() {
|
|
4282
|
-
return [AvatarSet_ORIGIN_getInstance(), AvatarSet_NOSTALGIA_getInstance()];
|
|
4283
|
-
}
|
|
4284
|
-
var AvatarSet_entriesInitialized;
|
|
4285
|
-
function AvatarSet_initEntries() {
|
|
4286
|
-
if (AvatarSet_entriesInitialized)
|
|
4287
|
-
return Unit_instance;
|
|
4288
|
-
AvatarSet_entriesInitialized = true;
|
|
4289
|
-
AvatarSet_ORIGIN_instance = new AvatarSet('ORIGIN', 0);
|
|
4290
|
-
AvatarSet_NOSTALGIA_instance = new AvatarSet('NOSTALGIA', 1);
|
|
4291
|
-
}
|
|
4292
|
-
function getRandomAvatarData($this, existingNicknames) {
|
|
4293
|
-
var tries = 0;
|
|
4294
|
-
var data = getRandomAvatarData_0($this);
|
|
4295
|
-
$l$loop: while (tries < 5) {
|
|
4296
|
-
var nickname = getNicknameByIndex($this, data);
|
|
4297
|
-
var tmp$ret$1;
|
|
4298
|
-
$l$block: {
|
|
4299
|
-
// Inline function 'kotlin.collections.none' call
|
|
4300
|
-
var inductionVariable = 0;
|
|
4301
|
-
var last = existingNicknames.length;
|
|
4302
|
-
while (inductionVariable < last) {
|
|
4303
|
-
var element = existingNicknames[inductionVariable];
|
|
4304
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
4305
|
-
// Inline function 'GameResourcesImpl.getRandomAvatarData.<anonymous>' call
|
|
4306
|
-
if (element === nickname) {
|
|
4307
|
-
tmp$ret$1 = false;
|
|
4308
|
-
break $l$block;
|
|
4309
|
-
}
|
|
4310
|
-
}
|
|
4311
|
-
tmp$ret$1 = true;
|
|
4312
|
-
}
|
|
4313
|
-
if (tmp$ret$1) {
|
|
4314
|
-
break $l$loop;
|
|
4315
|
-
}
|
|
4316
|
-
data = getRandomAvatarData_0($this);
|
|
4317
|
-
tries = tries + 1 | 0;
|
|
4318
|
-
}
|
|
4319
|
-
return data;
|
|
4320
|
-
}
|
|
4321
|
-
function getRandomAvatarData_0($this) {
|
|
4322
|
-
var avatarSetNumber = Default_getInstance().og(values().length);
|
|
4323
|
-
var avatarSet = values()[avatarSetNumber];
|
|
4324
|
-
return new AvatarData(Default_getInstance().og(avatarSet.ndd()), avatarSet);
|
|
4325
|
-
}
|
|
4326
|
-
function getAvatarUrlByIndex($this, data) {
|
|
4327
|
-
return mapToPattern($this, data);
|
|
4328
|
-
}
|
|
4329
|
-
function getNicknameByIndex($this, data) {
|
|
4330
|
-
return data.pdd_1.qdd(data.odd_1);
|
|
4331
|
-
}
|
|
4332
|
-
function mapToPattern($this, data) {
|
|
4333
|
-
return 'debertz://raspberry.games/' + data.pdd_1.n2_1 + '/' + data.odd_1;
|
|
4334
|
-
}
|
|
4335
|
-
function Companion_2() {
|
|
4336
|
-
Companion_instance_12 = this;
|
|
4337
|
-
this.rdd_1 = 'debertz://raspberry.games';
|
|
4338
|
-
var tmp = this;
|
|
4339
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4340
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4341
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4342
|
-
tmp.sdd_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
4343
|
-
var tmp_0 = this;
|
|
4344
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4345
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4346
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4347
|
-
tmp_0.tdd_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'];
|
|
4348
|
-
var tmp_1 = this;
|
|
4349
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4350
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4351
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4352
|
-
tmp_1.udd_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
4353
|
-
var tmp_2 = this;
|
|
4354
|
-
// Inline function 'kotlin.arrayOf' call
|
|
4355
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
4356
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
4357
|
-
tmp_2.vdd_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'];
|
|
4358
|
-
}
|
|
4359
|
-
var Companion_instance_12;
|
|
4360
|
-
function Companion_getInstance_5() {
|
|
4361
|
-
if (Companion_instance_12 == null)
|
|
4362
|
-
new Companion_2();
|
|
4363
|
-
return Companion_instance_12;
|
|
4364
|
-
}
|
|
4365
|
-
function AvatarSet(name, ordinal) {
|
|
4366
|
-
Enum.call(this, name, ordinal);
|
|
4367
|
-
}
|
|
4368
|
-
protoOf(AvatarSet).ndd = function () {
|
|
4369
|
-
var tmp;
|
|
4370
|
-
switch (this.n2_1) {
|
|
4371
|
-
case 0:
|
|
4372
|
-
tmp = Companion_getInstance_5().tdd_1.length;
|
|
4373
|
-
break;
|
|
4374
|
-
case 1:
|
|
4375
|
-
tmp = Companion_getInstance_5().vdd_1.length;
|
|
4376
|
-
break;
|
|
4377
|
-
default:
|
|
4378
|
-
noWhenBranchMatchedException();
|
|
4379
|
-
break;
|
|
4380
|
-
}
|
|
4381
|
-
return tmp;
|
|
4382
|
-
};
|
|
4383
|
-
protoOf(AvatarSet).qdd = function (index) {
|
|
4384
|
-
var tmp;
|
|
4385
|
-
switch (this.n2_1) {
|
|
4386
|
-
case 0:
|
|
4387
|
-
tmp = Companion_getInstance_5().tdd_1[index];
|
|
4388
|
-
break;
|
|
4389
|
-
case 1:
|
|
4390
|
-
tmp = Companion_getInstance_5().vdd_1[index];
|
|
4391
|
-
break;
|
|
4392
|
-
default:
|
|
4393
|
-
noWhenBranchMatchedException();
|
|
4394
|
-
break;
|
|
4395
|
-
}
|
|
4396
|
-
return tmp;
|
|
4397
|
-
};
|
|
4398
|
-
function AvatarData(index, avatarSet) {
|
|
4399
|
-
this.odd_1 = index;
|
|
4400
|
-
this.pdd_1 = avatarSet;
|
|
4401
|
-
}
|
|
4402
|
-
function AvatarSet_ORIGIN_getInstance() {
|
|
4403
|
-
AvatarSet_initEntries();
|
|
4404
|
-
return AvatarSet_ORIGIN_instance;
|
|
4405
|
-
}
|
|
4406
|
-
function AvatarSet_NOSTALGIA_getInstance() {
|
|
4407
|
-
AvatarSet_initEntries();
|
|
4408
|
-
return AvatarSet_NOSTALGIA_instance;
|
|
4409
|
-
}
|
|
4410
|
-
function GameResourcesImpl() {
|
|
4411
|
-
Companion_getInstance_5();
|
|
4412
|
-
}
|
|
4413
|
-
protoOf(GameResourcesImpl).kdd = function (playerId, existingNicknames) {
|
|
4414
|
-
var data = getRandomAvatarData(this, existingNicknames);
|
|
4415
|
-
return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
|
|
4416
|
-
};
|
|
4417
|
-
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
4418
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4419
|
-
var users = ArrayList_init_$Create$();
|
|
4420
|
-
var inductionVariable = 0;
|
|
4421
|
-
var last = playerIds.length;
|
|
4422
|
-
while (inductionVariable < last) {
|
|
4423
|
-
var playerId = playerIds[inductionVariable];
|
|
4424
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
4425
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4426
|
-
// Inline function 'kotlin.collections.map' call
|
|
4427
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
4428
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(users, 10));
|
|
4429
|
-
var tmp0_iterator = users.j();
|
|
4430
|
-
while (tmp0_iterator.k()) {
|
|
4431
|
-
var item = tmp0_iterator.l();
|
|
4432
|
-
// Inline function 'GameResourcesImpl.createBotUsers.<anonymous>' call
|
|
4433
|
-
var tmp$ret$1 = item.name;
|
|
4434
|
-
destination.e(tmp$ret$1);
|
|
4435
|
-
}
|
|
4436
|
-
var tmp$ret$4 = copyToArray(destination);
|
|
4437
|
-
var user = this.createBotUser(playerId, tmp$ret$4);
|
|
4438
|
-
users.e(user);
|
|
4439
|
-
}
|
|
4440
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
4441
|
-
return copyToArray(users);
|
|
4442
|
-
};
|
|
4443
3363
|
function GameEngineController() {
|
|
4444
3364
|
}
|
|
4445
3365
|
function createGameServerController(loggerCallback, randomOrgConfig) {
|
|
@@ -4448,30 +3368,30 @@
|
|
|
4448
3368
|
}
|
|
4449
3369
|
function _get_controllerLogger__nbd727($this) {
|
|
4450
3370
|
// Inline function 'kotlin.getValue' call
|
|
4451
|
-
var this_0 = $this.
|
|
3371
|
+
var this_0 = $this.vde_1;
|
|
4452
3372
|
controllerLogger$factory();
|
|
4453
3373
|
return this_0.u();
|
|
4454
3374
|
}
|
|
4455
3375
|
function _get_di__ndbzja($this) {
|
|
4456
3376
|
// Inline function 'kotlin.getValue' call
|
|
4457
|
-
var this_0 = $this.
|
|
3377
|
+
var this_0 = $this.wde_1;
|
|
4458
3378
|
di$factory();
|
|
4459
3379
|
return this_0.u();
|
|
4460
3380
|
}
|
|
4461
3381
|
function createDI($this, combinedLogger, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
4462
|
-
var tmp =
|
|
3382
|
+
var tmp = Companion_instance_3;
|
|
4463
3383
|
return tmp.a62(VOID, GameServerEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, $this, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
4464
3384
|
}
|
|
4465
3385
|
function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
|
|
4466
3386
|
return function () {
|
|
4467
3387
|
var tmp;
|
|
4468
|
-
if (this$0.
|
|
3388
|
+
if (this$0.tde_1 == null) {
|
|
4469
3389
|
tmp = null;
|
|
4470
3390
|
} else {
|
|
4471
3391
|
// Inline function 'kotlin.let' call
|
|
4472
3392
|
// Inline function 'kotlin.contracts.contract' call
|
|
4473
3393
|
// Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
|
|
4474
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
3394
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.tde_1)]));
|
|
4475
3395
|
}
|
|
4476
3396
|
var tmp1_elvis_lhs = tmp;
|
|
4477
3397
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -4499,27 +3419,27 @@
|
|
|
4499
3419
|
tmp_0.p65(tmp$ret$3);
|
|
4500
3420
|
$this$DI.t61(jsonModule());
|
|
4501
3421
|
$this$DI.t61(serverHelpersModule());
|
|
4502
|
-
$this$DI.t61(randomOrgModule(this$0.
|
|
3422
|
+
$this$DI.t61(randomOrgModule(this$0.ude_1));
|
|
4503
3423
|
return Unit_instance;
|
|
4504
3424
|
};
|
|
4505
3425
|
}
|
|
4506
3426
|
function GameServerEngineControllerImpl$di$delegate$lambda(this$0) {
|
|
4507
3427
|
return function () {
|
|
4508
|
-
var tmp =
|
|
3428
|
+
var tmp = Companion_instance_3;
|
|
4509
3429
|
return tmp.a62(VOID, GameServerEngineControllerImpl$di$delegate$lambda$lambda(this$0));
|
|
4510
3430
|
};
|
|
4511
3431
|
}
|
|
4512
3432
|
function _no_name_provided__qut3iv_4($item) {
|
|
4513
|
-
this.
|
|
3433
|
+
this.cdf_1 = $item;
|
|
4514
3434
|
}
|
|
4515
3435
|
protoOf(_no_name_provided__qut3iv_4).c6o = function (action) {
|
|
4516
3436
|
return isInterface(action, Action);
|
|
4517
3437
|
};
|
|
4518
|
-
protoOf(_no_name_provided__qut3iv_4).
|
|
4519
|
-
return this.
|
|
3438
|
+
protoOf(_no_name_provided__qut3iv_4).j9k = function (state, action) {
|
|
3439
|
+
return this.cdf_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
4520
3440
|
};
|
|
4521
3441
|
protoOf(_no_name_provided__qut3iv_4).u6p = function (state, action) {
|
|
4522
|
-
return this.
|
|
3442
|
+
return this.j9k((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
4523
3443
|
};
|
|
4524
3444
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
|
|
4525
3445
|
return function ($this$singleton) {
|
|
@@ -4576,7 +3496,7 @@
|
|
|
4576
3496
|
}
|
|
4577
3497
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
|
|
4578
3498
|
return function (it) {
|
|
4579
|
-
var tmp0_elvis_lhs =
|
|
3499
|
+
var tmp0_elvis_lhs = Companion_instance_4.f9p(it);
|
|
4580
3500
|
var tmp;
|
|
4581
3501
|
if (tmp0_elvis_lhs == null) {
|
|
4582
3502
|
var tmp1_safe_receiver = $gameServer.x6e().d6w_1;
|
|
@@ -4589,7 +3509,7 @@
|
|
|
4589
3509
|
}
|
|
4590
3510
|
function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
|
|
4591
3511
|
return function (it) {
|
|
4592
|
-
var tmp0_elvis_lhs =
|
|
3512
|
+
var tmp0_elvis_lhs = Companion_instance_5.q9n(it);
|
|
4593
3513
|
var tmp;
|
|
4594
3514
|
if (tmp0_elvis_lhs == null) {
|
|
4595
3515
|
var tmp1_safe_receiver = $gameServer.x6e().d6w_1;
|
|
@@ -4611,7 +3531,7 @@
|
|
|
4611
3531
|
// Inline function 'kotlin.contracts.contract' call
|
|
4612
3532
|
$this$DI.t61(tmp0_safe_receiver);
|
|
4613
3533
|
}
|
|
4614
|
-
$this$DI.t61(dealerModule(this$0.randomPoolProvider, this$0.
|
|
3534
|
+
$this$DI.t61(dealerModule(this$0.randomPoolProvider, this$0.ude_1));
|
|
4615
3535
|
$this$DI.t61(coreModule($coreConfig));
|
|
4616
3536
|
$this$DI.t61(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
|
|
4617
3537
|
return Unit_instance;
|
|
@@ -4620,76 +3540,76 @@
|
|
|
4620
3540
|
function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
|
|
4621
3541
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
4622
3542
|
production = production === VOID ? true : production;
|
|
4623
|
-
this.
|
|
4624
|
-
this.
|
|
3543
|
+
this.tde_1 = loggerCallback;
|
|
3544
|
+
this.ude_1 = randomOrgConfig;
|
|
4625
3545
|
AppEnvironment_getInstance().l6v(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
|
|
4626
3546
|
var tmp = this;
|
|
4627
|
-
tmp.
|
|
3547
|
+
tmp.vde_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
|
|
4628
3548
|
var tmp_0 = this;
|
|
4629
|
-
tmp_0.
|
|
3549
|
+
tmp_0.wde_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
|
|
4630
3550
|
var tmp_1 = this;
|
|
4631
3551
|
// Inline function 'org.kodein.di.instance' call
|
|
4632
3552
|
var this_0 = _get_di__ndbzja(this);
|
|
4633
3553
|
// Inline function 'org.kodein.type.generic' call
|
|
4634
3554
|
var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
|
|
4635
3555
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4636
|
-
tmp_1.
|
|
3556
|
+
tmp_1.xde_1 = Instance(this_0, tmp$ret$0, null).m67(this, parser$factory());
|
|
4637
3557
|
var tmp_3 = this;
|
|
4638
3558
|
// Inline function 'org.kodein.di.instance' call
|
|
4639
3559
|
var this_1 = _get_di__ndbzja(this);
|
|
4640
3560
|
// Inline function 'org.kodein.type.generic' call
|
|
4641
3561
|
var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
|
|
4642
3562
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
4643
|
-
tmp_3.
|
|
3563
|
+
tmp_3.yde_1 = Instance(this_1, tmp$ret$2, null).m67(this, helper$factory());
|
|
4644
3564
|
var tmp_5 = this;
|
|
4645
3565
|
// Inline function 'org.kodein.di.instance' call
|
|
4646
3566
|
var this_2 = _get_di__ndbzja(this);
|
|
4647
3567
|
// Inline function 'org.kodein.type.generic' call
|
|
4648
3568
|
var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
4649
3569
|
var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
4650
|
-
tmp_5.
|
|
3570
|
+
tmp_5.zde_1 = Instance(this_2, tmp$ret$4, null).m67(this, resources$factory());
|
|
4651
3571
|
var tmp_7 = this;
|
|
4652
3572
|
// Inline function 'org.kodein.di.instance' call
|
|
4653
3573
|
var this_3 = _get_di__ndbzja(this);
|
|
4654
3574
|
// Inline function 'org.kodein.type.generic' call
|
|
4655
3575
|
var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
4656
3576
|
var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
4657
|
-
tmp_7.
|
|
3577
|
+
tmp_7.adf_1 = Instance(this_3, tmp$ret$6, null).m67(this, test$factory());
|
|
4658
3578
|
var tmp_9 = this;
|
|
4659
3579
|
// Inline function 'org.kodein.di.instance' call
|
|
4660
3580
|
var this_4 = _get_di__ndbzja(this);
|
|
4661
3581
|
// Inline function 'org.kodein.type.generic' call
|
|
4662
3582
|
var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
|
|
4663
3583
|
var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
4664
|
-
tmp_9.
|
|
3584
|
+
tmp_9.bdf_1 = Instance(this_4, tmp$ret$8, null).m67(this, randomPoolProvider$factory());
|
|
4665
3585
|
}
|
|
4666
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3586
|
+
protoOf(GameServerEngineControllerImpl).md2 = function () {
|
|
4667
3587
|
// Inline function 'kotlin.getValue' call
|
|
4668
|
-
var this_0 = this.
|
|
3588
|
+
var this_0 = this.xde_1;
|
|
4669
3589
|
parser$factory_0();
|
|
4670
3590
|
return this_0.u();
|
|
4671
3591
|
};
|
|
4672
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3592
|
+
protoOf(GameServerEngineControllerImpl).pde = function () {
|
|
4673
3593
|
// Inline function 'kotlin.getValue' call
|
|
4674
|
-
var this_0 = this.
|
|
3594
|
+
var this_0 = this.yde_1;
|
|
4675
3595
|
helper$factory_0();
|
|
4676
3596
|
return this_0.u();
|
|
4677
3597
|
};
|
|
4678
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3598
|
+
protoOf(GameServerEngineControllerImpl).qde = function () {
|
|
4679
3599
|
// Inline function 'kotlin.getValue' call
|
|
4680
|
-
var this_0 = this.
|
|
3600
|
+
var this_0 = this.zde_1;
|
|
4681
3601
|
resources$factory_0();
|
|
4682
3602
|
return this_0.u();
|
|
4683
3603
|
};
|
|
4684
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3604
|
+
protoOf(GameServerEngineControllerImpl).ode = function () {
|
|
4685
3605
|
// Inline function 'kotlin.getValue' call
|
|
4686
|
-
var this_0 = this.
|
|
3606
|
+
var this_0 = this.adf_1;
|
|
4687
3607
|
test$factory_0();
|
|
4688
3608
|
return this_0.u();
|
|
4689
3609
|
};
|
|
4690
|
-
protoOf(GameServerEngineControllerImpl).
|
|
3610
|
+
protoOf(GameServerEngineControllerImpl).rde = function () {
|
|
4691
3611
|
// Inline function 'kotlin.getValue' call
|
|
4692
|
-
var this_0 = this.
|
|
3612
|
+
var this_0 = this.bdf_1;
|
|
4693
3613
|
randomPoolProvider$factory_0();
|
|
4694
3614
|
return this_0.u();
|
|
4695
3615
|
};
|
|
@@ -4699,8 +3619,8 @@
|
|
|
4699
3619
|
protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
|
|
4700
3620
|
return this.createGameEngineWithLogic();
|
|
4701
3621
|
};
|
|
4702
|
-
protoOf(GameServerEngineControllerImpl).
|
|
4703
|
-
var combinedLogger =
|
|
3622
|
+
protoOf(GameServerEngineControllerImpl).sde = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
|
|
3623
|
+
var combinedLogger = Companion_instance_6.qm();
|
|
4704
3624
|
var tmp;
|
|
4705
3625
|
if (coreConfig.fileLogsEnabled) {
|
|
4706
3626
|
tmp = new FileLoggerOutputImpl();
|
|
@@ -4709,8 +3629,8 @@
|
|
|
4709
3629
|
}
|
|
4710
3630
|
var fileLoggerOutput = tmp;
|
|
4711
3631
|
var tmp_0;
|
|
4712
|
-
if (!(this.
|
|
4713
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
3632
|
+
if (!(this.tde_1 == null)) {
|
|
3633
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.tde_1));
|
|
4714
3634
|
} else {
|
|
4715
3635
|
tmp_0 = null;
|
|
4716
3636
|
}
|
|
@@ -4753,12 +3673,12 @@
|
|
|
4753
3673
|
var gameServer = tmp_1.d63(tmp$ret$7, null);
|
|
4754
3674
|
if (!(fileLoggerOutput == null)) {
|
|
4755
3675
|
var tmp_3 = fileLoggerOutput;
|
|
4756
|
-
tmp_3.
|
|
3676
|
+
tmp_3.u9o_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
|
|
4757
3677
|
combinedLogger.sm(fileLoggerOutput);
|
|
4758
3678
|
}
|
|
4759
3679
|
if (!(callbackWrapperLoggerOutput == null)) {
|
|
4760
3680
|
var tmp_4 = callbackWrapperLoggerOutput;
|
|
4761
|
-
tmp_4.
|
|
3681
|
+
tmp_4.s9n_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
|
|
4762
3682
|
combinedLogger.sm(callbackWrapperLoggerOutput);
|
|
4763
3683
|
}
|
|
4764
3684
|
return gameServer;
|
|
@@ -4823,58 +3743,17 @@
|
|
|
4823
3743
|
return receiver.randomPoolProvider;
|
|
4824
3744
|
}, null);
|
|
4825
3745
|
}
|
|
4826
|
-
function mapToRoom(_this__u8e3s4) {
|
|
4827
|
-
// Inline function 'kotlin.takeIf' call
|
|
4828
|
-
var this_0 = _this__u8e3s4.rules;
|
|
4829
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4830
|
-
var tmp;
|
|
4831
|
-
// Inline function 'mapToRoom.<anonymous>' call
|
|
4832
|
-
if (_this__u8e3s4.rulesSetType.isCustom) {
|
|
4833
|
-
tmp = this_0;
|
|
4834
|
-
} else {
|
|
4835
|
-
tmp = null;
|
|
4836
|
-
}
|
|
4837
|
-
var tmp0_safe_receiver = tmp;
|
|
4838
|
-
var tmp1_rules = tmp0_safe_receiver == null ? null : mapToDto(tmp0_safe_receiver);
|
|
4839
|
-
var tmp2_rulesPreset = _this__u8e3s4.rulesSetType.value;
|
|
4840
|
-
var tmp3_players = _this__u8e3s4.playersMode.value;
|
|
4841
|
-
var tmp4_points = _this__u8e3s4.pointsMode.value;
|
|
4842
|
-
var tmp5_timeoutTime = _this__u8e3s4.timeoutTimeMillis / 1000 | 0;
|
|
4843
|
-
// Inline function 'kotlin.takeIf' call
|
|
4844
|
-
var this_1 = _this__u8e3s4.isPrivate;
|
|
4845
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4846
|
-
var tmp_0;
|
|
4847
|
-
// Inline function 'mapToRoom.<anonymous>' call
|
|
4848
|
-
if (this_1) {
|
|
4849
|
-
tmp_0 = this_1;
|
|
4850
|
-
} else {
|
|
4851
|
-
tmp_0 = null;
|
|
4852
|
-
}
|
|
4853
|
-
var tmp6_isPrivate = tmp_0;
|
|
4854
|
-
// Inline function 'kotlin.takeIf' call
|
|
4855
|
-
var this_2 = _this__u8e3s4.options.isEnableChat;
|
|
4856
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
4857
|
-
var tmp_1;
|
|
4858
|
-
// Inline function 'mapToRoom.<anonymous>' call
|
|
4859
|
-
if (this_2) {
|
|
4860
|
-
tmp_1 = this_2;
|
|
4861
|
-
} else {
|
|
4862
|
-
tmp_1 = null;
|
|
4863
|
-
}
|
|
4864
|
-
var tmp7_isChatEnabled = tmp_1;
|
|
4865
|
-
return new RoomConfig(tmp3_players, tmp4_points, tmp5_timeoutTime, tmp2_rulesPreset, tmp6_isPrivate, tmp7_isChatEnabled, tmp1_rules);
|
|
4866
|
-
}
|
|
4867
3746
|
function TestHelper() {
|
|
4868
3747
|
}
|
|
4869
3748
|
function _get_playerAnswerInteractor__msggz1($this) {
|
|
4870
3749
|
// Inline function 'kotlin.getValue' call
|
|
4871
|
-
var this_0 = $this.
|
|
3750
|
+
var this_0 = $this.fdf_1;
|
|
4872
3751
|
playerAnswerInteractor$factory_0();
|
|
4873
3752
|
return this_0.u();
|
|
4874
3753
|
}
|
|
4875
3754
|
function TestHelperImpl$di$lambda$lambda(this$0) {
|
|
4876
3755
|
return function ($this$singleton) {
|
|
4877
|
-
return this$0.
|
|
3756
|
+
return this$0.ddf_1;
|
|
4878
3757
|
};
|
|
4879
3758
|
}
|
|
4880
3759
|
function TestHelperImpl$di$lambda(this$0) {
|
|
@@ -4903,20 +3782,20 @@
|
|
|
4903
3782
|
return emptyMap();
|
|
4904
3783
|
}
|
|
4905
3784
|
function TestHelperImpl(logger) {
|
|
4906
|
-
this.
|
|
3785
|
+
this.ddf_1 = logger;
|
|
4907
3786
|
var tmp = this;
|
|
4908
|
-
var tmp_0 =
|
|
4909
|
-
tmp.
|
|
3787
|
+
var tmp_0 = Companion_instance_3;
|
|
3788
|
+
tmp.edf_1 = tmp_0.a62(VOID, TestHelperImpl$di$lambda(this));
|
|
4910
3789
|
var tmp_1 = this;
|
|
4911
3790
|
// Inline function 'org.kodein.di.instance' call
|
|
4912
|
-
var this_0 = this.
|
|
3791
|
+
var this_0 = this.edf_1;
|
|
4913
3792
|
// Inline function 'org.kodein.type.generic' call
|
|
4914
3793
|
var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
|
|
4915
3794
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
4916
|
-
tmp_1.
|
|
3795
|
+
tmp_1.fdf_1 = Instance(this_0, tmp$ret$0, null).m67(this, playerAnswerInteractor$factory());
|
|
4917
3796
|
}
|
|
4918
3797
|
protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
|
|
4919
|
-
return _get_playerAnswerInteractor__msggz1(this).
|
|
3798
|
+
return _get_playerAnswerInteractor__msggz1(this).z8z(playerId, table, botConfig);
|
|
4920
3799
|
};
|
|
4921
3800
|
protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
|
|
4922
3801
|
var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
|
|
@@ -4924,7 +3803,7 @@
|
|
|
4924
3803
|
var tmp$ret$0;
|
|
4925
3804
|
$l$block_0: {
|
|
4926
3805
|
// Inline function 'kotlin.collections.any' call
|
|
4927
|
-
var this_0 = mechanicAction.
|
|
3806
|
+
var this_0 = mechanicAction.l9a();
|
|
4928
3807
|
var tmp;
|
|
4929
3808
|
if (isInterface(this_0, Collection)) {
|
|
4930
3809
|
tmp = this_0.p();
|
|
@@ -4957,7 +3836,7 @@
|
|
|
4957
3836
|
var tmp$ret$0;
|
|
4958
3837
|
$l$block_0: {
|
|
4959
3838
|
// Inline function 'kotlin.collections.any' call
|
|
4960
|
-
var this_0 = action.
|
|
3839
|
+
var this_0 = action.l9a();
|
|
4961
3840
|
var tmp;
|
|
4962
3841
|
if (isInterface(this_0, Collection)) {
|
|
4963
3842
|
tmp = this_0.p();
|
|
@@ -5003,7 +3882,7 @@
|
|
|
5003
3882
|
$this$Module.t61(engineHelpersModule());
|
|
5004
3883
|
// Inline function 'org.kodein.di.bind' call
|
|
5005
3884
|
// Inline function 'org.kodein.type.generic' call
|
|
5006
|
-
var tmp = typeToken(createKType(getKClass(
|
|
3885
|
+
var tmp = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
5007
3886
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
5008
3887
|
var tmp_0 = $this$Module.r61(tmp$ret$0, null, null);
|
|
5009
3888
|
// Inline function 'org.kodein.di.singleton' call
|
|
@@ -5012,46 +3891,13 @@
|
|
|
5012
3891
|
var tmp_2 = $this$Module.u61();
|
|
5013
3892
|
var tmp_3 = $this$Module.v61();
|
|
5014
3893
|
// Inline function 'org.kodein.type.generic' call
|
|
5015
|
-
var tmp_4 = typeToken(createKType(getKClass(
|
|
3894
|
+
var tmp_4 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
5016
3895
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
5017
3896
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
5018
3897
|
tmp_0.p65(tmp$ret$3);
|
|
5019
|
-
// Inline function 'org.kodein.di.bind' call
|
|
5020
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5021
|
-
var tmp_5 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
|
|
5022
|
-
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
5023
|
-
var tmp_6 = $this$Module.r61(tmp$ret$4, null, null);
|
|
5024
|
-
// Inline function 'org.kodein.di.singleton' call
|
|
5025
|
-
var creator_0 = serverHelpersModule$lambda$lambda_0;
|
|
5026
|
-
var tmp_7 = $this$Module.w61();
|
|
5027
|
-
var tmp_8 = $this$Module.u61();
|
|
5028
|
-
var tmp_9 = $this$Module.v61();
|
|
5029
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5030
|
-
var tmp_10 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
|
|
5031
|
-
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
5032
|
-
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
5033
|
-
tmp_6.p65(tmp$ret$7);
|
|
5034
|
-
// Inline function 'org.kodein.di.bind' call
|
|
5035
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5036
|
-
var tmp_11 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
|
|
5037
|
-
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
5038
|
-
var tmp_12 = $this$Module.r61(tmp$ret$8, null, null);
|
|
5039
|
-
// Inline function 'org.kodein.di.singleton' call
|
|
5040
|
-
var creator_1 = serverHelpersModule$lambda$lambda_1;
|
|
5041
|
-
var tmp_13 = $this$Module.w61();
|
|
5042
|
-
var tmp_14 = $this$Module.u61();
|
|
5043
|
-
var tmp_15 = $this$Module.v61();
|
|
5044
|
-
// Inline function 'org.kodein.type.generic' call
|
|
5045
|
-
var tmp_16 = typeToken(createKType(getKClass(GameResourcesImpl), arrayOf([]), false));
|
|
5046
|
-
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
5047
|
-
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
5048
|
-
tmp_12.p65(tmp$ret$11);
|
|
5049
3898
|
return Unit_instance;
|
|
5050
3899
|
}
|
|
5051
3900
|
function serverHelpersModule$lambda$lambda($this$singleton) {
|
|
5052
|
-
return new GameHelperImpl();
|
|
5053
|
-
}
|
|
5054
|
-
function serverHelpersModule$lambda$lambda_0($this$singleton) {
|
|
5055
3901
|
// Inline function 'org.kodein.di.instance' call
|
|
5056
3902
|
var tmp = $this$singleton.e63();
|
|
5057
3903
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -5060,9 +3906,6 @@
|
|
|
5060
3906
|
var tmp$ret$1 = tmp.d63(tmp$ret$0, null);
|
|
5061
3907
|
return new TestHelperImpl(tmp$ret$1);
|
|
5062
3908
|
}
|
|
5063
|
-
function serverHelpersModule$lambda$lambda_1($this$singleton) {
|
|
5064
|
-
return new GameResourcesImpl();
|
|
5065
|
-
}
|
|
5066
3909
|
//region block: post-declaration
|
|
5067
3910
|
protoOf(GameServer).roomOnCreate = roomOnCreate;
|
|
5068
3911
|
protoOf(GameServer).roomOnDelete = roomOnDelete;
|
|
@@ -5091,28 +3934,27 @@
|
|
|
5091
3934
|
defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
|
|
5092
3935
|
return this.p6n();
|
|
5093
3936
|
});
|
|
5094
|
-
protoOf(GameResourcesImpl).createBotUser = createBotUser;
|
|
5095
3937
|
protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
|
|
5096
3938
|
defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
|
|
5097
|
-
return this.
|
|
3939
|
+
return this.md2();
|
|
5098
3940
|
});
|
|
5099
3941
|
defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
|
|
5100
|
-
return this.
|
|
3942
|
+
return this.pde();
|
|
5101
3943
|
});
|
|
5102
3944
|
defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
|
|
5103
|
-
return this.
|
|
3945
|
+
return this.qde();
|
|
5104
3946
|
});
|
|
5105
3947
|
defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
|
|
5106
|
-
return this.
|
|
3948
|
+
return this.ode();
|
|
5107
3949
|
});
|
|
5108
3950
|
defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
|
|
5109
|
-
return this.
|
|
3951
|
+
return this.rde();
|
|
5110
3952
|
});
|
|
5111
3953
|
//endregion
|
|
5112
3954
|
//region block: init
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
3955
|
+
Companion_instance_7 = new Companion();
|
|
3956
|
+
Companion_instance_8 = new Companion_0();
|
|
3957
|
+
Companion_instance_9 = new Companion_1();
|
|
5116
3958
|
//endregion
|
|
5117
3959
|
//region block: exports
|
|
5118
3960
|
function $jsExportAll$(_) {
|